From: Mohammad Taghi Khalifeh > On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell <rvm@xxxxxxxxx> wrote: >> From: Mohammad Taghi Khalifeh >>> Hi there, >>> I have a package written in pure PHP, some .php files that refer to >>others >>> via require_once(''), >>> but when I try to see package's contents via a browser, the pacakge >>just >>> shows nothing: a blank page. >>> I've activated all log levels, and it seems that php doesn't encounter >>any >>> problem. >>> I'm using PHP 5.3.3 and apache httpd 2.2. >>> FYI, I'm new to PHP and this mailing list :) >>> I would appreciate if someone could help me. >> >> One of the irregularities about require_once is that if there is a >> syntax error anywhere in the chain, the interpreter simply exits without >> emitting anything. If you have display errors turned off, you get >> nothing at all. There may be clues in the Apache error log, but don't >> depend on it. To debug, enable errors temporarily, or print some bread >> crumbs at the start of each file. That should at least help identify how >> far you get before it fails. > > the files are so many, so I think tracking problem by printing some > bread crumbs at the start of each file is not easy, > something that might help is that I've turned on magic_quotes_gpc because > of the package developer's suggestion. > but I got this warning in both php log: > > "PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and > greater in Unknown on line 0" > is this warning mean that 'magic_quotes_gpc' will not work properly? so > whats the alternative? No, As long as it is just a warning it still works correctly, The message simply points out that magic quotes was a terrible idea and they are finally going to remove it from the language. You should never have to use it. You will probably have to selectively add breadcrumbs to isolate which file or files are causing your problem. Even if you put them in every fourth file, you at least get some idea where to start digging. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php