getting Parse error: parse error in C:\wamp\www
Posted by: jasonc310771 (---.zone4.bethere.co.uk)
Date: September 11, 2010 08:54PM

Hi,

After installing this I get the following error...


Parse error: parse error in C:\wamp\www\index.php


the line it refers to is the </body></html> at the end of the file?!

I have all the PHP files start with <?php

and also inside the file where i have the <? i have replaced with <?php but still i get the same error.

i have no idea what else to do to get this working.

I looked in apache_error.log file via the menu by the clock and this shows the same error and nothing else to help me try to solve the problem.

is there something else i need to do?

i have PHP, MySQL, JavaScript and FLASH in my page.

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: September 11, 2010 09:19PM

U have a mistake somewhere..
with out all the code... we cant help

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: jasonc310771 (---.zone4.bethere.co.uk)
Date: September 11, 2010 09:35PM

i did a test and put

<?php
phpinfo();
?>

in a test file and that shows an empty page, but on viewing the source code i see the php file itself.

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: jasonc310771 (---.zone4.bethere.co.uk)
Date: September 11, 2010 09:49PM

ok i forgot to add the <?php to the start of the file!

but still i get the error on my main site which works fine on the live server i have no problems with it for ages and not many changes.

i have changed all the <? to <?php

i would supply the code but its like over 3000 lines long, its made up of many include files, to many to try and prevent some from being included to find out if one of my files may have an error even though they work fine on my hosts server?!

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: September 11, 2010 09:54PM

left click the wamp icon> php>settings> short_open_tags


this will allow <? just incase u missed one

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: jasonc310771 (---.zone4.bethere.co.uk)
Date: September 11, 2010 10:50PM

opted to visit the live site and grab a copy of the source code and created a new file, then removed bit by bit each section i could untill i found what may be causing the problem.

i now have the site working as i think it should, images show a load of 'Notices' and stuff like that but seems to be ok now.

i have done a search for all '<?' but can not find the one that may be causing this. if any but changing that setting made a differance.

now i just have stacks of Notices on the screen, is there a way to disable these?
they are just the $_POST['abc'] undefind index...

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: September 11, 2010 10:58PM

in the php.ini turn off notices

about line 514

error_reporting = E_ALL

change to

error_reporting = E_ALL & ~E_NOTICE

save and restart wamp

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: getting Parse error: parse error in C:\wamp\www
Posted by: vladyn (---.multimedia-bg.net)
Date: March 31, 2011 04:56PM

Thank you guys - I found the answer here, in this topic - many thanks again
[SOLVED]
Hey I have exact same problem - for unknown reason my local WMAP says on every files

"Parse error: parse error in C:\wamp\www\gm\index.php on line 103"

where Line XXX is my last line from the files

I don;t have this problem on my MAMP server (mac version) or either on both servers - stage and production.

Options: ReplyQuote


Sorry, only registered users may post in this forum.