Jump to content


Photo

WTF... please help


  • Please log in to reply
2 replies to this topic

#1 joseph

joseph
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 04 October 2006 - 01:50 PM

We also need to make a version of php.ini available.  To do this, first add you php directory to your Windows PATH (Where is this windows path anyway?) Next, in the PHP installation directory, copy the php.ini - recommended file to php.ini (Did he mean that I should copy and paste that file into the same folder and just rename it to php.ini?).  After making these changes you must restart your apache server.

Now we're ready to check that PHP is working. In the htdocs directory in your Apache installation, create a file called phpinfo.php containing the following lines

<?php
phpinfo();
?>

How do I create a php file? Should I use notepad to create one?
Thanks.

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 04 October 2006 - 02:17 PM

Umm.. little confused. Could you provide a link where you got this from.

Prehaps read this thread

Explains how to add the php folder to the windows Path.

To rename the php.ini-recommended file to php.ini just right click and select rename from the menu. Delete -recommended from the end.

To create a php file, just open up notepad and select File > Save As.. the following exactly into the File Name box (including the quotes):
"your_file_name_here.php"

#3 joseph

joseph
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 05 October 2006 - 05:30 AM

I got it now:  ;D

From php.net's FAQ, http://www.php.net/m...ation.addtopath

The php.ini - recommended file is like a quick-start configuration -- just overwrite the original php.ini file with this one.

You can use any text editor to create a php file. Just make sure it has a .php file extension, and that it is in Apache's public_html directory.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users