Results 1 to 8 of 8
Jun 15, 2007, 12:14 #1
run script on domain A, execute stuff in domain B
I have a signup form that is secured with SSL on domain A. I would like for the user to fill out the form on A and then have it do some db stuff and create a new dir on domain B. It's my own cpanel server, so I have access to root.
Is this possible?
Jun 15, 2007, 13:28 #2
Sure, have a script in the domain A file system make a dir (mkdir) in domain B's file system. As well as connect to the database and add the data to the right table.
Just to make it clear I said file system, like how you would make folders on windows except though script.
Jun 15, 2007, 13:57 #3
Jun 15, 2007, 15:32 #4
Okay well how do you make folders on Mac...err well it doesn't really matter was just an example.
Jun 15, 2007, 15:47 #5
- Join Date
- Aug 2005
- 0 Post(s)
- 0 Thread(s)
you can use the 'mkdir' on Mac OS X...making sure you place the path in of where you wish to make the directory. that should work.
Jun 15, 2007, 16:01 #6
You don't create a folder on the Mac in the terminal or file system. Unless you're a total geek
I have the working scripts in place to do everything I want. The problem arises with permissions.
A can't create a dir in B. So when I asked if this was possible, security and permissions were more of what I had in mind. These are the issues I'm having trouble with.
Sorry if I confused anybody.
Jun 15, 2007, 18:19 #7
Hmmm... could you call curl or wget to a script residing in the other domain that would handle filesystem stuff?
Take a look at the php file system functions: http://us.php.net/manual/en/ref.filesystem.php
Jun 15, 2007, 19:44 #8
I've decided this is going to be too much of a pain. I'm just going to do everything from B instead.
Thanks for your help.