ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-spanish
php-spanish
Re: [PHP-ES] Generar un txt en el disco del cliente
by Leonardo Torno Hidalgo other posts by this author
Nov 21 2006 5:33AM messages near this date
[PHP-ES] Generar un txt en el disco del cliente | [PHP-ES] Re: Generar un txt en el disco del cliente
evidentemente php trabaja en el servidor, estás intentando escribir un 
archivo en el servidor, no en la máquina del cliente, me parece que para 
eso deberás pasarle a un jscript la info que quieres guardar y mediante 
jscript escribir en la máquina del cliente.

oscar le bihan escribió:
>  Hola
> 
>  Necesito generar un archivo txt a partir de una consulta a una base de 
>  datos.
>  Recupero correctamente las filas y mi intención era recorrerlas 
>  escribiendo por cada una una linea en un archivo txt del cliente con 
>  fopen , fwrite , fclose.
> 
>  Pero al intentar hacer fopen("c:\\mi archivo.txt", "w+") me dá el 
>  siguiente error.
>  Warning: fopen(c:\exportado.txt) [function.fopen]: failed to open 
>  stream: Permission denied
> 
>  no se si es la manera correcta de hacerlo
> 
>  agradeceria cualquier pista
> 
>  saludos
> 
>  _________________________________________________________________
>  Regístrate en el nuevo Windows Live Messenger beta. 
>  http://imagine-msn.com/minisites/messenger/default.aspx?locale=es-ar
> 

-- 
Lic. Leonardo Torno Hidalgo
GNU/Linux User #277382
http://elinux.cubatools.com/
http://ehome.cubatools.com/ 

-- 
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Oscar Le Bihan
Leonardo Torno Hidalgo
Gustavo Lescano
Oscar Le Bihan
dmeneses
Devta Singh

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved