Solved

open local files

Posted on 2009-04-03
5
173 Views
Last Modified: 2012-05-06
I had some batch files and some txt files in my computer....

Instead of going to those folders and opening them I need to open them or
click the batch files from a php form....

I mean I want to open an input.txt ...so that i will paste some input in it...
then I must link the batch files...

this i can do it manually but can I get an frontend where i can open the input file by clicking on link...
and use  batch file by clicking on another link..

is these things done by php..
0
Comment
Question by:shragi
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
garlix earned 500 total points
ID: 24063090
Sure you can.

Exec and System can be used to execute external programs. Exec runs a file, System runs a file and displays the output ofthe file.

Editing a batch file is quite easy too. You read it, display it in a textbox with a save-type button. Or somesuch :-)

If PHP is the most suitable for this, I do not know. You could look up PHP-cli and PHP-gtk to make a desktop application running PHP.
0
 
LVL 3

Expert Comment

by:garlix
ID: 24066017
Not exactly sure what you mean by "no proper support from members".

It's great that you solved your problems yourself! :-)
But to say noone tries is a bit unfair in my humble opinion.

Without any feedback it's a bit hard to know what you expected!
0
 

Author Comment

by:shragi
ID: 24066575
sorry quarlix.... it was my mistake...actually it was for the HTML question I typed that msg...but I pasted here... and ur sure...I cannot tell that no proper support from members...becoz... it was not even 24 hrs ...that I posted the question...

I am again saying that word SORRY
0
 
LVL 3

Expert Comment

by:garlix
ID: 24066631
Ah, Ok!

No worries. I just got a bit confused about your comment is all.

Did you get this problem solved then?
0
 

Author Comment

by:shragi
ID: 24069404
ya i got it myself...
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question