Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    6

    Unanswered: PHP Runs with Following Error

    hi

    Can anybody help how to solve the Error Message when i run the php file

    I am getting Error Message: [Use of undefined constant loc]

    any solutions appreciated

    ware regards
    syedhanif

  2. #2
    Join Date
    Feb 2004
    Posts
    533
    You likely want to change your error reporting directive in the PHP.ini file. If you have only E_ALL then you will get notices in addition to Errors. Notices produce non critical errors for vriables not being set.

    The default to show Errors and not (~) Notices is..

    error_reporting = E_ALL & ~E_NOTICE

    This can be set in the PHP.ini The error setting can also be set within the script to override the ini setting.
    ~

    Bill

Posting Permissions

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