#10497 [Com]: Not connect with MySql
| From: | babe-cam137 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:01:39 +0000 |
| Subject: | #10497 [Com]: Not connect with MySql | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62817@lists.php.net to get a copy of this message | ||
ID: 10497
Comment by: babe-cam137 at hotmail dot com
Reported By: erick at citmatel dot inf dot cu
Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows NT
PHP Version: 4.0.4pl1
New Comment:
<a href=http://h-hairy-blonde-fist.da.ru>cam
babe</a>
Previous Comments:
------------------------------------------------------------------------
[2001-05-01 02:02:09] sniper@php.net
There is already open bug report from you about
this same problem: #10566
--Jani
------------------------------------------------------------------------
[2001-04-30 14:50:05] erick at citmatel dot inf dot cu
this script don't work
<?
$file=fopen("ftp://user:password@localhost/administrador/servicios.inc","w");
fputs($file,"Algo");
fclose($file);
?>
------------------------------------------------------------------------
[2001-04-30 14:49:20] erick at citmatel dot inf dot cu
this script don't work
<?
$file=fopen
("ftp://user:password@localhost/administrador/servicios.inc","w");
fputs($file,"Algo");
fclose($file);
?>
------------------------------------------------------------------------
[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 at citmatel dot inf dot cu
this is the error:
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Mis
Documentos\Web\temp\ok.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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/10497
--
Edit this bug report at http://bugs.php.net/?id=10497&edit=1