Hey,
I know it's a long shot but I'm wondering if someone can help me on this:

I am setting up an LED Sign to work with a website through a UDP Connection. Most of the following PHP is not my own work. It was written by Juho Ojala. His website is at: http://www.mediakum.com/phpledsign/getting-started/ where he explains the code.

I have placed the sign in the DMZ of my internet's router. The way the code works is this: initialize.php is activated. This code requires LedSign.php, and sends the signs IP address to it. LedSign.php then formats the sign to use php.

When I run initialize.php, I get the following error:

Warning: file_get_contents(SEQUENT.SYS) [function.file-get-contents]: failed to open stream: No such file or directory in /home/username/public_html/LEDsign/mail/lof/LedSign.php on line 357

SEQUENT.SYS is a file in the sign's memory which control's access to the screen. I know my IP address is right, because I can use the same address with the sign's default software to send it commands and make it function properly. Does this error mean the PHP code was unable to communicate with the sign in the DMZ? What can I do to correct it?

Any steps in the right direction would be appreciated.

Thanks,
Blake

Initialize.php:

<?
require_once('LedSign.php');

// ip address of router
$ledSign = new LedSign('184.74.***.**');
$success = $ledSign->initialize();

?>

LedSign.php: attached as .txt file.

    To narrow my question down:

    1. Could this error mean a connection problem between the web and sign?
    2. Does this have to do with the UDP connection or Port number?
    3. Or does this error actually mean that a connection is made but the SEQUENT.SYS file couldn't be located or isn't there.

    I know the file is there, but I guess it could possibly be corrupted or changed in some way preventing access.

    Hope this helps.

    Again, thanks for any help on this.
    Blake

      This:

      $data = file_get_contents('SEQUENT.SYS', true);

      is trying to load a file called 'SEQUENT.SYS' in whatever the current working directory is. Since the script never appears to change the working directory manually, this will be the same as the directory in which the script is located.

      Thus, I'd say you're missing a local copy of that file, since the code is attempting to read in the contents of it from disk.

        Write a Reply...