Web lists-archives.com

[PHP] Re: asterisk with php

You could have pointed out the line that is giving you the problem.

Also - your use of global is poor. It only happens if a certain condition happens, otherwise it won't be defined in that function that may be where the problem is. More importantly, you don't need a 'global' in the main-line code. You need it in the function (at the beginning) to let the function know that you want to reference the $pin var in use in the main-line code.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php