HTML and CSS Reference
In-Depth Information
For ease of access create a
pusher_config.php
file and
define
the credentials in there so we
can refer to them later:
<?php
define
(
'APP_ID'
,
'YOUR_APP_ID'
);
define
(
'APP_KEY'
,
'YOUR_APP_KEY'
);
define
(
'APP_SECRET'
,
'YOUR_APP_SECRET'
);
?>
In your version of
pusher_config.php
be sure to replace the values which being
'YOUR_
with
your actual credentials.
You should also
require
this in your
index.php
file. We should also make the
APP_KEY
available to the JavaScript runtime as we are going to need it to connect to Pusher.
<?php
require
(
'pusher_config
.
php
);
?>