PHP code example of tomk79 / px2-serve

1. Go to this page and download the library: Download tomk79/px2-serve library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tomk79 / px2-serve example snippets


	// funcs: Before sitemap
	$conf->funcs->before_sitemap = [
		// px2-serve
		tomk79\pickles2\px2serve\serve::register(),
	];

php path/to/.px_execute.php "/?PX=serve";

php path/to/.px_execute.php "/?PX=serve.pub";

php path/to/.px_execute.php "/?PX=serve&S=localhost:8080";