943,985 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3859
  • PHP RSS
Feb 13th, 2005
0

Can't get PHP to run ! Please help!

Expand Post »
Hi folks....

OK, I'm attempting to learn several extras to go towrds web programming... and have come to the conclussion the best way to learn it all is to fiddle.... the best way to fiddle is at home...securely....so

I am trying to set my PC up as a server... Apache, Php and MySQL....
Setting up the apache was a cinch.... have had days of trouble geting php to be recognised... yet after a day out sparring with a Gracie, I come back and have got the initial part right.. APACHE recognises php now.... yet I can't get phpinfo.php to run... no details at all!

All I get is...
"Parse error: parse error in c:\web\www\phpinfo.php on line 1"

So, any ideas as to my problem?
Could it be the php.ini file... the instructions have told me it's all set.... yet I can't help feeling I should have changed atleast the roots etc.!

Don't want to fiddle with it as I might break it... and have to do it all again!

Any help would be great!
Similar Threads
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Feb 13th, 2005
0

Re: Can't get PHP to run ! Please help!

autocrat,

Open phpinfo.php file and replace contents with

<?php phpinfo(); ?>


Good Luck
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aiostore is offline Offline
1 posts
since Feb 2005
Feb 16th, 2005
0

Re: Can't get PHP to run ! Please help!

Cheers for the reply... managed to fix it about 2 minutes after posting... the example I had went....

<? php phpinfo(); ?>

where as it should have been without the spaces....

<?php phpinfo();?>

Typical!
The amount of times I unistalled all of it.... and that was the problem! STUPID GUIDE that I was following... I have sent an E-mail, and th ebugger hasn't replied!

Still, thank you for helping!
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Feb 19th, 2005
0

Re: Can't get PHP to run ! Please help!

Hey Autocrat, here is what I did to make it simple for me to get going with prototyping and development.

One - I have a W2K server and LAN. So I installed MySQL on the server, created databases, accounts, etc. and verified I could access the database, etc. Once that was resolved I was ready to proceed to the next step.

Two - In my case, I had IIS built into W2K Server so I weighed the value of installing Apache versus using IIS. For me, 99% of what I need to do will be fine in my development environment on IIS. I have used Apache in the past and frankly for my needs, having to configure yet another app was not too appealing. Thus I live with IIS and its quirks. After all, the only thing I need is a web sever that works. :o

Three - Here is where I added PHP, and I chose PHP 5 over PHP 4 because it readily integrated with IIS and MySQL out of the box so to speak. Basically I ran SETUP on my W2K Server, then tried out a simple Hello World script on my laptop and verified that the HTTP and PHP integration was working. No kidding after running the PHP SETUP program that was pretty easy. I will say if you are coming from a PHP 4 environment, PHP 5 has some subtle changes which you need to be aware of as you proceed.

Good luck with your config !

Quote originally posted by autocrat ...
Hi folks....

OK, I'm attempting to learn several extras to go towrds web programming... and have come to the conclussion the best way to learn it all is to fiddle.... the best way to fiddle is at home...securely....so

I am trying to set my PC up as a server... Apache, Php and MySQL....
Setting up the apache was a cinch.... have had days of trouble geting php to be recognised... yet after a day out sparring with a Gracie, I come back and have got the initial part right.. APACHE recognises php now.... yet I can't get phpinfo.php to run... no details at all!

All I get is...
"Parse error: parse error in c:\web\www\phpinfo.php on line 1"

So, any ideas as to my problem?
Could it be the php.ini file... the instructions have told me it's all set.... yet I can't help feeling I should have changed atleast the roots etc.!

Don't want to fiddle with it as I might break it... and have to do it all again!

Any help would be great!
Reputation Points: 10
Solved Threads: 3
Light Poster
mcldev is offline Offline
31 posts
since Feb 2005
Feb 20th, 2005
0

Re: Can't get PHP to run ! Please help!

thanks for the posts... got it working though.... (haven't really done much yet, playing with sodding CSS at the moment!)..... all I have to do is find a visual front end builder to link mysql to php!
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005
Feb 22nd, 2005
0

Re: Can't get PHP to run ! Please help!

You might try this IDE, http://www.enginsite.com/. You can download it for free, but $69 to keep it going after 18 days. That said, you can get a Perl editor as well. I think for the price, includes a PHP engine and built in HTTP server, its a cheap solution - compared to Zend. Good luck!
Quote originally posted by autocrat ...
thanks for the posts... got it working though.... (haven't really done much yet, playing with sodding CSS at the moment!)..... all I have to do is find a visual front end builder to link mysql to php!
Reputation Points: 10
Solved Threads: 3
Light Poster
mcldev is offline Offline
31 posts
since Feb 2005
Feb 24th, 2005
0

Re: Can't get PHP to run ! Please help!

Thanks for the reply, yet it seems to be the same sort of thing I already have. When I said ...."visual front end builder".... I meant the same sort of thing Access does when generating gforms or reports.... either direct control of what elements/fields go where on teh page, or wizards to help generate such, but using things like drag and drop, object selection then allocating origin of source etc. (make sense?), rather than a program to enable me to code php/mysql etc..... plenty of them available, and I think I have most of the rated ones! (LOL - I trawl the net so much, I end up with atleast 16 files a month that I have no idea what they are! Keep them though.. LOL)
Reputation Points: 63
Solved Threads: 12
Posting Pro in Training
autocrat is offline Offline
427 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: help with ip adresses!!!!!!!!!!!!!
Next Thread in PHP Forum Timeline: PHP - Half the way response and continue PDF processing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC