[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
Re: [PHP-WIN] Apache, PHP4, MySQL installation
Hello Walter, No errors, just not the results I want. I run the following script: 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Apache, PHP4, MySQL installation
Hello Alex, No errors, just not the results I want. I run the following script: 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
Re: [PHP-WIN] Apache, PHP4, MySQL installation
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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Apache, PHP4, MySQL installation
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: 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Apache, PHP4, MySQL installation
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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP4 + IIS 5.1
Hi, I was just trying to install php4 from php.net manually, but things didn't work out the way I hoped. My browser just won't recognise php-files and send them to php.exe. Can anyone give me some pointers? I don't know shit about the configuration of IIS so the problem could be with that as well. Thx! Jeroen -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] use MS publisher COM object
Hello, Does anyone know how I can get the properties (File / Properties) from a Microsoft Publisher file by using it's COM-objects? And I want to save a Microsoft Publisher document as a text-document (.txt) by using it's COM-objects. I only can save it as a rtf-document. I have already got this code working: $instance = new com("publisher.application"); $instance->Open("C:\\xxx.pub"); $instance->ActiveWindow->Visible = 0; $instance->ActiveDocument->SaveAs("C:\\test.txt", 6, 0); // dont work... $instance->ActiveDocument->Close(); $instance->Quit(); $instance->Release(); $instance = null; Thanks! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Prevent error output from shell_exec
On Sat, 22 May 2004, Paul J. Smith wrote: > I've tried >null and various other things to no > effect. Anyone know how to do this on a windows platform? > Redirecting to NUL (not null) should do the trick. -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers were consciously designing a product for people not as smart as them. -- Paul Graham -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Prevent error output from shell_exec
On Sat, 22 May 2004, Paul J. Smith wrote: > > Any other ideas? > If you just want to prevent the error showing up in the output of yout php script you could use output buffering. e.g.: ob_start(); // start buffering system(); // execute your stuff ob_end_clean(); // silently discard the output -- Jeroen Mostly, when you see programmers, they aren't doing anything. One of the attractive things about programmers is that you cannot tell whether or not they are working simply by looking at them. Very often they're sitting there seemingly drinking coffee and gossiping, or just staring into space. What the programmer is trying to do is get a handle on all the individual and unrelated ideas that are scampering around in his head. -- Charles M Strauss -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Prevent error output from shell_exec
On Sat, 22 May 2004, Jeroen Serpieters wrote: > > e.g.: > > ob_start(); // start buffering > > system(); // execute your stuff > > ob_end_clean(); // silently discard the output > If you want to log the output you could grab the buffered output with ob_get_contents(), save it somewhere and then do ob_clean() -- Jeroen Describing the difference between computer hardware and software: "Those parts of the system that you can hit with a hammer (not advised) are called hardware; those program instructions that you can only curse at are called software." -- From Levitating Trains and Kamikaze Genes -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Can someone tell me how to set an image transparent?
On Sun, 23 May 2004, Daniel Anderson wrote: > > The PHP Documentation is all well and good, but not one person on it is talking > sense. > $color = imagecolorallocate( $img_resource, 255, 255, 255 ); // white imagecolortransparent( $img_resource, $color ); Al you have to do is say which color you want to be transparent. -- Jeroen Anybody who thinks a little 9,000-line program [Java] that's distributed free and can be cloned by anyone is going to affect anything we do at Microsoft has his head screwed on wrong. -- Bill Gates -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Ampersand before function name
On Tue, 25 May 2004, Ross Honniball wrote: > > function & funcname ($parm) {} > With the ampersand you return a reference to a variable instead of the value. -- Jeroen Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Martin Golding -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Transfering database
On Wed, 26 May 2004, Sudeep Zamudra wrote: > > I have dumped my entire database into files with extension '.sql' (separate file for > each table). Now please tell me any function or statements if any to tranfer the > contents of the file(i.e table structure and table contents) into a new database > which is on another database server. I guess there is a statement for this. Help > please. > mysql -u username -p database < C:\path\to\your\dump\file.sql -- Jeroen There are only two kinds of programming languages: those people always bitch about and those nobody uses. -- Bjarne Stroustrup -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] downloaded PHP Code pro
from http://www.phpide.de/ anyone who has used this? Looks very good but I want to debug my code and I can't set any breakpoints or whatever and that is why I downloaded it in the first place. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php