php without webserver?
Moderator: General Moderators
php without webserver?
ok, now this may sound stupid.
is there a way to practice your php without having to upload them with a ftp, and keep refreshing your pages? i think i've heard some people talking about it, but i can't be possitive what it is or where to get it.
is there a way to practice your php without having to upload them with a ftp, and keep refreshing your pages? i think i've heard some people talking about it, but i can't be possitive what it is or where to get it.
Err.....
You could also run a webserver on your own machine. No uploading business involved. 
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You really need to run a webserver on your local machine. Apache can be used on both *nix and Windows. If you have Windows 9x there's PWS and Windows NT/2000/XP can run IIS. If you want to run one of the Windows web servers you can install them from your Windows installation CD. Apache can be found here. Then once you've got a web server you install PHP and can test without all that FTP malarky.
Mac
Mac
Or, you could use Triplehash Serlient. Its a browser/web server/php interpreter combined.
http://www.triplehash.com
http://www.triplehash.com
when you mean run my own webserver, do you mean host my own domain? i'm not 100% clear on what Apache provides.
i did download phpdev4 from firepages.com.au, and it has Apache in it.
but when i open it, it looks like DOS and says Apache is running.
Now, i know this is supposed to happen (i'm not that dense on apache) i've researched some.
what really does hosting your own web server do?
i did download phpdev4 from firepages.com.au, and it has Apache in it.
but when i open it, it looks like DOS and says Apache is running.
Now, i know this is supposed to happen (i'm not that dense on apache) i've researched some.
what really does hosting your own web server do?
When you have Apache running (in the DOS like window) start up your favorite browser (NS/IE/Opera/Mozilla/ETC), and type in the following (default) address:
http://127.0.0.1/ which should correlate to your htdocs folder on your system. You are now running the webserver from that folder (which should be in your apache directory).
For example:
http://127.0.0.1/mypage/mydoc.html would be run from the windows path (depending on installation) C:/apache/htdocs/mypage/mydoc.html.
Hope this helps!
http://127.0.0.1/ which should correlate to your htdocs folder on your system. You are now running the webserver from that folder (which should be in your apache directory).
For example:
http://127.0.0.1/mypage/mydoc.html would be run from the windows path (depending on installation) C:/apache/htdocs/mypage/mydoc.html.
Hope this helps!
once you have apache up and running, open your favorite browser and go to http://127.0.0.1 (this is known as the localhost). if your box is also connected to the internet, you can also access your site from whatever that ip address is (something like 65.188.19.38 ).
all that happens when you buy a domain is that the name (whatever.com) is tied to a specified IP address and posted somewhere (a public DNS server) for all the world to see. that way, when someone types in the name, it is translated to the IP and shoots the request to that server.
all that happens when you buy a domain is that the name (whatever.com) is tied to a specified IP address and posted somewhere (a public DNS server) for all the world to see. that way, when someone types in the name, it is translated to the IP and shoots the request to that server.
Warning: Can't connect to MySQL server on 'localhost' (10061) in c:\phpdev\www\phpmyadmin\lib.inc.php on line 308
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in c:\phpdev\www\phpmyadmin\lib.inc.php on line 308
Error
MySQL said: Can't connect to MySQL server on 'localhost' (10061)
this is what it says every time i try and connect to mysql using apache (this is on PHPDev)
i've looked in their forums and nobody seems to know the solution
Warning: MySQL Connection Failed: Can't connect to MySQL server on 'localhost' (10061) in c:\phpdev\www\phpmyadmin\lib.inc.php on line 308
Error
MySQL said: Can't connect to MySQL server on 'localhost' (10061)
this is what it says every time i try and connect to mysql using apache (this is on PHPDev)
i've looked in their forums and nobody seems to know the solution
- FireyIce01
- Forum Newbie
- Posts: 6
- Joined: Fri Jun 21, 2002 2:16 pm
- Contact:
- sam
- Forum Contributor
- Posts: 217
- Joined: Thu Apr 18, 2002 11:11 pm
- Location: Northern California
- Contact:
You might want to give foxserv a try, I know some people that sware by it...
http://foxserv.sourceforge.com
Cheers Sam
http://foxserv.sourceforge.com
Cheers Sam