Can we create a word template using php? [closed] - php

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 have create a word application to automate the word document editing.Is it possible to create a word template using php

I'd recommend checking out phpLiveDocx: http://www.phplivedocx.org/
And some other questions on SO that might be worth reading:
Use PHP to create a DOC file on a Unix Box based on an HTML webform selection
Create Word Document using PHP in Linux
Reading/Writing a MS Word file in PHP
create word doc file from linux command line

Related

Merge CSV files on GCS using PHP [closed]

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');

How to find a word inside a PDF from PHP [closed]

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 5 years ago.
Improve this question
I would like to locate in which page(s) a word is located inside a pdf programatically. My application runs on php over linux.
Is it readable with a text editor?
If it is, you can loop the content and find the string with a regular expression. If the string Is variable and you are the one who wrote the file, try to put some fixed string before.
In some cases under Linux we use pdftops to convert the PDF in a human readable format, find the string looping the content file, and back to PDF with pstopdf.

PHP Generating .zpl files [closed]

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)

PHP $_FILES file details [closed]

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
It might be a strange question but I am asked if it is possible and I don't know the answer.
In Windows it is possible to add details to a file, like an author and labels etc.
Is there any way in PHP I can read these details when this file is uploaded to the server (our client would like to use it to tag files on their server).
That information you mention it's called metadata.
You can use this php library to do the trick.
http://getid3.sourceforge.net/
Out of the box functionality doesn't pass this information when uploading files using PHP.
The documentation for $_FILES shows all of the details you can get about the file

How Retrive A Piece Of Text From A Source Website With PHP? [closed]

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 have to get something that has been shared on a website and it changes every day. but i dont know how to do this. how can i do this?
You could download the exact page you're after using file_get_contents
$web = file_get_contents("http://google.com")
You'd then have to strip out whatever it is you want from the rest of the source code on the website. That can be done by using strpos or stripos (ipos being case insensitive) to find its location, and then using substr to extract that part of the string.

Categories