OR, rather than setting register_globals to "on", define your variables
using the superglobal arrays. See the Predefined Variables section of the
PHP docs.
- Original Message -
From: "Moraes, Fabio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 9:24 AM
Subject
You might want to look at "echo"ing your HTML inside your php code. Seems
more simple to me.
So, what you have here would look like:
$dbuser = "username";
> $dbpass = "password";
> $db = "databssename";
> $LoginDB=@mysql_connect($dbhost, $dbuser, $dbpass);
or die("Unable to connect to
For PHP 4.2.1 and Apache 2.0.3X you need the following in your httpd.conf:
LoadModule php4_module "path_to/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
The php apache dll is php4apache2.dll vs php4apache.dll
HTH
Mike
-
How do I create a script that shows me what data is captured in the $_COOKIE
superglobal. The php docs describe the $_COOKIE superglobal, but don't enumerate the
contents of the array (the docs do a great job of enumerating what is captured in the
$_SERVER array).
I am setting cookies and I c
Environment:
Win NT 4.0 SP6a
Apache 2.0.36
MYSQL 4.0.1a
PHP 4.2.1
I'd like to create a search capability against a MySQL database that will allow users
to do keyword searches, entering one OR MORE keywords in the text box.
Thoughts on the most effective way to do this?
Would this be handled by
r the reply!
- Original Message -
From: "mos" <[EMAIL PROTECTED]>
To: "MikeParton" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 10:22 AM
Subject: Re: security paranoia
> Mike,
> At 05:05 PM 6/11/2002, you wrote:
> &g
See Chapter 7. Variables, Predefined Variables in the php manual.
- Original Message -
From: "Milke Karr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 7:34 PM
Subject: [PHP-INST] Enviroment Variables
> I have installed PHP 4.2.1 on a win32 apache 1.3.24 server
Glad to see others think I'm cool. I was beginning to think that was a
thought unique to me.
Anyway, glad I could help.
Cheers and good luck!
Mike
- Original Message -
From: "TeWoei Poon" <[EMAIL PROTECTED]>
To: "MikeParton" <[EMAIL PROTECTED]>; &l
Sorry, that should be $_SERVER superglobal NOT $_ENV
- Original Message -
From: "MikeParton" <[EMAIL PROTECTED]>
To: "TeWoei Poon" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 2:21 PM
Subject: Re: [PHP-INST] weird problem
Did you leave register_globals set to off in your php.ini? If so, you need
to declare your $_ENV superglobal variable at the beginning of your script
(see the section in the php manual on register_globals and the superglobal
arrays).
HTH
Mike
- Original Message -
From: "TeWoei Poon" <[E
Actually, I have Apache 2.0.36 and PHP 4.2.1 up and running on WinNT 4.0,
SP6a...works very well.
Did you include include the following in your edits to the Apache httpd.conf
file:
LoadModule php4_module "C:/pathtoyour/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php .phtml
AddTyp
I believe)
HTH
- Original Message -
From: "Steve Mosley" <[EMAIL PROTECTED]>
To: "'MikeParton'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, May 19, 2002 4:05 PM
Subject: RE: [PHP-INST] My Apache 2 server won't restart
> Still
I don't believe PHP cares about timing out...that's a server function. You
probably need to set a longer time out in your Web server (I know you set it
in httpd.conf for Apache).
Mike
- Original Message -
From: "Peter Theeuwen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, Ap
Seben -
Open NT Explorer:
1. Click on "View" on the menu bar
2. Click "Options"
3. Click "File Types" tab
4. Find PHP as the file type and change the application association
If PHP isn't a listed file type, you'll need to click the "New Type" button,
add PHP as a file type and do the associ
14 matches
Mail list logo