PHP Classes

File: server.php

Recommend this page to a friend!
  Classes of Dony  >  Kecik  >  server.php  >  Download  
File: server.php
Role: Auxiliary script
Content type: text/plain
Description: Class source
Class: Kecik
MVC framework library as single PHP file
Author: By
Last change:
Date: 6 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']);

}
*/

For more information send a message to info at phpclasses dot org.