upload file php error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: upload file php error

Post by Celauran »

Have you tried with an absolute file path instead of a relative path?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: upload file php error

Post by Celauran »

ianhaney wrote:I just entered the folder location on the server as the following

Code: Select all

$target = "http://www.broadwaymediadesigns.co.uk/sites/recruitment-site/candidatescvs/";
That's not a directory. Use a proper directory path. /var/www/mysite/images/whatever. Look at dirname() and __DIR__
Post Reply