, since database have good
sorting algorithms and are designed to manage large numbers.
graeme.
bo wrote:
I need to generate 10million 12-char string and I am able to do so, however
the problem is how to avoid repetition keeping each string unique? it will
be a disaster to compare each string
le is okay then enter the while loop, close
the file after the loop. That should male you code a bit clearer (and
avoid 50 million file writes!!!). Next indent appropriately that will
make it is easy to see what is going on.
graeme.
bo wrote:
Following my code is to write a 15digit random
t;";
$result = mysql_query($SQL,$connection);
2) Check on the result returned from MySQL.
try the last successful and the first failed query through the command
line. You might learn something, at least I hope you do!
all the best,
graeme.
John wrote:
I have code that querys a mysql server a
helps,
graeme
JC Botha wrote:
Hi Jin,
Yes that also buged me, had no idea why it does that. I also battled
with this one for a while. Perhaps there are more on the mailing list
that got some info on this technical point.
Thanks for your intrest!
Chris
On 4/21/05, Wu, Jin Yong <[EMAIL PROTECTED]> wro
inary, a rational fraction in binary.
graeme.
JC Botha wrote:
It is possible, and "10.642868165785" is incorrect. The question says
"$x is a number between 1 and 10 and has 2 decimal places."
Try again, if more try then I will post the source code that generates
the asnwer?
Well the closest I got was $x = 8.36 but that only gave 4277126.8 So is
this question dependent upon the floating point arithmetic that is used?
graeme
JC Botha wrote:
It is possible, and "10.642868165785" is incorrect. The question says
"$x is a number between 1 and 10 and has 2
phpinfo() displayed.
hope this helps.
graeme.
JC Botha wrote:
Ok, I did the phpinfo() and only the SQLlite is listed there, no MySQL
is listed. I did enable the php_mysql.dll and set the windows path to
c:\php. What else it there that I can look at. Thanks for all the
links sent to me, I read them a
roved?" Obviously there is no universal panacea.
graeme.
martin hochreiter wrote:
Hi there!
I'm not the experienced php user, but I've been using
php for a while and I've already written some bigger
applications with it.
These bigger applications are the 'problem', I k
Also use $_SESSION rather than HTTP_SESSION_VAR.
Mike wrote:
You need to make sure that in your second page that you're starting the
session - if you don't do this then that second page will never have access
to those session variables.
-M
-Original Message-
From: Richard Duval [mailto
To reiterate what others have said avoid user input as your primary key,
an auto increment would be better.
But to get back to your validation problem, you might want to look up
the strtotime() function
graeme.
S.D.Price wrote:
Thanks for this George. I am populating the datetime field from
Hi,
I've not done what you want but if I understand you correctly then it is
possible with the HTTP redirect header. A Quick google should help out.
graeme
Jim MacDiarmid wrote:
Is there a way to programmatically add timed redirection to a page? I have
a page with a form on it. Once
r;
... and then close the database connection and other tidying up tasks...
As I said it's straight from the book, so I hope it helps!
graeme
MikeA wrote:
I had tried that once but then I was requested the download the file. But I gave your suggestion a
shot and I am getting an error message s
Here are a few steps to try:
Go to your favourite text editor and open the file, what do you see?
If the contents are there then go back to your script and read the file
using *file_get_contents(filename)*
graeme
Patrick Roane wrote:
I created a form that asks for the users 1st and last
name. I
try to look it up
for you. But this should at least get you going on testing getting your
image from the database.
graeme
MikeA wrote:
I am trying to output a JPG image to the browser without creating a file. I
have tried several
things but nothing seems to work. I sure could use a whole lo
If you note in my text I had said number. 5.7 is a number. If you want
to convert the number to an integer then there are a number of php
functions to do that. It all depends on how you want the conversion to
be done but a type cast (int) will eventually be necessary.
graeme
BENJAMIN LAMBE
ou'll need
to write your own function for that.
graeme
Louis Young wrote:
Hi there
What's the function to convert a string to an int.
Cheers
Louis
--
Experience is a good teacher, but she sends in terrific bills.
Minna Antrim
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscr
The function strpos might be better, preg_match is a bit of overkill
if (strpos($mail,'@') == false)
// error message
else
// okay message
graeme.
Dean Hayes wrote:
Try this i got this working without any problems prints everything out
nice an neetly
global $user;
gl
use a tag, or equivalent such as a pair.
graeme.
[EMAIL PROTECTED] wrote:
>Hi
>
> I'm new in php, I find the "\n" dosen't work in my machine
>
>
>
>
>echo "Hello World!";
>?>
>
>
>
>
>First PHP page
>
>echo "
dead) in a cache waiting to walk again?
session_start();
$_SESSION = array();
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}
session_destroy();
I've tried adding a call to session_write_close(); but no joy.
Any advice would
e
echo $number;
echo "";
var_dump($digit);
echo "";
?>
graeme
susilo wrote:
Does everyone know how to convert Nominal Number into string spelling in
PHP ?.
Like this :
Nominal Number : 567.123.560
And the spelling string/word have to be like this :
"Five Hundred Sixty
20 matches
Mail list logo