php-general Digest 18 Dec 2007 09:05:11 -0000 Issue 5187

2007-12-18 Thread php-general-digest-help

php-general Digest 18 Dec 2007 09:05:11 - Issue 5187

Topics (messages 265993 through 266008):

Re: nested array...
265993 by: Richard Lynch

Re: re-compiling PHP on Mac OS X
265994 by: Frank Arensmeier

Re: Writing text into images, and setting text size
265995 by: Richard Lynch
265997 by: Al
266001 by: Dave M G
266005 by: Andrés Robinet
266006 by: Andrés Robinet

Re: PRG pattern - how to implement a load page using GET
265996 by: Richard Lynch
265998 by: Robert Erbaron

PHP Session Vars  Flash Movie
265999 by: Luis Magaña

PHP translation needed
266000 by: Grace Shibley
266003 by: Casey

XML Extraction
266002 by: VamVan
266004 by: Nathan Nobbe

Re: Generating Random Numbers with Normal Distribution
266007 by: tedd

export data to a ms excel file using php
266008 by: abderrazzak nejeoui

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
On Mon, December 17, 2007 8:48 am, opo jal wrote:
 hi, i have a nested array
 ex:
 print_r($nestedarray):
  Array(
  [0]=Array([id]=1 [name]=name1 [etc]=etc1)
  [1]=Array([id]=2 [name]=name2 [etc]=etc2)
  [3]=Array([id]=3 [name]=name3 [etc]=etc3)
  )

 if I want to check whether id=5 is in that $nestedarray, how to do
 that?!?!

 i'd really appreciate the help..

I would have built the arrays with the ID as the index in the first
place, and then used http://php.net/isset, but maybe that's just me...

You could mess with in_array I suspect, or write an array_map that
stores the ID when you hit it...

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
---End Message---
---BeginMessage---

17 dec 2007 kl. 18.23 skrev David Powers:


Frank Arensmeier wrote:
When you install PHP5 with the package from entropy.ch, the new  
PHP5 will install under /usr/local/php5.


The Mac package from entropy.ch is not compatible with Leopard (Mac  
OS X 10.5). Marc Liyanage is working on a Leopard-compatible  
version. Check the forum on his site for the latest details.  
There's an extremely long thread about PHP on Leopard. A command  
line installation is somewhere around page 15 of the thread.


Thanks for the information! As a matter of fact, although I already  
have a Leopard DVD, I haven't updated my development machine yet. My  
impression of Leopard (installed on my iMac at home) is that the OS  
still is somewhat unstable. I'll wait for 10.5.2 / 10.5.3


//frank



--
David Powers

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---End Message---
---BeginMessage---
On Sun, December 16, 2007 7:59 pm, Dave M G wrote:
 I've been able to write text into an image using the default fonts
 available, with this command:

 ImageString($image, 5, $x - 20,$y-10, $text, $textColour);

 The problem is that the font that is identified by the index 5 is
 too
 small. But it seems that it can't be scaled in any way.

Have you tried 0, 1, 2, 3 and 4?

They are all built-in and different sizes.

 So I thought I would try to specify a font and try something like
 this:

 $font = '/usr/share/fonts/truetype/freefonts/FreeSans.ttf';
 $imagettftext($image, 20, 0, $x, $y-10, $textColour, $font, $text);

 But I'm clearly not doing things quite right, and I have some
 questions:

 1. 'FreeSans.ttf' is in my /usr/share/fonts/truetype/freefonts
 directory. But specifying it doesn't seem to work. How do I get the
 system to find the font?

This should work, according to the docs...

Can the FreeSans.ttf file be read by the PHP user?

 2. I need the scripts I'm writing to be portable, so can I be sure of
 what fonts will be available, and will I be able to locate them?

You are plain out of luck here.
There is NOTHING you can rely on for fonts installed at all, much less
where they will be.
You'd have to package them in with your own software to be safe.

And that may open up licensing/legal issues...

 3. I'm not really concerned about what font it is, just that it's
 large
 and readable. If there are other options than what I've explored here,
 then I would be open to those too.

You could draw the image with a smaller font, and scale the whole
image up...

But that would usually not work well, as the scaling up has to
interpolate pixels, which rarely looks good...

You could also try using:
$font =
imageloadfont('/usr/share/fonts/truetype/freefonts/FreeSans.ttf');
if (!$font){
  error_log(Unable to load font!);
  $font = 5; //fall back to built-in font #5
}
ImageString($image, $font, $x - 20,$y-10, $text, $textColour);

-- 
Some people have a gift link here.
Know what I want?
I 

[PHP] export data to a ms excel file using php

2007-12-18 Thread abderrazzak nejeoui
can you help me to export data to a ms excel file using php. i tried to
export them to an html format and change the extension to .xls that's work
but i have lost the formatting

excel and the navigator doesn't interpret my code in the same why (celles
are not in the same size)


RE: [PHP] export data to a ms excel file using php

2007-12-18 Thread Edward Kay

 can you help me to export data to a ms excel file using php. i tried to
 export them to an html format and change the extension to .xls that's work
 but i have lost the formatting

Save the data from PHP in comma separated value (CSV) format.

Edward

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: [PHP-DB] force to download file

2007-12-18 Thread Richard Heyes

i have this on top of my php page:

header(Content-Type: application/vnd.ms-excel);
header(Content-Disposition: inline; filename=excelfile.xls);

but it is not prompt to save the file instead it opens right in IE.

my question is how do i force the browser prompts to save the file?


?php
header('Content-Disposition: attachment; filename='.$filename.'');
?

That should do the trick, but if not then try adding the Content-Type 
header from below.



?
function force_download($filename,$dir='./') {
if ((isset($file))(file_exists($dir.$file))) {
header(Content-type: application/force-download);
header('Content-Disposition: inline; filename='.$dir.$filename.'');
header(Content-Transfer-Encoding: Binary);
header(Content-length: .filesize($dir.$filename));
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.$filename.'');
readfile($dir.$filename);
} else {
echo No file selected;
}
}
?


FYI You have Content-Disposition twice; you only need the second.

--
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Writing text into images, and setting text size

2007-12-18 Thread Dave M G

Rob,

Thank you for responding.


Try the following:
... you load PrintImage.php into your browser and you'll get a nice gray rectangle with the word Works! in the center of it. 
 If you don't get that... then you have a problem that is not related 
to path or to PHP per-se...


Wow... thank you so much for providing that code to help me test my 
environment.


I ran your script - with the corrections you provided - and did not get 
the text that says Works!.


I've checked with various fonts, and checked that they worked in 
OpenOffice and other apps, so I don't think fonts are the problem.


As for GD support, phpinfo() it says:

GD Support  enabled
GD Version  2.0 or higher
FreeType Supportenabled
FreeType Linkagewith freetype
FreeType Version2.1.9
T1Lib Support   enabled
GIF Read Supportenabled
GIF Create Support  enabled
JPG Support enabled
PNG Support enabled
WBMP Supportenabled
GetText Support enabled

Am I missing a necessary module?


Hope this helps


It helps very much. Thank you.

--
Dave M G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Tracking visitor times

2007-12-18 Thread Zoran Bogdanov
Hi,

Is it possible to track how long has a single visitor been on my site?

example: I go to www.somesite.com at 5.am and I exit the page (close my 
browser or just go to another site) at 6.am. How do i track that 1 hour 
period using PHP?

Thanks alot! 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] export data to a ms excel file using php

2007-12-18 Thread Jason Pruim


On Dec 18, 2007, at 4:05 AM, abderrazzak nejeoui wrote:

can you help me to export data to a ms excel file using php. i tried  
to
export them to an html format and change the extension to .xls  
that's work

but i have lost the formatting

excel and the navigator doesn't interpret my code in the same why  
(celles

are not in the same size)



Hi Abderrazzak,

This is a script that I use to export to excel, and it works quite  
well after pulling the info from a Database.


If you find any issues with it, let me know so I can try and fix it!  
But I haven't had any complaints about it yet.


?PHP

$sortOrder = $_SESSION['order'];
$search = $_SESSION['search'];
$select = SELECT * FROM .$table. WHERE FName like '%.$search.%'  
or LName like '%.$search.%' or Add1 like '%.$search.%' or Add2  
like '%.$search.%' or City like '%.$search.%' or State like '%. 
$search.%' or Zip like '%.$search.%' or XCode like '%.$search.%'  
order by .$sortOrder.;


$export = mysql_query($select);
$fields = mysql_num_fields($export);

for ($i = 0; $i  $fields; $i++) {
$header .= mysql_field_name($export, $i) . \t;
}

while($row = mysql_fetch_row($export)) {
$line = '';
foreach($row as $value) {
if ((!isset($value)) or ($value == )) {
$value = \t;
}
else
{
$value = str_replace('', '', $value);
$value = '' . $value . '' . \t;
}   
$line .= $value;
}
$data .= trim($line). \n;
}
$data = str_replace(\r, , $data);

if ($data ==) {
$data =\n(0) Records Found!\n;
}
header(Content-type: application/x-msdownload);
header(Content-Disposition: attachment; filename=Export.xls);
header(Pragma: no-cache);
header(Expires: 0);


print $header\n$data;


?

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Tracking visitor times

2007-12-18 Thread Andrew Ballard
On Dec 18, 2007 6:05 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote:
 Hi,

 Is it possible to track how long has a single visitor been on my site?

 example: I go to www.somesite.com at 5.am and I exit the page (close my
 browser or just go to another site) at 6.am. How do i track that 1 hour
 period using PHP?


If you just want to track a single visitor, it might be easiest just
to hire someone to go sit and watch them. :-)  (Sorry -- I'm running
on little sleep and couldn't resist.)

Most often the stats packages that show how long a user visits a site
do so by examining the server's log files and looking for the last
page request by a particular user and the first request by the same
user and subtracting. You can do the same by checking whether a
session variable (or cookie) exists on every page and, if it does not,
set that session variable equal to the current time stamp. Then on
each successive request you could calculate how long it has been since
they first visited your site. If you need to report on the time later,
you'll need to store the times of each request to some persistent
location, which is what the log files are doing. If you have access,
you could read them; otherwise you can build your own log in a file or
a database.

Now, this won't tell you that after opened the last page I visit on
your site I spent another 20 minutes viewing your content. For that
matter, it doesn't guarantee that I actually read anything on your
site at all -- just that I requested some pages and that the time
between my first request and last request was one hour in your
example. If you really need to know when I close my browser or just
go to another site you'll need to add some JavaScript to send another
request when the browser leaves your site.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] export data to a ms excel file using php

2007-12-18 Thread Jay Blanchard
[snip]
can you help me to export data to a ms excel file using php. i tried to
export them to an html format and change the extension to .xls that's
work
but i have lost the formatting

excel and the navigator doesn't interpret my code in the same why
(celles
are not in the same size)
[/snip]

Here is an old article that may help; http://evolt.org/node/26896

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Merlin Morgenstern

Hi there,

I am running a small community page with PHP. Members can select 
notification e-mails on comments etc.


Since today those e-mails - or basically all e-mails from the system -
get taged as spam with a score of 3.5 that totally results to BAYES_99.

How come? I am using PHP-Mailer 1.73. I am wondering if this will go 
away if I upgrade to 2.0. However I would rather not like to do that

as a .0 release makes me a bit worried.

Does anybody have an idea on how to eleminate that BAYES_99 score? Those 
mails are absolutly no spam. They contain a link to the commment page 
but that should not be the problem. At least it was not a problem for 
the last years.


Any ideas?

Thank you for any help,

Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 9:41 AM, Merlin Morgenstern [EMAIL PROTECTED] wrote:
[snip!]
 How come? I am using PHP-Mailer 1.73. I am wondering if this will go
 away if I upgrade to 2.0. However I would rather not like to do that
 as a .0 release makes me a bit worried.
[snip!]

Merlin,

Despite the name, PHP-Mailer has nothing to do with PHP aside from
the fact that this is the language in which it's written.  Some things
that may help you out:

1.) See if there's a forum or list for the PHP-Mailer script.
2.) Search Google to see if there's anyone who suddenly came upon
a similar issue.
3.) Contact your server admin to see if any changes were made to
the SMTP server.
4.) See if your IP address(es) or domain(s) are listed in the RBL
or a similar list.
5.) Send yourself a test email and view the actual source of that.
 Generally, the SPAM filter will give details in the headers.


-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Fwd: Undelivered Mail Returned to Sender

2007-12-18 Thread Daniel Brown
Of course, this could be part of his problem, too

-- Forwarded message --
From: Mail Delivery System [EMAIL PROTECTED]
Date: Dec 18, 2007 9:49 AM
Subject: Undelivered Mail Returned to Sender
To: [EMAIL PROTECTED]


This is the mail system at host mx3.messagingengine.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

   The mail system

[EMAIL PROTECTED]: host lmtp2.messagingengine.com[10.202.2.42] said: 552
5.2.2 Over quota (reported by store3m.internal in RCPT TO) (in reply to end
of DATA command)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Original-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.2.2
Remote-MTA: dns; lmtp2.messagingengine.com
Diagnostic-Code: smtp; 552 5.2.2 Over quota (reported by store3m.internal in
RCPT TO)


-- Forwarded message --
From: Daniel Brown [EMAIL PROTECTED]
To: Merlin Morgenstern [EMAIL PROTECTED]
Date: Tue, 18 Dec 2007 09:49:44 -0500
Subject: Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?
On Dec 18, 2007 9:41 AM, Merlin Morgenstern [EMAIL PROTECTED] wrote:
[snip!]
 How come? I am using PHP-Mailer 1.73. I am wondering if this will go
 away if I upgrade to 2.0. However I would rather not like to do that
 as a .0 release makes me a bit worried.
[snip!]

Merlin,

Despite the name, PHP-Mailer has nothing to do with PHP aside from
the fact that this is the language in which it's written.  Some things
that may help you out:

1.) See if there's a forum or list for the PHP-Mailer script.
2.) Search Google to see if there's anyone who suddenly came upon
a similar issue.
3.) Contact your server admin to see if any changes were made to
the SMTP server.
4.) See if your IP address(es) or domain(s) are listed in the RBL
or a similar list.
5.) Send yourself a test email and view the actual source of that.
 Generally, the SPAM filter will give details in the headers.


--
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.




-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Stut

Merlin Morgenstern wrote:
I am running a small community page with PHP. Members can select 
notification e-mails on comments etc.


Since today those e-mails - or basically all e-mails from the system -
get taged as spam with a score of 3.5 that totally results to BAYES_99.


This is most likely to be the content of the messages you're sending 
rather than the structure of the emails as created by PHPMailer.


How come? I am using PHP-Mailer 1.73. I am wondering if this will go 
away if I upgrade to 2.0. However I would rather not like to do that

as a .0 release makes me a bit worried.


I doubt it but stranger things have happened. However this has nothing 
to do with PHP itself, and would get a better response from a 
PHPMailer-specific list (I assume there is one).


Does anybody have an idea on how to eleminate that BAYES_99 score? Those 
mails are absolutly no spam. They contain a link to the commment page 
but that should not be the problem. At least it was not a problem for 
the last years.


AFAIK BAYES_99 means it thinks there is a 99% chance of it being spam, 
that's very high for something you're saying is an operational email. Is 
that link the only thing they contain? If so try adding more text.


