newbie69 Posted November 20, 2007 Share Posted November 20, 2007 Hi i have cms which i developed and its working perfect locally. There's page that allows the user to upload a image. This works perfectly locally but not online. I suspecting its the path: this is the statement i use to specify the path of where images should be uploaded? $path = SITE_DOCUMENT_ROOT."/images/speakers/"; this is what $path contains Locally: "C:\pws\csi2008/images/speakers/" on the web: "/home/tenakaci/public_html/csi2008/images/speakers/" Would someone know why it doesnt upload online? Link to comment https://forums.phpfreaks.com/topic/78060-solved-confustion-with-paths/ Share on other sites More sharing options...
rajivgonsalves Posted November 20, 2007 Share Posted November 20, 2007 you would have to set the permission to the directory online set it to 777 or 755 which ever is applicable through ftp or ssh Link to comment https://forums.phpfreaks.com/topic/78060-solved-confustion-with-paths/#findComment-395077 Share on other sites More sharing options...
newbie69 Posted November 21, 2007 Author Share Posted November 21, 2007 thanks, its seem my error emanating from another issue. But thanks a lot for the post, I'll learn t something new:) Link to comment https://forums.phpfreaks.com/topic/78060-solved-confustion-with-paths/#findComment-395726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.