[php] Новичкам: задаем вопросы

Discussion in 'PHP' started by _Great_, 26 May 2007.

Thread Status:
Not open for further replies.
  1. Compton

    Compton Member

    Joined:
    31 Jan 2010
    Messages:
    290
    Likes Received:
    25
    Reputations:
    0
    как это сделать?
     
  2. Gifts

    Gifts Green member

    Joined:
    25 Apr 2008
    Messages:
    2,494
    Likes Received:
    807
    Reputations:
    614
    Compton php.net/iconv для строки статуса
     
    _________________________
  3. Compton

    Compton Member

    Joined:
    31 Jan 2010
    Messages:
    290
    Likes Received:
    25
    Reputations:
    0
    опять ничего :mad:
     
  4. Life7

    Life7 Banned

    Joined:
    14 Jun 2009
    Messages:
    150
    Likes Received:
    54
    Reputations:
    0
    Не могу найти функцию, которая заменяла бы все &(и т.д.) на обычные символы.
    Подскажите, пожалуйста..
     
  5. Fepsis

    Fepsis Elder - Старейшина

    Joined:
    17 Sep 2008
    Messages:
    791
    Likes Received:
    391
    Reputations:
    72
    html_entity_decode()
     
  6. TRX.new

    TRX.new Member

    Joined:
    27 Apr 2009
    Messages:
    151
    Likes Received:
    21
    Reputations:
    0
    PHP:
    htmlspecialchars_decode();
     
  7. Life7

    Life7 Banned

    Joined:
    14 Jun 2009
    Messages:
    150
    Likes Received:
    54
    Reputations:
    0
    Спасибо.

    Как вывести дату в формате RFC 822 ?
     
  8. Compton

    Compton Member

    Joined:
    31 Jan 2010
    Messages:
    290
    Likes Received:
    25
    Reputations:
    0
    echo date(DATE_RFC822);
     
  9. imajo.ati

    imajo.ati Banned

    Joined:
    21 Feb 2008
    Messages:
    232
    Likes Received:
    62
    Reputations:
    8
    безопасно ли делать так?
    PHP:
    $referer = (string)@$_SERVER["HTTP_REFERER"];
    $referer preg_replace("~[\r\n]+~"""$referer);
    header("Location: {$referer}");
     
  10. Welemir

    Welemir Elder - Старейшина

    Joined:
    10 Jan 2008
    Messages:
    229
    Likes Received:
    11
    Reputations:
    -4
    Нашёл такое в классе: global $$LangFile.Что это такое ?
     
  11. Fepsis

    Fepsis Elder - Старейшина

    Joined:
    17 Sep 2008
    Messages:
    791
    Likes Received:
    391
    Reputations:
    72
    может типа:
    PHP:
    <?PHP 

    $x 
    'y';
    $y 'ololololol';
    echo $
    $x;

    ?>
     
  12. warlok

    warlok Elder - Старейшина

    Joined:
    17 Feb 2008
    Messages:
    328
    Likes Received:
    142
    Reputations:
    81
    http://www.webappsec.org/lists/websecurity/archive/2009-08/msg00116.html
     
    1 person likes this.
  13. Tesson

    Tesson Banned

    Joined:
    27 Dec 2009
    Messages:
    164
    Likes Received:
    43
    Reputations:
    0
    Как сделать через .htaccess
    это name.com/images/foto.gif
    на name.com/foto.gif ? :rolleyes:
     
  14. Omegа

    Omegа Member

    Joined:
    16 Dec 2009
    Messages:
    27
    Likes Received:
    11
    Reputations:
    5
    Что-то вроде
    Code:
    RewriteRule ^/(.*\.(gif|png|jpg))$ /images/$1
    А вообще для таких вопросов есть своя тема https://forum.antichat.ru/thread92492.html где указаны статьи, написанные на очень понятном языке.
     
  15. Tesson

    Tesson Banned

    Joined:
    27 Dec 2009
    Messages:
    164
    Likes Received:
    43
    Reputations:
    0
    не работает :(
     
  16. namak

    namak Member

    Joined:
    29 Jan 2009
    Messages:
    66
    Likes Received:
    8
    Reputations:
    0
    народ а что это за запись?
    <?=$lang['bbcode']?>

    это тоже самое что <? echo $lang['bbcode']; ?> ???
     
  17. namak

    namak Member

    Joined:
    29 Jan 2009
    Messages:
    66
    Likes Received:
    8
    Reputations:
    0
    вот я о том же))
     
  18. Deathdreams

    Deathdreams Elder - Старейшина

    Joined:
    8 Nov 2008
    Messages:
    342
    Likes Received:
    116
    Reputations:
    5
    Code:
    RewriteRule ^/images/(.+)$ /$1 [L]
    
     
  19. Tesson

    Tesson Banned

    Joined:
    27 Dec 2009
    Messages:
    164
    Likes Received:
    43
    Reputations:
    0
    не пашет :mad: и не кто не знает как сделать странно так :(
     
    #14599 Tesson, 26 Mar 2010
    Last edited: 26 Mar 2010
  20. dk-ne

    dk-ne Elder - Старейшина

    Joined:
    21 Jan 2007
    Messages:
    73
    Likes Received:
    2
    Reputations:
    0
    Какой функцией производить операции с файлами .txt если file не способен обрабатывать большие объемы данных? А в файле около полумиллиона строк.
     
Thread Status:
Not open for further replies.