Atmoment i use this 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;
}
In my content.php the following code:
#!/usr/bin/php
<?php
echo 'HET WERKT';
?>
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 wrote some wrong code?