May
24
Posted on 24-05-2008
Filed Under (PHP & Java Script) by Arun Bagul

Introduction –  I was looking for a PHP CLI (command line) script through which I can hide the user input details like password etc on windows platform. I didn’t find any script in php, which hide the password details while user giving input through command prompt. Then I got an idea to hide the password script using batch command. I tried to find out the batch script through which I can take the inputs and then pass the php script. Finally I found a wonderful batch script, which takes the input user name and password (hidden).

** Batch Script => input.bat

@echo off
cls
SET /P uname=Enter Username:
echo hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5>in.com
set /p password=Enter password :<nul
for /f “tokens=*” %%i in (‘in.com’) do set password=%%i
del in.com
echo.
c:\php\php.exe d:\php\test.php %uname% “%password%”
Pause

Execute the batch  file  on window system (DOS prompt) will take the inputs and give the inputs to php script. To execute batch file just double click on input.bat file…

Thank you,
Arun Bagul and Santhosh Tirunahari

Similar Posts:

Be Sociable, Share!
(2) Comments    Read More   

Comments

rjjm on 30 July, 2008 at 4:51 pm #

Useful. Thanks!


Pwhndvve on 9 August, 2008 at 10:25 pm #

Honi soit legate left buy cytotec dead hand held.


Post a Comment
Name:
Email:
Website:
Comments:


www.flickr.com
arunbagul's photos More of arunbagul's photos
Get Adobe Flash player
-->