php-general Digest 22 Aug 2008 10:49:33 -0000 Issue 5638

Topics (messages 278490 through 278506):

Quick question regarding getcwd() and directory location.
        278490 by: Ólafur Waage
        278492 by: Micah Gersten
        278501 by: Ashley Sheridan
        278502 by: Ólafur Waage

Restore Leading Zeros in Zip Codes
        278491 by: Keith Spiller
        278493 by: Micah Gersten
        278494 by: Micah Gersten
        278496 by: Warren Vail
        278497 by: Warren Vail
        278498 by: Warren Vail

Re: Forward slashes and header requests
        278495 by: Dave M G

Re: php not reading file properly
        278499 by: sean greenslade
        278500 by: Ashley Sheridan

Re: Licensing
        278503 by: Richard Heyes
        278504 by: Carlos Medina
        278505 by: Richard Heyes

stream_select
        278506 by: Damien Churchill

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 ---
I'll throw out an example here.

I have a directory structure of: /var/www/example/
And in that i have a file: index.php
That file echo's getcwd() and returns: /var/www/example/

Now i tell Apache or Lighty that if a directory does not have an
index.php file, that it should use /example/index.php (for example via
DirectoryIndex of Apache)

Then i make a new directory: /var/www/test/
And browse to it and it echo's /var/www/example/ since its running
that file via DirectoryIndex

This is true for all directories i make. Both for Windows and Linux
based servers.

To my question.

I am trying to get the full path of the current directory i am in. Not
from where the file is executing. How is that possible so it displays
a full path to that directory (regardless to the server setup)?

I have tried a variation of things and have gotten mixed results.
Using $_SERVER["SCRIPT_FILENAME"] gives me the index file and the full
path to that.
$_SERVER["DOCUMENT_ROOT"] gets me part of the way but on a hosted
server with multiple domains it only gives me a partial path (rough
example: /var/www/ when the directory is /var/www/domain.com/test/)
And __FILE__ gives me the index.php's path.
I have also tried realpath(".");
And server("pwd"); with no luck.

Any help would be appreciated.

Ólafur Waage

--- End Message ---
--- Begin Message ---
Once you tell apache to load /example/index.php, that's where you are. 
You might try looking at the $_SERVER['HTTP_REFERER'].

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Ólafur Waage wrote:
> I'll throw out an example here.
>
> I have a directory structure of: /var/www/example/
> And in that i have a file: index.php
> That file echo's getcwd() and returns: /var/www/example/
>
> Now i tell Apache or Lighty that if a directory does not have an
> index.php file, that it should use /example/index.php (for example via
> DirectoryIndex of Apache)
>
> Then i make a new directory: /var/www/test/
> And browse to it and it echo's /var/www/example/ since its running
> that file via DirectoryIndex
>
> This is true for all directories i make. Both for Windows and Linux
> based servers.
>
> To my question.
>
> I am trying to get the full path of the current directory i am in. Not
> from where the file is executing. How is that possible so it displays
> a full path to that directory (regardless to the server setup)?
>
> I have tried a variation of things and have gotten mixed results.
> Using $_SERVER["SCRIPT_FILENAME"] gives me the index file and the full
> path to that.
> $_SERVER["DOCUMENT_ROOT"] gets me part of the way but on a hosted
> server with multiple domains it only gives me a partial path (rough
> example: /var/www/ when the directory is /var/www/domain.com/test/)
> And __FILE__ gives me the index.php's path.
> I have also tried realpath(".");
> And server("pwd"); with no luck.
>
> Any help would be appreciated.
>
> Ólafur Waage
>
>   

--- End Message ---
--- Begin Message ---
How are you browsing to it from within PHP? Depending on how you are
doing it, the way to get the cwd is different

Ash
www.ashleysheridan.co.uk
--- Begin Message ---
I'll throw out an example here.

I have a directory structure of: /var/www/example/
And in that i have a file: index.php
That file echo's getcwd() and returns: /var/www/example/

Now i tell Apache or Lighty that if a directory does not have an
index.php file, that it should use /example/index.php (for example via
DirectoryIndex of Apache)

Then i make a new directory: /var/www/test/
And browse to it and it echo's /var/www/example/ since its running
that file via DirectoryIndex

This is true for all directories i make. Both for Windows and Linux
based servers.

To my question.

I am trying to get the full path of the current directory i am in. Not
from where the file is executing. How is that possible so it displays
a full path to that directory (regardless to the server setup)?

I have tried a variation of things and have gotten mixed results.
Using $_SERVER["SCRIPT_FILENAME"] gives me the index file and the full
path to that.
$_SERVER["DOCUMENT_ROOT"] gets me part of the way but on a hosted
server with multiple domains it only gives me a partial path (rough
example: /var/www/ when the directory is /var/www/domain.com/test/)
And __FILE__ gives me the index.php's path.
I have also tried realpath(".");
And server("pwd"); with no luck.

Any help would be appreciated.

Ólafur Waage

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


--- End Message ---

--- End Message ---
--- Begin Message ---
Thanks for the reply Micah but i have no interest in the URL. I am
looking for the servers local path to the directory. (example:
/var/www/directory/ or C:\apache\htdocs\directory\)
Also the HTTP_REFERER is empty unless you are linked in from another
location. And then it gives you the URL you came from.

Ólafur Waage.

2008/8/22 Micah Gersten <[EMAIL PROTECTED]>:
> Once you tell apache to load /example/index.php, that's where you are.
> You might try looking at the $_SERVER['HTTP_REFERER'].
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Ólafur Waage wrote:
>> I'll throw out an example here.
>>
>> I have a directory structure of: /var/www/example/
>> And in that i have a file: index.php
>> That file echo's getcwd() and returns: /var/www/example/
>>
>> Now i tell Apache or Lighty that if a directory does not have an
>> index.php file, that it should use /example/index.php (for example via
>> DirectoryIndex of Apache)
>>
>> Then i make a new directory: /var/www/test/
>> And browse to it and it echo's /var/www/example/ since its running
>> that file via DirectoryIndex
>>
>> This is true for all directories i make. Both for Windows and Linux
>> based servers.
>>
>> To my question.
>>
>> I am trying to get the full path of the current directory i am in. Not
>> from where the file is executing. How is that possible so it displays
>> a full path to that directory (regardless to the server setup)?
>>
>> I have tried a variation of things and have gotten mixed results.
>> Using $_SERVER["SCRIPT_FILENAME"] gives me the index file and the full
>> path to that.
>> $_SERVER["DOCUMENT_ROOT"] gets me part of the way but on a hosted
>> server with multiple domains it only gives me a partial path (rough
>> example: /var/www/ when the directory is /var/www/domain.com/test/)
>> And __FILE__ gives me the index.php's path.
>> I have also tried realpath(".");
>> And server("pwd"); with no luck.
>>
>> Any help would be appreciated.
>>
>> Ólafur Waage
>>
>>
>

--- End Message ---
--- Begin Message ---
Hi,

RE:  Restore Leading Zeros in Zip Codes

Does anyone happen to have a script that will restore the leading zeros in a 
mixed data set of 5 digit zip codes and 10 digit zip+4 codes?  Any suggestions?

Thanks,


Keith

--- End Message ---
--- Begin Message ---
if (strlen($zip) == 4 || strlen($zip) == 9)
    $zip = "0$zip";

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Keith Spiller wrote:
> Hi,
>
> RE:  Restore Leading Zeros in Zip Codes
>
> Does anyone happen to have a script that will restore the leading zeros in a 
> mixed data set of 5 digit zip codes and 10 digit zip+4 codes?  Any 
> suggestions?
>
> Thanks,
>
>
> Keith
>   

--- End Message ---
--- Begin Message ---
That's actually not going to work if there's more than 1 zero missing.
This is better.

if (strlen($zip) < 5)
    $zip = sprintf('%05d',$zip);
