Sagewire Logo

PHP Filename Search - Possible?

2 Message(s) by 2 Author(s) originally posted in php language


From: Peter Date:   Tuesday, October 23, 2007
Hi

I have a directory of pdf file s

13344.pdf
21488.pdf
etc

Users want to search for a particular pdf file and have that displayed to
them.

ie user searches for: 13344Is it possible for a PHP script on its own to search a folder based on file
name and retrieve the pdf file or will I need to add the files name to a
mysql table for php to lookup?

TIA for any advice/opinion anyone can give


From: Hadanite Marasek Date:   Tuesday, October 23, 2007
Is it possible for a PHP script on its own to search a folder based on file
name and retrieve the pdf file or will I need to add the files name to a
mysql table for php to lookup?
TIA for any advice/opinion anyone can give



You could take a look at glob, that should help to solve your problem:

http://de3.php.net/manual/en/function.glob.php

--
Mein Zeugs:
http://www.hadanite-marasek.de/classes.php
http://www.objektivsuche.de/
Ansonsten:
http://www.php-faq.de/q/q-newsgroup-wie-helfen.html



Next Message: Sessions 102


Blogs related to PHP Filename Search - Possible?

generate health insurance leads
... generate image map code generate image php generate images generate images from text generate images on the fly generate images php generate import library msvc generate income generate income farm generate income from home generate ...

I am building hosting a web server technically a test server I ...
http://ubuntuforums.org/showthread.php?t=496876&highlight=warcraft. ziggy, what you want is gnome-desktop-applets, so click applications — add/remove and search for gdesklets. questions — I’m trying to get mail-notification working ...

PHP And MySQL Interview Questions
A:13 As of version 4.3.0, PHP supports a new SAPI type (Server Application Programming Interface) named CLI which means Command Line Interface. Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name ...

a basic FreeBSD server install part 2 - Apache, PHP, and MySQL
To the end of the DirectoryIndex directive, add “index.php” so that it looks like “DirectoryIndex index.html index.php“. Restart Apache with “apachectl restart” on the command line and Apache will now search for index.php as well as ...

Php/Mysql Image Problem
  • Introduction
  • About Us
  • SignUp
  • Main Page
  • Search

    ...

    Support :: RE: Need Regular Expressions help
    As Stefan said, the way BRU is set up now it won't do a global search and replace. I'll get to that in a minute. In order to work around that we need to cycle through the filenames replacing one dot each time. ...


    Programming | Sports | Autos

    copyright 2006
    Valid XHTML 1.0 Transitional