shadiadiph Posted September 8, 2012 Share Posted September 8, 2012 Hi can anyone tell me how I can write data to the main www.example.com from mobile.example.com i keep getting a http write error when i try to mkdir or a file on the main domain from the subdomain?? Quote Link to comment https://forums.phpfreaks.com/topic/268167-how-to-write-from-a-subdomain-to-main-domain/ Share on other sites More sharing options...
Christian F. Posted September 8, 2012 Share Posted September 8, 2012 Go via the local file paths, and not through the web server's obfuscation of it. Not to mention the security measures, that's there to prevent anyone from uploading any arbitrary file to your servers. They are running on the same server, under the same user, no? (Think about what you see in the FTP client.) Quote Link to comment https://forums.phpfreaks.com/topic/268167-how-to-write-from-a-subdomain-to-main-domain/#findComment-1376362 Share on other sites More sharing options...
shadiadiph Posted September 20, 2012 Author Share Posted September 20, 2012 it does not work as soon as i get out of the ../../../httpdocs folder to ../../../../mobile the .mobile subdomain it starts throwing an open_basedir error Quote Link to comment https://forums.phpfreaks.com/topic/268167-how-to-write-from-a-subdomain-to-main-domain/#findComment-1379498 Share on other sites More sharing options...
scootstah Posted September 20, 2012 Share Posted September 20, 2012 Use absolute paths, not relative paths. Quote Link to comment https://forums.phpfreaks.com/topic/268167-how-to-write-from-a-subdomain-to-main-domain/#findComment-1379499 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.