In the DCT's i want to verify whatever file (can be .dcr, image, pdf, .html etc) browsed or even the name of the file entered exists or not. Is there some way to check this. Any help will be appreciated.
if (-e "hello.txt"){ #proceed with your code}
In you example, a DCR, then you have to run a call server event. That will be a pain. If you can do it in the TPL, then you can use the perl -e flag. I am doing something similar with directories and making them if they do not exist.
..but it will be very helpful if some examples anyone can provide as in how to use callserver and extract parameters or items in DCT in CGI script...
I will like to thank you all for the replies...that is right i want to include some validation in DCT itself to verify if file exist....I got the process from your replies - is to use callserver method and use some cgi script..but it will be very helpful if some examples anyone can provide as in how to use callserver and extract parameters or items in DCT in CGI script...thanks in advance
Seriously, there's enough documentation on this and if you're versed in Perl, it should take you 20 minutes
I have this one myself. http://www.amazon.com/gp/product/0072129506/002-7502823-9472041?v=glance&n=283155