Likes Received By Danltn

  1. yourwish liked Danltn's post in the thread round number to nearest half.

    function round_to_half($num) { if($num >= ($half = ($ceil = ceil($num))- 0.5) + 0.25) return $ceil; else if($num < $half - 0.25)...

    Jan 8, 2016
  2. mantodeus liked Danltn's post in the thread PHP IP Logger.

    <?php file_put_contents('ips.log', $_SERVER['REMOTE_ADDR'] . "\n", FILE_APPEND); ?>

    Jul 17, 2011
  3. q7m liked Danltn's post in the thread alexa ranking.

    Nice untruths... function getAlexaRank( $url ) { preg_match( '#<POPULARITY URL="(.*?)" TEXT="([0-9]+){1,}"/>#si',...

    Sep 23, 2009
  4. izlik liked Danltn's post in the thread list files by date?.

    foreach($files as $file) { echo '<img src="' . $file . '" /><br />'; }

    Feb 24, 2009
  5. olddocks liked Danltn's post in the thread Need website Snapshot script.

    http://php.fm/screenshots

    Feb 18, 2009
  6. nickharper liked Danltn's post in the thread Issue with if statement....

    Change || to and (&&)

    Feb 7, 2009
  7. kslokesh liked Danltn's post in the thread How to modify PHP MySQL Code to work with FLAT FILE.

    If you don't have access to command line, try this for a MySQL -> Delimited values converter (e.g. tsv, csv.)...

    Jan 31, 2009
  8. fulltilt liked Danltn's post in the thread Sessions ....

    You can destroy it at your leisure, it will last (typically) for the current browser session. Dan.

    Jan 30, 2009
  9. qualityfirst liked Danltn's post in the thread Testing a PHP script on a local computer.

    No offence intended but your code must be pretty poor if you need to change that much. Assuming your server has at least PHP 5,...

    Jan 16, 2009
  10. jkjazz liked Danltn's post in the thread POST values not passing to second form.

    Try var_dump($_POST); and tell me the output. Are you sure it's being sent by POST? Could you post the form?

    Jan 11, 2009
  11. gordi555 liked Danltn's post in the thread Simply parsing of string - need help splitting please.

    Use preg_match... (why would you use replace, only makes life a lot harder...) <?php $str = 'Modern Scribe - Truly Successful...

    Jan 10, 2009
  12. khan11 liked Danltn's post in the thread how to restrict double inclusion of data?.

    Something like... $username = mysql_real_escape_string(get_magic_quotes_gpc() ? stripslashes($_POST['username'] : $_POST['username']);...

    Jan 8, 2009
  13. zerxer liked Danltn's post in the thread What is the best way to record unique views/clicks?.

    I'd recommend if you simply want to record how many unique visitors, and not what time period they visited at, a single column database...

    Jan 7, 2009
  14. scriptreseller liked Danltn's post in the thread extracting links from an array.

    file_put_contents('file.txt', implode(PHP_EOL, $matches[1]));

    Jan 5, 2009
  15. Magestry liked Danltn's post in the thread Changing ?n=dog to dog.html.

    First block of code switches on the RewriteEngine and sets the RewriteBase to / (change this as appropriate.) Also stops it matching...

    Jan 4, 2009
  16. MattEvers liked Danltn's post in the thread Help with flash header.

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"...

    Jan 3, 2009
  17. crath liked Danltn's post in the thread Secure Connection.

    Any details of that nature should be sent via an SSL connection, there really isn't another justifiable alternative when it comes to...

    Jan 3, 2009
  18. lruneh liked Danltn's post in the thread Using preg_match to search through rss feed.

    <?php $url = 'http://www.wiredbyduffy.com/rss/wbdrss.xml'; $term = 'Sudoku'; $insensitive = true; /* Example */ $feed =...

    Jan 2, 2009
  19. bluearrow liked Danltn's post in the thread A code for redirecting traffic from different countires.

    Oh, so how do you suggest to know where the users are coming from? The only way really is to use an IP database or a 3rd party service....

    Jan 1, 2009
  20. bollym4u liked Danltn's post in the thread Need Php Decryption.

    I've decoded it but I'm not going to send the decoded version until you send me sufficient proof that you're entitled to both use and...

    Dec 31, 2008