rensell
August 7th, 2010, 05:48 PM
Hello everyone. I'm currently attempting to make my customer invoices available online. I have internal software that my employees use that list multiple documents for customers, so I have invoices in pdf files.
For testing, I have created an Invoices folder on my Apache directory, and used this link (http://www.phpeasystep.com/phptu/6.html) to create a simple login script that I will use to verify what customer is logging in - i.e. Username will be their last name and password will be there customer number or such. I am using a php file that will list all files in my Invoices directory, but was wondering how to go about listing only files that have the current Username in the file name.
To help illustrate, I have:
Invoice
--Smith, John - Original invoice.pdf
--Smith, John - Final Invoice.pdf
--Walter, Bill - Final Invoice.pdf
and I would like a way to send the "Smith" or "Walter" from the login script and list only files that start with that string. I can do this in VB.NET for our program, but I'm new at php - so if anyone has a good online learning references; I'd be grateful to learn.
Thanks,
-R
For testing, I have created an Invoices folder on my Apache directory, and used this link (http://www.phpeasystep.com/phptu/6.html) to create a simple login script that I will use to verify what customer is logging in - i.e. Username will be their last name and password will be there customer number or such. I am using a php file that will list all files in my Invoices directory, but was wondering how to go about listing only files that have the current Username in the file name.
To help illustrate, I have:
Invoice
--Smith, John - Original invoice.pdf
--Smith, John - Final Invoice.pdf
--Walter, Bill - Final Invoice.pdf
and I would like a way to send the "Smith" or "Walter" from the login script and list only files that start with that string. I can do this in VB.NET for our program, but I'm new at php - so if anyone has a good online learning references; I'd be grateful to learn.
Thanks,
-R