JOEL LIPMAN Systems / Automation / AI

Knowledge base / Since 1999

Scripts, systems & field notes.

Practical solutions and technical notes from CRM platforms, workflow automation, APIs, databases and the systems around them.

Advanced search

129 entries / matching PHP

Clear filters
Joomla - How to preview module positions in a given template
Joomla

Joomla - How to preview module positions in a given template

I was asked "... how do you find out where the positions are, like USER 1 and TAB 4 etc..." To open a web-browser window or tab with this preview, type the following in the address bar after your website URL: http://www.yourdomainname.com/index.php?tp=1&template=thetemplatename where yourdomainname.com is your domain a...

Read note 21,290 hits
Search and Replace in a MySQL Database
MySQL

Search and Replace in a MySQL Database

Ok is it just me who does everything slowly and badly until someone comes along and says why are you doing it like that? My justification is that the job has to be done no matter what. If you've ever sat there with phpMyAdmin or a MySQL Administration Tool (like Navicat or SQLYog), and still there at night editing each...

Read note 16,991 hits
Increment a column in MySQL using the UPDATE query
MySQL

Increment a column in MySQL using the UPDATE query

Suppose you have a column in your table that you use as a counter (storing the value of the counter - eg. times an article has been displayed). Basically what I used to do is something similar to the following: SELECT counter_field_value FROM table1 WHERE column1='this_article' Add 1 to counter_field_value UPDATE table...

Read note 21,469 hits
Creating a Top 10 chart with less code
Personal Home Page

Creating a Top 10 chart with less code

I've decided to put something in here as it took me an age to find out how I could do it. This is when using a MySQL query within a PHP script. The process is used often to do a statistics table or top ten chart of your data (eg. movies, music, etc). My aim is to do the following: retrieve data from a table, count the...

Read note 27,357 hits
Outputting PHP files into different file formats
Personal Home Page

Outputting PHP files into different file formats

I'm beginning a list as I've just spent an age trying to get PHP output to create a text file. Then my client showed me how she then opens the text file in Excel, so I said we could get the script to do that instead.PHP to TXT header('Content-Type: text/plain; charset=utf-8'); header('Content-Disposition: attachment; f...

Read note 14,324 hits
Anti-Spam override for all submitted data
Joomla

Anti-Spam override for all submitted data

Are you getting a lot of spam, or junk messages sent via your Joomla site? I know certain components of Joomla let you put banned words but I know of even more that don't. If you find all your forms need extra plugins and captchas (such as JezRecaptcha), then the website security isn't amazing. I used to have Captcha o...

Read note 40,702 hits
After installing rokstories, get invalid argument 106
Joomla

After installing rokstories, get invalid argument 106

After I installed the rokstories module from www.rockettheme.com, if I clicked on one of the articles (rokstory), I would get a page with the article on it but with the following error (3x) above it: Warning: Invalid argument supplied for foreach() in /home/.../components/com_content/helpers/route.php on line 106 After...

Read note 25,085 hits
Change default order of weblinks
Joomla

Change default order of weblinks

It took a few google searches until I could find out how to change the default weblinks order. A lot of websites showed how to do this via the admin back-end panel in the advanced configuration... I can't see this panel, there is no advanced parameters under a weblinks category. The issue is that suppose a menuitem lin...

Read note 65,336 hits
Community Builder in Joomla Vulnerability
Joomla

Community Builder in Joomla Vulnerability

Malware Detected! Warning: Visiting this site may harm your computer! The website at .....ru appears to host malware - software that can hurt your computer or otherwise operate without your consent. Just viisting a site that hosts malware can infect your computer. For detailed information about the problems with this s...

Read note 48,239 hits

Working principle

Our Purpose

This site exists as a practical knowledge base built from real-world experience across systems, platforms, and technologies since 1999. Much of the content documents solutions, edge cases, and working patterns that were learned through investigation where documentation was incomplete or absent, and is shared to reduce the same friction for others.

27 Years in IT
1021 CRM clients
816 Site articles
30.0m+ Reads / hits

Knowledge base

Search notes

Find matching words in article titles and content.