Jump to content

sinkhead

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sinkhead's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It works, thanks a lot! - Sam
  2. It was already in my code. Heh, I forgot to include it... Array ( [0] => Array ( [filename] => shinji.gif [stored_filename] => shinji.gif [size] => 271718 [compressed_size] => 271651 [mtime] => 1176744594 [comment] => [folder] => [index] => 0 [status] => ok ) [1] => Array ( [filename] => aj421.png [stored_filename] => aj421.png [size] => 96723 [compressed_size] => 94987 [mtime] => 1176626930 [comment] => [folder] => [index] => 1 [status] => ok ) [2] => Array ( [filename] => sinkhead.png [stored_filename] => sinkhead.png [size] => 268004 [compressed_size] => 268089 [mtime] => 1176315076 [comment] => [folder] => [index] => 2 [status] => ok ) ) - Sam
  3. Hm. I'm getting the following outcome: shinji.gif aj421.png sinkhead.png s s o (Yes, with a big gap) When I use the code: <?php echo $list['0']['filename']."<br />"; echo $list['1']['filename']."<br />"; echo $list['2']['filename']."<br />"; $x = 0; foreach ($list[$x] as $value) { echo $value['filename']."<br />"; $x++; } ?> This is weird - Sam
  4. $x=0; foreach ($list[$x]['filename'] as $value){ echo $value."<br />"; $x++; } $list is an array containing 2 parts. The first bit is an ID number. The second bit is the part of info for that ID number. I want to echo all the values of $list[$x]['filename'] where $x is an increasing number. The error I get is Warning: Invalid argument supplied for foreach() in /home/sinkhead/public_html/romnet/fctp/temp/78695/step2.php on line 46 Thanks - Sam
  5. Ok, so I've gotten a bit further with sorting out my problem. When I check the $_FILES variable using print_r() I get this: Array ( [uploadedfile] => Array ( [name] => shinji.zip [type] => [tmp_name] => [error] => 2 [size] => 0 ) ) My file can't be moved because [tmp_name] isn't set. And I havn't got a clue why this is... Can someone please shed some light on this? - Sam
  6. // Now we should move the uploaded file to it's temporary directory message("Temporary directory: temp/$tempfolder/".$_FILES['uploadedfile']['name']); if(copy($_FILES['uploadedfile']['tmp_name'], "temp/$tempfolder/".$_FILES['uploadedfile']['name'])){ success("Uploaded file moved to temporary directory"); } else { cleanup("Uploaded file could not be moved to temporary directory"); } $tempfolder - A unique 5 digit folder name message(); - Sends output as a message (applies certain formatting etc) cleanup(); - There has been an error so this function displays the error applying formatting. It also deletes all the temporary files and so on. This part of the script is designed to move the uploaded file (a ZIP) to a temporary location that I can access and use the ImageMagick library on. The error displayed is Uploaded file could not be moved to temporary directory I'm not very good at PHP and I followed the tutorial here Please help me - Sam
  7. So, any news on the comments being available? I could do with some help and I'm sure my question is answered in the comments. I'll create a forum topic if the comments aren't going to be fixed any time soon. - Sam
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.