sending url to different server

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

nook6
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Dec 10, 2012 3:35 pm

sending url to different server

Postby nook6 » Mon Dec 10, 2012 3:39 pm

Hi

Im writing a few small php scripts and i would like to know where they are being used is there any way i can get the url of the script and send it to my server without the end user knowing.

Nook6

User avatar
Barrikor
New php-forum User
New php-forum User
Posts: 16
Joined: Sun Dec 12, 2010 3:14 pm

Re: sending url to different server

Postby Barrikor » Mon Dec 10, 2012 6:40 pm

If by "end user" you mean a random person browsing the webpage that's using the script you wrote, then yes you can do it without them knowing.

Anyone who wants to add your script to their site will read through the code and see it though. It could give them some doubts about your code if you don't explain it. (On the other extreme it could bog down your server if your script ever got popular) IMHO, I see it as a lose/lose...

nook6
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Dec 10, 2012 3:35 pm

Re: sending url to different server

Postby nook6 » Tue Dec 11, 2012 12:42 am

Hi

Thanks for the reply.
I was goign to put a little bit in so it only sends the message to my server once just a simple variable somewhere. im just trying to work out a way i can find if anyone is using my script who shouldnt be, Any suggestions on that idea lol

Thank you
Nook6

User avatar
Barrikor
New php-forum User
New php-forum User
Posts: 16
Joined: Sun Dec 12, 2010 3:14 pm

Re: sending url to different server

Postby Barrikor » Wed Dec 12, 2012 9:54 am

Anyone who knows how to add the script to their site/project will read through the code and see it... even if you hide it with something inconspicuous like <img src="your-site/image.php"> someone will find it and make it public, possibly eroding the trust people have in your product.

IMHO I don't think that approach is very workable, I could be wrong though.

nook6
New php-forum User
New php-forum User
Posts: 3
Joined: Mon Dec 10, 2012 3:35 pm

Re: sending url to different server

Postby nook6 » Wed Dec 12, 2012 10:14 am

Barrikor wrote:Anyone who knows how to add the script to their site/project will read through the code and see it... even if you hide it with something inconspicuous like <img src="your-site/image.php"> someone will find it and make it public, possibly eroding the trust people have in your product.

IMHO I don't think that approach is very workable, I could be wrong though.



Hi

im beginning to agree with you it is just too difficult to get to work with any sort of accuracy without upsetting customers i think i will have to trust that some people may buy the scripts and some may knick them. just hope i sell more than gets knicked lol

Thanks for all your responses though.

Nook


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests