Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: How Can I Get This - Ticker.stm

  1. #11
    h1
    Guest
    I just assumed you knew what PHP was, sorry about that.

    There's also three major fuck-ups in that script, it should be this:
    Code:
    <?php
    $ticker=fopen('http://news.bbc.co.uk/nol/ifs_news/hi/front_page/ticker.stm','r');
    function findNewsItem($str,$pos)
    {
      $str=substr($ticker,(strpos($ticker,"theSummaries[{$pos}] = \"")+18));
      $str=substr($str,0,strpos($str,'.')+1);
      return $str;
    }
    function text($x,$n)
    {
      ImageString($im,4,$x,10,$news[$n],$black);
    }
    $news=array('','','','');
    for($i=0;$i<3;$i++)
    {
      $news[$i]=findNewsItem($news[$i],$i);
    }
    unset($ticker);
    $im=ImageCreate(500,150);
    $white=ImageColorAllocate($im,0xFF,0xFF,0xFF);
    $black=ImageColorAllocate($im,0x00,0x00,0x00);
    text(10,0);
    text(45,1);
    text(80,2);
    text(115,3);
    
    // if the image gets too large (filesize), lower the third number image the ImageJPEG function. valid numbers are 1 to 10.
    
    $fn=rand(1,999999999).'.jpg';
    header('Cache-control: no-cache, must-revalidate, no-store');
    header('Cache-control: pre-check=0, post-check=0',false);
    header('Content-type: image/jpeg');
    header('Last-modified: '.gmstrftime("%a, %d %b %Y %H:%M %S GMT",(time()+(365*86640)));
    header('Expires: '.gmstrftime("%a, %d %b %Y %H:%M %S GMT",(time()+(365*86640)));
    header('Pragma: no-cache);
    ImageJPEG($im,$fn,10);
    unlink($fn);
    ?>
    Hope this helps.

  2. Internet, Programming and Graphics   -   #12
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    Any chance of linking to a site that can host this mini script
    or if possible if someone could host it for me
    I seriously have looked
    cant see the difference between php and web hosting-it seems php sites are difficult to find
    +
    have absolutly no clue ihow to put Haxors script into praxis
    (i opened an account at http://www.domaindlx.com/ is that ok? ?
    Cheers

  3. Internet, Programming and Graphics   -   #13
    h1
    Guest
    DomainDLX can't run it.

    Click here and search with the following parameters:
    • Disk space: no preference
    • Language: no preference
    • Your URL: no preference
    • Site interests: no preference
    • Forced ads: no preference
    • Allowed: none
    • Custom scripting: PHP
    • Installed scripts: none
    • Database: none
    • Accommodations: Unmetered bandwidth, .htaccess
    • Email: none
    • Upload methods: FTP
    • Platform: Any
    You should get a ton of results. Pick something with a lot of bandwidth.

    MundoServer looks good, you'll have no problem getting 300 hits a day with the traffic this site gets.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •