Skip to content

Category Archives: PHP

Manually Upgrade PHP on GoDaddy

13-Mar-14

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

source

PHP – Add and Remove variables from URL String

04-Jan-13

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

source

PHP – Resolve CDN Province from Postal Code

17-Dec-12

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

source

PHP – Export to Excel with jQuery

27-Apr-12

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

Note that targeted element is the DIV around the table. sources vary… oops.

PHP – String into $variable name

29-Mar-12

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

nice to have if you have predefined variables and a $_GET or $_POST to discern which to choose instead of a switch. source

PHP – Netfirms $_SESSION

13-Mar-12

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

NetFirms are one of the hosts who do not have sessions fully configured. You can find information on how to configure PHP on NetFirms here: http://www2.netfirms.com/knowledgebase/beta/article.bml?ArticleID=1290 you need to set your sessions.save_path as described in that document. source

Facebook – app_data

10-Mar-12

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

$request = parse_signed_request($_POST[‘signed_request’]); if ($request[‘app_data’]) { echo $request[‘app_data’]; } source fb dev notes

PHP – Search Words & Phrases

20-Sep-11

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

The result will be: Array ( [0] => apple [1] => bear [2] => Tom Cruise [3] => or [4] => Mickey Mouse [5] => another [6] => word ) 1. Accepted delimiters: white spaces (space, tab, new line etc.) and commas. 2. You can use either simple (‘) or double (“) quotes for expressions […]

Cross-Domain JSON via Local PHP

02-May-11

Warning: Use of undefined constant gad_content_tag_filter_replace - assumed 'gad_content_tag_filter_replace' (this will throw an Error in a future version of PHP) in /home/surfer_u/labs.andrewu.net/wp-content/plugins/web-ninja-google-analytics/webninja_ga.php on line 1813

source