|  | |
12-21-2008, 12:38 AM
|
#1 (permalink)
|
Newb Techie Join Date: Sep 2008 Posts: 23
| Php help Hello everybody,i just began php yesterday and i've gone far cos i'm deep in html, but when i open my .php file in my browser from my disk, it does not show.Can anybody give me a hint on it?I'll be grateful |
| |
12-21-2008, 12:51 AM
|
#2 (permalink)
|
Wizard Techie Join Date: Feb 2006 Location: Maine Posts: 3,688
| Re: Php help Unlike HTML, PHP needs a webserver to run its interpreter.
Download a WAMP (preconfigured package containing Apache MySQL and PHP for Windows) such as AppServ or XAMPP or such.
Once you have a webserver installed, make sure Apache is running, put your .php files in the correct folder (for AppServ it is C:\AppServ\www by default) and then go to http://localhost/yourphpfile.php in your browser).
__________________ Need website help? PM me! |
| |
12-21-2008, 06:15 AM
|
#3 (permalink)
|
Newb Techie Join Date: Sep 2008 Posts: 23
| Re: Php help CrazeD, u're good.U see, iam a complete php noob and dont know what a WAMP is.can you please explain it and where to download it?i've downloaded and installed php5.Should i also download and install mysql?i'm ready to learn them.Thanks alot |
| |
12-21-2008, 04:45 PM
|
#4 (permalink)
|
Wizard Techie Join Date: Feb 2006 Location: Maine Posts: 3,688
| Re: Php help Well you can't just download and install. You also need Apache, and then to configure the PHP package with Apache, and then configure PHP/MySQL to work together.
If you wish to install it all separately, I can try to help or you can check out one of the many guides. However, I recommend, since you're a beginner, to install a WAMP.
A WAMP is Apache, PHP, and MySQL all preconfigured, so you just install one thing and everything works like a charm. AppServ XAMPP
__________________ Need website help? PM me! |
| |
12-21-2008, 08:58 PM
|
#5 (permalink)
|
Join Date: Jul 2005 Location: England Posts: 2,185
| Re: Php help I haven't tried AppServ but XAMPP is a very quick, easy way to get it all started up and working on windows and has a nice control panel.
__________________ MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11 
There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page |
| |
12-22-2008, 09:13 PM
|
#6 (permalink)
|
True Techie Join Date: Dec 2008 Location: Rx Counter Posts: 147
| Re: Php help Quote:
Originally Posted by kmote I haven't tried AppServ but XAMPP is a very quick, easy way to get it all started up and working on windows and has a nice control panel. | Xampp is good for the people getting started out, but when you get a good grip on PHP, you should look into working with installing it from scratch, its a good learning experience and helps you get to know PHP settings in php.ini which you can even tweak from individual scripts when needed (yay ini_set())
Anyway, thats just a little positive thing I thought might peak your interest, if you ever want to pursue that I can give you step by step (ive done XP and Vista setups for Apache, PHP, MySQL more times than i care to mention :-P)
Give me a hollar if your interested,
Dr. House |
| |
12-22-2008, 09:37 PM
|
#7 (permalink)
|
Wizard Techie Join Date: Feb 2006 Location: Maine Posts: 3,688
| Re: Php help Quote:
Originally Posted by tertiaris Xampp is good for the people getting started out, but when you get a good grip on PHP, you should look into working with installing it from scratch, its a good learning experience and helps you get to know PHP settings in php.ini which you can even tweak from individual scripts when needed (yay ini_set())
Anyway, thats just a little positive thing I thought might peak your interest, if you ever want to pursue that I can give you step by step (ive done XP and Vista setups for Apache, PHP, MySQL more times than i care to mention :-P)
Give me a hollar if your interested,
Dr. House | Agreed.
It also allows you to install custom packages and other stuff more easily, like Perl and Python and stuff.
__________________ Need website help? PM me! |
| |
12-22-2008, 09:40 PM
|
#8 (permalink)
|
True Techie Join Date: Dec 2008 Location: Rx Counter Posts: 147
| Re: Php help Quote:
Originally Posted by CrazeD Agreed.
It also allows you to install custom packages and other stuff more easily, like Perl and Python and stuff. | I wholly agree with that, I remember trying to get GD and a few others up and running, just had to move a .dll file in the right place and restart Apache and vua la! Magic
Good stuff
__________________ Dr. House
--------------------------------------------------
Antec 900, P5K SE, E8400 "Wolfdale" 4.06GHz, Tuniq Tower, 4Gb GSkill DDR2 891, WD Caviar SE16 250, Radeon 4670 HD, WD Raptor WD1500ADFD (for sale, ~$900)
Thinkpad T61 CTO 2.2 Ghz Core 2 Duo, 2 gig, 100 gig 7200 RPM, 15.4" wide screen (for sale ~$800)
MacBook Pro C2D 2.2GHz 4 gig, 100 gig 7200 RPM
PowerBook G4 Aluminum |
| |
12-23-2008, 09:06 AM
|
#9 (permalink)
|
Join Date: Jul 2005 Location: England Posts: 2,185
| Re: Php help Oh yeah, I would never use XAMPP in production, it's just a dev tool really. I think that it even says as much in the documentation.
__________________ MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11 
There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page |
| |
12-23-2008, 12:24 PM
|
#10 (permalink)
|
True Techie Join Date: Dec 2008 Location: Rx Counter Posts: 147
| Re: Php help Quote:
Originally Posted by kmote Oh yeah, I would never use XAMPP in production, it's just a dev tool really. I think that it even says as much in the documentation. | It is true, you should never use something like that.
I guess that is it
__________________ Dr. House
--------------------------------------------------
Antec 900, P5K SE, E8400 "Wolfdale" 4.06GHz, Tuniq Tower, 4Gb GSkill DDR2 891, WD Caviar SE16 250, Radeon 4670 HD, WD Raptor WD1500ADFD (for sale, ~$900)
Thinkpad T61 CTO 2.2 Ghz Core 2 Duo, 2 gig, 100 gig 7200 RPM, 15.4" wide screen (for sale ~$800)
MacBook Pro C2D 2.2GHz 4 gig, 100 gig 7200 RPM
PowerBook G4 Aluminum |
| |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | |