php-install Digest 15 Jul 2002 15:17:17 -0000 Issue 933

Topics (messages 7750 through 7754):

Re: variable problems
        7750 by: Chris Hewitt

Apache ignoring AddType? Apache 1.3.26 + PHP 4.2.1 on FreeBSD 4.6
        7751 by: Jim
        7752 by: Chris Hewitt

Re: Can't get URL or POST variables
        7753 by: Christian Stadler

PHP LDAP Module Problem
        7754 by: Nigel George

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Alexander Lindstedt wrote:

>Hi!
>I have got a new problem.
>When i try to assign a variable in the url, like:
>test.php?test=test
>and try to show the variable in the php file, i get a message that the
>variable is undefined. How do i have to do to fix this problem?
>thnx
>
register_globals. Please read the release notes for your version of php. 
I'll bet it is set to off, turn it on or use $_GET['var']. This comes up 
almost daily on this list, have you been monitoring it?

Chris


--- End Message ---
--- Begin Message ---
I compiled and installed PHP and apache without a hitch using the
instructions here http://www.php.net/manual/en/install.unix.php . Everything
seems ok except that Apache seems to be ignoring the "AddType
application/x-httpd-php .php" directive, instead of having php process the
script file (phpinfo) the browser prompts for download. I know it's reading
the httpd.conf because I can insert garbage and get apache to break. I see
no errors in the error log except for restart messages.

I'm sure this is something simple I've overlooked but... I'm racked.. any
suggestions?


-Shon





--- End Message ---
--- Begin Message ---
Jim wrote:

>I compiled and installed PHP and apache without a hitch using the
>instructions here http://www.php.net/manual/en/install.unix.php . Everything
>seems ok except that Apache seems to be ignoring the "AddType
>application/x-httpd-php .php" directive, instead of having php process the
>script file (phpinfo) the browser prompts for download. I know it's reading
>the httpd.conf because I can insert garbage and get apache to break. I see
>no errors in the error log except for restart messages.
>
>I'm sure this is something simple I've overlooked but... I'm racked.. any
>suggestions?
>
Jim,

Have you restarted Apache? Is php an Apache module? Is the AddType line 
inside a <Ifconfig> statement that is not actually being executed?

These are a few questions I asked myself when I had this. I did not find 
a fault but it started working so I could not trace the reason further.

HTH
Chris

--- End Message ---
--- Begin Message ---
Hi,

maybe you're right, but both links are answering his questions directly, so
that he needn't work himself through the changelog and the manual. In
addition to that, they give him all the Info he needs in order to work on
scripts, working with register_globals = Off.

It's not a direct anwser, that's right. But everyone would find the needed
info in no time, following these links.

Greetz,

Christian Stadler


"Matt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> To last post
>
> Funny enough people know about manuals as they are a link close to the
> download link on the devs site. Although if your new to PHP and the links
> manuals acn be a little confusing as it mentions more than you need or
want
> to know. People post on these news groups for help not just to be shunted
> off to a manual link. If that was the case why bother running a news
> server/group why not just have in big bold letters READ THE MANUAL why
cant
> you try to be a little helpfull and try and sort his prob.
>
> To Poster
>
> sorry i cant help you as iam new my self and realy have no idea the only
> thing i can thnk of is have you got the global settings switched on ?
>
> Matt
>
> "Christian Stadler" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > http://www.php.net/manual/en/reserved.variables.php
> > http://www.php.net/manual/en/security.registerglobals.php
> >
> > HTH
> >
> > Greetz,
> >
> > Christian Stadler
> >
> > "Ted R Lowe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT
4.0.
> > >
> > > It is working mostly, since i can run this script:
> > >
> > > <?php phpinfo(); ?>
> > >
> > > But i can't get the variables passed in via a URL or POST to be set
> > properly.
> > >
> > > When i run this test script, tst.php:
> > >
> > > <?php print "$tstvar"; ?>
> > >
> > > via http://localhost/tst.php?tstvar=tstvalue
> > >
> > > i get this Notice:
> > >
> > > Notice: Undefined variable: tstvar in tst.php on line 1
> > >
> > > instead of the expected output:
> > >
> > > tstvalue
> > >
> > > The same thing happens when i try to POST data into a .php script.
> > >
> > > Any help would be appreciated!
> > >
> > > Thanks,
> > > ted
> > >
> >
> >
>
>


--- End Message ---
--- Begin Message ---
I'm trying to use LDAP functions in PHP, on SuSE Linux. But I've been told I
need to enabled the extensions... php only comes with .dll's and these
obviously aren't for linux. So how can I get a PHP LDAP extension for linux?
Please

Thanks in advance

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nigel George
Webmaster
CPiO Limited

Telephone :     +44 (0) 1675 467046
Facsimile :     +44 (0) 1675 467682
E-Mail :        mailto:[EMAIL PROTECTED]
Web :           http://www.cpio.co.uk/

The views expressed within this message are those of the sender, not 
those of the company unless endorsed by a Director of CPiO Limited.

--- End Message ---

Reply via email to