Jump to content

coolbyte

Active Members
  • Posts

    589
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by coolbyte

  1. Buna ziua.

    Am urmatorul script:

    <php> $inlocuit = array("http://", "ftp://");

    $link1 = str_replace($inlocuit, "", $linkdown);

    $host = substr($link1, 0, strpos($link1, "/"));

    $path = strstr($link1, '/');

    $port = 80;

    $content_length = 0;

    $fp = fsockopen($host, $port);

    fputs($fp, "GET $path HTTP/1.0\r\nHost: $host\r\n\r\n");

    while (% aici am pus @%"\r\n\r\n" != ($line = fgets($fp, 1024))) {

    if (preg_match("/content-length: (\d+)/i", $line, $match)) {

    $content_length = $match[1];

    break;

    }

    }

    fclose($fp);

    $size = $content_length;

    $sizeKB=$size/1024;

    if ($sizeKB >1024){

    $sizeMB=$sizeKB/1024;

    if ($sizeMB>1024){

    $sizemb=$sizeMB/1024;

    }

    else{

    $sizeMB = round($sizeMB,2);

    echo "$sizeMB MB";

    }

    }

    else{

    $sizeKB = round($sizeKB,2);

    echo "$sizeKB KB";

    }

    <php>

    In momentul in care nu mai e valid link-ul aceasta structura se opreste si afiseaza o eroare. As dori sa sara peste acea eroare si scriptul sa se deruleze in continuare si sa aviseze de exemplu link inexistent. Am incercat cu @ dar cum nu stapanesc prea bine nu am reusit.

    Multumesc

  2. O mica eroare pe care am gasit-o intamplator

    http://cauta.trilulilu.ro/sr

    Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'Index doesn't exists in the specified directory.' in /usr/local/ZendFramework-1.9.5-minimal/library/Zend/Search/Lucene.php:539 Stack trace: #0 /usr/local/ZendFramework-1.9.5-minimal/library/Zend/Search/Lucene.php(215): Zend_Search_Lucene->__construct('/lib/init/rw/in...', false) #1 /wwwhost/cauta.trilulilu.ro/htdocs/source/search.php(236): Zend_Search_Lucene::open('/lib/init/rw/in...') #2 {main} thrown in /usr/local/ZendFramework-1.9.5-minimal/library/Zend/Search/Lucene.php on line 539

  3. The following was added to your account:

    new secret questions

    You can use the email address(es) in your Yahoo! account to reset your password. To ensure that your account information remains accurate and secure we notify you whenever this information changes.

    Your email address was added to the Yahoo! ID: pc**@*****.***. If this Yahoo! ID does not belong to you, or you did not recently add your email address to this Yahoo! ID, you may permanently stop receiving messages for this Yahoo! ID at this email address. Please visit the following link:

    https://edit.yahoo.com/commchannel/disavow?p=............................

    Yahoo! Member Services

    ********************************************************

    This change request was made on May 28, 2009 at 06:47am UTC

    Ce e asta ca am incercat sa intru la options si nu merge

×
×
  • Create New...