|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-21 08:36 UTC] sniper@php.net
[2000-10-16 11:03 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Hello, I'm lost with a problem that I don't really understand, may it's a bug? (working on Suse Linux 6.4 & php4) This way the file is created written and closed: $fp = fopen("/tmp/zytest.tmp","w"); $i = fputs($fp, "TEST"); $j = fclose($fp); All results are ok: $fp =..#1, $i=4, $j=1; This way all the results (echo...) seems to be ok, but no file is created, no file is in that folder hereafter? $dfn="/tmp/ztest.tmp"; $fp = fopen($dfn, "w"); $i = fputs($fp, "TEST"); $j = fclose($fp); The echo.. results are the same: $fp =..#1, $i=4, $j=1; So if I hardcode folder and filename fopen() works, if I assign the folder and file to a variable, nothing happens? Does anybody know what to do? Thanks a lot in advance, Carl