| | |
Can't get PHP to run ! Please help!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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!
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!
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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!
<? 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!
•
•
Join Date: Feb 2005
Posts: 31
Reputation:
Solved Threads: 2
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 !
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 !
•
•
•
•
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!
•
•
Join Date: Feb 2005
Posts: 31
Reputation:
Solved Threads: 2
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!
•
•
•
•
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!
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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)
![]() |
Similar Threads
- Compile PHP (PHP)
- .php does not run as a script (PHP)
- How to compaire Stored Dates with System Date (PHP-MYSQL) (PHP)
- PHP installation headache (PHP)
- how to make member expire after so many days with php script (PHP)
- PHP & File Extensions (PHP)
- Features in PHP 5 (PHP)
Other Threads in the PHP Forum
- Previous Thread: help with ip adresses!!!!!!!!!!!!!
- Next Thread: PHP - Half the way response and continue PDF processing
Views: 3180 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





