php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44919 works in command line but not in browser
Submitted: 2008-05-05 16:50 UTC Modified: 2008-05-05 19:11 UTC
From: chris at p5nettrain dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.8 OS: Fedora Core 1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chris at p5nettrain dot com
New email:
PHP Version: OS:

 

 [2008-05-05 16:50 UTC] chris at p5nettrain dot com
Description:
------------
I am writing a script to change an interface's IP address. When I run the following script:

<?php
system('ifconfig eth0 192.168.1.10 netmask 255.255.255.0');
system('ifconfig eth0');
?>

In the command line, it works. But when I go to my web browser (either Firefox or Internet Explorer) it doesn't change the ip address - it does execute the second system command.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-05 19:11 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Most likely due to permissions.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 27 22:00:01 2025 UTC