Welcome Guest ( Log In | Register)



2 Pages V   1 2 >  
Closed TopicStart new topic
> Testing Php?, How can I test it offline?
JeffS
post Apr 12 2005, 07:17 PM
Post #1


Newbie [Level 2]
**

Group: Members
Posts: 31
Joined: 11-April 05
From: Hamilton. On. Can.
Member No.: 5,507



Hi guys. I'm wanting to learn PHP. Is there a way I can check my code to see if it works without having to upload it to my server? Could it be that my computer doesnt have PHP installed or something? Can someone please show me where to download it and how to set it up? Thanks a lot. help is greatly appreciated.
Go to the top of the page
 
+Quote Post
serverph
post Apr 12 2005, 07:22 PM
Post #2


Ancient Enigma
Group Icon

Group: [MODERATOR]
Posts: 1,846
Joined: 11-July 04
From: under the stars
Member No.: 76
myCENT:8.86



do a quick search for XAMPP using trap17 search above. smile.gif it's what i use to test my PHP/MYSQL offline.
Go to the top of the page
 
+Quote Post
JeffS
post Apr 12 2005, 07:48 PM
Post #3


Newbie [Level 2]
**

Group: Members
Posts: 31
Joined: 11-April 05
From: Hamilton. On. Can.
Member No.: 5,507



Thanks for the quick reply. THis is exactly what I was looking for. I cant belive it comes with that much stuff. Just the thing I was hoping for from a friendly neighbourhood moderator.
Go to the top of the page
 
+Quote Post
JeffS
post Apr 12 2005, 08:46 PM
Post #4


Newbie [Level 2]
**

Group: Members
Posts: 31
Joined: 11-April 05
From: Hamilton. On. Can.
Member No.: 5,507



Sorry I cant find an edit button...

Could you tell me how to get it to run so I see the output and not the code in my browser?
Go to the top of the page
 
+Quote Post
Johnny
post Apr 13 2005, 05:07 AM
Post #5


[::Boy Wonder::]
***************

Group: Members
Posts: 2,096
Joined: 5-April 05
From: Costa Mesa, CA
Member No.: 5,294
T17 GFX Crew



Hm, sorry I can't help you with that, as I've never used Xampp, but I think I may just try. Looks interesting.
Go to the top of the page
 
+Quote Post
no9t9
post Apr 13 2005, 06:10 AM
Post #6


Privileged Member
*********

Group: Members
Posts: 773
Joined: 4-November 04
Member No.: 2,118



i have never used that program either but you can setup php on your own computer so you can view the output in internet explorer. Basically, you need to install IIS (comes with windows XP PRO). Under control panel choose add/remove programs, then install/remove windows components and pick IIS. Next, you need to download the php files (windows install) and run the install program. It will set everything up for you. After that, if you view php files in IE it will display properly.

php download is here
http://www.php.net/downloads.php
Go to the top of the page
 
+Quote Post
Saint_Michael
post Apr 13 2005, 06:50 AM
Post #7


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,807
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew
myCENT:62.60



due to the fact that i can't read german im hacing a problem installing its saying that im missing the php cli file using windows version
Go to the top of the page
 
+Quote Post
theRealSheep
post Apr 13 2005, 07:41 AM
Post #8


Member [Level 1]
****

Group: Members
Posts: 69
Joined: 12-March 05
From: Australia
Member No.: 4,401



For my offline web page workings in PHP and MySQL, I use Firepages phpdev - http://firepages.com.au
It sets up everything on your Windows machine where it runs Apache with PHP installed on that. I'm still using the old version phpdev4, but there is a newer version called phpdev423 which has PHP 4.2.3 included.
They have a big support forum if you get in trouble, but I have never needed it as it all runs smoothly even on my Win98SE machine.
Go to the top of the page
 
+Quote Post
serverph
post Apr 13 2005, 08:09 PM
Post #9


Ancient Enigma
Group Icon

Group: [MODERATOR]
Posts: 1,846
Joined: 11-July 04
From: under the stars
Member No.: 76
myCENT:8.86



QUOTE(JeffS @ Apr 13 2005, 04:46 AM)
Sorry I cant find an edit button...

Could you tell me how to get it to run so I see the output and not the code in my browser?
*



check your xammp folder and you should see some exe files to START and STOP running xampp. smile.gif create desktop shortcuts so you can easily have access to these. once xampp is running (use the START one), you can type http://localhost/ in your browser and work your way from there. (for more info, there should also be readme files in english and german in your xammp folder. smile.gif readme_en is the english one [just in case it may not be obvious to some tongue.gif].)

caveat: make sure you have the correct xampp download for the OS you have. there are 4 distribution types: linux, windows, mac os x, and solaris.

here's some FAQs:
http://www.apachefriends.org/en/faq-xampp.html
(don't worry, Saint_Michael, it's in english tongue.gif)
Go to the top of the page
 
+