On Apr 30, 2007, at 1:24 PM, rockit wrote:
>
> what is the equiv of this in cake?
>
> if( is_uploaded_file($_FILES[profile_image][tmp_name]) ) {
> move_uploaded_file( $_FILES[profile_image][tmp_name], "../
> attachments/
> $path" );
I don't see much I'd change here, except for putting quotes around
array key names, and the destination path would probably in /app/
webroot/img somewheres.
-- John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---