|
Posted by Captain Paralytic on 03/30/07 15:08
On 30 Mar, 15:51, "strawberry" <zac.ca...@gmail.com> wrote:
> On Mar 30, 3:28 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
> wrote:
>
>
>
>
>
> > On 30 Mar, 14:14, "strawberry" <zac.ca...@gmail.com> wrote:
>
> > > On Mar 30, 3:12 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
> > > > strawberry wrote:
> > > > > On Mar 29, 6:44 pm, "strawberry" <zac.ca...@gmail.com> wrote:
> > > > >> On Mar 29, 5:01 pm, "J.O. Aho" <u...@example.net> wrote:
>
> > > > >>> strawberry wrote:
> > > > >>>> I recently moved a mysql database and its associated php scripts from
> > > > >>>> one machine to another.
> > > > >>>> Now, however, although no errors are displayed, some aspects of the
> > > > >>>> php interface no longer work properly.
> > > > >>>> I suspect the problem is connected with my use of $PHP_SELF within
> > > > >>>> some of the pages.
> > > > >>>> I replaced "$PHP_SELF" with "$_SERVER['PHP_SELF']" which (I think) is
> > > > >>>> more widely supported but the problem still persists. Is there some
> > > > >>>> aspect of my php configuration that I should look at with respect to
> > > > >>>> this kind of problem?
> > > > >>> If you are using CGI, then $_SERVER[] won't work, if you use ISS you may note
> > > > >>> have full functionality in $_SERVER[].
> > > > >>> As you don't tell anything about the web server, we can't be sure on what goes
> > > > >>> wrong.
> > > > >>> --
> > > > >>> //Aho
> > > > >> It's just a recent xampp installation on a windows xp machine - so an
> > > > >> apache web server.- Hide quoted text -
>
> > > > >> - Show quoted text -
>
> > > > (it's nice to see a question of yours I can answer - I've learned a lot
> > > > from you :-) ).
>
> > > > $PHP_SELF only works if you have register_globals enabled in your
> > > > php.ini (a VERY BAD idea). You should be using $_SERVER['PHP_SELF']
> > > > instead.
>
> > > > From your later posting it seems $_SERVER['PHP_SELF'] is working. So I
> > > > suspect your old server had register_globals enabled but your new one
> > > > doesn't.
>
> > > > --
> > > > ==================
> > > > Remove the "x" from my email address
> > > > Jerry Stuckle
> > > > JDS Computer Training Corp.
> > > > jstuck...@attglobal.net
> > > > ==================
>
> > > Likewise Jerry :-)
>
> > > OK, I've updated all the relevant scripts (I think), replacing
> > > $PHP_SELF with $_SERVER['PHP_SELF'] - but it still didn't work :-(
> > > So, then I did a bad thing. I switched on register_globals. Now it
> > > works, but obviously we're shortly going to become the plaything of
> > > every mundane-data-obsessed evil geek on the planet.
>
> > > Any more thoughts?
>
> > > Thanks- Hide quoted text -
>
> > > - Show quoted text -
>
> > Honstly Strawberry you should be ashamed of yourself.
> > Fancy describing your problem as "some aspects of the php interface no
> > longer work properly."
> > and "but it still didn't work".
>
> > Quite obviously you still have some code that is based on some of the
> > globals being automagically registered.
>
> > How's about sharing precisely what things the "it"s are that are not
> > working. Then we might be able to help you better.
>
> :">
>
> But then my shame would only be compounded by revealing how appalling
> my php programming actually is! I'll try to have a sift through the
> code later, and remind myself what's actually going on, and then see
> if I can distil it in to something concise and eloquent enough to
> display here.- Hide quoted text -
>
> - Show quoted text -
> But then my shame would only be compounded by revealing how appalling
> my php programming actually is!
Ahh, yes, that is always difficult ;-)
[Back to original message]
|