Site Archives php

swapeCaster


swapeCaster is a free video/music podcasting script.
All you have to do is unzip the files in your web server, put your music/video files under the “files/” directory.
Point your podcast program (iTunes) to the place where you have the feed.php file and it will automatically generate podcast feed.
Configuration:
Just edit the lines in feed.php file to match [...]

favicon2png


Here is a script to download the favicon.ico files from a website and save it as a png file.
You must have imagemagick installed on your server to convert the ico file to png.
 
<!— html code —->
<form action="?" method="post">
<input id="site" name="site" type="text"
value="<?php echo $_POST['site']; ?/>" />
<input type="submit" />
</form>
 
< ?php
//— favicon2png by Alireza Balouch @ swape.net 2008
 
if($_POST[’site’] [...]

swapeForm


Here is an easy php 5 class to make dynamic form table.
I made this class to make dynamic forms. With this class you don’t have to write html code for form and a table.
Here is how to use this class:
 
< ?php
include(’swapeForm.php’);
 
$form = new swapeForm();
$form->add(’Name’); // adding input
$form->setAttrib(’id’ , ‘formName’); // adding atributes to [...]