04-30-2009
So when you call the background image directly in the browser it shows?
Are there any errors/messages when you call your script directly, or in Apaches error_log?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need (have been asked/order/instructed) to migrate the access of a number of ksh scripts into a html/web page environment. Currently access is with the user logging onto a unix box and accessing the scripts that way. The users are not unix people so I have restricted the access solely to... (4 Replies)
Discussion started by: nhatch
4 Replies
2. Shell Programming and Scripting
I want to invoke shell script named bubesh.sh when submit button clicked on html/jsp page.I am using an apache server and the html & shell script are in the same working directory.Please help. (2 Replies)
Discussion started by: bubeshj
2 Replies
3. Web Development
Hi,
I have html page in my unix machine(server), which I will open with firefox or mozilla available in unix machine. Firefox or mozilla will be opened using x windows.
Since I have access to unix machien(like other users) and this HTML page is for user having access to Unix machine, I see no... (7 Replies)
Discussion started by: vamanu9
7 Replies
4. Shell Programming and Scripting
Hi,
Need Help, Recently I have thought to migrating my Korn Shell Scripts to html page..., already webserv is running on my unix machine.
How to migrate the shell scripts to html page..
Please refer any web portal or sample codes. Thanks in Adavce (2 Replies)
Discussion started by: l_gshankar24
2 Replies
5. Shell Programming and Scripting
Hi friends,
I m newbie to bash scripting , i m writing script(bash) that will display all processes which r running in my system in an html page, everything going fine but i m not able to get checkbox dynamically for each process in html page ,so that i can mark that process... (2 Replies)
Discussion started by: vagga06
2 Replies
6. Shell Programming and Scripting
hi
i m printing all current running processes into an html page with checkbox for each process , using bash script i want to get(retrive) the value of that checked checkbox to kill the process ,can anybody please helpme out
thanks in advance (1 Reply)
Discussion started by: vagga06
1 Replies
7. AIX
dear friends ,
in my work i have to monitor some system performance in hourly basis by runing some commands , for example (lpstat) to know that all the queue is ready
how can i create webpage and connect it with the server (AIX operating system) and make this page refreshed every 10 second and... (12 Replies)
Discussion started by: rami abusweilei
12 Replies
8. Shell Programming and Scripting
I've an HTML page where the pie chart is generated with google java code with the required input values in UNIX.
The HMTL page is generated in UNIX and then when it loads in browser, the code is interpreted thought internet and the pie chart is generated. This is done by the java code in the... (4 Replies)
Discussion started by: Amutha
4 Replies
9. Shell Programming and Scripting
Hi Shell Experts
I am trying to insert an image into HTML email through shell script send mail, I have the email text file which included body and the images included in it in html format.
Through my Shell script, I am calling the text file and send it through email so it it sends the email with... (21 Replies)
Discussion started by: anji009
21 Replies
10. Shell Programming and Scripting
hi,
trying to embed an image to the html file to send out as an email.
img src="data:image/jpeg;base64,$(base64 /home/test/abc.jpg
but getting error as file not found after it aplies base64 on the file. (8 Replies)
Discussion started by: ATWC
8 Replies
LEARN ABOUT PHP
error_log
ERROR_LOG(3) 1 ERROR_LOG(3)
error_log - Send an error message to the defined error handling routines
SYNOPSIS
bool error_log (string $message, [int $message_type], [string $destination], [string $extra_headers])
DESCRIPTION
Sends an error message to the web server's error log or to a file.
PARAMETERS
o $message
- The error message that should be logged.
o $message_type
- Says where the error should go. The possible message types are as follows:
error_log(3) log types
+--+---------------------------------------------------+
|0 | |
| | |
| | $message is sent to PHP's system logger, using |
| | the Operating System's system logging mechanism |
| | or a file, depending on what the error_log con- |
| | figuration directive is set to. This is the |
| | default option. |
| | |
|1 | |
| | |
| | $message is sent by email to the address in the |
| | $destination parameter. This is the only message |
| | type where the fourth parameter, $extra_headers |
| | is used. |
| | |
|2 | |
| | |
| | No longer an option. |
| | |
|3 | |
| | |
| | $message is appended to the file $destination. A |
| | newline is not automatically added to the end of |
| | the $message string. |
| | |
|4 | |
| | |
| | $message is sent directly to the SAPI logging |
| | handler. |
| | |
+--+---------------------------------------------------+
o $destination
- The destination. Its meaning depends on the $message_type parameter as described above.
o $extra_headers
- The extra headers. It's used when the $message_type parameter is set to 1. This message type uses the same internal function as
mail(3) does.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Warning
error_log(3) is not binary safe. $message will be truncated by null character.
Tip
$message should not contain null character. Note that $message may be sent to file, mail, syslog, etc. Use appropriate conver-
sion/escape function, base64_encode(3), rawurlencode(3) or addslashes(3) before calling error_log(3).
EXAMPLES
Example #1
error_log(3) examples
<?php
// Send notification through the server log if we can not
// connect to the database.
if (!Ora_Logon($username, $password)) {
error_log("Oracle database not available!", 0);
}
// Notify administrator by email if we run out of FOO
if (!($foo = allocate_new_foo())) {
error_log("Big trouble, we're all out of FOOs!", 1,
"operator@example.com");
}
// another way to call error_log():
error_log("You messed up!", 3, "/var/tmp/my-errors.log");
?>
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.2.7 | |
| | |
| | The possible value of 4 was added to $mes- |
| | sage_type. |
| | |
+--------+---------------------------------------------------+
PHP Documentation Group ERROR_LOG(3)