php-general Digest 9 May 2009 00:15:26 -0000 Issue 6111

Topics (messages 292396 through 292411):

CURL error help
        292396 by: Miller, Terion
        292398 by: Jônatas Zechim
        292399 by: Miller, Terion
        292400 by: Jônatas Zechim
        292401 by: Shawn McKenzie
        292402 by: Miller, Terion
        292404 by: Jônatas Zechim
        292405 by: Miller, Terion
        292406 by: Jônatas Zechim
        292411 by: Shawn McKenzie

Re: bcmath integer type?
        292397 by: Michael A. Peters

Session data files
        292403 by: phphelp -- kbk
        292407 by: Tom Worster

Re: [email protected], Tim-Hinnerk Heuer has invited you to open a 
Google mail account
        292408 by: sean greenslade
        292409 by: Lenin
        292410 by: sean greenslade

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Trying to run a script on several different pages within the same site by
making the url's an array...anyone see a better way to do this?

Trying to resolve some curl errors and need some help, here are the errors:


Notice: Array to string conversion in
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.p
hp on line 34

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot
be activated when in safe_mode or an open_basedir is set in
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.p
hp on line 36

cURL error number:6
cURL error:Couldn't resolve host 'Array'

And here is the code:
<?php

ini_set('display_errors',
1);
include("inc/dbconn_open.php");

include("inc/dom.php");

error_reportin
g(E_ALL);

$TESTING = TRUE;


 $targets["a"] =
"http://www.greenecountymo.org/sheriff/warrants.php?search=A";;

$targets["b"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=B";;

$targets["c"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=C";;

$targets["d"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=D";;

$targets["e"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=E";;

$targets["f"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=F";;

$targets["g"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=G";;

$targets["h"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=H";;

$targets["i"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=I";;

$targets["j"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=J";;

$targets["k"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=K";;

$targets["l"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=L";;
 
 
 foreach
($targets as $target_url){

$userAgent = 'Googlebot/2.1
(http://www.googlebot.com/bot.html)';


$ch = curl_init();
curl_setopt($ch,
CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch,
CURLOPT_URL,$targets);
curl_setopt($ch, CURLOPT_FAILONERROR,
true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch,
CURLOPT_AUTOREFERER, true);
curl_setopt($ch,
CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_TIMEOUT, 300);
$html
= curl_exec($ch);
if (!$html) {
    echo "<br />cURL error number:"
.curl_errno($ch);
    echo "<br />cURL error:" . curl_error($ch);

exit;
}


// Create DOM from URL or file
$html =
file_get_html('$target_url');

// Find table
foreach($html->find('table') as
$table)
{
    foreach($table->find('tr') as $tr)
    {


--- End Message ---
--- Begin Message ---
Try to change this:

curl_setopt($ch,CURLOPT_URL,$targets);

to:

curl_setopt($ch,CURLOPT_URL, $target_url);

Zechim
zechim.com
São Paulo/Brazil


-----Mensagem original-----
De: Miller, Terion [mailto:[email protected]] 
Enviada em: sexta-feira, 8 de maio de 2009 09:50
Para: PHP-General List
Assunto: [PHP] CURL error help

Trying to run a script on several different pages within the same site by
making the url's an array...anyone see a better way to do this?

Trying to resolve some curl errors and need some help, here are the errors:


Notice: Array to string conversion in
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.p
hp on line 34

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot
be activated when in safe_mode or an open_basedir is set in
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.p
hp on line 36

cURL error number:6
cURL error:Couldn't resolve host 'Array'

And here is the code:
<?php

ini_set('display_errors',
1);
include("inc/dbconn_open.php");

include("inc/dom.php");

error_reportin
g(E_ALL);

$TESTING = TRUE;


 $targets["a"] =
"http://www.greenecountymo.org/sheriff/warrants.php?search=A";;

$targets["b"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=B";;

$targets["c"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=C";;

$targets["d"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=D";;

$targets["e"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=E";;

$targets["f"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=F";;

$targets["g"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=G";;

$targets["h"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=H";;

$targets["i"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=I";;

$targets["j"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=J";;

$targets["k"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=K";;

$targets["l"] = 
"http://www.greenecountymo.org/sheriff/warrants.php?search=L";;
 
 
 foreach
($targets as $target_url){

$userAgent = 'Googlebot/2.1
(http://www.googlebot.com/bot.html)';


$ch = curl_init();
curl_setopt($ch,
CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch,
CURLOPT_URL,$targets);
curl_setopt($ch, CURLOPT_FAILONERROR,
true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch,
CURLOPT_AUTOREFERER, true);
curl_setopt($ch,
CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_TIMEOUT, 300);
$html
= curl_exec($ch);
if (!$html) {
    echo "<br />cURL error number:"
.curl_errno($ch);
    echo "<br />cURL error:" . curl_error($ch);

exit;
}


// Create DOM from URL or file
$html =
file_get_html('$target_url');

// Find table
foreach($html->find('table') as
$table)
{
    foreach($table->find('tr') as $tr)
    {


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


--- End Message ---
--- Begin Message ---


On 5/8/09 8:04 AM, "Jônatas Zechim" <[email protected]> wrote:

Try to change this:

curl_setopt($ch,CURLOPT_URL,$targets);

to:

curl_setopt($ch,CURLOPT_URL, $target_url);

Zechim
zechim.com
São Paulo/Brazil

Thanks for the suggestion:
Tried it and get this error now:

Warning: file_get_contents($target_url) [function.file-get-contents]: failed to 
open stream: No such file or directory in 
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php on 
line 39

On line #39 from my dom.php file is this :
// get html dom form file
function file_get_html() {
   $dom = new simple_html_dom;
   $args = func_get_args();
   $dom->load(call_user_func_array('file_get_contents', $args), true);
   return $dom;
}

I think somehow the array is not being read or it's trying to pass the full 
array of url's as one url? Therefore saying it does not exist? My best guess, 
am I making the array wrong?



--- End Message ---
--- Begin Message ---
Try to echo the $target_url var. What's on it?

 

 

Try to echo the $args var. What's on it?

 

 

How do you pass the $args?

 

 

 

Zechim

zechim.com

São Paulo/Brazil

 

 

-----Mensagem original-----
De: Miller, Terion [mailto:[email protected]] 
Enviada em: sexta-feira, 8 de maio de 2009 10:27
Para: Jônatas Zechim; Miller, Terion; PHP-General List
Assunto: Re: RES: [PHP] CURL error help

 

 

 

 

On 5/8/09 8:04 AM, "Jônatas Zechim" <[email protected]> wrote:

 

Try to change this:

 

curl_setopt($ch,CURLOPT_URL,$targets);

 

to:

 

curl_setopt($ch,CURLOPT_URL, $target_url);

 

Zechim

zechim.com

São Paulo/Brazil

 

Thanks for the suggestion:

Tried it and get this error now:

 

Warning: file_get_contents($target_url) [function.file-get-contents]: failed
to open stream: No such file or directory in
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php
on line 39

 

On line #39 from my dom.php file is this :

// get html dom form file

function file_get_html() {

   $dom = new simple_html_dom;

   $args = func_get_args();

   $dom->load(call_user_func_array('file_get_contents', $args), true);

   return $dom;

}

 

I think somehow the array is not being read or it's trying to pass the full
array of url's as one url? Therefore saying it does not exist? My best
guess, am I making the array wrong?

 


--- End Message ---
--- Begin Message ---
Miller, Terion wrote:
> 
> 
> On 5/8/09 8:04 AM, "Jônatas Zechim" <[email protected]> wrote:
> 
> Try to change this:
> 
> curl_setopt($ch,CURLOPT_URL,$targets);
> 
> to:
> 
> curl_setopt($ch,CURLOPT_URL, $target_url);
> 
> Zechim
> zechim.com
> São Paulo/Brazil
> 
> Thanks for the suggestion:
> Tried it and get this error now:
> 
> Warning: file_get_contents($target_url) [function.file-get-contents]: failed 
> to open stream: No such file or directory in 
> /var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php on 
> line 39
> 
> On line #39 from my dom.php file is this :
> // get html dom form file
> function file_get_html() {
>    $dom = new simple_html_dom;
>    $args = func_get_args();
>    $dom->load(call_user_func_array('file_get_contents', $args), true);
>    return $dom;
> }
> 
> I think somehow the array is not being read or it's trying to pass the full 
> array of url's as one url? Therefore saying it does not exist? My best guess, 
> am I making the array wrong?
> 
> 
Look at your function call in your original post:

$html = file_get_html('$target_url');

$target_url is single quoted why?


-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---


On 5/8/09 8:49 AM, "Jônatas Zechim" <[email protected]> wrote:

Try to echo the $target_url var. What's on it?


Try to echo the $args var. What's on it?


How do you pass the $args?


I echo'd the $target_url and I got all the correct urls -did I mention this 
error reports one time for every url in the array, I am not sure if I should 
echo the $args on the dom.php page or on my page, I didn't write the dom.php 
script, it's a bit beyond my skill level.






--- End Message ---
--- Begin Message ---
Ok, but u need to confirm  the $args vars are being passed to that funtion,
because I thing they're blanks.

Zechim
zechim.com
São Paulo/Brazil

-----Mensagem original-----
De: Miller, Terion [mailto:[email protected]] 
Enviada em: sexta-feira, 8 de maio de 2009 11:52
Para: Jônatas Zechim; Miller, Terion; PHP-General List
Assunto: Re: RES: RES: [PHP] CURL error help




On 5/8/09 8:49 AM, "Jônatas Zechim" <[email protected]> wrote:

Try to echo the $target_url var. What's on it?


Try to echo the $args var. What's on it?


How do you pass the $args?


I echo'd the $target_url and I got all the correct urls -did I mention this
error reports one time for every url in the array, I am not sure if I should
echo the $args on the dom.php page or on my page, I didn't write the dom.php
script, it's a bit beyond my skill level.






--- End Message ---
--- Begin Message ---


On 5/8/09 10:55 AM, "Jônatas Zechim" <[email protected]> wrote:

Ok, but u need to confirm  the $args vars are being passed to that funtion,
because I thing they're blanks.

Zechim
zechim.com
São Paulo/Brazil

here is the code from the dom.php file, as it stands currently my error reads:


Warning: file_get_contents($target_url) [function.file-get-contents]: failed to 
open stream: No such file or directory in 
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php on 
line 39

Here is the code from dom.php:


define('HDOM_TYPE_ELEMENT', 1);
define('HDOM_TYPE_COMMENT', 2);
define('HDOM_TYPE_TEXT',    3);
define('HDOM_TYPE_ENDTAG',  4);
define('HDOM_TYPE_ROOT',    5);
define('HDOM_TYPE_UNKNOWN', 6);
define('HDOM_QUOTE_DOUBLE', 0);
define('HDOM_QUOTE_SINGLE', 1);
define('HDOM_QUOTE_NO',     3);
define('HDOM_INFO_BEGIN',   0);
define('HDOM_INFO_END',     1);
define('HDOM_INFO_QUOTE',   2);
define('HDOM_INFO_SPACE',   3);
define('HDOM_INFO_TEXT',    4);
define('HDOM_INFO_INNER',   5);
define('HDOM_INFO_OUTER',   6);
define('HDOM_INFO_ENDSPACE',7);

// helper functions
// -----------------------------------------------------------------------------
// get html dom from file
function file_get_html() {
   $dom = new simple_html_dom;
   $args = func_get_args();
   $dom->load(call_user_func_array('file_get_contents', $args), true);
   return $dom;

}

// get html dom from string
function str_get_html($str, $lowercase=true) {
   $dom = new simple_html_dom;
   $dom->load($str, $lowercase);
   return $dom;
}

// dump html dom tree
function dump_html_tree($node, $show_attr=true, $deep=0) {
   $lead = str_repeat('    ', $deep);
   echo $lead.$node->tag;
   if ($show_attr && count($node->attr)>0) {
       echo '(';
       foreach($node->attr as $k=>$v)
           echo "[$k]=>\"".$node->$k.'", ';
       echo ')';
   }
   echo "\n";

   foreach($node->nodes as $c)
       dump_html_tree($c, $show_attr, $deep+1);
}

// get dom form file (deprecated)
function file_get_dom() {
   $dom = new simple_html_dom;
   $args = func_get_args();
   $dom->load(call_user_func_array('file_get_contents', $args), true);
   return $dom;
}

// get dom form string (deprecated)
function str_get_dom($str, $lowercase=true) {
   $dom = new simple_html_dom;
   $dom->load($str, $lowercase);
   return $dom;
}



--- End Message ---
--- Begin Message ---
Look:

 

var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php

 

Is ‘getpublished.news-leader.com’ really a folder? Are u using mod_rewrite?

 

I do thing u r passing a wrong $args var, can u send me the files on a
*.zip?

 

If u can:

[email protected]

 

Zechim

zechim.com

São Paulo/Brazil

 

-----Mensagem original-----
De: Miller, Terion [mailto:[email protected]] 
Enviada em: sexta-feira, 8 de maio de 2009 13:19
Para: Jônatas Zechim; Miller, Terion; PHP-General List
Assunto: Re: RES: RES: RES: [PHP] CURL error help

 

 

 

 

On 5/8/09 10:55 AM, "Jônatas Zechim" <[email protected]> wrote:

 

Ok, but u need to confirm  the $args vars are being passed to that funtion,

because I thing they're blanks.

 

Zechim

zechim.com

São Paulo/Brazil

 

here is the code from the dom.php file, as it stands currently my error
reads:

 

 

Warning: file_get_contents($target_url) [function.file-get-contents]: failed
to open stream: No such file or directory in
/var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php
on line 39

 

Here is the code from dom.php:

 

 

define('HDOM_TYPE_ELEMENT', 1);

define('HDOM_TYPE_COMMENT', 2);

define('HDOM_TYPE_TEXT',    3);

define('HDOM_TYPE_ENDTAG',  4);

define('HDOM_TYPE_ROOT',    5);

define('HDOM_TYPE_UNKNOWN', 6);

define('HDOM_QUOTE_DOUBLE', 0);

define('HDOM_QUOTE_SINGLE', 1);

define('HDOM_QUOTE_NO',     3);

define('HDOM_INFO_BEGIN',   0);

define('HDOM_INFO_END',     1);

define('HDOM_INFO_QUOTE',   2);

define('HDOM_INFO_SPACE',   3);

define('HDOM_INFO_TEXT',    4);

define('HDOM_INFO_INNER',   5);

define('HDOM_INFO_OUTER',   6);

define('HDOM_INFO_ENDSPACE',7);

 

// helper functions

//
----------------------------------------------------------------------------
-

// get html dom from file

function file_get_html() {

   $dom = new simple_html_dom;

   $args = func_get_args();

   $dom->load(call_user_func_array('file_get_contents', $args), true);

   return $dom;

 

}

 

// get html dom from string

function str_get_html($str, $lowercase=true) {

   $dom = new simple_html_dom;

   $dom->load($str, $lowercase);

   return $dom;

}

 

// dump html dom tree

function dump_html_tree($node, $show_attr=true, $deep=0) {

   $lead = str_repeat('    ', $deep);

   echo $lead.$node->tag;

   if ($show_attr && count($node->attr)>0) {

       echo '(';

       foreach($node->attr as $k=>$v)

           echo "[$k]=>\"".$node->$k.'", ';

       echo ')';

   }

   echo "\n";

 

   foreach($node->nodes as $c)

       dump_html_tree($c, $show_attr, $deep+1);

}

 

// get dom form file (deprecated)

function file_get_dom() {

   $dom = new simple_html_dom;

   $args = func_get_args();

   $dom->load(call_user_func_array('file_get_contents', $args), true);

   return $dom;

}

 

// get dom form string (deprecated)

function str_get_dom($str, $lowercase=true) {

   $dom = new simple_html_dom;

   $dom->load($str, $lowercase);

   return $dom;

}

 


--- End Message ---
--- Begin Message ---
Miller, Terion wrote:
> 
> 
> On 5/8/09 10:55 AM, "Jônatas Zechim" <[email protected]> wrote:
> 
> Ok, but u need to confirm  the $args vars are being passed to that funtion,
> because I thing they're blanks.
> 
> Zechim
> zechim.com
> São Paulo/Brazil
> 
> here is the code from the dom.php file, as it stands currently my error reads:
> 
> 
> Warning: file_get_contents($target_url) [function.file-get-contents]: failed 
> to open stream: No such file or directory in 
> /var/www/vhosts/getpublished.news-leader.com/httpdocs/Warrants/inc/dom.php on 
> line 39
> 
> Here is the code from dom.php:
> 
> 
> define('HDOM_TYPE_ELEMENT', 1);
> define('HDOM_TYPE_COMMENT', 2);
> define('HDOM_TYPE_TEXT',    3);
> define('HDOM_TYPE_ENDTAG',  4);
> define('HDOM_TYPE_ROOT',    5);
> define('HDOM_TYPE_UNKNOWN', 6);
> define('HDOM_QUOTE_DOUBLE', 0);
> define('HDOM_QUOTE_SINGLE', 1);
> define('HDOM_QUOTE_NO',     3);
> define('HDOM_INFO_BEGIN',   0);
> define('HDOM_INFO_END',     1);
> define('HDOM_INFO_QUOTE',   2);
> define('HDOM_INFO_SPACE',   3);
> define('HDOM_INFO_TEXT',    4);
> define('HDOM_INFO_INNER',   5);
> define('HDOM_INFO_OUTER',   6);
> define('HDOM_INFO_ENDSPACE',7);
> 
> // helper functions
> // 
> -----------------------------------------------------------------------------
> // get html dom from file
> function file_get_html() {
>    $dom = new simple_html_dom;
>    $args = func_get_args();
>    $dom->load(call_user_func_array('file_get_contents', $args), true);
>    return $dom;
> 
> }
> 
> // get html dom from string
> function str_get_html($str, $lowercase=true) {
>    $dom = new simple_html_dom;
>    $dom->load($str, $lowercase);
>    return $dom;
> }
> 
> // dump html dom tree
> function dump_html_tree($node, $show_attr=true, $deep=0) {
>    $lead = str_repeat('    ', $deep);
>    echo $lead.$node->tag;
>    if ($show_attr && count($node->attr)>0) {
>        echo '(';
>        foreach($node->attr as $k=>$v)
>            echo "[$k]=>\"".$node->$k.'", ';
>        echo ')';
>    }
>    echo "\n";
> 
>    foreach($node->nodes as $c)
>        dump_html_tree($c, $show_attr, $deep+1);
> }
> 
> // get dom form file (deprecated)
> function file_get_dom() {
>    $dom = new simple_html_dom;
>    $args = func_get_args();
>    $dom->load(call_user_func_array('file_get_contents', $args), true);
>    return $dom;
> }
> 
> // get dom form string (deprecated)
> function str_get_dom($str, $lowercase=true) {
>    $dom = new simple_html_dom;
>    $dom->load($str, $lowercase);
>    return $dom;
> }
> 
> 

I've answered your question.  It's not in that file it's in your
function call to file_get_html().  You've got your parameter variable in
single frigging quotes!

-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Thu, 2009-05-07 at 21:45 -0700, Michael A. Peters wrote:
Michael A. Peters wrote:
I'm having a problem with db2 and prepared statements.
var_dump indicates that some variables that should be type int are type text.

These variables are the output of bcmath equations, and are integer.

Does bcmath for some reason output a text type?

I can fix it by adding 0 but I want to know if I'm using bcmath incorrectly.

LOL - I would like to know if bcmath is suppose to return int (I'm guessing yes so it can deal with numbers outside of fp math) but I don't think that was the issue.

$foo[] = Array($var1,$var2)

was my problem ... notice the [] ;)

From the documentation at:

    http://ca2.php.net/manual/en/function.bcadd.php

We see that bcadd has the prototype:

    string bcadd ( string $left_operand , string $right_operand [, int
$scale ] )

See the "string", that's because it takes strings and returns strings.
The reason why is in the description:

    Add two arbitrary precision numbers

That arbitrary part rules out integers or even floats since they are
fixed width datatypes (fixed width with respect to the number of bits
available to represent them). It may not be the case with what your
doing, but with large enough (positive or negative numbers), or numbers
with sufficient decimal places) you WILL lose precision by converting to
a real integer or floating point value.

If you don't need "arbitrary" precision functionality, then don't use
the bcxxx() functions since they are MUCH slower than doing normal math.


I started using them because there were a few cases where normal operations caused imprecision in unit conversions. With bcmath I could specify extra precision and then round to the precision I needed as the last step. Maybe there's a better way to do it but it solved the problem.

I probably don't need them in this case, I can just round down the result to get the integer result, but the use is so small that the performance hit probably isn't worth changing them and pushing it through testing again.
--- End Message ---
--- Begin Message ---
Hey, folks ---

Just something I'm curious about: When I run PHP on my development box (W2K), I just get one session file per connection which gets deleted (usually) after the session expires.

When I look at the session files on the client server (linux/apache), there seems to be one session file per page click. I needed to clear them a few minutes ago, and there are already 80+ files, and this is just from one user (a tester -- this is in late-late-late beta).

Now, there is nothing wrong -- everything is working fine -- I am just curious if Apache does this differently, or if there is a configuration setting that governs this (I haven't found -- but only did a cursory look).

Anybody willing to take the time to enlighten me?

Thank you,

Ken

--- End Message ---
--- Begin Message ---
On 5/8/09 11:09 AM, "phphelp -- kbk" <[email protected]> wrote:

> Just something I'm curious about: When I run PHP on my development
> box (W2K), I just get one session file per connection which gets
> deleted (usually) after the session expires.
> 
> When I look at the session files on the client server (linux/apache),
> there seems to be one session file per page click. I needed to clear
> them a few minutes ago, and there are already 80+ files, and this is
> just from one user (a tester -- this is in late-late-late beta).
> 
> Now, there is nothing wrong -- everything is working fine -- I am
> just curious if Apache does this differently, or if there is a
> configuration setting that governs this (I haven't found -- but only
> did a cursory look).
> 
> Anybody willing to take the time to enlighten me?

have you satisfied yourself that what you're seeing is not just an artifact
of how the session garbage collector works?

http://us.php.net/manual/en/session.configuration.php

maybe compare the gc parameters on the two different machines? phpinfo()
displays the values.



--- End Message ---
--- Begin Message ---
On Fri, May 8, 2009 at 12:18 AM, Tim-Hinnerk Heuer <[email protected]> wrote:
> I've been using Gmail and thought you might like to try it out. Here's
> an invitation to create an account.
> if you send me mail on here it will probably be more secure than over
> the rest of the network. just let me know what the new address will be
> in case you change mail providers.
>
> -----------------------------------------------------------------------
> Tim-Hinnerk Heuer has invited you to open a free Google Mail account.
>
> To accept this invitation and register for your account, visit
> http://mail.google.com/mail/a-f5f2afb0c7-9207f3d89b-bd8bac4aaf494e87
>
> Once you create your account, Tim-Hinnerk Heuer will be notified with
> your new email address so you can stay in touch with Google Mail!
>
> If you haven't already heard about Google Mail, it's a new
> search-based webmail service that offers:
>
> - Over 2,700 megabytes (two gigabytes) of free storage
> - Built-in Google search that instantly finds any message you want
> - Automatic arrangement of messages and related replies into "conversations"
> - Powerful spam protection using innovative Google technology
> - No large, annoying ads--just small text ads and related pages that
> are relevant to the content of your messages
>
> To learn more about Google Mail before registering, visit:
> http://mail.google.com/mail/help/intl/en_GB/benefits.html
>
> We're still working every day to improve Google Mail, so we might ask
> for your comments and suggestions periodically.  We hope you'll like
> Google Mail.  We do.  And, it's only going to get better.
>
> Thanks,
>
> The Google Mail Team
>
> (If clicking the URLs in this message does not work, copy and paste
> them into the address bar of your browser).
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Lol, I don't think the mailing list can sign up for gmail.

-- 
--Zootboy

--- End Message ---
--- Begin Message ---
Yeah gmail is a nice thing :)

The best ever mailing system world has ever seen until now.

--- End Message ---
--- Begin Message ---
On Fri, May 8, 2009 at 5:27 PM, Lenin <[email protected]> wrote:
> Yeah gmail is a nice thing :)
>
> The best ever mailing system world has ever seen until now.
>

Agreed.

-- 
--Zootboy

--- End Message ---

Reply via email to