CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Ipsens

Page 1 of 15 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    1,387

    PHP to utilize libmilter library

    I've created a php cli run, php milter server, that communicates through socket file, with postfix, as postfix's filter.

    Now I have a problem with communication with postfix.
    I simply have no...
  2. Replies
    4
    Views
    1,036

    Re: Event (on)change issue

    Ok, I will.
  3. Replies
    4
    Views
    1,036

    Re: Event (on)change issue

    Well, that doesn't work in IE7 as well
  4. Replies
    4
    Views
    1,036

    Event (on)change issue

    I am using prototype's framework.
    I wish to fire it upon changed value in, eg: select element, if option changes.


    Event.observe(document.body, 'change', function(event) {
    alert('I AM...
  5. Replies
    3
    Views
    1,609

    Re: [MySQL 5.1 & PHP] Proper table relation

    It can't be done, as it would had to be added to table 'one'
    And table 'one' has always more rows and few rows from table 'one' are related to ONE row of table 'two'.

    So as I can't modify table...
  6. Replies
    3
    Views
    1,609

    [MySQL 5.1 & PHP] Proper table relation

    What would be a proper design of the relationships for this case?
    Table 'one' has column "id", which is primary key and few other columns.
    Table 'two' has column "applies", which is primary key and...
  7. Re: [MySQL 5.1 & PHP] Prepared STMT with REGEX

    It doesn't matter anymore, as I've found a solution.
    It is as follows:


    $sql =
    'SELECT t1.for
    FROM t1, t2
    WHERE t1.for = t2.for && t1.for
    REGEXP CONCAT(\'[^0-9]+\', ?,...
  8. [RESOLVED] [MySQL 5.1 & PHP] Prepared STMT with REGEX

    This is SQL query stored in PHP's var:


    $sql =
    'SELECT t1.for
    FROM t1, t2
    WHERE t1.for = t2.for && t1.for
    REGEXP \'[^0-9]?[^0-9]\'';
    Question mark in a middle of regexp...
  9. Replies
    6
    Views
    919

    Re: PHP: Mimic built in function

    Yes, I know that.
    But, after that comes PHP's limitation.
  10. Replies
    6
    Views
    919

    Re: PHP: Mimic built in function

    Actualy it is $stmt class in play, created by MySQLi class.

    So..., that is final?
    It can't be done!?

    I wanted to create such function which would receive as many variables as I wanted.
    That...
  11. Replies
    6
    Views
    919

    Re: PHP: Mimic built in function

    That is a point!

    NOT to declare variables anywhere!
    They FIRSTLY appear, like arguments supplied to that function:

    xperiment($one, $two, $three);
    JUST like in a case of stmt_bind_result.
  12. Replies
    4
    Views
    2,886

    Re: JavaScript: Making color lighter

    Ok, thanks!
    ;)
  13. Replies
    6
    Views
    919

    [RESOLVED] PHP: Mimic built in function

    I must admit, that I am fascinated with method bind result

    $stmt->bind_result($col1, $col2);

    Because it can take non fixed number of arguments.
    In this case those are variables, which were NOT...
  14. Replies
    4
    Views
    2,886

    Re: JavaScript: Making color lighter

    Problem is that I don't know, "how much" should I add or subtract from current color, to make it lighter
  15. Replies
    1
    Views
    695

    PHP mysqlnd: wrong error

    After running sql, which was prepared by stmt, and after that executed...
    I've receieved error:

    COMMANDS OUT OF SYNC; YOU CAN'T RUN THIS COMMAND NOW

    I know what this error means.
    This made me...
  16. Replies
    4
    Views
    2,886

    JavaScript: Making color lighter

    <label for="biz_name">Bussines name</label>
    Color and all other properties for label element have been set in external CSS file.
    Minimizing markup!

    I need a JS script, which will:
    a) get...
  17. Thread: Charsets

    by Ipsens
    Replies
    6
    Views
    1,062

    Re: Charsets

    Oh, those charsets are driving me nuts, really.

    And what is worst..., you can't rely on PHP's internal functions to detect charsets of certain string.

    It is really like working in a chaos, when...
  18. Thread: Charsets

    by Ipsens
    Replies
    6
    Views
    1,062

    Re: Charsets

    Ok, just to say this.
    I 've edited my object which generates valid XHTML code, in a way, that just one line before html output, it converts it from iso-8859-1 (Latin-1) to Unicode utf-8 for web...
  19. Thread: Charsets

    by Ipsens
    Replies
    6
    Views
    1,062

    Re: Charsets

    Yes, I can see that now.

    PHP 5 has no native support of Unicode utf-8
    PHP 5 defaults to iso-8859-1 (Latin-1) as well as MySQL

    But PHP 6 however will be have default Unicode UTF-8 support.
    ...
  20. Thread: Charsets

    by Ipsens
    Replies
    6
    Views
    1,062

    Charsets

    I must admit this ones are confusing me a lot!

    When I load a page which sends:

    Content-Type: text/html; charset=windows-1250

    I get text[FF 3] - both in browser and source code[CTRL+U]:
    ...
  21. Replies
    5
    Views
    1,123

    Re: Bug in function, in_array()??

    Yes, I know you were reffering, to thatThat is exactly, how I did code, just a month ago, but after having a case where amount 0, evalueted to false, just because PHP's function by default used ==...
  22. Replies
    5
    Views
    1,123

    Re: Bug in function, in_array()??

    Yes, I see now, after having a little of sleep.
    This is an exact comparision, that PHP does:

    if(0 == 'hgasj')
    {
    echo 'I see it, as a same! :P';
    }


    I know that, but because PHP is loosely...
  23. Replies
    5
    Views
    1,123

    Bug in function, in_array()??

    So...
    This is user input:

    $range = array(2.55, 59.69);

    This is parsed code:

    $okRange = array('min_range', 'max_range');

    foreach($range as $k => $v)
  24. Replies
    2
    Views
    1,297

    Re: [PHP] SplTempFileObject

    Really? :cool:

    Try to execute this:


    foreach( get_class_methods('SplTempFileObject') as $methodName )
    {
    echo $methodName . '<br />';
    }
  25. Replies
    2
    Views
    1,297

    [PHP] SplTempFileObject

    I am unable to find any documentation on it.
    Especially, I can't find any tutorials about that class.

    Why? :confused:
Results 1 to 25 of 354
Page 1 of 15 1 2 3 4





Click Here to Expand Forum to Full Width

Featured