php-general Digest 4 Nov 2006 17:36:02 -0000 Issue 4440

2006-11-04 Thread php-general-digest-help
php-general Digest 4 Nov 2006 17:36:02 - Issue 4440 Topics (messages 244198 through 244209): Protecting Streaming Audio 244198 by: Adam Gittins 244206 by: Ed Lazor Re: 301 redirect returning 302 instead 244199 by: Chris Shiflett Re: Microsoft Partners With Zend

php-general Digest 5 Nov 2006 06:08:49 -0000 Issue 4441

2006-11-04 Thread php-general-digest-help
php-general Digest 5 Nov 2006 06:08:49 - Issue 4441 Topics (messages 244210 through 244222): Re: setlocale madness... please help! 244210 by: Jochem Maas Re: Finding user's timezone 244211 by: Dotan Cohen 244212 by: Jochem Maas Re: str_replace on words with an

Re: [PHP] 301 redirect returning 302 instead

2006-11-04 Thread Chris Shiflett
[EMAIL PROTECTED] wrote: header('HTTP/1.1 301 Moved Permanently'); header('Location: newurl'); exit(); If you're using PHP 4.3 or later, header() lets you set the response status code with the third argument. Otherwise, sending a Location header sets the response status code to 302. If you're

Re: [PHP] Microsoft Partners With Zend

2006-11-04 Thread André Medeiros
A bit out of topic perhaps, but is this the time to see Steve Balmer and his developers dance all over again? ;) H On 11/3/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, November 3, 2006 12:36 pm, Curt Zirzow wrote: Here is the actual demo given:

Re: [PHP] in_array() related problem

2006-11-04 Thread Tom Atkinson
Try like this: var_dump(in_array($a, $test, true)); Richard Lynch wrote: 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

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

2006-11-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-03 22:18:03 +0100: 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

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

2006-11-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-03 15:15:55 -0600: On Fri, November 3, 2006 12:45 am, John.H wrote: My php program whose owner is root: That has absolutely no influence on what user the process *runs* as. ? mkdir('test',0777); ? and the folder 'test' 's owner is 'nobody'? You're

[PHP] ChangeLog PHP 5.2.0 - Fileupload

2006-11-04 Thread Christian Heinrich
Hey all, I've just examined the latest Change-Log for Version 5.2.0 (see http://www.php.net/ChangeLog-5.php for details). Seems to be fine, but I couldn't figure out one point. The changelog talks about Added RFC1867 fileupload processing hook. (Stefan E.) and I actually don't know what

Re: [PHP] Protecting Streaming Audio

2006-11-04 Thread Ed Lazor
You put the data in a directory outside of the webspace and use PHP to grab the file and send it to someone. That way you're able to control access to the file. By webspace, I'm referring to the directories outside of the ones used to store and serve your webpages. This directory

Re: [PHP] ChangeLog PHP 5.2.0 - Fileupload

2006-11-04 Thread Rasmus Lerdorf
Christian Heinrich wrote: Hey all, I've just examined the latest Change-Log for Version 5.2.0 (see http://www.php.net/ChangeLog-5.php for details). Seems to be fine, but I couldn't figure out one point. The changelog talks about Added RFC1867 fileupload processing hook. (Stefan E.)

[PHP] postgreSQl and images

2006-11-04 Thread Alain Roger
Hi, I create a table with some large object (ref: OID) to store some images. When my PHP will display some data, it will also display the images stored as OID. However, i've read that before i must restore the image by exporting them to local (on server) file. isn't it easier in this case, to

Re: [PHP] ChangeLog PHP 5.2.0 - Fileupload

2006-11-04 Thread Ed Lazor
Very cool example. Probably best explained with an example: http://progphp.com/upload.php Try uploading a 200-300k file. The source code is at: http://progphp.com/upload.phps -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-11-04 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-03 22:18:03 +0100: 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:

Re: [PHP] Finding user's timezone

2006-11-04 Thread Dotan Cohen
On 03/11/06, Richard Lynch [EMAIL PROTECTED] wrote: 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

Re: [PHP] Finding user's timezone

2006-11-04 Thread Jochem Maas
Dotan Cohen wrote: On 03/11/06, Richard Lynch [EMAIL PROTECTED] wrote: 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

