Re: Move PDFs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



http://www.php.net/manual/en/function.rename.php

You are just moving files on a file system from one place to another right?

rename("/old/path/to/file/filename.pdf","/new/path/newfilename.pdf") or die("can't move file");

Can't remember what variable/function holds the last error for rename,
otherwise I'd put it there.

Peter

On Thu, 14 Nov 2002, Natividad Castro wrote:

> Hi to all,
> I have an Access DB with a table call newchecklist. On this table I have a
> field call PDF where I have many PDFs.
> What I'm trying to do is to move all these PDFs into different folders.
> For example, if I have a folder name VA, so my query will be:
>
> SELECT STATE FROM newcheklist WHERE STATE='VA';
>
> Once I get these records, I would like to move these PDFs to the VA folder.
>
> Is there a way to do this?
>
> Any idea or reference how can I start this, is greatly appreciate.
>
> Thanks in advance
> Nato
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

---------------------------------------------------------------------------
Peter Beckman            Systems Engineer, Fairfax Cable Access Corporation
beckman@purplecow.com                             http://www.purplecow.com/
---------------------------------------------------------------------------


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux