php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10497 Not connect with MySql
Submitted: 2001-04-25 15:52 UTC Modified: 2001-05-01 02:02 UTC
From: erick at citmatel dot inf dot cu Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Windows NT
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: erick at citmatel dot inf dot cu
New email:
PHP Version: OS:

 

 [2001-04-25 15:52 UTC] erick at citmatel dot inf dot cu
Estas dos sentencias si funcionan en la versi?n 4.03 de php, pero en la 4.04pl1 no funcionan; no se conecta php a MySql.
 

 $db = mysql_connect("localhost","root");
 mysql_select_db(portal,$db);

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-25 15:54 UTC] cynic@php.net
please report bugs in English. 
 [2001-04-25 15:56 UTC] 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 16:27 UTC] cynic@php.net
user feedback:
****************
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:
 

<?

$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 16:52 UTC] 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.

 [2001-04-29 04:57 UTC] 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-30 14:49 UTC] 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:50 UTC] 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-05-01 02:02 UTC] sniper@php.net
There is already open bug report from you about
this same problem: #10566


--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC