1
2
3
4
<?php
	function username($user_id = null) {

...

PHP get username from database

by Memf, April 26, 2008 16:49, 3 refactorings, tagged with php get username exists id

<?php

71367d98df2bf14cbf704e7741eb402d Talk
1
2
3
4
<?php
if (count($argv) != 3)
	die("Usage: $argv[0] <RSS feed URL> <output dir>\n");	
...

PHP Download all audio enclosur...

by hubfactor, April 11, 2008 20:48, No refactoring, tagged with php, rss, simplexml, curl, xpath

Given an RSS feed and an ou...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
<?php

function imagetrim(&$im){
...

PHP Trim an image vertically

by hubfactor, March 30, 2008 20:25, 1 refactoring, tagged with php, image

Originally from http://zava...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
<?php
$std = fopen("php://stdin", "r");
echo "TICTACTOE\n\n\n\n";
...

PHP Command-Line TicTacToe

by techietim, March 24, 2008 00:00, 1 refactoring, tagged with php, game, tictactoe

Just wondering if there are...

441c4f02db55ef2cbe96027af7012e01 Talk
1
2
3
4
<?php
function ircinit()
{
...

PHP Socket Loop, Need Constant ...

by Martindale, March 04, 2008 12:35, 1 refactoring, tagged with php5, irc, bot

This code is the main funct...

72f4ba51b784673a15a1e89d8d9f49d1 Talk
1
2
3
4
<?php

$params = array('SID','t','p','hilite');
...

PHP Removing Parameters from an...

by Martindale, February 07, 2008 17:32, 6 refactorings

Removing a list of paramete...

72f4ba51b784673a15a1e89d8d9f49d1 Talk
1
2
3
4
<?php
# html
# 
...

PHP MediaWiki extension template

by griflet, January 29, 2008 18:42, 2 refactorings, tagged with mediawiki wiki extension

Here's a nice little templa...

Aae34a7973a8d98e53764a1c89090c55 Talk
1
2
3
4
<?php

require_once("arc/ARC2.php"); // http://arc.semsol.org/
...

PHP Parse del.icio.us RSS feed

by hubfactor, January 28, 2008 16:08, 3 refactorings, tagged with rdf, php, del.icio.us

Uses ARC RDF parser from ht...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
<?php
// Eval encoded file decrypter
// V 1 - 01/26/2008
...

PHP Eval encoded file decoder

by ellisgl.myopenid.com, January 26, 2008 17:08, 19 refactorings, tagged with php, decode, encrypted, eval

I was having an issue with ...

8bba46dba9043c254e6eef1aa664e6f0 Talk
1
2
3
4
function db_cache_2($query)
 {
  // Query cache table
...

PHP DB Cache

by ellisgl.myopenid.com, January 14, 2008 22:48, 6 refactorings, tagged with php, cache, mysql, update

It's a DB caching scheme th...

8bba46dba9043c254e6eef1aa664e6f0 Talk
1
2
3
4
   function makeClickableLinks($text) {

     # http
...

PHP Plain Text to clickable

by ccmehil.myopenid.com, January 14, 2008 12:49, No refactoring, tagged with regex clickable

This works for http:// http...

89dbcf960be1cdd31421ce72c79c9660 Talk
1
2
3
4
<?php

function fetch($url,$start,$end){
...

PHP Wikipedia API and text form...

by z3ro, January 09, 2008 18:37, No refactoring, tagged with wikipedia, api, wikimedia, php, xml, regex, parser, formatting, plain html, html, convert

I need to add Wikipedia's i...

E90ba01aea329491b312280d1eea606b Talk
1
2
3
4
<? php
if $userinput = "http://www."
{
...

PHP Replace user input with link

by Mlopez, January 02, 2008 01:39, 7 refactorings, tagged with replace, text, with, url, php, user, help, phrasing, parsing, http

im not quite sure where to ...

132a00e84e74c003f68311b39b28e969 Talk
1
2
3
4
<?php
if (substr($_SERVER['HTTP_REFERER'], 0, 33) == "http://www.thegrandtournament.com")
{
...

PHP Log Referer, Excluding...

by Martindale, December 12, 2007 20:37, 8 refactorings

This code is embedded withi...

72f4ba51b784673a15a1e89d8d9f49d1 Talk
1
2
3
4
<?php if ( the_ID() == 8) {
echo "<div id='menu_show' class='slideshow'>
  <img src='http://www.someone.com/wp-content/themes/True%20Nature/img/rotate1.jpg' alt='A picture' width='748' height='245' />
...

PHP Output div block with PHP c...

by K, December 07, 2007 18:53, 6 refactorings, tagged with css

Hi, I am just scratching th...

B5ae59b19cc356df333baffffb9f2c91 Talk
1
2
3
4
<?php 

$options = $_GET['options'];
...

PHP dynamic select box

by blank714.myopenid.com, November 28, 2007 07:19, 2 refactorings

is there any way to shorten...

Avatar Talk
1
2
3
4
<input id="username" name="username" type="text" size="30" value="<?php 
    if (isset($_POST['username'])) {
	echo $_POST['username'];
...

PHP <input value=''> func...

by baldo.myopenid.com, November 25, 2007 14:03, 3 refactorings, tagged with input, value

How can I put the php-code ...

Avatar Talk
1
2
3
4
<?php
function fecha ()
{
...

PHP Spanish date Function

by streo.myopenid.com, November 13, 2007 11:54, 2 refactorings, tagged with date, spanish, php, StReO, 3v-doble

hi, I'm a student and i cre...

Avatar Talk
1
2
3
4
<?php
class MyClass{
function __construct(){
...

PHP Crossversion constructors f...

by fullo, November 09, 2007 16:08, 3 refactorings, tagged with php, oop, object, constructor, php5, php4

Which one is the best cross...

28f4b93162bef554e624154514dd5bd6 Talk
1
2
3
4
<?php
$host = "host";
$user = "user";
...

PHP Message system IP-ban

by Elnaeth, November 04, 2007 12:33, 6 refactorings, tagged with ip, broken, help

I'm trying to get this to w...

0c36a298fc7f7c41cb08d12a65a609b1 Talk
1
2
3
4
<?php

$flacpath = '/bin/flac';
...

PHP FLAC -> Multiple File Ty...

by wegosublime, October 31, 2007 17:33, 5 refactorings, tagged with cron, mp3, flac, ogg, music, record company, sql, shell, command line

This is part of a larger pr...

98ae5419a4fd2b739280c3ed7d6cdb3d Talk
1
2
3
4
<?
    #dl("php_gd2.dll");

...

PHP Thumbnail generator

by tempouser.myopenid.com, October 31, 2007 13:28, 10 refactorings, tagged with image thumbnail gallery

i got this code running on ...

Avatar Talk
1
2
3
4
Tables:

items
...

PHP SQL JOIN vs. tmpTable

by jackbauer.myopenid.com, October 30, 2007 16:32, 3 refactorings, tagged with sql

The first codesnippet last ...

Avatar Talk
1
2
3
4
<?
function robots_allowed($url){
	$current_url=$url;
...

PHP Robots Reader

by Matt, October 28, 2007 15:44, 2 refactorings, tagged with robots, txt, robots.txt, reader, open, download, spider, crawler, search

This code will refer to the...

63dc621a0755c77290da87f0feb44491 Talk
1
2
3
4
<?
if($enviar) {
$victima = $_POST['victima'];
...

PHP Mail bomber

by karliky.myopenid.com, October 28, 2007 08:43, 4 refactorings, tagged with mail, bomber

Es muy sencillo

Avatar Talk