1º file (this dont show error message)
Code: Select all
include('conection.php');
$link=conectarse();
$tablas=array();
$query=mysql_list_tables('d60336329',$link);
while(($row=mysql_fetch_row($query))){
$tablas[]=$row[0];
}
$hola=implode("\n",$tablas);
$fp=fopen('tablas.txt','w');
fputs($fp,$hola);
fclose($fp);
$f=file('tablas.txt');
echo '<a href="tablas.txt">tablas ('.count($f).')</a>';and this other, that show this error message
Code: Select all
Warning: fopen(tablas.txt) [function.fopen]: failed to open stream: Unknown error: 0 in int2.php on line 16Code: Select all
$m=file('tablas.txt');
for($i=0;$i<count($m);$i++){
if($m[$i]==$_GET['t']){
$m[$i]=false;
break 2;
}
}
$h=array_filter($m);
echo count($h).' <= @ => '.count($m).'<p>';
$hola=implode("\n",$h);
$fp=fopen('tablas.txt','w');
fputs($fp,$hola);
fclose($fp);
$f=file('tablas.txt');
echo '<a href="tablas.txt">tablas ('.count($f).')</a><p>';