shell_exec phpfile

MuhAspese

New Member
I currently use this code:\[code\]if(isset($_POST['url']) && isset($_POST['trefwoorden']) ){ mysql_connect('localhost', 'crawler', 'whathasbeenseencannotbeunseen'); mysql_select_db("crawler"); mysql_query("INSERT INTO jobs (jobID, url, trefwoorden) VALUES ('', '".$_POST['url']."', '".$_POST['trefwoorden']."')"); $output = shell_exec("./content.php " .mysql_insert_id()); echo $output;}\[/code\]In my content.php I have the following code:\[code\]#!/usr/bin/php<?phpecho 'HET WERKT';?>\[/code\]Now I want to see if my shell_exec actually works by filling in the form and submitting it: but it doesn't echo anything at all.Did I write wrong code?
 
Back
Top