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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
freeone3000
Forum Newbie
Posts: 2
Joined: Sat Sep 10, 2005 6:50 pm

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

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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:
freeone3000
Forum Newbie
Posts: 2
Joined: Sat Sep 10, 2005 6:50 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply