Please send responses to the newsgroup. I am usually happy to help you out, but I do need to keep things organized / slightly sane on my end :)
The short answer to your question below: yes you can use Word with PHP and depending on your needs this might happen on the server or you might just send a Word document to a browser with the correct mime-type.
Based on what you say in your message what you want to do is read the file's contents on the server side. You don't even need to open Word to do this. Then when you get the file contents you can send the MIME header and the content of the file to the browser. Note that this doesn't *force* the user to open the file through Adobe etc. but it gives the browser an idea of what to do with the file and gives the user that option.
Oh, and be careful which files you decide to make public and be *especially* careful which files you allow people to edit and put on the server. You probably already know that, but it doesn't hurt to be reminded from time to time :)
-------- Original Message -------- Subject: Re: Re: SESSION Date: Fri, 11 Feb 2005 11:43:24 +0530 From: Vaibhav Sibal <vaibhavsibal@xxxxxxxxx> Reply-To: Vaibhav Sibal <vaibhavsibal@xxxxxxxxx> To: php <php-windows@xxxxxxxxxxxxx>, Jason Barnett <jason.barnett@xxxxxxxxxxxxx> References: <acc34eef0502101355617ae734@xxxxxxxxxxxxxx> <20050210223812.10365.qmail@xxxxxxxxxxxxx>
Thanks Jason ! It'll be great if you could also tell me whether I can launch applications like MS WORD using COM or any other technology. Basically I want the user sitting on a client machine to select a file from a list and press the open button (which I will provide) and the action linked to the open button should be that of opening the file in the appropriate software . For eg. The user sitting on the client side select a file image001.jpg and presses open, and it automatically gets opened in Adobe photoshop. That kind of thing I am talking about. The only thing to be taken in mind is that the client does not have a PHP parser installed and is not running a webserver either. The file list comes from the server only, which is actually running the webserver and the PHP parser also. ! Please provide some insight on this.
On Thu, 10 Feb 2005 17:36:05 -0500, Jason Barnett <jason.barnett@xxxxxxxxxxxxx> wrote:
> Vaibhav Sibal wrote: > > I wanted to ask, where is the Session information stored ? That is at > > the server or on the client. Because I need to give the > > session.save_path value in the php.ini. I would give it according to > > people's reply of this question. Thank you. > > > > Vaibhav > > session.save_path is located on the server. Session data is stored on > the server; typically the only thing that gets sent to the user is they > will have a cookie written (wherever the web browser writes its cookies). >
-- Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://www.php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment:
signature.asc
Description: OpenPGP digital signature