You are here: Re: Fatal error - Nesting too deep « PHP Programming Language « IT news, forums, messages
Re: Fatal error - Nesting too deep

Posted by Jerry Stuckle on 06/12/06 20:48

Robert Iver wrote:
> I would change the code to the following and see what happens:
>
> <HTML>
> <HEAD></HEAD>
> <BODY>
> <?php
> echo("Hello World!");
> // need parentheses for echo() function
> ?>
> </BODY>
> </HTML>
>
> Also, make sure the filename has the .php extension and not .html
>
> Let me know if that works for you....
>
> TristaSD wrote:
>
>>Here's my code:
>>
>><html>
>><head>
>></head>
>>
>><body>
>>
>><?
>> echo "Hello, world!";
>>?>
>>
>></body>
>></html>
>>
>>Here's my output:
>>
>>Hello, world!
>>Fatal error: Nesting level too deep - recursive dependency? in Unknown
>>on line 0
>
>
HTML tags are case-insensitive, so <html> is exactly the same as <HTML>. No
problem there.

And no, echo does not require parens.

This should work. Or, if the file is tagged .html instead of .php, he'd only
get the php code displayed. Obviously the php code is being executed, so that's
correct.

I'd check the php.ini file first, just to ensure that looks ok (does a phpinfo()
call work?). And disable all extensions you don't need for this test (that is,
probably ALL extensions). If it now works, re-enable them one at a time and see
which is causing the problem (stop/restart your server between tries - don't
just do a restart).

Then check the web server setup to ensure you're using the version you think
you're using.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация