LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-14-2005, 02:43 PM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
Parse error in script. i cant see anything wrong

Hi guys,

I had this working then DW crashed and it works no more :S
It might be a case of me looking into the code to long but i cant find were the error is.

PHP Code:

<?
// Include config file
include('common.php');
 
//$link = dbConnect();
 //$numOfUpload = param('numOfUpload');
 //echo "num of uploaded =". $numOfUpload; 
 
$folder_id param('folder_id'); 
 if(
is_dir("../images/gallery/" $folder_id) == false){
 echo 
"Folder <font color='#3300CC'>$folder_id</font> created successfully...<BR>";
 
mkdir("../images/gallery/"$folder_id0777);
 
mkdir("../images/gallery/"$folder_id."/thumbs"0777);
 
mkdir("../images/gallery/"$folder_id."/images"0777);
 }
 echo 
"Folder <font color='#3300CC'>$folder_id</font> open and ready for upload...<BR>";
 for(
$x=0;$x<$numOfUpload;$x++){ 
  
$thumbName strtolower(eregi_replace('#| |\?|!''',$_FILES['thumbfile'.$x]['name']));
 
$thumbDestination '../images/gallery/'$folder_id '/thumbs/' .$thumbName;
    if(
move_uploaded_file($_FILES['thumbfile'.$x]['tmp_name'], $thumbDestination)) {
    
$imgThumb 'images/gallery/'$folder_id '/thumbs/' .$thumbName
 
echo "<font color='#3300CC'>$imgThumb</font> thumbnail uploaded successfully...<BR>";
 
 
$xlName strtolower(eregi_replace('#| |\?|!''',$_FILES['xlfile'.$x]['name']));
 
$xlDestination '../images/gallery/'$folder_id '/images/' .$xlName;
    if(
move_uploaded_file($_FILES['xlfile'.$x]['tmp_name'], $xlDestination)) {
    
$imgXL '../images/gallery/'$folder_id '/images/' .$xlName;
 echo 
"<font color='#3300CC'>$imgXL</font> large uploaded successfully...<BR>";
 }
}  
}
echo 
"Uploaded complete. Would you like to add more?";
?>
Returns:
Quote:
Parse error: parse error, unexpected T_ECHO in /home/public_html/mxgb/admcms/galAddimage2.php on line 20
Anyone
thanks
Paul
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NEED HELP - Action Script 2.0 and CS3 timeline questions snake_eyes_wolf Newbies 5 12-17-2007 09:42 PM
Video Player - XML Driven Dynamic Script Text Box paswicka Actionscript 2.0 1 06-28-2007 02:34 PM
whats wrong with this script? joes99 Flash MX 8 03-21-2006 06:38 PM
wrong script, won't work, help!!! aw6161 Actionscript 2.0 Components 0 02-17-2005 03:13 PM
why is this ocillate script wrong? dv8 General Flash 34 01-02-2004 04:51 PM




All times are GMT. The time now is 11:13 AM.