catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 30-09-2007, 08:13 PM   #1 (permalink)
Registered User
 
Join Date: Apr 2003
Posts: 9
PHP file upload

I am trying to upload a picture through PHP but the move_uploaded_file function always fails. I've tried using absolute and relative file paths but none seem to work.
Code:
$filepath = "logo.jpg";
move_uploaded_file($_FILES["pic"]["tmp_name"], $filepath) or die("error");
Any ideas?
myefforts is offline   Reply With Quote
Old 01-10-2007, 09:12 AM   #2 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Hi,

Is this on windows or linux package?
paulredpath is offline   Reply With Quote
Old 01-10-2007, 10:07 AM   #3 (permalink)
Registered User
 
Join Date: Apr 2003
Posts: 9
Windows
myefforts is offline   Reply With Quote
Old 02-10-2007, 08:57 AM   #4 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Hi,

If you can open a support ticket we can check this further for you.
paulredpath is offline   Reply With Quote
Old 04-10-2007, 11:00 AM   #5 (permalink)
Registered User
 
Join Date: Apr 2003
Posts: 9
Oops, forgot to check the box in HELM!
myefforts is offline   Reply With Quote
Old 04-10-2007, 09:07 PM   #6 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Ah ha, problem solved then?
paulredpath is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:00 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.