dirname is faulty

Last post 05-23-2011, 8:29 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  05-22-2011, 9:19 PM 67655

    dirname is faulty

    I'm having difficulty using this script because of the multiple instances where it looks at dirname to determine the path of the scripts. Unfortunately this isn't a usable path. I tried to find all of the instances where it called dirname but I seem to have screwed up something. I'm happy to start from scratch if there's a workaround, but don't want to spend hours debugging. Does anyone have a workaround available?
    Filed under: , ,
  •  05-23-2011, 8:29 AM 67658 in reply to 67655

    Re: dirname is faulty

    Dear kezzasm,
     
    Please follow steps:
     
    1. open file phpuploader\include_phpuploader.php
    2. search $cd=dirname($this->GetWebPath(__FILE__));
         You should can find it in line 395.
    3. change it to:
        $cd=dirname($_SERVER['SCRIPT_NAME']).'/phpuploader'; 
    4. Test it again and check whether it works.
     
    Thanks for asking
View as RSS news feed in XML