Page 1 of 1
ORDER FOLDER FROM PHP
Posted: Sat Feb 01, 2014 3:57 pm
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');
Re: ORDER FOLDER FROM PHP
Posted: Sat Feb 01, 2014 5:38 pm
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).
Re: ORDER FOLDER FROM PHP
Posted: Mon Feb 03, 2014 4:03 am
by fuadvelic
Thank you very much for your response.
Re: ORDER FOLDER FROM PHP
Posted: Mon Feb 03, 2014 4:13 am
by fuadvelic
Excuse me if I could give a request in the Save as type download it would solve my problem.
Re: ORDER FOLDER FROM PHP
Posted: Mon Feb 03, 2014 2:20 pm
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
Re: ORDER FOLDER FROM PHP
Posted: Tue Feb 04, 2014 1:59 pm
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.
Re: ORDER FOLDER FROM PHP
Posted: Tue Feb 04, 2014 2:50 pm
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.