Re: [PHP-WIN] n00b cannot start MySQL

2007-07-27 Thread Kevin Smith
Try telnet'ing on port 3306, which is the default port that MySQL runs on. Abhisek Dutta wrote: I am an extreme n00b here in PHP. just started learning PHP. Can't start MySQL. The command-prompt says: /Can't connect to MySQL server on 'localhost./ 'telnet localhost 10061' gives: /Connecting to

Re: [PHP-WIN] formating a string

2007-05-12 Thread Kevin Smith
The this instead. BTW, you misunderstood the useage of substr, see http://uk.php.net/manual/en/function.substr.php. $code = 'abcdwxyz8765'; $string = array(); array_push($string,substr($code,0,4)); array_push($string, substr($code,4,4)); array_push($string, substr($code,8,4)); echo $string[0].'-

Re: [PHP-WIN] Reload/refresh web page

2007-05-04 Thread Kevin Smith
I'll go with Bill's suggestion. Just track whether the page has already been loaded. Bill Bolte wrote: Can we ask why you need a reload every time? Maybe there's a better approach? But, if you need to reload the first time someone hit's a page, add a querystring value to the url and track it.

Re: [PHP-WIN] Reload/refresh web page

2007-05-04 Thread Kevin Smith
// The argument to the location.reload function determines // if the browser should retrieve the document from the // web-server. In this example all we need to do is cause // the JavaScript block in the document body to be // re-evaluated. If we needed to pull the document from // the web

Re: [PHP-WIN] Regular expression

2007-04-25 Thread Kevin Smith
A little more precise to what you asked for: Mikael Grön wrote: Hey all! I'm in panic! I need a regex that returns true on strings containing both 'update' and 'where 1 = 1'. Both must be case insensitive and there might be spaces between the 1's and the '=', and there might not.. Some nitw

Re: [PHP-WIN] Regular expression

2007-04-25 Thread Kevin Smith
Here's a very simple one I just knocked out in a few seconds: Mikael Grön wrote: Hey all! I'm in panic! I need a regex that returns true on strings containing both 'update' and 'where 1 = 1'. Both must be case insensitive and there might be spaces between the 1's and the '=', and there migh

Re: [PHP-WIN] base64 encoded images and printing

2007-03-06 Thread Kevin Smith
ind a login, so I can't give you a url at the moment. I'll check on the filesize and see what I'm getting... ---- *From:* Kevin Smith [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, March 06, 2007 9:23 AM *To:* Bill Bol

Re: [PHP-WIN] base64 encoded images and printing

2007-03-06 Thread Kevin Smith
Am I doing the filesize correctly? -Original Message- From: Kevin Smith [mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 4:40 PM To: Bill Bolte Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] base64 encoded images and printing Hi Bill, This is what I've used for the

Re: [PHP-WIN] base64 encoded images and printing

2007-03-05 Thread Kevin Smith
viously being an image. It's good practice to put these headers in anyway. Hope this helps. Regards, Kevin Smith Bill Bolte wrote: Update, I have it working in IE7 but not IE6. I can view it in both IE6-7, but it only prints in IE7. here's what I'm doing... '; ?> fe

Re: [PHP-WIN] Variables

2006-12-08 Thread Kevin Smith
If the query only ever returns 1 row then like this: $sql = "SELECT caa44340041, caa442400042 FROM caa44340, caa44240 WHERE caa443400018 = caa442400018; $result = ifx_query($sql, $connect_id) or die ("couldn't execute the query"); $row = fetch_assoc_array($result); $first_name = $row['caa4434

Re: [PHP-WIN] Re: Decryption

2005-11-29 Thread Kevin Smith
I think this will solve your problems, here is real working code. class ENCRYPTION { var $KEY = "NEED_A_DECENT_KEY"; //Encrypt Function function encrypt($string) { $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND); $passcrypt

Re: [PHP-WIN] Re: fwrite()

2005-11-08 Thread Kevin Smith
Submit you're code to the list and let's see if we can help you. JC Botha wrote: Dear Rosty Thanks for your input, but it does not change the situation at all! :( Please let me know if there is something else that you think about. Greetings JC -Original Message- From: Rosty Kere

Re: [PHP-WIN] Create A Format Toolbar

2005-10-21 Thread Kevin Smith
This should take care of all your needs. Open Source too. ;) http://www.fckeditor.net/ Regards, Kevin kaizer boab wrote: I am building a news system and in the edit news page I would like to have a formatting toolbar for making text bold, italic or create an ordered or unordered list. At

Re: [PHP-WIN] Re: Calling MSSQL Stored Procedure

2005-09-16 Thread Kevin Smith
the parameter as this: $PMdb->InParameter($SQL, $ActualDate, "@Today"); Regards, Kevin Smith Mark Rees wrote: The type problem in not in PHP but in SQL Server. The sp expects an input parameter of type datetime, and it isn't getting one. http://www.php.net/functi

Re: [PHP-WIN] PHP & GD on Windows

2005-06-17 Thread Kevin Smith
Hey, I have VS so if you want to give me the instructions on compilation, I'd be happy to do it for you. Regards, Kevin Jason Barnett wrote: In which case you might be out of luck... I've tried building from source with cygwin / gcc, but every binary that I've tried building that way segfau

Re: [PHP-WIN] PHP5 and MySQL

2005-04-15 Thread Kevin Smith
Perhaps posting you code will help us resolve your problem. JC Botha wrote: Dear Users I'm havin a problem to connect to MySQL through the use of PHP5. I followed all documentation and none seem to resolve the problem. I'm running WinXP on the computer that I use to develop the apps. Any advice out

Re: [PHP-WIN] replacing file contents

2005-04-11 Thread Kevin Smith
line, if the HTML code is wrapped onto two lines, then you have a problem. Obviously, there are workarounds, but for now try the above. You may also want to look at preg_ as this is a more efficient mehtod of regexp's. Regards, Kevin Smith Luis Moreira wrote: Hi I, for one, have never don

[PHP-WIN] eval function

2003-02-25 Thread Kevin Smith
Hi All, Does anyone know why this won't work? I'm trying to retrieve the contents of a $_POST name dynamically depending on a unique value as below. // Works great $_POST['ADDRESS_ID_1'] // Does work. But shows a blank value, no errors. $numb=1; eval("\$_POST['ADDRESS_ID_".$numb."'];"); Any i

Re: [PHP-WIN] HELP !!!

2002-11-23 Thread Kevin Smith
hi Kata, Hmmm are you still defining $a=123 and then on the next defining $a = adadada, if so, then the syntax for $a should be : $a = "adadada"; for text and $a = 123; for numbers Regards, Kevin - Original Message - From: "kata" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP-WIN] PHP FTP Module Functions

2002-11-23 Thread Kevin Smith
version have this already compiled into it with the Binary installer or zip package? Regards, Kevin Smith -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Upgrade to 4.2.1 stops script from working

2002-06-22 Thread Kevin Smith
/auctionoutput.php?jpegifimage=1997n1998teds. jpeg&createAuctionPage=Create Notice: Undefined variable: jpegifimage in c:\apache\htdocs\www.lemonlaineydesign.com\www\ebay\auctionoutput.php on line 2 CODE: This was working perfectly with 4.1.1 until I upgraded... any ideas? Regards, Kevin S