Announcement

Collapse
No announcement yet.

Parse error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • i am coo man
    replied
    Last time I checked associative arrays and setting variables weren't very dependant on PHP versions.

    As I said, the specific error generated and some more code posted would help a lot...

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Scott what php version did you test it on?

    Leave a comment:


  • i am coo man
    replied
    It would be helpfull if you gave the error generated, and the 20 lines of code or so around that line.....

    or 10....

    Leave a comment:


  • Steve Machol
    replied
    Perhaps because the PHP versions are different on the two servers.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Hmmm. very strange. On one server I get a parse error on another works fine. very strange.

    Max

    Leave a comment:


  • Scott MacVicar
    replied
    that works fine for me as well.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    $__pulled_mails = 0;

    //
    $arr_what = array('s' => 'mail_subject', 'a' => 'mail_from', 't' => 'all_receiver', 'n' => 'sender_name');
    $arr_match = array('c' => '(X)', 'n' => '(X)', 's' => '^X', 'e' => 'X$', 'i' => '^X$');
    $arr_match2mime = array('s' => 'subject', 'a' => 'mail_from', 't' => 'to', 'n' => 'from');



    $total_undload = 0; //total undownloadable mail

    Leave a comment:


  • Scott MacVicar
    replied
    is it maybe a line above that has a missing end quote and the first one it comes to is that line? or a missing ; and it finds the first one on that line also?

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Thanks much Scott. Either way, I get a parse error

    Leave a comment:


  • Scott MacVicar
    replied
    nothing whatsoever.

    if you think a lines giving you a parse error just copy it and put it in a file say test.php on its own

    <?php
    parse_error_line_here
    ?>

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Parse error

    Parse error

    What is wrong with the syntax in this line?

    $arr_what = array('s' => 'mail_subject', 'a' => 'mail_from', 't' => 'all_receiver', 'n' => 'sender_name');
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X