Jump to content

deliwasista

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

deliwasista's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ive retreived the answer from another forum so for those of you reading this who are looking to do the same this is what im now using <?php ini_set (user_agent, "Your Name Here"); ini_set (default_socket_timeout, "3"); error_reporting(0); $theurl="http://www.yoursite.co.nz/events/eventcalendar.asp"; $filestring=file_get_contents("$theurl"); $filestring = str_replace("../images/", "http://www.yoursite.co.nz/images/", $filestring); //change the "../images/" to the path that your asp page is using (view page source to get this) and repeat a new line using str_replace for each item you want changed in the asp page echo "$filestring"; ?> and this brings the asp page in and the images show up. Now if anyone knows how to turn off selected url links within the called asp page I would love to know!
  2. Hehe you rock Darga! thank you for even trying to answer this one for me - frankly even a wrong answer is better than no answer! Im going to have a go at this and see if It will do for me what I need. I have set up a newsletter in the past and am familiar with replacing text with dynamic information eg NAME etc but not sure if this works in the same way.. mostly cause I dont really know any php. ps I see you are looking for a newsletter prog. I got a good free one off hotscripts.com. It was a free one and despite my lack of php knowledge I still got it running - with determination! Will post back here if this works or if I find a solution or lack there of! soon.
  3. Hey Daarga, wow thanks heaps for having a look! hmmm now ive had a look at your posts and I think you are several levels above me in term of php understanding. Bear with me tho as I really want to try this, but im a bit shonky on my php abilities. All "muscle" no "brain" so to speak. So if two images lived here www.pretendsite.co.nz/images/blank.gif and bar.gif I would do this: <?php $asp=file('http://www.enteronline.co.nz/results/results.asp?db=05Legend'); foreach ($asp as $line) { echo($line); ?> <?php $message = file_get_contents("'http://www.enteronline.co.nz/images"); $message = str_replace("%BLANK%",$blank.gif,$message); $message = str_replace("%BAR%",$bar.gif,$message); ?> man that probably looks like gibberish.. help.
  4. Just in case you guys are still watching this one - or someone else thinks that this was the final answer.. its not yet.....owwww ..... 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??
  5. 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
  6. Thank you so much Wisewood and Shocker for taking the time to have a look at this. I am ecstatic to report Shocker that your option: <?php $asp=file('http://www.asp.net/Default.aspx'); foreach ($asp as $line) { echo($line); } ?> works a dream with the asp url I have also!! For future reference with others having the same problem you may find this helpful to know - the site owner gave me two url options (site name has been replaced with xxxxx) [a href=\"http://www.XXXXXX.co.nz/redir.asp?page=calendar&OID=O6S4vvxFLyen\" target=\"_blank\"]http://www.XXXXXX.co.nz/redir.asp?page=cal...ID=O6S4vvxFLyen[/a] or [a href=\"http://www.XXXXXX.co.nz/events/eventcalendar.asp?EName=&OrganizerID=O6S4vvxFLyen\" target=\"_blank\"]http://www.XXXXXX.co.nz/events/eventcalend...ID=O6S4vvxFLyen[/a] I dont know much about .asp (or much else for that matter!) but it looks like the first option is a "redirect" and this definately does not work. However using Shockers suggestion the second url does. Thanks so much Shocker you are a legend!
  7. Hi there, thank you in advance for taking time to help here. I have a site which needs a page called into it from another web site. I can get this working super well with this little script as long as the file url ends in .php or .html <?php include("http://www.thenameofsite.co.nz/thepageIwant.html"); ?> Sadly the page im calling in is a .asp page! <?php include("http://www.thenameofsite.co.nz/redir.asp?page=calendar&OID=O6S4vvxFLyen "); ?> and this doesnt work. My host tells me that the include function I have used is NOT good for calling a .asp file. Does anybody know what I should use instead? can php do this?
×
×
  • 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.