Skip to content

PHP

Information

PHP is a programming language known as Hypertext Preprocessor, originally standing for Personal Home Page. It is widely used for web development, famed for its ease of use and ability to be embedded directly into HTML. PHP is dynamic and server-side, allowing developers to build robust web applications that can handle complex data-driven tasks.

PHP supports a wide range of databases, has rich built-in functions, and can interact with various web services. It’s also part of the classic LAMP (Linux, Apache, MySQL, PHP) stack which powers countless servers across the globe. PHP continues to evolve with regular updates that improve its performance, security features, and modern language capabilities.

Functions

SS_BETWEEN

  • This is an exmaple of the ss_between function written in php.

    
        // Credit: AADude
        function ss_between($string,$start,$end) {
        $string=" ".$string; //The string.
        $startpos=strpos($string,$start); //Find the position of the start string.
        //Check if $startpos equals zero.
        if ($startpos == 0) {
            //If $startpos does equal zero, do this:
            return false; //Return false.
        }
        else {
            //If $startpos doesn't equal zero, do this:
            $startpos+=strlen($start); //Add the string length of $start to $startpos.
            $endpos=strpos($string,$end,$startpos)-$startpos; //Find the string position of $end.
            return substr($string,$startpos,$endpos); //Return the new value.
        }
        }
    
        // Proof of Of Concept
        $source = "U:holybyteE:[email protected]";
        $u = ss_between($source, "U:", "E:");
        // $source = line 1 of text file
        echo $u;
        // return username