|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11331 Parse error in php file
Submitted: 2001-06-07 12:18 UTC Modified: 2001-06-11 06:39 UTC
From: akhil_chugh at yahoo dot com Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 4.0.5 OS: Red Hat 6.2
Private report: No CVE-ID: None
 [2001-06-07 12:18 UTC] akhil_chugh at yahoo dot com
i tried to configure php 4.0.5 with mysql 3.23.38 
 i first downloaded and started the mysql server it is working fine with any user name. i am sure of that
 then i installed php 4 with the options as 

 ./configure --with-mysql=/usr/local/mysql --with-apxs

i checked up my apache configuration and it had DSO pre confiured
 the make and install of php was successfull
 i restarted the apache server after addign the lines for loading the php type as

 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps

but now even if a run a simple hello world php i get a error as below
 the file i was runnign was
<html><head><title>PHP Test</title></head>
<?php echo "Hello World<p>"; ?>

and the error i got was of this form

hello.php: parse error, expecting `'('' on line 3
<?php echo "Hello World" <p>?>

pls suggest what can i do about it??


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-07 14:52 UTC]
Your script is buggy.

 [2001-06-11 06:39 UTC] akhil_chugh at yahoo dot com
so how do i get rid of the problem
 i want a solution to the problem
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 05:01:28 2024 UTC