[PHP] json stream filter

2013-06-20 Thread Markus Staab
Hi! first post on the list, so please bare with me ;-) we are handling a lot of cache files in our apps and use json to persist those contents on the filesystem, because it seems to be the fastest possible way to read/write files with PHP. Since I discovered stream-filters, http://www.php.net/ma

[PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get: Warning: file(/docs/admin-email.txt) [function.file]: failed to open stream: No

Re: [PHP] A Strange Problem

2013-06-20 Thread Matijn Woudt
On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling wrote: > Hi gang: > > I have a very strange problem. > > I can use this statement in one folder: > > $fcontents = file('docs/admin-email.txt'); > > But in a different folder with an exact path having > 'docs/admin-email.txt', I get: > > Warni

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
On 2013-06-20, at 1:39 PM, Tedd Sperling wrote: > Hi gang: > > I have a very strange problem. > > I can use this statement in one folder: > >$fcontents = file('docs/admin-email.txt'); > > But in a different folder with an exact path having 'docs/admin-email.txt', I > get: > > Warning:

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Matijin: My mistake in posting -- I have tried it several different ways including absolute. Nothing works. Cheers, tedd --- On Jun 20, 2013, at 1:43 PM, Matijn Woudt wrote: > > > > On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling wrote: > Hi gang: > > I have a very strange problem. > >

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 1:44 PM, Bastien wrote: > > It sounds like a current working directory issue. Try running a getcwd() in > both places to see how they are set > > Bastien I think you have something, here's the reports: Works: /home/content/64//html/sdi/tedd/php-mail Does NOT work:

[PHP] PHP 5.3.18RC1 and 5.4.8RC1 Released for Testing!

2013-06-20 Thread Johannes Schlüter
Hi! We've released PHP 5.3.27RC1 and 5.4.17RC1 which can be found here: 5.3.27RC1: http://downloads.php.net/johannes/php-5.3.27RC1.tar.bz2 http://downloads.php.net/johannes/php-5.3.27RC1.tar.gz 5.4.17RC1: http://downloads.php.net/stas/php-5.4.17RC1.tar.bz2 http://downloads.php.

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is "Why?" I have *never* had to specifically tell any script to chdir() -- why with that one? Cheers and Thanks! tedd _ tedd.sperl...@gmail.com http://sperli

[PHP] [PHP-DEV] PHP 5.3.27RC1 and 5.4.17RC1 Released for Testing!

2013-06-20 Thread Johannes Schlüter
Hi! We've released PHP 5.3.27RC1 and 5.4.17RC1 which can be found here: 5.3.27RC1: http://downloads.php.net/johannes/php-5.3.27RC1.tar.bz2 http://downloads.php.net/johannes/php-5.3.27RC1.tar.gz 5.4.17RC1: http://downloads.php.net/stas/php-5.4.17RC1.tar.bz2 http://downloads.php.

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
Bastien Koert On 2013-06-20, at 1:57 PM, Tedd Sperling wrote: > On Jun 20, 2013, at 1:44 PM, Bastien wrote: >> >> It sounds like a current working directory issue. Try running a getcwd() in >> both places to see how they are set >> >> Bastien > > I think you have something, here's the rep

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
Bastien Koert On 2013-06-20, at 2:14 PM, Tedd Sperling wrote: > Bastien: > > You were right on - by changing the directory to what I needed, everything > works. > > My follow-up question is "Why?" > > I have *never* had to specifically tell any script to chdir() -- why with > that one? >

Re: [PHP] A Strange Problem

2013-06-20 Thread Daniel Brown
On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling wrote: > Bastien: > > You were right on - by changing the directory to what I needed, everything > works. > > My follow-up question is "Why?" > > I have *never* had to specifically tell any script to chdir() -- why with > that one? Sounds like

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Daniel: I placed it at root and it reports: /home/content/64//html/sdi That's the same path that had problems. tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 20, 2013, at 2:22 PM, Daniel Brown wrote: > On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling > wro

Re: [PHP] A Strange Problem

2013-06-20 Thread Marc Guay
Never used it but searching turned up http://php.net/manual/en/function.chdir.php Marc On 20 June 2013 12:57, Tedd Sperling wrote: > On Jun 20, 2013, at 1:44 PM, Bastien wrote: >> >> It sounds like a current working directory issue. Try running a getcwd() in >> both places to see how they are

[PHP] PHP 5.5.0 final has been released!

2013-06-20 Thread Julien Pauli
Hello! The PHP Development Team would like to announce the immediate release of PHP 5.5.0. This release includes a large number of new features and bug fixes. A separate release announcement is also available. For changes in PHP 5.5.0 since PHP 5.4, please consult the PHP 5 ChangeLog. Release An

Re: [PHP] A Strange Problem

2013-06-20 Thread Stuart Dallas
On 20 Jun 2013, at 18:39, Tedd Sperling wrote: > Hi gang: > > I have a very strange problem. > > I can use this statement in one folder: > > $fcontents = file('docs/admin-email.txt'); > > But in a different folder with an exact path having 'docs/admin-email.txt', I > get: > > Warning:

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 7:12 PM, Stuart Dallas wrote: > Whatever the reason for this, I'd recommend you always specify a path > relative to the current script. > > In PHP 5.3+: > > $fcontents = file(__DIR__.'/docs/admin-email.txt'); > > Prior to 5.3: > > $fcontents = file(dirname(__FILE__).'/docs

[PHP] Re: [PHP-DEV] PHP 5.5.0 final has been released!

2013-06-20 Thread Marco Pivetta
Well done! Congratulations! On 20 Jun 2013 23:23, "Julien Pauli" wrote: > Hello! > > The PHP Development Team would like to announce the immediate release of > PHP 5.5.0. This release includes a large number of new features and bug > fixes. > > A separate release announcement is also available. F