try @fopen(categories.txt,r+);
- Original Message -
From: Vanessa [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 12:05 PM
Subject: [PHP] fopen - warnings
Hello List,
this is probably a very stupid question, but I dont know how to solve this
little problem:
I
Assuming that your code works fine apart from the warning message you can
use @ so suppress any warning messages
e.g. @fopen(
-Stewart
-Original Message-
From: Vanessa [mailto:[EMAIL PROTECTED]]
Sent: 26 July 2001 17:06
To: [EMAIL PROTECTED]
Subject: [PHP] fopen - warnings
Hello
Hi sean,
try to put a file name not a directory or path.
$file = fopen(filename.withextension,r+
Kelvin.
[EMAIL PROTECTED] wrote in message
9d6apq$eka$[EMAIL PROTECTED]">news:9d6apq$eka$[EMAIL PROTECTED]...
hi
I am running the following on my redhat 7.0 / php4 / apache box and
even when you are trying to access a COM port?
Kelvin [EMAIL PROTECTED] wrote in message
9d6dc8$eug$[EMAIL PROTECTED]">news:9d6dc8$eug$[EMAIL PROTECTED]...
Hi sean,
try to put a file name not a directory or path.
$file = fopen(filename.withextension,r+
Kelvin.
[EMAIL PROTECTED]
On Friday 06 April 2001 03:12, you wrote:
Technically yes.
In an HTTP session, the server returns a header "Content-length" which
lists the more or less exact size of the file being sent.
Caution: The server is not required to send this header - PHP for example
doesn't do it automatically.
"Jerry" [EMAIL PROTECTED] wrote:
im trying to fopen a url with something like to following :
fopen("something.com/something.txt", r);
this returns a "0"
If you're trying to open an external file make sure you prepend the URL with
'http://'. If that's a local file and it's not finding the
No, you receive the handle to the file. You cannot rename the handle.
? $filename = "http://www.latest.txt";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
echo $contents;
fclose ($fd); ?
Should do the trick.. or something.. Modify it or whatever.
- Richard
acutally i found my problem, what was happening was that script1 that was
on the server that file resides had that file open at the same time that
scirpt2 was trying to open via http, when i change that files name, the
permissions changed, and script1 was unable to open the file, and so
script2
Technically yes.
In an HTTP session, the server returns a header "Content-length" which lists
the more or less exact size of the file being sent.
But there isn't really an easy way of reading HTTP headers in php, yet. I
really wish there were.
You can use fsockopen to make your own http
"Steve Werby" [EMAIL PROTECTED] wrote:
acutally i found my problem, what was happening was that script1 that was
on the server that file resides had that file open at the same time that
scirpt2 was trying to open via http, when i change that files name, the
permissions changed, and script1
Now i get a error window saying: "Document contained no data"
That usually means PHP crashed.
Check your web-server error logs.
Also, try adding some debug output before each statement to pinpoint the
crash line.
--code-
$noaa =
Basically, you shouldn't be checking for '1' as an answer.
Either you got 0, and it didn't work, or you didn't, and the URL is valid.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
?
header( "Content-type: image/gif" );
$img = fopen($DOCUMENT_ROOT . "/store/include/TestingImage.gif","rb");
print($img);
?
prints this:
Resource id #1
I'm trying to print the image as binary or as an image. Have I missed a
step? Hope i'm not being too confusing.
$img is a "file
I'm trying to fopen a URL that I have no problems getting to
if I just past it into the address field of my browser. However,
when I use it in my fopen() function call, I'm getting an "Error
0" (zero) message.
I've looked all over the documentation and I could not find what
'Error 0'
On Wed, 21 Feb 2001 15:23, Ben Weinberger wrote:
Hi~
We're working on a page located at
http://www.manageasy.com/request_offer.php3. The page comes up with a
bunch of errors, and we don't know why-- the page worked on our old
server, and we didn't change anything from there... we think it
?
$fp = fopen("http://www.parentprofiles.com/clicker.php?profile_id=" .
$this-profile_id
. "code=1","r");
echo $fp;
?
to do it. however when I do all I get is a response that says:
Resource id #1
instead of giving me the page. Any ideas?
Basically, that Resource id # 1 is like a paper
201 - 216 of 216 matches
Mail list logo