Skip to content

Instantly share code, notes, and snippets.

@davidphasson
Created June 12, 2009 23:27
Show Gist options
  • Select an option

  • Save davidphasson/129002 to your computer and use it in GitHub Desktop.

Select an option

Save davidphasson/129002 to your computer and use it in GitHub Desktop.

Revisions

  1. funtaff created this gist Jun 12, 2009.
    17 changes: 17 additions & 0 deletions prompt_logic.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <?php

    $fp = fopen('php://stdin', 'r');

    echo "\nEnter the URL for the image file you want to flash [enter for default]:";

    $url = chop(fgets($fp));

    if(! $url)
    {
    $url = "http://cm.northshoresoftware.com/funtaff/GENERIC.image";
    echo "\nUsing default: \"$url\"\n";
    }

    echo "$url\n";

    ?>