Code: Select all
if(!empty($_POST)){
$urls = explode("n",$_POST['urls']);
foreach($urls as $url){
$file = file_get_contents($url);
preg_match("/?v=([^&]+)/",$url,$found);
$id = $found[1];
preg_match('/<meta name="title" content="([^"]+)">/',$file,$found);
$title = $found[1];Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 0 in .../index.php
here is the form but i looked it over....
Code: Select all
<form action="<?= $PHP_SELF ?>" method="post">
<table>
<tr>
<td>
List:<br />
<textarea rows="10" cols="40" name="urls"></textarea><br />
<input type="submit" value="Download" />
</td>
</tr>
</table>
</form>any help would be appreciated
thanks