Web developers have the unique job of trying to be a mechanic, a builder, and artist and a project manager. This is a small set of tools designed to make that job just a tiny bit easier. Targeted towards LAMP (PHP & MySQL) developers, this is just a useful site to have bookmarked. We update this once in a while so come back. davismotorservice.com - Auto Repair, Service and Restoration and additional services

wixip.com

developer tools

this is a simple 1-page website which provides quick access to a few much-needed features for developers. this was created as a debugging and development tool for our own scripts and crons. the idea is to get some basic pieces of information accessible from one location.

table of contents

quick info [top]

your IP address:
     quick php test: 

your User-Agent is: (your browser's identification string)


your session ID for this website is: (stored in your browser's cookies)


current server time:
          (that last one is the unix timestamp)

quick info url's [top]

a great way to get some quick information about your server
can use via your browser, in nightly debugging scripts, or on the command line
if you abuse these links to the point that it affects our server, bandwidth, or anything else, we will ban your ip

general
description example url preview
IP address only:123.45.678.91open
Browser's User-Agent Only:Mozilla/5.0......open
hello:
for testing if a script can get to the outside world (ie. php.ini:allow_url_fopen)
helloopen
date/time functions
Date & Time: 2012-05-18 13:12:04 -07:00open
php: date("Y-m-d H:i:s P")
Date & Time (system - short):
2012 05 18 13 12 04 PDTopen
php: date("Y m d H i s T"), quick extraction:
list($year, $month, $day, $hour, $minute, $second, $timezoneAbbr) = explode(" ", $str); $timezone = 'PST';
Date & Time (system - long):
2012 05 18 13 12 04 Friday 5 138 PDT -07:00 1open
php: date("Y m d H i s l w z T P I"), quick extraction:
list($year, $month, $day, $hour, $minute, $second, $weekdayName, $dayOfWeek, $dayOfYear, $timezoneAbbr, $timzeoneOffset, $isDST) = explode(" ", $str); $timezone = 'PST';
Unix Timestamp: php: time()1337371924open
all
All (field names):open
All (no field names): - easy to process using explode()open



quick copy & paste code snippets [top]

linux: [top] [command line]:
or
[command line]:
php: [top] we use this one the most


from the command line


error logging:

also try "php -d display_errors=1 -l scriptname.php" if you are having logging/error reporting issues

htaccess: [top] short:


ip restriction:


HTTP user-password restriction:

(linux command to create password file - might need to specify"/usr/bin/htpasswd")


deny all:

crontab: [top] schedule settings order:
minute
hour
month day
month
week day

syntax:
* * * * * [user] command [extras]

most basic form:
* * * * * command


how we usually use it:
* * * * * root command >>/path/to/log/file.txt 2>&1

disable e-mail:
>/dev/null 2>&1

IF the scripts are stable and do not need a long history of debugging logs, or if you just need to get a handle on log file size, use > instead of >>



every minute:


every 5 minutes:


every hour:


every other hour:


every sunday morning:


1st @12:01am:


1st and 15th @1:00am:


run as root (runs php):


run as root (runs script itself, useful or "ps -A"):



asp .NET
coldfusion
python
java
vbscript
oracle
mssql
etc
Visit www.php.net today!
(also check out www.mysql.com if that's not obvious!)



quick urls for other sites and tools [top]

misc tools: [top] THESE TOOLS ARE UNDER DEVELOPMENT

Enter a domain name or search engine query: