hobojjr Posted September 3, 2006 Share Posted September 3, 2006 get this error "Call to a member function on a non-object"at this line$d=dir(getcwd());while (false !== ($entry = $d->read())) {what gives? Link to comment https://forums.phpfreaks.com/topic/19618-call-to-a-member-function-on-a-non-object/ Share on other sites More sharing options...
Barand Posted September 3, 2006 Share Posted September 3, 2006 Does[code]echo getcwd();[/code]give a value? Link to comment https://forums.phpfreaks.com/topic/19618-call-to-a-member-function-on-a-non-object/#findComment-85436 Share on other sites More sharing options...
onlyican Posted September 3, 2006 Share Posted September 3, 2006 I think getcwd required chmod settings to high (755 or 777)Try this as well Link to comment https://forums.phpfreaks.com/topic/19618-call-to-a-member-function-on-a-non-object/#findComment-85439 Share on other sites More sharing options...
Jenk Posted September 4, 2006 Share Posted September 4, 2006 read the manual on getcwd() - namely the return type. Link to comment https://forums.phpfreaks.com/topic/19618-call-to-a-member-function-on-a-non-object/#findComment-85469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.