Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » problem with PHP and Apache
Closed Thread
Old 02-19-2004, 08:01 PM   #1 (permalink)
 
Banned

Join Date: Jan 2004

Posts: 471

subdivizion

Default problem with PHP and Apache

i'm running Apache 1.3 with PHP 4 support and MySQL. I installed using the AppServ bundle from www.appservnetwork.com. i created some PHP sites but none of them seem to work. even the simplest such as:

<?php
phpinfo();
?>

won't work. i keep getting the error:

Parse error: parse error, unexpected T_STRING in x:\xxxxxx\xxxxx\test.php on line 1

Any help? I'm new in PHP and Web desing. thanx.
subdivizion is offline  
Old 02-19-2004, 08:02 PM   #2 (permalink)
 
Banned

Join Date: Jan 2004

Posts: 471

subdivizion

Default

also i might add, i get this error when i visit the page from my browser http://localhost/test.php

when i open the file, i get an empty page!
subdivizion is offline  
Old 02-19-2004, 09:08 PM   #3 (permalink)
 
Banned

Join Date: Jan 2004

Posts: 471

subdivizion

Default

never mind. i found the problem in the code. somehow Dreamweaver inserts a line that creates problems when using XHTML!
subdivizion is offline  
 
Closed Thread

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