Question

I realize there are similar questions but only regarding saving files on Linux servers or external windows servers. I have a script on my local machine (running XAMPP) under the C:/ drive. Once the script is run, I would like to save the file to the Z:/ drive on my computer network but am unable to make this happen.

is it possible to have the script run from say:

C:\xampp\htdocs\folder\script.php

and save that .pdf file generated sent to:

Z:\Foldername2

EDIT

While I am able to run the script and store the file anywhere on my C drive, my issue is placing on a network shared drive (the Z drive). When run, I get the following error:

Warning: fopen(Z:\form.pdf) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\folder\fpdf\fpdf.php on line 1157 FPDF error: Unable to create output file: Z:\form.pdf

Was it helpful?

Solution

Assuming the directory is writable you should be able to use the F option in the output method.

OTHER TIPS

The easiest way is to put a shortcut in your web directory pointing to that location, and then make sure the permissions allow RW access

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top