[PHP] stupid problem

2002-02-18 Thread John Gurley

I am getting a variable from a web page ($inst) which is looked at by the 
loop:

if ($inst == 2)
{
do stuff
}

the problem is that no matter what the value of $inst the code enters the 
loop. I know it is some thing small and stupid, but any help would be 
appreciated.
john

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] stupid problem

2002-02-18 Thread Rick Emery

show html
show code

-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] stupid problem


I am getting a variable from a web page ($inst) which is looked at by the 
loop:

if ($inst == 2)
{
do stuff
}

the problem is that no matter what the value of $inst the code enters the 
loop. I know it is some thing small and stupid, but any help would be 
appreciated.
john

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] stupid problem!

2001-02-15 Thread kaab kaoutar

when i try the phinfo test in a php file it works!
however when i put it in an htm file it does not work :

htmlheadtitlePHP Test/title/head
body
?php
phpinfo();
?
/body/html

It gives me a blank page

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] stupid problem!

2001-02-15 Thread Jon Haworth

This is because your server is set up to parse .php files as php, and .html
files as html.

If you have access to your httpd.conf or whatever, you can set it to include
.html files in the php parsing. If not, you'll have to stick with calling
your php files .php.

HTH
Jon


-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 11:12
To: [EMAIL PROTECTED]
Subject: [PHP] stupid problem!


when i try the phinfo test in a php file it works!
however when i put it in an htm file it does not work :

htmlheadtitlePHP Test/title/head
body
?php
phpinfo();
?
/body/html

It gives me a blank page

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] stupid problem!

2001-02-15 Thread kaab kaoutar


Oh yes u're right it's that once installing i just cares for php file !
but when i try now, i find that thaere are existent phpfile keys that are 
already filled with things related to, for instance in the 
shell-open-commnand default ihave the following :
"C:\PROGRA~1\Plus!\MICROS~1\iexplore.exe" -nohome
may i erase it and put instead it c:\php\php.exe -q %1 ?
Thanks

From: Jon Haworth [EMAIL PROTECTED]
To: 'kaab kaoutar' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] stupid problem!
Date: Thu, 15 Feb 2001 12:14:35 -

This is because your server is set up to parse .php files as php, and .html
files as html.

If you have access to your httpd.conf or whatever, you can set it to 
include
.html files in the php parsing. If not, you'll have to stick with calling
your php files .php.

HTH
Jon


-Original Message-
From: kaab kaoutar [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 11:12
To: [EMAIL PROTECTED]
Subject: [PHP] stupid problem!


when i try the phinfo test in a php file it works!
however when i put it in an htm file it does not work :

htmlheadtitlePHP Test/title/head
body
?php
phpinfo();
?
/body/html

It gives me a blank page

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]