what is the PHP equivalent to $! in Perl if any?
programers: question for ya
Collapse
X
-
Tags: None
-
-
-
i'm trying to write to a file, it fails but i'm not getting an error messageOriginally posted by CalvinguyNo idea... what do you want to do?Comment
-
nope , don't have thatOriginally posted by Calvinguy@ is a "shut up" sign.... if it's in front of php commands no error message will be shown
Comment
-
-
Originally posted by brokePost the code.PHP Code:$handle = fopen ($filename, "w"); if(!fwrite ($handle, $content)){ echo "Data insert failed!"; die;} fclose ($handle);Comment
-
-
If it does not work but no errors are displayed, check the php.ini if errors are turned off, if so check your apache error log, they might be there."Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie MungerComment
-
What happens if you run this code?
The hahahaha should be a double =
PHP Code:if (!$handle = fopen ($filename, "w")) { if(fwrite ($handle, $content) hahahaha FALSE) { echo "Data insert failed!"; die; } echo "Success, wrote ($content) to file ($filename)"; fclose ($handle); } else { echo "File open failed!"; die; }Comment


Comment