Jump to content


Photo

Windows / PHP Problem


  • Please log in to reply
2 replies to this topic

#1 JosiaMFire2

JosiaMFire2
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 31 July 2006 - 07:46 AM

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

#2 wildteen88

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

Posted 31 July 2006 - 09:30 AM

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.

#3 JosiaMFire2

JosiaMFire2
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 01 August 2006 - 04:52 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users