PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
thanks for anyone who can help on this. I am sure that someone out there get to be smarter than me.
I got a parse error from a php generated php file.
Here is the php file to generate php code.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Thanks for looking over the code. But get ride of code is something I can not do. It is the main source of the code that we used to create more than 100,000 pages each day. It always working fine. Until I recently added few more javascript and php code to the output buffer section. I am still looking for answers to see if anyone had this problem before and what is the solution.
does anyone every see php Output something like this before?
[syntax="html"]<script>
if(alert)
{
alert("this is a alert statement");
}else
{
alert("Don't alert anything");
}
</script>t("this is a alert statement");
}else
{
alert("Don't alert anything");
}</script>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Thanks for the comment Everah. <?php ob_flush(); ?>ched == 1) is generated by php code.
My php code generated all the way to <?php ob_flush(); ?>
some how something else is adding "ched == 1) " and other code behind it. I am still trying to figure out where it is generated. but I have no more php code after <?php ob_flush(); ?>
Still looking for someone had this problem.
example:
php code
<php?
ob_start();
print("This is first line.<br>");
print("this is second line.<br>");
ob_flush();
?>
OUTPUT:
This is first line.
This is second line.irst line
This is second line.
Something is messed up. Its like appears there are nested ob_cache() statements and its like reechoing everything but only getting half of it. I don't even know where to start troubleshooting that, its a real mess.