I've just deployed an app on a hosted server (Solaris) and I've noticed that the extract() function doesn't work. Any ideas why? Config problem?
I'm running PHP 5.14 on my laptop, Darwin laptop1s-computer.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386
And the server is running 5.12
SunOS z09528AA 5.11 snv_43 i86pc
Thanks!
extract() problem
Moderator: General Moderators
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
Yes, it has become a habit.Up pretty late in the uk?
Yes, because, depending on the names of the database fields, other variables can be overwritten. It's not so much dangerous from a security standpoint but can make for some difficult debugging. So if you are going to use it then you should use it before defining any other variables and at the top of a function (scoped) imo.but I'm using if for DB queries ($row)...do you see a problem with that? Just curious.