php-windows Digest 6 Nov 2004 07:55:07 -0000 Issue 2457

Topics (messages 24911 through 24922):

Re: Server-level redirect?
        24911 by: Sean S. Karshis

Re: Apache, PHP4, MySQL installation
        24912 by: Jeroen
        24913 by: Jeroen
        24914 by: Rafael Soares
        24916 by: Jeroen
        24917 by: Jeroen
        24922 by: Jeroen

Re: Cannot load the mysql library
        24915 by: D_Angle

Re: running an exe
        24918 by: Amit Arora
        24919 by: Amit Arora
        24920 by: Amit Arora
        24921 by: Amit Arora

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 ---
If you are not partial to your current 404 error page, set it to a
script that gets the http referer.  Then set up some sort of reference
between the old/new pages (hardcoded array, or a db would work).  If
there is a match - send them over to the new .php page - if not - maybe
give them your old 404 error page.

- Sean

_____________________________
 E L A S T I C H O R I Z O N
http://www.elastichorizon.com
_____________________________

-----Original Message-----
From: Anne Shroeder [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 05, 2004 11:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Server-level redirect?

I'm converting an entire site from .html and .shtml files to .php.
Unfortunately a lot of the internal pages have been bookmarked by users,
and
so what I'd like to do is have a script that checks for the existence of
a
.php file with the same name (e.g. the file used to be contacts.shtml
and
now it is contacts.php) and redirects automatically.    I actually need
to
do this both on an IIS machine as well as Linux - and presumably the
method
will be different for each.

Anne

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

--- End Message ---
--- Begin Message ---
Hello Walter,

No errors, just not the results I want.
I run the following script:

<?

echo "DB connection testing !";

$mySQL = @mysql_connect("localhost", "user", "password")

or exit();

echo "DB selecting !";

if (!mysql_select_db("my"))

exit();

echo "DB connection okay !";

?>

I only see the string DB connection testing.

Regards,

Jeroen

"Phpwalter" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>> Hello,
>>
>> I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
>> Everything runs fine.
>> I also installed MySQL 4.1 and it also runs fine.
>>
>> However when I try to connect to a exisiting database from within a PHP
>> script it fails.
>>
>> I followed several installation tutorials on the net but nu success
>> sofar.
>
> #1 - what errors, if any are you getting
>
> #2 - what kind of display ar you getting?
>
> #3 - try this install dox
>     http://web.torres.ws/dev/php/walters_way
>
>     Works every time.
>
> Walter 

--- End Message ---
--- Begin Message ---
Hello Alex,

No errors, just not the results I want.
I run the following script:

<?

echo "DB connection testing !";

$mySQL = @mysql_connect("localhost", "user", "password")

or exit();

echo "DB selecting !";

if (!mysql_select_db("my"))

exit();

echo "DB connection okay !";

?>

I only see the string DB connection testing.

Regards,

Jeroen
""Alejandro c�sar garrammone"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
I don't know what problem could you have...please put some code, or error.
You can access to the database using the console of mysql?

Best Regards,

Alex
----- Original Message ----- 
From: "Jeroen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 05, 2004 2:52 PM
Subject: [PHP-WIN] Apache, PHP4, MySQL installation


> Hello,
>
> I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
> Everything runs fine.
> I also installed MySQL 4.1 and it also runs fine.
>
> However when I try to connect to a exisiting database from within a PHP
> script it fails.
>
> I followed several installation tutorials on the net but nu success sofar.
>
> Any ideas?
>
> Regards,
>
> Jeroen
>
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Try removing the "@" before "mysql_connect(...);" or adding "mysql_error()"
as a parameter of "exit()" and tell us the error.

Rafael Soares - Ag�nciaM
Fone:  +55 11 4616-1394
 

-----Mensagem original-----
De: Jeroen [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 5 de novembro de 2004 18:51
Para: [EMAIL PROTECTED]
Assunto: Re: [PHP-WIN] Apache, PHP4, MySQL installation

Hello Alex,

No errors, just not the results I want.
I run the following script:

<?

echo "DB connection testing !";

$mySQL = @mysql_connect("localhost", "user", "password")

or exit();

echo "DB selecting !";

if (!mysql_select_db("my"))

exit();

echo "DB connection okay !";

?>

I only see the string DB connection testing.

Regards,

Jeroen
""Alejandro c�sar garrammone"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
I don't know what problem could you have...please put some code, or error.
You can access to the database using the console of mysql?

Best Regards,

Alex
----- Original Message ----- 
From: "Jeroen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 05, 2004 2:52 PM
Subject: [PHP-WIN] Apache, PHP4, MySQL installation


> Hello,
>
> I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
> Everything runs fine.
> I also installed MySQL 4.1 and it also runs fine.
>
> However when I try to connect to a exisiting database from within a PHP
> script it fails.
>
> I followed several installation tutorials on the net but nu success sofar.
>
> Any ideas?
>
> Regards,
>
> Jeroen
>
> -- 
> 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 ---
Hello Alex and Janet,

I tried your things and this is the result after putting mysql_error() as an 
argument for exit().

DB connection testing!Client does not support authentication protocol 
requested by server; consider upgrading MySQL client.

Should I upgrade my PHP installation?


Regards,
Jeroen 

--- End Message ---
--- Begin Message ---
Well,

I've been brave enough to upgrade to PHP5.
The error message disappeared.
But now nothings happens at all.
The mysql_connect(...) function is executed byt never returns.
Right! Whats happening here?

I found this article describing my first problem:
http://dev.mysql.com/doc/mysql/en/Old_client.html

Regards,

Jeroen


"Rafael Soares" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Try removing the "@" before "mysql_connect(...);" or adding "mysql_error()"
as a parameter of "exit()" and tell us the error.

Rafael Soares - Ag�nciaM
Fone:  +55 11 4616-1394


-----Mensagem original-----
De: Jeroen [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 5 de novembro de 2004 18:51
Para: [EMAIL PROTECTED]
Assunto: Re: [PHP-WIN] Apache, PHP4, MySQL installation

Hello Alex,

No errors, just not the results I want.
I run the following script:

<?

echo "DB connection testing !";

$mySQL = @mysql_connect("localhost", "user", "password")

or exit();

echo "DB selecting !";

if (!mysql_select_db("my"))

exit();

echo "DB connection okay !";

?>

I only see the string DB connection testing.

Regards,

Jeroen
""Alejandro c�sar garrammone"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I don't know what problem could you have...please put some code, or error.
You can access to the database using the console of mysql?

Best Regards,

Alex
----- Original Message ----- 
From: "Jeroen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 05, 2004 2:52 PM
Subject: [PHP-WIN] Apache, PHP4, MySQL installation


> Hello,
>
> I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
> Everything runs fine.
> I also installed MySQL 4.1 and it also runs fine.
>
> However when I try to connect to a exisiting database from within a PHP
> script it fails.
>
> I followed several installation tutorials on the net but nu success sofar.
>
> Any ideas?
>
> Regards,
>
> Jeroen
>
> -- 
> 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 ---
Hello everybody,

my problem resided in an incompatible password issue due to an upgrade of 
MySQL.
It thought I could solve it bij upgrading to PHP5 but it didn't.
So I fixed the problem using the OLD_PASSWORD() thing on the following link:
http://dev.mysql.com/doc/mysql/en/Old_client.html

Strange that the upgrade to PHP5 didn't help!
Any ideas?

Regards,

Jeroen 

--- End Message ---
--- Begin Message ---
You have to copy php_mysql.dll to system32 folder
"Rafael Soares" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Hello people!



I'm using PHP 5.0.2, IIS 5.1 running on WinXP Pro.



But the installer for IIS don't install the MySQL functions library and,
after installing the MYSQLX.exe
(http://dev.mysql.com/get/Downloads/Contrib/MYSQLX.EXE/from/pick), I copied
the php_mysql.dll from the PHP 5.0.2 ZIP file to the extensions directory
(php/ext/) and uncommented the line "extension=php_mysql.dll" in php.ini.



When I open the page, I receive the message: "PHP Startup: Unable to load
dynamic library './ext/php/_mysql.dll' - Can't find the specified module". I
don't know if this is the exact message, because the original is in
Portuguese: "(.) - N�o foi poss�vel encontrar o m�dulo especificado".



Note: I have the php_gd2.ddl library installed in the same place and it's
working well, so the path is correct.



I've exhausted my possibilities and can't wonder what is wrong. Please
somebody help me!



Tks



Rafael | Ag�nciaM

Fone: +55 |11| 4616-1394

--- End Message ---
--- Begin Message ---
Duncan,

Jason is right. It is not a  good idea to do this.

However, if you still want to to this, check the exec() function.
htt://www.php.net/exec

Regards,

Amit
www.digitalamit.com

Jason Barnett wrote:
Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck from the way you asked your question I'm not even sure - are you the user or the provider? Give us a little more than this to go on and we'll see if we can't help you out more.

--- End Message ---
--- Begin Message ---
Duncan,

Jason is right. It is not a  good idea to do this.

However, if you still want to to this, check the exec() function.
htt://www.php.net/exec

Regards,

Amit
www.digitalamit.com

Jason Barnett wrote:
Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck from the way you asked your question I'm not even sure - are you the user or the provider? Give us a little more than this to go on and we'll see if we can't help you out more.

--- End Message ---
--- Begin Message ---
Duncan,

Jason is right. It is not a  good idea to do this.

However, if you still want to to this, check the exec() function.
htt://www.php.net/exec

Regards,

Amit
www.digitalamit.com

Jason Barnett wrote:
Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck from the way you asked your question I'm not even sure - are you the user or the provider? Give us a little more than this to go on and we'll see if we can't help you out more.

--- End Message ---
--- Begin Message ---
Duncan,

Jason is right. It is not a  good idea to do this.

However, if you still want to to this, check the exec() function.
htt://www.php.net/exec

Regards,

Amit
www.digitalamit.com

Jason Barnett wrote:
Why would you want to do this? Blindly installing applications from web links is *a bad idea* and dialog boxes are there to help protect users. Heck from the way you asked your question I'm not even sure - are you the user or the provider? Give us a little more than this to go on and we'll see if we can't help you out more.

--- End Message ---

Reply via email to