It is currently Wed Sep 08, 2010 11:25 am

News News of Php Scripting language - PHP

Site map of Php Scripting language - PHP » Forum : Php Scripting language - PHP

php kbot

hey

i found an php bot , but i never used php bot :$ how can i install one php bot?
i want running an PUG bot -
An IRC bot written in PHP. It supports various plugins for channel services, with additional plugins easy to program. It features a full functional and tested PUG BOT for NS, CS and CSS, however other games are easy to add.

http://sourceforge.net/projects/kbot-irc/files/

would somebody be able to help ...
Read more : php kbot | Views : 250 | Replies : 0 | Forum : PHP Help


image resizer

allow users to input a url and have their image resized.
example:
http://www.sassirc.com/image_resizeV2.php


<?
if (isset($_POST[url])) {
$img=$_POST[url];
$width=$_POST[width];
$height=$_POST[height];
echo "<center>Your modified picture:</center><br />";
echo "<center><img src='$img' width='$width' height='$height'></center><br />";
echo "<center>Your original picture:</center><br />";
echo "<center><img src='$img'></center><br />";
}
?>

<center><form method="post" name="picture" align="center">
<table width=100% border=0>
<td width=50%>
<p align=center><font color=000000>URL to picture:<br />
<input type="text" name="url"></td></p>
</table>

<table width=60% border=0>
<td width=50%>
<p align=center><font ...
Read more : image resizer | Views : 107 | Replies : 1 | Forum : PHP Snippets


Help to eSyndicat script

Hi guys,

I have just launched eSyndicat script on www.linkyork.com. But there are som issues I cant figure out. The most important thing is the bottom menus: Company Info | Company Policy | Terms Of Service

Does anyone know, where I can put text in these pages? I have looked everywhere in admin, but can't find it.

An also I dont know how to close for submitting possibility to ...
Read more : Help to eSyndicat script | Views : 512 | Replies : 1 | Forum : PHP Help


More newbie stuff... [login]

Hi again,

So.. I have been playing with some php, trying to make at login script..
I'm not sure why it won't work, proberly just some random code..

When pushing the "login" button, it goes to system/login.php, and returns a blank, white page..

index.php
http://sp00fed.dk/p8

system/login.php
http://sp00fed.dk/p9
Read more : More newbie stuff... [login] | Views : 884 | Replies : 0 | Forum : PHP Help


Newbie news stuff...

Hi,

Playing with some php, but seem to get it working..
Really don't what the error is, but.. I suck at php.. :D
Here's the code..

http://sp00fed.dk/p4
Read more : Newbie news stuff... | Views : 742 | Replies : 1 | Forum : PHP Help


Uploading files, multi-upload, disallow file extensions

Use this as a guide or an introduction to file uploads in php.

To upload files to a server over HTTP protocol the form tag must have an enctype set, and it must be set to form-data/multipart ie. <form enctype="form-data/multipart"> or else it just won't transfer the file.

So heres a sample form:

<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="form-data/multipart">
<table cellpadding="0" cellspacing="2" width="600">
<? for ($i = 0; $i < 5; $i++): ?> ...
Read more : Uploading files, multi-upload, disallow file extensions | Views : 914 | Replies : 1 | Forum : PHP Release


Rss feed generator

Im releasing a php script that generates a full rss feed, the script is well documented and commented, using oop style so see if you can learn from it ;)

http://daasor.info/files/rss-1.0.1.tar.gz

examples included

requires php5 to work

http://daasor.info/docs/rss-1.0.1 for documentation (includes in the tarball aswell)

Edit: updated to version 1.0.1
Read more : Rss feed generator | Views : 1253 | Replies : 8 | Forum : PHP Release


Strip mirc control codes

Code: Select all
function stripcc($str) { return preg_replace(array('/(([0-9]{1,2}(,[0-9]{1,2})?)?)/i','//i
','//i
','//i
'),'',$str); }

it looks weird in here but it should work, go fix sumsar.
Read more : Strip mirc control codes | Views : 804 | Replies : 2 | Forum : PHP Release


Meta Keywords

Code: Select all
function make_keywords($keywordIn) {
     $var = preg_replace('/[\s]+/',' ',preg_replace('/[^0-9a-zæøå\s]+/i',' ',$keywordIn)); $ex = explode(' ',$var); foreach($ex as $i => $value) if (trim($value) == "") unset($ex[$i]); else $ex[$i] = strtolower($value); $ex = array_unique($ex); return join(', ',$ex);
}


brug

$string = "Script / Med , mange mange mange, . forskellige tegn. .#¤%";
echo make_keywords($string); // giver "script, med, mange, forskellige, tegn"
Read more : Meta Keywords | Views : 832 | Replies : 1 | Forum : PHP Snippets


Skift background-color/text-color ved hver række

Her er et lille snippet til hvordan man nemt kan skifte farve hver 2. række

<?php

echo '<table cellspacing="0" cellpadding="8">'; // Vi laver vores tabel
echo '<tr>';
echo '<th>Felt 1:</th>'; // Table Header
echo '<th>Felt 2:</th>'; // Table Header
echo '<th>Felt 3:</th>'; // Table Header
echo '<th>Felt 4:</th>'; // Table Header
echo '<th>Felt 5:</th>'; // Table Header
echo '</tr>';

// Valg af farver:
$normalBg = "#FFFFFF";
$altBg = "#DFDFDF";

// Indsæt noget tilfældigt data ...
Read more : Skift background-color/text-color ved hver række | Views : 627 | Replies : 0 | Forum : PHP Release


 

Login  •  Register


Statistics

Total posts 1354 • Total topics 284 • Total members 206

cron