i believe the script considers it's own directory as it's current working
directory.
try calling the files by image/$file_name
on 7/7/01 9:38 AM, McShen at [EMAIL PROTECTED] wrote:
hi
Currently, i am working in e:\work, and there is a folder named image under
e:\work, so, the path to
I'm not sure I know exactly what you want, as the script isn't clear on its
purpose. If you simply want to print out all the images in e:\work\image,
and nothing else, the code would be much simpler.
?
$dir = opendir(e:/work/image);
while ($file_name=readdir($dir)) {
if ($file_name .
Look at your code -- where do you tell it to set $file_name equal to the
file handles within e:\work\images? $file_name is only being set to the
values within e:\work -- not e:\work\images.
If you only need to display the images within e:\work\images, then why not
just set $dir_name to that in
-
From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
Newsgroups: php.general
To: McShen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 11:44 AM
Subject: Re: [PHP] chdir() help
I'm not sure I know exactly what you want, as the script isn't clear on its
purpose
by the way, what do u guys use as your news reader client?
how do u reply to my post and send me an email at the same time? Do u
manually add my email to Cc: or you just hit reply to group? I don't know
how to do this.
Kurt Lieber [EMAIL PROTECTED] wrote in message
0c7f01c106fc$9c32e170$[EMAIL
We (or at least I) are on the mailing list, not the newsgroup. Same
content, different delivery format. www.php.net to sign up. (beware -- it's
a HIGH volume list)
--kurt
McShen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
by the way, what do u guys use as
Networks [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 11:08 AM
Subject: Re: [PHP] chdir() help
Chris,
I do that because i wanna have control of how many images will be displayed
at once. I understand what you are doing, but, you script will just display
all images at once, right
7 matches
Mail list logo