Jump to content

putnamehere

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by putnamehere

  1. [!--quoteo(post=363052:date=Apr 9 2006, 12:40 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 9 2006, 12:40 PM) [snapback]363052[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Simple:
    [code]$str = "String<br />with <br />line breaks<br />";
    $str = str_replace("<br />", "", $str);

    echo $str;[/code]
    [/quote]

    it works but i want to write "$str" to a file and for that it dosent work any ideas y?
  2. Hi, i'm makeing a comment script and i have a input box for the persons name or email.
    Problem is when the page is submited i need to know if it's a email or website so i use the mailto:// or http:// acordingly.

    How would i do this?
  3. Hi, how do i load something after the page has already loaded without refreshing the page?
    i looked at php flush() but i couldent understand it. Can some explain to me how i use this or any other command to "load something without refreshing the page".
    Thanks!
    Paul
  4. I would like to creat a script that searched files on my server for a string once the string was found it would desply the area were it found it, how would i do this??
    [code]
    <?php
    $search = $_POST['s'];
    $file="index.php";
    $getcontents=file_get_contents($file);
      

    if (preg_match("/$search/", "$getcontents", $look)) {
       echo "A match was found.<BR>$look";
    } else {
       echo "A match was not found.";
    }

    ?>
    [/code]
    Thats what i'v got so far but it just says a match was found array how would i desply the text after the or before were the string it found?
×
×
  • 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.