Re: spot the error
- From: Willem Bogaerts <"w.bogaerts'OR1=1-- "@kratz.maardanzonderditstuk.nl>
- Date: Tue, 20 Jan 2009 10:10:44 +0100
<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/
.
- References:
- spot the error
- From: j . hickling
- Re: spot the error
- From: Hugh Oxford
- Re: spot the error
- From: j . hickling
- spot the error
- Prev by Date: Re: ban ip addresses
- Next by Date: Re: What is the need for @ symbol in php script
- Previous by thread: Re: spot the error
- Next by thread: Re: spot the error
- Index(es):
Relevant Pages
|