PHP Classes

File: example/server.php

Recommend this page to a friend!
  Classes of Dony   Kecik   example/server.php   Download  
File: example/server.php
Role: Auxiliary script
Content type: text/plain
Description: Example script
Class: Kecik
MVC framework library as single PHP file
Author: By
Last change:
Date: 9 years ago
Size: 921 bytes
 

Contents

Class file image Download
<?php

//echo "Elspranicode development server started on http://localhost:8000\n";
//print "Elspranicode development server started on http://localhost:8000\n";
fwrite(STDOUT, "Kecik development server started on http://localhost:8000\n");

$cmd = "php -S localhost:8000 index.php";

$output = shell_exec($cmd);

/*if (substr(php_uname(), 0, 7) == "Windows"){
        pclose(popen("start /B ". $cmd, "r"));
} else {
    exec($cmd . " > /dev/null &");
}*/
//echo "Elspranicode development server started on http://localhost:8000\n";
//print "Elspranicode development server started on http://localhost:8000\n";
//fwrite(STDOUT, "Elspranicode development server started on http://localhost:8000\n");

/*
while (true) {
    $post = $_POST;
    $get = $_GET;

    if ($post)
        print_r($post);

    if ($get)
        print_r($get);


    if ($_SERVER['HTTP_REFERER'])
        print_r($_SERVER['HTTP_REFERER']);

}
*/