Expand my Community achievements bar.

Can't run afcs.php script

Avatar

Former Community Member

Hi,

I'm trying to run the afcs script using the tips from the Adobe TV site, but I'm getting an error

Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected T_STRING in <b>/home/content/t/o/s/tosugi/html/php_scripts/afcs.php</b> on line <b>33</b><br />

Any ideas?

My script is called index.php

<?
        include 'afcs.php';

        $cocomo = new AFCSAccount('http://connectnow.acrobat.com/xxxx');
        $cocomo->login("xxxx@xxx.com","password");
?>

4 Replies

Avatar

Employee

What version of PHP are you using ? The script is for PHP5 and it will not run for PHP4.

Avatar

Employee

So, what do you have on line 33 in afcs.php ?

The latest version show this:

line 33: interface AFCSUserRole {
              const NONE      = 0;
              const LOBBY     = 5;
              const VIEWER    = 10;
              const PUBLISHER = 50;
              const OWNER     = 100;
            }


And it looks correct to me. Do you have something different ?

Can you try to run the script from the command line ? You should be able to do:

     php afcs.php

Thanks!

Avatar

Former Community Member

Raff,

Something seems strange with my php or environment, I think.  I just tried the same script at on my home pc, and it works.  So I guess, nevermind!  Thanks for the quick reply this afternoon.

-Tom