I've been working around a long time trying to solve this problem, but no success until now.
I need to grab a string that is passed to a Keywork when saving a CDR file, but as far as I've tried, I have just failed!
I can't read the substring even it being displayed in the webbrowser.
The string to search for this test is "TESTKEYWORD", and below is my code:
<?php
$filename = "test.cdr";
$content = file_get_contents($filename);
if( strpos( $content, 'TESTKEYWORD' ) !== false ) {
echo "I found the TESTKEYWORD string";
} else {
echo "Sorry, I failed to find theTESTKEYWORD string!";
}
echo '<h2>Genarated string</h2>';
echo '<hr />';
echo $content;
If you want to try, I've uploaded in my webserver for testing, so you can access from there.