php not working?

This is a discussion on "php not working?" within the PHP Forum section. This forum, and the thread "php not working? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 16th, 2007, 02:56
New Member
Join Date: Apr 2007
Location: in every woman's shirt
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
php not working?

Ok, I downloaded it, and then i did what it said in the tutorial, and made a notepad document saved as test.php and put
PHP: Select all

<?
phpinfo
();
?>
then ran it as an htm file and nothing! help! i also installed apache 2.0 before this as well as mysql. all went smoothe. is there something more that i hafta do than run the installers??? (i'll keep this thread as my neverending php questions too, but this is most important)
Reply With Quote

  #2 (permalink)  
Old Apr 16th, 2007, 08:15
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php not working?

First off.... dont just use this thread, create a new thread for each specific problem, that way its easier for others to find the information later.

As for your problem here, have you installed php mysql and apache seperatly? Or have you used WAMP or XAMP... or whatever the most popular is these days (i still use WAMP)
Reply With Quote
  #3 (permalink)  
Old Apr 16th, 2007, 23:31
New Member
Join Date: Apr 2007
Location: in every woman's shirt
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php not working?

uhh... isnt this a new thread??? anyways, heres what i did:
i downloaded php installer, apache 2.0 installer, mysql installer, all separately installed in that order. i use windows xp. should i have done it another way? (please be specific and maybe lend me a link cuz im n00b at php, only know java well)
Reply With Quote
  #4 (permalink)  
Old Apr 17th, 2007, 08:00
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php not working?

Quote:
Originally Posted by gsquare567 View Post
(i'll keep this thread as my neverending php questions too, but this is most important)
That was what i was referring to.

Doing it that way is fine .... but its by no means the easiest.

I use WAMP ... which is a little program that contains all of the bits you downloaded seperatly, and also has a nifty interface...

btw... do you have phpmyadmin?... you'll probably need that too... and its in wamp.

Now, i think the prefered utility nowadays is summint called XAMP, but ive never used that......

WAMP is not easy to install.... but, with a little patience and the help of google, you should get it up and running in no time. for wamp and xamp and see which you prefer.
Reply With Quote
  #5 (permalink)  
Old Apr 17th, 2007, 09:53
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crewdesign
Re: php not working?

You said you ran it as an htm file? you need to save it with the .php extension
Reply With Quote
  #6 (permalink)  
Old Apr 18th, 2007, 08:26
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php not working?

lol well noticed crew ... /me slaps myself
Reply With Quote
  #7 (permalink)  
Old Apr 18th, 2007, 11:13
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crewdesign
Re: php not working?

hee hee aww my message is to short
Reply With Quote
  #8 (permalink)  
Old Apr 24th, 2007, 18:28
New Member
Join Date: Apr 2007
Location: in every woman's shirt
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php not working?

ok, i installed xampp, and i still get a blank page when i run
PHP: Select all

<?php
   phpinfo
();
?>
you said something about not running it through an internet file, cuz i saved it as test.php and the icon is mozilla firefox, so when i double click on it it opens a new blank tab.
Reply With Quote
  #9 (permalink)  
Old Apr 24th, 2007, 18:40
Junior Member
Join Date: Apr 2007
Location: London, England
Age: 22
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JasonStanley Send a message via Skype™ to JasonStanley
Re: php not working?

Just to make sure you are actually going to the right page... go to http://localhost/filename.php

Furthermore make sure the file is saved as .php

I don't know much about xampp. I recently installed apache though. Its better to install apache first, then the php installer. The php installer will then update your apache configuration file which is called httpd.conf. The php installer will add line which has \\ between each file. If you switch these to / then it will probably work.
Reply With Quote
  #10 (permalink)  
Old Apr 24th, 2007, 18:50
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to crewdesign
Re: php not working?

you will need to save the test.php file in the xxamp/htdocs folder
Reply With Quote
  #11 (permalink)  
Old Apr 24th, 2007, 18:52
New Member
Join Date: Apr 2007
Location: in every woman's shirt
Age: 18
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php not working?

ok, tried that and still a blank page.
Reply With Quote
Reply

Tags
php

Thread Tools

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
CSS not working in IE? Jgag Web Page Design 2 Jun 5th, 2008 11:14
Why is this not working! Jack Franklin PHP Forum 7 Mar 25th, 2008 10:34
PNG - IE not working Phixon Web Page Design 3 Nov 30th, 2007 13:47
PHP not working toolmania1 PHP Forum 1 Nov 1st, 2006 05:57


All times are GMT. The time now is 01:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43