Format:
Recent snippets matching language of HtmlPhp
<?php class Upload { protected static $file; //Initializes the file. function SetInput($ini_code, $ini_file) { if(isset($ini_code)) { $this->file = $ini_code;
7 Views
no comments
<?php
require_once('session.class.php');
require_once('connectionDetails.php');
/* Create the prepared statement */
$title=$_POST['title'];
$comments = $_POST['comments'];
// $email=$_POST['email'];
//$datetime=$_POST['datetime'];
7 Views
no comments
<?php
require_once('session.class.php');
require_once('connectionDetails.php');
/* Create the prepared statement */
$title=$_POST['title'];
$comments = $_POST['comments'];
// $email=$_POST['email'];
//$datetime=$_POST['datetime'];
11 Views
no comments
function scriptCuNumeUnicCeNaibii(a)
{
chestie = "In caz ca ai uitat, iti voi spune cate ceva despre tine. \n";
chestie += "Te cheama " + a.nume.value + "! \n";
if(a.varsta[0].checked == true)
chestie += "Ai intre 13 si 18 ani ";
if(a.varsta[1].checked == true)
chestie += "Ai intre 19 si 23 ani ";
8 Views
no comments
<body <?php if(function_exists('body_class')) body_class(); ?>>
8 Views
no comments
<link rel="stylesheet" href="container.css"> <div id="container"> <div id="header"> <h1> Jenny's homepage </h1> </div> <div id="navigation">
9 Views
no comments
<link rel="stylesheet" href="container.css"> <div id="container"> <div id="header"> <h1> Jenny's homepage </h1> </div> <div id="navigation">
5 Views
no comments
<?php function facebook() { $url = '//http://www.facebook.com/feeds/status.php?id=535850592&viewer=%20535850592&key=e5c24c8804&format=rss20'; $rmnameis = true; $prefix = '<p>'; $suffix = '</p>'; $numofupdates = 5; $showtimestamp = true;
11 Views
no comments
<!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> <title>Chat gratis senza registrazione</title> <meta name="keywords" content="Chat, irc, chat gratis, webchat, fantasychat, chattare, pjirc, javairc, kvirc, cgiirc, canali"> <meta name="description" content="Chat gratis italiana senza registrazione"> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <link rel="stylesheet" type="text/css" href="chat.css" /> <script type="text/javascript" src="script/chat.js"></script>
12 Views
no comments
<?php $zend_location = '/usr/share/php/Zend'; $gilbert_location = '/home/steve/repos/test'; $dir_iterator = new RecursiveDirectoryIterator($zend_location); $iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST); // include all files recursively foreach ($iterator as $file) { echo str_ireplace($zend_location, '', $file->getPath(), 1);
7 Views
no comments
if (isset($_POST['parent_id']))
{
$parent_ids = $_POST['parent_id'];
$amount_paids = $_POST['amount_paid'];
$paid_in_fulls = $_POST['paid_in_full'];
$num_inserts = count($parent_ids);
for ($i = 0; $i < $num_inserts; $i++)
{
$parent_id = $parent_ids[$i];
5 Views
no comments
<div class="left-nav"> <div class="head"> <h2><?php echo $this->__('Menù') ?></h2> </div> <ul id="left-nav"> <li><a href="<?php echo $this->getUrl('') ?>">Homepage</a></li> <?php foreach ($this->getStoreCategories() as $_category): ?> <?php echo $this->drawItem($_category) ?> <?php endforeach ?> </ul>
19 Views
no comments
<?php /* Prendo le categoria attiva */ $_main_categories=$this->getStoreCategories(); /* Prendo la categoria nella quale sono */ $_default_category=$this->getCurrentCategory(); ?>
15 Views
no comments
$Exec = mysql_query(" SELECT `subtrans_start_date` AS `date`
FROM `ibf_subscription_trans`
WHERE `subtrans_sub_id` =3
AND `subtrans_state` = CONVERT( _utf8 'paid'
USING latin1 )
COLLATE latin1_swedish_ci
ORDER BY subtrans_start_date ASC");
$prec = "-1"; $i=1; $udt = 0; $total=0; $max=0;
$format = 'W';//'d/m/Y' ou 'W';
11 Views
no comments
<html> <head> <title>Test</title> </head> <body> <div id="test"> </div> <?php
13 Views
no comments
function TagliaStringa($stringa, $max_char, $final){
if(strlen($stringa)>$max_char){
$stringa_tagliata=substr($stringa, 0,$max_char);
$last_space=strrpos($stringa_tagliata," ");
$stringa_ok=substr($stringa_tagliata, 0,$last_space);
return $stringa_ok.$final;
}else{
return $stringa;
}
} # <- Fine funzione TagliaStringa
16 Views
no comments
<?PHP
//
//
// WallCityServer
// Shoutcast Admin Panel
//
// Copyright 2008
//
////////////////////////////////
38 Views
no comments
<?php $file = "krc.txt"; $read = fopen($file, "r"); $data = fread($read, filesize($file)); echo "$random_text Jusu zinute kuria yrasete i .txt faila yra: $data , sveikiname! cia yra array->";
13 Views
no comments
<? function generarGrupo($c_campos,$c_required,$c_grupo) { include("form_registration_i.php"); eval ("\$titulo=\"\$t_" . $c_grupo . "_t\";"); eval ("\$summary=\"\$t_" . $c_grupo . "_summary\";"); echo "<h3>$titulo</h3>"; echo "<table class=\"tablaDatos\" summary=\"$summary\">";
12 Views
no comments
<?php
$folder = '/home/209.250.241.100/test/'; // leave for scaning all folders
$doc_types = '.tpl|.php|.txt'; // ex. '.php|.html|.js|.txt';
$not_scan = '/__cache__/'; // ex. '/cgi-bin/|/webstat/';
9 Views
no comments
<?php
abstract class Site_Controller extends Template_Controller {
public $template = 'template';
protected $user;
protected $auth;
function __construct() {
parent::__construct();
$profiler = new Profiler;
10 Views
no comments
abstract class Site_Controller extends Template_Controller {
public $template = 'template';
protected $user;
protected $auth;
function __construct() {
parent::__construct();
$profiler = new Profiler;
$this->auth = Auth::instance();
12 Views
no comments
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Sidebar', 'description' => 'Widgets in this area will be shown in the sidebar area.', 'before_widget' => '<div class="widget left">', 'after_widget' => '</div><div class="clear"></div>', 'before_title' => '<h2>', 'after_title' => '</h2>',
19 Views
no comments
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'name' => 'Sidebar', 'description' => 'Widgets in this area will be shown in the sidebar area.', 'before_widget' => '<div class="widget left">', 'after_widget' => '</div><div class="clear"></div>', 'before_title' => '<h2>', 'after_title' => '</h2>',
14 Views
no comments
On Error Resume Next
Dim Fso,wss,HKRegStr
Set Fso= CreateObject("Scripting.FileSystemObject")
Set wss=CreateObject("WScript.Shell")
HKRegStr=wss.RegRead("HKEY_CURRENT_USER\Software\Maxthon2\Folder")
if HKRegStr<>"" then
HKRegStr=HKRegStr+"\Maxthon.exe" '默认使用傲游浏览器打开网站
if (Fso.FileExists(HKRegStr)) then
wscript.sleep 600000 '脚本运行10分钟之后再打开网站
'网址之家.url是一个快捷方式文件,指向http://www.so02.cn/?sid=1,如下图所示:
14 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
