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
$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
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