[PHP] Protecting Streaming Audio

2006-11-03 Thread Adam Gittins
Dear List, I have had a question that has been bugging me for a while now. Say that I need to have a members website. Which I want to protect streaming audio (Real, or Windows Media), now all the pages I can protect with a MYSQL DB and PHP. But when it comes to protecting a url of a file or a

[PHP] Protecting Streaming Audio

2006-11-03 Thread Adam Gittins
Dear List, I have had a question that has been bugging me for a while now. Say that I need to have a members website. Which I want to protect streaming audio (Real, or Windows Media), now all the pages I can protect with a MYSQL DB and PHP. But when it comes to protecting a url of a file or a

Re: [PHP] Mac PHP & MySQL

2006-11-03 Thread Ed Lazor
Thanks Johan, I appreciate the info. I ended up going with MAMP as a quick solution. On Nov 2, 2006, at 11:29 PM, Johan Martin wrote: On 02 Nov 2006, at 5:11 PM, Ed Lazor wrote: I'm trying to configure and compile PHP 5. The configure is failing to find the MySQL UNIX socket. Any idea

[PHP] Make install dumps core with PHP 5.2.0

2006-11-03 Thread Mendonce, Kiran (STSD)
On HP-UX Itanium, make install of PHP 5.2.0 dumps core while installing pear. The php cli gets built fine, but when it is executed with the install-pear-nozlib.phar as argumnt (part of the installation), it fails with a SIGSEGV. I noticed that someone has already filed a bug against this (#39252).

Re: [PHP] Re: preg_split

2006-11-03 Thread Google Kreme
On 03 Nov 2006, at 15:56 , Stut wrote: Google Kreme wrote: On 03 Nov 2006, at 12:32 , Myron Turner wrote: 2. Why do you need this complex expression to split at a comma? This '/,/' would do the trick. And even simpler explode(',', $line); Because I need to split only at the FIRST com

Re: [PHP] Microsoft Partners With Zend

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 12:36 pm, Curt Zirzow wrote: > Here is the actual demo given: > http://blogs.iis.net/bills/archive/2006/10/31/PHP-on-IIS.aspx > > As seen my numbers were off a little bit from memory. > > I'm not sure exactly what the kernel cache is, it is some thing the > file http.sys th

Re: [PHP] Re: preg_split

2006-11-03 Thread Myron Turner
I see, I miusunderstood, read too quickly, and thought you simply wanted to split at the comma. The suggestion that you use exlode(',',2) makes sense to me. You could do the same with preg_split ($pattern, $string, 2) Or for a more complex regex, there's preg_match, which puts the

[PHP] Re: Iterating over parallel arrays using each()

2006-11-03 Thread Brian Salomaki
Thanks to a reply off-list, I figured out that this was an issue of operator precedence (&& over =). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: preg_split

2006-11-03 Thread Stut
Google Kreme wrote: > On 03 Nov 2006, at 12:32 , Myron Turner wrote: >> 2. Why do you need this complex expression to split at a comma? This >> '/,/' would do the trick. And even simpler >> explode(',', $line); > > Because I need to split only at the FIRST comma. explode(',', $line, 2);

[PHP] Re: WAP?

2006-11-03 Thread Richard Lynch
I *knew* it was something stupid! is not the same at all as I need new glasses! :-( SORRY!!! I *do* want to thank everybody who helped me out! And the W3C validator wins the prize for being the *most* helpful for this paritcular idiot. -- Some people have a "gift" link here. Know what I wa

Re: [PHP] Re: preg_split

2006-11-03 Thread Google Kreme
On 03 Nov 2006, at 12:32 , Myron Turner wrote: 1. A preg_ expression has to have the delimeters '/^([^,]+),\s?(.*)/'. Ah, well, that would make a difference. $cid[$i]=preg_split('/^([^,]+),\s?(.*)/', $l

Re: [PHP] WAP?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 1:19 pm, [EMAIL PROTECTED] wrote: > Doesn't look like the content type is set properly. The tutorial referenced says: "Content-type: text/vnd.wap.wml" wget is telling me I have: 1 HTTP/1.1 200 OK 2 Date: Fri, 03 Nov 2006 22:10:56 GMT 3 Server: Apache/2.0.59 (FreeBSD) P

Re: [PHP] why so slow?

2006-11-03 Thread Jon Anderson
Richard Lynch wrote: On Fri, November 3, 2006 1:12 pm, Jon Anderson wrote: Or you can .htaccess "Deny From All" them out... That's my preferred solution. It keeps the include tree near the code that accompanies it without risking anything even if they're called *.php. Until you upgrade

RE: [PHP] open source zip code geographical drill down

2006-11-03 Thread Daevid Vincent
> If you've got several more hours to spare, providing a Google map as > an alternative is also quite do-able, though not as quick-n-easy as > you have to walk the XML output in Javascript "by hand" instead of > letting a built-in function do it for you. > > Then you just need to spend a day or tw

Re: [PHP] why so slow?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 1:12 pm, Jon Anderson wrote: > Or you can .htaccess "Deny From All" them out... That's my preferred > solution. It keeps the include tree near the code that accompanies it > without risking anything even if they're called *.php. Until you upgrade Apache and forget to enabl

Re: [PHP] How to Display a page while script runs?

2006-11-03 Thread Richard Lynch
Waiting 20 seconds for a web page is rather inexcusable, isn't it?\n"; echo str_repeat(' ', 2048); flush(); //rest of script here ?> On Thu, November 2, 2006 3:46 pm, Chris wrote: > > I have a php script which takes maybe 15-20 seconds to run, however > until it > completes a blank web page is di

Re: [PHP] Viruses

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 12:13 am, [EMAIL PROTECTED] wrote: > Unfortunate reality of today's online universe. Email has become increasingly less useful over the last few years... I don't even *do* email anymore -- I do email triage. :-) -- Some people have a "gift" link here. Know what I want?

Re: [PHP] Use of substr()

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 12:33 am, jekillen wrote: > I am scratching my head over the following: > I have written code that is supposed to format text > sent from a form in a textarea form element. > This text does not have new lines added if > the text is allowed to automatically wrap to the > nex

Re: [PHP] setlocale madness... please help!

2006-11-03 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2006-11-03 16:16:11 +0100: >> Roman Neuhauser wrote: >>> # [EMAIL PROTECTED] / 2006-11-03 14:51:39 +0100: 1. running the command 'locale -a' returns the following [shortened] list: ... > in fact I can set any installed locale I want o

Re: [PHP] Why a script belong to user 'root' and the folder this script create is belonged to user 'nobody'?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 12:45 am, John.H wrote: > My php program whose owner is root: > > mkdir('test',0777); > ?> > > and the folder 'test' 's owner is 'nobody'? > why?should the folder belong to 'root' too? > By the way,the safe mode is turned on. I believe that the umask and other OS set

Re: [PHP] str_replace on words with an array

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 5:30 am, Dotan Cohen wrote: > To all others who took part in this thread: I was unclear on another > point as well, the issue of sql-injection. As I'm removing the > symbols, signs, and other non-alpha characters from the query, I > expect it to be sql-injection proof. As I

Re: [PHP] Finding user's timezone

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 6:55 am, Dotan Cohen wrote: > On 03/11/06, André Medeiros <[EMAIL PROTECTED]> wrote: >> The result of that function would depend on where the server is >> installed, not where the client is accessing it from, right? >> > > That's not what php.net/date implies: > e: "Ti

Re: [PHP] Finding user's timezone

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 6:09 am, Dotan Cohen wrote: > How does php decide what timezone a user is in? Although I am in > Haifa, Israel (GMT+2), when I go to a page with date("e") I get > "America/New_York" displayed. I could be wrong, but I think date('e') tells us where your SERVER is. Or, more

Re: [PHP] open source zip code geographical drill down

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 9:00 am, Ben Liu wrote: > I'm trying to build some functionality commonly seen on the web where > a user enters a zip code and they are provided with a listing of > business or entity locations sorted by geographical distance. I've got > a client with a distributor network

Re: [PHP] in_array() related problem

2006-11-03 Thread Richard Lynch
Try providing a custom comparison function. Almost for sure, PHP is attempting to "test" the == by a deeper scan than you think. On Fri, November 3, 2006 10:56 am, tamcy wrote: > Hello all, > > I'm new to this list. To not flooding the bug tracking system I hope > to clarify some of my understand

[PHP] PEAR - LOG

2006-11-03 Thread Sr. Paulo Ricardo
Ola pessoal. Uso o PEAR em algumas coisas. Mas realmente estou quebrando a cabeça nesse LOG. Que troço complicado. Alguém já tentou usá-lo e poderia me mandar exemplos, manual ou algo do tipo? Ate a documentação dele eu não encontrei muita coisa. http://pear.php.net/package/Log/

Re: [PHP] Microsoft Partners With Zend

2006-11-03 Thread Robert Cummings
On Fri, 2006-11-03 at 10:36 -0800, Curt Zirzow wrote: > Here is the actual demo given: > http://blogs.iis.net/bills/archive/2006/10/31/PHP-on-IIS.aspx > > As seen my numbers were off a little bit from memory. > > I'm not sure exactly what the kernel cache is, it is some thing the > file http.sys

[PHP] Re: preg_split

2006-11-03 Thread Myron Turner
1. A preg_ expression has to have the delimeters '/^([^,]+),\s?(.*)/'. 2. Why do you need this complex expression to split at a comma? This '/,/' would do the trick. And even simpler explode(',', $line); Also your regex ^([^,]+) asks the perl regex parser to find the beginnin

Re: [PHP] WAP?

2006-11-03 Thread tg-php
Doesn't look like the content type is set properly. Here's another link that may be useful (from Zend themselves!) maybe that can help you out a bit. Content type and setting the xml version and DOCTYPE in the header are all fairly important. Also, if I recall.. Firefox and/or Opera (not IE)

Re: [PHP] why so slow?

2006-11-03 Thread Jon Anderson
Richard Lynch wrote: On Thu, November 2, 2006 3:01 pm, Alan Milnes wrote: Don't call files .inc - call them .inc.php if you really must have the inc somewhere, that way the Web Server will actually treat it as a php file and not display your details to the world if accessed directly.

Re: [PHP] WAP?

2006-11-03 Thread Richard Lynch
On Fri, November 3, 2006 3:14 am, clive wrote: >> Anybody want to nudge me in the right general direction?... I appreciate everybody's help, I really do, but... At this point, I've gone through about 10 "Hello World" tutorials, altered my DOCTYPE and DTD several times, used 2 different handsets a

Re: [PHP] open source zip code geographical drill down

2006-11-03 Thread Leonard Burton
Hi Ben, I'm trying to build some functionality commonly seen on the web where a user enters a zip code and they are provided with a listing of business or entity locations sorted by geographical distance. I came up with a script to where it will do this, however, the big question is how many d

[PHP] preg_split

2006-11-03 Thread Google Kreme
OK, I have this file: $cid=preg_split('^([^,]+),\s?(.*)', $line, -1, PREG_SPLIT_DELIM_CAPTURE); } ?> the trouble is, $cid is empty. The actual file has lots of print lines, so I know that $lines is an array with each line for $CID_FILE as one element of the array and t

Re: [PHP] why so slow?

2006-11-03 Thread Richard Lynch
On Thu, November 2, 2006 3:01 pm, Alan Milnes wrote: > Robin Vickery wrote: >> include("http://www.squareinch.net/include/misc.inc";); > Don't call files .inc - call them .inc.php if you really must have the > inc somewhere, that way the Web Server will actually treat it as a php > file and not dis

Re: [PHP] Microsoft Partners With Zend

2006-11-03 Thread Curt Zirzow
Here is the actual demo given: http://blogs.iis.net/bills/archive/2006/10/31/PHP-on-IIS.aspx As seen my numbers were off a little bit from memory. I'm not sure exactly what the kernel cache is, it is some thing the file http.sys thing does and handles requests before IIS even sees them, I'm thin

[PHP] Re: Encoding PC-850

2006-11-03 Thread Nisse Engström
On Mon, 30 Oct 2006 16:21:58 +0100, [EMAIL PROTECTED] wrote: > I need to be able to encode text to PC-850 but I have big trouble > finding out info about this encoding. Does it even exist? I get a few > google hits, but nothing useful. Any idea of how I can convert for > example an UTF-8 string or

[PHP] Iterating over parallel arrays using each()

2006-11-03 Thread Brian Salomaki
I looked for a little while and didn't find any elegant solutions for doing this, so first if you have alternate suggestions for the "right" way to do this, I'd love to hear them. I'm working with a big form to allow a user to make a change to many database rows at the same time. The results a

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-03 Thread Eric Butera
On 11/1/06, David Négrier <[EMAIL PROTECTED]> wrote: Hello there, I'm having a somewhat unusual question here, and I cannot find any way to solve it. I have a PHP page that displays a message, and then, performs a very long operation. Note that it displays the message first. I do not intend to

Re: [PHP] Finding user's timezone

2006-11-03 Thread André Medeiros
I second that. My company has an IP address on the mainland which is our internet gateway, but on the azorean islands the time zone is different. On 11/3/06, Edward Kay <[EMAIL PROTECTED]> wrote: > Hmm... in $_SERVER array you get a client IP so You know client coutry. if > exists a list of ip

[PHP] in_array() related problem

2006-11-03 Thread tamcy
Hello all, I'm new to this list. To not flooding the bug tracking system I hope to clarify some of my understanding here. I am referring to the (now bogus) bug report http://bugs.php.net/bug.php?id=39356&edit=2. This happens after my upgrade to PHP 5.2, where the code shown produces a "Fatal err

Re: [PHP] How to Display a page while script runs?

2006-11-03 Thread tedd
At 4:46 PM -0500 11/2/06, Chris wrote: I have a php script which takes maybe 15-20 seconds to run, however until it completes a blank web page is displayed to the user. Is there a way/method which would enable me to give some feedback to the user while the script is running so the blank page is n

Re: [PHP] setlocale madness... please help!

2006-11-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-03 16:16:11 +0100: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2006-11-03 14:51:39 +0100: > >> 1. running the command 'locale -a' returns the following [shortened] list: > >> > >> C > >> de_DE > >> dutch > >> en_GB > >> nl_NL > >> [EMAIL PROTECTED] > >> nl_NL.is

[PHP] File Repository / Managment Software

2006-11-03 Thread Prathaban Mookiah
Hello, Is there a open source file repository / managment software written in PHP ? I need to setup a file repository where everyone working in my group can share their files in an organized manner. I am talking about something like phpBB, but with file handling capabilities. Thanks in advance

RE: [PHP] Finding user's timezone

2006-11-03 Thread Edward Kay
> Hmm... in $_SERVER array you get a client IP so You know client coutry. if > exists a list of ip numbers and coutries should be exists list > coutries and > timezones too, so it should be easy. Eventually you may create > short list of > this countries what will be visitors from (or only biggest

Re: [PHP] setlocale madness... please help!

2006-11-03 Thread Jochem Maas
hi Roman, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2006-11-03 14:51:39 +0100: >> 1. running the command 'locale -a' returns the following [shortened] list: >> >> C >> de_DE >> dutch >> en_GB >> nl_NL >> [EMAIL PROTECTED] >> nl_NL.iso88591 >> [EMAIL PROTECTED] >> nl_NL.utf8 >> [EMAIL PROTECTE

Re: [PHP] setlocale madness... please help!

2006-11-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-03 14:51:39 +0100: > 1. running the command 'locale -a' returns the following [shortened] list: > > C > de_DE > dutch > en_GB > nl_NL > [EMAIL PROTECTED] > nl_NL.iso88591 > [EMAIL PROTECTED] > nl_NL.utf8 > [EMAIL PROTECTED] > POSIX > > 2. running the following from t

[PHP] open source zip code geographical drill down

2006-11-03 Thread Ben Liu
I'm trying to build some functionality commonly seen on the web where a user enters a zip code and they are provided with a listing of business or entity locations sorted by geographical distance. I've got a client with a distributor network and I need to create something like this for them. They

Re: [PHP] Finding user's timezone

2006-11-03 Thread Pawel Miroslawski
Hmm... in $_SERVER array you get a client IP so You know client coutry. if exists a list of ip numbers and coutries should be exists list coutries and timezones too, so it should be easy. Eventually you may create short list of this countries what will be visitors from (or only biggest coutries).

Re: [PHP] str_replace on words with an array

2006-11-03 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-30 21:18:33 +: > Dotan Cohen wrote: > > $searchQuery=str_replace( "^".$noiseArray."$", " ", $searchQuery); > > Ok, this is what the compiler will see... > > $searchQuery=str_replace("^Array$", " ", $searchQuery); > > Yes, that's a literal Array in the string. Yo

[PHP] setlocale madness... please help!

2006-11-03 Thread Jochem Maas
I have a debian box, I have just added a bunch of locales using the following command: dpkg-reconfigure locales before I added more locales the only installed locale was '[EMAIL PROTECTED]'. my php version is 5.1.2, now for the madness: 1. running the command 'locale -a' returns the fol

Re: [PHP] Finding user's timezone

2006-11-03 Thread Stut
Dotan Cohen wrote: On 03/11/06, M <[EMAIL PROTECTED]> wrote: You can use javascript: var Today = new Date(); alert(Today.toString()); just parse the output using regexp Hmm, I suppose that I could use Javascript, but I'd rather do it all serverside. Any other ideas on behalf of the think-ta

Re: [PHP] Finding user's timezone

2006-11-03 Thread Dotan Cohen
On 03/11/06, M <[EMAIL PROTECTED]> wrote: You can use javascript: var Today = new Date(); alert(Today.toString()); just parse the output using regexp Hmm, I suppose that I could use Javascript, but I'd rather do it all serverside. Any other ideas on behalf of the think-tank that is this list

Re: [PHP] Finding user's timezone

2006-11-03 Thread Stut
Dotan Cohen wrote: On 03/11/06, André Medeiros <[EMAIL PROTECTED]> wrote: The result of that function would depend on where the server is installed, not where the client is accessing it from, right? That's not what php.net/date implies: e: "Timezone identifier" T : "Timezone setting of this m

Re: [PHP] Finding user's timezone

2006-11-03 Thread Dotan Cohen
On 03/11/06, André Medeiros <[EMAIL PROTECTED]> wrote: The result of that function would depend on where the server is installed, not where the client is accessing it from, right? That's not what php.net/date implies: e: "Timezone identifier" T : "Timezone setting of this machine" If "T" is t

Re: [PHP] Finding user's timezone

2006-11-03 Thread Stut
André Medeiros wrote: The result of that function would depend on where the server is installed, not where the client is accessing it from, right? Close but no cigar! It's how the server is configured, not where it is installed. But essentially correct, the PHP datetime functions use the serv

Re: [PHP] Finding user's timezone

2006-11-03 Thread André Medeiros
The result of that function would depend on where the server is installed, not where the client is accessing it from, right? On 11/3/06, Dotan Cohen <[EMAIL PROTECTED]> wrote: How does php decide what timezone a user is in? Although I am in Haifa, Israel (GMT+2), when I go to a page with date("e

[PHP] Finding user's timezone

2006-11-03 Thread Dotan Cohen
How does php decide what timezone a user is in? Although I am in Haifa, Israel (GMT+2), when I go to a page with date("e") I get "America/New_York" displayed. To confirm, could some users tell me what output they get on: http://what-is-what.com/what_time_is_it.php Let me know where you are in th

Re: [PHP] str_replace on words with an array

2006-11-03 Thread Dotan Cohen
On 31/10/06, Larry Garfield <[EMAIL PROTECTED]> wrote: From your original message, it sounds like you want to strip selected complete words, not substrings, from a string for indexing or searching or such. Right? I think that was my mistake- not differentiating between the two. Symbols and such

[PHP] Re: Frameworks

2006-11-03 Thread Tony Marston
It totally depends on what type of application you are writing, and what features you want "out of the box" so that you don't have to design and write them yourself. For example, if you are writing an administrative web application and you want user authentication, dynamic menus, role based acc

Re: [PHP] WAP?

2006-11-03 Thread clive
Richard Lynch wrote: Anybody want to nudge me in the right general direction?... WAP 1.2.1 (not sure of the last version number ) is dead. Dont even bother with WAP 1. WAP 2 is based on XHTML MP, thats xhtml mobile profile. Most newer phones are in some way compliant with WAP 2. What I mea

Re: [PHP] WAP?

2006-11-03 Thread Aarno Syvänen
Perhaps you should start at http://www.kannel.org Aarno On 02 Nov 2006, at 22:02, Richard Lynch wrote: So today I was tasked with converting a PHP SMS solution to a PHP WAP solution... My first attempt at running through a Zend tutorial from 2000 was of limited success... Apparently, the car