[PHP] FTP - folders

2006-10-23 Thread Rob Kritzer

Is it possible to FTP a folder and all it's content? I can do a file at a
time, but not a folder.

Also there is times when I will not know the folder name, so I would like it
to just upload everything it finds in the folder I set.

Is this possilbe?

Thanks


Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer

Yes, the directory on mapped drive Y does exist.

I do think that it might have something with how PHP and Apache is running.

How do I chanage how PHP is running under an account? Where do I tell PHP or
Apache to run under a different accunt?



On 10/23/06, Richard Lynch [EMAIL PROTECTED] wrote:



Y: doesn't exist.

It may not exist because you haven't opened it lately and
authenticated it as valid.

Or it might not exist because PHP is not running as you, and PHP has
no access to it.

Or it might not exist because it's Windows, and you need to re-boot.



On Wed, October 18, 2006 2:14 pm, Rob Kritzer wrote:
 I have a script the use to work:

 $date = date(mdy);

 mkdir(Y:/Daily_DisplayAds/todays_ads-$date);

 But now I get this error:

 Warning: mkdir() [function.mkdir]: No such file or directory in
 C:\wamp\www\scripts\ad_finder\display_class.php on line 10

 If I change Y to C it works, can anyone please help me thanks.



--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?




Re: [PHP] FTP - folders

2006-10-23 Thread Rob Kritzer

Yes Tedd,

This is what I am having trouble with, I can see where you can upload each
file, but all I really need it to do is take the contents of a folder and
upload everything it finds in the directory.

Rob



On 10/23/06, tedd [EMAIL PROTECTED] wrote:


At 8:42 PM +0100 10/23/06, Stut wrote:
Rob Kritzer wrote:
Is it possible to FTP a folder and all it's content? I can do a file at
a
time, but not a folder.

Also there is times when I will not know the folder name, so I would
like it
to just upload everything it finds in the folder I set.

Is this possilbe?

Yes[1][2].

-Stut

[1] http://catb.org/~esr/faqs/smart-questions.html
[2] There is no function to upload a folder, but it's quite easy to
code. Check out http://php.net/glob and/or http://php.net/readdir

-Stut:

Perhaps I'm confused (certainly could be), but I think the OP is
asking for a way to upload multiple files from a desktop folder to a
server (client-side to sever-side) by just selecting the desktop
(client-side) folder.

Maybe I should read [1] a little closer, but I did read [2] and I
don't see where one can use php to open a folder on a desktop, read
its contents, and then upload the files therein. However, I do see a
way to upload individual files, but not multiple files _unless_ the
user selects them one at a time and then uploads them consecutively
via a loop. But, that still requires the user to select the files
individually and not the folder that contains them.

I certainly can read the contents of a folder on the server, but I
don't see how you can do it client-side.

Now, am I right, or do you have a way to do this?

Thanks.

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com



Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer

For now I am on a PC XP Pro, wish they would give me back my Mac.


On 10/23/06, Ed Lazor [EMAIL PROTECTED] wrote:


Depends on your operating system.


On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote:

 Yes, the directory on mapped drive Y does exist.

 I do think that it might have something with how PHP and Apache is
 running.

 How do I chanage how PHP is running under an account? Where do I
 tell PHP or
 Apache to run under a different accunt?



 On 10/23/06, Richard Lynch [EMAIL PROTECTED] wrote:


 Y: doesn't exist.

 It may not exist because you haven't opened it lately and
 authenticated it as valid.

 Or it might not exist because PHP is not running as you, and PHP has
 no access to it.

 Or it might not exist because it's Windows, and you need to re-boot.



 On Wed, October 18, 2006 2:14 pm, Rob Kritzer wrote:
  I have a script the use to work:
 
  $date = date(mdy);
 
  mkdir(Y:/Daily_DisplayAds/todays_ads-$date);
 
  But now I get this error:
 
  Warning: mkdir() [function.mkdir]: No such file or directory in
  C:\wamp\www\scripts\ad_finder\display_class.php on line 10
 
  If I change Y to C it works, can anyone please help me thanks.
 


 --
 Some people have a gift link here.
 Know what I want?
 I want you to buy a CD from some starving artist.
 http://cdbaby.com/browse/from/lynch
 Yeah, I get a buck. So?






[PHP] Mapped Drive issue

2006-10-18 Thread Rob Kritzer

I have a script the use to work:

$date = date(mdy);

mkdir(Y:/Daily_DisplayAds/todays_ads-$date);

But now I get this error:

Warning: mkdir() [function.mkdir]: No such file or directory in
C:\wamp\www\scripts\ad_finder\display_class.php on line 10

If I change Y to C it works, can anyone please help me thanks.