我目前使用此代码:
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;
}
在我的 content.php 中,我有以下代码:
#!/usr/bin/php
<?php
echo 'HET WERKT';
?>
现在我想通过填写表单并提交它来查看我的 shell_exec 是否真的有效:但它根本没有回显任何内容。
我写错代码了吗?