Monthly Archives: February 2014

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 »

Get Location of Currently Running Script

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

Do you need to get the URL or folder location of the currently executing script? Here’s how i did it! Why would you need to do this? Well if you have a script you distribute which is setup to dynamically load all it’s CSS and other components the location to each of these will need …

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