On 9 May 2011 14:53, Vincent McGinley <vmcginley@xxxxxxxxxxxxxxxxx> wrote: > Can you remove the @. >> >> Do you get an error? > Tried this and got same result (page loads up halfway and no error message). >> >> Can you change the location to "./folder/$Product.php" ? > Changed path and same result. >> > >> Does the file actually exist? > Yes. This all worked before. The only variable that has changed is the > upgrade to php5 >> >> Is the included file a PHP file? > Yes >> >> If the file is required_once, it can only be used once. Is that the issue? > I've tried required, include_once, include. The only difference is that > require and require_once only loads up half the page and inluce and > include_once loads up the whole page minus the information that the php is > looking for. >> >> include may be a better option here. >> >> > > > On 5/9/11 9:24 AM, "Richard Quadling" <rquadling@xxxxxxxxx> wrote: > >> On 9 May 2011 13:48, Vincent McGinley <vmcginley@xxxxxxxxxxxxxxxxx> wrote: >>> Hello I have one line of php code that would switch out information on a >>> webpage. >>> >>> Â<?php  @ require_once ("folder/$Product.php");  ?> >>> >>> This would pull in a div with an image and paragraph (the file would be >>> located within the same folder or subfolder). This simple code worked fine >>> until we upgraded to PHP5. Is there a slight tweak that needs to be done to >>> the code to get it to work again? >>> >>> Any help would be greatly appreciated. >>> >> >> Can you remove the @. >> >> Do you get an error? >> >> Can you change the location to "./folder/$Product.php" ? >> >> Does it now work? >> >> Does the file actually exist? >> >> Is the included file a PHP file? >> >> If the file is required_once, it can only be used once. Is that the issue? >> >> include may be a better option here. >> >> > > >From conversation webmaster (related to The PHP Group's web servers) to general (for general PHP support). Can you add the following to the top of your script ... <?php error_reporting(-1); // Report ALL errors, warnings, notices, etc. ini_set('display_errors', 1); // Display them as part of the output. // Your code below ... -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php