brain fried

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

jmarcv
Forum Contributor
Posts: 131
Joined: Tue Jul 29, 2003 7:17 pm
Location: Colorado

Post by jmarcv »

I don't see where you are outputting text. Must be in your functions, but we can't see them from here.
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

matthiasone wrote:I finally found the setting ........globals are off.......I will contact the hosting service and see about getting it turned on

Sorry to trouble everyone

:oops:
I highly doubt they will turn it on. It was turned off by default in 4.2.0 and later because leaving it on is a massive security problem. Read the sticky thread in this forum about passing variables in PHP 4.2+

A very dirty and ugly and insecure fix is to add

Code: Select all

extract($_GET);
to the top of your script. It is much, much, much better to explicitly import the variables you need, by name as I suggest in my last post.
matthiasone
Forum Contributor
Posts: 117
Joined: Mon Jul 22, 2002 12:14 pm
Location: Texas, USA
Contact:

Post by matthiasone »

that fixed the problem......

thanks nielsene and jmarvc
jmarcv
Forum Contributor
Posts: 131
Joined: Tue Jul 29, 2003 7:17 pm
Location: Colorado

Post by jmarcv »

Well, I wasn't any help, but glad you got it.
Post Reply