DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   i need urgent help Parse error (http://www.daniweb.com/forums/thread159268.html)

paddy_c Nov 24th, 2008 2:11 pm
i need urgent help Parse error
 
ive been getting loads of errors on a script that im trying to install.. so far ive fixed a few of them but now im stuck here

Parse error: syntax error, unexpected T_RETURN in /home/wwwulti/public_html/network/install/index.php on line 668

http://www.daniweb.com/forums/attach...1&d=1227550169

looks like the same things guna happen on line 670

any help?

ShawnCplus Nov 24th, 2008 2:31 pm
Re: i need urgent help Parse error
 
In PHP if it says there is an unexpected T_<something> on a line the error is usually in the lines ABOVE that line, not ON the line so.

paddy_c Nov 24th, 2008 2:49 pm
Re: i need urgent help Parse error
 
hmm i see.. im new to php..... ive took a capture of a bigger piece of the script.. could you take a look and see whats causing this error?

http://www.daniweb.com/forums/attach...1&d=1227552452

i really need help here :(

paddy_c Nov 24th, 2008 3:47 pm
Re: i need urgent help Parse error
 
no help then :(

ShawnCplus Nov 24th, 2008 4:09 pm
Re: i need urgent help Parse error
 
You image attachment didn't work. Just copy and paste the code, there is no reason to use images

paddy_c Nov 24th, 2008 4:29 pm
Re: i need urgent help Parse error
 
ok heres the code..

if ($info!="rwxrwxrwx")
                return false;
        else
                return true;

}//verify_folder_permissions

function clean_folder($folder,$total){

PomonaGrange Nov 24th, 2008 9:32 pm
Re: i need urgent help Parse error
 
Quote:

Originally Posted by paddy_c (Post 743778)
ok heres the code..

if ($info!="rwxrwxrwx")
                return false;
        else
                return true;

}//verify_folder_permissions

function clean_folder($folder,$total){

I Think this code is missing some brackets {}.
Try This
if ($info!="rwxrwxrwx"){
                return false;
        }else{
                return true;

}//verify_folder_permissions

function clean_folder($folder,$total){


All times are GMT -4. The time now is 1:34 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC