Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing file into another domain

Status
Not open for further replies.

WebmasterA

Programmer
Mar 26, 2004
25
US
Hello,

I have a cgi script that in web browser creates an html file and saves it on the server.
What I need to do is to move it or originally save it on another domain. the domain is on the same server.

How do I do that?

Thank you
 
WebmasterA
Use an absolute path
Code:
open FH, "/home/httpd/vhtdocs/domainb/myfile.htm";
print FH "$myfilecontent";
close FH;

permissions on the other "domain" directory could be an issue
HTH
--Paul
 
Permissions is the issue. That is pretty much what my question is about. I kno whow to write a file into another directory :) but how to work with permissions I do not.
 
Are there different web users for both domains?
--Paul
 
Yes two different users. But I am doing it trough the web so ...
My web site is writing out a file. I need to write it on another domain. The other domain is on the same server.

I can do two ways:

1. Write directly to another domain.
2. Write on same domain and then transfer to another domain.

THe question is how to implement either way ? I have secuty access problem.

Thank you
 
if it's Linux you can possibly chmod it to 777. Just a suggestion [tt]:D[/tt]

---------------------------------------
If you helped... thx.
 
Domain - so it's NT or later.

I'm struggling to remember -- on the target domain you have to grant rights to the on the source domain?

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Thanks for replies guys.

I am going to try change permissions to see if it works.

All the tasks are performed on Linux box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top