PHP 4.0 Bug #10497 Updated: Not connect with MySql
| From: | erick at citmatel dot inf dot cu | Date: | Mon, 30 Apr 2001 18:49:21 +0000 |
| Subject: | PHP 4.0 Bug #10497 Updated: Not connect with MySql | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53117@lists.php.net to get a copy of this message | ||
ID: 10497
User Update by: erick@citmatel.inf.cu
Old-Status: Feedback
Status: Open
Old-Bug Type: MySQL related
Bug Type: Filesystem function related
Description: Not connect with MySql
this script don't work
<?
$file=fopen ("ftp://user:password@localhost/administrador/servicios.inc","w");
fputs($file,"Algo");
fclose($file);
?>
Previous Comments:
---------------------------------------------------------------------------
[2001-04-29 04:57:52] sbergmann@php.net
The error message 'Maximum execution time of 30 seconds exceeded' doesn't need to be
related to MySQL, as it just says that your script's running time is longer than allowed.
Do you get, apart from that, any error message that indicates a relation to MySQL?
On first look your code looks okay, could it be that your query just consumes much time?
---------------------------------------------------------------------------
[2001-04-25 16:52:29] erick@citmatel.inf.cu
this is the error:
Fatal error: Maximum execution time of 30 seconds exceeded in D:Mis DocumentosWebtempok.php on line
2
and this is the script in php:
<?
$db = mysql_connect("localhost","root");
mysql_select_db(portal,$db);
$query = "select hora from noticias order by fecha";
$r_noticias = mysql_query($query);
$rw_noticias = mysql_numrows($r_noticias);
if ($rw_noticias)
while($a_noticias = mysql_fetch_array($r_noticias)) $hora= $a_noticias[hora];
.......
?>
ok. thanks.
---------------------------------------------------------------------------
[2001-04-25 16:27:44] cynic@php.net
user feedback:
****************
this is the error:
Fatal error: Maximum execution time of 30 seconds exceeded in D:Mis DocumentosWebtempok.php on line
2
and this is the script:
<?
$db = mysql_connect("localhost","root");
mysql_select_db(portal,$db);
$query = "select hora from noticias order by fecha";
$r_noticias = mysql_query($query);
$rw_noticias = mysql_numrows($r_noticias);
if ($rw_noticias)
while($a_noticias = mysql_fetch_array($r_noticias)) $hora= $a_noticias[hora];
.......
?>
****************
please, use the web interface for future updates
---------------------------------------------------------------------------
[2001-04-25 15:56:20] cynic@php.net
ah, right:
this worked in 4.0.3 but doesn't work in 4.0.4 pl1, right?
what error message do you get?
---------------------------------------------------------------------------
[2001-04-25 15:54:35] cynic@php.net
please report bugs in English.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
Full Bug description available at: http://bugs.php.net/?id=10497