I can not open file using the opendir function

hi i am using xampp as apache,mysql solution. My defalutl local webroot is c:/xampp/htdocs/
and i am using zend studio for developing php, where my php project name is meta which is located under htdocs(C:/xampp/htdocs/meta);
I put a folder naming graphics inside meta and put some jpeg image inside graphics,
then i coding the following to show the file in graphics folder: and make a php file naming newfile.php
inside meta folder

<?php if(is_dir('graphics')) { $dir=opendir('graphics'); $read=readdir('graphics'); print $read; } or die("this is not a valid directory"); ?>

but it not work, how i see the filename with readdir function as shown in w3school php readdir function.

Sponsor our Newsletter | Privacy Policy | Terms of Service