Re: Checking file_exists()
| From: | Greg Donald | Date: | Wed, 15 Sep 2004 19:13:06 +0000 |
| Subject: | Re: Checking file_exists() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196778@lists.php.net to get a copy of this message | ||
On Wed, 15 Sep 2004 15:05:02 -0400, PHP Junkie <phpjunkie@mjimm.com> wrote:
> I have a simple file upload form, which uploads without a problem.
> Today I added the file_exists() function to my PHP code. And everything
> stopped working. What am I doing wrong here:
>
> <?php
> if($upload_file) {
> $db = mysql_connect("localhost","usr","pwd");
> mysql_select_db("imsafm",$db);
> $date = date("m-d-Y, D, H:i");
> $trauma = 'imsafm/$PHP_login/$img1_name';
Variables inside single quotes don't get evaluated.
--
Greg Donald
http://gdconsultants.com/
http://destiney.com/