Jump to content


Photo

Como Mover Arquivo


  • Faça o login para participar
13 replies to this topic

#1 foxter

foxter

    "Se hoje sou o q sou, é pq tive sorte de não ser você!&

  • Usuários
  • 279 posts
  • Sexo:Não informado
  • Localidade:Sentado Na Cadeira de Frente pro PC

Posted 04/04/2004, 15:05

Como movo o arquivo de uma pasta para outra atravez de um sistema de php? qual o codigo? tipo eu envio o arquivo atraves de um upload, ai depois eu movo ele para outra pasta jah existente...
Foxter:

#2 AirFight

AirFight

    { www.BlackHawck ]

  • Usuários
  • 413 posts
  • Sexo:Não informado

Posted 04/04/2004, 15:29

da uma olhada ai.

http://br.php.net/ma...n.ftp-chdir.php
http://br.php.net/ma...on.ftp-cdup.php
Eu!! Marcelo AirFight BlackHawk<

<?php

switch ($eu) {
case "Nick":
print "AirFight";
case "Nome":
print "Marcelo";


}

?>

#3 thiagorsl

thiagorsl
  • Visitantes

Posted 04/04/2004, 15:37

Vc fez o upload ai use o copy

copy($arquivo,"caminho/$arquivo_name");//onde$arquivo_name é o nome que o arquivo vai ficar e $arquivo é o nome da var do arquivo de upload

Se quiser mover de um server para outro ai use o ftp que o Air falou

E se quiser tambem pode usar copy para mudar um arquivo para outra pasta basta usar o primeiro argumento como origem e o segundo como origem

#4 foxter

foxter

    "Se hoje sou o q sou, é pq tive sorte de não ser você!&

  • Usuários
  • 279 posts
  • Sexo:Não informado
  • Localidade:Sentado Na Cadeira de Frente pro PC

Posted 04/04/2004, 15:50

uhn valeus... pensei q tivesse alguma funcao tipo move... intaum vou fazer o copy depois eu deleto o arquivo na pasta antiga...
vlws...
Foxter:

#5 paes

paes

    GustavoPaes.Net

  • Usuários
  • 1393 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP
  • Interesses:Rumo ao topo!

Posted 04/04/2004, 15:55

um exemplo que copia um arquivo para a "pasta" e remove o arquivo original

<?
$mudar = copy("teste.php", "pasta/teste.php"); // copia
$mudar = unlink ("teste.php"); // remove
if($mudar){
 echo "ok";
}
?>

flw
Site: GustavoPaes.net

^ Rumo ao Topo ^

#6 thalesalan

thalesalan
  • Visitantes

Posted 04/04/2004, 16:01

Veja este que você apenas fornece as pastas e ele já copia e deleta:
[code=auto:0]
<?
$pasta = arquivos;
$pasta2 = destino;
$rep=opendir('$pasta');
while ($file = readdir($rep)) {
if($file != '..' && $file !='.' && $file !=''){
if (is_dir($file)){
copy($file, "$pasta2/$file");
unlink($file);
}
}
}
closedir($rep);
clearstatcache();
?>

#7 Cristiano Galdino

Cristiano Galdino

    Dark Defender

  • Administradores
  • 3738 posts
  • Sexo:Masculino
  • Localidade:Brasília, DF

Posted 04/04/2004, 17:36

http://br.php.net/ma...loaded-file.php
Cristiano Galdino
- http://cristiano.galdino.net/

“Since 2003”


#8 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 04/04/2004, 17:56

http://br.php.net/ma...loaded-file.php

O move_uploaded_file que o Cristiano mostrou acima... funciona quando efetuamos um upload de arquivo e ele ainda está na pasta temporária do servidor, que se não for movido de lá, será excluído...

Então, sempre que executar um Upload, esta função deve ser usada para dar um destino final ao arquivo.
Klaus Paiva
Conheça também: Taperás

#9 foxter

foxter

    "Se hoje sou o q sou, é pq tive sorte de não ser você!&

  • Usuários
  • 279 posts
  • Sexo:Não informado
  • Localidade:Sentado Na Cadeira de Frente pro PC

