jefargrafx
Instructor
I'm tring to teach myself how to upload files via php.
So far so good......but I'm using an array and I do not know the syntax to get a part of the array
_FILES["upload"] Array
(
[name] => music.mp3
[type] => audio/mpeg
[tmp_name] => C:\PHP\uploadtemp\php4E.tmp
[error] => 0
[size] => 7444008
)
I'd like to know if error => 0 so I can do some checking if the file was uploaded or not and send a message back to the user.
How do you wirter something like
if ($_files == "upload" and error => 0) {
do something;
}
thanks in advanced
jef
So far so good......but I'm using an array and I do not know the syntax to get a part of the array
_FILES["upload"] Array
(
[name] => music.mp3
[type] => audio/mpeg
[tmp_name] => C:\PHP\uploadtemp\php4E.tmp
[error] => 0
[size] => 7444008
)
I'd like to know if error => 0 so I can do some checking if the file was uploaded or not and send a message back to the user.
How do you wirter something like
if ($_files == "upload" and error => 0) {
do something;
}
thanks in advanced
jef