View Single Post
  #2 (permalink)  
Old January 11th, 2004, 03:23 AM
visor visor is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to visor
Default

Quote:
quote:Originally posted by ajberry_12
 Get the following error when trying run the code out of the box:

Parse error: parse error, unexpected ',' in /home/jberry/html/ftp/ftp_client.php on line 293


Below is line 293-294

293 echo("<option value=\"{$ftp->cwd}\"> . ({$ftp->cwd})</option>\n",
294 "<option value=\"{$ftp->cwd}/..\"> .. </option>\n");


If i remove the comma, it give a similar error, referencing and unexpected "/" in 294.

any ideas?

try
293 echo("<option value=\"{$ftp->cwd}\"> . ({$ftp->cwd})</option>\n"[u].</u>
294 "<option value=\"{$ftp->cwd}/..\"> .. </option>\n");