Deathfire Posted January 20, 2010 Share Posted January 20, 2010 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? 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? Quote Link to comment Share on other sites More sharing options...
jamesxg1 Posted January 20, 2010 Share Posted January 20, 2010 Get the XML files emailed to you. James. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 20, 2010 Share Posted January 20, 2010 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. Quote Link to comment Share on other sites More sharing options...
Deathfire Posted January 20, 2010 Author Share Posted January 20, 2010 with the mail() boolean? I didn't seem to favor me... I was doing something wrong, I believe. Anyway, what about another MySQL database? Could that, perhaps, do what I want? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 20, 2010 Share Posted January 20, 2010 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. Quote Link to comment Share on other sites More sharing options...
Deathfire Posted January 20, 2010 Author Share Posted January 20, 2010 I will look into it, thank you. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted January 20, 2010 Share Posted January 20, 2010 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. Quote Link to comment Share on other sites More sharing options...
jamesxg1 Posted January 20, 2010 Share Posted January 20, 2010 If PHP could make files on remote sources hackers would have a field day by making trojans in php and create them on remote sources. Dangerous!. LOL. Like I said email. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted January 20, 2010 Share Posted January 20, 2010 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. Quote Link to comment Share on other sites More sharing options...
Deathfire Posted January 21, 2010 Author Share Posted January 21, 2010 roopert, I like your recommendation for the scheduled task, I'll look into it, thanks. Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted January 21, 2010 Share Posted January 21, 2010 http://php.he.net/manual/en/class.httprequest.php Quote Link to comment 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.