tarun Posted January 25, 2007 Share Posted January 25, 2007 Has Anyone Got Any Links Or Downloads So That I Can Have PHP On "My Little Home Computer" Which Is Running Windows XPAs Currently When I Try And View A PHP File On Any Of My Hard Disk Or CD Drive Or Anything It Says It Does "Not Recognise The File Select An Appriate Program Or Use The Web Service To Find A Program"So I Have To Upload It To My Free Web Host Just To View The FileANY HELP PLEASETHANKS Quote Link to comment Share on other sites More sharing options...
jvrothjr Posted January 25, 2007 Share Posted January 25, 2007 Are you looking to view the CODE or the output of the code Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 25, 2007 Share Posted January 25, 2007 You cannot run .php files by "double clicking" them, like you can with .html or .exe files for example. You have to move it to you servers document root and then go to http://localhost/ to run the php file. PHP is a server side programming language and thus requires to be run in a server setup. Or you can run then via the command line.You can install Apache (the server) and PHP on your PC locally. Read [url=http://www.phpfreaks.com/forums/index.php/topic,120152.msg492660.html#msg492660]this[/url] post of mine to do so. Or you can go the lazy root and install one of those horrid all-in-one installations over at wampserver.com or xampp.com Quote Link to comment Share on other sites More sharing options...
tarun Posted January 27, 2007 Author Share Posted January 27, 2007 [quote author=jvrothjr link=topic=124015.msg513448#msg513448 date=1169755194]Are you looking to view the CODE or the output of the code [/quote]The Output ThanksTo View The CODE Ive Got My Trusty Old EditPlus TextEditor Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 27, 2007 Share Posted January 27, 2007 [quote author=tarun link=topic=124015.msg514728#msg514728 date=1169905354][quote author=jvrothjr link=topic=124015.msg513448#msg513448 date=1169755194]Are you looking to view the CODE or the output of the code [/quote]The Output ThanksTo View The CODE Ive Got My Trusty Old EditPlus TextEditor[/quote]Then read my post I made above. Which was this:[quote author=wildteen88 link=topic=124015.msg513454#msg513454 date=1169755493]You cannot run .php files by "double clicking" them, like you can with .html or .exe files for example. You have to move it to you servers document root and then go to http://localhost/ to run the php file. PHP is a server side programming language and thus requires to be run in a server setup. Or you can run then via the command line.You can install Apache (the server) and PHP on your PC locally. Read [url=http://www.phpfreaks.com/forums/index.php/topic,120152.msg492660.html#msg492660]this[/url] post of mine to do so. Or you can go the lazy root and install one of those horrid all-in-one installations over at wampserver.com or xampp.com[/quote] Quote Link to comment Share on other sites More sharing options...
tarun Posted January 28, 2007 Author Share Posted January 28, 2007 thanks for your help but im afraid im only 12 so im not sure my Dad would approvethanks anywayyour help was greatly appreciated and valued Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted January 28, 2007 Share Posted January 28, 2007 Is that relevant? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 29, 2007 Share Posted January 29, 2007 [quote author=tarun link=topic=124015.msg515497#msg515497 date=1170007113]thanks for your help but im afraid im only 12 so im not sure my Dad would approvethanks anywayyour help was greatly appreciated and valued[/quote]If you want to run your PHP files on your PC then you need to install Apache and PHP! There is no other way. Quote Link to comment Share on other sites More sharing options...
Nameless12 Posted January 29, 2007 Share Posted January 29, 2007 [quote author=wildteen88 link=topic=124015.msg513454#msg513454 date=1169755493]You cannot run .php files by "double clicking" them, like you can with .html or .exe files for example. You have to move it to you servers document root and then go to http://localhost/ to run the php file. PHP is a server side programming language and thus requires to be run in a server setup. Or you can run then via the command line.You can install Apache (the server) and PHP on your PC locally. Read [url=http://www.phpfreaks.com/forums/index.php/topic,120152.msg492660.html#msg492660]this[/url] post of mine to do so. Or you can go the lazy root and install one of those horrid all-in-one installations over at wampserver.com or xampp.com[/quote]that is not true. php comes with an executable that can execute php files Quote Link to comment Share on other sites More sharing options...
ShogunWarrior Posted January 29, 2007 Share Posted January 29, 2007 Yes, but it isn't a server, and won't serve the files to a browser. Learning PHP with the executable alone would be cumbersome. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 29, 2007 Share Posted January 29, 2007 [quote author=Nameless12 link=topic=124015.msg516344#msg516344 date=1170100682][quote author=wildteen88 link=topic=124015.msg513454#msg513454 date=1169755493]You cannot run .php files by "double clicking" them, like you can with .html or .exe files for example. You have to move it to you servers document root and then go to http://localhost/ to run the php file. PHP is a server side programming language and thus requires to be run in a server setup. Or you can run then via the command line.You can install Apache (the server) and PHP on your PC locally. Read [url=http://www.phpfreaks.com/forums/index.php/topic,120152.msg492660.html#msg492660]this[/url] post of mine to do so. Or you can go the lazy root and install one of those horrid all-in-one installations over at wampserver.com or xampp.com[/quote]that is not true. php comes with an executable that can execute php files[/quote]Yeah if you like to use the command line! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.