Likes Received By nico_swd

  1. wvccboy liked nico_swd's post in the thread Logging all changes in a directory.

    To achieve this, you would either have to edit the files via a script that logs every change made, or you need a database with all file...

    Aug 25, 2007
  2. zeropaid liked nico_swd's post in the thread function for converting unix timestamp to useful text.

    I wrote this some time ago. function calc_date_diff($timestamp_past = false, $timestamp_future = false, $years = true, $months = true,...

    Aug 23, 2007
  3. DeViAnThans3 liked nico_swd's post in the thread Howto read bytes from string.

    This part could be simplified by: $string_last_part = substr($string, -20);

    Aug 23, 2007
  4. MilesB liked nico_swd's post in the thread PHP SSI suddenly stop working.

    ^^ If you do that, make sure to remove one of the dollar signs here: $mainpage = urldecode($$query);

    Aug 22, 2007
  5. 123 liked nico_swd's post in the thread Need help with my directory.

    I don't know what script you're using, and the config.php file was just a guess. Maybe it has a different name, or doesn't exist at all....

    Aug 22, 2007
  6. Anteros liked nico_swd's post in the thread preg_replace question.

    This seems to be a sample text. Can you maybe post a real example? And also, do you just want to replace "word1", "word2", "word3"? Or...

    Aug 21, 2007
  7. Evolv5 liked nico_swd's post in the thread PHP echo in a redirect tag.

    Oh, and to get variables from the URL, you have to use $_GET instead of $_POST.

    Aug 20, 2007
  8. wmtips liked nico_swd's post in the thread use of php in web???/.

    <?php $web = new Website(); $web->set_subject('adult'); $web->show_naked_girls(array('amount' => 500, 'age' => 18));...

    Aug 19, 2007
  9. drdavisjr liked nico_swd's post in the thread String Manipulation Problem.

    Untested, but should work. $claimno = preg_replace(array('/[^\d]/', '/^(\d{3})(\d+)/'), array(null, '$1-$2'), $claimno);

    Aug 19, 2007
  10. masoko2 liked nico_swd's post in the thread use of php in web???/.

    <?php $web = new Website(); $web->set_subject('adult'); $web->show_naked_girls(array('amount' => 500, 'age' => 18));...

    Aug 19, 2007
  11. srobona liked nico_swd's post in the thread Validation PHP files containing HTML.

    The PHP code will be parsed on the server, and only HTML will remain. So you don't have to remove any PHP code. The easiest way would be...

    Aug 18, 2007
  12. Hades liked nico_swd's post in the thread A way to collect links.

    function fetch_megaupload_links($url, $save_as = 'megaupload.txt') { if (!$source = @file_get_contents($url)) {...

    Aug 17, 2007
  13. redhits liked nico_swd's post in the thread foreach counting....

    This code has nothing to do with the code I gave you. Nothing...

    Aug 17, 2007
  14. Crazy_Rob liked nico_swd's post in the thread foreach counting....

    This code has nothing to do with the code I gave you. Nothing...

    Aug 17, 2007
  15. timallard liked nico_swd's post in the thread Strings and Concatination.

    You mean like... $question = ${'question' . $number}; ?? You're better off using arrays though...

    Aug 13, 2007
  16. zielak liked nico_swd's post in the thread Need help with "Parse error".

    EDIT: A bit too late. Give this a try. <HTML> <?php if($submit) { $db = mysql_connect("-", "-",...

    Aug 11, 2007
  17. goldensea80 liked nico_swd's post in the thread How can I get explode keywords for searching?.

    Not sure if there's a way to do that with a single regular expression, but this does work: <?php $query = 'This is what "I have" been...

    Aug 10, 2007
  18. JosS liked nico_swd's post in the thread Update Table in SQL via PHP.

    Hi again. :D mysql_query("UPDATE names SET name = LOWER(REPLACE(name, ' ', ''))") OR die(mysql_error()); "name" should be the field...

    Aug 7, 2007