else if (strlen($zip) < 10)
{
        $zipArray = explode('-', $zip);
        $zip = sprintf('%05d',$zipArray[0]);
        $zip .= "-" . $zipArray[1];
}
         


Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Micah Gersten wrote:
> if (strlen($zip) == 4 || strlen($zip) == 9)
>     $zip = "0$zip";
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Keith Spiller wrote:
>   
>> Hi,
>>
>> RE:  Restore Leading Zeros in Zip Codes
>>
>> Does anyone happen to have a script that will restore the leading zeros in a 
>> mixed data set of 5 digit zip codes and 10 digit zip+4 codes?  Any 
>> suggestions?
>>
>> Thanks,
>>
>>
>> Keith
>>   
>>     
>
>   

--- End Message ---
--- Begin Message ---
I'd try something like;

If(strlen($zipcode) <= 5) $zipcode = sprintf("%05d",$zipcode);
Else {
    $zipcode = sprintf("%09d",$zipcode);
    $zipcode = substr($zipcode,0,5)."-".substr(zipcode,5);
}

This isn't real elegant, but it should do the trick.  You may notice that
the 10 character zip code is not 10 digits but rather 5 plus 4, or 9 digits.

Warren Vail 

> -----Original Message-----
> From: Keith Spiller [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 21, 2008 7:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Restore Leading Zeros in Zip Codes
> 
> Hi,
> 
> RE:  Restore Leading Zeros in Zip Codes
> 
> Does anyone happen to have a script that will restore the 
> leading zeros in a mixed data set of 5 digit zip codes and 10 
> digit zip+4 codes?  Any suggestions?
> 
> Thanks,
> 
> 
> Keith
> 


--- End Message ---
--- Begin Message ---
Dave brought up something I forgot, what if the "-" is already in the sip
code;

Modify the code as follows;

If(strlen($zipcode) <= 5) $zipcode = sprintf("%05d",$zipcode); 
Else {
     $zipcode = sprintf("%09d",str_replace("-","",$zipcode));
     $zipcode = substr($zipcode,0,5)."-".substr(zipcode,5);
}

> -----Original Message-----
> From: Warren Vail [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 21, 2008 8:08 PM
> To: 'Keith Spiller'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Restore Leading Zeros in Zip Codes
> 
> I'd try something like;
> 
> If(strlen($zipcode) <= 5) $zipcode = sprintf("%05d",$zipcode); Else {
>     $zipcode = sprintf("%09d",$zipcode);
>     $zipcode = substr($zipcode,0,5)."-".substr(zipcode,5);
> }
> 
> This isn't real elegant, but it should do the trick.  You may 
> notice that the 10 character zip code is not 10 digits but 
> rather 5 plus 4, or 9 digits.
> 
> Warren Vail 
> 
> > -----Original Message-----
> > From: Keith Spiller [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 21, 2008 7:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Restore Leading Zeros in Zip Codes
> > 
> > Hi,
> > 
> > RE:  Restore Leading Zeros in Zip Codes
> > 
> > Does anyone happen to have a script that will restore the leading 
> > zeros in a mixed data set of 5 digit zip codes and 10 digit zip+4 
> > codes?  Any suggestions?
> > 
> > Thanks,
> > 
> > 
> > Keith
> > 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/) To 
> unsubscribe, visit: http://www.php.net/unsub.php
> 


--- End Message ---
--- Begin Message ---
I never considered the dash a digit, but then I forgot a dollar sign on one
of the variable names, but you can probably figure that out.

Warren Vail 

> -----Original Message-----
> From: Warren Vail [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 21, 2008 8:17 PM
> To: 'Warren Vail'; 'Keith Spiller'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Restore Leading Zeros in Zip Codes
> 
> Dave brought up something I forgot, what if the "-" is 
> already in the sip code;
> 
> Modify the code as follows;
> 
> If(strlen($zipcode) <= 5) $zipcode = sprintf("%05d",$zipcode); Else {
>      $zipcode = sprintf("%09d",str_replace("-","",$zipcode));
>      $zipcode = substr($zipcode,0,5)."-".substr(zipcode,5);
> }
> 
> > -----Original Message-----
> > From: Warren Vail [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 21, 2008 8:08 PM
> > To: 'Keith Spiller'; [EMAIL PROTECTED]
> > Subject: RE: [PHP] Restore Leading Zeros in Zip Codes
> > 
> > I'd try something like;
> > 
> > If(strlen($zipcode) <= 5) $zipcode = 
> sprintf("%05d",$zipcode); Else {
> >     $zipcode = sprintf("%09d",$zipcode);
> >     $zipcode = substr($zipcode,0,5)."-".substr(zipcode,5);
> > }
> > 
> > This isn't real elegant, but it should do the trick.  You 
> may notice 
> > that the 10 character zip code is not 10 digits but rather 
> 5 plus 4, 
> > or 9 digits.
> > 
> > Warren Vail
> > 
> > > -----Original Message-----
> > > From: Keith Spiller [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 21, 2008 7:44 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Restore Leading Zeros in Zip Codes
> > > 
> > > Hi,
> > > 
> > > RE:  Restore Leading Zeros in Zip Codes
> > > 
> > > Does anyone happen to have a script that will restore the leading 
> > > zeros in a mixed data set of 5 digit zip codes and 10 digit zip+4 
> > > codes?  Any suggestions?
> > > 
> > > Thanks,
> > > 
> > > 
> > > Keith
> > > 
> > 
> > 
> > --
> > 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
> 


--- End Message ---
--- Begin Message ---
Ashley,

Thank you for responding.

best way to fix it was to use
$location = str_replace('//','/', $_SERVER['REQUEST_URI']);

Unfortunately the trim() command I use seems to destroy all slashes anyway, so this doesn't seem to have an impact. Thank you for the suggestion, though.

Anyone have any other ideas?

--
Dave M G

--- End Message ---
--- Begin Message ---
So I made a cron jop to copy the log to the web folder every 5 minutes. That
worked fine. It seems that php can't read the /var/log/httpd folder without
root perms.

On Wed, Aug 20, 2008 at 7:53 PM, Ashley Sheridan
<[EMAIL PROTECTED]>wrote:

> Yeah, Apache is still running, but it is the access log you are trying
> to read, at the same time that you are Apache is being accessed.
> Accessing the log from the terminal will be fine while Apache is
> running, as it is unlikely it is being accessed at the very same
> instant. Are you able to access other files? Also, have you tried
> copying the file to another temporary version from within PHP an
> accessing that? If that doesn't work, try executing a Bash script that
> copies it someplace. Make sure to run the script in the background, and
> maybe add a sleep period to it so that it doesn't interfere with Apache
> accessing things.
>
> Ash
> www.ashleysheridan.co.uk
>
>
> ---------- Forwarded message ----------
> From: "sean greenslade" <[EMAIL PROTECTED]>
> To: "Micah Gersten" <[EMAIL PROTECTED]>
> Date: Wed, 20 Aug 2008 19:41:54 -0400
> Subject: Re: Fwd: [PHP] php not reading file properly
> Ashley Sheridan wrote:
>
> >As it's the Apache access log that you are trying to read in, are you sure
> that Apache is     >not in the process of writing to it as you are
> attempting to read from it? That might explain   >why it seems to be empty,
> although I would have thought it would just append the data to >the end of
> the file, rather than rewriting the whole thing.
>
> I dunno. Like I said, I can read it thru the terminal. Apache is still
> running then.
>
> As for Micah's response, that function won't work either.
>
> On Wed, Aug 20, 2008 at 7:34 PM, Micah Gersten <[EMAIL PROTECTED]> wrote:
>
> > If the directory above it doesn't have execute privileges, it won't be
> > able to read it either.
> > Also, why not use the PHP5 function file_get_contents()?
> >
> > Thank you,
> > Micah Gersten
> > onShore Networks
> > Internal Developer
> > http://www.onshore.com
> >
> >
> >
> > sean greenslade wrote:
> > > Thanks for the advice. I changed the perms to 777 and changed the user
> > and
> > > group to apache, but it still won't open.
> > >
> > >
> > > On Wed, Aug 20, 2008 at 3:35 PM, Robbert van Andel <
> > [EMAIL PROTECTED]>wrote:
> > >
> > >
> > >> Does the user your PHP instance runs as have access to the file?  It's
> > >> possible that it runs under a different users depending on if you're
> > running
> > >> the script on the terminal or in a web browser.  The function fopen
> will
> > >> return false if the file fails to open.  Find out if $fh is equal to
> > false.
> > >> While you're debugging, you might consider changing the display errors
> > >> setting to see what warning fopen generates if the file fails to open.
> >  From
> > >> http://us.php.net/fopen
> > >>  Errors/Exceptions
> > >>
> > >> If the open fails, the function an error of level *E_WARNING* is
> > >> generated. You may use @<
> > http://us.php.net/manual/en/language.operators.errorcontrol.php>to
> > suppress this warning.
> > >>
> > >>
> > >> On Wed, Aug 20, 2008 at 12:15 PM, sean greenslade <
> > [EMAIL PROTECTED]>wrote:
> > >>
> > >>
> > >>> I have this snippet of code that is supposed to read the apache
> access
> > log
> > >>> and display it:
> > >>> <?php
> > >>>    $myFile = "/var/log/httpd/access_log";
> > >>>    $fh = fopen($myFile, 'r');
> > >>>    $theData = fread($fh, filesize($myFile));
> > >>>    fclose($fh);
> > >>>    echo
> > >>>    "This weeks apache log (clears every sunday morning):".
> > >>>    substr($theData,0,2000);
> > >>> ?>
> > >>> For some reason, it displays the logs when I run the php file thru
> > >>> terminal:
> > >>> php -f /web/apache.php
> > >>>
> > >>> but not when I access it thru the web. when I browse to it, it just
> > >>> displays
> > >>> the static text ("This weeks apache log (clears every sunday
> > morning):"),
> > >>> not the log text.
> > >>>
> > >>> Very confused,
> > >>> zootboy
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
>
>
>
> --
> Feh.
>
>


-- 
Feh.

--- End Message ---
--- Begin Message ---
You can change the permissions on the file, which I believe you said you
did. If that didn't work, it must be because you are trying to read from
the file at the very same instant that Apache is writing to it logging
that you are trying to access it, if that makes sense?

Ash
www.ashleysheridan.co.uk
--- Begin Message ---
So I made a cron jop to copy the log to the web folder every 5 minutes. That
worked fine. It seems that php can't read the /var/log/httpd folder without
root perms.

On Wed, Aug 20, 2008 at 7:53 PM, Ashley Sheridan
<[EMAIL PROTECTED]>wrote:

> Yeah, Apache is still running, but it is the access log you are trying
> to read, at the same time that you are Apache is being accessed.
> Accessing the log from the terminal will be fine while Apache is
> running, as it is unlikely it is being accessed at the very same
> instant. Are you able to access other files? Also, have you tried
> copying the file to another temporary version from within PHP an
> accessing that? If that doesn't work, try executing a Bash script that
> copies it someplace. Make sure to run the script in the background, and
> maybe add a sleep period to it so that it doesn't interfere with Apache
> accessing things.
>
> Ash
> www.ashleysheridan.co.uk
>
>
> ---------- Forwarded message ----------
> From: "sean greenslade" <[EMAIL PROTECTED]>
> To: "Micah Gersten" <[EMAIL PROTECTED]>
> Date: Wed, 20 Aug 2008 19:41:54 -0400
> Subject: Re: Fwd: [PHP] php not reading file properly
> Ashley Sheridan wrote:
>
> >As it's the Apache access log that you are trying to read in, are you sure
> that Apache is     >not in the process of writing to it as you are
> attempting to read from it? That might explain   >why it seems to be empty,
> although I would have thought it would just append the data to >the end of
> the file, rather than rewriting the whole thing.
>
> I dunno. Like I said, I can read it thru the terminal. Apache is still
> running then.
>
> As for Micah's response, that function won't work either.
>
> On Wed, Aug 20, 2008 at 7:34 PM, Micah Gersten <[EMAIL PROTECTED]> wrote:
>
> > If the directory above it doesn't have execute privileges, it won't be
> > able to read it either.
> > Also, why not use the PHP5 function file_get_contents()?
> >
> > Thank you,
> > Micah Gersten
> > onShore Networks
> > Internal Developer
> > http://www.onshore.com
> >
> >
> >
> > sean greenslade wrote:
> > > Thanks for the advice. I changed the perms to 777 and changed the user
> > and
> > > group to apache, but it still won't open.
> > >
> > >
> > > On Wed, Aug 20, 2008 at 3:35 PM, Robbert van Andel <
> > [EMAIL PROTECTED]>wrote:
> > >
> > >
> > >> Does the user your PHP instance runs as have access to the file?  It's
> > >> possible that it runs under a different users depending on if you're
> > running
> > >> the script on the terminal or in a web browser.  The function fopen
> will
> > >> return false if the file fails to open.  Find out if $fh is equal to
> > false.
> > >> While you're debugging, you might consider changing the display errors
> > >> setting to see what warning fopen generates if the file fails to open.
> >  From
> > >> http://us.php.net/fopen
> > >>  Errors/Exceptions
> > >>
> > >> If the open fails, the function an error of level *E_WARNING* is
> > >> generated. You may use @<
> > http://us.php.net/manual/en/language.operators.errorcontrol.php>to
> > suppress this warning.
> > >>
> > >>
> > >> On Wed, Aug 20, 2008 at 12:15 PM, sean greenslade <
> > [EMAIL PROTECTED]>wrote:
> > >>
> > >>
> > >>> I have this snippet of code that is supposed to read the apache
> access
> > log
> > >>> and display it:
> > >>> <?php
> > >>>    $myFile = "/var/log/httpd/access_log";
> > >>>    $fh = fopen($myFile, 'r');
> > >>>    $theData = fread($fh, filesize($myFile));
> > >>>    fclose($fh);
> > >>>    echo
> > >>>    "This weeks apache log (clears every sunday morning):".
> > >>>    substr($theData,0,2000);
> > >>> ?>
> > >>> For some reason, it displays the logs when I run the php file thru
> > >>> terminal:
> > >>> php -f /web/apache.php
> > >>>
> > >>> but not when I access it thru the web. when I browse to it, it just
> > >>> displays
> > >>> the static text ("This weeks apache log (clears every sunday
> > morning):"),
> > >>> not the log text.
> > >>>
> > >>> Very confused,
> > >>> zootboy
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
>
>
>
> --
> Feh.
>
>


-- 
Feh.

--- End Message ---

--- End Message ---
--- Begin Message ---
Hi Per,

> License costs in EUR, CHF and DKK?  Seriously, I would quote the price
> in one currency only, and leave it for people to convert.

Yes I've quoted it in UK pounds, but since the almighty dollah is more
well known, I've got an approximate conversion there too.

> There's one 'm' too many in "commmercial".

Thanks. My eyesight strikes again. :-)

-- 
Richard Heyes
http://www.phpguru.org

--- End Message ---
--- Begin Message ---
Richard Heyes schrieb:
Hi Per,

License costs in EUR, CHF and DKK?  Seriously, I would quote the price
in one currency only, and leave it for people to convert.

Yes I've quoted it in UK pounds, but since the almighty dollah is more
well known, I've got an approximate conversion there too.

There's one 'm' too many in "commmercial".

Thanks. My eyesight strikes again. :-)

Hi,
do not forget the OT on the Subject.

Regards

Carlos

--- End Message ---
--- Begin Message ---
> do not forget the OT on the Subject.

That results in messages being blocked by the list server?

-- 
Richard Heyes
http://www.phpguru.org

--- End Message ---
--- Begin Message ---
Is there a known issue with using stream_select with apache2 mod_php?

I have a script (http://php.pastebin.com/m601965d) that when run with
mod_php doesn't work, but when run with php-cgi from the command line works
fine.

Thanks in advance,

Damien

--- End Message ---

Reply via email to