Current location: Hot Scripts Forums » Programming Languages » PHP » help with including remote files


help with including remote files

Reply
  #1 (permalink)  
Old 01-23-04, 12:46 PM
gforce gforce is offline
Newbie Coder
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
help with including remote files

hello,

I'm having problems using the include statement with a url. The PHP manual says:

As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP URLs with most of the functions that take a filename as a parameter.
In addition, URLs can be used with the include(), include_once(), require() and require_once() statements.

However, when I try to include a script using http://some_url I get the following:

Warning: main(): stream does not support seeking in /home/smallby/public_html/beta/free_energy/index.php on line 36

Please, can anyone explain this warning. I would really appreciate the help. This has been driving me insane.

thanx,
gforce
Reply With Quote
  #2 (permalink)  
Old 01-23-04, 04:31 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

If your php.ini's allow_url_fopen directive is set to be OFF, then you will get more meaningful error like "disabled on the server side" or someithng.

It seems like fseek() is causing trouble, rather than fopen() . But without your actual code, it's difficult to say further than that.
__________________
Blavv =|
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
stopping direct download of my pdf files .. markmarkymark Script Requests 5 01-23-04 01:35 PM
php files in a cgi-bin directory epic1231 PHP 7 12-31-03 03:42 PM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
remote files KashKurcura ASP 2 12-17-03 06:25 AM
How to <!--include .htm files in .php files cstallins PHP 4 10-27-03 05:35 AM


All times are GMT -5. The time now is 07:55 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.