Re: [PHP] str_replace on words with an array

2006-11-04 Thread Dotan Cohen
On 03/11/06, Richard Lynch [EMAIL PROTECTED] wrote: 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

[PHP] Pear

2006-11-04 Thread Alain Roger
Hi, I would like to know if a lot of people use the PEAR system (packages + core) to their web sites ? One of my colleague uses it for company internal usage, but i wonder if my web hoster will allow me to use and install it...because i have only a webftp access to my business web site...

Re: [PHP] Pear

2006-11-04 Thread Rory Browne
I don't know about the command line pear app, but I don't see how they either (a) could, or (b) would want to, stop you from using the individual pear libraries. Unless they scan all the files you ftp to your site. Just upload the ones that you require. Some downloadables that use the Pear

[PHP] phpPgAdmin

2006-11-04 Thread Alain Roger
Hi, Is there a way via PhpPgAdmin to export/import the whole database info (structure, schema, tables, index, sequences, data...) ? Because i developed my database on local server and now i want to import to my web hoster server... and i do not want to recreate everything manually :-( thx,

[PHP] Issue when inserting Slovak characters in database via PHP code

2006-11-04 Thread Alain Roger
Hi, Sorry to cross post this mail but i'm not able to know from where comes my issue. I have a postgreSQL database in UNICODE (UTF-8 in v8.1.4 and UNICODE in v8.0.1). Via my web application i type a sentence in Slovak language and it is stored into DB without any slovak characters. Instead of

Re: [PHP] postgreSQl and images

2006-11-04 Thread Børge Holen
On Saturday 04 November 2006 18:26, Alain Roger wrote: Hi, I create a table with some large object (ref: OID) to store some images. When my PHP will display some data, it will also display the images stored as OID. However, i've read that before i must restore the image by exporting them

Re: [PHP] phpPgAdmin

2006-11-04 Thread Nirmalya Lahiri
--- Alain Roger [EMAIL PROTECTED] wrote: Hi, Is there a way via PhpPgAdmin to export/import the whole database info (structure, schema, tables, index, sequences, data...) ? Because i developed my database on local server and now i want to import to my web hoster server... and i do

[PHP] Trying to create an encryption method

2006-11-04 Thread John Meyer
I'm trying to create this encryption method for puzzles (nothing super secret, just those cryptograms), but this seems to time out, can anybody point out what I'm doing wrong here: for ($i=1;$i=26;$i++) { $normalAlphabet[$i] = chr($i); } //now, to shuffle for

Re: [PHP] Trying to create an encryption method

2006-11-04 Thread Stut
John Meyer wrote: for ($i=1;$i=26;$i++) { $normalAlphabet[$i] = chr($i); } //now, to shuffle for ($j=1;$j=26;$j++) { do { $k = rand(1,26); } while ($k == $j || (strlen(trim($normalAlphabet[$k])) === 0));

Re: [PHP] Protecting Streaming Audio

2006-11-04 Thread Adam Gittins
Thanks. :) That's an idea... Few questions. Grab the file and sendt it to someone, that would work with a download but would it work with a streaming audio file, because that has to be opened in realOne player or windows media player? I was searching PHP.net documentation for a way of grabbing a

[PHP] imagejpeg

2006-11-04 Thread Ron Piggott (PHP)
Is there a way to specify a font when using imagejpeg ? Ron

Re: [PHP] 301 redirect returning 302 instead

2006-11-04 Thread ianevans
Chris, I just posted this to php-internals in response to someone else, but this tale of woe shows the problem: header(HTTP/1.1 301 Moved Permanently); header(Location: http://...;); exit(); produces a 302. header(Location: http://...;); header(HTTP/1.1 301 Moved Permanently); exit();

Re: [PHP] Trying to create an encryption method

2006-11-04 Thread Paul Novitski
At 11/4/2006 08:15 PM, John Meyer wrote: I'm trying to create this encryption method for puzzles (nothing super secret, just those cryptograms), but this seems to time out, can anybody point out what I'm doing wrong here: for ($i=1;$i=26;$i++) { $normalAlphabet[$i] = chr($i);