Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Warnings under IIS??

    I have a script that runs fine on apache. But when I run it on IIS, I encounter the following warnings:


    Warning: Undefined variable: action
    on this line:
    if($action == "edit") {

    action is defined elsewhere like so:
    echo "&nbsp;<a href=\"$PHP_SELF?action=edit&id=$key\">Edit</a>\n";

    and a warning,
    Warning: Undefined index: submit
    on this line:

    if($HTTP_POST_VARS['submit']) {

    the submit is a form name.
    What is needed to make this work on IIS?

    G

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK, it is a difference in php.ini settings. I put this line in my script and suppressed the warnings:
    error_reporting(E_ALL & ~E_NOTICE);

    G


  •  

    Posting Permissions

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