PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi again guyzz.. i wrote this script to open dir on my windows directory but it is not working.. as i am using windows so i can use both forward slash or backward slash but not working.. giving errors.. can some one tell me where is the problem?
<?php
$dirname = "THE PATH TO THE FOLDER OR FILE U WANT TO ECHO/";
$dir = opendir($dirname);
while(false != ($file = readdir($dir))) {
if(($file != ".") and ($file != ".."))
{ $fileChunks = explode(".", $file); {
?>
<br><a href="Google.com"><?php echo $file?></a> <------this is where it echos out
<?php }}}closedir($dir); ?>