abyssXX Posted December 12, 2006 Share Posted December 12, 2006 ok i am on http://www.php.net/downloads.php but what link do i download? there are so many Link to comment Share on other sites More sharing options...
aspnetguy Posted December 12, 2006 Share Posted December 12, 2006 what operating system do you have? Link to comment Share on other sites More sharing options...
abyssXX Posted December 12, 2006 Author Share Posted December 12, 2006 XP Link to comment Share on other sites More sharing options...
aspnetguy Posted December 12, 2006 Share Posted December 12, 2006 The PHP 4.4.4 installer is super easy to install but is not as good as PHP 5.2.0 zip package but 5.2 is much harder to install. Don't use the 5.2 installer as it will not enable MySql for you. Link to comment Share on other sites More sharing options...
abyssXX Posted December 12, 2006 Author Share Posted December 12, 2006 ok i am on the installer what sever type do i pick? like microsoft iis 4 or higher Link to comment Share on other sites More sharing options...
arkinstall Posted December 12, 2006 Share Posted December 12, 2006 WOW, STOP.If you want the works (e.g. apache, phpmyadmin, mysql, PHP), use a program like WAMP.It installs EVERYTHING, and uses the best settings (although it doesn't use short tags automatically) Link to comment Share on other sites More sharing options...
abyssXX Posted December 12, 2006 Author Share Posted December 12, 2006 ok i am downloading that now, when i have installed php does it need to use a new extension like .php or will php show on .htm Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2006 Share Posted December 12, 2006 By default it will only execute .php files using PHP. If you want to execute PHP in other file types, you will need to configure Apache to do that. Unless you have control over a web server where you will change that setting online, then its better to leave it like it is. Link to comment Share on other sites More sharing options...
abyssXX Posted December 12, 2006 Author Share Posted December 12, 2006 By default it will only execute .php files using PHP. If you want to execute PHP in other file types, you will need to configure Apache to do that. Unless you have control over a web server where you will change that setting online, then its better to leave it like it is.i made the hello world program and saved it as php test.php but some reason it opens in microsoft picture editor or somthin and then says cannot open<html><body><?phpecho "Hello World";?></body></html> Link to comment Share on other sites More sharing options...
justsomeguy Posted December 12, 2006 Share Posted December 12, 2006 You don't double click on a file to open it, you have to open your browser and go to http://localhost/test.php or whatever you called the file. Link to comment Share on other sites More sharing options...
abyssXX Posted December 13, 2006 Author Share Posted December 13, 2006 no that never worked Link to comment Share on other sites More sharing options...
boen_robot Posted December 13, 2006 Share Posted December 13, 2006 Ohhh... read this tutorial or any similar one for instructions on how to install Apache, PHP and MySQL or download a package that will install it all for your. I reccomend XAMPP. See apachefriends.org for instructions to install XAMPP (even though it's almost too easy).If you've installed Apache or any other server on a PC, typing "localhost" into the browser will lead to the root of that server. If that doesn't work now, it simply means you haven't installed it or started it properly. And you need to have a web server running in order to use PHP. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 13, 2006 Share Posted December 13, 2006 no that never workedNo, trust me, it definately does work, and I've been doing it that way for years. If it doesn't work for you, then it's not set up correctly. Link to comment Share on other sites More sharing options...
Guest subhumane Posted December 15, 2006 Share Posted December 15, 2006 I read this post and downloaded the WAMP5 program. So, what do I do with it? It doesn't seem to do anything. Do I just write my php files in notepad like regular html? Why did I need to download the WAMP5 in the first place?Then I saved the tutorial code for hello world and opened it with my broswer, and it prompts me to open or save the file. Why is the php file downloading when I open it with the broswer?Thanks.Brett Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2006 Share Posted December 18, 2006 Do I just write my php files in notepad like regular html?Good god man, no! You must use ConTEXT instead (see my signature). Notepad is for people who don't have anything better to do then manually format and parse their own code. Bah!WAMP is just a collection of tools that will allow you to run PHP. The main components are Apache (a web server) and the PHP engine itself. When a web server like Apache gets a request for a PHP page, for example index.php, it sends the index.php file to the PHP engine, which executes it and sends back the output (HTML) to the web server. Then, the web server takes that output and sends it to the browser that asked for the file in the first place.If you are getting a download box, then Apache wants to send you the php file directly instead of having the PHP engine execute it. There is a setting in one of Apache's config files to say where to send PHP files. But I thought the WAMP installer should have done that for you. Link to comment Share on other sites More sharing options...
Matpatnik Posted December 18, 2006 Share Posted December 18, 2006 It does unless he didn't set wamp properly Link to comment Share on other sites More sharing options...
Sniffy Posted December 18, 2006 Share Posted December 18, 2006 I would like to install php locally on my computer as well, and I'm wondering do I need the apache server, or what do I need to run PHP, how, and where to get it. Sorry to but into someone elses thread but this may answer his questions as well.I see PHP on my browser, but not if I save a php file. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2006 Share Posted December 18, 2006 If you install WAMP it will install everything you need to use PHP. Link to comment Share on other sites More sharing options...
Sniffy Posted December 18, 2006 Share Posted December 18, 2006 If you install WAMP it will install everything you need to use PHP.Thanks, can you give me a link to WAMP? Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2006 Share Posted December 18, 2006 http://www.google.com/search?client=opera&...-8&oe=utf-8 Link to comment Share on other sites More sharing options...
MrAdam Posted December 18, 2006 Share Posted December 18, 2006 i use "xAMp" ... http://www.google.com/search?hl=en&lr=...s=en&q=xamp Link to comment Share on other sites More sharing options...
justsomeguy Posted December 18, 2006 Share Posted December 18, 2006 I think that xAMp is a 14-year old protocol. But XAMPP is an Apache distribution. Link to comment Share on other sites More sharing options...
Sniffy Posted December 24, 2006 Share Posted December 24, 2006 If you install WAMP it will install everything you need to use PHP. Okay, so I downloaded WAMP and conText(Which is soooo good by the way) so now I have everything I need to start running PHP scripts on my computer?I just picked all of the default settings in installation except my email, is there anything I need to change, or might need to change?I didn't touch any of the settings on the actually program itself either. Link to comment Share on other sites More sharing options...
Sniffy Posted December 24, 2006 Share Posted December 24, 2006 I just did a test and my PHP file displays in IE without having to 'download' the file, but the contents are blank.test.php <html><head></head><body><?phpecho "hello world";?></body></html> As I said, I haven't changed anything, so what's wrong? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 2, 2007 Share Posted January 2, 2007 View the source of the file in the browser and paste what you see. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now