Re: help out a noob w/ include & switch?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux