943,955 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1014
  • PHP RSS
Nov 24th, 2008
0

i need urgent help Parse error

Expand Post »
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?
Last edited by paddy_c; Nov 24th, 2008 at 2:46 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
paddy_c is offline Offline
4 posts
since Nov 2008
Nov 24th, 2008
0

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.
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005
Nov 24th, 2008
0

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
paddy_c is offline Offline
4 posts
since Nov 2008
Nov 24th, 2008
0

Re: i need urgent help Parse error

no help then
Reputation Points: 10
Solved Threads: 0
Newbie Poster
paddy_c is offline Offline
4 posts
since Nov 2008
Nov 24th, 2008
0

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
Sponsor
Reputation Points: 520
Solved Threads: 268
Code Monkey
ShawnCplus is offline Offline
1,564 posts
since Apr 2005
Nov 24th, 2008
0

Re: i need urgent help Parse error

ok heres the code..

php Syntax (Toggle Plain Text)
  1. if ($info!="rwxrwxrwx")
  2. return false;
  3. else
  4. return true;
  5.  
  6. }//verify_folder_permissions
  7.  
  8. function clean_folder($folder,$total){
Last edited by peter_budo; Nov 24th, 2008 at 6:39 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
paddy_c is offline Offline
4 posts
since Nov 2008
Nov 24th, 2008
0

Re: i need urgent help Parse error

Click to Expand / Collapse  Quote originally posted by paddy_c ...
ok heres the code..

php Syntax (Toggle Plain Text)
  1. if ($info!="rwxrwxrwx")
  2. return false;
  3. else
  4. return true;
  5.  
  6. }//verify_folder_permissions
  7.  
  8. function clean_folder($folder,$total){
I Think this code is missing some brackets {}.
Try This
php Syntax (Toggle Plain Text)
  1. if ($info!="rwxrwxrwx"){
  2. return false;
  3. }else{
  4. return true;
  5.  
  6. }//verify_folder_permissions
  7.  
  8. function clean_folder($folder,$total){
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
PomonaGrange is offline Offline
67 posts
since Jun 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP HELP
Next Thread in PHP Forum Timeline: File Upload Error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC