I have a image upload function. I choose a photo from the system and a folder from the dropdown list (basically I have various folders to store images and thumbnails) and upload it. Locally, it works as expected but when I upload it into Godaddy server it is uploading into wrong location on Godaddy server
My local code for detecting path
$upload_img = cwUpload('fileToUpload','C:\xampp\htdocs\kWebsite\images\K website'."\\".$_POST["path"]."\\",'',TRUE,
'C:\xampp\htdocs\kWebsite\images\thumbs'."\\".$_POST["path"]."\\",'200','160');
Code for Godaddy server
$upload_img = cwUpload('fileToUpload','\home\gho\public_html\images\K website'."\\".$_POST["path"]."\\",'',TRUE,
'\home\gho\public_html\images\thumbs'."\\".$_POST["path"]."\\",'200','160');
The above code works but it uploads images in the general images folder rather than uploading into desired folder.