[PHP] auto_prepend_file

2003-03-26 Thread Kevin Heflin
Trying to use
php_value auto_prepend_file /path/to/file/checkauth.php
in an .htaccess file.
I've used this before without problems, however with this instance, I 
keep getting a message in my browser which says:
Redirection limit for this URL exceeded.  Unable to load the requested 
page.

my checkauth.php page looks like this

?
session_start();
if (!session_is_registered(SESSION)){
header(Location: /error.php?e=2);
exit;
}
?
Any suggestions would be appreciated.

Kevin

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


Re: [PHP] auto_prepend_file

2003-03-26 Thread Kevin Heflin
On Wednesday, March 26, 2003, at 07:15  PM, Kevin Heflin wrote:

Trying to use
php_value auto_prepend_file /path/to/file/checkauth.php
in an .htaccess file.
I've used this before without problems, however with this instance, I 
keep getting a message in my browser which says:
Redirection limit for this URL exceeded.  Unable to load the requested 
page.

Sorry to answer my own question here.. but it looks like I had a little 
loop going on. :-)
that's what caused the problem. Should have looked in the mailing list 
archive before I posted.
Apologies.

Kevin

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


[PHP] using print instead of echo

2002-09-07 Thread Kevin Heflin

the example I have below.. I'm able to get working using the 'echo' 
command.
But I would like to know how to format the same using the 'print' 
command.
I am familiar with both. but with this one instance I am not sure how 
to format the print command correctly to get the same results as the 
echo command. Any suggestions would be appreciated.

$variable1[0]=one;
$variable2[0]=two;
$variable3[0]=three;
$variable4[0]=four;

$j=1;
while($j5){
echo ${variable.$j}[0];
$j++;
}


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




[PHP] generating variable names

2002-09-06 Thread Kevin Heflin

Hoping someone can help me with this. Below I have an example of what 
I'm trying to accomplish.
Bottom line.. I need to print out $variable3[0] and $variable4[0]
and my problem is that I'm trying to generate the variable name. I can 
get this to work with $variable1 and $variable2 which are not arrays, 
however that doesn't help me much.

Any suggestions would be appreciated.

Kevin



?
$variable1=one;
$variable2=two;
$variable3[0]=three;
$variable4[0]=four;

$j=1;
while($j5){
print(${variable.$j} BR);
$j++;
}


$j=1;
while($j5){
$k=\$variable.$j.[0];
print($k BR);
print(${variable.$k} BR);
$j++;
}
?


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




[PHP] adding postgresql support to php

2001-04-08 Thread Kevin Heflin

I have php-4.0.4pl1 currently installed with mysql support. Installed
from source files..
Have just installed postgresql-7.1RC1 from source.
Trying to add postgres support to php, added the '--with-pgsql to
./configure.

running make, moves right along for awhile, but  then get the following
error:

/usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
is out of date; rerun ranlib(1) (can't load from it)
make[1]: *** [libphp4.la] Error 1
make: *** [all-recursive] Error 1

Any suggestions would be appreciated.

Kansas

-- 
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]