PEAR excel spreadsheet writer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spitfire_esquive
Forum Commoner
Posts: 37
Joined: Sun Nov 06, 2005 6:46 am

PEAR excel spreadsheet writer

Post by spitfire_esquive »

hello guys,

i wrote a script that used pear's excel spreadsheet writer where the extracted data is downloaded on the d:\ of the user. the thing is it works on my localhost (i am developing locally but i am connected to a home network) where the file is downloaded in MY d:\ but when i use another computer in our network it doesn't work (file is not present in d:\ of the other computer in the network).

any tips folks? or should i install a local PEAR installation in the OTHER computer for it to work?

thanks in advance!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the pear package will have to be installed on any "server" it needs to be run with.
spitfire_esquive
Forum Commoner
Posts: 37
Joined: Sun Nov 06, 2005 6:46 am

Post by spitfire_esquive »

thanks feyd. so in essence i need to install it on the OTHER computer in my home network ?:(

i always thought that the user would not have to install anything and he would get the file.

then i have to install PHP/PEAR to the OTHER computer?

sorry for being a pest... :?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if the script itself is being run on that machine, not just requested from that machine, then yes.
spitfire_esquive
Forum Commoner
Posts: 37
Joined: Sun Nov 06, 2005 6:46 am

Post by spitfire_esquive »

thanks feyd. i'm trying to wrap my head around it.

:D
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

if the machine you orginally ran the script from is also your web server then yes the file will show up in your D:\ drive

When you use another machine it won't have access to the d:\ drive on the 2nd computer.

So you will have to create link to download the file or some other such thing as I haven't use that pear package before.
spitfire_esquive
Forum Commoner
Posts: 37
Joined: Sun Nov 06, 2005 6:46 am

Post by spitfire_esquive »

THANK YOU ALL! :lol: :lol: :lol:
Post Reply