Skip navigation

Tag Archives: php

FireDB the state of the art of extjs based projects, powered by PHP.

Let’s go to ExtJS Conference

forums.sun.com

Annunci

La diffusione del Preprocessore di Html hasuperato Python e C#;
se ne sono accorti anche a Redmond
IBM é sempre un passo avanti.

tutto questo mi piace

un estratto preso da www.tizag.com (….Founded in August 2003, Tizag.com was created to be a stepping stone to the budding webmaster and a handy reference to the veteran developer….)

PHP:

Compared to ASP, PHP is very easy to pick up and learn a little at a time.

However, businesses do not readily embrace PHP for many reasons. A great deal of companies are running operating systems such as Windows Server 2003 or one of the Window NTs, which have been optimized to run Microsoft’s proprietary language ASP.

ASP:

As far as programming languages go, ASP is definitely not as straightforward as PHP. The language has a “plethora”(ndr. An excess of blood in the circulatory system or in one organ or area) of confusing programming patterns that will take a while to learn. Besides that difficulty, there is also much less free information on the internet

ASP and ASP.NET are widely used in the business world

SO:

Are you looking for a job and have time and resources to learn a rather difficult technology? Learn ASP. Want to program in your spare time, as more of a hobby than a career? PHP will treat you just fine

Un pezzo di uno script PHP che interroga un Web Service che restituisce informazioni su una città (fuso orario, nome, etc) sapendo le sue coordinate (latitudine e longitudine).

<?
// Costruisco l’URL
$lat = “45.28”;
$lon = “9.10”;
// Richiamo l’URL e catturo l’output XML

$dati = simplexml_load_file($url);
// Stampo il contenuto del blocco <offset>
echo $dati->offset;
// Fine

?>

Il servizio restituisce in output un file XML cosi:

<timezone xsi:noNamespaceSchemaLocation=”http://www.earthtools.org/timezone-1.1.xsd”&gt;
<version>1.1</version>
<location>
<latitude>45.28</latitude>
<longitude>9.10</longitude>
</location>
<offset>1</offset>
<suffix>A</suffix>
<localtime>6 Feb 2008 11:50:06</localtime>
<isotime>2008-02-06 11:50:06 +0100</isotime>
<utctime>2008-02-06 10:50:06</utctime>
<dst>False</dst>
</timezone>