code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain th... | PHP |
<?php
/**
* Object-relational mapper.
*
* DBO-backed object data model, for mapping database tables to Cake objects.
*
* PHP versions 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT Licen... | PHP |
<?php
/**
* Schema database management for CakePHP.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt... | PHP |
<?php
/**
* Model behaviors base class.
*
* Adds methods and automagic functionality to Cake Models.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright ... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain th... | PHP |
<?php
/**
* ModelValidator.
*
* Provides the Model validation logic.
*
* PHP versions 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information... | PHP |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | PHP |
<?php
/**
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain th... | PHP |
<?php
/**
* CakeValidationRule.
*
* Provides the Model validation logic.
*
* PHP versions 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license informa... | PHP |
<?php
/**
* CakeValidationSet.
*
* Provides the Model validation logic.
*
* PHP versions 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license informat... | PHP |
<?php
/**
* BehaviorCollection
*
* Provides management and interface for interacting with collections of behaviors.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For ... | PHP |
<?php
/**
* Basic Cake functionality.
*
* Handles loading of core files needed on every request
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and l... | PHP |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | PHP |
<?php
/**
* APC storage engine for cache.
*
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Red... | PHP |
<?php
/**
* File Storage engine for cache. Filestorage is the slowest cache storage
* to read and write. However, it is good for servers that don't have other storage
* engine available, or have content which is not performance sensitive.
*
* You can configure a FileEngine cache, using Cache::config()
*
* PHP 5
... | PHP |
<?php
/**
* Redis storage engine for cache
*
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Re... | PHP |
<?php
/**
* Wincache storage engine for cache.
*
* Supports wincache 1.1.0 and higher.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license in... | PHP |
<?php
/**
* Memcache storage engine for cache
*
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
*... | PHP |
<?php
/**
* Xcache storage engine for cache.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Red... | PHP |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... | PHP |
<?php
/**
* Exceptions file. Contains the various exceptions CakePHP will throw until they are
* moved into their permanent location.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MI... | PHP |
<?php
/**
* Exception Renderer
*
* Provides Exception rendering features. Which allow exceptions to be rendered
* as HTML pages.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT L... | PHP |
<?php
/**
* Error handler
*
* Provides Error Capturing for Framework errors.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information,... | PHP |
<?php
/**
* Registry of loaded log engines
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redis... | PHP |
<?php
/**
* Logging.
*
* Log messages to text files.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.... | PHP |
<?php
/**
* File Storage stream for Logging
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Red... | PHP |
<?php
/**
* Console Logging
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of ... | PHP |
<?php
/**
* Base Log Engine class
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributio... | PHP |
<?php
/**
* CakeLogInterface
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of ... | PHP |
<html>
<head>
<title>
This is title
</title>
</head>
<body>
<?php
$customer_unit = 300;
$first20 = 80;
$twenty_to_150 = (150 - 20) * 8;
$onefifty_to_250 = (250 - 150) * 10;
$over_250 = ($customer_unit - 250 ) * 15;
$total = $first20 + $twenty_to_150 + $on... | PHP |
<html>
<head>
<title>
This is title
</title>
</head>
<body>
<?php
$customer_unit = 300;
$first20 = 80;
$twenty_to_150 = (150 - 20) * 8;
$onefifty_to_250 = (250 - 150) * 10;
$over_250 = ($customer_unit - 250 ) * 15;
$total = $first20 + $twenty_to_150 + $on... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<h3>Registration Form</h3>
<form method="POST" action="">
First Name:
<input type="text" name="fname" />
<br/>
Last Name:
<input type="text" name="lname"/>
<br/>
Password:
<input... | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php echo $setting['site_na... | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php echo $setting['site_name... | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="assets/jquery.js"></script>
<link media="screen" rel="stylesheet" href="assets/colorbox/colorbox.css" ... | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php echo $setting['site_na... | PHP |
<div class="left_box">
<h4>Latest News</h4>
<p>
<?php while ($news_row = mysql_fetch_assoc($news_result)) {?>
<a href="news.php?news_id=<?php echo $news_row['id'];?>">
<?php echo $news_row['title'];?><br/>
<span><?php echo substr($news_row['content'],0,80);?>,
<?php echo date("Y/m/d", $n... | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php echo $setting['site_name... | PHP |
<?php
session_start();
if ($_SESSION['id'] != ""){
header("location: dashboard.php");
}
//error_reporting(0);
/*echo "<pre>";
print_r($_POST);
echo "</pre>"; */
if ($_POST['btn_action'] == "login"){
$email = $_POST['email'];
$pass = $_POST['password'];
if ($email !="" && $pass !="") {
... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$id = $_GET['id'];
$query = "SELECT * FROM pages where id=$id";
$result = mys... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM settings";
$result = mysql_query($query); //resource... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
mysql_connect('localhost', 'root', '');
mysql_select_db('bernhardt');
/*
echo "<pre>";
print_r($_POST);
print_r($_FILES);
echo "</pre>";
*/
$name = $_POST['name'];
$file_name = strtolower($_FILES['photo']['nam... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM gallery";
$result = mysql_query($query); //resource ... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$id = $_GET['id'];
$query = "SELECT * FROM menus where id=$id";
$result = mys... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$id = $_GET['id'];
$query = "SELECT * FROM news where id=$id";
$result = mysq... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM news";
$result = mysql_query($query); //resource or ... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
mysql_connect('localhost', 'root', '');
mysql_select_db('bernhardt');
$action=$_GET['action'];
$id= $_GET['id'];
//DELETE USER
if($action== "user_delete" && $id!='')
{
//3. Performing SQL query
$query = "DELE... | PHP |
<?php
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM menus";
$result = mysql_query($query); //resource or similar to file handle
while ($row = mysql_fetch_assoc($result)){
echo "<pre... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM menus order by `order` ASC";
$result = mysql_query($... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM pages";
$result = mysql_query($query); //resource or ... | PHP |
<?php
session_start();
if ($_SESSION['id'] == ""){
header("location: index.php");
}
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$query = "SELECT * FROM users";
$result = mysql_query($query); //res... | PHP |
<?php
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
//3. Performing SQL query
$id = $_GET['id'];
$query = "SELECT * FROM users where id=$id";
$result = mysql_query($query); //resource or similar to file handle
$user = mysql_fetch_assoc... | PHP |
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="dashboard.php">CMS Administration</a>
<?php
$filename = basename($_SERVER['PHP_SELF']);
?>
<div class="nav-collapse co... | PHP |
<?php
session_start();
$_SESSION['id'] = '';
$_SESSION['email'] = '';
//session_destroy();
header("location: index.php");
?> | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php echo $setting['site_name... | PHP |
<?php
//1. Connecti to MySQL server
mysql_connect('localhost', 'root', '');
//2. Selecting database
mysql_select_db('bernhardt');
$setting = mysql_fetch_assoc(
mysql_query("SELECT * FROM settings")
);
//Left sidebar news items
$news_query = "SELECT * FROM news order by created_at DESC LI... | PHP |
<?php
include_once "config.php";
?>
<html>
<head>
<title><?php echo $setting['site_name'];?></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php echo $setting['site_na... | PHP |
<?php while ($menu_row = mysql_fetch_assoc($menus_result)) { ?>
<a href="<?php echo $menu_row['href'];?>">
<?php echo $menu_row['name'];?>
</a>
<?php } ?>
| PHP |
<html>
<head>
<title>
This is title
</title>
</head>
<body>
Hello Bernhardt <br/>
Q. WAP to display your name 100 times. <br/>
<?php
for ($i = 1; $i <= 100; $i++){
//echo $i;
echo " Bernhardt";
echo "<br/>";
}
?>
</body>
</html>... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
</head>
<body>
Arrays in PHP <br/>
<?php
$name = "Hari Chandra Mathema";
echo $name;
echo "<br/>";
$students_arr = array ("ram", "shyam","hari", "sita");
//echo $students_arr;
echo "<pre>";
print_r($students... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<form method="GET" action="">
What's your name ? <br/>
<input name="username" type="text"/>
<input name="btnsubmit" type="submit" value="Submit"/>
</form>
<?php
echo "<pre>"; print_r($_GET);... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<form method="GET" action="">
N1? <br/>
<input name="n1" type="text"/><br/>
N2? <br/>
<input name="n2" type="text"/><br/>
<input name="btnsubmit" type="submit" value="Calculate Sum"/>
</fo... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<?php
//echo rand(0,1);
echo pi();
echo "<br/>";
echo ceil(1.45);
echo "<br/>";
echo floor(1.45);
?>
</body>
</html>
| PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<?php
//phpinfo();
$filename = "sample.jpg";
/*
for ($i = 0; $i < strlen($filename); $i++){
echo $filename[$i]
}*/
// substr ( string string, int start [, int length] )
echo substr($filename... | PHP |
<html>
<head>
<title><?php bloginfo( 'name' ); ?></title>
<link
href="<?php echo get_template_directory_uri(); ?>/style.css"
rel="stylesheet" type="text/css"
/>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php bloginfo( 'name'... | PHP |
<html>
<head>
<title><?php bloginfo( 'name' ); ?></title>
<link
href="<?php echo get_template_directory_uri(); ?>/style.css"
rel="stylesheet" type="text/css"
/>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><?php bloginfo( 'name'... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
</head>
<body>
<?php
$ext = "doc";
$ext_arr = array ("png", "jpg", "bmp", "gif");
// in_array() function
if ( in_array($ext, $ext_arr)) {
echo "allowed !";
} else {
echo "Not suppo... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
</head>
<body>
<?php
//function to add two numbers
function add($n1, $n2){
$sum = $n1 + $n2;
return $sum;
}
$s = add (234, 876);
echo "Sum is: ".$s;
echo "<br/>";
echo "<br/>";
/*********... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
</head>
<body>
<?php
/*Associative Array in PHP*/
$zone_headquarters = array (
"bagmati" => "kathmandu",
"kaski" => "pokhara",
"narayani" => "chitwan"
);
/*
echo $zone_headquarters['bagmati'];
ec... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<form align="center " method="GET" action="">
no1<br/>;
<input name="n" type ="text"/><br/>
</form>
<?php
$num=$_GET['n'];
for($i=1;$i<=$num;$i++)
{
if($i%2==0)
echo $i."<br/>";
}
?>
</body>
... | PHP |
<html>
<head>
<title>
B
</title>
<body>
<form method="GET" action="">
enter temperature in centigrade <br/>
<input name= "n1" type= "text"/>
<input type= "submit" value = "submit" />
</form>
<?php
$c = $_GET['n1'];
$f = (($c*9)/5) + 32 ;
echo "... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<form method ="GET" action="">
No. 1 <br/>
<input name= "n1" type= "text"/>
<br/>
No. 2<br/>
<input name= "n2" type= "text"/>
<br/>
<input type= "submit" value = "submit" />
</form>
<?php
$num1 = $_GET['n1'];
... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<form align="center " method="GET" action="">
Enter your date of birth:
Year:
<input name="year" type ="text"/><br/>
Month:
<input name="month" type="text"/>
<br/>
Day:
<input name="day" type="text"/>
<br/>
... | PHP |
<html>
<head>
<title>
Bernhardt College PHP Course
</title>
<body>
<form method="GET" action="">
<input name="r" type="text"/>
<input type="submit" value="result"/>
</form>
<?php
//define("PI", pi());
define("PI", 3.14156);
$n=$_GET['r'];
//echo 2* pi() *$n;
echo... | PHP |
<html>
<head>
<title>
B
</title>
<body>
<form method="GET" action="">
No. 1 <br/>
<input name= "n1" type= "text"/>
<input type= "submit" value = "submit" />
</form>
<?php
$num1 = $_GET['n1'];
echo $num1*($num1+1)/2;
echo "<br/>";
... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
<body>
<?php
//date_default_timezone_set("Asia/Kathmandu");
//date_default_timezone_get();
echo $now = time();
echo "<br/>";
echo date("Y-m-d H:i:s", $now);
echo "<br/>";
echo date("l, M j... | PHP |
<html>
<head>
<title>Lorem Ipsum Website</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1>Bernhardt Website</h1>
</div>
<!-- nav -->
<div id="nav">
<... | PHP |
<html>
<head>
<title>Lorem Ipsum Website</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1>Bernhardt Website</h1>
</div>
<div id="nav">
<?php
include "nav_i... | PHP |
<div class="left_box">
<h4>Latest News</h4>
<p>
<a href="">
Lorem ipsum dolar sit amet<br/>
<span>this is small news content of the full news post,
<?php echo date("Y/m/d"); ?></span>
</a>
<a href="">
Lorem ipsum dolar sit amet<br/>
<span>this is small news content of the full news pos... | PHP |
<html>
<head>
<title>Lorem Ipsum Website</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1>Bernhardt Website</h1>
</div>
<div id="nav">
<?php
include "nav_i... | PHP |
<html>
<head>
<title>Lorem Ipsum Website</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1>Bernhardt Website</h1>
</div>
<div id="nav">
<?php
include "nav_i... | PHP |
<html>
<head>
<title>
Bernhardt PHP
</title>
</head>
<body>
<?php
/*Associative Array in PHP*/
$zone_headquarters = array (
"bagmati" => "kathmandu",
"kaski" => "pokhara",
"narayani" => "chitwan"
);
$status = array (
array (
... | PHP |
<?php
defined('PROJECT_PATH') || define('PROJECT_PATH', realpath(dirname(__FILE__)));
define('__ROOT__', dirname(dirname(__FILE__)));
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load dif... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeig... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.