You are here: Re: [PHP] help out a noob w/ include & switch? « PHP « IT news, forums, messages
Re: [PHP] help out a noob w/ include & switch?

Posted by Robert Cummings on 09/21/05 02:50

On Tue, 2005-09-20 at 19:41, jt wrote:
> Thanks Thorsten and Rob,
> Sry my bogus code was error filled. This is not the case with the actual
> code. I was a little quick in removing the large amounts of text that are
> actually contained in the cases and "case 1,2,3:" is just to say there are
> many more cases. Could this be a problem - Is the server trying to return the
> values with $_GET to the browser? I assume the text from the content.php and
> navigation.php would be inserted on the server but I don't really know. In
> your suggestion, Thorsten, I actually used case "artist1" rather than case
> 'artist1'. I switched to single quotes and there is no difference.
>
> To the .ini settings suggested by both, I don't know what to do. If the
> problem is with a server setting, I have to know what it is to tell my server
> admin to change. He's not familiar with PHP as he uses CFM. He has a PHP
> server running just in case someone asked for it. I am the first. From
> phpinfo() I have found these two settings: "include_path .;C:\PHP\pear" for
> local and master; and "error_reporting" is 341 for local and master. I don't
> know if these are correct or how I should code my site to fit within them.

Add this to the top of your script (at least while debugging):

ini_set( 'display_errors', 1 );
ini_set( 'error_reporting', -1 );

That way all problems will be displayed to you in your browser. You
might also want to change the include to require, then PHP will generate
an error if it can't find the the file. let us know what turns up.

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

 

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

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