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
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].'-
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.
// 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
/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
21 matches
Mail list logo