Jump to content

Archived

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

JosiaMFire2

Windows / PHP Problem

Recommended Posts

Ok, well I have been learning php for a couple of weeks (about an hour a day) I can do bits n pieces. Recently I made a big mistake of setting php by default to open with ie.. this has come to haunt me. whenever I run an html that uses a php script, it will open the ie download box, and try get me to download ?.php, how can I reset ie, so it will try and run the script in ie instead of trying to download the script.
I would apreciate quick response, cheers Josh

Share this post


Link to post
Share on other sites
Web browsers, such as IE, FF, Opera etc, cannot parse php code. So theres no point in running php files through a web browser. What you'll want to do is install a server onto you PC. Such as Apache, or if you are on XP Pro/Windows Server OS you'll be able to use IIS. However Apache is better.

PHP runs on the server and not the client, which HTML does that why you can run HTML files through a web browser. Once you've installed a server and configured it to parse any PHP files with the PHP Interpretor you can go to http://localhost/filename.php and your PHP scripts will now run.

Share this post


Link to post
Share on other sites
right yah, I recently realised that.. I have been using software php designer, thats why I havent really noticed until now. I have also installed apache with it. Thanks heaps for your prompt reply it helped alot.

Share this post


Link to post
Share on other sites

×

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.