remrow Posted December 16, 2007 Share Posted December 16, 2007 hey i want to start php on my win Xp.what are need for it ?i downloaded php from http://www.php.net apachethen i downloaded mysql serverwhat's their uses and which one is necessary?help out guys! Link to comment Share on other sites More sharing options...
bbala Posted December 16, 2007 Share Posted December 16, 2007 install WAMP http://wampserver.com/it installs everything needed to work with php.i just installed it two days back and trying to learn php from www.w3schools.org. it works fine.. Link to comment Share on other sites More sharing options...
Synook Posted December 17, 2007 Share Posted December 17, 2007 You can set up the server yourself from individual components but it is tedious and can so easily go wrong. Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 17, 2007 Share Posted December 17, 2007 I'm currently trying to install PHP on my windows XP. So the Wampserver.com will have everything I need for my computer? What's the EXACT link(s) of the file(s) download that will have everything I need to run APACHE MySQL and PHP on my computer. Can I work offline with PHP too? I would assume yes? This forum thread is godsent because I'm having the same problem. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 17, 2007 Share Posted December 17, 2007 You can run PHP on a command line but it's most useful in a web server environment. That doesn't mean the web server needs to be online to internet traffic, just running so that it can be accessed via localhost at least. Link to comment Share on other sites More sharing options...
remrow Posted December 17, 2007 Author Share Posted December 17, 2007 oh thanks for thattrying to download it, but it's 20mb file , will take time on my comp. though thanks a lot. install WAMP http://wampserver.com/it installs everything needed to work with php.i just installed it two days back and trying to learn php from www.w3schools.org. it works fine.. Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 18, 2007 Share Posted December 18, 2007 It's only 20 MB and your going to be a long time downloading it?? Do you still have DiAlUp? 20 MB for me is about 10 minutes...My internet is down at the house, and when I fix it I will go download WAMP . You can run PHP on a command line but it's most useful in a web server environment. That doesn't mean the web server needs to be online to internet traffic, just running so that it can be accessed via localhost at least.So I can be offline while working on PHP?You can run PHP on a command line but...You mean Command Prompt Program? What "command line" do you mean Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2007 Share Posted December 18, 2007 You don't need to have an internet connection to run PHP. You do need a web server if you want to build a web application though, or else you're limited to things that the command line provides. The Windows command prompt is one command line.http://www.php.net/manual/en/features.commandline.php Link to comment Share on other sites More sharing options...
remrow Posted December 18, 2007 Author Share Posted December 18, 2007 hey guys i have downloaded the wampserver. And i don't know how to make the use of it. Where do i save my php files?? It's only 20 MB and your going to be a long time downloading it?? Do you still have DiAlUp? 20 MB for me is about 10 minutes...My internet is down at the house, and when I fix it I will go download WAMP . So I can be offline while working on PHP?You mean Command Prompt Program? What "command line" do you mean Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 18, 2007 Share Posted December 18, 2007 You can save your PHP files anywhere. Now that you have WAMP installed, you can code PHP and now you will be able to look at it. Before I couldn't code PHP (Well I mean I couldn't see my results in a browser.) You can do anything now with APACHE MySQL and PHP Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2007 Share Posted December 18, 2007 You can't save them anywhere to run them, they need to be in the root folder of the webserver. Check the documentation for WAMP to figure out where that is. Link to comment Share on other sites More sharing options...
Synook Posted December 19, 2007 Share Posted December 19, 2007 You can save your PHP files anywhere.! You can save them anywhere, but to successfully execute them via a browser they have to be in the www folder of your installation (default for WAMP is C:\wamp\www\) or one of its subfolders, and to run them you need to access them via http://localhost/ Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 19, 2007 Share Posted December 19, 2007 I saved it in the WWW folder (I kept default in installation) but it keeps opening up as a file...anymore ideas? Link to comment Share on other sites More sharing options...
justsomeguy Posted December 19, 2007 Share Posted December 19, 2007 How do you open it? Link to comment Share on other sites More sharing options...
remrow Posted December 19, 2007 Author Share Posted December 19, 2007 ahh! I have my iss root folder in d:/server (localhost)i have some php page on it and when i tried to open it with a server then it doesn't opens. I also have started the wamp. (when instaling i made the server name remrow(like localhost))you said there must be www folder but .... idk. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 19, 2007 Share Posted December 19, 2007 when i tried to open it How do you try to open it? When you want to open the file, what do you do? Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 20, 2007 Share Posted December 20, 2007 When I open the file I double click it in my folder. That opens as a file and I KNOW I shouldn't do it like that. How can I write the link to open as http://localhost/ ? Link to comment Share on other sites More sharing options...
boen_robot Posted December 20, 2007 Share Posted December 20, 2007 When I open the file I double click it in my folder. That opens as a file and I KNOW I shouldn't do it like that. How can I write the link to open as http://localhost/ ?I rarely say this, as I try to be as understandable as possible, but - now THAT is a stupid question!How do you "write the link so that it opens as" (or should I say "how do you go to") www.w3schools.com? You "write it so that it opens as" (go to) localhost in the same way. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 20, 2007 Share Posted December 20, 2007 Open a web browser, click in the address bar, and type "http://localhost/". Link to comment Share on other sites More sharing options...
Synook Posted December 21, 2007 Share Posted December 21, 2007 If you have windows you can also type that in the Run dialog (Start + R) Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 21, 2007 Share Posted December 21, 2007 My question came out wrong. "How do I open up an HTML file instead of it opening as a file. e.g localhost. Figured it out. You misunderstood Boen_robot Link to comment Share on other sites More sharing options...
remrow Posted December 22, 2007 Author Share Posted December 22, 2007 hey come on no more replies like type 'http://localhost/' i do know that. Problem is i cannot run php scripts. The ie says the navigation cannot be ...(something like started)So what's up. I have started the wamp server though the problem is the same. Open a web browser, click in the address bar, and type "http://localhost/". Link to comment Share on other sites More sharing options...
SpOrTsDuDe.Reese Posted December 22, 2007 Share Posted December 22, 2007 I had the same problem. Do these stepsGet internet.Load WAMP, left click the icon that came up and hit Run All Servicesopen up a browser. e.g Mozilla Firefox.Go to the www folder located in the WAMP file. Place the file in there. for example. lets do this filename PHPtest.phptype in http://localhost/PHPtest.php cAsE sEnSiTiVeTell me if THAT doesn't work. Link to comment Share on other sites More sharing options...
remrow Posted December 23, 2007 Author Share Posted December 23, 2007 still couldnot run php on windows. YOu see i have installed IIS and wamp server. I already can work with the asp but still can't work with php. As you have suggested i have made a www folder and made it a server and tried to run the php but it doesn't runs.Is it happening due to IIS?extra --how to use the contorl panel like in IIS to change the directory of server and likethat in wamp server?? Link to comment Share on other sites More sharing options...
boen_robot Posted December 23, 2007 Share Posted December 23, 2007 still couldnot run php on windows. YOu see i have installed IIS and wamp server. I already can work with the asp but still can't work with php. As you have suggested i have made a www folder and made it a server and tried to run the php but it doesn't runs.Is it happening due to IIS?extra --how to use the contorl panel like in IIS to change the directory of server and likethat in wamp server??YES!Turn IIS off and then also turn off WAMP. Then turn WAMP on again (a "restart" is a different operation than turning off and on actually - seems not to do the deal in delicate cases like this).After you do this, you should not be able to run ASP pages, but you should instead be able to run PHP pages the way SpOrTsDuDe.Reese said you can.BTW, if you want to do this without WAMP (there will be various reasons later as to why you'd want this), you can try Tanguay's tutorial. It's the best... lots of screenshots AND detailed explanations along the way. Just know that since the time this tutorial was written, Apache can now be found from the "Other files" link on Apache's page... or just in this folder to be more precise. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.