01-07-2012
see php --help or man php
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Perl/UNIX experts,
I have a problem in running a shell script from my perl script (auto.pl).
I run the perl script using
perl auto.pl
from the shell prompt
The shell script picks the files in "input" folder and procesess it.
The shell script blue.sh has this code.
export... (16 Replies)
Discussion started by: hifake
16 Replies
2. Shell Programming and Scripting
Hi.
I write a shell script for import data to oracle using sql loader.
I set permission 755 or 777 for that script. I can run that script in the consol okay.
When I call it from PHP using system command. I got return value 126 this value when don't have permission right ?
I check step... (2 Replies)
Discussion started by: raccsdl
2 Replies
3. Shell Programming and Scripting
Hello,
I have written a code for uploading a file onto the server.The code is as follows:
<? if ($_POST == "Upload File")
{
if( move_uploaded_file ($_FILES ,$target) )
{
$tmpsrc = $_FILES ;
echo... (2 Replies)
Discussion started by: michrods
2 Replies
4. UNIX for Dummies Questions & Answers
Hello All!
I am looking to build a monitoring script.
The script should always run as a system service of some type and should always check that a PHP script is running.
Maybe there is a way to assign a PHP script to a certain PID so that the monitor script that check for the PID in top... (4 Replies)
Discussion started by: elDeuce
4 Replies
5. Shell Programming and Scripting
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies
6. Shell Programming and Scripting
Status quo is, within a web application, which is coded completely in php (not by me, I dont know php), I have to fill out several fields, and execute it manually by clicking the "go" button in my browser, several times a day.
Thats because:
The script itself pulls data (textfiles) from a... (3 Replies)
Discussion started by: lowmaster
3 Replies
7. Shell Programming and Scripting
echo $result=exec("./permit.sh".$_FILES);
pls suggest some other method to run shell script in php .:wall::mad: (0 Replies)
Discussion started by: upvan111
0 Replies
8. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT PHP
debug_print_backtrace
DEBUG_PRINT_BACKTRACE(3) 1 DEBUG_PRINT_BACKTRACE(3)
debug_print_backtrace - Prints a backtrace
SYNOPSIS
void debug_print_backtrace ([int $options], [int $limit])
DESCRIPTION
debug_print_backtrace(3) prints a PHP backtrace. It prints the function calls, included/required files and eval(3)ed stuff.
PARAMETERS
o $options
- As of 5.3.6, this parameter is a bitmask for the following options:
debug_print_backtrace(3) options
+----------------------------+---------------------------------------------------+
|DEBUG_BACKTRACE_IGNORE_ARGS | |
| | |
| | Whether or not to omit the "args" index, and |
| | thus all the function/method arguments, to save |
| | memory. |
| | |
+----------------------------+---------------------------------------------------+
o $limit
- As of 5.4.0, this parameter can be used to limit the number of stack frames printed. By default ($limit= 0) it prints all stack
frames.
RETURN VALUES
No value is returned.
CHANGELOG
+--------+-----------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+-----------------------------------------+
| 5.4.0 | |
| | |
| | Added the optional parameter $limit. |
| | |
| 5.3.6 | |
| | |
| | Added the optional parameter $options. |
| | |
+--------+-----------------------------------------+
EXAMPLES
Example #1
debug_print_backtrace(3) example
<?php
// include.php file
function a() {
b();
}
function b() {
c();
}
function c(){
debug_print_backtrace();
}
a();
?>
<?php
// test.php file
// this is the file you should run
include 'include.php';
?>
The above example will output something similar to:
#0 c() called at [/tmp/include.php:10]
#1 b() called at [/tmp/include.php:6]
#2 a() called at [/tmp/include.php:17]
#3 include(/tmp/include.php) called at [/tmp/test.php:3]
SEE ALSO
debug_backtrace(3).
PHP Documentation Group DEBUG_PRINT_BACKTRACE(3)