Jump to content

Running a simple PHP script


simpgm25

Recommended Posts

I work on a small net work that has a W2K web server running IIS 5.0. We have PHP installed and it works on our web site. I did not write this web site. I am in school learning about web programming. Right now I just want to get a simple php script to run. Period! My question is this. Does a PHP file have to be run from a web site that is PHP functional or can you just create a PHP file on a server that has php and IIS installed and run it in a folder in the C drive for testing? Right now I am just trying the famous echo "Hello world;" example.
Simeon Bryant
Link to comment
Share on other sites

I appreciate you guys help.

Our web sever is IIS and we have a web site currently running on it using php. When you set up a website in IIS you have to go under the home folder tab and then configuration and make sure that the php extension is in there. Thats how our current site is and it works. That's why I asked in my first question, does the php file have to be running off of a web site that is set up in IIS? I just want to be able to test php files for practice. I still don't have it working. I know this is very simple but I am just spinning my wheels.
Simeon
Link to comment
Share on other sites

I'm guessing you know that you need <?  ?> around the php code... also check the configuration off the IIS. I think you can specify what file extentions to process php code.  Like .htm, .html, .php make sure your extention is one that it will look for the php.

-John
Link to comment
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.