Posted by java on 03/07/07 07:54
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 getConnectionDetails() in
E:\ersDHCP\extractLog.php on line 21
PHP5 pretends failure to include a self-defined function
getConnectionDetails() that is stored in a file named
getConnectionDetails.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('writeTextFileHeader.php');
include_once('dumpDhcpLogToTextFile.php');
include_once('writeMySqlCreateScript.php');
include_once('dumpDhcpLogToMySqlInsertScript.php');
include_once('dumpDhcpLogToMySqlServer.php');
include_once('traverseDirTree.php');
include_once('getArgValue.php');
include_once('getConnectionDetails.php');
set_time_limit(0);
error_reporting(E_ALL);
$version = "Version 3.1 vom 7.3.2007";
$parameter = &getConnectionDetails(false);
getConnectionDetails.php
====================
<?
include_once('getDefaultHead.php');
include_once('getDefaultFoot.php');
include_once('getConnectionDetailsFromIniFile.php');
function &getConnectionDetails($dieOnFailure)
{
[Back to original message]
|