> -----Original Message----- > From: Wei, Alice J. [mailto:ajwei@xxxxxxxxxxx] > Sent: Tuesday, June 24, 2008 1:04 PM > To: Daniel Brown > Cc: Jim Lucas; Jay Blanchard; php-general@xxxxxxxxxxxxx > Subject: RE: Include Problem > > ________________________________________ > From: Daniel Brown [parasane@xxxxxxxxx] > Sent: Tuesday, June 24, 2008 1:59 PM > To: Wei, Alice J. > Cc: Jim Lucas; Jay Blanchard; php-general@xxxxxxxxxxxxx > Subject: Re: Include Problem > > On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. <ajwei@xxxxxxxxxxx> > wrote: > > Hi, > > > > This is the error I got: > > > > Warning: include() [function.include]: URL file-access is disabled in > the server configuration in C:\Inetpub\wwwroot\read.php on line 29 > > Warning: include(http://www.mysite.com/calculate.php) > [function.include]: failed to open stream: no suitable wrapper could be > found in C:\Inetpub\wwwroot\read.php on line 29 > > Warning: include() [function.include]: Failed opening > 'http://www.mysite.com/calculate.php' for inclusion > (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\read.php on line > 29 > > Did you remember to restart your web server after making the > changes that Jim mentioned? > > Yes, I restarted my Apache twice after each of the changes I made. > As I mentioned before, the error I get from calculate.php is located on > the Linux server. Does this have to do anything with the compilation > because it is trying to find a Windows directory? > > Alice If you are trying to include() a remote file via HTTP, the remote server will (most likely) translate the PHP code into the output that it would produce if you were to visit the script with a web browser. It appears you are trying to grab a PHP file from a remote server and execute it as code, which won't work--at least not under normal circumstances. HTH, Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php