PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.php > How to restrict the files while uploading..
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to restrict the files while uploading..

Réponse
 
LinkBack Outils de la discussion
Vieux 26/09/2007, 08h13   #1 (permalink)
anu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to restrict the files while uploading..



Hi,


How to restrict the files while uploading..

  Réponse avec citation
Vieux 26/09/2007, 09h41   #2 (permalink)
J.O. Aho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to restrict the files while uploading..

anu wrote:

> How to restrict the files while uploading..


Depends on what you mean with restrict, how your system look like and so on...

An easy way is use chmod() and chown() on the file you saved.

--

//Aho
  Réponse avec citation
Vieux 26/09/2007, 12h19   #3 (permalink)
anu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to restrict the files while uploading..


Hi,

Wt im tell was whn files ve to upload from remote server i dnt want
othr files to be uploaded in my sys ..
fog eg: i want oly .txt files when v try to open it thr it cum lik
this ALL FILES.. dnt want tat oly .txt files i need..
so s thr any solution for that let it be knw ..



Thank U,
Anu

  Réponse avec citation
Vieux 26/09/2007, 13h56   #4 (permalink)
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to restrict the files while uploading..

anu wrote:
> Hi,
>
> Wt im tell was whn files ve to upload from remote server i dnt want
> othr files to be uploaded in my sys ..
> fog eg: i want oly .txt files when v try to open it thr it cum lik
> this ALL FILES.. dnt want tat oly .txt files i need..
> so s thr any solution for that let it be knw ..
>
>
>
> Thank U,
> Anu
>


I have absolutely no idea what you're trying to say. Try plain English.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  Réponse avec citation
Vieux 26/09/2007, 22h04   #5 (permalink)
Good Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to restrict the files while uploading..

anu <anunanni2006@gmail.com> wrote in news:1190805544.160867.132340
@r29g2000hsg.googlegroups.com:

>
> Hi,
>
> Wt im tell was whn files ve to upload from remote server i dnt want
> othr files to be uploaded in my sys ..
> fog eg: i want oly .txt files when v try to open it thr it cum lik
> this ALL FILES.. dnt want tat oly .txt files i need..
> so s thr any solution for that let it be knw ..


OMG ROFL YMMV CU
  Réponse avec citation
Vieux 27/09/2007, 09h57   #6 (permalink)
Geevaa
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to restrict the files while uploading..

On Sep 26, 4:19 pm, anu <anunanni2...@gmail.com> wrote:
> Hi,
>
> Wt im tell was whn files ve to upload from remote server i dnt want
> othr files to be uploaded in my sys ..
> fog eg: i want oly .txt files when v try to open it thr it cum lik
> this ALL FILES.. dnt want tat oly .txt files i need..
> so s thr any solution for that let it be knw ..
>
> Thank U,
> Anu


Anu,
I guess u want the files with extension .txt alone to be
uploaded ...Right???

use $_FILES[][] to find the name and type of the file and restrict the
files ..
refer php.net

  Réponse avec citation
Vieux 27/09/2007, 14h16   #7 (permalink)
Steve
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to restrict the files while uploading..


"Geevaa" <govivasanth@gmail.com> wrote in message
news:1190883422.028342.204300@d55g2000hsg.googlegr oups.com...
> On Sep 26, 4:19 pm, anu <anunanni2...@gmail.com> wrote:
>> Hi,
>>
>> Wt im tell was whn files ve to upload from remote server i dnt want
>> othr files to be uploaded in my sys ..
>> fog eg: i want oly .txt files when v try to open it thr it cum lik
>> this ALL FILES.. dnt want tat oly .txt files i need..
>> so s thr any solution for that let it be knw ..
>>
>> Thank U,
>> Anu

>
> Anu,
> I guess u want the files with extension .txt alone to be
> uploaded ...Right???
>
> use $_FILES[][] to find the name and type of the file and restrict the
> files ..
> refer php.net


not all files have extensions. not all file types can be found with php's
abilities. it's still a guess...however, looking up mime types in the
documentation will you get closer


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h44.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12480 seconds with 15 queries