Problems going to PHP 4 with php and flash

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
QdollarSign
Forum Newbie
Posts: 5
Joined: Fri May 20, 2005 1:30 pm

Problems going to PHP 4 with php and flash

Post 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$
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
QdollarSign
Forum Newbie
Posts: 5
Joined: Fri May 20, 2005 1:30 pm

Post 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$
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
QdollarSign
Forum Newbie
Posts: 5
Joined: Fri May 20, 2005 1:30 pm

Post 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$
Post Reply