Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.