Forums Index » Computers » PHP » Work with external php
Work with external php
Go to Page: 1
March 20th, 2006 00:23 #1 |
|
tomzx user |
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) Last edited by tomzx on Mon Mar 20, 2006 00:23; edited 1 time in total. ______________________ Techno-Science |
| Back to top |
|
March 20th, 2006 23:21 #2 |
|
robert_ak |
not too sure about how to do that but here are a couple of websites that might help: you might also do: site.com/index.html?variable1=value1 var q = location.search; alert(q); will put "?variable1=value1;" in q; from there, you could treat q and seperate the variables. i know its pretty horrible like method but .. ______________________ hai |
| Back to top |
|
March 22nd, 2006 22:19 #3 |
|
ga__S |
tomzx, make sure you don't name the page with the 'php' extension if its not supported (unless htaccess) what robert_ak suggested sounds complicated, get a server with php ______________________ heh |
| Back to top |
|
April 2nd, 2006 00:02 #4 |
|
tomzx user |
In fact, I resolved this by simply using an image with an height and width of 0. What the point was is to call the distant server so it execute a page without showing up, thus using <img src="page.php?var=x">
______________________ Techno-Science |
| Back to top |
|
Go to Page: 1
Forums Index » Computers » PHP » Work with external php
