note 101699 modified in language.variables.scope by danbrown

From: Date: Wed, 05 Jan 2011 23:45:28 +0000
Subject: note 101699 modified in language.variables.scope by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175473@lists.php.net to get a copy of this message
I was struggling forever to figure this out and finally tried the $GLOBALS["filename"] = $filename approach, and it worked for me. This happens on one of my machines, on which I installed Zend AMF a few months before my most recent machine. The globals worked fine when calling the PHP script directly from a browser, but when I called the function from my Flash project, which uses Zend AMF to interface with the PHP script, I was seeing this problem, but it was fixed using this approach. --was-- I think the below post also applies to some versions of Zend AMF. I was struggling forever to figure this out and finally tried the $GLOBALS["filename"] = $filename approach, and it worked for me. This happens on one of my machines, on which I installed Zend AMF a few months before my most recent machine. The globals worked fine when calling the PHP script directly from a browser, but when I called the function from my Flash project, which uses Zend AMF to interface with the PHP script, I was seeing this problem, but the below solution solved it for me. http://php.net/manual/en/language.variables.scope.php

« previous php.notes (#175473) next »