Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/186331-posting-to-another-site/
Share on other sites

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.

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

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.

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.