neohunter Posted November 27, 2006 Share Posted November 27, 2006 Why this dont work:[code]<?class updates { function test(){ $data = "wow"; if(($fp=fopen('test.hex',"wb"))){ fwrite($fp,$data); fclose ($fp); } }}$test = new updates();$test->test();?>[/code]and this, without the class work:[CODE]<? $data = "wow"; if(($fp=fopen('test.hex',"wb"))){ fwrite($fp,$data); fclose ($fp); }?>[/CODE] Link to comment https://forums.phpfreaks.com/topic/28582-fopen-on-a-class-dont-work-wth/ Share on other sites More sharing options...
neohunter Posted November 27, 2006 Author Share Posted November 27, 2006 OPS SORRY WAS A MISTAKEN ERROR... PLEASE DELETE THIS TOPIC Link to comment https://forums.phpfreaks.com/topic/28582-fopen-on-a-class-dont-work-wth/#findComment-130781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.