ORDER FOLDER FROM PHP

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
fuadvelic
Forum Newbie
Posts: 7
Joined: Sat Feb 01, 2014 3:33 pm

ORDER FOLDER FROM PHP

Post by fuadvelic »

please help

Create pdf file from php script that we placed in the Downloads folder on the computer. I want to place the file in the folder
C: \ XXX \. Is it possible.
$ pdf-> Output ('Dokument.pdf', 'D');
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: ORDER FOLDER FROM PHP

Post by requinix »

You mean C:\XXX\ on the user's computer? No, it's not possible: the most you can do is give a download prompt (though the browser may bypass it and start downloading immediately, if the user told it to do that).
fuadvelic
Forum Newbie
Posts: 7
Joined: Sat Feb 01, 2014 3:33 pm

Re: ORDER FOLDER FROM PHP

Post by fuadvelic »

Thank you very much for your response.
fuadvelic
Forum Newbie
Posts: 7
Joined: Sat Feb 01, 2014 3:33 pm

Re: ORDER FOLDER FROM PHP

Post by fuadvelic »

Excuse me if I could give a request in the Save as type download it would solve my problem.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: ORDER FOLDER FROM PHP

Post by requinix »

Can't do that either. Literally all you can do is
1. Tell the browser what type of content it is (eg, PDF)
2. Tell the browser to offer the content as a download
3. Give a file name - not a full path for the file, just the name
fuadvelic
Forum Newbie
Posts: 7
Joined: Sat Feb 01, 2014 3:33 pm

Re: ORDER FOLDER FROM PHP

Post by fuadvelic »

I thought I would use PHP as a PDF file for download but made ​​a Save As so I could thus save the folder you want. The syntax for download that we already doing that I cited $ pdf-> Output ('Dokument.pdf', 'D');
I still need to request a Save As if that is possible in order to download the file executed in another folder c: \ xxx instead
c: \ users \ xxx \ Download \. This is necessary because we did this
c: \ users \ xxx \ Download \ differently on each computer.
fuadvelic
Forum Newbie
Posts: 7
Joined: Sat Feb 01, 2014 3:33 pm

Re: ORDER FOLDER FROM PHP

Post by fuadvelic »

Dear,
I solved the problem on the Internet. In Google Chrome in the advanced settings in the download I said
path and that's all.
Post Reply