Re: [PHP] Using include() and URL's
In regards to 1, neither of them are. they're just examples I was testing. As for your second note, it need only include the page, it needs only to display the page. It works fine with local references, just not with URL's. At 06:33 AM 1/18/02 +0200, you wrote: >A couple of comments: >1. Your include() statement specifies a different file than your error >message - which one is right? >2. From what I recall (but I'm not positive), using a protocol type at the >beginning of the location ("http://";) means that your server will actually >use that (i.e. parse it -- it'll include whatever you see when you're using >a browser on the respective location) rather than include the source file. >Is that wht you want? > >Just my 2c. > >Bogdan > >Hippie wrote: > > > I have a simple command similar to this. > > > > include ("http://www.cci.net.au/default.htm";); > > > > When it parses the php file it is contained in though I get the > > following response. > > > > Warning: Failed opening 'http://flurry.cci.net.au/template/index.php' > > for inclusion (include_path='') in > > C:\Inetpub\wwwroot\template\index.php on line 61 > > > > I checked that I hard url_fopen_wrappers enabled within the php.ini > > file which it was and other than that have been unable to deduce why > > this isn't working. > > > > Any comments would be much appreciated. > > > > Hippie. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] include() and URL's
I'm using my workstation as an all in one test box. It's running, IIS 4.0, and PHP for Windows version 4.0.6. At 11:13 AM 1/18/02 +1100, you wrote: > > The file is running on an NT box and can be accessed fine > > through IIS. It is only when using the include() statement to > > this file that problems occur. If I do a local path map to it, > > it will include fine but when using an URL it gives that error. > >Can you retrieve the file from that URL from the command line >on that machine? (try 'wget' or 'curl', or even just 'lynx') > >It's possible that while you can see it from your workstation, >the server PHP is installed on cannot. > >Jason > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] include() and URL's
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Hippie. At 05:02 PM 1/17/02 -0700, you wrote: >Does the file have persmissions such that it is include()-able by nobody? > >Kirk > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 16, 2002 4:33 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] include() and URL's > > > > > > I'm trying to include a URL using the following line > > > > include('http://www.cci.net.au/default.htm'); > > > > I get the following response. > > > > Warning: Failed opening 'http://www.cci.net.au/default.htm' for > > inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php > > on line 61 > > > > I have made sure the url_fopen_wrappers is enabled in the php.ini file > > but apart from this I'm kind of lost as to what is causing the > > problem. Any suggestions? > > > > Hippie. > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Include() and URLs
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the url_fopen_wrappers is enabled in the php.ini file but apart from this I'm kind of lost as to what is causing the problem. Any suggestions? Note: I'm using PHP for Windows v4.0.6. This command runs fine on my Linux box using the same build so I assume it's a configuration problem. Hippie.
[PHP] Passing PHP Variables
I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]