05-02-2019
Saturday May 4th the Forums Will Briefly Break Testing PHP 5.6 to PHP 7.0
On Saturday May 4th the forums will briefly break when I switch our Apache PHP 5.6 module to PHP 7.0.
Previously, I had two sites set up for testing the migration, but for many reasons, the second site has additional issues unrelated to PHP 7.0 so it is hard to debug on a different site and make solid progress.
So, this Saturday when the site is quiet, I will run a2dismod php5.6; a2enmod php7.0 and see what breaks and what logs, and what does not break.
Then, depending on the severity of the breaks, I will turn PHP 5.6 back on with a2dismod php7.0; a2enmod php5.6, bringing the site back to normal.
I have already made a number of changes in the PHP code in preparation, but I'm sure things will break, the error logs will fill and I'll have more work to do in the next round.
These 5 Users Gave Thanks to Neo For This Post:
4 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to develop a script to check for the day. If the day is a Saturday then the script should check if the Saturday is the last Saturday of the month so that certain set of instruction can be executed is it is the last Saturday. I do not want to use the crontab as this needs to be part... (9 Replies)
Discussion started by: jobbyjoseph
9 Replies
2. Shell Programming and Scripting
Hi,
Your great help is very appreciated. I am looking for any Unix command or tool for doing Stress/Load test of php files at command prompt.
I tried torture.pl but it is not working after20 concurrent threads/users.
as it is very urgent for me..please suggest ur ideas asap.
thanks (5 Replies)
Discussion started by: Malleswari
5 Replies
3. Shell Programming and Scripting
Hi ,
i need to reboot a server during 2nd and 4th saturday every month. i have come up with the below cron
30 17 8-14 * * if ; then /rebootscript; fi # to reboot every second saturday
30 17 22-28 * * if ; then /rebootscript; fi # to reboot every fourth saturday
I am wondering why it... (3 Replies)
Discussion started by: chidori
3 Replies
4. Red Hat
Dear All,
My redhat version is:
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
#
# uname -a
Linux cotapplication3.cot.com 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
#
I want to update my php from:
# php... (1 Reply)
Discussion started by: monojcool
1 Replies
LEARN ABOUT PHP
nsapi_request_headers
NSAPI_REQUEST_HEADERS(3) 1 NSAPI_REQUEST_HEADERS(3)
nsapi_request_headers - Fetch all HTTP request headers
SYNOPSIS
array nsapi_request_headers (void )
DESCRIPTION
nsapi_request_headers(3) gets all the HTTP headers in the current request. This is only supported when PHP runs as a NSAPI module.
Note
Prior to PHP 4.3.3, getallheaders(3) was only available for the Apache servers. After PHP 4.3.3, getallheaders(3) is an alias for
nsapi_request_headers(3) if you use the NSAPI module.
Note
You can also get at the value of the common CGI variables by reading them from the $_SERVER superglobal, which works whether or not
you are using PHP as a NSAPI module.
RETURN VALUES
Returns an associative array with all the HTTP headers.
EXAMPLES
Example #1
nsapi_request_headers(3) example
<?php
$headers = nsapi_request_headers();
foreach ($headers as $header => $value) {
echo "$header: $value <br />
";
}
?>
PHP Documentation Group NSAPI_REQUEST_HEADERS(3)