[PHP-DB] donwload listed dir

2005-02-14 Thread it clown
Hi All,

How would i create links dynamicaly for each file that has
been listed in a dir?

Regards
__
http://www.webmail.co.za the South African FREE email service

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



[PHP-DB] Re: 'Page can not be displayed' when hitting the back button

2005-02-14 Thread JeRRy
Hi,

Here you go, more info on your posting:

session_cache_limiter
(PHP 4 = 4.0.3, PHP 5)

session_cache_limiter -- Get and/or set the current
cache limiter
Description
string session_cache_limiter ( [string cache_limiter]
)


session_cache_limiter() returns the name of the
current cache limiter. If cache_limiter is specified,
the name of the current cache limiter is changed to
the new value. 

The cache limiter defines which cache control HTTP
headers are sent to the client. These headers
determine the rules by which the page content may be
cached by the client and intermediate proxies. Setting
the cache limiter to nocache disallows any
client/proxy caching. A value of public permits
caching by proxies and the client, whereas private
disallows caching by proxies and permits the client to
cache the contents. 

In private mode, the Expire header sent to the client
may cause confusion for some browsers, including
Mozilla. You can avoid this problem by using
private_no_expire mode. The expire header is never
sent to the client in this mode. 

Note: private_no_expire was added in PHP 4.2.0. 

The cache limiter is reset to the default value stored
in session.cache_limiter at request startup time.
Thus, you need to call session_cache_limiter() for
every request (and before session_start() is called). 

Example 1. session_cache_limiter() example

?php

/* set the cache limiter to 'private' */

session_cache_limiter('private');
$cache_limiter = session_cache_limiter();

echo The cache limiter is now set to
$cache_limiterbr /;
?  
 

Also see the session.cache_limiter configuration
directive. 


Take a look at these links:

http://au2.php.net/manual/en/ref.session.php#ini.session.cache-limiter

http://au2.php.net/manual/en/function.session-start.php

http://au2.php.net/manual/en/function.session-cache-limiter.php

Jerry







From: Jason Walker [EMAIL PROTECTED] 
To: php-db@lists.php.net 
Date: Sun, 13 Feb 2005 19:17:15 -0700 
Subject: 'Page can not be displayed' when hitting the
back button 
 
I have a shopping cart that is working completely fine
in Firefox. In 
I.E.,
I can not get the page to display when hitting the
back button. This 
may not
necessarily be a PHP problem, but since moving to PHP
session variables 
and
not cookies, this error has popped up.
 
In Firefox, I get the POST DATA message stating that
post data has 
already
been sent, blah blah blah. In IE, I get the Page Can
Not Be Display.
 
I am just curious if anyone else has come across this
and if they found 
a
solution/cause.
 
Thanks.
 
Jason Walker



Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

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



RE: [PHP-DB] donwload listed dir

2005-02-14 Thread Bastien Koert
list them out and provide the link for each...code for the lisitng is 
straight from the manual

?php
$dir = /etc/php5/;
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
  if ($dh = opendir($dir)) {
  while (($file = readdir($dh)) !== false) {
  //change the echo here to make it a link
  echo filename: $file : filetype:  . filetype($dir . $file) . 
\n;
  }
  closedir($dh);
  }
}
?

bastien
From: it clown [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] donwload listed dir
Date: Mon, 14 Feb 2005 10:21:18 +0200
Hi All,
How would i create links dynamicaly for each file that has
been listed in a dir?
Regards
__
http://www.webmail.co.za the South African FREE email service
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] Mail question

2005-02-14 Thread ReClMaples
I have a quick, probably easy to answer question.  I am trying to add the
ability to email from like a quest book or a calendar event and get an
authentication error in my error log.  I can only believe that this is due
to my smtp server needed to know my login and password.  Is there a way I
can pass this in the php.ini file?  I am using apache 2.0 and PHP 4.03 on a
windows xp machine.  If this can be done, please let me know, any other
suggestions would be welcomed.

Thanks
-Rich

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



Re: [PHP-DB] Mail question

2005-02-14 Thread Micah Stevens

I'm replying off-list as this isn't a database question, but check out the 
pear mail class at:

http://pear.php.net

It handles SMTP authentication. The standard mail() function does not. 

HTH
-Micah 


On Monday 14 February 2005 10:12 am, ReClMaples wrote:
 I have a quick, probably easy to answer question.  I am trying to add the
 ability to email from like a quest book or a calendar event and get an
 authentication error in my error log.  I can only believe that this is due
 to my smtp server needed to know my login and password.  Is there a way I
 can pass this in the php.ini file?  I am using apache 2.0 and PHP 4.03 on a
 windows xp machine.  If this can be done, please let me know, any other
 suggestions would be welcomed.

 Thanks
 -Rich

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