Alright then, problem solved! Thanks so much.. this is fabulous.
End result:
alias info as above
$fp="1001.pdf";
if (file_exists('d:/rof/'.$fp)) echo "<a href='http://ipaddy/rofile/".$fp."' target='new'>";
Again, thank you!
Search found 4 matches
- Tue Jun 10, 2008 9:25 pm
- Forum: PHP - Code
- Topic: PHP function (file_exists) with mapped drive
- Replies: 6
- Views: 2272
- Tue Jun 10, 2008 7:07 pm
- Forum: PHP - Code
- Topic: PHP function (file_exists) with mapped drive
- Replies: 6
- Views: 2272
Re: PHP function (file_exists) with mapped drive
I am using the following alias: Alias /rofile/ "d:/rof/" <Directory "d:/rof"> Options FollowSymLinks Indexes Includes AllowOverride All Order allow,deny Allow from all </Directory> Then I am trying access a file as follows and create a link to the file: $fp="rofile/1001.pdf&...
- Tue Jun 10, 2008 5:56 pm
- Forum: PHP - Code
- Topic: PHP function (file_exists) with mapped drive
- Replies: 6
- Views: 2272
Re: PHP function (file_exists) with mapped drive
Guess I am embarassed to say, I am not sure I know how to test that. I also failed to mention that this is being done in a windows environment.
- Tue Jun 10, 2008 5:38 pm
- Forum: PHP - Code
- Topic: PHP function (file_exists) with mapped drive
- Replies: 6
- Views: 2272
PHP function (file_exists) with mapped drive
I have been trying unsuccesfully to use php functions like file_exists with a folder that has been defined through apache alias. I can do a localhost/folder and see the contents of the folder, but I have not been able to make php see the folder. I must be missing something here. Any help?