Re: [PHP] Ide help needed

2007-04-01 Thread Davi
Em Sexta 30 Março 2007 14:39, [EMAIL PROTECTED] escreveu: > I am a beginer with php and i need to know which IDE is best suited > under windows and linux both > > i have seen dreamweaver working and have heard about GoLive too but don't > know whichone to go for > > can you please help me decide >

Re: [PHP] finding the index name of an associative array

2007-04-01 Thread Myron Turner
Man-wai Chang wrote: > myarray=array() > myarray['a']=1 > myarray['b']=1 > myarray['c']=1 > > Is there an iterative way to find out the array index values ('a', 'b' > and 'c') of myarray? > > array *array_keys* ( array $input [, mixed $search_value [, bool $strict]] ) *array_keys()* returns th

[PHP] RE: HTDIGEST FILE FORMAT

2007-04-01 Thread Buesching, Logan J
The password is the hash of the entire thing, not just the password. So it would be the following: echo "admin:trac:".md5('admin:trac:admin'); -Logan -Original Message- From: Manolet Gmail [mailto:[EMAIL PROTECTED] Sent: Sunday, April 01, 2007 5:28 PM To: php-general@lists.php.net Subj

Re: [PHP] simple page not found 404 script - PHP

2007-04-01 Thread Zoltán Németh
2007. 03. 30, péntek keltezéssel 19.01-kor Dwayne Heronimo ezt írta: > wierd.. your code is behaving exactly the same as mine did. > it will display the error and the page.. but both at the same time :S > > it is working but somehow it continues to execute. > > http://arubaguide.org/arubaguide/ca

[PHP] HTDIGEST FILE FORMAT

2007-04-01 Thread Manolet Gmail
hi, i want a php script to create htdigest file... the correct file is: username:admin digest:trac pass:admin admin:trac:71ea86385b35d5e2575b0baec1904ded i try to do it on php with this: echo "admin:trac:".md5("admin"); but i receive this: admin:trac:21232f297a57a5a743894a0e4a801fc3 how is

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Larry Garfield
On Sunday 01 April 2007 3:09 pm, Jürgen Wind wrote: > Larry Garfield wrote: > > ...segfaults under PHP 5.1.6 ... > > php 5.1.5/6 was the source for many segfaults (f.e. using phpmyadmin) > better don't use it any more. See also: > http://bugs.php.net/bug.php?id=39036 Oh goodie. That only includes

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Jürgen Wind
Larry Garfield wrote: > > ...segfaults under PHP 5.1.6 ... > php 5.1.5/6 was the source for many segfaults (f.e. using phpmyadmin) better don't use it any more. See also: http://bugs.php.net/bug.php?id=39036 -- View this message in context: http://www.nabble.com/PDO-and-buffered-queries-tf34

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Larry Garfield
On Sunday 01 April 2007 3:42 am, Tijnema ! wrote: > > On Wednesday 28 March 2007 11:14 pm, Larry Garfield wrote: > > > HI all. The PHP.net manual is somewhat unclear on this point, so I > > > thought I'd ask here. Does PDO automatically buffer queries the way > > > that the mysql_* extension doe

Re: [PHP] Gnome and MIME types

2007-04-01 Thread Nathan Ziarek
Thanks for the tips. What I ultiamtely ended up finding was that www-data's home dir is / var/www/. I made a writeable directory called .gnome2 in there and then the command worked. I then made that directory read-only and the command still works. For whatever it is worth (in case I'm maki

Re: [PHP] PHP sample code for XMLHttprequest with jQuery

2007-04-01 Thread tedd
At 10:26 PM +0200 3/30/07, Otto Wyss wrote: I'm currently evaluating jQuery as a Javascript library for my web site but first would like to see a working sample with PHP doing XMLHttprequest. Is anyone else using jQuery and has some sample code to look at? O. Wyss I'm not using php to gener

Re: [PHP] Re: Downloads for subsrcibers only

2007-04-01 Thread Mário Gamito
Hi, itoctopus wrote: > Depends where you store the file, if you store the file in the database, > then it's much easier to do it. > Your idea (as it is right now) won't work, because anyone will be able to > copy and paste the link to your PDF document and download it (thus easily > overriding the

Re: [PHP] Get free broadband internet from google!

2007-04-01 Thread tedd
At 2:29 PM +0200 4/1/07, Tijnema ! wrote: Hi, It's true, free broadband internet from google :) Have a look at this page: http://www.google.com/tisp Start now with installing: http://www.google.com/tisp/install.html Tijnema Tijnema: Not that I fell for it, but I just couldn't imagine why G

Re: [PHP] Audio CAPTCHA review request

2007-04-01 Thread tedd
At 3:02 AM -0500 4/1/07, Richard Lynch wrote: On Fri, March 30, 2007 2:23 am, Tijnema ! wrote: Speech recognition isn't working very well, and i don't think it would be able to get these numbers from the audio, but I have too less experience with speech recognition. Put it this way: If Co

Re: [PHP] Alternative/Addition to using a CAPTCHA

2007-04-01 Thread tedd
At 2:00 AM -0500 4/1/07, Richard Lynch wrote: On Fri, March 30, 2007 2:29 pm, [EMAIL PROTECTED] wrote: For those of you not following, what tedd's done with is blue dot is created a larger image that contains a blue dot somewhere. You can click in a fairly wide area, but only clicking on the

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread itoctopus
foreach is also not recursive, writing a recursive function to recursively return the keys in an array should be trivial. -- itoctopus - http://www.itoctopus.com "Man-wai Chang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > itoctopus wrote: > > Note, however, that array_keys is not

RE: [PHP] Re: finding the index name of an associative array

2007-04-01 Thread Peter Lauri
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Man-wai Chang > Sent: Sunday, April 01, 2007 2:45 PM > To: php-general@lists.php.net > Subject: [PHP] Re: finding the index name of an associative array > > itoctopus wrote: > > Note, however, that array_keys is not r

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread Man-wai Chang
itoctopus wrote: > Note, however, that array_keys is not recursive. foreach is recursive??? thanks. -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.10) Linux 2.6.20.4 ^ ^ 20:44:01 up

Re: [PHP] Security Best Practice: typecast?

2007-04-01 Thread tedd
At 11:03 PM -0500 3/31/07, Richard Lynch wrote: So, after a recent thread on data filtering, I'm wondering... Is this "good enough" in ALL possible Unicode/charset situations: $foo_id = (int) $_POST['foo_id']; $query = "insert into whatever(foo_id) values($foo_id)"; The range of Unicode is m

[PHP] Re: Get free broadband internet from google!

2007-04-01 Thread itoctopus
That's funny, looks like the good people at google have lots of time on their hands. -- itoctopus - http://www.itoctopus.com ""Tijnema !"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > It's true, free broadband internet from google :) > > Have a look at this page: > http://

