Tags:

Convert time in HH:MM:SS format to seconds only?


How to turn time in format HH:MM:SS into a flat seconds number? P.S. Time could be sometimes in format MM:SS only.

Convert SVG image to PNG with PHP

Tags: , , , ,


I’m working on a web project that involves a dynamically generated map of the US coloring different states based on a set of data. This SVG file gives me a good blank map of the US and is very easy …

Tags: pdf php

Merge PDF files with PHP [closed]

Tags: ,


My concept is – there are 10 pdf files in a website. User can select some pdf files and then select merge to create a single pdf file which contains the selected pages. How can i do this with php?

How to enable gzip?

Tags: , , ,


I have found a couple of tutorials on how to enable gzip, but nothing seems to be working for me, so my question is how do i enable gzip. I am on a shared Dreamhost hosting server, It is running PHP …

Formatting Phone Numbers in PHP

Tags: ,


I am working on an SMS app and need to be able to convert the sender’s phone number from +11234567890 to 123-456-7890 so it can be compared to records in a MySQL database. The numbers are stored in …

Tags: php

Why is PHP considered to be the easiest web programming language to learn? [closed]

Tags:


It is widely believed that PHP is the easiest programming language to learn for a beginner. The argument goes that PHP is the easiest language to use for getting a quick prototype up-and-running. Why …

Tags: php tcpdf

tcpdf imagebox and cropping

Tags: ,


I would like to add a ‘imagebox’ a box which contains the image and crops exceeding image value that is outside of this box. something like this: I am not sure on how to do this if it’s even possible….

Tags: fpdf pdf php web

add existing pdfs to fpdf

Tags: , , ,


Is there any function that I could call in order to include an existing pdf in my fpdf file? For example $pdf->AddPage(from file example.pdf); something like that? is it posible?

Tags: php

How can I format the number for only showing 1 decimal place in php?

Tags:


Does any one know how can I format the number and limited it to only show 1 decimal place in php? Example: How can I format the number 2.10 to 2.1 in php?

Show more/less without stripping Html tags in JavaScript/jQuery

Tags: , , , ,


I want to implement readmore/less feature. i.e I will be having html content and I am going to show first few characters from that content and there will be a read more link in front of it. I am …