Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
my question is about PHP values into any file like:
.odt
.doc
.docx
.pdf
Is it possible to "transport" some of value from PHP e.x. $customer_name, into ready template of file? (.odt, .doc, .docx)
Thanks for answer.
Sure. For Word-like documents, you can use e.g. PHPWord: https://phpword.codeplex.com/
For PDF, there are plenty of libs. For easy and fast results, try fdpf: http://fpdf.de/
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have multiple small CSV files in a GCS bucket. I'm trying to merge those into a single large CSV file.
I've seen it can be done using "gsutil compose" command, but I was wondering if that can be done using the PHP Google Cloud Storage API.
You can use the the Client Library that references this other link. And the code should be something like this
$sourceObjects = ['log1.txt', 'log2.txt'];
$singleObject = $bucket->compose($sourceObjects, 'combined-logs.txt');
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I wrote web service which will generate label from certain parameters and will return it as PDF. Now I must improve it by returning generated label as PDF or ZPL format.
Unfortunately, I have zero knowledge on working with ZPL. What is ZPL? Is it some kind of file format? What is used for? How its generated? Any open-source PHP libraries for it?
It would be nice if someone would provide some whitepapers or some kind of reference about ZPL.
Web service is written in PHP.
I think you are looking for this information:
https://en.wikipedia.org/wiki/Zebra_(programming_language)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a directory full of filenames that contain unix timestamps.
file_1434320602.data
file_1434320352.data
file_1434320112.data
file_1434320032.data
How would I get about loading them up in PHP so that I can select the one which I needed?
There are many ways you can do it. The simplest in this case is glob:
$files = glob('/path/to/file_*.data');
print_r($files);
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I work with MySQL database. I want to view the output of my query as a downloadable xml file. I can't use SimpleXML or XMLWriter because I use the php 4.
Could you help me to find the way.I should say that the data is layered and dependant in each other?
Update your PHP version to something that didn't die more then six years ago.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Hello I have to create a function which generates a barCode INT25 in php. Any ideas how to do it. The function should generate the image and give back the url where to find it.
Thank you very much
There are many examples, and libraries/classes, that can assist in this. Most of these, when you create the image, you save it instead of discarding. Then you can also post the url, or save it in a database for later use. Some examples are as follows:
http://bmpradeep.wordpress.com/2013/01/29/generating-barcode-using-php/
http://www.barcodephp.com/en/manual/i25
http://barcode-coder.com/en/barcode-php-class-203.html
http://www.phpkode.com/source/s/barcode-generator/barcode-generator/class/i25.barcode.php
Save file using php
http://php.net/manual/en/function.imagepng.php
http://php.net/manual/en/function.imagejpeg.php
http://php.net/manual/en/function.imagegif.php