Resume Creating Service

Worked on the Resume Creation Module. The profile picture was not being displayed. But later on, the problem got solved. The image path was given according to the file system. It should have been given according to the localhost. So, after making changes, the profile picture was displayed correctly.

Also learned about the OOPS concepts in PHP like Classs,objects, Data Abstraction, Polymorphism, Overloading,etc.

Studied about sessions in PHP.

Advertisements

The Homepage

Began with the homepage this week. The home page consists of four pages. The first one will be the introductory page. Second page will have the option of Sign In and Register.

Designed the UI part of these two pages first.

The third page lists all the services provided by the website and the fourth page contains the subscription option.

I was getting problem in implementing the search functionality. I was not getting proper results. But then, I found that the constraints were not correct. After modifying the code, the searched worked well.

The Project Begins

I started with my six months project Online Job Portal this week. First of all, the problem was defined correctly and the user requirements were gathered.

I have thought of the main functions which will be provided by the website.

  • A basic Authentication system
  • A Search Engine
  • Apply Job option for Job Seekers and Post Job option for Employers
  • Resume Creation service
  • News Letter service

Began with the registration form this week. The database also needs to be developed for this. The main tables to be included are : Jobs, Job Seeker, Employer.

Then implemented the login and logout facility.

 

Learning Object Oriented Concepts

This week, we were taught the object oriented concepts. Object-oriented programming is a style of coding that allows developers to group similar tasks into classes. This helps keep code following the tenet “don’t repeat yourself” and easy-to-maintain.

First we were told about the benefits of the DRY Programming. Then we understood the basic concepts of objects and classes.

We learned about the syntax of class.


After creating the class, a new class can be instantiated and stored in a variable using the new keyword:

 $obj = new MyClass; 

Methods are class-specific functions.

Also learned about public,private and protected properties of the classes.

A Simple Contact Form in PHP

<html>
<body>

<p>Required fields are <b>bold</b></p>

<form action="contact.php" method="post">
<p><b>Your Name:</b> <input type="text" name="yourname" /><br />
<b>Subject:</b> <input type="text" name="subject" /><br />
<b>E-mail:</b> <input type="text" name="email" /><br />
Website: <input type="text" name="website"></p>

<p>Do you like this website?
<input type="radio" name="likeit" value="Yes" checked="checked" /> Yes
<input type="radio" name="likeit" value="No" /> No
<input type="radio" name="likeit" value="Not sure" /> Not sure</p>

<p>How did you find us?
<select name="how">
<option value=""> -- Please select -- </option>
<option>Google</option>
<option>Yahoo</option>
<option>Link from a website</option>
<option>Word of mouth</option>
<option>Other</option>
</select>

<p><b>Your comments:</b><br />
<textarea name="comments" rows="10" cols="40"></textarea></p>

<p><input type="submit" value="Send it!"></p>

<p> </p>
<p>Powered by <a href="http://myphpform.com">PHP form</a></p>

</form>

</body>
</html>

Basics Of PHP

Started with making some basic programs in PHP using loops,arrays and basic conditional statements.
Learned about the concept of functions in PHP and some predefined functions in PHP and built in string functions of PHP like strtoupper(),strtolower(),strtotime(),Ucword(),Ucfirst().

Then we learnt about the PHP database functions. These functions provide access to the MySQL database. The most important ones are the :

  • $db = mysql_connect($dbms_location)
  • mysql_select_db($db_name, $db)
  • $result = mysql_query($sql, $db)
  • mysql_error()
  • mysql_num_rows($result)

Installation of LAMP

Started with installation of LAMP Server. The acronym stands for Linux, Apache, MySQL, and PHP.

  • To install apache, open terminal and type in these commands:
    sudo apt-get update
    sudo apt-get install apache2

  • MySQL is a powerful database management system used for organizing and retrieving data. To install MySQL, open terminal and type in these commands:
    sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

  • To install PHP, open terminal and type in this command.
     sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Also studied about the file systems and IO.

Learning PHP

Started with PHP this week. We learned its basic concepts,, its advantages and limitations.
After learning about the basic concepts of php, we then learned about the three vital components need to be installed on your computer system. These are — Web Server, Database and PHP Parser.
We started with a very basic program in PHP. The code for the same is :

<html>
 <head>
  <title>Training In PHP</title>
 </head>
 <body>
    <?php echo "I am learning PHP in my six months training.";?>
 </body>
</html>

More About Database

We continued learning about the DBMS this week. Started with the use of Joins in DBMS.
Then, learnt about the aggregate functions lke max(),min(),sum(),avg() etc.
Learned about Sub queries and covers problem on that concept.
Then, I practised all the queries by making a database with some tables in it and performed operations on it like inserting a new record ,updating an existing record and retrieving the records from the table and then also some complex queries on it using concept of foreign key and primary key i.e. by establishing a relation between more than one table using foreign key.

Hope that debugger finds the bug.Amen!