Posted 04/04/2004, 22:08

ah tah... mas pra mim n daria certo este pois o que eu quero vai ter q ficar alguns dias numa pasta, ai eu movo para a outra pasta... vou ter q usar a q o paes falou mesmo... vlws gente, jah ajudaram mto... :)
Foxter:

#10 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 13822 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 22/10/2017, 11:30

Viagra Rouge Priligy Informacion generic levitra 20mg Dose Amoxil 875
Cheap Antabuse Online Bentyl In Internet By Money Order No Script Needed viagra vs cialis vs levitra Jelly Kamagra Where To Purchase Cialis Pastillas Como El Viagra

#11 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 22/10/2017, 23:07

Cialis En Hipertensos levitra prices 20 gm free delivery 40mg Tadalafil Safe Site To Buy Cialis Kamagra Jelly Francia
Amoxicillin Clar Rate A Drug Viagra Italie online pharmacy Men'S Health Buy Viagra
Viagra Nebenwirkungen Forum viagra Zithromax Australia Entre Amoxil Discount Online Direct Acticin Pills Next Day Delivery

#12 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 13822 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 03/11/2017, 05:24

Amoxicillin 500 Mg Order Viagra No Prescription Online Cialis In Internet viagra Tadalafil Cialis Y Alcohol
Cialis Acheter En Belgique Cialis 20 Mg Para Que Sirve brand levitra online usa pharmacy Viagra Vente Quebec Cialis Andorre Cash On Delivery Progesterone Amex Cheap

#13 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 03/11/2017, 06:13

Doxycycline Price viagra Lipitor
What Is Viagra Jelly Generic Amoxicilina With Overnight Delivery Cipro Discount Coupon levitra 20mg best price Buy Cialis C80 Daily Propecia Viagra Ahnlich Rezeptfrei
Side Effects Of Amoxicillin Trihydrate viagra Dosage Amoxicillin Bacterial Infection Cat
Achat Clomid Buy Novladex Lodine levitra canada free shipping Shelf Life Keflex
Pill Small Order Brand Cialis Online Buying free shipping isotretinoin isotrex best website Keflex For Bronchitis levitra expre delivery Buy Doxycycline Amazon
Canada Viagra No Presciption Como Conseguir Cytotec En Usa Buy Propecia Proscar viagra Kamagra En La Hipertension Pulmonar Amoxicillin Chronic Middle Ear Amoxicillin Rash And Itching In Children
Priligy Venta En Chile Replacement For Zoloft Viagra E Cialis Prezzo viagra online Levitra Sotto Lingua
Viagra Mit Rezept Kaufen Propecia Pas Cher Canada Cialis Usa cialis price Viagra Versand Schweiz Cialis Oglasi
Cialis Bestellen Rezept Canada Pharmacy 24 viagra online pharmacy Comprar Cialis Por Telefono Healthy Man
Brand Viagra Shipped Overnight From Usa Macrobid Antibiotic Website Need No Physician Approval levitra without rx in the united states 777 Tablets
Sex Pills Like Viagra 294 Il Cialis One Day viagra Prix Cialis Pharmacie Suisse
Indomethacin Comprar Online viagra How To Buy Elocon By Money Order Tablets

#14 kapedlok

kapedlok

    24 Horas

  • Usuários
  • 400 posts
  • Sexo:Feminino
  • Localidade:West Lafayette

Posted 03/11/2017, 22:16

