php-general Digest 11 Apr 2008 09:26:57 -0000 Issue 5398

2008-04-11 Thread php-general-digest-help
php-general Digest 11 Apr 2008 09:26:57 - Issue 5398 Topics (messages 272848 through 272867): Re: Requested PHP apps / sites 272848 by: Wolf 272854 by: Shawn McKenzie 272855 by: Shawn McKenzie Socket create with ssl server 272849 by: Alan Willsher

Re: [PHP] Re: Connecting to an epp server

2008-04-11 Thread Paul van Brouwershaven
epp-example from dns.be: ?php // function mod ($a, $b) { return $a % $b; } // class EppSocket { var $fp = null; function EppSocket() { } function connect($addr, $port, $timeout) {

Re: [PHP] Common PHP functions benchmarks

2008-04-11 Thread Larry Garfield
I did some similar micro-benchmarking a while back, too: http://www.garfieldtech.com/blog/magic-benchmarks On Tuesday 08 April 2008, Jason Knight wrote: I've been running some benchmarks on popular PHP functions. I would like to get some input on them from the community. So far I have run

Re: [PHP] Evaluating math without eval()

2008-04-11 Thread Robin Vickery
On 10/04/2008, Jason Norwood-Young [EMAIL PROTECTED] wrote: On Thu, 2008-04-10 at 13:15 +0100, Richard Heyes wrote: First post to this list! I'm trying to figure out how to evaluate a string with a mathematical expression and get a result, but without using eval() as I'm accepting

Re: [PHP] $_SESSION problem

2008-04-11 Thread tedd
At 5:10 PM -0600 4/10/08, Nathan Nobbe wrote: On Thu, Apr 10, 2008 at 5:05 PM, Nathan Nobbe mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: On Thu, Apr 10, 2008 at 4:29 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: you might just dump out the session component of the php

[PHP] SERVER_PORT always at 80 ?

2008-04-11 Thread Julien Pauli
Hi all, I'm running Windows XP, and here is a piece of my apache (2.2.8) conf : --- httpd.conf --- ... ... ... Listen 81 Listen 80 Listen 8080 LoadModule php5_module e:/php/php5apache2_2.dll LoadModule fastcgi_module modules/mod_fastcgi.dll AddType application/x-httpd-php .php ... ... ... ---

Re: [PHP] PHP GD library installing

2008-04-11 Thread Luca Paolella
On Apr 10, 2008, at 5:15 PM, Daniel Brown wrote: On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella [EMAIL PROTECTED] wrote: How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function

Re: [PHP] $_SESSION problem

2008-04-11 Thread tedd
At 5:05 PM -0600 4/10/08, Nathan Nobbe wrote: On Thu, Apr 10, 2008 at 4:29 PM, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hi gang: I'm stumped and in need of some expert explanation. I have prepared two demos (showing code) for your enjoyment: [1]

[PHP] Help with SSH2 persistent connection in php

2008-04-11 Thread Rodrigo Reis da Rocha
Hi, I want to make an persistent connection via ssh2 to a server with php, but all I can get with the present API is an temporary connection that is lost at end of the script. Anyone have an idea of how I can save the Resource and reuse it on future scripts instead of having to reconnect over and

Re: [PHP] Help with SSH2 persistent connection in php

2008-04-11 Thread Jason Norwood-Young
On Fri, 2008-04-11 at 10:14 -0300, Rodrigo Reis da Rocha wrote: I want to make an persistent connection via ssh2 to a server with php, but all I can get with the present API is an temporary connection that is lost at end of the script. Anyone have an idea of how I can save the Resource and

[PHP] Quarters

2008-04-11 Thread tedd
Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

RE: [PHP] Quarters

2008-04-11 Thread Jay Blanchard
[snip] Check out my new game: http://webbytedd.com/quarters/ What do you think? [/snip] Cool...but why do quarters keep appearing in other piles? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread tedd
At 10:12 PM -0400 4/10/08, Eric Wood wrote: tedd wrote: [1] http://www.webbytedd.com/x/index.php [2] http://sperling.com/x/index.php Both of these demos have the exact same code; and are on the same server; with exactly the same php-info -- so, why do they behave differently re sessions?

RES: [PHP] SERVER_PORT always at 80 ?

