php-windows Digest 25 Jun 2007 09:21:15 -0000 Issue 3266

Topics (messages 28128 through 28135):

Re: PHP and MYSQL
        28128 by: Bill Bolte
        28129 by: Stut
        28130 by: Leandro Martinez
        28131 by: Bill Bolte

Re: Still with problems
        28132 by: Bill Bolte
        28133 by: Niel Archer
        28134 by: bedul

PHP can't find the php.ini file
        28135 by: Don Denton

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Do you have error reporting turned off?

-----Original Message-----
From: Leandro Martinez [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 8:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and MYSQL

Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing 
happends.  I just get an empty page. All white.  No data and no error!

This is the code

$link = mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);


Can anyone help me?

Thanks 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Bill Bolte wrote:
Do you have error reporting turned off?

And/or display_errors?

-Stut

--
http://stut.net/

-----Original Message-----
From: Leandro Martinez [mailto:[EMAIL PROTECTED] Sent: Friday, June 22, 2007 8:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and MYSQL

Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing happends. I just get an empty page. All white. No data and no error!

This is the code

$link = mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);


Can anyone help me?

Thanks

--- End Message ---
--- Begin Message ---
Where is that?
On MySQL, on PHP.ini or on IIS?



""Bill Bolte"" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
Do you have error reporting turned off?

-----Original Message-----
From: Leandro Martinez [mailto:[EMAIL PROTECTED]
Sent: Friday, June 22, 2007 8:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and MYSQL

Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing
happends.  I just get an empty page. All white.  No data and no error!

This is the code

$link = mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);


Can anyone help me?

Thanks

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

--- End Message ---
--- Begin Message ---
Php.ini, but you can override it in the page with: error_reporting(E_ALL); 

-----Original Message-----
From: Leandro Martinez [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 9:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP and MYSQL

Where is that?
On MySQL, on PHP.ini or on IIS?



""Bill Bolte"" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
Do you have error reporting turned off?

-----Original Message-----
From: Leandro Martinez [mailto:[EMAIL PROTECTED]
Sent: Friday, June 22, 2007 8:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and MYSQL

Hello. I just instaled PHP and MySQL on IIS.
Then from any php file I try to conect to the mysql server and nothing
happends.  I just get an empty page. All white.  No data and no error!

This is the code

$link = mysql_connect('localhost', '[user]', '[pass]');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);


Can anyone help me?

Thanks

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hmm, not sure... 

-----Original Message-----
From: Leandro Martinez [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 22, 2007 9:33 AM
To: Bill Bolte
Subject: Still with problems

Hello there.
Sorry to bother you, but nothing happends here.

Here is all the code:

<?php
error_reporting(E_ALL);

$conexion=mysql_connect("localhost","[user]","[pass]")
  or  die("Problemas en la conexion");
mysql_select_db("otrocampo",$conexion)
  or  die("Problemas en la selección de la base de datos");
$registros=mysql_query("select * from agenda",$conexion) or
  die("Problemas en el select:".mysql_error());

while ($reg=mysql_fetch_array($registros))
{
  echo "idagenda:".$reg['idagenda']."<br>";
  echo "<br>";
  echo "<hr>";
}
mysql_close($conexion);
?>


Thank you so much 




--- End Message ---
--- Begin Message ---
Hi

As Stut has already pointed out, make sure that displaying errors is
enabled.  It does no good to use:

   error_reporting(E_ALL);

if the reports aren't displayed.  This needs to be done with the php.ini
directive  'display_errors' (details here 
http://uk2.php.net/manual/en/ref.errorfunc.php#ini.display-errors).



Niel

--- End Message ---
--- Begin Message ---
don't forget to restart your server??

----- Original Message -----
From: "Niel Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2007 11:13 PM
Subject: Re: [PHP-WIN] RE: Still with problems


> Hi
>
> As Stut has already pointed out, make sure that displaying
errors is
> enabled.  It does no good to use:
>
>    error_reporting(E_ALL);
>
> if the reports aren't displayed.  This needs to be done
with the php.ini
> directive  'display_errors' (details here
http://uk2.php.net/manual/en/ref.errorfunc.php#ini.display-e
rrors).
>
>
>
> Niel
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Please forgive what may be a simple question, but I sure can't figure it
out.

SETUP: I am running apache 2.0.59 on Windows XP home SP2 with php 5.2.3
installed and running.

PROBLEM: PHP is not seeing the config file (php.ini) in c:\windows. Running
phpinfo() yields these results in the mentioned fields:

Configuration File (php.ini) Path
C:\WINDOWS
Loaded Configuration File
(none)

What is going on??? I know the file is there! Why can't php see it? Or am I
just totally misunderstanding?


Thanks so much,
Don

--- End Message ---

Reply via email to