jacl3 Posted August 7, 2007 Share Posted August 7, 2007 I know it is possible to read the contents of a file. But what I wanted to do was be able to read the Summary Contents of a file (summary, category, keywords, comments etc) and I was wondering if this is possible. Thank you for your help. Jordan Quote Link to comment https://forums.phpfreaks.com/topic/63740-reading-the-summary-of-a-file/ Share on other sites More sharing options...
drewbee Posted August 7, 2007 Share Posted August 7, 2007 Anything is possible, its just a matter of parsing. Aside from that, we have nothing to go on for helping you ie what the report looks like, what code you currently have etc. Quote Link to comment https://forums.phpfreaks.com/topic/63740-reading-the-summary-of-a-file/#findComment-317612 Share on other sites More sharing options...
jacl3 Posted August 7, 2007 Author Share Posted August 7, 2007 Well what I am doing is making a list of files that I have available, the files are files from Crystal Reports, they are used for stuff at school. What I need to do is make a list of all the files in the directory and then the "Comments" from the summary data so that people will be able to know what each report does. This is what I run now. $dir = dir("../crystal/"); while (($file = $dir->read()) !== false) { if ($file == "."){ echo ""; }elseif ($file == ".."){ echo ""; } else { $file3=ereg_replace("_", " ", $file); $file3=ereg_replace("symand", "&", $file3); echo '<a href='.$file.' target=_blank>'.$file3.'</a>'; echo '<br>'; } }$dir->close(); To figure out what to parse would you need a sample .rpt file or how would this be done? Quote Link to comment https://forums.phpfreaks.com/topic/63740-reading-the-summary-of-a-file/#findComment-317624 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.