It's also worth noting that this score comes from a system that's 
capable of learning: http://en.wikipedia.org/wiki/Bayesian_spam_filtering


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 1:50 AM, tedd [EMAIL PROTECTED] wrote:
 At 5:10 PM -0600 12/15/07, Richard Lynch wrote:
 On Wed, December 12, 2007 11:07 pm, Robert Cummings wrote:
   Once again, we're not trying to prove order. Order obviously exists.
 
 I'm not sure I'd agree that order exists in the first place, much less
 randomness or disorder.  They could all be solely our human incorrect
 interpretation.

 Well, that's close to my point -- order and disorder, random and
 predictable are concepts in our minds that do not exist in nature.
 Once a series of events, or an arrangement of objects satisfies our
 mind's definition of order or random, then we define it that way.

This is the thread that doesn't end.  Yes, it goes on and on, my
friend.   Some people started typing here, not knowing what it was,
and they'll just keep replying-all forever just because this is the
thread that doesn't end



-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Just to confirm...

2007-12-18 Thread Richard Heyes
Emails that bounce get sent back to the address in the Return-Path: 
header. Correct?


--
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Just to confirm...

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
 Emails that bounce get sent back to the address in the Return-Path:
 header. Correct?

Yes, sir.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Just to confirm...

2007-12-18 Thread Richard Heyes

Daniel Brown wrote:

On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:

Emails that bounce get sent back to the address in the Return-Path:
header. Correct?


Yes, sir.


Thanks. Is there usually a delay? Eg the mail server tries again after 4 
hours.


--
Richard Heyes
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Jay Blanchard
[snip]
This is the thread that doesn't end.  Yes, it goes on and on, my
friend.   Some people started typing here, not knowing what it was,
and they'll just keep replying-all forever just because this is the
thread that doesn't end
[/snip]

This thread lacks order. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Zoltán Németh
2007. 12. 18, kedd keltezéssel 10.09-kor Daniel Brown ezt írta:
 On Dec 18, 2007 1:50 AM, tedd [EMAIL PROTECTED] wrote:
  At 5:10 PM -0600 12/15/07, Richard Lynch wrote:
  On Wed, December 12, 2007 11:07 pm, Robert Cummings wrote:
Once again, we're not trying to prove order. Order obviously exists.
  
  I'm not sure I'd agree that order exists in the first place, much less
  randomness or disorder.  They could all be solely our human incorrect
  interpretation.
 
  Well, that's close to my point -- order and disorder, random and
  predictable are concepts in our minds that do not exist in nature.
  Once a series of events, or an arrangement of objects satisfies our
  mind's definition of order or random, then we define it that way.
 
 This is the thread that doesn't end.  Yes, it goes on and on, my
 friend.   Some people started typing here, not knowing what it was,
 and they'll just keep replying-all forever just because this is the
 thread that doesn't end
 

that's because the thread could end only if we all knew the exact nature
of random and order ;)

greets
Zoltán Németh

 
 
 -- 
 Daniel P. Brown
 [Phone Numbers Go Here!]
 [They're Hidden From View!]
 
 If at first you don't succeed, stick to what you know best so that you
 can make enough money to pay someone else to do it for you.
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Just to confirm...

2007-12-18 Thread Stut

Richard Heyes wrote:

Daniel Brown wrote:

On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:

Emails that bounce get sent back to the address in the Return-Path:
header. Correct?


Yes, sir.


Thanks. Is there usually a delay? Eg the mail server tries again after 4 
hours.


Depends on the nature of the failure. Some will cause a bounce to be 
generated immediately. Others will cause delivery to be retried 
periodically for a while and then generate a bounce. Some mail servers 
generate delivery delay warnings (usually after 4 hours).


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Just to confirm...

2007-12-18 Thread Zoltán Németh
2007. 12. 18, kedd keltezéssel 15.36-kor Richard Heyes ezt írta:
 Daniel Brown wrote:
  On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
  Emails that bounce get sent back to the address in the Return-Path:
  header. Correct?
  
  Yes, sir.
 
 Thanks. Is there usually a delay? Eg the mail server tries again after 4 
 hours.

AFAIK yes, it could be configured in the mailer daemon somewhere

greets
Zoltán Németh

 
 -- 
 Richard Heyes
 http://www.websupportsolutions.co.uk
 
 Knowledge Base and HelpDesk software
 that can cut the cost of online support
 
 ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Just to confirm...

2007-12-18 Thread Colin Guthrie
Daniel Brown wrote:
 On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
 Emails that bounce get sent back to the address in the Return-Path:
 header. Correct?
 
 Yes, sir.
 

Except when they go to the envelope sender or the Errors-To address. ;)

Errors-To: This is a non-standard RFC2822  message header added by
sendmail and other e-mail clients.

Ordinarily, errors are bounced to the envelope sender. The Errors-To:
header specifies the address, or addresses, to which sendmail should
send additional notification of delivery errors. This header is intended
for use by mailing lists, in order to prevent errors in a list from
being resent to the list as a whole. 

Col.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 10:39 AM, Zoltán Németh [EMAIL PROTECTED] wrote:
[snip!]
 that's because the thread could end only if we all knew the exact nature
 of random and order ;)

I'm Nostradamus-ly predicting that will happen around post 101.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Just to confirm...

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 10:40 AM, Stut [EMAIL PROTECTED] wrote:
 Richard Heyes wrote:
  Daniel Brown wrote:
  On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
  Emails that bounce get sent back to the address in the Return-Path:
  header. Correct?
 
  Yes, sir.
 
  Thanks. Is there usually a delay? Eg the mail server tries again after 4
  hours.

 Depends on the nature of the failure. Some will cause a bounce to be
 generated immediately. Others will cause delivery to be retried
 periodically for a while and then generate a bounce. Some mail servers
 generate delivery delay warnings (usually after 4 hours).

It should also be mentioned that it's a user-configurable
parameter, at the admin's discretion.  You could have a bounce retry
in as little as a minute, with (as far as I know) no maximum delay.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Just to confirm...

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 10:39 AM, Colin Guthrie [EMAIL PROTECTED] wrote:
 Daniel Brown wrote:
  On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
  Emails that bounce get sent back to the address in the Return-Path:
  header. Correct?
 
  Yes, sir.
 

 Except when they go to the envelope sender or the Errors-To address. ;)

 Errors-To: This is a non-standard RFC2822  message header added by
 sendmail and other e-mail clients.

 Ordinarily, errors are bounced to the envelope sender. The Errors-To:
 header specifies the address, or addresses, to which sendmail should
 send additional notification of delivery errors. This header is intended
 for use by mailing lists, in order to prevent errors in a list from
 being resent to the list as a whole. 

 Col.

There's also the non-standard bounce-handler-* header, but it's
extremely limited use made me feel it wasn't worth mentioning.  Your
point, however, Colin, was worth mentioning.  ;-P

That aside, coincidentally, I'm suddenly receiving a lot of
bounces from the list this morning.  Even on messages that were
properly delivered, and to which replies were issued.  Anyone else
getting these?

Example:

Hi. This is the qmail-send program at lists.php.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

