View Full Version : set variable equal to number on another page


banaax
07-08-2006, 02:19 PM
I'm making an automated link adding form to my site, I will have the requester type in the url they are linking back to my site from. I want to verify that their page is linking back and get the pr of that page from another one of my sites which supports jsp, and store those values in php from the main site (unless someone has the php code to do that).

example
go to http://www.straightupwin.com/getpr.jsp?myurl=www.caniwin.com/links.php
should show a 3, then from the form page I want to use php like..

$mypr = include("http://www.straightupwin.com/getpr.jsp?myurl=www.caniwin.com/links.php");

as you might guess this does not store the value of 3 into $mypr, can anyone help me out as to how I would do this?

banaax
07-08-2006, 03:02 PM
should have tried a little harder before posting, answered my question

Paz
07-08-2006, 10:29 PM
LOL. Well I'm still trying to understand the question....

I have to say though, I think it's a bad idea to use an automated link addition form. People could put up all kinds of rubbish that could cause trouble for your site. I hope you're checking these links for banned/off-topic sites.

Cheers,
Paz.