Send A Message

If you have a question or comment, drop me a line and I'll be
sure to get back to you. I'm always available to answer any
questions you have regarding your website.

Full Name

Email Address

What can I help you with?


Standalone PHP Apps in Windows

November 3, 2010 at 8:56 pm | PHP, Windows | No comment

If you want to make simple standalone command-line apps in Windows using PHP, go download the Bambalam PHP EXE Compiler/Embedder. It can’t get much simpler.

Write your code, run compile.bat, and Bambalam! you’ve got you app.

For using command-line parameters, check out these variables:

$_SERVER['argc']; // number of arguments
$_SERVER['argv']; // array of arguments

How to quickly open a webpage in all browsers

October 8, 2010 at 5:19 pm | Scripts, Windows | No comment

While developing a website you should routinely check to make sure your pages are working properly in many major browsers.  This is a DOS Batch script that will let you open a specific page in all your browsers with a single command.

Source

@ECHO OFF
IF "%1"=="" GOTO Continue

start iexplore %1
start firefox %1
start chrome %1
start safari %1

:Continue

Installation

Open a text editor and save the above code to a file in your Windows directory.

C:\WINDOWS\browsertest.bat

Usage

Run the script with the URL you want to test as the 1st parameter.

Click on Start -> Run and enter the following command:

browsertest http://www.danbeland.com

Reset Windows Networking

May 5, 2009 at 11:40 am | Windows | No comment

When all else fails and your Windows network just won’t behave, nuke it!

Open up the Console (Start -> Run: cmd [Enter]) and issue the following 2 commands.

Reset WINSOCK entries to installation defaults:

netsh winsock reset catalog

Reset TCP/IP stack to installation defaults:

netsh int ip reset [log_file_name]