[PHP] PEAR DB problem

2002-10-01 Thread Peter Hall

Hi, I'm a bit new to mySQL. I got my program working fine locally, but it
doesn't work when I upload it to my ISP.

db.php and pear.php couldn't be found on my server when I first ran it. I
uploaded them, but could that be part of my problem?

The following code is returning DB Error: not found:

 $database_address = mysql://user:[EMAIL PROTECTED]/dbname;
 require_once('DB.php');
 $c_db = DB::connect($database_address);
 if(DB::iserror($c_db)){
  die($c_db-getMessage());
 }

Peter



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




[PHP] browser caching

2002-03-15 Thread Peter Hall

Hi,

I'm having difficulty getting a php page to reload when the user goes back
to it. The page is initially loaded with no variables passed, but is then
reloaded with variables passed with GET and also retrieves variables from a
session cookie, which is set by a different page on first load.

This works fine, but the problem is, when the user goes back to the first
page (via history) the page does not reload and it fails to receive the
cookie data even though it receives it every other time it loads. So
basically I can only get the cached version. I have tried the following at
the start of the document:

session_cache_limiter('must-revalidate');

// and this:

session_cache_limiter('nocache');

// and this:

header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);
header(Last-Modified:  . gmdate(D, d M Y H:i:s) .  GMT);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);

and a few combinations. I am testing with IE 5.5 with all default settings.
I am using PHP 4.1.1

Thanks.

Peter




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