Installing PHP4 - became freelancer PHP programmer

Php info

Php info

Download and decompress the file of PHP. We can decompress for example in the “C: \ PHP4 \”. Once unpacked, we are going to that directory and edit the file php.ini-dist.

Inside this section we look for Roads and Directories. We found that the “extension_dir” have the courage. “/” This indicates the current directory of PHP and will be located where the PHP extensions.

In the next section we have the PHP extensions, which provide us with extra features to our interpretation of PHP (many of these extensions will not work correctly under Windows98).

We selected those that need it, we do this by removing the “;” at the top of the line. We must verify that the file referred to this in our directory of PHP ( “C: \ PHP4 \”).

In this file can configure many more options, including options for supporting different systems managers of databases, but for the moment not change anything, only if needed. Once we have amended the above, save the file with the following name “php.ini”.

Then we go to the directory where Apache was installed in the directory “/ config /” edit the file “httpd.conf” where we make the following configuration directives.

Come to the “ScriptAlias”. This section will list the aliases that the path where you will find the PHP interpreter. We must have the following line.
ScriptAlias / cgi-bin / “C: / Program Files / Apache Group / Apache / cgi-bin /”

The above line is a directory that has a default Apache to run scripts. Below this line we must introduce:
ScriptAlias / PHP4 / “C: \ PHP4 \”

AddType The section is the configuration file that tells the interpreter must process. Add:
AddType application / x-httpd-php. Php4
AddType application / x-httpd-php. Phtml

Under Action, which we list is the file serves as interpreter for PHP. Add:
Action application / x-httpd-php “/ PHP4/php.exe”

Once I keep this file and create a test page. Save the file as plain text. We opened a new file and write the code below:
<? php
echo “Hi, my first PHP page”;
phpinfo ();
>

After writing the code above what we save in the directory “/ htdocs /” directory of Apache with the name “info.php4.” Run back a Web browser and typing the following address: “http://127.0.0.1/info.php4.” The result is a screen with information about the PHP we use, in addition to information on the value of the variables that PHP handles. If we do not see that screen should check the steps above and check we have done everything correctly. However, we can find more information in the reference manual for PHP.

Special promotion : earn money with $100 earn
$10.000. Deposit $25. Work from home as trader. You earn evan currency increase or drop !!!

Trade Now!

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • co.mments
  • De.lirio.us
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati
Apache server installation...
Include code in PHP language...
Change, creating and erasing directories - PHP...
How to choose the best programmer developer as freelancer ?...
Chrome soon bear extensions...

Related freelancer programming posts.

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)


  Popular posts Who is behind Freelancer-job ?   Top keywords
   

My name is Igor. Global economic crisis,  that began that year, gave us a lot of problems. Freelancers must choose  clients carefully now and this blog will help them. Here, everything is free - programmers can promote their skills for free giving comments, employers offer jobs for free. If  you want you can join me at Stumbleupon or Twitter or Digg.

  Freelancers jobs - freelancer job - freelance needed - freelance wanted - freelance find - freelance salary - jobs hiring now