SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    lean mean coding machine cosmo's Avatar
    Join Date
    Aug 2001
    Location
    the cosmos
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cross Platform issue

    I have got this script which runs great on a Unix system, but for some reason spurts out errors on WinNT running PHP 4.2.3.


    Here are the errors:

    Notice: Undefined index: id in C:\web\code\phplitepoll\pollprocessor.php on line 21

    Notice: Undefined offset: 3 in C:\web\code\phplitepoll\pollprocessor.php on line 39

    Notice: Undefined index: display in C:\web\code\phplitepoll\pollprocessor.php on line 177

    Notice: Undefined index: voted in C:\web\code\phplitepoll\pollprocessor.php on line 181

    Warning: Cannot add header information - headers already sent by (output started at C:\web\code\phplitepoll\pollprocessor.php:21) in C:\web\code\phplitepoll\pollprocessor.php on line 188

    Notice: Undefined variable: notselected in C:\web\code\phplitepoll\polldisplay.php on line 15

    Notice: Undefined variable: already_voted in C:\web\code\phplitepoll\polldisplay.php on line 17



    Here are the lines:

    Line 21: $id = $_GET['id'];

    Line 39: if ($ip == $ip_array[$i]) {

    Line 77: $display = $_GET['display'];

    Line 181: } elseif ($_COOKIE['voted'] == 1 && $found == 1) {


    and so on...

    Any help would be greatly appreciated. Thanks.
    Luthfur R. - Web Developer
    PHP Lite.com - Professional PHP Scripts and Web Applications
    Calendar Express 2 - Web Based Calendar and Event Publishing System

  2. #2
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not a platform issue, but a PHP config issue. error_reporting in php.ini is different on each. on the system with errors, make sure error_reporting is set to this default in php.ini

    error_reporting = E_ALL & ~E_NOTICE

    and then don't forget to restart the Web server after the change.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  3. #3
    lean mean coding machine cosmo's Avatar
    Join Date
    Aug 2001
    Location
    the cosmos
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the quick reply.
    Luthfur R. - Web Developer
    PHP Lite.com - Professional PHP Scripts and Web Applications
    Calendar Express 2 - Web Based Calendar and Event Publishing System


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •