Toby: You might want to try the path name, not the URL (unless you really want to include the URL). I've also had errors pop up when you don't put double quotes around the file name. Also, can you input an include statement to a variable?!? I've never tried that, and I don't see why you would want to?
Try include "cat_display.php"; or include "e:\final project\zroot\cat_display.php"; as well as commenting out your PHP.INI's include_path line. Also, the error messages should give you a clue: Warning: Failed opening 'http:\localhost\cat_disply.php' for inclusion (include_path='C:\WINDOWS\system32\inetsrv\php') in e:\final project\zroot\z3.php on line 3 http:\localhost won't work... Fatal error: Failed opening required 'e:/final project/zrootcat_disply.php' (include_path='E:\final project\zroot') in e:\final project\zroot\z3.php on line 3 Look at the path name, there is no slash between zroot and cat_display.php. Take a real hard look at your syntax and try again. -Dash -----Original Message----- From: toby z [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 9:50 PM To: [EMAIL PROTECTED]; php hlp list Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] function call ???? thnx bruce, paul, chris, cal ....... but i ve tried it inlcude doesnt work i keep gettin this error: Warning: Failed opening 'http:\localhost\cat_disply.php' for inclusion (include_path='C:\WINDOWS\system32\inetsrv\php') in e:\final project\zroot\z3.php on line 3 my tries to make line 3 work are: 1. $cat = include 'http:\\localhost\cat_disply.php' ; 2. $cat = include 'cat_disply.php' ; and even without $cat variable 3. require_once(cat_disply.php); 4. require(cat_disply.php); 5.require($DOCUMENT_ROOT . "cat_disply.php"); and i get another error (for require): Fatal error: Failed opening required 'e:/final project/zrootcat_disply.php' (include_path='E:\final project\zroot') in e:\final project\zroot\z3.php on line 3 i even tried return $cat; in cat_dislpy but nothing seems to be working out of sheer desperation i tried changing the include path in php.ini to my localhost but to no use will someone plz help ???? & im mailin on the "right" list now ..... thnx a millllllllion ... everyone .... toby ... __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php