Hi,

  Thanks for the clarifcations.
  I have two more questions regarding this issue:

   1. If I try to do this from Windows platform to another Window platform work?
    2. With this type of scenario, if I cannot use include, what type of 
options may I have?

Anything is appreciated.

Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]
________________________________________
From: Boyd, Todd M. [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2008 2:37 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: RE: [PHP] Include Problem

> -----Original Message-----
> From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2008 1:04 PM
> To: Daniel Brown
> Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
> Subject: RE: [PHP] Include Problem
>
> ________________________________________
> From: Daniel Brown [EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2008 1:59 PM
> To: Wei, Alice J.
> Cc: Jim Lucas; Jay Blanchard; php-general@lists.php.net
> Subject: Re: [PHP] Include Problem
>
> On Tue, Jun 24, 2008 at 1:55 PM, Wei, Alice J. <[EMAIL PROTECTED]>
> 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

Reply via email to