09-16-2019
Please execute and post the error from your PHP error.log file.
When we code in PHP, we always run a tail on the PHP error.log file so we can see errors as the occur.
This User Gave Thanks to Neo For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI,
Does anybody know if its possible to execute a command through exec,
shell exec, system and if the program doesn't terminate in N seconds
returns control to PHP ?
reg,
research3
---------- Post updated 10-16-09 at 12:20 AM ---------- Previous update was 10-15-09 at 11:03 PM... (1 Reply)
Discussion started by: research3
1 Replies
2. Shell Programming and Scripting
Hi, I've been working on a PHP script which is "supposed" to find an individuals weather based on their geolocation. This script uses "shell_exec".
I have checked my syntax and it is correct, but there is still something missing; for when I call on the script using:
<form action='/weather.php'... (15 Replies)
Discussion started by: o0110o
15 Replies
3. Programming
Hi guys! I really need your help.
I have a php code that should convert doc, ppt,etc. to pdf using openoffice. But its not working, and im not sure what the problem is.
Here's my php code:
define('OOFFICE_LIBRARY', '/usr/lib/openoffice.org/program/');
$convertToPdf = OOFFICE_LIBRARY .... (5 Replies)
Discussion started by: tweine
5 Replies
4. Web Development
If you aren't familiar with LaTeX, don't stress.. it's just a document markup language that I use for creating Math documents.
Anyway, if I execute "latex /home/destructo/Desktop/example.tex" inside my command prompt (ubuntu), it will create the desired document... I decided to try to create a... (3 Replies)
Discussion started by: tyrick
3 Replies
5. Shell Programming and Scripting
I have written a c program. And compiled it to make a binary. Now when i try to call this binary from php page, it is not being executed.
[ (2 Replies)
Discussion started by: xerox
2 Replies
6. Shell Programming and Scripting
Hi all,
i wrote a php script in which i passed some values in the array variable using a for loop.
I have to pass this array values to a shell script using shell_exec()
<?php
while($row = mysql_fetch_assoc($ansid))
{
//$row = mysql_fetch_assoc($ansid);
$aid = $row;
echo $aid;
$i =... (2 Replies)
Discussion started by: vidhyaS
2 Replies
7. Web Development
Hey guys i've recently been getting into php programming and i became thinking was it possible to create a php script that would allow you to run a terminal from the browser page?
All i've pretty much got so far is:
$var = $_GET;
$output = php shell_exec($var);
echo $output;
... (4 Replies)
Discussion started by: lordfirex
4 Replies
8. Shell Programming and Scripting
Hi,
I need to run a PL/SQL Query from a distant oracle server in order to create spool files and send it to my own server, using a php script.
I firstly created a SH script called myscript.sh
#!/bin/bash
echo "This script is working"
sqlplus... (8 Replies)
Discussion started by: cgstag
8 Replies
9. Shell Programming and Scripting
I am trying to automate a script where I need to use pbrun /bin/su but for some reason it is not passing thru the pbrun as my code below.
. ~/.bash_profile
pbrun /bin/su - content
c h 1
hpsvn up file path
I am executing this from an external .sh file that is pointing to this scripts file... (14 Replies)
Discussion started by: jorgejac
14 Replies
10. Shell Programming and Scripting
Hi Team,
I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system.
df -h | awk -v host=`hostname` '
BEGIN {
print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
LEARN ABOUT PHP
get_cfg_var
GET_CFG_VAR(3) 1 GET_CFG_VAR(3)
get_cfg_var - Gets the value of a PHP configuration option
SYNOPSIS
string get_cfg_var (string $option)
DESCRIPTION
Gets the value of a PHP configuration $option.
This function will not return configuration information set when the PHP was compiled, or read from an Apache configuration file.
To check whether the system is using a configuration file, try retrieving the value of the cfg_file_path configuration setting. If this is
available, a configuration file is being used.
PARAMETERS
o $option
- The configuration option name.
RETURN VALUES
Returns the current value of the PHP configuration variable specified by $option, or FALSE if an error occurs.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | get_cfg_var(3) was fixed to be able to return |
| | "array" ini options. |
| | |
+--------+---------------------------------------------------+
SEE ALSO
ini_get(3), ini_get_all(3).
PHP Documentation Group GET_CFG_VAR(3)