2008-04-11 Thread Thiago Pojda
{Top posting} What shows your phpinfo() on both ports? Is it really running your 5.3 in :81? Regards, Thiago -Mensagem original- De: Julien Pauli [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 11 de abril de 2008 09:28 Para: PHP General list Assunto: [PHP] SERVER_PORT always at

RE: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Ford, Mike
On 11 April 2008 14:45, tedd advised: At 10:12 PM -0400 4/10/08, Eric Wood wrote: tedd wrote: [1] http://www.webbytedd.com/x/index.php [2] http://sperling.com/x/index.php Both of these demos have the exact same code; and are on the same server; with exactly the same php-info -- so, why

Re: [PHP] Quarters

2008-04-11 Thread Andrew Ballard
On Fri, Apr 11, 2008 at 9:49 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. Seems not to work in FF. (At least for me.) I had to

RES: [PHP] Quarters

2008-04-11 Thread Thiago Pojda
Same for me, I was like hmm ok, checkboxes... Just tried IE, now I can see what you're talking about :) -Mensagem original- De: Andrew Ballard [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 11 de abril de 2008 11:43 Para: PHP General list Assunto: Re: [PHP] Quarters On Fri, Apr

Re: [PHP] Quarters

2008-04-11 Thread Andrew Ballard
On Fri, Apr 11, 2008 at 10:51 AM, Thiago Pojda [EMAIL PROTECTED] wrote: Same for me, I was like hmm ok, checkboxes... Just tried IE, now I can see what you're talking about :) -Mensagem original- De: Andrew Ballard [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 11 de abril

Re: [PHP] Quarters

2008-04-11 Thread Jim Lucas
tedd wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. I keep getting JS errors. I get this when I select a coin, or coins, and click remove coins. Line: 122 Char: 3

Re: [PHP] Quarters

2008-04-11 Thread Wolf
tedd [EMAIL PROTECTED] wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. -- Tedd, What happened? I got nothing in FIrefox on Ubuntu... And no, I

Re: [PHP] Google App Engine needs PHP support

2008-04-11 Thread Philip Thompson
On Apr 10, 2008, at 8:11 PM, Manuel Lemos wrote: Hello, Google App Engine was launched but it does not support PHP. This article presents some ideas that can help Google adding PHP support sooner rather than later.

Re: [PHP] Quarters

2008-04-11 Thread Steve Holmes
Works great in Safari. Except I can't win :-).Steve On Fri, Apr 11, 2008 at 9:49 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. --

Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Daniel Brown
On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike [EMAIL PROTECTED] wrote: Sounds like a register_globals=On issue It does to me, as well. I know, Tedd, that on the php1.net site that you mentioned to me off-list, I'm about 99% positive that it's the reason. Shared hosts generally keep

[PHP] Job Opportunity for Technical Consultants at Fredhopper (Amsterdam)

2008-04-11 Thread Vasil Kokareshkov
TOP SOFTWARE PRODUCT COMPANY OFFERS A UNIQUE LEARNING OPPORTUNITY TO AMBITIOUS AND TALENTED TECHNICAL CONSULTANTS Company: Fredhopper, Location: Amsterdam, Position: Full-time Are you a pragmatic self-starter? Do you have a talent for quickly reducing complex questions to simple solutions? Are

Re: [PHP] $_SESSION problem

2008-04-11 Thread Nathan Nobbe
On Fri, Apr 11, 2008 at 6:30 AM, tedd [EMAIL PROTECTED] wrote: Isn't that what the code is doing? I'm dumping the results in a print_r($_SESSION) -- isn't that he same thing? sorry tedd; obviously i was hasty to post. but i figured just looking for the obvious would be a good exercise as i

Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Nathan Nobbe
top posting for the hell of it; disregard last post; i didnt see the [solved] sort-of thread. -nathan On Fri, Apr 11, 2008 at 7:44 AM, tedd [EMAIL PROTECTED] wrote: At 10:12 PM -0400 4/10/08, Eric Wood wrote: tedd wrote: [1] http://www.webbytedd.com/x/index.php [2]

[PHP] File Format

2008-04-11 Thread admin
Wave editor? Here is my dilemma. In php I have written a script to upload a wave file to the server for the C Sharp application to use. No problems on upload or streaming from the file to the web. My issue comes when the format of the wave file is PCM and not CCITT u-Law. The device cannot

[PHP] Posting Summary for Week Ending 11 April, 2008: php-general@lists.php.net

2008-04-11 Thread PostTrack
Posting Summary for PHP-General List Week Ending: Friday, 11 April, 2008 Messages| Bytes | Code | Sender +++ 295 (100%) 448940

Re: [PHP] Posting Summary for Week Ending 11 April, 2008: php-general@lists.php.net

2008-04-11 Thread Robert Cummings
Your script is bust... I wrote code (even if you disregard the joke stuff :) Cheers, Rob. On Fri, 2008-04-11 at 16:00 -0400, PostTrack wrote: Posting Summary for PHP-General List Week Ending: Friday, 11 April, 2008 Messages| Bytes | Code

Re: [PHP] Posting Summary for Week Ending 11 April, 2008: php-general@lists.php.net

2008-04-11 Thread Daniel Brown
Top-posting in honor of Friday. I know. I found a glitch in there on Tuesday or Wednesday, but have since had to let fixing a hosed Linux installation take priority. Hopefully I'll get to it this week. On Fri, Apr 11, 2008 at 4:08 PM, Robert Cummings [EMAIL PROTECTED] wrote: Your

[PHP] Quarters -- ERRORS --

2008-04-11 Thread tedd
Hi gang: Sorry for the lame app, but the program worked for Safari (Mac and Win). However, I did get it to work for FF and a couple of other browsers (Mac and Win), see again: http://webbytedd.com/quarters But the critter is dead in the water for all versions of IE -- if -- I don't figure

[PHP] $_SESSION problem [NOW SOLVED]

2008-04-11 Thread tedd
At 11:33 AM -0400 4/11/08, Daniel Brown wrote: On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike [EMAIL PROTECTED] wrote: Sounds like a register_globals=On issue It does to me, as well. I know, Tedd, that on the php1.net site that you mentioned to me off-list, I'm about 99% positive

Re: [PHP] Quarters -- ERRORS --

2008-04-11 Thread Kirk . Johnson
tedd [EMAIL PROTECTED] wrote on 04/11/2008 02:49:21 PM: But the critter is dead in the water for all versions of IE -- if -- I don't figure out a way around the following single statement. document.getElementById(id).checked = true; After reading a bunch, it seems that M$ has a better

[PHP] Return an Array and immediately reference an index

2008-04-11 Thread Daniel Kolbo
Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() { return array('lose' = array(5,6), 'win' = array(9,8)); } $yo =

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Philip Thompson
Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the

Re: [PHP] php local application send mouse click

2008-04-11 Thread Daniel Kolbo
Wolf wrote: Daniel Kolbo wrote: Hello, I am mostly familiar with php for serving up web pages; however, recently I have been writing a local command line script on my WinXP machine. I have spent the better part of this last week and all of today trying to figure out a way to send a mouse

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Daniel Kolbo
Philip Thompson wrote: Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want

Re: [PHP] Quarters

2008-04-11 Thread Daniel Kolbo
It was fun! thanks tedd wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] File Upload Security

