Jump to content

php including an asp page and image links broken


deliwasista

Recommended Posts

Not sure if im in the right forum but here goes - couldnt decide whether this was an asp question or a php one!. I have no knowledge of asp and very limited php ability. I am trying to improve my web practice and am remaking my lump of a site. Part of this site improvement involves using php to call a page from a different site made in asp. This has been acheived in the past by others using frames. I dont want to use frames.

Ive tried a standard include script but it didnt work (trust me I checked it and rechecked it and it wouldnt do it). So another forum user suggested this sript below and it works! (with my own url of course)

<?php
$asp=file('http://www.asp.net/Default.aspx');
foreach ($asp as $line) {
echo($line);
}
?>

Sadly although this works the gif images on the called asp page do not show!. I have spent ages browsing for an answer and found a suggestion using absolute paths to images. The owner of the other site tells me they can not use "absolute paths" to their images as his "pages are based upon site variables file".

This is the test page in question (style sheet yet to be connected).
[a href=\"http://www.totalsport.co.nz/events/legend/index2.php\" target=\"_blank\"]http://www.totalsport.co.nz/events/legend/index2.php[/a]

Is there something I can add to my php to MAKE the asp file download its images??

Any help with this issue greatly appreciated!
thank you for looking


Close Window
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.