Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 12-21-2008, 12:38 AM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2008

Posts: 23

emuobo is on a distinguished road

Default 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
emuobo is offline  
Old 12-21-2008, 12:51 AM   #2 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default 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!
CrazeD is offline  
Old 12-21-2008, 06:15 AM   #3 (permalink)
 
Newb Techie

Join Date: Sep 2008

Posts: 23

emuobo is on a distinguished road

Default 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
emuobo is offline  
Old 12-21-2008, 04:45 PM   #4 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default 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!
CrazeD is offline  
Old 12-21-2008, 08:58 PM   #5 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,185

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default 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
kmote is offline  
Old 12-22-2008, 09:13 PM   #6 (permalink)
Dr.House's Avatar
 
True Techie

Join Date: Dec 2008

Location: Rx Counter

Posts: 147

Dr.House is on a distinguished road

Send a message via AIM to Dr.House
Default Re: Php help

Quote:
Originally Posted by kmote View Post
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
Dr.House is offline  
Old 12-22-2008, 09:37 PM   #7 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: Php help

Quote:
Originally Posted by tertiaris View Post
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!
CrazeD is offline  
Old 12-22-2008, 09:40 PM   #8 (permalink)
Dr.House's Avatar
 
True Techie

Join Date: Dec 2008

Location: Rx Counter

Posts: 147

Dr.House is on a distinguished road

Send a message via AIM to Dr.House
Default Re: Php help

Quote:
Originally Posted by CrazeD View Post
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
Dr.House is offline  
Old 12-23-2008, 09:06 AM   #9 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,185

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default 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
kmote is offline  
Old 12-23-2008, 12:24 PM   #10 (permalink)
Dr.House's Avatar
 
True Techie

Join Date: Dec 2008

Location: Rx Counter

Posts: 147

Dr.House is on a distinguished road

Send a message via AIM to Dr.House
Default Re: Php help

Quote:
Originally Posted by kmote View Post
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
Dr.House is offline  
 
Closed Thread

Tags
php, preview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP - Search for "X" in multiple PHP files Mathias Programming Discussions 1 09-13-2008 04:35 PM
Removing PHP For Increased Download Speed Rex100 Programming Discussions 4 07-21-2008 03:49 PM
PHP Coding Pat_pet Programming Discussions 8 03-26-2008 06:41 AM