04-26-2014
Multi PHP
Hello
I have a CentOS 6.5
PHP version : 5.4
Software : Nginx+Apache
PHP handler : fcgi
Currently I have php 5.4, however I have some scripts which requires php 5.3. How can I achieve this? PHP selector requires CloudLinux. I do not wish to buy CloudLinux subs
Can anyone guide me how can use php 5.3 and 5.4 while running nginx+apache with handler fcgi?
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Good day!
I am trying to learn how to use the "sed" editor, to perform multiple edits on multiple files in multiple directories.
I have one script that tries to call up each file and process it according to the edits listed in a second script. I am using a small input text to test these, at... (12 Replies)
Discussion started by: kielitaide
12 Replies
2. UNIX for Dummies Questions & Answers
Dear Experts
Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task??
Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies
3. Programming
I am not sure if multi threading is the correct term, but here is what I am trying to do. I have a while loop that displays the number 1, pauses, displays the number 2, pauses , displays the number 3 ad infinitum. It just keeps counting.
While the screen displays the sequence of numbers counting... (4 Replies)
Discussion started by: enuenu
4 Replies
4. Shell Programming and Scripting
Hi all
I have a file that i'm running and exec(cat ./dat) against..and putting its contents into any array, then doing an exploding the array into a multi-dimension array...
The 15 multi-dimensional arrays have elements that are null/empty, I would like to remove/unset these elements and then... (2 Replies)
Discussion started by: zeekblack
2 Replies
5. Shell Programming and Scripting
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies
6. Shell Programming and Scripting
I have a file with data records separated by multiple equals signs, as below.
==========
RECORD 1
==========
RECORD 2
DATA LINE
==========
RECORD 3
==========
RECORD 4
DATA LINE
==========
RECORD 5
DATA LINE
==========
I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies
7. Shell Programming and Scripting
Hi,
I have a problem where I need to make this input:
nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a
nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b
look like this output:
nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies
8. Programming
I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
Discussion started by: advorak
2 Replies
9. Shell Programming and Scripting
Input File:
>Seq1
ASDADAFASFASFADGSDGFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSD
>Seq2
SDASDAQEQWEQeqAdfaasd
>Seq3
ASDSALGHIUDFJANCAGPATHLACJHPAUTYNJKG
......
Desired Output File
>Seq1
ASDADAFASF
ASFADGSDGF
SDFSDFSDFS
DFSDFSDFSD
FSDFSDFSDF
SD
>Seq2 (4 Replies)
Discussion started by: patrick87
4 Replies
LEARN ABOUT PHP
php_check_syntax
PHP_CHECK_SYNTAX(3) 1 PHP_CHECK_SYNTAX(3)
php_check_syntax - Check the PHP syntax of (and execute) the specified file
SYNOPSIS
bool php_check_syntax (string $filename, [string &$error_message])
DESCRIPTION
Performs a syntax (lint) check on the specified $filename testing for scripting errors.
This is similar to using php -l from the commandline except that this function will execute (but not output) the checked $filename.
For example, if a function is defined in $filename, this defined function will be available to the file that executed php_check_syntax(3),
but output from $filename will be suppressed.
Note
For technical reasons, this function is deprecated and removed from PHP. Instead, use php -l somefile.php from the commandline.
PARAMETERS
o $filename
- The name of the file being checked.
o $error_message
- If the $error_message parameter is used, it will contain the error message generated by the syntax check. $error_message is
passed by reference.
RETURN VALUES
Returns TRUE if the lint check passed, and FALSE if the link check failed or if $filename cannot be opened.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.0.5 | |
| | |
| | This function was removed from PHP. |
| | |
| 5.0.3 | |
| | |
| | Calling exit(3) after php_check_syntax(3) |
| | resulted in a Segfault. |
| | |
| 5.0.1 | |
| | |
| | $error_message is passed by reference. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
php -l somefile.php
The above example will output something similar to:
PHP Parse error: unexpected T_STRING in /tmp/somefile.php on line 81
SEE ALSO
include(3), is_readable(3).
PHP Documentation Group PHP_CHECK_SYNTAX(3)