php-general@lists.php.net:
This message is looping: it already has my Delivered-To line. (#5.4.6)

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP translation needed

2007-12-18 Thread Daniel Brown
On Dec 17, 2007 11:22 PM, Casey [EMAIL PROTECTED] wrote:

 On Dec 17, 2007 7:06 PM, Grace Shibley [EMAIL PROTECTED] wrote:
  Hi Everyone,
 
  We have an encryption function that was written in another language that we
  needed translated to PHP.
 
  Here's the function:
 
  function rc4 pText, pKey
  -- initialize
  repeat with i = 0 to 255
  put i into S1[i]
  end repeat
 
  put 0 into i
  repeat with n = 0 to 255
  add 1 to i
  if i  length(pkey) then put 1 into i
  put chartonum(char i of pKey) into S2[n]
  end repeat
 
  put 0 into j
  repeat with i = 0 to 255
  put (j + S1[i] + S2[i]) mod 256 into j
  put S1[i] into temp
  put S1[j] into S1[i]
  put temp into S1[j]
  end repeat
 
  -- encrypt/decrypt
  put 0 into i ; put 0 into j
  repeat for each char c in pText
  put chartonum(c) into tChar
 
  put (i + 1) mod 256 into i
  put (j + S1[i]) mod 256 into j
  put S1[i] into temp
  put S1[j] into S1[i]
  put temp into S1[j]
  put (S1[i] + S1[j]) mod 256 into t
  put S1[t] into K
 
  put numtochar(tChar bitXor K) after tOutput
  end repeat
 
  return tOutput
  end rc4
 
  Can anyone help us with this?  We don't mind paying via PayPal :)
 
  Thanks!
  grace
 

 function rc4($pText, $pKey) {
 // initialize
 $S1 = range(0, 255);
 $S2 = array();

 $i = 0;
 for ($n=0; $n=255; $n++) {
 $i++;
 if ($i  strlen($pkey))
 $i = 1;
 $S2[] = ord($pKey[$i]);
 }

 $j = 0;
 for ($i=0; $i=255; $i++) {
 $j = ($j + $S1[$i] + $S2[$i]) % 256;
 $temp = $S1[$i];
 $S1[$i] = $S1[$j];
 $S1[$j] = $temp;
 }

 // encrypt/decrypt
 $i = $j = 0;
 $tOutput = '';

 foreach (str_split($pText) as $c) {
 $tChar = ord($c);

 $i = ($i+1) % 256;
 $j = ($j+$S1[$i]) % 256;
 $temp = $S1[$i];
 $S1[$i] = $S1[$j];
 $S1[$j] = $temp;
 $t = ($S1[$i] + $S1[$j]) % 256;
 $K = $S1[$t];

 $tOutput .= chr($tChar ^ $K);
 }

 return $tOutput;
 }

 I don't know what language this is. I'm curious -- what is it? It
 might not work; it's untested except for syntax errors.

That's written in Revolution.  I just glanced at your translation,
Case, but it looks good with a (literally) two-second once-over.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Writing text into images, and setting text size

2007-12-18 Thread Andrés Robinet
Hi Dave,

Take a look
http://www.bestplace.biz/unittest/ttf/PrintImage.php

... and replace PrintImage.php with info.php in the URL to get the phpinfo.
See the CONFIGURE COMMAND line for the phpinfo (at the very beginning):
'--with-gd'
'--enable-gd-native-ttf'
'--with-ttf'
'--with-jpeg-dir=/usr/local/lib'
'--with-freetype-dir=/usr/local/lib'
'--with-png-dir=/usr/local/lib'

You might need to change /usr/local/lib according to your system configuration 
(this is a CentOS 4 box with DirectAdmin as the hosting control panel) and 
recompile PHP. However, before you run into an unnecessary mess...

1 - Add this line to the very beginning of the script and remove the code that 
outputs the image (all the header stuff and the imagepng($im) sentence):

error_reporting(E_ALL);

I guess you have already don that but just in case... If there's an error you 
should see it with E_ALL

2 - If you find out that the problem is definitely PHP, you'd better off using 
the provided upgrade methods of your hosting control panel, or a standard or 
custom script provided at the hosting control panel's website. That will make 
your life easier (For DirectAdmin, there's custombuild, for others... I don't 
know)... otherwise, you'll have to edit the configure script, and run 
./configure, make and make install as usual (and troubleshoot as usual).

Hope you get it working, :)

