Jump to content

Saving file on remote computer when register?


Deathfire

Recommended Posts

Ok well... I want to make it so that when someone registers on my site via the register page it created an XML document that is immediately (or within a reasonable time period) to my computer. I've uploaded the website pages via FTP, if that helps as far as information goes. The reason I need this is not to save their profile on the site, it does that already with MySQL, I need the XML for a different reason. So, any help with this? :confused:

 

P.S. Please, if you can, explain any code thoroughly that you put up here. I'm not all that skilled in php so something on the lines of a semi-tutorial would be great, and explain it so that I can make the XML in my own format. Thank you.

 

 

NOTE: If anyone can help me with this, is it possible to have the XML file saved to a specific folder on the computer?

Link to comment
Share on other sites

with the mail() boolean? I didn't seem to favor me... I was doing something wrong, I believe.

In order to send emails with the mail function, PHP needs to be configured to use an SMTP server for sending the emails.

 

If you cannot gain access to the php.ini for conifiguring PHP then you could give phpMailer a go.

Link to comment
Share on other sites

You cannot use PHP to create files on yours or other peoples computers. The only way would be emailing the XML file/data to yourself.

 

You could create a service or scheduled task on the remote PC that attempts to download via HTTP, HTTPS, FTP, or FTPS the XML files from a secure location on the server.

Link to comment
Share on other sites

You can create files on remote computers with PHP, just not in the way you're thinking.

 

The remote workstation could initiate an SSH port-forwarding connection to the server.  The server could write the XML data to local port 30303 which would translate to some other port on the local machine, which could be listened on by a PHP service.  :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.