I have a page with afor an HMTL5 video player; I need to obtain its file size. Is it possible to check the size in MB of a video uploaded on the server from a? Does …
Tag: php
Execute PHP function with onclick
I am searching for a simple solution to call a PHP function only when a-tag is clicked. PHP: function removeday() { … } HTML: Delete
Moving from mysql to mysqli – problems
I have the following code: $query3 = “SELECT Office, COUNT(Office) As Tot_Part, (SELECT COUNT(Office) FROM trespondent WHERE completion_status= ‘Started’ OR completion_status = ‘Complete’) As …
How can I call a WordPress shortcode within a template?
There’s a plugin for the Contact us form. To activate the form, all you have to do is to place [CONTACT-US-FORM] in the page… My page is calling a page template. Is it possible to add the [CONTACT-US-FORM] shortcode in the PHP template? I tried it and it did not work. The WordPress page worked, bu…
With PHP, why does option selected not always work?
While I realize that this isn’t the most efficient bit of code, it will not work for August or September! I’m using PHP 5.4 and XHTML 1.0 Transitional. I’ve tested it in the lasted IE, Firefox and Google browsers. I’ve checked the code that is sent to the browsers and there isn’t…
Can I insert executable PHP code into Joomla custom HTML module?
if you open this Joomla website you can easy understand what I have to do: http://lnx.erusma.org As you can see at the bottom of the page there is a Custome HTML Joomla module named Get in touch This custom HTML module contains this simple HTML code that show an e-mail form: I have inserted this HTML code by …
How to set cron job url for codeigniter?
I am using Codeigniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in url. e.g. http://my-domain.com/…
Best practice multi language website
I’ve been struggling with this question for quite some months now, but I haven’t been in a situation that I needed to explore all possible options before. Right now, I feel like it’s time to get to know the possibilities and create my own personal preference to use in my upcoming projects. L…
PHP Type Hinting for a map (associative array) in NetBeans?
I’m trying to get advantage of NetBeans’ intelligent way of handling object types, so I’m hinting to every object’s type in comments. Problem is, I want to hint to an associative array of (string => …
Job exporting tables to file every 15 minutes and calling PHP script once done
I’ve been doing a lot of researching for a potential job where I will need to periodically (every 15 minutes) export some specific data from SAP and then import that data into a mySQL database on a …