blagojkk
-
Posts
6 -
Joined
-
Last visited
Never
Posts posted by blagojkk
-
-
I think it is a problem with php itself. I have 3 servers, on 1 of them it is working without a problem, on other 2 don't, but I can not figure out what is the difference because they are completely identical.
-
I get this:
<pre>eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:392973281 errors:0 dropped:652694 overruns:0 frame:0
TX packets:617472358 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:123590836828 (115.1 GiB) TX bytes:527309097095 (491.0 GiB)
Memory:fb5e0000-fb600000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4553992 errors:0 dropped:0 overruns:0 frame:0
TX packets:4553992 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1967405149 (1.8 GiB) TX bytes:1967405149 (1.8 GiB)
</pre>
-
Still the same. It is not the problem how the output it is list, it is the problem that the list/output it is not complete. On other machine I have it works without a problem, but both machines have exactly same OS, apache and php version etc... Completely identical.
-
In the browser when I open the file I need to see the output of the ifconfig linux command on the server.
This is the index.php
<?
$iplist = shell_exec("ifconfig");
print "<pre>$iplist</pre>";
?>
but when I open the index.php in a browser I can see only the first couple of lines, nothing more. Can someone help me what to do?
The strange thing is when I run the index.php from the command line with "php index.html" it shows the correct result.
Any help..?
Thanks,
-
I have one table in the mysql database. I want to setup a field that links to an image on my server so I need someone to tell me how to set up the field and make the link entry? After that I heed to display that image using this link in a web browser with some PHP form.
For examle my databse name is 'imagedb', my table name is 'imagetbl' and my field name is fieldimg'. My image is in /var/www/html/images/image1.jpg.
Thanks
shell_exec do not list whole output
in PHP Coding Help
Posted
Problem solved. It was apache server side permission problem.