Re: [PHP-DB] Question on the port PHP uses to connect to remote MySQL

2003-01-29 Thread Matt Vos
In a default setup, I believe the port is 3306. Check your MySQL config files, as this can be changed. Matt - Original Message - From: Louis Feng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 28, 2003 10:34 PM Subject: [PHP-DB] Question on the port PHP uses to connect to

Re: [PHP-DB] Formatting txt from a database

2002-12-12 Thread Matt Vos
$select=select fields from table...; $sres=mysql_query($select); echo mysql_error(); while ($srow=mysql_fetch_row($sres)) { $string=$srow[0]; $no_html=strip_tags($string); if (strlen($no_html) 30) $no_html=substr($no_html,0,30); echo($no_html); } Matt - Original Message

Re: [PHP-DB] PHP Shell Script

2002-11-26 Thread Matt Vos
The exec command, if passed a variable as a second argument, will output the retun of the command to that array, one object per line. In its default use, it will retun only the last line. You may instead wnat to use the cURL functions within PHP to request pages from a server. You may find more