... // get seconds ago
$v_Seconds = strtotime('now') - strtotime($p_Date);
// set unit labels
$a_UnitLabels = array('year','month','week','day','hour','minute','second');
// set unit values
...
... logic and highlight any changes you may need to make.
1. First: the variables are in arrays
Well mostly. Simply because we'll be working with JSON data and this encodes/decodes easily into PHP ...
What?
This is an article documenting how to access ZohoCRM with API v2 using PHP and cURL. The first few functions are to manage OAuth v2 and generate the refresh and access tokens. The second snippet ...
... = today;
Day_Name = My_Date.toString("EEEE"); // returns "Monday"
Method #1:
We're going to populate two arrays / lists; retrieve the index value; and use this in the second array as follows:
// ...
... built-in functions of Zoho deluge.
Method #1:
Using a list/array, I'm going to check the date against the 3 exceptions to this rule (11th, 12th and 13th of each month):
// get the date (eg. 1, ...
... Strict Standards Issue: New Operator removed for PHP5+.
- Fixed Bug: Object without reference: Child object design converted to Object array.- Date Uploaded: Thu, 31st Oct 2013 3.0 - Fixed Bug: Version ...
Applies to:
TravelPort Universal API
PHP 4 or 5
cURL
What?
An article on how to resolve errors and setup a standard ping request using the TravelPort Universal API. This is to be achieved using ...
... load the data into an XML array and use the built-in PHP function: "json_encode".
How?
So here's what I tried and ended up with:
If your XML is UTF-8
This is the basic code and will work to ...
What?
A quick article on how to create a middleware script which accepts the values from a submitted HTML form and sends it to a server on another domain for processing. This applies to Linux Apache ...
... String link = null;
String date = null;
String desc = null;
List items = new ArrayList();
while (parser.next() != XmlPullParser.END_DOCUMENT) {
if ...
... array of jokes
Joke1:="I pretend to work here, work pretends to pay me."
Joke2:="He sets low personal standards and then consistently fails to achieve them."
Joke3:="If he were ...
Applies to:
Joomla CMS v3.2.3 (Joomla.org)
jComments v3.0.0 (JoomlaTune.com)
PlayThru v1.1.8 (AreYouAHuman.com)
What?
This article is a follow on from my article JComments 2.3 with PlayThru ...
... output
echo $author_name_disp;
A lot of repetition so lets reduce that a touch:
// default
$author_name_disp=$author_name;
// check and transform
$delimiters=array(' ', '.');
foreach($delimiters ...
Applies to:
Joomla CMS v2.5.11 (Joomla.org)
jComments v2.3.0 (JoomlaTune.com)
PlayThru v1.1.8 (AreYouAHuman.com)
What?
This article is a follow-up of my article JComments 2.3.0 with Google ReCaptcha ...
Applies to:
Joomla CMS v2.5.11 (Joomla.org)
jComments v2.3.0 (JoomlaTune.com)
What?
Posting this as it was rather rewarding to achieve and I hope will be of some use to others in the same boat. ...
What?
Somebody said I could pay to get an export list of my Joomla users. I said Joomla is a FREE OpenSource system, why?
Why?
I want to move a client's list of Joomla users to a new system which ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.