By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,347 Members | 1,390 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,347 IT Pros & Developers. It's quick & easy.

user input?

P: n/a
Is there a way to get user input from a php script that doesn't have to do
with html? I would like to ask the user(me) to input a directory(preferably
in a gui way such as a folder selection dialog) to do some work with. Is
this possible when running the script directly on my comp(not off a
server(remote or local))?

The script is a management thing that I'd like to create to help generate
some html code. Essentially I want it to scan a dir(but don't want to hard
code it) and have it generate a list of links for the files in that
dir(which are images). Maybe even asking for a description for each.

Even if it was a little shell program to change the directory(sorta like
dos) would be much better than having to enter in the directory name by
hand.
Thanks,
Jon
Apr 24 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Message-ID: <_I*************@newssvr23.news.prodigy.netfrom Jon
Slaughter contained the following:
>Is there a way to get user input from a php script that doesn't have to do
with html? I would like to ask the user(me) to input a directory(preferably
in a gui way such as a folder selection dialog) to do some work with. Is
this possible when running the script directly on my comp(not off a
server(remote or local))?

The script is a management thing that I'd like to create to help generate
some html code. Essentially I want it to scan a dir(but don't want to hard
code it) and have it generate a list of links for the files in that
dir(which are images). Maybe even asking for a description for each.
PHP is server side scripting so there has to be a server involved. But
that can be a local server installed on your own machine.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Apr 25 '07 #2

P: n/a
"Geoff Berrow" <bl******@ckdog.co.ukwrote in message
news:lg********************************@4ax.com...
Message-ID: <_I*************@newssvr23.news.prodigy.netfrom Jon
Slaughter contained the following:
>>Is there a way to get user input from a php script that doesn't have to do
with html? I would like to ask the user(me) to input a
directory(preferably
in a gui way such as a folder selection dialog) to do some work with. Is
this possible when running the script directly on my comp(not off a
server(remote or local))?

The script is a management thing that I'd like to create to help generate
some html code. Essentially I want it to scan a dir(but don't want to hard
code it) and have it generate a list of links for the files in that
dir(which are images). Maybe even asking for a description for each.

PHP is server side scripting so there has to be a server involved. But
that can be a local server installed on your own machine.

A server is not required to use PHP CLI, but the command line interface is
pretty limited. ;)
--
Ra*********@gmail.com

"Good tea. Nice house." -- Worf
Apr 25 '07 #3

P: n/a

"Geoff Berrow" <bl******@ckdog.co.ukwrote in message
news:lg********************************@4ax.com...
Message-ID: <_I*************@newssvr23.news.prodigy.netfrom Jon
Slaughter contained the following:
>>Is there a way to get user input from a php script that doesn't have to do
with html? I would like to ask the user(me) to input a
directory(preferably
in a gui way such as a folder selection dialog) to do some work with. Is
this possible when running the script directly on my comp(not off a
server(remote or local))?

The script is a management thing that I'd like to create to help generate
some html code. Essentially I want it to scan a dir(but don't want to hard
code it) and have it generate a list of links for the files in that
dir(which are images). Maybe even asking for a description for each.

PHP is server side scripting so there has to be a server involved. But
that can be a local server installed on your own machine.
Um, not true.
Apr 25 '07 #4

P: n/a
Jon Slaughter wrote:
Is there a way to get user input from a php script that doesn't have to do
with html? I would like to ask the user(me) to input a directory(preferably
in a gui way such as a folder selection dialog) to do some work with. Is
this possible when running the script directly on my comp(not off a
server(remote or local))?

The script is a management thing that I'd like to create to help generate
some html code. Essentially I want it to scan a dir(but don't want to hard
code it) and have it generate a list of links for the files in that
dir(which are images). Maybe even asking for a description for each.

Even if it was a little shell program to change the directory(sorta like
dos) would be much better than having to enter in the directory name by
hand.
Thanks,
Jon

Hi, Jon,

You should be able to do it with the php-gtk package.

I haven't actually used this package, but I did investigate it for
another project and it looked ok.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 25 '07 #5

P: n/a

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:BI******************************@comcast.com. ..
Jon Slaughter wrote:
>Is there a way to get user input from a php script that doesn't have to
do with html? I would like to ask the user(me) to input a
directory(preferably in a gui way such as a folder selection dialog) to
do some work with. Is this possible when running the script directly on
my comp(not off a server(remote or local))?

The script is a management thing that I'd like to create to help generate
some html code. Essentially I want it to scan a dir(but don't want to
hard code it) and have it generate a list of links for the files in that
dir(which are images). Maybe even asking for a description for each.

Even if it was a little shell program to change the directory(sorta like
dos) would be much better than having to enter in the directory name by
hand.
Thanks,
Jon

Hi, Jon,

You should be able to do it with the php-gtk package.

I haven't actually used this package, but I did investigate it for another
project and it looked ok.
Ok, thanks... I'll take a look at it and see what I come up with.

Jon
Apr 25 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.