04-16-2009
Thanks for your reply. Apparently there is a syntax error in the code. Here is the message I get.
.profile[39]: syntax error: `(' unexpected
Line 39 is the first statement:
function _cd()
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi friends,i have a doubt,if there is a file for which i have only read access then is there any way to execute it,plz reply soon (5 Replies)
Discussion started by: amit007
5 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
1. how to what is the current line we are executing. List command will display the 10 lines by default.
2. how to put a pointer to the current excuting line when executing the list.
2. if i have set one break point and i want to set 2nd break point do i need to delete the first break... (1 Reply)
Discussion started by: gauri
1 Replies
3. UNIX for Advanced & Expert Users
1.If a user adds the logout command in the .bash_profile file, then that user cant login.(I hope I'm correct) So, is there anyway to login into that users account without contacting the root or an administrator.
2. Is there anyway to execute a command in remote machine rsh and uux seem to fail... (6 Replies)
Discussion started by: sriram_r
6 Replies
4. Shell Programming and Scripting
Hello all,
I have a script that runs on both the test and production box. The script is owned by a user (abcd for example) with permission set to 700. When this script is run as a root, the log file generated has owner and group as abcdowner and abcdgroup respectively.
Now, when I run the same... (4 Replies)
Discussion started by: solaix14
4 Replies
5. Solaris
Hello Gurus
I would like to know more about ndd commands related to ethernet(NIC) like how to set link_status, link_speed & link_mode as I know how to check these value. And I also would like to know how to make these setting permanents after reboot as I know that these setting will vanish... (5 Replies)
Discussion started by: amity
5 Replies
6. IP Networking
I have two items, only related because they are both regarding dhcpd.
First of all, I keep seeing dhcpd responding to DHCPREQUESTs on eth1 which is my cable modem. For example:
Sep 12 21:00:09 plague dhclient: DHCPREQUEST on eth1 to 204.186.xxx.xxx port 67
Sep 12 21:00:09 plague dhcpd:... (2 Replies)
Discussion started by: NESter
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I understand the permissions of a file/directory.
I just needs to understand how ownership works. Can some one help me on this please?
Thanks in advance. (6 Replies)
Discussion started by: praveen_b744
6 Replies
8. Shell Programming and Scripting
Hi,
Background: There are 2 servers server1 and server2
In server1 i have my script to perform a functionality from the script in server1 i m calling a script named action in server2. The script action has to check the size of a file in a particular location in server1, if the size of the file... (1 Reply)
Discussion started by: jayii
1 Replies
9. Red Hat
Hi,
Can you answer the following ?
How to identify server is physical or virtual server ?
Why often patching is done in servers ?What is the purpose of doing OS patching in servers. ?
Regards,
Maddy (5 Replies)
Discussion started by: Maddy123
5 Replies
10. Solaris
I have a server running openindiana, it hosts virtualbox and several VMs on it.
My first question is if I can run openindiana desktop from my windows on same network, now I am using XWin server under cygwin-X, I can run GUI of VirtualBox etc. but can I have the openindiana desktop show on my... (2 Replies)
Discussion started by: wyx2000
2 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)