[TYPO3] global php variable

Ioan Aganencei ioan.aganencei at mox.ro
Thu Mar 1 10:02:30 CET 2007


Hi,
1.Try to see if it works by writing only those lines in your file
2. See if  error_reporting and display_errors is enabled in php.ini

Good luck!

a owen wrote:
> Hi,
>
> I having troubles with "global" in my own php-functions. somehow my
> functions cant see outside variables even if i set them as global.
>
> $i = 5;
>
> function test() {
>         global $i;
>         echo $i;
> }
>
> There is no output, what can i do. i've checked google and php.net, but
> found nothing. i've tried it without typo3 an then it works so i dont
> think it's my server. 
>
> i'm using:
>  apache 2.0.55
>  php 4.4.2-1.1
>  typo3 4.0.2
>  lumophpinclude 1.1.1
>
> please help, i'm demoralized by such a apparently easy function.
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>   


More information about the TYPO3-english mailing list