2008-04-11 Thread Al
One of my sites has been hacked and I'm trying to find the hole. The hack code creates dirs with nobody ownership, so it's obvious stuff is not via ftp [ownership would be foo] Site is virtual host, Linux/Apache I'm concerned about a file uploader my users use to upload photos. Can anyone

Re: [PHP] File Upload Security

2008-04-11 Thread mike
How was it hacked? That will help determine what kind of exploit might have been used. On 4/11/08, Al [EMAIL PROTECTED] wrote: One of my sites has been hacked and I'm trying to find the hole. The hack code creates dirs with nobody ownership, so it's obvious stuff is not via ftp [ownership

[PHP] install pecl in debian

2008-04-11 Thread hce
Hi, I post following message days ago, but could not see it on the list. Sorry if it is duplicated. I've installed php5 in debian, but got following problems: 1. I could not find a proper debian package for pecl, search pecl found: dh-make-php - Creates Debian source packages for PHP PEAR and

Re: [PHP] File Upload Security

2008-04-11 Thread Al
The hack puts this .htaccess in dozens of dirs RewriteEngine On RewriteCond %{HTTP_REFERER}

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Philip Thompson
On Apr 11, 2008, at 6:31 PM, Daniel Kolbo wrote: Philip Thompson wrote: Top-posting side comment: It's not nice to hijack threads. My comments are below... On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one

[PHP] Re: install pecl in debian

2008-04-11 Thread Shawn McKenzie
hce wrote: Hi, I post following message days ago, but could not see it on the list. Sorry if it is duplicated. I've installed php5 in debian, but got following problems: 1. I could not find a proper debian package for pecl, search pecl found: dh-make-php - Creates Debian source packages for

[PHP] Re: Quarters

2008-04-11 Thread Bill Guion
Maybe you guys should get a Mac. Works just fine for me on a Mac, OS X, Firefox. -= Bill =- At 9:49 AM -0400 4/11/08, tedd wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the

Re: [PHP] Re: Quarters

2008-04-11 Thread Robert Cummings
On Fri, 2008-04-11 at 21:22 -0400, Bill Guion wrote: Maybe you guys should get a Mac. Works just fine for me on a Mac, OS X, Firefox. But then we'd have to use a Mac :/ Worked fine in Opera 9.5. Though I got the undefined variable error too. That's just a clean code error though... a lot

Re: [PHP] Re: install pecl in debian

2008-04-11 Thread Bojan Tesanovic
You need CLI (Comman Line interface) for PHP most of PECL packages are in apt-get eg apt-get php-memcache On Apr 12, 2008, at 3:19 AM, Shawn McKenzie wrote: hce wrote: Hi, I post following message days ago, but could not see it on the list. Sorry if it is duplicated. I've installed php5 in

Re: [PHP] Return an Array and immediately reference an index

2008-04-11 Thread Bojan Tesanovic
On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote: Hello, I want to return an array from function and reference an index all in one line. Is this possible? In the code below I want I want $yo to be the array(5,6). Here is what I've tried, function returnarray() { return

Re: [PHP] File Format

2008-04-11 Thread Bojan Tesanovic
I bet there is no native PHP methods for that kind of file, but you can easily check the headers of wave file , you need to have a specification or at least have 3 wave files of PCM and CCITT , compare the first 100 characters of that file, and you will get the clue and logic how to

Re: [PHP] Quarters

2008-04-11 Thread Casey
On Fri, Apr 11, 2008 at 6:49 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: Check out my new game: http://webbytedd.com/quarters/ What do you think? Cheers, tedd PS: I originally wrote the game for the Mac over eight years ago. -- --- http://sperling.com

[PHP] How to determine which column matched

2008-04-11 Thread Rob Gould
I'm trying to figure out a way that SQL can pass a flag to PHP to say which column matched during a query. Let's say for instance that I want to search for the word apple in both column producer, and column designation. I was hoping I could do something like this: Select producer, flag=1

Re: [PHP] File Upload Security

2008-04-11 Thread Bojan Tesanovic
I would recommend something more strong http://www.php.net/manual/en/function.exif-imagetype.php or if you dont have exif http://www.php.net/manual/en/function.getimagesize.php will do also a trick. One more thing, you are also allowing .txt and .css which may be potential hole, as Apache

Re: [PHP] How to determine which column matched

2008-04-11 Thread Bojan Tesanovic
Why so complicated On Apr 12, 2008, at 5:25 AM, Rob Gould wrote: I'm trying to figure out a way that SQL can pass a flag to PHP to say which column matched during a query. Let's say for instance that I want to search for the word apple in both column producer, and column designation. I

Re: [PHP] How to determine which column matched

2008-04-11 Thread Robert Cummings
On Fri, 2008-04-11 at 20:25 -0700, Rob Gould wrote: I'm trying to figure out a way that SQL can pass a flag to PHP to say which column matched during a query. Let's say for instance that I want to search for the word apple in both column producer, and column designation. I was hoping I

Re: [PHP] How to determine which column matched

2008-04-11 Thread Robert Cummings
On Fri, 2008-04-11 at 23:42 -0400, Robert Cummings wrote: On Fri, 2008-04-11 at 20:25 -0700, Rob Gould wrote: I'm trying to figure out a way that SQL can pass a flag to PHP to say which column matched during a query. Let's say for instance that I want to search for the word apple in

Re: [PHP] Quarters -- ERRORS --

2008-04-11 Thread Nathan Nobbe
On Fri, Apr 11, 2008 at 4:49 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: Sorry for the lame app, but the program worked for Safari (Mac and Win). However, I did get it to work for FF and a couple of other browsers (Mac and Win), see again: http://webbytedd.com/quarters But the critter is

Re: [PHP] File Upload Security

2008-04-11 Thread Wolf
Al wrote: One of my sites has been hacked and I'm trying to find the hole. The hack code creates dirs with nobody ownership, so it's obvious stuff is not via ftp [ownership would be foo] Site is virtual host, Linux/Apache I'm concerned about a file uploader my users use to upload photos.