Creating a Regular PHP Page


The TextSide Engine can also serve traditional PHP pages and files. When creating PHP files this way the TextSide Engine can help you by setting up the PHP environment, authenticating users, and providing an SQL connection.

To serve a normal PHP file, simply create a new file in the site\control directory.

For example, here I've created a file test.php in control/samples/test.php.

It can be reached on the server by entering http://www.yoursite.com/samples/test

regular.jpg

In the the PHP file you can create any code that you want. In this example I've added code that will echo the name of all registered site users:

<?php
global $sql;
$result $sql->Query("SELECT * FROM security_users");
while(
$row mysql_fetch_array($result)){
    echo(
$row["username"]."<br />");
}
?>
When browsing to the page it will look something similar to:
regular2.jpg