I used a slight different version where I first set a variable containing the file location info as follows:
<?php $filename = APP . '/webroot/files/' . $dance['Dance']['id'] . '.mp4';
if (file_exists($filename)) {...
I don't understand exactly what APP means other than that it must be somesort of internal CakePHP command to get the first part of the download file name, all the way up to the /app folder, and then we can give the rest of the information needed to see if the file exists.
On Wednesday, 5 September 2007 02:34:46 UTC-6, Anna P wrote:
Thank you!
if(file_exists(IMAGES_DIR. 'upload' . DS . 'filename')) worked for
me.
Thank you once again:-))
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment