Yes, you're right about that point since the seed in most cases is computed
from system time => increasing probability of having same number @ the same
request time...
you can change the seed with the time() too (not all days are the same).
hope to hear others' opinions too.
Elias
"Leif K-Brook
if you seed it with unix time then you'll alway be seeding with something
different
in most cases, the random numbers that are generated will be random enough
just my AU2c worth
Martin
-Original Message-
From: lallous [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 13, 2002 6:51 PM
To
Thanks Timo
I figured if it was do-able it would be something like uasort, or uksort
or one of those, but my geek muscles arent quite up to that sort of flex
yet - any one mind giving me some clues as to how to get started using
these functions - the manual gets pretty vague in this area?
Than
Hi,
Friday, September 13, 2002, 12:37:41 AM, you wrote:
rhc> Hi..
rhc> anyone know any function to convert numeric values to word..
rhc> something like this:
1252 -->> one thousand two hundred and fifty two
rhc> Thanks...
Here is a class that will get you started :)
class num_to_text {
what have you already tried?
can you show some code?
Elias
"Bob Bowker" <[EMAIL PROTECTED]> wrote in message
5.1.0.14.2.20020912091817.01ef3c50@localhost">news:5.1.0.14.2.20020912091817.01ef3c50@localhost...
> I have a large binary file (50+ megs) ... I want to read the first 1k
> bytes, make c
Hi,
Friday, September 13, 2002, 12:37:41 AM, you wrote:
rhc> Hi..
rhc> anyone know any function to convert numeric values to word..
rhc> something like this:
1252 -->> one thousand two hundred and fifty two
rhc> Thanks...
Here it is without the typo :)
class num_to_text {
var $mode;
Guys and Gals sorry if this is off topic but I hope someone can answer this
question.
I need some mailing list software that works like this list i.e. its all
done through email and has a web based archive.
I know of mailman but I cannot get it to work and my questions go unanswered
on the mailm
Hello!
Does anybody know the way to calculate exactly memory usage of PHP script,
especially the code part of it and to get any ideas which part of it is
taking the memory ?
For approximate calculation of data part I'm using the following:
function mem_size(&$var)
{
$s_var = serialize($var);
Hi,
I'm trying hard to find out how PHP works internally. Such as, when a
request comes into the apache/php engine,
what happens next. For e.g. for CGI-BIN using perl, a process will be
created for each request and thus is not entirely
scalable. Basically, I'm curious of how it handles the sc
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Help me please. I need $vartwo1 have the same value that $varone1. Look:
function one(){
?>
It is the first release yet, but many powerful function will be added.
Current features:
a.. Multi-file editing.
b.. Drag file from explorer to SSEditor.
c.. Build-in web browser, View script result in SSEditor window, Don't
have to open a web browser out side. of course if you whish, you c
fre, 2002-09-13 kl. 10:31 skrev John Wards:
> Guys and Gals sorry if this is off topic but I hope someone can answer this
> question.
> I need some mailing list software that works like this list i.e. its all
> done through email and has a web based archive.
> I know of mailman but I cannot get i
No you shouldn't.
Define :
$rd1 = $_POST['rd1'];
$rd2 = $_POST['rd2'];
at the begining of your scripts.
http://www.php.net/manual/en/security.registerglobals.php
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Skitum" <[EMAIL PROTECTED]> a écrit
Tony,
You are a star! I can't for the life of me get mailman working with qmail
and I have read every readme i can get my hands on.
I will probably go for one of the others you recomended!!
Your a life saver!
Cheers
John
- Original Message -
From: "Tony Earnshaw" <[EMAIL PROTECTED]>
To
Hi,needs 1 more change
Friday, September 13, 2002, 6:26:10 PM, you wrote:
TR> else{
TR> $res = $res%10;
TR> if($res > 0){
TR> ($left == 0)? $and = '':$and = ' and ';
TR>
Hi,
Mike Smith wrote:
>I am stumped on a project for a receiving system. I'm not sure how to handle
>receiving more than one line item. I can UPDATE ... WHERE id=$detid when I
>have 1 item, but how would I get the SQL to fire X times depending on the
>number of line items I have AND UPDATE the a
You can use http://www.php.net/manual/en/ref.mcrypt.php
Bob Bowker wrote:
> Maybe "reversible hashing of a tar file" is a better way to describe
> what I need ... I want to make a tar file unreadable (at least can't
> be uncompressed) by anyone who doesn't know the key.
>
> Bob.
>
> At 10:43 A
Hello:
I would like to know what tools do you use to generate reports from your PHP
applications. My preferences are:
-Object Oriented
-PDF/HTML Generation
Exists such a tool?
--
Best Regards.
--
QaDRAM Studio, RAD development for the web
http://studio
Open source campaigners and 'evangelists' may be interested in BBC coverage
of a report by the Commission on Intellectual Property Rights (CIPR):
http://news.bbc.co.uk/1/hi/sci/tech/2253270.stm. It talks of medical,
agricultural, industrial, and IT/educational disadvantages placed in front
of the
Is the apache parent process ( the one running under root) getting
larger too?
John Wards wrote:
>After being told off on the dev list I have posted this on this list (I
>thought it was techie enough to go on that list but I was wrong)
>
>I am running a large PHP/MySQL/Apache driven website
Hmm I am unsure as my server crashed on me this morning and restarted it
self so every thing is back to normal (15meg per process)
But I can never remeber noticing a much smaller Apache process. So I would
gues at yes the parent process gets larger too.
I though it was mod_ssl causing the proble
FUDforum is a web based bulletin board software designed in PHP, utilizing a
MySQL or PostgreSQL backend for data storage.
The 2.3.1 release is the second stable release in the 2.3 branch, which
introduces a number of new features as well as speed improvements. Below are
some of the highlights
Add ORDER BY date_col DESC LIMIT 1
Merritt, Dave wrote:
>All,
>
>I apologize up front for being off topic, but I don't want to have to
>subscribe to other lists unless necessary. I know that someone on this list
>should be able to help me out.
>
>I have the SQL string below that I am running.
[snip]
> Also does anyone know how to insert a text on about the 4 or 5 line of a
file using php? I can add text to the end of a file and to the beginning,
but I'm not sure how to do it for specific lines.
>
[/snip]
Ok, I whipped of a quick set of code that I have not tested
We used to do this
Hi,
Iwant to send 2 variable by using a href like that:
a href="bug_detail_user.php?id=$id?reporter_id=$reporter_id"
isnt this possible because it is taking the data id as
$id?reporter_id=$reporter_id...
can anyone tell me how I can manage this..
thanks..
meltem
--
PHP General Mailing Lis
[snip]
Iwant to send 2 variable by using a href like that:
a href="bug_detail_user.php?id=$id?reporter_id=$reporter_id"
[/snip]
a href="bug_detail_user.php?id=$id&reporter_id=$reporter_id"
change the second (and subsequent) question marks to ampersands, which in
effect says
id = $id AND report
Change the second "?" with "&". The ampersand is used to delimit multiple
URI values. Use the ampersand to append any additional name/value pairs as
well.
--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
- Original Message -
From: "Meltem Demirkus" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
Use &
a href="bug_detail_user.php?id=$id&reporter_id=$reporter_id"
Some reading around post methods and passing data between scripts might
be in order to familarize yourself with all the syntax etc.
Hope this helps
--Will
> -Original Message-
> From: Meltem Demirkus [mailto:[EMAIL PRO
Does anyone know how to define a PHP script (within itself) to run as a
certain user. Currently my PHP scirpt runs as "nobody" and I need to change
the user it runs as temporarily to get certain permissions to update a file.
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsub
Then I would not think it's php issue, as php is called by forked
children.
There might be also problems in the libraries, so check for updates.
Sorry, cannot help you more.
John Wards wrote:
>Hmm I am unsure as my server crashed on me this morning and restarted it
>self so every thing is bac
Hi,
this seems to be a problem with headers. Try this:
Note: directory for writing new image must have chmod 777 and sticky bit
(+t) permissions and may not in webroot
"Brian & Shannon Windsor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying
[snip]
Does anyone know how to define a PHP script (within itself) to run as a
certain user. Currently my PHP scirpt runs as "nobody" and I need to change
the user it runs as temporarily to get certain permissions to update a file.
[/snip]
A running script cannot change its own permissions, and i
Is this the appropriate way to handle this?
' . "\n";
?>
What's everyone else do? I'm not missing something here am I?? :)
-B
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is this the appropriate way to handle this?
' . "\n";
?>
What's everyone else do? I'm not missing something here am I?? :)
[/snip]
You can also place the XML declaration outside of the php tags. I have been
able to get proper validation both ways.
HTH!
Jay
--
PHP General Mailing Li
When I do that PHP complains about the -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 13, 2002 9:28 AM
> To: 'Brian V Bonini'; 'PHP Lists'
> Subject: RE: [PHP] xml declaration
>
>
> [snip]
> Is this the appropriate way to handle this?
>
>
Use $amp; if you need to validate xhtml
> -Original Message-
> From: Will Steffen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 13, 2002 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] a href...
>
>
> Use &
>
> a href="bug_detail_user.php?id=$id&reporter_id=$reporter_id
ezmlm
Justin
on 13/09/02 6:31 PM, John Wards ([EMAIL PROTECTED]) wrote:
> Guys and Gals sorry if this is off topic but I hope someone can answer this
> question.
>
> I need some mailing list software that works like this list i.e. its all
> done through email and has a web based archive.
>
>
[snip]
When I do that PHP complains about the echo '' . "\n";
> ?>
>
> What's everyone else do? I'm not missing something here am I?? :)
[/snip]
Try
\n");
?>
I just copied this from a page that I have that validates properly
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To u
39 matches
Mail list logo