Discounts! top beauty treatments 2017 progect13.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE 3Glasses D2 3D Virtual Reality Headset PC Version-355.94 $brand winter men outdoor waterproof windproof mountaineering jackets sportswear tad shark skin softshell jacket ( 50.78 $)Brazilian virgin hair straight 3 bundles burgundy brazilian hair weave bundles 99j# brazilian straight hair burgundy human hair ( 101.20 $)Country dark grey fabric and brown leather travel bag ( 746.68 $) PineiderIMAN Victor 4G Smartphone-229.99 $Free shipping camping outdoor survival equipment to make fire waterproof ferrocerium ribbon mini size flint magnesium ( 0.78 $)Vintage Classic sun glasses men sunglasses women Original Brand Designer women Sunglasses Men Retro sunglass oculos gafas de sol ( 1.96 $)bai onlineUHANS U200 4G Smartphone-86.16 $8a peruvian virgin hair lace closure 44 peruvian body wave closure li&queen human hair closure free middle 3 part lace closure ( 24.24 $)Black Mobile Cell Phone RF Signal Blocker Bag Anti-Radiation Shield Case Pouch Radiation Protection For Pregnant Women #51024 ( 2.63 $)2x22 flash led light red blue police beacon light emergency warning strobe light for car ( 14.00 $)2016 hot bluetooth car kit handsfree set fm transmitter mp3 music player 5v 2.1a usb car charger, support micro sd card 1g-32g ( 29.60 $)Ograff genuine leather bag ladies 2017 crocodile pattern women messenger bags handbags women famous brand designer high quality ( 103.06 $)рецензия +на книгу 119bb.jpg
Discounts! www bestproducts my

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
100pcslot Handmade Round Square Colorful Alphabet Letter Acrylic Beads for DIY Bracelet,Necklace Gift ( 0.69 $)
Blonde Hair Weave 20 22 24 Inch Remy Straight Hair Weave On Sale Full Cuticle Human Hair Bundles 100 gram per pieces ( 43.99 $)
Jinkairui electric infrared heating kneading neck shoulder back body spa massage pillow car chair shiatsu massager ( 45.00 $)
Womens Cashmere Lined Brown Italian Leather Gloves ( 119.00 $)
шкив газель
выпрессовщик направляющих втулок клапанов
UMI Plus E Android 6.0 5.5 inch 4G Phablet $
2016 Fashion Winter Scarves Women Hijab Scarf Cotton Pure Color blanket Scarf Female Brand Winter Shawls And Scarves ( 6.34 $)
ангри берс играть
Asus ZenFone 3 (ZE552KL) 64GB ROM 4G Phablet-437.13 $
Peruvian Virgin Hair Loose Wave 4 Bundles 8a Grade Virgin Unprocessed Human Hair Bundles Grace Hair Products Peruvian Loose Wave ( 25.00 $)
lunar gato
Motospeed Inflictor CK104 Gaming Mechanical Keyboard-47.27 $
почему grand theft auto великая серия игр
Hot 40pcs lot white k tone iron brooch base back bar pins findings ( 2.20 $)


30bb.jpg
Discounts! beauty cream

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Wild Terra Online - Sandbox game sandbox survival Survival MMORPG with open world
New Design Hot Sale Warm And Cute Princess Rabbit Hat Female Winter Knitted Beret Hat With Flower Women's Rabbit Fur Berets ( 5.90 $)
Women daily backpacks daypack girl school bag pu leather bags candy color travel bag ( 26.00 $)
Red film computer eyewear round transparent glasses frames women mens cat eye eyeglasses nerd optical clear lense vintage female ( 12.90 $)
Modish 3d round neck lion head print short sleeve t-shirt for men ( 13.73 $)
JamesDonkey 007 DIY USB Gaming Wired Mouse-51.29 $
Sendefn fashion ladies genuine leather sheepskin wallet plaid clutch long wallet female card holder zipper purses ( 89.26 $)
FuriBee F36 2.4GHz 4CH 6 Axis Gyro RC Quadcopter ( 12.89 $)
Paris Tower Pattern Cover Case with View Window Stand for LG G4 ( $3.37 )
Zinaida
метки шкива коленвала
Hava black leather crossbody ( 638.73 $) Proenza Schouler
Pilot (Vo vse tyazhkie)
Jumper 5S 11.6 Inch Notebook Computer 1920 x 1080 IPS Display Atom X5 Z8300 4GB RAM USB 3.0 Aluminum Laptop Windows 10 Tablet PC ( 299.99 $)
15CM Stainless Steel Straight Ruler High Precision Writing Material for Student Engineer Office ( $0.71 )


60.jpg




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq