Page 1 of 1

Problems going to PHP 4 with php and flash

Posted: Fri May 20, 2005 1:43 pm
by QdollarSign
I am changing servers to my new inhouse server. I was in a older version of php now I have php 4. My code all worked fine on the old server. on the new server all the php pages seem to be working fine, but the variable don't transfer to flash. Does anyone now how to fix this? do I need to use _post_vars or something? previously I was just using echo to pass the variable.

Thank you!
Q$

Posted: Fri May 20, 2005 1:49 pm
by John Cartwright
Links you might find usefull

http://ca3.php.net/variables.predefined
http://ca3.php.net/register_globals (which is now turned OFF by default) which is causing your problem.

Posted: Fri May 20, 2005 1:52 pm
by QdollarSign
Thanks! Those links were very usefull.


But, do I have to turn on the register globals? That is a bit of a security risk. Is there another way around it? I don't mind taking the time to rewrite the code if that's what it will take.

Thanks!
Q$

Posted: Fri May 20, 2005 2:11 pm
by John Cartwright
Keep register globals off at all costs.

If you are passing information through a form.. you have to use $_POST['varnamehere'] and if you are passing information through a link use $_GET['varnamehere'] ... all of which is explained in the first link.

Posted: Fri May 20, 2005 2:24 pm
by QdollarSign
those both pass the variables to the php, i need the php to pass the variables to flash. :?: Using some sort of post I would assume. Does anyone know how to do this.

Thanks
Q$