2 /* Prototype: string readlink ( string $path );
3 Description: Returns the target of a symbolic link */
5 /* Testing readlink() with invalid arguments -int, float, bool, NULL, resource */
7 $file_path = dirname(__FILE__
);
8 $file_handle = fopen($file_path."/readlink_variation2.tmp", "w");
10 echo "*** Testing Invalid file types ***\n";
12 /* Invalid filenames */
25 /* loop through to test each element the above array */
26 foreach( $filenames as $filename ) {
27 var_dump( readlink($filename) );
32 echo "\n*** Done ***";
34 $file_path = dirname(__FILE__
);
35 unlink($file_path."/readlink_variation2.tmp");