Email admin on script install Automatically

Posted By: Ian on Feb 01, 2015 in PHP, Snippets

Question OK i have a script i wrote which people can use on there sites as longs they link back to my site, but they nearly never do! I don’t want them to be forced to fill out anything as then they might not bother with my script but how can i increase the odds …

Continue Reading »

Click Through Rate script

Posted By: Ian on Feb 01, 2015 in PHP, Snippets

Question How does Banner Bar work out the Click Through Rate CTR for the banners on my site. Answer Demo

Continue Reading »

Version update checker script

Posted By: Ian on Jan 31, 2015 in PHP, Snippets

Question How can i get my script to check my site for updates? Answer The script below checks the local version number against the remote one and if the local is lower than the remote it shows the update link else just shows the current version number. <?php /* local script version */ define('version', '2.1.0'); …

Continue Reading »

Extract data from HTML to XML, import to Google Sheets

Posted By: Ian on Jan 30, 2015 in PHP, Snippets, XML

Question I use Google sheets as a daily menu system for residents in a home and it works great but now the good old EU Food Information for Consumers Regulation (1169/2011) means i have to be able to show whats in each of our dishes. Answer The “Top 14″ allergens according to them are Celery  …

Continue Reading »

What’s all this parent child thing about in XML?

Posted By: Ian on Jan 30, 2015 in XML

Question What’s all this parent child thing about in XML? Answer Here is the recipe.xml Tree structure shown as a flowchart which should help explain the basics.

Continue Reading »

Extract Text Node from parent ignoring duplicates

Posted By: Ian on Jan 30, 2015 in PHP, Snippets, XML

Question Each recipe in recipes.xml is in a category and i want to print a list of the category’s used without having lots of duplicates how can i do that? Answer Demo xtract-node-xml.php

Continue Reading »

Extract and split node by comma and save to new XML file

Posted By: Ian on Jan 30, 2015 in PHP, Snippets, XML

Question Using Extract specific xml data and save to new xml i can extract specific nodes but what if the text node is a CSV.  As some recipes can be in more than 1 category. Answer XML multi-category.xml Demo split-node-xml.php

Continue Reading »

Load HTML file from drop-down created from XML file

Posted By: Ian on Jan 30, 2015 in JavaScript, Snippets

Question How can i now load the HTML file selected from the Dynamically created drop-down. Answer Demo xml-select-html.php

Continue Reading »

Dynamic drop-down from XML (2 drop-downs 1 populates other)

Posted By: Ian on Jan 29, 2015 in JavaScript, Snippets

Question How can i use my XML file to populate two drop-downs where the 1st one defines whats displayed in the second? Answer Demo xml-miltiple-select.php

Continue Reading »

Extract specific XML data and save into new XML file

Posted By: Ian on Jan 29, 2015 in PHP, Snippets

Question Using Extract specific xml data and save to new xml i can extract specific nodes but what if the text node is a CSV.  As some recipes can be in more than 1 category. Answer XML multi-category.xml Demo split-node-xml.php

Continue Reading »

About This Site

Dreams are built from lines of code well it's true!
If you can dream it you can usually code it.

I have learned so much from other people on the Internet and this site is for me to give back some of what i have learned and hope people can now learn from me.
Have fun and surf safely,
Ian.J.Gough

protected by copyscape duplicate content check

Categories


Powered by Banner Bar 125