In terminal type: sudo gedit /etc/apache2/apache2.conf Find: <Directory /var/www/> And make sure the AllowOverride directive is set to All .…
//session //Set Session Route::get( 'set-session' , function (Request $request){ $request->session()->put( 'name' , …
composer global require laravel / installer laravel new projectName
take user data by text area in php use nl2br() , -then save it to the database it will save in database with <br> when show that it will …
<?php echo '<pre>' ; print_r(basename($_SERVER[ 'PHP_SELF' ])); ? >
$pname = filter_var($_POST[ 'pname' ], FILTER_SANITIZE_STRING); $pdesc = filter_var($_POST[ 'pdesc' ], FILTER_SANI…
Method 1 $url = $_SERVER[ 'REQUEST_URI' ]; //returns the current URL $parts = explode( '/' ,$url); $dir = $_SERVER[ 'SERVER_NAM…
//get value from a form with comma separated $formValues = $_POST[ 'prtype' ]; //make array be comma delimeter $alltype = explode( ','…
<?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = "" ; $name = $email = $gender = $…
Detect all https including cloudflare flexible $root = '' ; //Detect all https including cloudflare flexible $root = '' ; if (!em…
1 First, go to File-> Preferences -> settings -> User settings tab-> extensions ->from the drop down select php ->on the right …
<? php if(isset($_POST['button1'])) { echo "This is Button1 that is selected"; } …