User Profile

Collapse

Profile Sidebar

Collapse
lordspace
lordspace
Last Activity: Dec 17 '07, 02:18 PM
Joined: Nov 20 '06
Location: Bulgaria
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lordspace
    replied to Trim function
    I think that will erase all the spaces.
    Trim should erase leading and trailing white spaces
    oopps
    your answer is correct, the other user requested to delete all spaces.
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to Win32 ODBC Connect - Bad File Descriptor
    in Perl
    The previous link is very useful :)

    You have to configure Data Source Name.

    Start -> Control Panel -> Administrative Tools -> Data Sources (ODBC)
    click on tab: ["System DSN"] Fill the Required Data
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to What is SQL injection??
    Hi,

    the correct word is: 'injection'

    check this resource:
    http://en.wikipedia.or g/wiki/SQL_injection

    Svet
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to Dropdown, formatting
    in PHP
    printf() is not needed, you may use echo().
    Basically you need following code before the echo() function

    [php]
    $max_dots = 30;
    $row['evname'] .= str_repeat('.', abs(strlen($row['evname']) - $max_dots));
    [/php]
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to question about str_replace function
    in PHP
    Hi,

    use this instead of str_replace.
    We need more complex search and replace functionality so we use PCRE (Perl Compatible Regular Expressions).

    [php]
    $words=preg_rep lace("/\bave\b/si","avenue", $string);
    [/php]

    Svet
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to How to check mails by using perl script?
    in Perl
    Hi,

    it is very a challenging task.
    If you are novice to Perl you should experiment with more simple tasks.

    however you may check following search result:
    http://search.cpan.org/search?query=ya hoo+mail&mode=a ll

    Svet
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to Dropdown, formatting
    in PHP
    Hi,

    is that what you want ?

    [php]
    <?php

    $row['evdate'] = '070107';
    $row['evname'] = 'Shopping';
    $row['evplats'] = 'London';

    $max_dots = 30;
    $row['evname'] .= str_repeat('.', abs(strlen($row['evname']) - $max_dots));

    //echo "<option value=\"$row[evdate]\">$row[evdate]$row[evname]$row[evplats]\n</option>";...
    See more | Go to post

    Leave a comment:


  • lordspace
    replied to URL Redirection in CGI
    in Perl
    hi,

    browser uses HTTPS when sending user and password to google site and receives some auth cookies.

    about the redirection, here is my suggestion:

    [code=perl]
    #!/usr/bin/perl
    print "Location: http://domain.com\n\n" ;
    [/code]

    Svet
    See more | Go to post
    Last edited by pbmods; Oct 12 '07, 11:24 PM. Reason: Fixed CODE tags.

    Leave a comment:


  • lordspace
    replied to anonymous arrays
    in Perl
    one of the differences is using ->

    normal array
    $arr[0] = 1;

    annonymous array
    $anon_arr->[0];

    also you can pass annonymous array as it was a scalar and then dereference it when needed.
    See more | Go to post
    Last edited by lordspace; Dec 27 '06, 11:38 AM. Reason: adding 1 paragraph

    Leave a comment:


  • lordspace
    replied to word replacement in file
    in PHP
    ....
    $buffer = preg_replace('# \bWORD\b#si', 'NEWWORD', $buffer);
    ....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...