Connecting Tech Pros Worldwide Forums | Help | Site Map

Include and missing graphics

callieandmark@yahoo.co.uk
Guest
 
Posts: n/a
#1: Apr 11 '07
If i use an include to an external webpage why are the graphics and
formatting missing ?

Basically I want my own page heading and a form at the top of my page
and then an external page beneth.
Can anyone tell me the correct way of doing this.


Erwin Moller
Guest
 
Posts: n/a
#2: Apr 11 '07

re: Include and missing graphics


callieandmark@yahoo.co.uk wrote:
Quote:
If i use an include to an external webpage why are the graphics and
formatting missing ?
Most probably because the paths don't make sense anymore.

Did you check the HTML your PHP did produce after the contentstealing?

eg:
stolen html comes from: http:www.example.com/somedir/page1.html
contains:
<img src="../images/someimage.png">
which resolves to:
http:www.example.com/images/someimage.png

after placing in your HTML, the paths don't make sense anymore.

Quote:
>
Basically I want my own page heading and a form at the top of my page
and then an external page beneth.
Can anyone tell me the correct way of doing this.
If you want, you could try finding all the images, and give them the right
path (= pointing to the domain where you took them from).

Regards,
Erwin Moller
Schraalhans Keukenmeester
Guest
 
Posts: n/a
#3: Apr 11 '07

re: Include and missing graphics


callieandmark@yahoo.co.uk wrote:
Quote:
If i use an include to an external webpage why are the graphics and
formatting missing ?
>
Basically I want my own page heading and a form at the top of my page
and then an external page beneth.
Can anyone tell me the correct way of doing this.
>
Showing the relevant code would be a start...
Shooting in the dark I would say: have a look at cURL.

http://www.php.net/curl

HTH
Sh.
Closed Thread


Similar PHP bytes