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 want to get a PDF file, add a text to its footer or header save it back using PHP programming language.
Basically, I got a digital e-books library, I want to put a copyright text on each and every page of the pdf books.
Download the TCPDF Library and use the examples to learn
Tcpdf.org
tcpdf header and footer default
Change the values in de header with your own values and save them in a database or something and later get the values from your database
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 7 years ago.
Improve this question
I want something like Wordpress's system. I want to get header code from header.php so I will not have to edit all of the pages when I'm going to edit something.
You can never get the code because one the php page is render, it gets converted into HTML so you will always see html.
I understand, you need header component.
1)Create a file header.php (add navigation bar or logo or whatever you want).
2)Include it in other php files as include("header.php");
so all the pages will be using this one header.php file and you can modify it and the changes would get reflected all over the web app.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to print mysql database value in tabular format in PDF using php and I want to include header and footer as well on every page of PDF. The problem I face is every last row of the table in PDF is breaks and displays into two parts and the footer is display on another page. So is there any way to stop breaking of a table row which is just above the footer division and print it on another page???
My another question is if I want to give more than one page size in pdf then how can I do it???
You can use any of the below php scripts to generate dynamic PDF documents
FPDF
TCPDF
MPDF
DOMPDF
I have answered it by searching multiple previous stackoverflow answers. You can see them here Link1, Link2,..
You can use tcpdf http://www.tcpdf.org/ for this check the examples here http://www.tcpdf.org/examples.php . All the features required by you are available in this library
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 made an HMTL menu and I want to add it to the page using PHP(I have some HTML and some PHP files).
If I use:
include('menu.html');
there is always something that isn't right.
So, how can I add the HTML menu using PHP? The menu must be on top, and the same as it is in HTML.
Have a look at this question: Question about including html page in PHP
If you have problems with the .css because they are included with relative path you need to set the relative path "relative" to the .php file
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
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 want the admin can change the contents of the html page after successful login.
How can I show the contents of html page in an editable format fetching all the contents from the html page.
So that admin can modify contents and then save it to change the front end.
Thanks for your time.
The easiest thing to do is to set up an CMS upfront.
Anyway, you can try out this link http://www.techsling.com/2011/12/10-ways-to-convert-a-simple-htmlcss-website-into-a-content-management-system/. I personally have some experience with Surreal, but I would not recommend it.
If you really think of content management, you should go with a CMS (one of the big 3: Wordpress, Joomla, Drupal).
Hope that helps