Jump to content

Execution stops at $objWriter->save


sbharill

Recommended Posts

I am executing a php script from my home directiry in linux, script is executing but at the end of the script when it encounters below steps, it stops. This statement is create file. I have write access in the specified directory. I am very new to php and dont know how can i debug this or see the error.
$objWriter->save($fileName);

Link to comment
https://forums.phpfreaks.com/topic/276775-execution-stops-at-objwriter-save/
Share on other sites

Did it ever work? If not, find the code

class objWriter {
...
}

and within it find

function save(){
...
}

and that is the code that fails to execute.

 

Make sure error reporting is on.

Insert a line before the line of code that fails

echo $filename;

to see what it is trying to write.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.