Hello,
Stucked in above php code
I've manually created test folder and test2 subdirectory under /var/www/html test.txt exists at /var/www/html/test/test2/test.txt
Then I ve run below url in Chrome but gives error 500, "this page is not working"
URL:
My test.php file:
I'd appreciate if you could let me know what I am missing
I was needing a script that basically covers my butt, lol. I have the nasty habit of making many changes without backing up files, and then after a ton of changes, if I have to go back to the original version, it makes it harder to go back.
Now, I have a script that takes a file, renames it to... (3 Replies)
Hi!
I have an input file for an awk script that I need to split into several files and the process them separately line by line.
I have splitted the input file into the other files, that have been created correctly. But, since their names are parametric (i.e. output_1.txt, output_2.txt..... (2 Replies)
Hello,
I want to move some of my bash scripts to php ( add samba user, add new PC in dhcp and etc. ).With Google, I found some articles for bash and php, but there is only simple examples, nothing for variables.
Example:
#!/bin/bash
status=`/usr/local/etc/rc.d/isc-dhcpd status`
############... (1 Reply)
Hi All,
bash-3.00$ gzgrep -i '\ ExecuteThread:' /******/******/******/******/stdout.log.txt.gz
<Jan 7, 2012 5:54:55 PM UTC> <Error> <WebLogicServer> <BEA-000337> < ExecuteThread: '414' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "696" seconds working on the request... (4 Replies)
I need to have a script read a file that has a list of words in a single column like below:Black
Blue
Brown
Orange
Red
Yellow
Green
White
Purple
Silver
Grey
Tan
Then print to another file just all of the two-word possible combinations. Example:
Black,Blue
Anyone want to take a... (4 Replies)
I am totally new to PHP and I am trying to create a script that will as a user for a hostname and then use the "hostname" variable to generate a report using REST API.
I am able to create the html script and php script to GET the "hostname" but I am having trouble passing the hostname variable... (10 Replies)
Discussion started by: kieranfoley
10 Replies
LEARN ABOUT PHP
debug_print_backtrace
DEBUG_PRINT_BACKTRACE(3) 1 DEBUG_PRINT_BACKTRACE(3)debug_print_backtrace - Prints a backtraceSYNOPSIS
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)