or not.
Andy
Pooya Eslami wrote:
I put this in the body of an html file:
?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != . $file != .. eregi('\.html$', $file)) {
echo lia href=\$file\font color=\#CC\$file
Hi,
I want to write a simple script that looks for all the files with a common
name and show them, like all the .mp3 files or all the .doc files. How do I
go about it?
Thank you,
-Pooya
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
But how do I get all the .mp3 files? can I use *.mp3? and how ?
Matt Matijevich [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
http://www.php.net/readdir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That is exactly my question! how do I look for a .mp3 file?!
I tried
if ($file != . $file != .. $file==*.mp3)
but it doesn't work!
Matt Matijevich [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
on that page ther is examples
?php
if ($handle = opendir('.')) {
while (false
Thank you Robert.
Robert Cummings [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sat, 2004-04-17 at 12:35, Pooya Eslami wrote:
That is exactly my question! how do I look for a .mp3 file?!
I tried
if ($file != . $file != .. $file==*.mp3)
but it doesn't work!
if( eregi
If I put the following script in a .php file it would work but if I put it
in an .html file doesn't work, why? script tag is only used in .html file.
script language = php
echo ul;
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != . $file != ..
How do I do that? I don't have a webserver, it is hosted by a hosting
company.
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Pooya Eslami wrote:
If I put the following script in a .php file it would work but if I put
it
in an .html file doesn't work, why? script
I took out the scrip tags and put in ?php in the beginning and ? at the
end, but it returns this:
$file
; } } closedir($handle); } echo
; ?
Any ideas how to fix this?
Daniel Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I should have also said:
Because it's missing the
I took out the scrip tags and put in ?php in the beginning and ? at the
end, but it returns this:
$file
; } } closedir($handle); } echo
; ?
Any ideas how to fix this?
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Daniel Clark wrote:
I should have also said:
I put this in the body of an html file:
?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != . $file != .. eregi('\.html$', $file)) {
echo lia href=\$file\font color=\#CC\$file/
font/a/libr;
}
}
closedir($handle);
Hi,
I want to write a php script for handling the username and password of users
on my website. What strategies are used for password protected pages? I
don't quite know where to start!
One strategy that I had in mind was to have a folder for each user and
access it via the user name and password
WS FTP is not bad.you cand download the LE version for free here: (the last
one at the end of the page!)
http://www.ipswitch.com/downloads/index.html
-Pooya
Nathan McIntyre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello!
I am new both to PHP and web dev, and I am wondering
I need to know what is the most secure and reliable way to put permissions
on a .php file.
I usually put it as rw-r-r, is this good or is there a better way of
arranging the permissions?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need to know what is the most secure and reliable way to put
permissions
on a .php file.
I usually put it as rw-r-r, is this good or is there a better way of
arranging the permissions?
Depends on your environment. I usually have mine set up as rw-rw
(directories as rwxrwx---)
Hi, I'm new to php and this newsletter. I have a form on my webpage and a
php file to email it to me but the contents of the text area are not emailed
to me. Can anyone help me with this?
here is the code for my html and php files:
html
headtitleTest/title/head
body
form action=textareamail.php
Well the problem is not that it won't get executed, its that every thing
will be sent except the message in the textarea! subject, to and from are
sent fine
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
16 matches
Mail list logo