473,836 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

moving a existing file from one folder to another



Lets say i have a file with the name atest.doc and its in the directory www/directory1
but i want to move that file using php to www/directory2/ how do i do this
i tried

move_uploaded_f ile() but it didn't work any ideas?
Thanks...

Apr 13 '06
14 9349
Well i remind you that...
>> keep in mind that rename() is useless on windows boxes:
>> http://ca3.php.net/manual/en/function.rename.php#59570


....this post was about windows boxes, is your a windows box Chung?

Apr 19 '06 #11

wmasterj wrote:
Well i remind you that...
>> keep in mind that rename() is useless on windows boxes:
>> http://ca3.php.net/manual/en/function.rename.php#59570


...this post was about windows boxes, is your a windows box Chung?


What is this, an Abbott and Costello skit? Yes, I'm on Windows XP.

Apr 19 '06 #12
"Chung Leong" <ch***********@ hotmail.com> wrote in
news:11******** **************@ z34g2000cwc.goo glegroups.com:

wmasterj wrote:
Well i remind you that...
>> >> keep in mind that rename() is useless on windows boxes:
>> >> http://ca3.php.net/manual/en/function.rename.php#59570


...this post was about windows boxes, is your a windows box Chung?


What is this, an Abbott and Costello skit? Yes, I'm on Windows XP.


you are correct. i think this must have been fixed in PHP 5? either way
the 'rename' page is loaded with windows warnings/problems when using the
function.
Apr 20 '06 #13
Good Man wrote:
"Chung Leong" <ch***********@ hotmail.com> wrote in
news:11******** **************@ z34g2000cwc.goo glegroups.com:

wmasterj wrote:
Well i remind you that...

>> >> keep in mind that rename() is useless on windows boxes:
>> >> http://ca3.php.net/manual/en/function.rename.php#59570

...this post was about windows boxes, is your a windows box Chung?


What is this, an Abbott and Costello skit? Yes, I'm on Windows XP.


you are correct. i think this must have been fixed in PHP 5? either way
the 'rename' page is loaded with windows warnings/problems when using the
function.


This world is also loaded with idiots who don't know the proper place
to report a bug.

Apr 20 '06 #14
"Chung Leong" <ch***********@ hotmail.com> wrote in
news:11******** **************@ e56g2000cwe.goo glegroups.com:
Good Man wrote:
"Chung Leong" <ch***********@ hotmail.com> wrote in
news:11******** **************@ z34g2000cwc.goo glegroups.com:
>
> wmasterj wrote:
>> Well i remind you that...
>>
>> >> >> keep in mind that rename() is useless on windows boxes:
>> >> >> http://ca3.php.net/manual/en/function.rename.php#59570
>>
>> ...this post was about windows boxes, is your a windows box Chung?
>
> What is this, an Abbott and Costello skit? Yes, I'm on Windows XP.


you are correct. i think this must have been fixed in PHP 5? either
way the 'rename' page is loaded with windows warnings/problems when
using the function.


This world is also loaded with idiots who don't know the proper place
to report a bug.


you could have ended the sentence at "idiots" ;)
Apr 20 '06 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5516
by: Stephen Ghelerter | last post by:
I am moving a web site with a MySql database to another server. Can I create a database on the new server with the same name and then move the tables there, or is life not that simple? Or can I create tables with no data and then replace them with the files from the other server? I know I can export them as text files and them import them, but that is a lot of trouble. Also, using my FTP program I can't access the mysql folder on the...
6
1918
by: Tim | last post by:
I am in the process of moving a site from one hosting company to another. This site is fairly large, with hundreds of asp files, each with multiple "include" statements. The new host has a different webspace folder structure for it's clients than the old host. At the moment, this is forcing me to have to append all the paths for all the include statements (not to mention all the other path-related code) to make things work. Example:
6
8933
by: Hemant Shah | last post by:
Folks, I need to move HOME directory of an instance to another directory. What is the best way of doing it? Is changing password file enough? or dies DB2 store this info in it's own config? I am running UDB 8.2 on Linux and AIX. Thanks.
11
7744
by: Dave | last post by:
I copied the project files from an ASP.NET project on one computer and want to create the project on another computer, There is no connection between the two computers so I simply copied the project files from the first computer onto a memory stick and then from the memory stick into my Visual Studio Projects folder on the second computer. But when I open Visual Studio on the second computer and try to create a project by pointing to...
4
1922
by: Martin | last post by:
Hi! How do I move a project (all sources) to a different location. Currently it is located in 'My Documents', but I would like to move it to a directory on the server. When I try the "Save As..." option on the vbproj-file, VS2005 tells me that it can be in the current directory only... Tia, Martin
2
2358
by: RSH | last post by:
Hi, I am having a little trouble with a Visual Studio project. I moved and existing project to a Network share and now when I go to run the project in Debug mode I get an error saying "The operation could not be completed. The process cannot access the file because it is being used by another process." Then when I try to run the project again I get another error that reads "Visual Studio could not copy a support file to this location:...
2
2063
by: Rob Dob | last post by:
Hi, How do I go about installing another Web Site Project inside my existing VS2005 website project. I currently have both a forum WSP and my main WSP application within the same solution. Both compile and run without error. However they are separate applications and I would like to have them together in order to make use of my masterpages, and share controls between. Do I need to combine the web.config files? I figured I would just...
2
1308
by: conics | last post by:
is it possible to move a folder from 1 directory to another this is the situation, i created a database file and then the database depends on the folder which is of course has the same name as the file database name its dependencies are on this folder. and i have to move the database and its dependencies in to another folder, can i move the folder? c:\vb projects\part1 db1.db(database) db1(folder) ..db1files
8
1767
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
Hello group. I have some code (given to me), but I don't know alot about ASP, so I was hoping someone here can help. Running on Win 2008 server. The code below will scan a folder and subfolder with a date/time input and return xml structure off all files that are newer than the supplied date/time. The problem is that the returned xml has path names like C:\folder\subfolder\filename.ext I would like it to be more like...
0
9816
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9668
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10840
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10588
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5647
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3112
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.