![]() |
Looping a block of code.
Code:
<?php 'file$counter' has to be in order, such as 1, 2, 3... all the way to the specified number in the $times value. Now, the loop works fine, however, no matter what it won't upload anything. |
Does the $username folder exist and is it writable?
And, using copy() it expects to find the $HTTP_POST_FILES['file$counter']['tmp_name'] in the current folder when it is actually buffered in memory and not on disk if I'm reading the functions correcty. |
I think you might need to change all instances of this:
PHP Code:
PHP Code:
|
--CURRENTLY TESTING ANDREW'S POST--
In my case $username = Red Blaze. And that Directory does exist. I tested it like this: Code:
if ($HTTP_POST_FILES['file1']['size'] <= 0) Code:
This is the code in the uploading forms page. |
Quote:
|
Thanks - I made that mistake so many times when I first started coding that it's become the first thing I check now when my scripts don't work :p
|
lol Andrew thanks a ton. Now I learned my lesson. :D
|
All times are GMT. The time now is 08:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|