Hola,
tengo un problema hace tiempo estoy intentando descubrir el path y al subir el archivo me da error alguien sabe algun codigo para ver el fullpath ?
buen muchas gracias
un saludo.
| ||||
Respuesta: haberiguar full path del hostin ? me dio la ruta normal, pero no el full path sera otra cosa ? pongo los errores es un simple script para subir archivos: /home/www/wtauruguay.com Notice: Undefined variable: HTTP_POST_FILES in /home/www/wtauruguay.com/upl2.php on line 27 Notice: Undefined variable: HTTP_POST_FILES in /home/www/wtauruguay.com/upl2.php on line 28 Notice: Undefined variable: HTTP_POST_FILES in /home/www/wtauruguay.com/upl2.php on line 29 Notice: Undefined offset: 1 in /home/www/wtauruguay.com/upl2.php on line 34 Notice: Undefined offset: 1 in /home/www/wtauruguay.com/upl2.php on line 34 Notice: Undefined offset: 1 in /home/www/wtauruguay.com/upl2.php on line 34 Notice: Undefined variable: HTTP_POST_FILES in /home/www/wtauruguay.com/upl2.php on line 39 Error al subir el archivo |
| |||
Respuesta: haberiguar full path del hostin ? No sé en PHP, pero en PERL lo puedes averiguar (sin h y con v) del siguiente modo:
Código:
Tambien pueds consultar la variable de entorno: SCRIPT_FILENAME#!/usr/bin/perl print `pwd` Me imagino que en PHP se podrá hacer algo similar. |
| ||||
Respuesta: haberiguar full path del hostin ? Hola GatorV, Hera eso tal cual $_FILE , y hacer el form mas liviano por las duas. P.D mira este post :D http://www.forosdelweb.com/f13/funci...cadena-128182/ creo seria buen aporte xD osea un code tan profeccional como el que usa el de forosdelweb.com :) .. seria bueno , o alguno que funcione 80% o 90% por lo menos. Saludos |