We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,307 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

how to write from a subdomain to main domain?

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??

2
Contributors
4
Replies
1 Week
Discussion Span
8 Months Ago
Last Updated
5
Views
shadiadiph
Junior Poster
124 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Your file paths should be relative to their location in the file system. Where in the file system is the PHP file doing the writing compared to where you're trying to create the file. It should be irrelevant whether it's a different subdomain or not.

Dani
The Queen of DaniWeb
Administrator
21,555 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 376
Skill Endorsements: 124

thanks gotcha i was thinking too out of the box as usual

shadiadiph
Junior Poster
124 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Let us know if you still can't get it working.

Dani
The Queen of DaniWeb
Administrator
21,555 posts since Feb 2002
Reputation Points: 1,555
Solved Threads: 376
Skill Endorsements: 124

sorry been busy fixing other site issues but its not working as soon as i get to ../../../https within the sub domain its ok but when i go one more the next dir name is mobile it starts throwing Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(../../../../mobile) is not within the allowed path(s): mobile is the subdomain name before mobile is dir subdomains

shadiadiph
Junior Poster
124 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0704 seconds using 2.68MB