Tag php

me@grafxflow

PHP convert stdClass() object into JSON data


I recently had a problem that I had to convert an stdClass() object into a JSON data using php. The reason being that jQuery could only read the JSON.
me@grafxflow

Pass email in CodeIgniter url with jQuery and php


Sometimes when trying to pass characters in a CodeIgniter url it causes the error - 'The URI you submitted has disallowed characters.' Here is my fix.
me@grafxflow

Reset cookies expiry date is not working in php


Recently I was trying to unset a cookie by resetting its expiry date back an hour. But for some reason it would not work. But this is the fix I used.
me@grafxflow

Hide google analytics on preview posts/pages


Here is how to hide google analytics code on the 'footer.php' file in WordPress, so it stops appearing when previewing the posts and pages in admin.
me@grafxflow

Add widget to header in WordPress


If you want to add a widget to your WordPress theme header and in your admin (Appearance -> Widgets) then this is the php code to use.
me@grafxflow

jQuery datepicker disable dates


Here is a nifty little script for disabling dates using jQuerys datepicker. Plus a script in php to output the date range.
me@grafxflow

Call CodeIgniter MySQL query inside a helper file


This is a short snippet of php code if you want to use a CodeIgniter database query inside a helper file/function: application/helpers/. Very easy to use.
me@grafxflow

Should we be using CodeIgniter?


Are you wondering if it's a steep learning curve for CodeIgniter... I suspect It's probably very similar to what you already coding in php classes.
me@grafxflow

Passing data between jQuery and PHP


Here is a basic example of passing form data to a PHP file via jQuery and then passing data back to jQuery from the PHP file via an ajax style script.
me@grafxflow

PHP code for outputting twitter RSS feed


A PHP script for a twitter RSS feed. It allow you to backup the RSS feed as an xml file on the server plus schedule backups and number of feeds to output.
me@grafxflow

Change number of products per row on search results page


The problem I had was to change the number of products on each row on the search results page from 4 to 3. I was also using version 1.4.x of OpenCart.
me@grafxflow

How to remove the Joomla Generator Meta Tag


When doing a Joomla website you may notice by default it adds its own 'Joomla' meta name generator code in the html. Here is how to hide it with some code.