|
Posted by Chris on 07/12/06 17:38
Hi,
Well, now I don't know which way to go. I don't want globals on for other
forms - just this one in particular as there are a bunch of form inputs and
I was lazy and didn't want to assign a variable to each
$_POST['formelementname']. All the elements will need to be inserted into a
MySQL db in addition to creating a path for moving the the file once it's
uploaded. BTW - I don't get access to the htaccess file (or php.ini) and
have to ask our computing support department for any changes - this can take
several days.
Actually, at this point I have become very overwhelmed between tracking
queries, writing code, assigning variables/values and inserting data into
the db. In particular I'm not fully understanding the move_uploaded_file
function - see my other post about uploading that I posted today.
Thanks,
Chris
"Peter van Schie" <vanschie.peter@gmail.com> wrote in message
news:44b4266b$0$27896$dbd4d001@news.wanadoo.nl...
> Chris schreef:
>> Yesterday while looking at various file upload code examples/tutorials, I
>> came across one that had a Superglobal that apparently overrode the
>> Global Variables Off parameter set in php.ini. This is for an intranet
>> site that is well secured but they prefer to keep Globals off overall. I
>> can't recall what the Superglobal was...I believe it was something like
>> $_HTTP['GET_VARS'] or $_SERVER['GET_HTTP_VARS']. I have looked through
>> several PHP manual postings online, but can't seem to find this, nor can
>> I find the reference I was looking at yesterday. Anybody have any input
>> here?
>
> Hi Chris,
>
> I'm not really sure what superglobal you're looking for, but if you want
> to enable register_globals for this one site you could use a .htaccess
> file to accomplish this. Set it like:
>
> php_flag register_globals off
>
> Also note that you cannot use ini_set to change register_globals.
>
> HTH.
> Peter.
> --
> http://www.phpforums.nl
Navigation:
[Reply to this message]
|