Likes Received By nico_swd

  1. kyrogenic liked nico_swd's post in the thread rss feed not working.

    First link doesn't work, and second is worthless for us. You will have to post your code.

    Jan 4, 2008
  2. hogan_h liked nico_swd's post in the thread rss feed not working.

    Yes, let's begin with that. The problem is probably there.

    Dec 29, 2007
  3. snappingpig liked nico_swd's post in the thread HELP - automatically create file for each product in database.

    <?php // Make sure a database connection has been established at this point. $query = mysql_query(" SELECT * FROM table_name...

    Dec 20, 2007
  4. danger9918 liked nico_swd's post in the thread forum problem.

    Probably somewhere in your admin CP. But you should be the only one to know what they are. You're gonna have to ask your host if you're...

    Dec 20, 2007
  5. tamilsoft liked nico_swd's post in the thread Need Regex help.

    preg_match('~<input\s+type="hidden"\s+name="url"\s+value="([^"]+)">~', $text, $match); echo $match[1];

    Dec 20, 2007
  6. matthewrobertbell liked nico_swd's post in the thread String matching question.

    www.php.net/preg_grep

    Dec 14, 2007
  7. MMJ liked nico_swd's post in the thread PHP ||/OR In Function.

    Both values will be casted to boolean, and both would be true. Let's rewrite it so you understand it better. $foo = 'a'; // 'a' casted...

    Dec 11, 2007
  8. Notting liked nico_swd's post in the thread Do your PHP forms get spammed? - Here's your solution:.

    I've been using this method since a long time now, and only ONE spam mail got through since then. (Using this method on multiple sites)...

    Dec 5, 2007
  9. carl_in_florida liked nico_swd's post in the thread str_replace help.

    echo str_replace( array("boston", "Stan"), array("miami", "Bob"), $text);

    Nov 26, 2007
  10. sweetfunny liked nico_swd's post in the thread Timestamp and Dates.

    EDIT: Too late. This didn't seem to be solved when I stated replying. function calc_date_diff($timestamp_past = false,...

    Nov 21, 2007
  11. nick-a liked nico_swd's post in the thread Remove www. from $_SERVER['HTTP_HOST'].

    $host = str_replace('www.', null, $_SERVER['HTTP_HOST']);

    Nov 20, 2007
  12. srobona liked nico_swd's post in the thread Count files in a folder.

    function file_count_types($path = '.') { if (!$files = glob(rtrim($path, '/\\') . '/*.*')) { return false; } $extensions =...

    Nov 17, 2007
  13. izlik liked nico_swd's post in the thread need help with code..

    <?php $con = mysql_connect("localhost","asd","asd") OR die('Could not connect: ' . mysql_error()); mysql_select_db("asd", $con);...

    Nov 16, 2007
  14. prilep liked nico_swd's post in the thread Ahh don't know whats wrong with this! Green Rep+.

    Yes, I get the logic. But the code itself is correct. Does your host support short tags? Replace <? with <?php and see if it works.

    Nov 16, 2007
  15. clinton liked nico_swd's post in the thread 40 Tips for optimizing your php Code.

    I know. I was just trying to point out that these examples would behave differently on the same 5 character string. $foo{5} is not...

    Nov 13, 2007
  16. commandos liked nico_swd's post in the thread What computer languages do you know?.

    Exactly. There's a difference between knowing a language and knowing the basics. I know PHP pretty good. And besides that, I'm...

    Nov 13, 2007
  17. killaklown liked nico_swd's post in the thread Login Problem.

    You forgot the echo. And session_register() is deprecated.

    Nov 9, 2007
  18. SniperFox.com liked nico_swd's post in the thread Some regex help please?.

    Use preg_match_all() instead of preg_match().

    Nov 9, 2007
  19. Colleen liked nico_swd's post in the thread preg_replace - help needed.

    The idea of using arrays is good, but rather pointless the way you do it. I'd do it this way: $text = preg_replace(array('~\s+~',...

    Nov 8, 2007