Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
running bash commands on web pages
Name: surfistadesampa Date: September 5, 2006 at 08:49:02 Pacific OS: LINUX RED HAT 7.1 CPU/Ram: Pentium III
Comment:
Hi people,
I have a big problem ...
Well, I have a Web Server, running in a linux system ...
Imagine that you type: www.caca.com.br/index.html
This page contains a field and a botton:
Type or name: xxxxxxxxxxxx
Botton: Search
Then, when I click in botton (called Search), a script (shell script) will be executed and the result(output) will be showed on the screen ...
Does anyone know how can I do this code ? I will use HTML or any other ?
You need to create a page which will display the form, with a text-input field and a button (search).
Then you do this in the form's target:
<?php
$result = exec('locate' . $_POST['query']);
// Now $result will contain the last line from // the result of the 'locate' command.
?>
---
0
Response Number 2
Name: Laler Date: September 5, 2006 at 14:11:39 Pacific
Reply:
whoops.
exec() is supposed to be system().
exec() is more suitable as it can be filled with every line from the result, but you should look at system() first if you're not familiar with html/php... Then you can click another similar command on the bottom of the system()'s manual page above, to look at other useful PHP commands.
Summary: Hi, When i view my page in a browser that is used at Full Screen it aligns the way I designed, but when i change the window size (Making it Smaller) the items on the page start to overlap each other s...
Summary: "Perl is a server-side scripting language, sakivcomps. You have to have access to the server to run any perl script you create." Perl can be used as a server-side scripting language, but it is powerfu...
Summary: Yes and No. The problem that your friends are experiencing have to do with the RESOLUTION they are running, NOT the size of their monitor. If they are running hte same resolution as you, then the page...