Can i include php external files on the chat?

42 views
Skip to first unread message

Christopher Coria Vásquez

unread,
Oct 12, 2015, 1:11:30 AM10/12/15
to AJAX-chat


Hi everyone,

I would like to add this code in the global source of the chat:

<?php
include "../../../mc.php";
include "../../../std.php"
?>

I put it on the files "lib/template/loggedIn.html" and "lib/template/loggedOut.html", so i changed the name of both files to the extension ".php", and i changed the url declarations of the files.

The point is that the software does not recognize me that simple statement, I take it as a comment, as you can see in the picture below:


My server support php 5.4 and all complements of the language very well.

I am a beginner programming in php and i would like to now what happened in the code, please help me.


Regards,
Christopher Coria.

ClubSyNXTremeTV

unread,
Oct 12, 2015, 2:57:51 AM10/12/15
to AJAX-chat
why not i frame it? also what exactly are you trying to attempt?

Christopher Coria Vásquez

unread,
Oct 12, 2015, 11:26:28 AM10/12/15
to AJAX-chat
Hi CrubSyNXTremeTV,

I use a security software in mi website and i include the code in all of my pages, but the chat does not recognize the code.

Sorry for my english brother, i am Mexican, i am studying english.

donshakespeare

unread,
Oct 17, 2015, 7:58:41 PM10/17/15
to ajax...@googlegroups.com

Put your security code in config.php or custom.php, that file is called every time the chat does a transaction.
Reply all
Reply to author
Forward
0 new messages