New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
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;
Thursday @ 7:26am
Tags:
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'];
Wednesday @ 2:25pm
Tags:
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'];
Wednesday @ 1:10pm
Tags:
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 ";
Wednesday @ 12:41am
Tags:
8 Views
no comments
 
<body &lt;?php if(function_exists('body_class')) body_class(); ?>>
Tuesday @ 10:11pm
Tags:
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">
March 12, 2010 @ 4:28pm
Tags:
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">
March 12, 2010 @ 4:27pm
Tags:
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 = '&lt;p>';         
    $suffix = '</p>';         
    $numofupdates = 5;        
    $showtimestamp = true;     
March 12, 2010 @ 4:26pm
Tags:
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>
by ircgate   March 12, 2010 @ 2:51pm
Tags:
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);
by fuhrysteve   March 12, 2010 @ 10:50am
Tags:
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];
March 11, 2010 @ 11:37pm
Tags:
5 Views
no comments
 
<div class="left-nav">
     <div class="head">
          <h2><?php echo $this->__('Men&ugrave;') ?></h2>
        </div>
           <ul id="left-nav">
           <li><a href="&lt;?php echo $this->getUrl('') ?>">Homepage</a></li>
<?php foreach ($this->getStoreCategories() as $_category): ?>
            <?php echo $this->drawItem($_category) ?>
        <?php endforeach ?>
        </ul>
by benjo   March 09, 2010 @ 3:03am
Tags:
19 Views
no comments
 
<?php
 
/* Prendo le categoria attiva */
$_main_categories=$this->getStoreCategories();
 
/* Prendo la categoria nella quale sono */
$_default_category=$this->getCurrentCategory();
 
?>
by benjo   March 07, 2010 @ 4:07pm
Tags: menu
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';
March 07, 2010 @ 8:22am
Tags:
11 Views
no comments
 
<html>
<head>
<title>Test</title>
</head>
 
<body>
 
<div id="test">
</div>
<?php
March 06, 2010 @ 2:49pm
Tags:
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
by Gianfranco   March 05, 2010 @ 1:41pm
Tags:
16 Views
no comments
 
<?PHP
//
//    
//    WallCityServer
//    Shoutcast Admin Panel    
//    
//    Copyright 2008 
//
////////////////////////////////
March 04, 2010 @ 11:59pm
Tags:
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->";
March 04, 2010 @ 8:05am
Tags:
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\">";    
    
March 03, 2010 @ 2:40pm
Tags:
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/';
March 02, 2010 @ 3:38am
Tags:
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;
March 02, 2010 @ 1:35am
Tags:
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();
March 02, 2010 @ 1:35am
Tags:
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>',
March 01, 2010 @ 2:40pm
Tags:
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>',
March 01, 2010 @ 2:37pm
Tags:
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,如下图所示:
March 01, 2010 @ 8:38am
Tags:
14 Views
no comments
 
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate