Jump to content

PHP innerHTML?


itsjareds

Recommended Posts

I am writing a PHP script to be run through an <img> tag. Don't ask me why, I just do :P. Right now, what I'm trying to do is get the HTML of the document that the <img> tag is in. The source of the img is my PHP script. Since all of the content that I need will be loaded before the <img> tag is dealt with, how can I use PHP to get the HTML from the page? I don't have direct access to the page, I can only modify the PHP file of the source of the image.

 

Help is appreciated ;D

Link to comment
https://forums.phpfreaks.com/topic/127466-php-innerhtml/
Share on other sites

I don't own the site. It's through a bug, only for testing purposes, I am seeing what's possible.

 

Basically I am able to post in a thread with an image, and they allow PHP images. It won't let me get the contents of a site outside my domain :-\

 

Yeah, i figured that was what you where up to. Fortunately, its not possible. The image (php script) is executing on your server, so any $_SERVER variables will simply refer to your server.

Link to comment
https://forums.phpfreaks.com/topic/127466-php-innerhtml/#findComment-659559
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.