Jump to content

WTF... please help


Recommended Posts

We also need to make a version of php.ini available.  To do this, first add you php directory to your Windows PATH [color=red](Where is this windows path anyway?)[/color] Next, in the PHP installation directory, copy the php.ini - recommended file to php.ini [color=red](Did he mean that I should copy and paste that file into the same folder and just rename it to php.ini?)[/color].  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();
?>
[color=red]
How do I create a php file? Should I use notepad to create one?[/color] Thanks.
Link to comment
https://forums.phpfreaks.com/topic/22977-wtf-please-help/
Share on other sites

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

Prehaps read this [url=http://www.phpfreaks.com/forums/index.php/topic,110211.msg445108.html#msg445108]thread[/url]

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):
[b]"your_file_name_here.php"[/b]
Link to comment
https://forums.phpfreaks.com/topic/22977-wtf-please-help/#findComment-103731
Share on other sites

I got it now:  ;D

From php.net's FAQ, http://www.php.net/manual/en/faq.installation.php#faq.installation.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.
Link to comment
https://forums.phpfreaks.com/topic/22977-wtf-please-help/#findComment-104169
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.