user616639
user616639

Reputation: 233

how to execute a php script?

how do you execute a php script on a site thats not mine?i need to know this because, i found in a site where you have to multiply 2 large numbers and find its product within 1 sec....a normal man can't do this even with the help of a calculator, because what they meant was to program and find out the result...i know how to write that script but don't know where to put that script in that site and execute....any suggestions gladly accepted...

Upvotes: 0

Views: 227

Answers (3)

Dave Stephenson
Dave Stephenson

Reputation: 16

I would check out the source of the page, and write a javascript to pull the numbers from the page and submit the answer.

You can use a Firefox addon such as Greasemonkey to run the script on the page.

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

Upvotes: 0

Abdullah Md. Zubair
Abdullah Md. Zubair

Reputation: 3324

you can use php curl remote server access. but you must have the permission

Upvotes: 2

TheJubilex
TheJubilex

Reputation: 407

If the site you need to submit the answer to uses a form, it might be possible to write your own form and post it to that site. Most sites block that kind of behavior though.

Upvotes: 0

Related Questions