Hey there,
I just removed an elderly PHP4-Installation from my Windows-Box and
installed PHP 5.2.1. I used the PHP4-Module as local batchfile-
interpreter by
E:\ersDHCP>php ./extractLog.php
which was perfectly alright and worked well. But now PHP5 fails to run
the same script without any modification!
E:\ersDHCP>php ./extractLog.php
.... a bunch of php-code ...
PHP Fatal error: Call to undefined function getConnectionDe tails() in
E:\ersDHCP\extr actLog.php on line 21
PHP5 pretends failure to include a self-defined function
getConnectionDe tails() that is stored in a file named
getConnectionDe tails.php in the current directory just next to
extractLog.php. Using this script never has been a problem with PHP4
and I have no idea how to cope with this. Can anybody help me?
Thanks in advance
Christian
extractLog.php
=============
<?php
include_once('w riteTextFileHea der.php');
include_once('d umpDhcpLogToTex tFile.php');
include_once('w riteMySqlCreate Script.php');
include_once('d umpDhcpLogToMyS qlInsertScript. php');
include_once('d umpDhcpLogToMyS qlServer.php');
include_once('t raverseDirTree. php');
include_once('g etArgValue.php' );
include_once('g etConnectionDet ails.php');
set_time_limit( 0);
error_reporting (E_ALL);
$version = "Version 3.1 vom 7.3.2007";
$parameter = &getConnectionD etails(false);
getConnectionDe tails.php
=============== =====
<?
include_once('g etDefaultHead.p hp');
include_once('g etDefaultFoot.p hp');
include_once('g etConnectionDet ailsFromIniFile .php');
function &getConnectionD etails($dieOnFa ilure)
{