The reason for this:
PHP's default behaviour was changed in version 4.0.6 (I think).
The setting that is bugging you is 'register globals' in php.ini.
That one used to default to 'on' but now it is 'off' by default, for
security reasons.
It makes that fields contained in a POST-form are not available as normal
PHP variables anymore.
e.g. The user data of input type=text name=username was accessible as
$username in PHP before.
But now it is not anymore.
-- Rene...
This email message has been automatically scanned for viri using Sophos
antivirus.
- Original Message -
From: Joerg Eggink [EMAIL PROTECTED]
To: 'Nisan Bloch' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: 'Wilf (Neil Wilkinson)' [EMAIL PROTECTED]
Sent: Monday, October 28, 2002 7:27 PM
Subject: RE: Contrib scripts
Dear Nisan and Neil
I found something.
If I substitude the php variable from $PHP_SELF to $_SYSTEM[PHP_SELF]
than the variable can be shown. The other variables can be substituded
by $_POST[variable]
I get this tip from a friend but he could not explain the reason for
this.
Do you have any idea.
It seems that the system variable and the variables from the web
interface are different handled on my system.
Regards
Joerg
-Original Message-
From: Nisan Bloch [mailto:nisof;amagoblin.co.za]
Sent: Monday, October 28, 2002 5:59 PM
To: Joerg Eggink; [EMAIL PROTECTED]
Subject: RE: Contrib scripts
Hi
1. does php work on your system? i.e. can php scripts run
under apache? 2. are the scripts installed in the apache
document root? 3. have the config vars within the scripts
been set appropriately for your
environment.
nisan
At 03:17 PM 10/28/02 +0100, Joerg Eggink wrote:
Dear Neil
Thanks for the answer.
Now I add the .html to the http.conf after the AddType entry
for php.
The error message has gone but after press submit the
browser jump back
to the index.html and nothing happens. There are no logs on
bearer or
smsbox.
-Original Message-
From: Wilf (Neil Wilkinson) [mailto:wilf;bigpond.net.au]
Sent: Monday, October 28, 2002 12:46 PM
To: Joerg Eggink; [EMAIL PROTECTED]
Subject: RE: Contrib scripts
could be that index.html is not being parsed by php.
usually, an installation of php would tell you to add the
.php and
optionally (but not for public servers) the .phps
extensions to be
parsed by php. Have a look in httpd.conf and search for
php - you
can either add .html or change the .html to .php. i'd
recommend the
latter if you are serving normal html files from that
webserver as
there is an overhead in php parsing files unnecessarily.
another issue could be that you maybe making a request to a
directory (e.g.
http://somewhere.com/kannel/contrib/php-admin/) and you
are assuming
that the webserver will pick up index.php. this is not
the case by
default and you'll have to add index.php to the
DirectoryIndex
directive.
it does seem like a webserver problem as the php doesnt
appear to be
being executed.
best of luck,
wilf
-Original Message-
From: [EMAIL PROTECTED]
[mailto:users-admin;kannel.3glab.org]On Behalf Of Joerg Eggink
Sent: Monday, 28 October 2002 9:50 PM
To: [EMAIL PROTECTED]
Subject: Contrib scripts
Dear All
I tried to use the php scipts under the directory
kannel/contrib/php-admin from the snapshot source code.
If I send
a SMS I get always the message Method Not Allowed The
requested method
POST is not allowed for the URL
/kannel/contrib/php-admin/index.html
I'm not sure if it is webserver (apache) problem or the scripts
are not working proper.
Can anyone give me some tips.
Thanks in advance
Joerg