Rob

 -Original Message-
 From: Dave M G [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2007 7:06 AM
 To: Andrés Robinet
 Cc: 'PHP List'
 Subject: Re: [PHP] Writing text into images, and setting text size
 
 Rob,
 
 Thank you for responding.
 
  Try the following:
  ... you load PrintImage.php into your browser and you'll get a nice
 gray rectangle with the word Works! in the center of it.
   If you don't get that... then you have a problem that is not related
 to path or to PHP per-se...
 
 Wow... thank you so much for providing that code to help me test my
 environment.
 
 I ran your script - with the corrections you provided - and did not get
 the text that says Works!.
 
 I've checked with various fonts, and checked that they worked in
 OpenOffice and other apps, so I don't think fonts are the problem.
 
 As for GD support, phpinfo() it says:
 
 GD Supportenabled
 GD Version2.0 or higher
 FreeType Support  enabled
 FreeType Linkage  with freetype
 FreeType Version  2.1.9
 T1Lib Support enabled
 GIF Read Support  enabled
 GIF Create Supportenabled
 JPG Support   enabled
 PNG Support   enabled
 WBMP Support  enabled
 GetText Support   enabled
 
 Am I missing a necessary module?
 
  Hope this helps
 
 It helps very much. Thank you.
 
 --
 Dave M G
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Merlin Morgenstern

Hello everybody,

thank you for the reply.

Stut schrieb:

Merlin Morgenstern wrote:
I am running a small community page with PHP. Members can select 
notification e-mails on comments etc.


Since today those e-mails - or basically all e-mails from the system -
get taged as spam with a score of 3.5 that totally results to BAYES_99.


This is most likely to be the content of the messages you're sending 
rather than the structure of the emails as created by PHPMailer.


I found that it almost any e-mail sent now from the site has that 3.5 
spam score. Registration e-mails, Nitification e-mails etc.



How come? I am using PHP-Mailer 1.73. I am wondering if this will go 
away if I upgrade to 2.0. However I would rather not like to do that

as a .0 release makes me a bit worried.


I doubt it but stranger things have happened. However this has nothing 
to do with PHP itself, and would get a better response from a 
PHPMailer-specific list (I assume there is one).


You are right. I was just wondering if somebody else here has 
experienced it today in their apps.


Does anybody have an idea on how to eleminate that BAYES_99 score? 
Those mails are absolutly no spam. They contain a link to the commment 
page but that should not be the problem. At least it was not a problem 
for the last years.


AFAIK BAYES_99 means it thinks there is a 99% chance of it being spam, 
that's very high for something you're saying is an operational email. Is 
that link the only thing they contain? If so try adding more text.




99%? How can they be so wrong? There must be a serious reason for that.

The message looks like this:

---
Hello xy,

You are receiving this email because you are watching
the topic, Topicname  at Community

This topic has received a reply since your last visit.
You can use the following link to view the replies made.

http://link

If you no longer wish to watch this topic you can either
click the Stop watching this topic link found at the
bottom of the topic above (after you login!), or by
clicking the following link:

http://www.link
---

STrange, isn't it?

It's also worth noting that this score comes from a system that's 
capable of learning: http://en.wikipedia.org/wiki/Bayesian_spam_filtering


-Stut



`Thanks, will do.

Best regards,

Merlin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Just to confirm...

2007-12-18 Thread Zoltán Németh
2007. 12. 18, kedd keltezéssel 10.55-kor Daniel Brown ezt írta:
 On Dec 18, 2007 10:39 AM, Colin Guthrie [EMAIL PROTECTED] wrote:
  Daniel Brown wrote:
   On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
   Emails that bounce get sent back to the address in the Return-Path:
   header. Correct?
  
   Yes, sir.
  
 
  Except when they go to the envelope sender or the Errors-To address. ;)
 
  Errors-To: This is a non-standard RFC2822  message header added by
  sendmail and other e-mail clients.
 
  Ordinarily, errors are bounced to the envelope sender. The Errors-To:
  header specifies the address, or addresses, to which sendmail should
  send additional notification of delivery errors. This header is intended
  for use by mailing lists, in order to prevent errors in a list from
  being resent to the list as a whole. 
 
  Col.
 
 There's also the non-standard bounce-handler-* header, but it's
 extremely limited use made me feel it wasn't worth mentioning.  Your
 point, however, Colin, was worth mentioning.  ;-P
 
 That aside, coincidentally, I'm suddenly receiving a lot of
 bounces from the list this morning.  Even on messages that were
 properly delivered, and to which replies were issued.  Anyone else
 getting these?
 
 Example:
 
 Hi. This is the qmail-send program at lists.php.net.
 I'm afraid I wasn't able to deliver your message to the following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.
 
 php-general@lists.php.net:
 This message is looping: it already has my Delivered-To line. (#5.4.6)

yes, got one just now

greets
Zoltán Németh

 
 -- 
 Daniel P. Brown
 [Phone Numbers Go Here!]
 [They're Hidden From View!]
 
 If at first you don't succeed, stick to what you know best so that you
 can make enough money to pay someone else to do it for you.
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Select Box CSS

2007-12-18 Thread VamVan
Hi All,

Please apologize for sending this question to PHP forums.

But I would appreciate it very much if some could please help me styling
select mutiple in HTMl with CSS?

I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only
works in firefox How can I make this work in IE?

And also I want to change the selected color.

Thanks,

Vamsee


[PHP] control browser with a href tag

2007-12-18 Thread Hiep Nguyen
hi friends,

i have two pages: list.php and update.php

list.php will have a hyper link that when click on, it will open a new window 
for user to update info.  once user clicks update button on update.php page, i 
want to close update.php and return to list.php.  however if user doesn't click 
update button, i don't want user to go back to list.php.  in other word, freeze 
up list.php until user closes or clicks update button on update.php.

is this possible to do with php?

thanks

RE: [PHP] control browser with a href tag

2007-12-18 Thread Jay Blanchard
[snip]
i have two pages: list.php and update.php

list.php will have a hyper link that when click on, it will open a new
window for user to update info.  once user clicks update button on
update.php page, i want to close update.php and return to list.php.
however if user doesn't click update button, i don't want user to go
back to list.php.  in other word, freeze up list.php until user closes
or clicks update button on update.php.

is this possible to do with php?
[/snip]

Not with PHP. Javascript may be your answer

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] control browser with a href tag

2007-12-18 Thread Wolf
From a UI standpoint, this would be a reason why I would visit your site
once then never again.  If you don't want them to touch a page, make the
current browser window change.

And what you are looking to do uses javascript

Wolf

Hiep Nguyen wrote:
 hi friends,
 
 i have two pages: list.php and update.php
 
 list.php will have a hyper link that when click on, it will open a new window 
 for user to update info.  once user clicks update button on update.php page, 
 i want to close update.php and return to list.php.  however if user doesn't 
 click update button, i don't want user to go back to list.php.  in other 
 word, freeze up list.php until user closes or clicks update button on 
 update.php.
 
 is this possible to do with php?
 
 thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Select Box CSS

2007-12-18 Thread Stut

VamVan wrote:

Please apologize for sending this question to PHP forums.


If you know this already why ask the question here? Also, this is not a 
forum.



But I would appreciate it very much if some could please help me styling
select mutiple in HTMl with CSS?

I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only
works in firefox How can I make this work in IE?

And also I want to change the selected color.


AFAIK this can't be done without some very nasty code due to the way IE 
renders select elements. Google has the answer if you really want it.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] control browser with a href tag

2007-12-18 Thread Warren Vail
 i have two pages: list.php and update.php
 
 list.php will have a hyper link that when click on, it will open a new
 window for user to update info.  once user clicks update button on
 update.php page, i want to close update.php and return to list.php.
 however if user doesn't click update button, i don't want user to go back
 to list.php.  in other word, freeze up list.php until user closes or
 clicks update button on update.php.
 
 is this possible to do with php?

Yes and no, don't think you intend to, but you may be mixing technologies.
You refer to hyperlinks, etc, which is web technologies and windows, which
is not unless you use javascript or ajax.  With PHP you can cause your
browser to open a new browser by adding target=_blank to the hyperlink,
but you cannot easily disable functionality of the old browser (It's still
open, just usually covered up by the new browser), and if the user clicks
your hyperlink again a 3rd browser will be opened.  You could name your
target (target=mypage) which means if the user clicks it a new browser will
be opened, and if the user clicks the same link again, a 3rd window will not
be opened, but the page in the mypage target will be refreshed. 

HTH,

Warren Vail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] export data to a ms excel file using php

2007-12-18 Thread Jim Lucas
abderrazzak nejeoui wrote:
 can you help me to export data to a ms excel file using php. i tried to
 export them to an html format and change the extension to .xls that's work
 but i have lost the formatting
 
 excel and the navigator doesn't interpret my code in the same why (celles
 are not in the same size)
 

Ok, so with the examples of others here, here is the shortest example that I 
came up with that
should get you going.

?php

header(Content-Type:  application/vnd.ms-excel);
header(Expires: 0);
header(Cache-Control: must-revalidate, post-check=0, pre-check=0);

$x = $y = range(0, 12);

echo 'table';

echo 'trtd /tdtd' . join('/tdtd', $x) . '/td/tr';

foreach ( $x AS $xx ) {
echo trtd{$xx}/td;
foreach ( $y AS $yy ) {
echo td=sum(.(chr(ord('b')+$yy)).1*a.($xx+2).)/td;
}
echo /tr;
}
echo '/table';

?

This will output a 14x14 table.  It will calculate the totals for each cell in 
the actual
spreadsheet once excel loads it.

If you have any questions, ask away.

-- 
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] export data to a ms excel file using php

2007-12-18 Thread Jim Lucas
Jim Lucas wrote:
 abderrazzak nejeoui wrote:
 can you help me to export data to a ms excel file using php. i tried to
 export them to an html format and change the extension to .xls that's work
 but i have lost the formatting

 excel and the navigator doesn't interpret my code in the same why (celles
 are not in the same size)

 
 Ok, so with the examples of others here, here is the shortest example that I 
 came up with that
 should get you going.
 
 ?php
 
 header(Content-Type:  application/vnd.ms-excel);
 header(Expires: 0);
 header(Cache-Control: must-revalidate, post-check=0, pre-check=0);
 
 $x = $y = range(0, 12);
 
 echo 'table';
 
 echo 'trtd /tdtd' . join('/tdtd', $x) . '/td/tr';
 
 foreach ( $x AS $xx ) {
   echo trtd{$xx}/td;
   foreach ( $y AS $yy ) {
   echo td=sum(.(chr(ord('b')+$yy)).1*a.($xx+2).)/td;
   }
   echo /tr;
 }
 echo '/table';
 
 ?
 
 This will output a 14x14 table.  It will calculate the totals for each cell 
 in the actual
 spreadsheet once excel loads it.
 
 If you have any questions, ask away.
 

Note: as mentioned in one of the articles, you have to change the script name 
to .xls and have PHP
parse the .xls file, otherwise IE will not render correctly.

-- 
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Select Box CSS OT

2007-12-18 Thread Børge Holen
On Tuesday 18 December 2007 20:03:53 Stut wrote:
 VamVan wrote:
  Please apologize for sending this question to PHP forums.

 If you know this already why ask the question here? Also, this is not a
 forum.

  But I would appreciate it very much if some could please help me styling
  select mutiple in HTMl with CSS?
 
  I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only
  works in firefox How can I make this work in IE?
 
  And also I want to change the selected color.

 AFAIK this can't be done without some very nasty code due to the way IE
 renders select elements. Google has the answer if you really want it.

Trinity renders shit, but for gods sake I would prefer if gecko would render 
atleast acid2 and keep up with the demands of the stylists, before they call 
themselves better than others. But then again, neither webkit or khtml is as 
versatile as the other two.
Anyone with thoughts on opera...


 -Stut

 --
 http://stut.net/



-- 
---
Børge Holen
http://www.arivene.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Select Box CSS OT

2007-12-18 Thread Dave Goodchild
Why not try a css list? css-discuss for example?

On Dec 18, 2007 8:06 PM, Børge Holen [EMAIL PROTECTED] wrote:

 On Tuesday 18 December 2007 20:03:53 Stut wrote:
  VamVan wrote:
   Please apologize for sending this question to PHP forums.
 
  If you know this already why ask the question here? Also, this is not a
  forum.
 
   But I would appreciate it very much if some could please help me
 styling
   select mutiple in HTMl with CSS?
  
   I have .selectmulti { border: 1px solid #c9c9c9 } this code but it
 only
   works in firefox How can I make this work in IE?
  
   And also I want to change the selected color.
 
  AFAIK this can't be done without some very nasty code due to the way IE
  renders select elements. Google has the answer if you really want it.

 Trinity renders shit, but for gods sake I would prefer if gecko would
 render
 atleast acid2 and keep up with the demands of the stylists, before they
 call
 themselves better than others. But then again, neither webkit or khtml is
 as
 versatile as the other two.
 Anyone with thoughts on opera...

 
  -Stut
 
  --
  http://stut.net/



 --
 ---
 Børge Holen
 http://www.arivene.net

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select Box CSS OT

2007-12-18 Thread Børge Holen
On Tuesday 18 December 2007 21:16:46 you wrote:
 Why not try a css list? css-discuss for example?

Yes why not?


 On Dec 18, 2007 8:06 PM, Børge Holen [EMAIL PROTECTED] wrote:
  On Tuesday 18 December 2007 20:03:53 Stut wrote:
   VamVan wrote:
Please apologize for sending this question to PHP forums.
  
   If you know this already why ask the question here? Also, this is not a
   forum.
  
But I would appreciate it very much if some could please help me
 
  styling
 
select mutiple in HTMl with CSS?
   
I have .selectmulti { border: 1px solid #c9c9c9 } this code but it
 
  only
 
works in firefox How can I make this work in IE?
   
And also I want to change the selected color.
  
   AFAIK this can't be done without some very nasty code due to the way IE
   renders select elements. Google has the answer if you really want it.
 
  Trinity renders shit, but for gods sake I would prefer if gecko would
  render
  atleast acid2 and keep up with the demands of the stylists, before they
  call
  themselves better than others. But then again, neither webkit or khtml is
  as
  versatile as the other two.
  Anyone with thoughts on opera...
 
   -Stut
  
   --
   http://stut.net/
 
  --
  ---
  Børge Holen
  http://www.arivene.net
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



-- 
---
Børge Holen
http://www.arivene.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Bruce Cowin
Ha ha, it does!  Admittedly, I haven't read every line of every post in
this thread, but so far I haven't seen any mention of Nazis (until now).
 Godwin's Law breaking down


Regards,

Bruce

 Jay Blanchard [EMAIL PROTECTED] 19/12/2007 4:39:15 a.m.

[snip]
This is the thread that doesn't end.  Yes, it goes on and on, my
friend.   Some people started typing here, not knowing what it was,
and they'll just keep replying-all forever just because this is the
thread that doesn't end
[/snip]

This thread lacks order. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Travis L. Font
Here's random! I'm going to close my eyes think of some drinking water
and running AT the same time and just start pushing numbers on the pad
however way my fingers desire while not thinking about it!

Here: 7914718845748671454531587148354531452141857

 

Good enough?

 

-Travis



Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Daniel Brown
On Dec 18, 2007 4:24 PM, Travis L. Font [EMAIL PROTECTED] wrote:
 Here's random! I'm going to close my eyes think of some drinking water
 and running AT the same time and just start pushing numbers on the pad
 however way my fingers desire while not thinking about it!

 Here: 7914718845748671454531587148354531452141857



 Good enough?

No.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] About PHP Implements

2007-12-18 Thread Jim Webber
Hello I have a PHP4 server and I'm trying to figure out how to do 
implements on classes. Is there an analogous way to do this without 
PHP5 installed?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] About PHP Implements

2007-12-18 Thread Chris

Jim Webber wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do 
implements on classes. Is there an analogous way to do this without 
PHP5 installed?


If you're using inheritance and child classes you could do it in a way, eg:

class parent_class
{
  function x()
  {
echo 'You need to override this fn in your child class';
  }
}

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] About PHP Implements

2007-12-18 Thread Nathan Nobbe
On Dec 18, 2007 5:45 PM, Chris [EMAIL PROTECTED] wrote:

 Jim Webber wrote:
  Hello I have a PHP4 server and I'm trying to figure out how to do
  implements on classes. Is there an analogous way to do this without
  PHP5 installed?

 If you're using inheritance and child classes you could do it in a way,
 eg:

 class parent_class
 {
   function x()
   {
 echo 'You need to override this fn in your child class';
   }
 }


except that you have to waste usage of the extends keyword just to
'implement' parent_class.  you can only implement one interface in this way.
there is no way to reasonably emulate the interface construct in php4.
in c++ you can emulate the interface construct by having a class that is
entirely virtual, but too bad; php4 doesnt have abstract classes either.
i recommend an upgrade to php5.

-nathan


Re: [PHP] export data to a ms excel file using php

2007-12-18 Thread Chris

abderrazzak nejeoui wrote:

can you help me to export data to a ms excel file using php. i tried to
export them to an html format and change the extension to .xls that's work
but i have lost the formatting

excel and the navigator doesn't interpret my code in the same why (celles
are not in the same size)


http://pear.php.net/package/Spreadsheet_Excel_Writer might work well.

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] control browser with a href tag

2007-12-18 Thread Richard Lynch


On Tue, December 18, 2007 12:23 pm, Hiep Nguyen wrote:
 hi friends,

 i have two pages: list.php and update.php

 list.php will have a hyper link that when click on, it will open a new
 window for user to update info.  once user clicks update button on
 update.php page, i want to close update.php and return to list.php.
 however if user doesn't click update button, i don't want user to go
 back to list.php.  in other word, freeze up list.php until user closes
 or clicks update button on update.php.

 is this possible to do with php?

It's not even possible with a browser and HTTP, whether PHP is in the
picture or not...

You're describing a desktop application behaviour.

Stop doing that; You'll just make yourself and your users miserable.

Write a web application.  It's different.

Don't popup a new window unless you absolutely have to.  If I want a
new window, I'll use right-click and do it myself.

Don't try to freeze up the list (you can't anyway) cuz I might want
to look at other things in the list to decide how to correctly update
the original anyway.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Select Box CSS OT

2007-12-18 Thread Richard Lynch
On Tue, December 18, 2007 2:06 pm, Børge Holen wrote:
 On Tuesday 18 December 2007 20:03:53 Stut wrote:
 VamVan wrote:
  Please apologize for sending this question to PHP forums.

 If you know this already why ask the question here? Also, this is
 not a
 forum.

  But I would appreciate it very much if some could please help me
 styling
  select mutiple in HTMl with CSS?
 
  I have .selectmulti { border: 1px solid #c9c9c9 } this code but it
 only
  works in firefox How can I make this work in IE?
 
  And also I want to change the selected color.

 AFAIK this can't be done without some very nasty code due to the way
 IE
 renders select elements. Google has the answer if you really want
 it.

 Trinity renders shit, but for gods sake I would prefer if gecko would
 render
 atleast acid2 and keep up with the demands of the stylists, before
 they call
 themselves better than others. But then again, neither webkit or khtml
 is as
 versatile as the other two.
 Anyone with thoughts on opera...

All the browsers suck.

They are all rushing half-baked features to market instead of
focussing on quality user experience.

Opera just sucks in different ways.  No worse, no better.

ymmv

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Just to confirm...

2007-12-18 Thread Richard Lynch
On Tue, December 18, 2007 9:17 am, Richard Heyes wrote:
 Emails that bounce get sent back to the address in the Return-Path:
 header. Correct?

Depends on who is following which standards from which era...

There was an Error-to: header that was popular for awhile, and...

I don't think you can safely assume all email clients/muas/mtas are
going to actually follow the same standard you are reading, much less
follow it correctly. :-)

ymmv

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Richard Lynch
On Tue, December 18, 2007 8:41 am, Merlin Morgenstern wrote:
 I am running a small community page with PHP. Members can select
 notification e-mails on comments etc.

 Since today those e-mails - or basically all e-mails from the system -
 get taged as spam with a score of 3.5 that totally results to
 BAYES_99.

 How come? I am using PHP-Mailer 1.73. I am wondering if this will go
 away if I upgrade to 2.0. However I would rather not like to do that
 as a .0 release makes me a bit worried.

 Does anybody have an idea on how to eleminate that BAYES_99 score?
 Those
 mails are absolutly no spam. They contain a link to the commment page
 but that should not be the problem. At least it was not a problem for
 the last years.

 Any ideas?

Bayes usually refers to the Bayseian (sp?) algorithm where the system
learns what is junk based on users' marking things as spam.

So if you add a bunch of people to your list that don't expect to be
on it, and they all mark your email as spam, whammo, all your emails
are marked as spam.

Or so I understand it...

Or possibly mis-understand it. :-v

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Select Box CSS OT

2007-12-18 Thread Børge Holen
On Wednesday 19 December 2007 03:59:11 Richard Lynch wrote:
 On Tue, December 18, 2007 2:06 pm, Børge Holen wrote:
  On Tuesday 18 December 2007 20:03:53 Stut wrote:
  VamVan wrote:
   Please apologize for sending this question to PHP forums.
 
  If you know this already why ask the question here? Also, this is
  not a
  forum.
 
   But I would appreciate it very much if some could please help me
 
  styling
 
   select mutiple in HTMl with CSS?
  
   I have .selectmulti { border: 1px solid #c9c9c9 } this code but it
 
  only
 
   works in firefox How can I make this work in IE?
  
   And also I want to change the selected color.
 
  AFAIK this can't be done without some very nasty code due to the way
  IE
  renders select elements. Google has the answer if you really want
  it.
 
  Trinity renders shit, but for gods sake I would prefer if gecko would
  render
  atleast acid2 and keep up with the demands of the stylists, before
  they call
  themselves better than others. But then again, neither webkit or khtml
  is as
  versatile as the other two.
  Anyone with thoughts on opera...

 All the browsers suck.

 They are all rushing half-baked features to market instead of
 focussing on quality user experience.

 Opera just sucks in different ways.  No worse, no better.

 ymmv

lol, the suckiness scale close to tips to the point where it almost f*s up on 
serverside ;D


 --
 Some people have a gift link here.
 Know what I want?
 I want you to buy a CD from some indie artist.
 http://cdbaby.com/from/lynch
 Yeah, I get a buck. So?



-- 
---
Børge Holen
http://www.arivene.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] control browser with a href tag

2007-12-18 Thread Andrés Robinet
 -Original Message-
 From: Richard Lynch [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 18, 2007 11:57 PM
 To: Hiep Nguyen
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] control browser with a href tag
 
 
 
 On Tue, December 18, 2007 12:23 pm, Hiep Nguyen wrote:
  hi friends,
 
  i have two pages: list.php and update.php
 
  list.php will have a hyper link that when click on, it will open a
 new
  window for user to update info.  once user clicks update button on
  update.php page, i want to close update.php and return to list.php.
  however if user doesn't click update button, i don't want user to go
  back to list.php.  in other word, freeze up list.php until user
 closes
  or clicks update button on update.php.
 
  is this possible to do with php?
 
 It's not even possible with a browser and HTTP, whether PHP is in the
 picture or not...
 
 You're describing a desktop application behaviour.
 
 Stop doing that; You'll just make yourself and your users miserable.
 
 Write a web application.  It's different.
 
 Don't popup a new window unless you absolutely have to.  If I want a
 new window, I'll use right-click and do it myself.
 
 Don't try to freeze up the list (you can't anyway) cuz I might want
 to look at other things in the list to decide how to correctly update
 the original anyway.
 
 --
 Some people have a gift link here.
 Know what I want?
 I want you to buy a CD from some indie artist.
 http://cdbaby.com/from/lynch
 Yeah, I get a buck. So?
 
 --

I agree on the point that you should not try to achieve the behavior with
PHP alone, for the rest of it... I disagree.
Why do users have to rethink application behavior? Sure, the web environment
is different, there is a clear barrier between client and server... but what
do end users have to do with all of that? Moreover, why we, developers,
have to rethink UI and application design when we switch from desktop to the
web?

I think we shouldn't... it's only the legacy stuff we had to tolerate year
after year, once the web became a massive thing. But now things are
evolving, do things like Web 2.0, Ajax, Adobe Air, Mono, Silverlight, and
the .Net Framework sound familiar to you (yes, the last two are created by
the crappy M$ that we all know)? Because as far as I can see, an effort is
been made everywhere to shorten the desktop-web distance.
Why is CSS, XML and JavaScript so popular these days? We hated them some
years ago, didn't we? They help to shorten the distance now, don't they?

Yes, browsers are a mess to deal with, but they are not as much of a mess as
they where some time ago, and we have some good abstraction layers such as
PrototypeJS, JQuery and Mootools; and... at least we have now IE 7, which is
a big step forward for M$ (despite being buggy as EVERY BROWSER IS), and
Firefox and Opera... or are you going to tell me you still use HTML 3, PHP
3, MySQL 2 and put This site looks better in Firefox, Get Firefox Now!
buttons in your websites?

Have you tried ExtJS or the Yahoo UI?... Why is everyone using this geeky
stuff?. I believe we should take the desktop-web distance as a temporary
fact that can be fixed to some extent, and keep that in mind... but THAT'S
ALL. We must also be prepared for evolution, listen to the trends, and try a
bit with the new kids on the block...because evolution will happen, and
we'll either be in or out of the standard... because the standard will
change.

All the above sh_t said to Richard (just an opinion, hope you don't take it
wrong), this last paragraph is for the original user. I would search in a
JavaScript forum for a way to mask the existing contents, open a DHTML
window on top with a form in it, validate the form (maybe Ajax, maybe only
JavaScript, it depends on what you need to validate) and then if it passes
the test remove the mask and return to the old contents. Otherwise, for a
straightforward solution, that makes use of this mask thing give a try to
the form components in ExtJS (if you feel like you can handle JavaScript
very well... of course). If you don't find your way... then you are not
ready and you'd probably better off by creating two pages, so you make the
user move from one to the other and back again... so unless the user fills
in the correct data, you don't display the original form again, but the
data input form every time. A last resort, may involve using a regular
pop-up window, but the only way to make it truly modal is in IE for the
PC (I think).

Happy coding
(and read more, so you'll ask better questions ;)) 

Rob

P.S. You'll see no links in this email... but you can use google to find the
resources

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: php sockets

2007-12-18 Thread vixle
this code doesn't interact with with php client while with c++ based one it
works just fine.
.anybody?
#include stdio.h
#include winsock2.h
#include iostream
#include process.h
using namespace std;
int i = 0;
int ar = 0;
const int is = 50;
SOCKET stack[is];
void clientserve(void* ws)
{
   SOCKET wsocket = *(SOCKET*)ws;
   int fgotused = 0;
   char sendbuf[70];
   char recvbuf[70];
   int scnt = 0;
   ar++;
   int id = ar;
   while(scnt = ar)
   {
  if(stack[scnt] == 0)
  {
 stack[scnt] = wsocket;
 id = scnt;
 fgotused = 1;
 scnt = 0;
 break;
  }
  scnt++;
   }
   if(fgotused == 0)
  stack[id] = wsocket;
   send(stack[id], Server message: You are now successfuly connected., 70,
0 );
   while(1)
   {
  scnt = 0;
  if(recv(wsocket, recvbuf, 70, 0 ) == SOCKET_ERROR)
  {
 if(WSAGetLastError() == WSAECONNRESET)
 {
i--;
stack[id] = 0;
cout  Client Disconnected.  endl;
cout  Clients connected:   i  endl;
closesocket(wsocket);
return;
 }
  }
  if(recvbuf)
  {
 cout  recvbuf  endl;
 while(scnt = ar)
 {
if(scnt != id)
   send(stack[scnt], recvbuf, 70, 0);
scnt++;
 }
 recvbuf = null;
  }
   }
}
void main()
{
   WSADATA wsaData;
   int iResult = WSAStartup(MAKEWORD(2,2),wsaData);
   if (iResult != NO_ERROR)
  printf(Error at WSAStartup()\n);
   SOCKET m_socket;
   m_socket = socket (AF_INET, SOCK_STREAM, 0);
   if (m_socket == INVALID_SOCKET)
   {
  printf(Error at socket(): %ld\n, WSAGetLastError());
  WSACleanup();
  return;
   }
   sockaddr_in service;
   service.sin_family = AF_INET;
   service.sin_addr.s_addr = inet_addr(127.0.0.1);
   service.sin_port = htons(27015);
   if (bind(m_socket,(SOCKADDR*)service, sizeof(service)) == SOCKET_ERROR)
   {
  printf(bind() failed.\n);
  closesocket(m_socket);
  return;
   }
   if (listen(m_socket, 700) == SOCKET_ERROR)
  printf( Error listening on socket.\n);
   SOCKET AcceptSocket;
   printf(Waiting for a client to connect...\n);
   while (AcceptSocket = accept(m_socket, NULL, NULL))
   {
  i++;
  cout  Client Connected.  endl;
  cout  Clients connected:   i  endl;
  _beginthread(clientserve, 0, (void*)AcceptSocket);
   }
}

vixle [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 ?php

 /* Get the port for the WWW service. */
 //$service_port = getservbyname('www', 'tcp');

 /* Get the IP address for the target host. */
 //$address = gethostbyname('www.example.com');

 /* Create a TCP/IP socket. */
 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
 //echo Attempting to connect to '$address' on port '$service_port'...;
 $result = socket_connect($socket, 127.0.0.1, 27015);

 socket_RECV($socket, $read, 300, null);
   echo $read;
 socket_close($socket);
 ?

 i have a daemon running on that port that sends a message when it's  got a 
 client connected
 but the script above doesn't output anything it just loads my cpu up to 
 100 percent and thats it then it basically stops working. While i need it 
 to display the messages sent by server(daemon) to the user running the 
 script has anyone got any idea why it rejects to work? (yeah the daemon is 
 written in c++ if that matters) 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: php sockets

2007-12-18 Thread vixle
this code doesn't interact with php client while with c++ based one it
works just fine.
.anybody?
#include stdio.h
#include winsock2.h
#include iostream
#include process.h
using namespace std;
int i = 0;
int ar = 0;
const int is = 50;
SOCKET stack[is];
void clientserve(void* ws)
{
   SOCKET wsocket = *(SOCKET*)ws;
   int fgotused = 0;
   char sendbuf[70];
   char recvbuf[70];
   int scnt = 0;
   ar++;
   int id = ar;
   while(scnt = ar)
   {
  if(stack[scnt] == 0)
  {
 stack[scnt] = wsocket;
 id = scnt;
 fgotused = 1;
 scnt = 0;
 break;
  }
  scnt++;
   }
   if(fgotused == 0)
  stack[id] = wsocket;
   send(stack[id], Server message: You are now successfuly connected., 70,
0 );
   while(1)
   {
  scnt = 0;
  if(recv(wsocket, recvbuf, 70, 0 ) == SOCKET_ERROR)
  {
 if(WSAGetLastError() == WSAECONNRESET)
 {
i--;
stack[id] = 0;
cout  Client Disconnected.  endl;
cout  Clients connected:   i  endl;
closesocket(wsocket);
return;
 }
  }
  if(recvbuf)
  {
 cout  recvbuf  endl;
 while(scnt = ar)
 {
if(scnt != id)
   send(stack[scnt], recvbuf, 70, 0);
scnt++;
 }
 recvbuf = null;
  }
   }
}
void main()
{
   WSADATA wsaData;
   int iResult = WSAStartup(MAKEWORD(2,2),wsaData);
   if (iResult != NO_ERROR)
  printf(Error at WSAStartup()\n);
   SOCKET m_socket;
   m_socket = socket (AF_INET, SOCK_STREAM, 0);
   if (m_socket == INVALID_SOCKET)
   {
  printf(Error at socket(): %ld\n, WSAGetLastError());
  WSACleanup();
  return;
   }
   sockaddr_in service;
   service.sin_family = AF_INET;
   service.sin_addr.s_addr = inet_addr(127.0.0.1);
   service.sin_port = htons(27015);
   if (bind(m_socket,(SOCKADDR*)service, sizeof(service)) == SOCKET_ERROR)
   {
  printf(bind() failed.\n);
  closesocket(m_socket);
  return;
   }
   if (listen(m_socket, 700) == SOCKET_ERROR)
  printf( Error listening on socket.\n);
   SOCKET AcceptSocket;
   printf(Waiting for a client to connect...\n);
   while (AcceptSocket = accept(m_socket, NULL, NULL))
   {
  i++;
  cout  Client Connected.  endl;
  cout  Clients connected:   i  endl;
  _beginthread(clientserve, 0, (void*)AcceptSocket);
   }
}
vixle [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 ?php

 /* Get the port for the WWW service. */
 //$service_port = getservbyname('www', 'tcp');

 /* Get the IP address for the target host. */
 //$address = gethostbyname('www.example.com');

 /* Create a TCP/IP socket. */
 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
 //echo Attempting to connect to '$address' on port '$service_port'...;
 $result = socket_connect($socket, 127.0.0.1, 27015);

 socket_RECV($socket, $read, 300, null);
   echo $read;
 socket_close($socket);
 ?

 i have a daemon running on that port that sends a message when it's  got a 
 client connected
 but the script above doesn't output anything it just loads my cpu up to 
 100 percent and thats it then it basically stops working. While i need it 
 to display the messages sent by server(daemon) to the user running the 
 script has anyone got any idea why it rejects to work? (yeah the daemon is 
 written in c++ if that matters) 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Robert Cummings
On Tue, 2007-12-18 at 16:26 -0500, Daniel Brown wrote:
 On Dec 18, 2007 4:24 PM, Travis L. Font [EMAIL PROTECTED] wrote:
  Here's random! I'm going to close my eyes think of some drinking water
  and running AT the same time and just start pushing numbers on the pad
  however way my fingers desire while not thinking about it!
 
  Here: 7914718845748671454531587148354531452141857
 
 
 
  Good enough?
 
 No.

* Must resist the being sucked back into this thread *

...

Yes, I realize the obvious contradiction :)

Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php