[PHP] Get free broadband internet from google!

2007-04-01 Thread Tijnema !
Hi, It's true, free broadband internet from google :) Have a look at this page: http://www.google.com/tisp Start now with installing: http://www.google.com/tisp/install.html Tijnema ps. 1 April is cool huh? -- PHP General Ma

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread itoctopus
Note, however, that array_keys is not recursive. -- itoctopus - http://www.itoctopus.com "Man-wai Chang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jake McHenry wrote: > > foreach ($myarray as $key => $value) > > { > > echo "$key = $value"; > > } > > Thanks. I just found that

[PHP] Re: Downloads for subsrcibers only

2007-04-01 Thread itoctopus
Depends where you store the file, if you store the file in the database, then it's much easier to do it. Your idea (as it is right now) won't work, because anyone will be able to copy and paste the link to your PDF document and download it (thus easily overriding the logic you have in the page). I'

[PHP] Re: why would these few statements writes the array?

2007-04-01 Thread Man-wai Chang
Man-wai Chang wrote: > $array = array(1,2,3); > foreach( $array as &$item ); > foreach( $array as $item ); > print_r( $array ); > > foreach is a read, not a write, isn't it? I got it... -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-01 Thread Jürgen Wind
Richard Lynch wrote: > > On Fri, March 30, 2007 12:13 pm, Juergen Wind wrote: >> Tijnema ! wrote: >>> >>> You can use session within javascript too i believe. >>> >> no, sessions are completely serverside, but you can use js to pass >> variables >> using the query string when sending a xmlHttpR

[PHP] why would these few statements writes the array?

2007-04-01 Thread Man-wai Chang
$array = array(1,2,3); foreach( $array as &$item ); foreach( $array as $item ); print_r( $array ); foreach is a read, not a write, isn't it? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6

[PHP] Re: finding the index name of an associative array

2007-04-01 Thread Man-wai Chang
Jake McHenry wrote: > foreach ($myarray as $key => $value) > { > echo "$key = $value"; > } Thanks. I just found that there is an array_key() function. -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _

Re: [PHP] Security Best Practice: typecast?

2007-04-01 Thread Tijnema !
On 4/1/07, Richard Lynch <[EMAIL PROTECTED]> wrote: So, after a recent thread on data filtering, I'm wondering... Is this "good enough" in ALL possible Unicode/charset situations: $foo_id = (int) $_POST['foo_id']; $query = "insert into whatever(foo_id) values($foo_id)"; Or is it possible, even

[PHP] Downloads for subsrcibers only

2007-04-01 Thread Mário Gamito
Hi, I made this site in PHP that has a page with some PDFs to download. My costumer wants that only subscribed people are allowed to download the PDFs. I've already made the subscrbe and login mechanism. Now, my question for you is about letting only subscribers download the PDFs. What is the be

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Tijnema !
On 4/1/07, Larry Garfield <[EMAIL PROTECTED]> wrote: So there's no PDO experts out there, eh? :-( No, not really a PDO expert ;) On Wednesday 28 March 2007 11:14 pm, Larry Garfield wrote: > HI all. The PHP.net manual is somewhat unclear on this point, so I thought > I'd ask here. Does PDO a

Re: [PHP] Re: 0x9f54

2007-04-01 Thread Tijnema !
On 4/1/07, Man-wai Chang <[EMAIL PROTECTED]> wrote: >> MySQL? MSSQL? PgSQL? >> Tijnema > It seems he wanted to insert a Chinese character with that hex value. Yes... I tried the insert with PHP, including the use of mysql_real_escape_string(), but MySQL still gave me a blank only. Well, sh

RE: [PHP] finding the index name of an associative array

2007-04-01 Thread Jake McHenry
foreach ($myarray as $key => $value) { echo "$key = $value"; } > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Man-wai Chang > Sent: Sunday, April 01, 2007 3:59 AM > To: php-general@lists.php.net > Subject: [PHP] finding the index name of an associative array >

Re: [PHP] Audio CAPTCHA review request

2007-04-01 Thread Richard Lynch
On Fri, March 30, 2007 2:23 am, Tijnema ! wrote: > Speech recognition > isn't working very well, and i don't think it would be able to get > these numbers from the audio, but I have too less experience with > speech recognition. Put it this way: If Corporate America uses speech recognition on nat

[PHP] finding the index name of an associative array

2007-04-01 Thread Man-wai Chang
myarray=array() myarray['a']=1 myarray['b']=1 myarray['c']=1 Is there an iterative way to find out the array index values ('a', 'b' and 'c') of myarray? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _