Skip to content

PHP: stream remote pdf to client browser

there’s a pdf generated on an external service and I would like to stream the pdf to the browser in my php server while streaming to client so that I don’t need to download the pdf from the remote file and then start initializing download. I would just have the file immediately download or stream …

Getting an error using constants

I have a lot of pages, all of which require the file characters.php. This file contains constants which define many things in my website. They are defined like this, for example: const $humanHEALTH = …

Build documentation from PHP code

I heard that the .NET manual was built from code and the most important parts have manually been improved later. Googleing has not turned up with anything so far. Most of the stuff I found wore …

PHPExcel auto size column width

I’m trying to auto size the columns of my sheet. I’m writing the file and in the end I try to resize all of my columns. // Add some data $objPHPExcel->setActiveSheetIndex(0) ->…

I just can’t destroy a session in php

When I logout by destroying the session and start another one it always shows me the first session info I started $_SESSION[‘username’]; What I mean here is that : I started a session the first time I logged with this username –> AAAAAA And destroyed the session using the file logout.php …

Parsing Wikipedia Page tables issue

Hi I’m trying to parse a Wikipedia document in which there is a table called “infobox biota” with this structure. I’m trying to get the following table data and classes of the following …

PHP date format /Date(1365004652303-0500)/

I am calling an API from where I am getting date /Date(1365004652303-0500)/, I don’t understand what format this is. How is this date format called? I was not sure what to google for such type of format. Can anyone help me out in getting this date in Y-m-d H:i:s format? The API I am calling is on .NET s…