Likes Received By nico_swd

  1. carl_in_florida liked nico_swd's post in the thread Limit number of characters to display from a MySQL query.

    <?= substr($rs->fields['text'], 0, 50); ?> www.php.net/substr

    Aug 6, 2007
  2. it career liked nico_swd's post in the thread Better to wait or just get it out?.

    Not all, but a lot of software has bugs. Just check PHP's bug list. (Total of 41898 bugs) http://bugs.php.net/bugstats.php However,...

    Aug 4, 2007
  3. Crayz liked nico_swd's post in the thread Help passing variables through my function -- should be simple to answer!.

    $username = $_POST['username']; $password = $_POST['password'];

    Aug 2, 2007
  4. crazyryan liked nico_swd's post in the thread Eval.

    $str = '<img src=\"". $file . "\" />'; $file = 'image.jpg'; eval('$new_str = "' . $str . '";'); echo $new_str;

    Aug 2, 2007
  5. 1EightT liked nico_swd's post in the thread looking for a php based sms script.

    For the sending, you can check a class I wrote. http://www.bytemycode.com/snippets/snippet/647/ But the receiving is going to be way...

    Jul 30, 2007
  6. ruud liked nico_swd's post in the thread Looking for a small php function.

    So you want to replace spaces with plus signs? $text = preg_replace('/\s+/', '+', $text);

    Jul 30, 2007
  7. DidierE liked nico_swd's post in the thread Looking for a special Image Rotator Script...Help me out, for GREEN REP.

    Well, the easiest way would be this: You name your images by the number of each week. Eg: 32.jpg (This would be the image for week...

    Jul 30, 2007
  8. exodus liked nico_swd's post in the thread Ajax: submit method.

    http.open("POST", url, true); http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); http.onreadystatechange =...

    Jul 26, 2007
  9. nabil_kadimi liked nico_swd's post in the thread PHP - Converting IP to Country.

    Has been answered here: http://www.programmingtalk.com/showthread.php?t=37920 Why do people always have to post on multiple forums? :(

    Jul 21, 2007
  10. sawz liked nico_swd's post in the thread a question about includes.

    include returns true by default on success. True has the value of 1, and you're echoing the include. That's where the 1 comes from. Just...

    Jul 19, 2007
  11. Weirfire liked nico_swd's post in the thread var_dump() with mail().

    $array = print_r($_SESSION, true); mail('you@example.com', 'Session array', $array);

    Jul 19, 2007
  12. parab liked nico_swd's post in the thread Need help with WordCloud Script.

    The site doesn't load at all for me.

    Jul 19, 2007
  13. deva.vvel liked nico_swd's post in the thread What is Session hijacking.

    How to use or how to prevent it? lol You may want to have a look at this. http://www.acros.si/papers/session_fixation.pdf

    Jul 12, 2007
  14. littlebobek liked nico_swd's post in the thread Function returns echo $something, any way to use it in variables?.

    <?php ob_start(); thatfunction(); $variable = ob_get_contents(); ob_end_clean(); ?> <h1><?php echo $variable; ?></h1>

    Jul 11, 2007
  15. liamvictor liked nico_swd's post in the thread Testing remote sites for redirection with PHP.

    function get_final_location($url) { $headers = @get_headers($url); foreach ((array)$headers AS $header) { if...

    Jul 6, 2007
  16. ansi liked nico_swd's post in the thread file reader > echo html links (code inside).

    echo '<br><a href="/dir/'. $entry .'">'. preg_replace('/\.[a-z0-9]+$/i', null, $entry) .'</a>; Untested but should work.

    Jul 4, 2007
  17. Vewgle liked nico_swd's post in the thread Explain this line of code..

    -> - It's called arrow operator, if I'm not mistaken. It's used to access methods and variables in objects. http://www.php.net/oop The...

    Jun 26, 2007
  18. riya_senk liked nico_swd's post in the thread JS Question.

    Then you can take out the brackets, and the line I posted above should work: alert(document.getElementsByName('test')[0].value); // And...

    Jun 25, 2007
  19. slayer liked nico_swd's post in the thread contact form with file attachement.

    EDIT: Or have a look at this: http://forums.digitalpoint.com/showthread.php?t=355702 http://phpmailer.sourceforge.net/...

    Jun 17, 2007