Hi. I am trying to allow users to upload images to site. It works on testing server but having trouble on remote server. GoDaddy. Here is the upload dir for testing server:

define('UPLOAD_DIR','C:/xampp/htdocs/MyStuff/images/');

Not sure for remote server.

ftp your site and type pwd that is your root directory :-)

Thanks, can you give example?

define('UPLOAD_DIR','../htdocs/MyStuff/images/');

Got it.

define('UPLOAD_DIR','Absolute Hosting Path:/images/');
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.