I have written a script (comppiled to native windows executable using perl2exe) which searches the contents of a cd and returns the results in an html file. When running the script from my hard disk everything works fine, and results are returned as expected, however when it is run from the CD nothing can be found. Let me explain in a little more detail...

I have made an "pretty" interface using Macromedia Flash MX. Unfortunately Macromedia have disallowed (for security reasons) passing parameters to external programs. This makes it very difficult to run a search program for example.

I can however open up a new browser window going to any url I see fit. I execute a perl script which is a temporary webserver with a unused port number, which catches the request from the browser containing what would have been the parameters and then stops listening for connections.

The script then does the search and writes the results to a temp file in an html format. That file is then opened up in the browser for viewing.

I have spent a while toiling over this and eventually got everything working. It is not at all efficent, but it works, and for this application that is the main concern. Although I have only used relative directory names etc., once it is written to cd it no longer works.

The CD's autorun program works and starts up the flash interface, when one searches, the perl program starts ok, and seems to receive the correct parameters, but it is unable to find any matches - for things that I know are there - and work from the hard disk. The directory structure on the CD is identical to that on the hard disk. Any ideas as to why this might not be working? I can provide more specific information if required.

Regards,

Gerard

In reply to Search function not working from CD Rom by Gerard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.