php-general Digest 8 Jul 2013 03:11:09 -0000 Issue 8289
Topics (messages 321575 through 321583):
Re: phpdocumentor with PHP5.4
321575 by: Sebastian Krebs
321576 by: lester.lsces.co.uk
321577 by: Sebastian Krebs
321578 by: Lester Caine
321579 by: Sebastian Krebs
htaccess
321580 by: Tedd Sperling
321581 by: Simon J Welsh
321582 by: Tedd Sperling
Making a Timeout Expiration Length to Session Variables
321583 by: dealTek
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
You can simply update phpdocumentor
Am 07.07.2013 17:10 schrieb "Lester Caine" <les...@lsces.co.uk>:
> Anybody have phpdocumentor running with PHP5.4?
> I'm convinced that the errors my copy is throwing are due to e_strict, but
> I've confirmed that I have the right ini file ( all the needed extensions
> load ) and I'm getting error_reporting showing 22527 with e_strict off and
> 24575 with e_strict on - so at least it is changing the setting?
>
> Once again I'm wasting hours getting something which I have had running
> fine on the older servers to actually work in a new setup. In this case
> phpdocumentor seems to suggesting *IT* needs PHP5.3 but the main script
> also switched e_strict off anyway, so 5.4 should work as well?
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact -
> http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact>
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media -
> http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
It's a clean install via PEAR a couple of hours ago!
Sent from my android device.
-----Original Message-----
From: Sebastian Krebs <krebs....@gmail.com>
To: Lester Caine <les...@lsces.co.uk>
Cc: PHP General List <php-gene...@lists.php.net>
Sent: Sun, 07 Jul 2013 16:41
Subject: Re: [PHP] phpdocumentor with PHP5.4
You can simply update phpdocumentor
Am 07.07.2013 17:10 schrieb "Lester Caine" <les...@lsces.co.uk>:
> Anybody have phpdocumentor running with PHP5.4?
> I'm convinced that the errors my copy is throwing are due to e_strict, but
> I've confirmed that I have the right ini file ( all the needed extensions
> load ) and I'm getting error_reporting showing 22527 with e_strict off and
> 24575 with e_strict on - so at least it is changing the setting?
>
> Once again I'm wasting hours getting something which I have had running
> fine on the older servers to actually work in a new setup. In this case
> phpdocumentor seems to suggesting *IT* needs PHP5.3 but the main script
> also switched e_strict off anyway, so 5.4 should work as well?
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact -
> http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact>
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media -
> http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I meant: PhpDocumentor 2
Am 07.07.2013 17:44 schrieb <les...@lsces.co.uk>:
> It's a clean install via PEAR a couple of hours ago!
>
> Sent from my android device.
>
> -----Original Message-----
> From: Sebastian Krebs <krebs....@gmail.com>
> To: Lester Caine <les...@lsces.co.uk>
> Cc: PHP General List <php-gene...@lists.php.net>
> Sent: Sun, 07 Jul 2013 16:41
> Subject: Re: [PHP] phpdocumentor with PHP5.4
>
> You can simply update phpdocumentor
> Am 07.07.2013 17 <0707201317>:10 schrieb "Lester Caine" <
> les...@lsces.co.uk>:
>
> > Anybody have phpdocumentor running with PHP5.4?
> > I'm convinced that the errors my copy is throwing are due to e_strict,
> but
> > I've confirmed that I have the right ini file ( all the needed extensions
> > load ) and I'm getting error_reporting showing 22527 with e_strict off
> and
> > 24575 with e_strict on - so at least it is changing the setting?
> >
> > Once again I'm wasting hours getting something which I have had running
> > fine on the older servers to actually work in a new setup. In this case
> > phpdocumentor seems to suggesting *IT* needs PHP5.3 but the main script
> > also switched e_strict off anyway, so 5.4 should work as well?
> >
> > --
> > Lester Caine - G8HFL
> > -----------------------------
> > Contact - http://lsces.co.uk/wiki/?page=**contact<
> http://lsces.co.uk/wiki/?page=contact>
> > L.S.Caine Electronic Services - http://lsces.co.uk
> > EnquirySolve - http://enquirysolve.com/
> > Model Engineers Digital Workshop - http://medw.co.uk
> > Rainbow Digital Media - http://rainbowdigitalmedia.co.**uk<
> http://rainbowdigitalmedia.co.uk>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---
--- Begin Message ---
Sebastian Krebs wrote:
I meant: PhpDocumentor 2
Problem solved ...
Notes on https://github.com/phpDocumentor/phpDocumentor2 need a little update to
correct the installation notes to use the beta builds rather than alpha ones.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--- End Message ---
--- Begin Message ---
You can submit a pull request for that
2013/7/7 Lester Caine <les...@lsces.co.uk>
> Sebastian Krebs wrote:
>
>> I meant: PhpDocumentor 2
>>
> Problem solved ...
> Notes on
> https://github.com/**phpDocumentor/phpDocumentor2<https://github.com/phpDocumentor/phpDocumentor2>need
> a little update to correct the installation notes to use the beta
> builds rather than alpha ones.
>
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact -
> http://lsces.co.uk/wiki/?page=**contact<http://lsces.co.uk/wiki/?page=contact>
>
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media -
> http://rainbowdigitalmedia.co.**uk<http://rainbowdigitalmedia.co.uk>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
github.com/KingCrunch
--- End Message ---
--- Begin Message ---
Hi gang:
I have a client who has an account with GoDaddy (I know).
GoDaddy says they have PHP v 5.3 installed on the client's account, but
phpinfo() says different, namely it reports 5.2.17.
After calling GoDaddy, they said the client has an htaccess file that makes
everything 5.2 instead of 5.3.
Now, I'm not an expert on these things and the reason why I am asking here, but
here are the two htaccess files I find at root level:
1. Named: .htaccess.bak_hosting_company_Apache24_compatibility_fix
Options +ExecCGI
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php5-cgi .php .htm .html
# AddHandler php5-script .php .html
# AddHandler x-httpd-php5 .php .html
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html
AND
2. Named: .htacess
# The below FilesMatch stanza was added by your
# hosting provider on 2013-06-27 11:05:33
# to resolve a potential Apache 2.4
# compatibility issue with your custom AddHandler(s)
# for PHP. If you feel this was in error, please
# contact support and we will work to resolve the
# issue. Thanks!
<FilesMatch "\.(htm|html)$">
Options +ExecCGI
</FilesMatch>
Options +ExecCGI
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php5-cgi .php .htm .html
Does anyone see a problem here?
OR -- a way to get PHP to version 5.3?
Cheers,
tedd
_____________________
t...@sperling.com
http://sperling.com
--- End Message ---
--- Begin Message ---
On 8/07/2013, at 8:06, Tedd Sperling <t...@sperling.com> wrote:
> Hi gang:
>
> I have a client who has an account with GoDaddy (I know).
>
> GoDaddy says they have PHP v 5.3 installed on the client's account, but
> phpinfo() says different, namely it reports 5.2.17.
>
> After calling GoDaddy, they said the client has an htaccess file that makes
> everything 5.2 instead of 5.3.
>
> Now, I'm not an expert on these things and the reason why I am asking here,
> but here are the two htaccess files I find at root level:
>
> 1. Named: .htaccess.bak_hosting_company_Apache24_compatibility_fix
>
> Options +ExecCGI
> AddType application/x-httpd-php .php .htm .html
> AddHandler x-httpd-php5-cgi .php .htm .html
> # AddHandler php5-script .php .html
> # AddHandler x-httpd-php5 .php .html
> ErrorDocument 404 /404.html
> ErrorDocument 403 /403.html
>
> AND
>
> 2. Named: .htacess
>
> # The below FilesMatch stanza was added by your
> # hosting provider on 2013-06-27 11:05:33
> # to resolve a potential Apache 2.4
> # compatibility issue with your custom AddHandler(s)
> # for PHP. If you feel this was in error, please
> # contact support and we will work to resolve the
> # issue. Thanks!
> <FilesMatch "\.(htm|html)$">
> Options +ExecCGI
> </FilesMatch>
>
> Options +ExecCGI
> AddType application/x-httpd-php .php .htm .html
> AddHandler x-httpd-php5-cgi .php .htm .html
>
>
> Does anyone see a problem here?
>
> OR -- a way to get PHP to version 5.3?
>
> Cheers,
>
> tedd
I don’t use GoDaddy, so this may not be entirely accurate.
I’m guessing that it’s these two lines in .htaccess:
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php5-cgi .php .htm .html
They’re changing the handler from PHP files from the default ones to
x-httpd-php5-cgi, which would cause PHP 5.2 to be used instead. Try commenting
out these two lines.
---
Simon Welsh
Admin of http://simon.geek.nz/
--- End Message ---
--- Begin Message ---
Simon:
Confirmed. Those two lines cause the problem.
However, commenting out those lines causes other problems.
Are there similar statements to these:
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php5-cgi .php .htm .html
That will allow for their function (whatever that may be), but not reduce PHP
to version 5.2.17?
If these statement are for only the php interpreter to consider html prefixes,
then I use the following on my main site:
# handler for phpsuexec. -- this makes these prefixes considered for php
<FilesMatch "\.(htm|html|css)$">
SetHandler application/x-httpd-php
</FilesMatch>
And it works for me without the PHP version reduction.
What do you say?
And thanks...
Cheers,
tedd
On Jul 7, 2013, at 4:10 PM, Simon J Welsh <si...@simon.geek.nz> wrote:
> On 8/07/2013, at 8:06, Tedd Sperling <t...@sperling.com> wrote:
>
>> Hi gang:
>>
>> I have a client who has an account with GoDaddy (I know).
>>
>> GoDaddy says they have PHP v 5.3 installed on the client's account, but
>> phpinfo() says different, namely it reports 5.2.17.
>>
>> After calling GoDaddy, they said the client has an htaccess file that makes
>> everything 5.2 instead of 5.3.
>>
>> Now, I'm not an expert on these things and the reason why I am asking here,
>> but here are the two htaccess files I find at root level:
>>
>> 1. Named: .htaccess.bak_hosting_company_Apache24_compatibility_fix
>>
>> Options +ExecCGI
>> AddType application/x-httpd-php .php .htm .html
>> AddHandler x-httpd-php5-cgi .php .htm .html
>> # AddHandler php5-script .php .html
>> # AddHandler x-httpd-php5 .php .html
>> ErrorDocument 404 /404.html
>> ErrorDocument 403 /403.html
>>
>> AND
>>
>> 2. Named: .htacess
>>
>> # The below FilesMatch stanza was added by your
>> # hosting provider on 2013-06-27 11:05:33
>> # to resolve a potential Apache 2.4
>> # compatibility issue with your custom AddHandler(s)
>> # for PHP. If you feel this was in error, please
>> # contact support and we will work to resolve the
>> # issue. Thanks!
>> <FilesMatch "\.(htm|html)$">
>> Options +ExecCGI
>> </FilesMatch>
>>
>> Options +ExecCGI
>> AddType application/x-httpd-php .php .htm .html
>> AddHandler x-httpd-php5-cgi .php .htm .html
>>
>>
>> Does anyone see a problem here?
>>
>> OR -- a way to get PHP to version 5.3?
>>
>> Cheers,
>>
>> tedd
>
> I don’t use GoDaddy, so this may not be entirely accurate.
>
> I’m guessing that it’s these two lines in .htaccess:
> AddType application/x-httpd-php .php .htm .html
> AddHandler x-httpd-php5-cgi .php .htm .html
> They’re changing the handler from PHP files from the default ones to
> x-httpd-php5-cgi, which would cause PHP 5.2 to be used instead. Try
> commenting out these two lines.
>
> ---
> Simon Welsh
> Admin of http://simon.geek.nz/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi all,
I would like to make a timeout length to session variables, so that if a user
didn't use the browser page for let's say 5 minutes - the session variables
would expire and the user would need to login again.
Q: What's the best way to implement this functionality?
--
Thanks,
Dave - DealTek
deal...@gmail.com
[db-3]
--- End Message ---