
Un messaggio di dialogo personalizzato in 4 stili diversi.
Sito web: http://sandbox.leigeber.com/dialog/dialog_box.html
Piccolo minitutorial su come realizzare un file htaccess per riscrivere un url. Supponiamo di volere riscrivere un qualcosa da:
www.sito.com/tutorials.php in www.sito.it/tutorials/
creiamo un bel .htaccess con
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^tutorials/?$ tutorials.php

VoipChat.com
è un servizio di reindirizzamento di un numero voip verso un account skype, quindi è un servizio equiparabile al servizio SkypeIn di Skype Limited.
Skype.com non fornisce ancora una numerazione italiana del suo servizio skypein e qui entra in gioco VoipChat.com che per soli 60 euro iva inclusa fornisce un numero geografico con prefisso a scelta che possiamo reindirizzare verso qualsiasi account skype che è possibile cambiare in qualsiasi momento dal pannello di controllo.
Registrandoti al portale potrai effettuare una prova gratuita di 7 giorni.
Come funziona e come attivarlo
Voip2Chat è composto da 2 servizi, la Virtual Portability (VP) e il gateway skype.
Con il primo (VP) si inseriscono nei nostri sistemi i dati del proprio account voip, dopodiche si attiva il servizio Voip2Chat che funge da reindirizzamento di chiamata del numero voip verso laccount skype.
Acquistando più VP si rende possibile il reindirizzamento di più numeri voip su un UNICO account Skype.
1 - registrarsi al portale, si riceve una mail con il codice di verifica
2 - loggarsi al portale
3 - registrarsi al servizio
4 - accedere con i dati di registrazione al servizio.
NB con la registrazione al portale si ottiene laccesso ai servizi del portale, quali helpdesk e forum,con la registrazione al servizio voip si accede allutilizzo dei servizi voip, quali appunto la configurazione del servizio Voip2Chat.
5 - effettuare il pagamento con paypal: 60,00 .
6 - acquistare la virtual portability (costo annuo 12,00 Euro)
7 - acquistare il servizio Voip2Chat (costo annuo 48,00 Euro)
8 - configurare la Vp inserendo i dati dellaccount voip, username, password, server, provider
9 - configurare Voip2Chat configurando il redirect sullaccount skype.
10 - configurare laccount skype
10.1 - menù strumenti, opzioni, privacy selezionare Consenti a chiunque di contattarmi
Voip2Chat vs SkypeIn
SkypeIn è attivabile in soli 21 paesi
Voip2Chat è disponibile in tutto il mondo!
SkypeIn non è attivo in Italia
Voip2Chat è disponibile in Italia !
SkypeIn funziona unicamente con numerazioni rilasciate da Skype
Voip2Chat è configurabile con qualsiasi provider voip e quindi anche con numeri pre-esistenti!
SkypeIn funziona con un solo numero voip
Voip2Chat può essere configurato in modo che più numeri geografici voip siano associati ad un unico account Skype (servizio di Virtual Portability).
Voip2Chat è integrabile senza add-on con centralini voip.
SkypeIn è legato ad un unico account Skype
Puoi cambiare in qualsiasi momento laccount Skype di riferimento
Prova voip2chat su: http://www.voip2chat.com/
Questo progetto include diverse classo che permettono di generare file MS Excel file (xls) via PHP. I file possono essere anche salvati sul server.
Sito web: http://sourceforge.net/projects/psxlsgen/
Può essere utile questo esempio:
< ?php
/****************************************************************
* Script : PHP Simple Excel File Generator - Base Class
* Project : PHP SimpleXlsGen
* Author : Erol Ozcan
* Version : 0.2
* Copyright : GNU LGPL
* URL : http://psxlsgen.sourceforge.net
* Last modified : 19 May 2001
* Description : This class is used to generate very simple
* MS Excel file (xls) via PHP.
* The generated xls file can be obtained by web as a stream
* file or can be written under $default_dir path. This package
* is also included mysql, pgsql, oci8 database interaction to
* generate xls files.
* Limitations:
* - Max character size of a text(label) cell is 255
* ( due to MS Excel 5.0 Binary File Format definition )
*
* Credits : This class is based on Christian Novak’s small
* Excel library functions.
******************************************************************/
if( !defined( “PHP_SIMPLE_XLS_GEN” ) ) {
define( “PHP_SIMPLE_XLS_GEN”, 1 );
class PhpSimpleXlsGen {
var $class_ver = “0.2″; // class version
var $xls_data = “”; // where generated xls be stored
var $default_dir = “”; // default directory to be saved file
var $filename = “psxlsgen”; // save filename
var $fname = “”; // filename with full path
var $crow = 0; // current row number
var $ccol = 0; // current column number
var $totalcol = 0; // total number of columns
var $get_type = 0; // 0=stream, 1=file
var $errno = 0; // 0=no error
var $error = “”; // error string
var $dirsep = “/”; // directory separator
var $header = 1; // 0=no header, 1=header line for xls table
// Default constructor
function PhpSimpleXlsGen()
{
$os = getenv( “OS” );
$temp = getenv( “TEMP”);
// check OS and set proper values for some vars.
if ( stristr( $os, “Windows” ) ) {
$this->default_dir = $temp;
$this->dirsep = “\”;
} else {
// assume that is Unix/Linux
$this->default_dir = “/tmp”;
$this->dirsep = “/”;
}
// begin of the excel file header
$this->xls_data = pack( “ssssss”, 0×809, 0×08, 0×00,0×10, 0×0, 0×0 );
// check header text
if ( $this->header ) {
$this->Header();
}
}
function Header( $text=”" ) {
if ( $text == “” ) {
$text = “This file was generated using PSXlsGen at “.date(”r”);
}
if ( $this->totalcol < 1 ) {
$this->totalcol = 1;
}
$this->InsertText( $text );
$this->crow += 2;
$this->ccol = 0;
}
// end of the excel file
function End()
{
$this->xls_data .= pack( “ss”, 0×0A, 0×00 );
return;
}
// write a Number (double) into row, col
function WriteNumber_pos( $row, $col, $value )
{
$this->xls_data .= pack( “sssss”, 0×0203, 14, $row, $col, 0×00 );
$this->xls_data .= pack( “d”, $value );
return;
}
// write a label (text) into Row, Col
function WriteText_pos( $row, $col, $value )
{
$len = strlen( $value );
$this->xls_data .= pack( “s*”, 0×0204, 8 + $len, $row, $col, 0×00, $len );
$this->xls_data .= $value;
return;
}
// insert a number, increment row,col automatically
function InsertNumber( $value )
{
if ( $this->ccol == $this->totalcol ) {
$this->ccol = 0;
$this->crow++;
}
$this->WriteNumber_pos( $this->crow, $this->ccol, &$value );
$this->ccol++;
return;
}
// insert a number, increment row,col automatically
function InsertText( $value )
{
if ( $this->ccol == $this->totalcol ) {
$this->ccol = 0;
$this->crow++;
}
$this->WriteText_pos( $this->crow, $this->ccol, &$value );
$this->ccol++;
return;
}
// Change position of row,col
function ChangePos( $newrow, $newcol )
{
$this->crow = $newrow;
$this->ccol = $newcol;
return;
}
// new line
function NewLine()
{
$this->ccol = 0;
$this->crow++;
return;
}
// send generated xls as stream file
function SendFile( $filename )
{
$this->filename = $filename;
$this->SendFile();
}
// send generated xls as stream file
function SendFile()
{
$this->End();
header ( “Expires: Mon, 1 Apr 1974 05:00:00 GMT” );
header ( “Last-Modified: ” . gmdate(”D,d M YH:i:s”) . ” GMT” );
header ( “Cache-Control: no-cache, must-revalidate” );
header ( “Pragma: no-cache” );
header ( “Content-type: application/x-msexcel” );
header ( “Content-Disposition: attachment; filename=$this->filename.xls” );
header ( “Content-Description: PHP Generated XLS Data” );
print $this->xls_data;
}
// change the default saving directory
function ChangeDefaultDir( $newdir )
{
$this->default_dir = $newdir;
return;
}
// Save generated xls file
function SaveFile( $filename )
{
$this->filename = $filename;
$this->SaveFile();
}
// Save generated xls file
function SaveFile()
{
$this->End();
$this->fname = $this->default_dir.”$this->dirsep”.$this->filename;
if ( !stristr( $this->fname, “.xls” ) ) {
$this->fname .= “.xls”;
}
$fp = fopen( $this->fname, “wb” );
fwrite( $fp, $this->xls_data );
fclose( $fp );
return;
}
// Get generated xls as specified type
function GetXls( $type = 0 ) {
if ( !$type && !$this->get_type ) {
$this->SendFile();
} else {
$this->SaveFile();
}
}
} // end of the class PHP_SIMPLE_XLS_GEN
}
// end of ifdef PHP_SIMPLE_XLS_GEN
include( “psxlsgen.php” );
$myxls = new PhpSimpleXlsGen();
$myxls->totalcol = 2;
$myxls->InsertText( “Erol” );
$myxls->InsertText( “Ozcan” );
$myxls->InsertText( “This text should be at (3,0) if header was used, otherwise at (1,0)” );
$myxls->ChangePos(4,0);
$myxls->InsertText( “You must pay” );
$myxls->InsertNumber( 20.48 );
$myxls->WriteText_pos(4,2, “USD to use this class :-))” ); // hidden costs :-))
$myxls->SendFile();
?>





