i am making a search engine and i need help because i need it so you submit your url then it automatically scrolls it for the description and keywords then puts it in the database. my html code:
<form action="submit_url.php" method="get">
<input type="text" name="url" value="url" />
<input type="submit" name="submit" value="submit" />
</form>
php code so far:
<html>
<head>
<title>submitting url: <?php $url = $_GET['url']; echo $url; ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
echo "Submitting <b>$url</b>";
$url = fopen("http://knexideas.co.cc", "r") or exit("Unable to open");
while (!feof($url))
{
fgetc($url);
}
fclose($url);
?>
</body>
</html>
all it does is reads the website if you put 'echo $url' at the bottom it just reads and prints the web page.