[PHP] Variable over url

2002-10-30 Thread Manuel Jenne
Hi,
 
I've just installed php 4.2.3 and wonder why I can't submit an variable
over url.
 
Example:
 
My Script:
Test.php
 

 
My URL:
www.some.domain/test.php?tmp=5
 
My result:
 
NOTHING !!!
 
Where is the error?
 
P.S. phpmyadmin run ok.
 
 
Thanx
 
Manuel



[PHP] FTP Search

2002-11-03 Thread Manuel Jenne
Hi,
 
i wont to find a special Dir on many FTP Server's over PHP.
For searching my Server's have an site command like "site dupe
"Dirname""
 
But if I try it with ftp_site I get only a bool back and not the search
result.
With a ftp_nlist I can't search Dir's only files.
And with ftp_rawlist I get this:
 total 3
drwxrwxrwx 4 user group 96 Oct 18 17:24 pub
drwxrwxrwx 29 user group 2000 Oct 31 03:58 bin
drwxrwxrwx 5 user group 120 Oct 18 17:23 misc
 
the code:
$dir=ftp_pwd($conn_id); 
$list=Array(); 
$list=ftp_rawlist($conn_id, "$dir"); 
$i=0; 
 
do{ 
   echo $list[$i], ""; 
   $i++; 
}while($list[$i]);
 
But how to extract only the Dir name from this result, enter it, list
and so on.
Is there any other easier way to search for an Dir?
 
 
thx
 
Manuel