Sorry... wasn't sure where to put this. As you can probably tell, I'm new.
Is there a way to get PHP to work on my desktop for testing purposes? For example, I can write html in Textpad or some other editor and launch it in a browser to see what it looks like... but I can't do that with PHP documents. Is there a simple way to make that possible? Right now I have to upload everything I do in PHP to my server and test it there, and that gets kind of tiresome.
Thanks in advance if anyone can help.
Getting PHP to work on a desktop
Moderator: General Moderators
-
L4E_WakaMol-King
- Forum Commoner
- Posts: 26
- Joined: Wed Jun 14, 2006 10:54 am
-
jamiel
- Forum Contributor
- Posts: 276
- Joined: Wed Feb 22, 2006 5:17 am
- Location: London, United Kingdom
Download php from http://www.php.net , then read install.txt and follow the instructions for your webserver. I presume Apache.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
You need a server first. Install either IIS (if you have the ability and are in Windows) or httpd (The apache web server) and get that set up first. Then download and install PHP. If all goes well, it will detect your server and modify the configuration of the server so that the server can serve up PHP without any modifications on your part. If that is the case, you are golden and should be able to write your first PHP page, doing this...
Save that into your local servers web root as my-php-info.php and hit it at http://localhost/my-php-info.php. If you did it right, you should see a lot of information about your PHP installation. If you did it wrong, you will see the code that is above instead of what the code does.
Code: Select all
<?php
phpinfo();
?>Easy PHP
I use Easy PHP, Its a nice little application that has PHP, Apache, and mysql Built-in. Very easy to install.
Its also FREE
get it here. http://easyphp.org/
Its also FREE
get it here. http://easyphp.org/
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
If you are new to all of this and/or aren't to handy with your computer, I would recommend using package.
I wanted to add that Windows 98, ME, and 2000 can use PWS (Personal Web Server) from Microsoft while Windows XP Professional can use a dumbed down IIS 5.5 (not sure of the version). XP Home doesn't support either.
I wanted to add that Windows 98, ME, and 2000 can use PWS (Personal Web Server) from Microsoft while Windows XP Professional can use a dumbed down IIS 5.5 (not sure of the version). XP Home doesn't support either.
-
L4E_WakaMol-King
- Forum Commoner
- Posts: 26
- Joined: Wed Jun 14, 2006 10:54 am