JREAM Posted December 25, 2009 Share Posted December 25, 2009 I have software that people install. When they install it, is there a way to make it post their domain name to my website? I know I could do a header('location: http//www.mysite.com/id=?domain.com'); then handle it anyway from mysite.com I wanted. But I don't want to force the user to to actually go to my page. I dont know much about cURL or what it does, hopefully I dont have to use it because I dont want to require additional plugins for the current software. Is there a way to post to another domains url without actually refreshing the page? Quote Link to comment https://forums.phpfreaks.com/topic/186331-posting-to-another-site/ Share on other sites More sharing options...
ignace Posted December 25, 2009 Share Posted December 25, 2009 Ajax altough cURL is your best option. However if this is to prevent fraud your software will be easily fooled as anyone with some PHP knowledge or JS can change those lines installing it nevertheless without you knowing it about. Quote Link to comment https://forums.phpfreaks.com/topic/186331-posting-to-another-site/#findComment-983995 Share on other sites More sharing options...
teamatomic Posted December 25, 2009 Share Posted December 25, 2009 I guess it depends on what you really want to do. If you want real-time posting you might try to buffer the start f the page then call another buffer with a redirect and flush it out. I really have no idea if it would work or not, its just where I would start trying. If all you want to know is who installed your stuff just make a little installer script or write an ini file for them and have it include a file from your server and use your access logs. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/186331-posting-to-another-site/#findComment-983997 Share on other sites More sharing options...
JREAM Posted December 25, 2009 Author Share Posted December 25, 2009 Hmm maybe AJAX is the best option to do such a thing. I thought for a moment to use a 1x1 iframe to go to the url but Im still not sure if that would work out right lol. I plan to encrypt only one file so people cant rewrite the thing to mess with it. Quote Link to comment https://forums.phpfreaks.com/topic/186331-posting-to-another-site/#findComment-984001 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.