Alejandro Decchi [EMAIL PROTECTED] wrote
Yes I have a debian server runing apache. Can you give me a link?
I could give you lots of links but which is most useful will depend
on your level of knowledge. I get the impression that you are not
experienced in Web development and so may not even
Yes i am a newbie in web design but i understand the concept of CGI. My
problem is that I do not know how to do a search based in binary
files.Forexample a user conect to my webpage and dicide to search
windows.iso he write in the textbox and put submit and must appear the
result to download the
Alejandro Decchi [EMAIL PROTECTED] wrote
Yes i am a newbie in web design but i understand the concept of CGI.
OK, I'll ignore that aspect for now.
My problem is that I do not know how to do a search based in binary
files.For example a user conect to my webpage and dicide to search
Hello Someone can help me how to search file in a directory. I need to do a
form where the user write the word to search and if the file was found the
user must could download the file making click in the link
Sorry my english
thz
Alex
___
Tutor
Alejandro Decchi [EMAIL PROTECTED] wrote
form where the user write the word to search
and if the file was found
Do you mean the word is the filename (use glob module)
or the word is inside the file (use os.walk)?
Amnd do you need an exact match or a wild card search.
The latter will use
The user put the word or the regular expresion in a textbox i need to do
when ther user press the buttom submit call the file for example search.py .
I need to do this search.py file to find the file looking for ther user. If
the file or files are found i want to the user can download the files
Alejandro Decchi [EMAIL PROTECTED] wrote
The user put the word or the regular expresion in a textbox i need
to do
when ther user press the buttom submit call the file for example
search.py .
I need to do this search.py file to find the file looking for ther
user.
Is the word the user
Is the word or part of the word that the user enters in the texbox .And this
word is the name of the file to be found
On 7/4/07, Alan Gauld [EMAIL PROTECTED] wrote:
Alejandro Decchi [EMAIL PROTECTED] wrote
The user put the word or the regular expresion in a textbox i need
to do
when
Alejandro Decchi [EMAIL PROTECTED] wrote
Is the word or part of the word that the user enters in the texbox .
And this word is the name of the file to be found
Ok, In that case use the glob function in the glob module.
It returns a list of all files that match a pattern:
import glob
files
perfect but can you give me a link to find a file in a directory.Because i
do not the function to search files in some directory. Can you give an
example :
On 7/4/07, Alan Gauld [EMAIL PROTECTED] wrote:
Alejandro Decchi [EMAIL PROTECTED] wrote
Is the word or part of the word that the user
Just set the current directory to the one you want to search using
os.chdir(myPath)
or pass a full path to glob:
glob.glob(/some/path/to/search/*.txt)
HTH,
Alan G.
Alejandro Decchi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
perfect but can you give me a link to find a file
Ok but i have this form:
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleDocumento sin tiacute;tulo/title
/head
body
form id=form1 name=form1 method=post action=/cgi-bin/search.py
labelstrong search/strong
input type=text name=textfield align=center /
/label
Alejandro Decchi [EMAIL PROTECTED] wrote
Ok but i have this form:
body
form id=form1 name=form1 method=post
action=/cgi-bin/search.py
OK, You didn't make it clear that you meant a CGI program,
I was assuming you meant a GUI program. That adds a whole
heap of extra complexity. A lot depends
Yes I have a debian server runing apache. Can you give me a link ? Because i
do not how to make the search and list the files found to download
On 7/4/07, Alan Gauld [EMAIL PROTECTED] wrote:
Alejandro Decchi [EMAIL PROTECTED] wrote
Ok but i have this form:
body
form id=form1 name=form1
14 matches
Mail list logo