473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Passthru

Hi,

Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable this
function? How can I best work around if I can't use this function?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~l-.~~~~~~~~~~~~~~~~~~~
GG-1175498 ____| ]____,
Rafal 'Raf256' Maj X-( * )
Rafal(at)Raf256(dot)com ,"----------"
Jul 17 '05 #1
3 7149
On 8 Nov 2003 18:52:32 GMT, "Rafal 'Raf256' Maj" <sp**@raf256.com> wrote:
Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable this
function? How can I best work around if I can't use this function?


Looks like you're in safe_mode with passthru listed in the disable_functions
option.

http://www.php.net/features.safe-mode

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2
Andy Hassall" <an**@andyh.co.uk> wrote in message
news:jt********************************@4ax.com...
On 8 Nov 2003 18:52:32 GMT, "Rafal 'Raf256' Maj" <sp**@raf256.com> wrote:
Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable thisfunction? How can I best work around if I can't use this function?
Looks like you're in safe_mode with passthru listed in the

disable_functions option.

http://www.php.net/features.safe-mode


Can't he use ini_set() to get around it?
--
Sharif Tanvir Karim
Samples and Resume:
http://www.freewebs.com/stk15/
Jul 17 '05 #3
On Sun, 09 Nov 2003 20:46:39 GMT, "Sharif Tanvir Karim" <sh****@nyc.rr.com>
wrote:
Andy Hassall" <an**@andyh.co.uk> wrote in message
news:jt********************************@4ax.com.. .
On 8 Nov 2003 18:52:32 GMT, "Rafal 'Raf256' Maj" <sp**@raf256.com> wrote:
Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable
this function? How can I best work around if I can't use this function?


Looks like you're in safe_mode with passthru listed in the
disable_functions option.

http://www.php.net/features.safe-mode


Can't he use ini_set() to get around it?


No, read the manual page, particularly the disable_functions entry.

If you could disable safe_mode features from within a script, what would be
the point in having safe_mode in the first place?

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yemi | last post by:
Hi There. I seem to be getting some inconsistent results when using passthru() in safe mode. They appear to be related to the fact that passthru should treat all command arguments as one single...
3
by: Jerry | last post by:
I've found a problem with exec, passthru, shell_exec & system. I'm trying to run the following exec("sort -r -n -k2,2 r1.txt > r2.txt") with r1.txt being a numeric file. The file looks like...
2
by: Greg Chapman | last post by:
I am at my wit's end trying to get information out of Streamline.net's support dept about my problem. They reply quickly enough, but seem to try and give out the least possible amount of info each...
2
by: Martin Kofahl | last post by:
Hello, I'm slightly confused with the passthru() command. The program I call writes html headers itself. However, passthru() makes apache sending some generated headers first. There's no fault...
1
by: Spudster3 | last post by:
I'm trying to get this to work.. <?php echo passthru('wmic cpu get loadpercentage'); ?> and just output to the browser... It looks like cmd.exe hangs when it tries to execute the command. ...
2
by: Robertico | last post by:
Hi, I tried to use the Passthru and System function to resolve some whois information. echo passthru('whois 62.69.168.12') .'<br>'; -or- $whois = system('whois 62.69.168.12', $retval); It...
2
by: rickcasey | last post by:
I cannnot seem to get exec() or passthru() to execute a perl script; here's the code snippet: if ($debug) { echo "username1 = ".$username1."<br>"; echo "dbname = ".$dbname."<br>"; echo...
1
by: bobh | last post by:
Hi All, In AccessXP I'm trying to change a query I have to a 'passthru' query and its failing. I think its due the fact that I have an 'IIF' in it. What is the sql equivalant to Access ' IIF '...
5
by: amalprakash3220 | last post by:
Hi, I want to implement a Web based System administration page in PHP. I'm planning to use apache server, mySQL and Ubuntu/debian. Can I implement it using the functions passthru(),exec() and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.