Mailinglisten-Archive |
At 21:49 03.10.2000 +0200, Christian Peer wrote:
>Was stimmt hier nicht?
>
>if(!function_exists(init_session_managment))
>{
> function init_session_managment()
> {
> ....
Hi Christian,
1. function_exists("init_session_managment")
(Anführungszeichen) - sauber programmieren
(Oh Gott, lass doch da nen parse error kommen)
2. Welcher Fehler kommt überhaupt? ;)
test1.php
<?
if(!function_exists(abc)) {
function abc() {
echo("FooBar");
}
}
abc();
?>
Output: FooBar
test2.php
<?
function abc() {
echo("BarFoo");
}
if(!function_exists(abc)) {
function abc() {
echo("FooBar");
}
}
abc();
?>
Output: BarFoo
Getestet auf Win98SE && (PHP4.0.0 || PHP4.0.2)
Bye
Dante
--
<? /* PHP4 */ echo(preg_replace('_(at)_([0-9a-f]{2})._(at)_ie','chr(hexdec("\\1"))',
'48G65h6cI6Cj6fK20l57M6Fn72O6Cp64Q21r')) /* PHP - The better choice */ ?>
php::bar PHP Wiki - Listenarchive