PDA

View Full Version : Can you test PHP without the Internet?



milkshake2004
November 5th, 2004, 10:38 PM
I need help, I have a few scipts that I am putting on my website. I want to know if you can set a computer up to test PHP without the internet, Since I don't have the internet on the computer that I am building this website on since that one is better with that sort of thing. So is there a way where I can set it up? A page or tutorial or sompthing. Thanks ;)

signifer123
November 6th, 2004, 01:18 AM
Well you can get apache and jakrata tomcat then install hphp on your system and it should work i'm just havn't figured out how to make it work on mine but there are alot of tutorials out there

ahmed
November 6th, 2004, 01:41 AM
http://www.kirupa.com/web/apache_php.htm

Follow that, then you can access your server through

http://localhost/
or
http://127.0.0.1/

both should work :)

milkshake2004
November 6th, 2004, 02:11 AM
Thanks very much, Ill try it since its just a little easier for me. Will it work with MySQL? I don't need anything else just that, and PHP.

milkshake2004
November 6th, 2004, 03:15 AM
Ok, I tried it. It installed correctly and everything but when I tried to get it to work like the little script that Kirupa gave to us to try out it just came a blank page (I used .php) and then I installed a .php script that I downloaded and all that happened is it came up the .php/.html in the file and I know thats not whats ment to happen. So if anyone has another way of doing it I would love to know!

Maniaci
November 6th, 2004, 03:25 PM
Easiest thing to do is to get IBSERVER: (http://ibsoftware.d2digitalmedia.com/ibserver) (http://ibsoftware.d2digitalmedia.com/ibserver/)

Go to the downloads section and get the "Full Install" and install it. More than likely you will get an error when you first try and run the IBSERVER.exe. To fix this, go back to the downloads section and get the "IBserver Control Panel (Bug Fixes)," and run it. If you do not get an error, don't worry about downloading and installing that.

IBserver will automatically install and configure Apache, PHP, and MySQL. Put all the files of your site into the "www" directory in the IBserver folder. This will make your site accessible through http://localhost/yoursite/.

milkshake2004
November 6th, 2004, 04:20 PM
Ill try that now, Thanks Maniaci!..
I am getting a DSL connection on that computer in a few weeks but I need to test them out now so that when I do get it that I can just upload a whole site, with News Posting and that. And Im doing all my pages in PHP so I can actually test them.

milkshake2004
November 6th, 2004, 06:30 PM
Works like a charm, Thanks Maniaci. I works so GOOD! I have a forum working off it, a News Posting thing running off it, I don't know how much I can thank you!

laling
December 3rd, 2004, 04:50 PM
how exactly do you use the IBSEVER??!?!?!?! I tried and im so clueless? can anyone help?

eyezberg
December 4th, 2004, 04:52 AM
I use www.easyphp.org , one-click install of everything you need,
then launch app, you'll have an "e" in the taskbar next to clock,
right-click and select manage, or local etc..
very easy to use.. as the name implies..

ya3
December 4th, 2004, 05:03 AM
nonono! just install MS IIS (internet information services) - windows' inbuilt webserver. then install php. it's the easiest way - ive done it before.

just go to 'add/remove programs' > 'windows components' and find Internet Information Services. once it's installed, download php and install that.

now you're running a php-enabled local web-server.
type http://localhost/ to see it.

put your files in C:\inetpub\wwwroot OR you can simply make any folder available on your local web-server by right-clicking the folder and selecting the 'web sharing' tab. give the folder an alias to be used for the web-server, then you can access it via http://localhost/foldername/

easy :D

λ
December 4th, 2004, 03:13 PM
nonono! just install MS IIS (internet information services) - windows' inbuilt webserver. then install php. it's the easiest way - ive done it before.

just go to 'add/remove programs' > 'windows components' and find Internet Information Services. once it's installed, download php and install that.

now you're running a php-enabled local web-server.
type http://localhost/ to see it.

put your files in C:\inetpub\wwwroot OR you can simply make any folder available on your local web-server by right-clicking the folder and selecting the 'web sharing' tab. give the folder an alias to be used for the web-server, then you can access it via http://localhost/foldername/

easy :D
Yeah, but if you're using an Apache server for your production site (and most people are), then it's generally a better idea to use Apache for your testing server as well.

Plus, Apache doesn't suck balls, and you're unlikely to get 0wned within ten minutes if you install Apache.. (sorry, I just couldn't resist :P)

ya3
December 4th, 2004, 06:51 PM
lol, yeah.
IIS < Apache

btw, doesn't Mac OS X come with Apache and PHP pre-installed?

immortalsails
December 4th, 2004, 08:14 PM
yes, mac ox does come with apache installed. you just have to turn it on... getting a web server up and running on a mac is cake....

bigmtnskier
December 5th, 2004, 03:34 PM
:: This is how I would do it.

-Download and Install Apache (free)
-Download and Install PHP (free)

This works great for me.