php-windows Digest 3 Nov 2003 08:40:53 -0000 Issue 1981
Topics (messages 21946 through 21955):
POST and GET form
21946 by: Patrick Dufresne
21948 by: GaguWD
21949 by: Patrick Dufresne
21950 by: GaguWD
21952 by: Dash McElroy
Re: Installation probs...
21947 by: Steven Mac Intyre
21951 by: Bobo Wieland
21953 by: Dash McElroy
21954 by: Bobo Wieland
Help about Pear
21955 by: Muhammad Imran
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 ---
I recently installed PHP under Microsoft Server 2000 / IIS 4.0 and I'm
having
problem with POST and GET. If I put my form in METHOD=POST, I cannot
recover
the string in the destination page.
If I put METHOD=GET in my form, I'm able to get back my string but they are
displayed in the URL.
Why I cannot use METHOD=POST??? I'm not in CGI but in ISAPI mode.
--- End Message ---
--- Begin Message ---
How do you try to recover it?
You must use this type of variable to recover your data:
$_POST['variable_name'] and $_GET['variable_name']
Bye!
MG29
-----Mensaje original-----
De: Patrick Dufresne [mailto:[EMAIL PROTECTED]
Enviado el: Sabado, 01 de Noviembre de 2003 12:50 p.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP-WIN] POST and GET form
I recently installed PHP under Microsoft Server 2000 / IIS 4.0 and I'm
having
problem with POST and GET. If I put my form in METHOD=POST, I cannot
recover
the string in the destination page.
If I put METHOD=GET in my form, I'm able to get back my string but they are
displayed in the URL.
Why I cannot use METHOD=POST??? I'm not in CGI but in ISAPI mode.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Gaguwd a écrit :
How do you try to recover it?
You must use this type of variable to recover your data:
$_POST['variable_name'] and $_GET['variable_name']
Yeah! I just found it there:
http://www.php.net/manual/en/faq.using.php#faq.using.variables
Why register_globals is now OFF by default? I put it ON until I change
my variable.
--- End Message ---
--- Begin Message ---
Register Globals is off because it prevents security issues with your code.
There is an example on the PHP Manual that shows how can anyone access into
a membership-based site if it works with Register Globals on. No one would
need to use a form, for example, because typing the correct variables on the
URL, you could enter the site, or even see other people's accounts (they are
stored in the browser's memory).
Besides that, it's a good programming habit to write $_GET or $_POST instead
of just the variable name.
Bye!
MG29
-----Mensaje original-----
De: Patrick Dufresne [mailto:[EMAIL PROTECTED]
Enviado el: Sábado, 01 de Noviembre de 2003 06:49 p.m.
Para: [EMAIL PROTECTED]
Asunto: Re: [PHP-WIN] POST and GET form
Gaguwd a écrit :
> How do you try to recover it?
>
> You must use this type of variable to recover your data:
> $_POST['variable_name'] and $_GET['variable_name']
Yeah! I just found it there:
http://www.php.net/manual/en/faq.using.php#faq.using.variables
Why register_globals is now OFF by default? I put it ON until I change
my variable.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This sounds stupid, but I've found it way wasier to read code one has
written with the _POST, _GET, _ETC arrays. Especially so when you haven't
looked in a file for a few months or so.
Yeah, it's a good habit.
-Dash
If you eat a live frog in the morning, nothing worse will happen to
either of you for the rest of the day.
On Sat, 1 Nov 2003, GaguWD wrote:
> Register Globals is off because it prevents security issues with your code.
> There is an example on the PHP Manual that shows how can anyone access into
> a membership-based site if it works with Register Globals on. No one would
> need to use a form, for example, because typing the correct variables on the
> URL, you could enter the site, or even see other people's accounts (they are
> stored in the browser's memory).
>
> Besides that, it's a good programming habit to write $_GET or $_POST instead
> of just the variable name.
>
> Bye!
> MG29
>
> -----Mensaje original-----
> De: Patrick Dufresne [mailto:[EMAIL PROTECTED]
> Enviado el: Sábado, 01 de Noviembre de 2003 06:49 p.m.
> Para: [EMAIL PROTECTED]
> Asunto: Re: [PHP-WIN] POST and GET form
>
>
> Gaguwd a écrit :
> > How do you try to recover it?
> >
> > You must use this type of variable to recover your data:
> > $_POST['variable_name'] and $_GET['variable_name']
>
> Yeah! I just found it there:
> http://www.php.net/manual/en/faq.using.php#faq.using.variables
>
> Why register_globals is now OFF by default? I put it ON until I change
> my variable.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Bobo,
What version of Apache are you using ?
If it is 2.* then you must copy php4apache2.dll into the folder and change
this :
LoadModule php4_module d:/PHP/sapi/php4apache.dll
to
LoadModule php4_module d:/PHP/sapi/php4apache2.dll
This should sort you out mate :)
Cheers
Steven
--- End Message ---
--- Begin Message ---
No... I'm still using the old version of Apache... :/
anyone?
.bobo
----- Original Message -----
From: "Steven Mac Intyre" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, November 01, 2003 10:26 PM
Subject: Re: [PHP-WIN] Installation probs...
> Bobo,
>
> What version of Apache are you using ?
>
> If it is 2.* then you must copy php4apache2.dll into the folder and change
> this :
>
> LoadModule php4_module d:/PHP/sapi/php4apache.dll
> to
> LoadModule php4_module d:/PHP/sapi/php4apache2.dll
>
> This should sort you out mate :)
>
> Cheers
>
> Steven
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
Perhaps an AddModule line? I've run into several machines that would not
work if the AddModule line wasn't there.
After your other AddModule lines, put this:
AddModule mod_php4.c
Don't worry about the "missing" mod_php4.c file.
Restart the Apache server then.
-Dash
Every journalist has a novel in him, which is an excellent place for it.
On Sat, 1 Nov 2003, Bobo Wieland wrote:
> Trying to install php/apache/mysql again after buying a new computer...
>
> I have Apache runing as a service in WinXP (Home)... I think it works as it
> should... The server is set to 127.0.0.1
>
> In my webservers rootdir I have a file named index.php that contains the
> code:
> <?php phpinfo(); ?>
>
> Pointing IE to http://localhost/ and selecting the file index.php just
> outputs:
> <?php phpinfo(); ?>
>
>
>
> I have installed php in D:\PHP. php.ini is in C:\windows . the
> php4apache.dll and the php4ts.dll are both in the windows/system32 dir and
> the first also in d:\php\sapi\
>
> I've added
> LoadModule php4_module d:/PHP/sapi/php4apache.dll AddType
> application/x-httpd-php .php
>
> to httpd.conf and apache doesn't complain at startup... So what is wrong?
>
>
> thanks!
>
>
> .bobo
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Thanks! That was it! Now it works perfectly... Time to try to get MySQL to
work... ;)
.bobo
----- Original Message -----
From: "Dash McElroy" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, November 01, 2003 11:58 PM
Subject: Re: [PHP-WIN] Installation probs...
> Perhaps an AddModule line? I've run into several machines that would not
> work if the AddModule line wasn't there.
>
> After your other AddModule lines, put this:
>
> AddModule mod_php4.c
>
> Don't worry about the "missing" mod_php4.c file.
>
> Restart the Apache server then.
>
> -Dash
>
> Every journalist has a novel in him, which is an excellent place for it.
>
> On Sat, 1 Nov 2003, Bobo Wieland wrote:
>
> > Trying to install php/apache/mysql again after buying a new computer...
> >
> > I have Apache runing as a service in WinXP (Home)... I think it works as
it
> > should... The server is set to 127.0.0.1
> >
> > In my webservers rootdir I have a file named index.php that contains the
> > code:
> > <?php phpinfo(); ?>
> >
> > Pointing IE to http://localhost/ and selecting the file index.php just
> > outputs:
> > <?php phpinfo(); ?>
> >
> >
> >
> > I have installed php in D:\PHP. php.ini is in C:\windows . the
> > php4apache.dll and the php4ts.dll are both in the windows/system32 dir
and
> > the first also in d:\php\sapi\
> >
> > I've added
> > LoadModule php4_module d:/PHP/sapi/php4apache.dll AddType
> > application/x-httpd-php .php
> >
> > to httpd.conf and apache doesn't complain at startup... So what is
wrong?
> >
> >
> > thanks!
> >
> >
> > .bobo
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
I am trying to execute/prepare statements on PEAR framework. On the documentation page
their is dbh->statement(), can someone tell me what is this dbh, is it database
connection or something else, and how it can be prepare.
Imran
--- End Message ---