Page 1 of 1

Retrieving HTML of a PHP page not on my site with PHP

Posted: Sat Sep 10, 2005 7:02 pm
by freeone3000
I need to get the html of a file with a certain variable set in a directory on a server that isn't mine using PHP or javascript, and be able to place them in a variable.

I have to be able to add a variable onto the end of the static part of the URL so that it gets to the right page. Also, I have to set that variable by a click effect in a link tag, and all of them are diffrent. Also, can I please not have the code show unless it's called by the javascript?

Many thanks to ANYONE who can answer this.

Posted: Sat Sep 10, 2005 7:20 pm
by feyd
congratulations on your list of needs. You didn't really ask a question, however. This is a question and answer (mostly) forum. If you want someone to do the work for you, state the reasons someone should. Are you willing to pay or give the person compensation of some sort? What is this for? Please be descriptive, it can be, and often is helpful.


:roll:

Posted: Sat Sep 10, 2005 7:59 pm
by freeone3000
Question: How would I read a page not on my site with PHP?

This is for a site for a game to have a stats lookup of players of said game, except without having to use an iframe with their page in it, and having our CSS applied to it. I cannot pay for this.

Posted: Sat Sep 10, 2005 8:06 pm
by feyd
If your server has allow_url_fopen (quite possibly does) on, you can simply use file_get_contents() if you can use a simple URL to fetch the information. If you can't use just a URL, then cURL, or several other systems to make an HTTP POST.