Jump to content

blagojkk

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by blagojkk

  1. 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>

  2. 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,

     

  3. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.