Re: [PHP] why doesn't this work ?

2004-04-18 Thread Pooya Eslami
thing.php, check and see if it returns a table full > of information or not. > > Andy > > Pooya Eslami wrote: > > I put this in the body of an html file: > > > > > if ($handle = opendir('.')) { > >while (false !== ($file = readdir($handl

Re: [PHP] why doesn't this work ?

2004-04-17 Thread Pooya Eslami
I put this in the body of an html file: $file"; } } closedir($handle); } echo ""; ?> the output page contains : $file "; } } closedir($handle); } echo " "; ?> I don't understand why. "Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can you post the cod

Re: [PHP] why doesn't this work ?

2004-04-17 Thread Pooya Eslami
I took out the scrip tags and put in 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: > > > > Because it'

Re: [PHP] why doesn't this work ?

2004-04-17 Thread Pooya Eslami
I took out the scrip tags and put in 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 tags, the web ser

Re: [PHP] why doesn't this work ?

2004-04-17 Thread Pooya Eslami
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 > >

[PHP] why doesn't this work ?

2004-04-17 Thread Pooya Eslami
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. echo "
    "; if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && eregi('\.h

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
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 != "."

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
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 > > if ($handle = opendir('.')) { >whi

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
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

[PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
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

[PHP] Help with PPP Strategies

2004-03-07 Thread Pooya Eslami
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 b

[PHP] Re: ftp software

2004-02-22 Thread Pooya Eslami
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 wonde

Re: [PHP] What should the permissions on a PHP file be?

2004-02-03 Thread Pooya Eslami
> > 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 a

[PHP] What should the permissions on a PHP file be?

2004-02-03 Thread Pooya Eslami
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

RE: [PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
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

[PHP] Help with mail() function

2004-02-02 Thread Pooya Eslami
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: Test Comments: -- PHP General Mailing List (http:/