How do you convert 00:00:00 to hours, minutes, seconds in PH
I have video durations stored in HH:MM:SS format. I’d like to display it as HH hours, MM minutes, SS seconds. It shouldn’t display hours if it’s less than 1.What would be the best...
View ArticleWhat are the security concerns of evaluating user code in PH
I am wondering what security concerns there are to implementing a PHP evaluator like this:
View ArticleWhat’s the difference between echo, print, and print_r in PH
I use echo and print_r much, and almost never use print.I feel echo is a macro, and print_r is an alias of var_dump.But that’s not the standard way to explain the differences.……………………………… print and...
View ArticleApache/PHP: Anyway to retrieve the ServerName setting via PH
I have an Apache virtual host that looks like this: ServerName host1.example.com ServerAlias host2.example.com DocumentRoot /srv/web/host1.example.com/pubI have the following...
View ArticleApache/PHP: Anyway to retrieve the ServerName setting via PH
I have an Apache virtual host that looks like this: ServerName host1.example.com ServerAlias host2.example.com DocumentRoot /srv/web/host1.example.com/pubI have the following...
View ArticleAfter submitting how can I pass JS variables to following PH
After a user fills his address in a text field and hits the submit button the address is sent to google maps by javascript which then receives back the coordinates of the address. I then want to pass...
View ArticleWhere will you implement pagination in SOA application in PH
I’ve a application which Services to retrieve object from Doctrine 2 repositories.I’m used to Zend_Paginator, and, well I know that there is adapter for it.However, I’m wondering where and how should I...
View ArticleHow can I download, then delete a file on my website with PH
I generate a *.csv file with PHP and it works great. The problem is, it contains a bunch of sensitive data. I’ve done my permissions very carefully, so you can’t get to the download link or generate...
View ArticleHow do you specify the filename for errors with eval() in PH
When calling eval in Ruby you can specify a filename to display in errors to make it easier to see which block of code passed to eval caused a problem. In PHP eval only seems to take one argument. Is...
View ArticleIs there an existing CodeIgniter helper/library that uses PH
Does anyone know of an existing CodeIgniter (CI 2.0) Helper (or Library) that I can use to help with date and time formatting for views? Maybe something that uses the PHP5 DateTime class?Most of our...
View ArticleSave An Array From SWF and Store Using Actionscript 3 and PH
I have an AS3 project that takes user inputs (basically like a multiple choice test) and saves the these inputs in an array. I need to save the array to a text file so it can be reloaded when the app...
View Article