I'm currently working on a script which would be called from another website. I'd need it to be passing some info such as the page url + it would also contain other predefined variable by me. How could I "initialise" a script like this: "http://www.domain.com/script.php?var1=xa&var2=xb&url=currurl) without using any php (it would be with javascript so that non-php website can use it)
Sounds like XML feeds would be best for you. Most hosting does not allow for scripts to be called on another website, pages yes, but scripts no.
Sorry, I know explanations were kinda lame but I got my way through it. Thanks anyway. I was just looking for some way to link to my php script so it would actually get parsed. So I used an image with a width and height of 0.
No problem, now that you have it figured out, I understand what you were looking for. An alternative would be a Javascript onLoad event, but using an image is simpler and wouldn't depend on Javascript being enabled (although some users browse without images too).