RE: [PHP-WIN] transation in Perl

From: Date: Fri, 04 Aug 2000 00:14:44 +0000
Subject: RE: [PHP-WIN] transation in Perl
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-1537@lists.php.net to get a copy of this message
You can't use a fqdn in an SSI include/exec directive. Try this instead: <script language="javascript" src="http://www.vitaveska.com/free/articolo_home.php3"></script> Ignatius > -----Original Message----- > From: Andres Baravalle [mailto:andres.baravalle@tiscalinet.it] > Sent: Thursday, 3 August 2000 22:06 > To: php-windows@lists.php.net > Subject: [PHP-WIN] transation in Perl > > > I have 2 web spaces, and I have some problems with Php in one > of these. > 1- php is in port 81 (in the other space and in my computer is in the > defaul port) > 2- php is _always_ down, more or less every day > 3- I have in this space my principal site, so I _can't_ stop > using it at > all, even because I have just paid for a year. > > I need to access to a database in mysql from the home page, > retrieving the > some data from the last article I wrote and I put in my database. > I wrote it in php: > > <?php > $db = mysql_connect("localhost","*****","*****"); > mysql_select_db("lanfranchi_co_uk",$db); > $sql = "SELECT max(id),titolo,sintesi,data FROM > area_riservata_articoli > group by id"; > $result = mysql_query($sql,$db); > #echo "\n<table width=100%>\n"; > if ($myrow = mysql_fetch_array($result)) > { > echo ("<table>"); > do > { > printf ("<tr><td><p><b>%s</b> > (%s)</p></td></tr>",$myrow[1], $myrow[3]); > printf ("<tr><td>%s <a > > href=\"articolo.php3?id=%s\">continua</a></td></tr>",$myrow[2] > , $myrow[0]); > } > while ($myrow = mysql_fetch_row($result)); > echo ("</table>"); > } > else echo "Spiacente, amico, niente risultati per questa domanda."; > ?> > > and works very well. > Now I need to use it... > I though I could use SSI: > > <!--#exec cgi=" >http://www.vitaveska.com/free/articolo_home.php3" --> > > but I doesn't work because I need and internal path. > Any one can help me to use my php code? Or any one can help > me traslating > it in perl? > At least Perl works. > Thanks in advance, > Andres Baravalle > > > __________ > > http://www.baravalle.co.uk > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#1537) next »