Re: spot the error



<snip>
<?php
@session_start();
define('DB_SERVER', '*****');
define('DB_USERNAME', '*****');
define('DB_PASSWORD', '*****');
define('DB_DATABASE', '*****');

require_once("db-handler.php");

Just curious: are there more scripts called db-handler.php in different directories? You might be looking at the wrong one, especially if the above script is also included (from a different directory). If you really want the file from the same directory, you can write something like:

require_once(dirname(__FILE__) . '/db-handler.php');

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
.



Relevant Pages

  • Re: ban ip addresses
    ... If you check, you will see that those numbers are negative (i.e., the highest order bit is set). ... Willem Bogaerts ... Application smith ...
    (comp.lang.php)
  • Re: RFC: Building the Perfect Tabbed Pane (an tutorial article)
    ... manipulation. ... that logic must reside in a script block ... head shouldn't be an issue as long as the script is after the closing ...
    (comp.lang.javascript)
  • Re: Javascript: string detection
    ... this script doesn' work, probably, because of the wrong syntax. ... A complete syntax check is better left to the server where existing code is more readily available and not a burden on the client. ... Be aware that even the regular expression above is restrictive as it won't accept literal IPv6 addresses, those that contain display names, or comments in some locations. ...
    (comp.lang.javascript)
  • Re: Grep and mv
    ... Or just the ones you have created with the script? ... > My silly little grep script extracts the names as ... > The error messages I get when running this script are: ...
    (comp.unix.shell)
  • Re: Unix scripts
    ... operations at the beginning of the script while calling it after ... > If no file is given on the command line or all file lines were read, ... > The system calls echo and printf are frequently used for the file line ...
    (comp.unix.programmer)