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 »

Populate drop-down list from XML

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

Question So now i have what i want how can i put that into a select tag? Answer Demo xml-select-tag.php

Continue Reading »

Help, if you need it and can’t ask for it, write it!

Posted By: Ian on Jan 29, 2015 in Blog
Last modified on December 6th, 2015 at 12:21 am,

Sometimes asking for help during the darkest times is very hard so if you feel you can’t speak to someone try writing to them. When i was feeling very depressed and suicidal i didn’t feel i could talk to my doctor so i wrote him a letter and booked an appointment and handed him a …

Continue Reading »

The CSS Box Model

Posted By: Ian on Mar 04, 2014 in CSS, Snippets
Last modified on January 29th, 2015 at 9:31 pm,

The Box Model Margin Box Border Box Padding Box Element Box All elements are essentially boxes and these boxes enable us to be precise when placing our elements relative to others on our page. REMEMBER! When setting height and width in CSS you MUST take into account the padding, border and margin to get the …

Continue Reading »

Validate URL and Email function using PHP Filters

Posted By: Ian on Mar 01, 2014 in PHP, Snippets
Last modified on January 29th, 2015 at 9:31 pm,

In PHP 5.2 filter functions come installed and enabled by default and today were going to use two of them, one to validate URLs and the other email addresses, replacing the need to use regular expressions like preg_match. For the purpose of this demonstration <?php $email = “ianjgough@aol.com”; $url = “http://ianjgough.com”;   function validate($type, $value) …

Continue Reading »

Remote Meta Tag and Title Script

Posted By: Ian on Feb 26, 2014 in PHP, Snippets
Last modified on January 29th, 2015 at 9:31 pm,

Today i share the basics of MetaTagGrabber.com (Which i own) which is a script for extracting the following from a remote webpage: – Using fopen is only good if it’s enabled in your php.ini else you should probably use CURL <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" …

Continue Reading »

Adding expiry date to database from drop-down list

Posted By: Ian on Feb 25, 2014 in PHP, Snippets
Last modified on January 29th, 2015 at 9:31 pm,

In Banner Bar you set the expiry date from a drop-down list and the issue is that the user has to see one thing and the database another. Before i did it a very long winded way but like most things i try to do on here now “Write Less Do More” so here is …

Continue Reading »

Reusable Drop-down with for loop function

Posted By: Ian on Feb 17, 2014 in PHP, Snippets
Last modified on January 29th, 2015 at 9:31 pm,

I had 5 drop-down lists that all involved numbers that were pulled from a database and originally if i wanted one to go from 1-20 I’d have to write it 20 times! That’s not good coding and takes longer when editing too so now i wrote this which does what i want and might be …

Continue Reading »

Dynamically load Scripts that are self finding

Posted By: Ian on Feb 16, 2014 in JQuery
Last modified on January 29th, 2015 at 9:31 pm,

Q. I’m making a widget and i want the end user to only have to insert 1 line into the webpage and my script to do the rest. A. OK well as a demonstration were going to create a simple widget (Not a true widget but you get the idea) that loads 1 JavaScript, 1 …

Continue Reading »

Ajax link tracker

Posted By: Ian on Feb 15, 2014 in JQuery
Last modified on January 29th, 2015 at 9:31 pm,

Q. How can i record all the external links clicked on my site so i can see where they are when they click on the link, where they came from before and where there going? A. Add the script below to your pages and the information will be sent too count.php for you to manipulate …

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