scriptygoddess

Archive for the ‘Scripts’ Category

I needed to grab a (CSV) file via FTP and import it into a database. The part that I thought would be the hardest (the FTP part) was actually very simple. Once again, PHP saves the day with incredibly powerful built in functionality. Here is the simple code that will connect to an FTP server […]

22 Oct, 2003

Skinnable Comment Pop Ups

Posted by: Jennifer In: Script snippet

Guest authored by
Sphinx – pixelsphinx.com

The point of this script-snippet is so you can set up two hierarchies of categories. So there's a main category, and a few "sub-categories" below it. An example of this is on Christine's Pixelog site, on her album page. This differs from the way MT has "Primary" and "Secondary" categories in that in mine, the […]

17 Sep, 2003

Basic MySQL connection and query with PHP

Posted by: Jennifer In: Script snippet

I use this almost on a daily basis, and yet I can't commit it to memory. So I don't have to go searching for it each time I need to write it… $databaseName = "YOURDATABASENAME"; $dbconnection = mysql_connect("localhost", "DATABASE-USERNAME", "DATABASE-PASSWORD") or die ('I can?t connect to the database.'); mysql_select_db($databaseName,$dbconnection); $value = "SOMEVALUE"; $query = sprintf("SELECT […]

09 Sep, 2003

Date Time

Posted by: Jennifer In: Script snippet

Just wanted to store some code I use a lot and am tired of looking up 😉 In some of the scripts I work on, I create a field for a timestamp. For that field I insert the PHP value: time() When recalling that value, it's just an ugly looking UNIX timestamp, so to format […]

Comments Off on Date Time

Guest authored by
Patricia – lunanina.com/musings/

25 Aug, 2003

Simple Javascript clock

Posted by: Jennifer In: Scripts

Guest Authored by
Deltus – scratchingtheitch.com

12 Aug, 2003

"Hi" Script

Posted by: Jennifer In: Scripts

New script for you! This one will allow you to put a form on your site that takes short "comments" from your readers not neccessarily related to any specific post. You can also display the last 10(or any number) "hi"s left behind. The idea behind this script was based on my own actions – Many […]

28 Jul, 2003

blogroll in columns

Posted by: Jennifer In: Scripts

Guest Authored by
Theresa – dandelionwine.org

16 Jul, 2003

Get an email when Google visits

Posted by: Jennifer In: Script snippet

Guest authored by
Jayant Kumar Gandhi – wirez.f2o.org/coffee-house/


Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements