[PHP] tod help (copy function)

2006-10-17 Thread todtot87
I am having an issue with the copy function. When I use the php.net specifications with the URLs being relative URLs I get a permission error but all files and folders are set to 777. See Code 1. If I use an ftp url it works for a few times but eventually I start copying blank pages. See Code 2

Re: [PHP] _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us

2006-10-17 Thread John Taylor-Johnston
Stut, Richard, Thanks for the feedback! Quebec has a language law, so I'm obligated to serve French first. I can wiggle around that if the preferred language is "other". John Is this a reasonable approach? if(stristr($_SERVER["HTTP_HOST"],"fr")) { include("french.htm");}else{ include("english

Re: [PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Michael Hogsett
Chris wrote: php_admin_value upload_tmp_dir /usr/local/www/subsite/virtual-server-hostname.domain/tmp/uploads php_admin_value upload_max_filesize "100M" I'm fairly sure you can't use constants or size shortucts (like "100M") anywhere but php.ini. Maybe it works in the global sco

Re: [PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Chris
Michael Hogsett wrote: Chris wrote: That is rather strange. I'm running different versions of both php and apache but it works: php_admin_value upload_tmp_dir /usr/local/www/subsite/virtual-server-hostname.domain/tmp/uploads php_admin_value upload_max_filesize "100M" I

Re: [PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Michael Hogsett
Chris wrote: That is rather strange. I'm running different versions of both php and apache but it works: php_admin_value upload_tmp_dir /usr/local/www/subsite/virtual-server-hostname.domain/tmp/uploads php_admin_value upload_max_filesize "100M" That is - not ins

Re: [PHP] How to recognise url in a block of text

2006-10-17 Thread Paul Novitski
At 10/17/2006 12:39 AM, AYSERVE.NET wrote: Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as a link within that text. Here's an illustration of your problem: Input: Text text http://example.com/directory/filename.html#anchor te

[PHP] Displaying Arabic Texts as Image (Problems: arabic chars is reversed?)

2006-10-17 Thread Louie Miranda
I had been looking for a solution on how to display arabic characters on an image using PHP "properly", but could not find yet a solution.Tried google, and nothing (Maybe the howto is written in arabic, i dont know). I found http://www.php4arab.org/, but could not understand the chars on how to joi

Re: [PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Chris
Michael Hogsett wrote: Chris wrote: Michael Hogsett wrote: Why can I not set "upload_max_filesize" or "upload_tmp_dir" inside my virtual host directive? These are exactly the kinds of ini directives that you would want to set per virtual host. I can set "open_basedir" inside my virtual host u

Re: [PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Michael Hogsett
Chris wrote: Michael Hogsett wrote: Why can I not set "upload_max_filesize" or "upload_tmp_dir" inside my virtual host directive? These are exactly the kinds of ini directives that you would want to set per virtual host. I can set "open_basedir" inside my virtual host using php_admin_value, bu

Re: [PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Chris
Michael Hogsett wrote: Why can I not set "upload_max_filesize" or "upload_tmp_dir" inside my virtual host directive? These are exactly the kinds of ini directives that you would want to set per virtual host. I can set "open_basedir" inside my virtual host using php_admin_value, but neither of "

Re: [PHP] [PEAR] help pear quickform FormBuilder and checkboxes

2006-10-17 Thread Chris
Marco Sottana wrote: marco schrieb: Maybe you meant to send this to pear-general instead of php-general? The php-general list won't help you with pear related problems - nor will the php-db list which you also somehow sent this email to. -- Postgresql & php tutorials http://www.designmagick

[PHP] php_admin_value, virtual hosts, & upload_tmp_dir

2006-10-17 Thread Michael Hogsett
Why can I not set "upload_max_filesize" or "upload_tmp_dir" inside my virtual host directive? These are exactly the kinds of ini directives that you would want to set per virtual host. I can set "open_basedir" inside my virtual host using php_admin_value, but neither of "upload_max_filesize" nor

Re: [PHP] looking for the developer of webcbq

2006-10-17 Thread Richard Lynch
Wild Guess: It relies on register_globals being "on" and you need to change $nuevoPadre to $_REQUEST['nuevoPadre'] hard to say without seeing the code, but this is my first guess with the info we have. On Tue, October 17, 2006 3:35 am, Gregory Machin wrote: > Hi > I'm looking for the developer o

Re: [PHP] How to recognise url in a block of text

2006-10-17 Thread Richard Lynch
On Tue, October 17, 2006 2:39 am, AYSERVE.NET wrote: > Please, I need help on how to to recognise url in a block of text > being > retrieved from a database and present it as a link within that text. read the User Contributed Notes at: http://php.net/preg_match_all and friends. There are only abo

Re: [PHP] A no brainer...

2006-10-17 Thread Richard Lynch
On Mon, October 16, 2006 9:43 pm, Larry Garfield wrote: >> I suspect that serialization overhead is trivial for scalar data, >> and >> only starts to kill you when one starts schlepping bloated OOP >> structures or arrays back and forth -- at which point you messed up >> your architecture, and the

Re: [PHP] _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us

2006-10-17 Thread Richard Lynch
On Tue, October 17, 2006 1:13 am, John Taylor-Johnston wrote: > This is what http_accept_language gives me depending on which browser. > Depending on the visitor in my region, it will either be French or > English. > > _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3 > _SERVER["H

Re: [PHP] Regular expressions

2006-10-17 Thread Richard Lynch
On Mon, October 16, 2006 4:01 pm, Curt Zirzow wrote: > That makes me wonder.. according to the docs U inverts greediness, if > you have... > /foo.*?bar/U > > does that make .*? a greedy .* I believe I stubbed my toe on that fact once, yes... I always manage to mess up the greedy/ungreedy stuff, a

Re: [PHP] A no brainer...

2006-10-17 Thread Richard Lynch
On Mon, October 16, 2006 8:20 pm, Roman Neuhauser wrote: > So no, it makes no sense for a database to be faster than > filesystem. The database may, or may not, have finely-tuned a lot of things to write their records more quickly/efficiently than the PHP approach of writing individual fil

Re: [PHP] A no brainer...

2006-10-17 Thread Ed Lazor
Hi Guys :) I'm off today, so I'll follow-up with you tomorrow. Meanwhile, have a great day :) -Ed On Oct 17, 2006, at 2:20 AM, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-10-16 16:40:34 -0700: On Oct 16, 2006, at 6:20 PM, Roman Neuhauser wrote: Modern filesystems cope well wit

Re: [PHP] Text from Excel csv file loaded into MySQL table

2006-10-17 Thread Richard Lynch
On Tue, October 17, 2006 2:36 am, Alan Milnes wrote: >> > $file = fopen($filename, "r") or die("Could not open $filename"); >> while (!feof($file)){ >> $values = fgetcsv($file, 100); >> array_walk($values, 'mysql_real_escape_string'); >> $values_sql = implode("', '", $values); >

Re: [PHP] random string

2006-10-17 Thread Richard Lynch
On Tue, October 17, 2006 7:30 am, Ross wrote: > I want to randomise a string > > $myrandom = rand("ross", "andrea"); > > echo $myrandom; > > I know this doesn't work but is there a built in function to do this? I'm not real clear on what "this" is... Choose a string at random from an array? $pos

Re: [PHP] pdflib - change text color mid-sentence

2006-10-17 Thread Richard Lynch
On Tue, October 17, 2006 9:50 am, [EMAIL PROTECTED] wrote: > I want to change the text color of a word mid-sentence when outputting > text to a pdf file. > > I've looked at pdf_show_boxed and pdf_show_xy, but I dont think either > would actually work the way I need, and I'm hoping their is an easie

Re: [PHP] Re: How to recognise url in a block of text

2006-10-17 Thread Robin Vickery
On 17/10/06, Al <[EMAIL PROTECTED]> wrote: AYSERVE.NET wrote: > Please, I need help on how to to recognise url in a block of text being > retrieved from a database and present it as a link within that text. > > I will appreciate any help. > Regards, > Bunmi Show us some examples of URL substrings

[PHP] pdflib - change text color mid-sentence

2006-10-17 Thread j1c
Hi, I'm having some problems with a pdf file I'm compiling dynamically with pdflib, and my searches for answers have come up empty, so I'm hoping someone else out there has faced the same problem and came up with a solution. I want to change the text color of a word mid-sentence when outputting t

Re: [PHP] How to recognise url in a block of text

2006-10-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-17 15:13:50 +0100: > Who can help regarding my problem below. I will appreciate any assistance. > >>On 17/10/06, *AYSERVE.NET * <[EMAIL PROTECTED] > >>> wrote: > >> > >>Please, I need help on how to to recognise url i

[PHP] Re: How to recognise url in a block of text

2006-10-17 Thread Al
AYSERVE.NET wrote: Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as a link within that text. I will appreciate any help. Regards, Bunmi Show us some examples of URL substrings, with any variations, you want to handle. Most li

Re: [PHP] How to recognise url in a block of text

2006-10-17 Thread AYSERVE.NET
Thanks Alan. Retuen receipt disabled. Who can help regarding my problem below. I will appreciate any assistance. Regards, Bunmi www.ayserve.net., www.budelak.com AYSERVE.NET wrote: Hello, Thanks Toby. The aim is to show the entire text taken from the database (mysql) with the link within the t

Re: [PHP] random string

2006-10-17 Thread Brice
On 10/17/06, Ross <[EMAIL PROTECTED]> wrote: Hi, I want to randomise a string $myrandom = rand("ross", "andrea"); I suggest : $array_name = array("rose","andrea"); $myrandom = array_rand($array_name); echo $myrandom[0]; Brice. I know this doesn't work but is there a built in function to

[PHP] random string

2006-10-17 Thread Ross
Hi, I want to randomise a string $myrandom = rand("ross", "andrea"); echo $myrandom; I know this doesn't work but is there a built in function to do this? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] random string

2006-10-17 Thread Ross
Hi, I want to randomise a string $myrandom = rand("ross", "andrea"); echo $myrandom; I know this doesn't work but is there a built in function to do this? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mktime()'s is_dst deprecated, but needed?

2006-10-17 Thread Ivo F.A.C. Fokkema
On Sun, 15 Oct 2006 13:22:02 +0200, Zora wrote: > Hi all, > > (first time I send an email here, so please be forgiving if something > doesn't follow expected rules.) > > My web application allows users to enter time stamps (date and time) > given as local times. The time stamp is to be stored

[PHP] Re: Empfangsbestätigung (angezeigt) - Re: [PHP] How to recognise url in a block of text

2006-10-17 Thread AYSERVE.NET
Sorry, I don't speak german. Regards, Bunmi www.ayserve.net, www.budelak.com [EMAIL PROTECTED] wrote: Dies ist eine Empfangsbestätigung für eine Nachricht, die Sie an [EMAIL PROTECTED] gesendet haben. Hinweis: Diese Empfangsbestätigung sagt nur aus, dass die Nachricht am Computer des Empfänger

[PHP] [PEAR] help pear quickform FormBuilder and checkboxes

2006-10-17 Thread Marco Sottana
> marco schrieb: >> [code] >> function preGenerateForm() >> { >> $this->fb_preDefElements['alive'] = >> HTML_QuickForm:: >> createElement('advcheckbox','alive','Ali >> ve',null,null,$this->alive); >> } >> [/code] >> this code generate a only one checkbox.. >> i would like to generate a list of che

[PHP] looking for the developer of webcbq

2006-10-17 Thread Gregory Machin
Hi I'm looking for the developer of webcbq, I'm trying to get it to work on fc5_64 but I have hit a wall there are some errors I can't see why the variables are being populated ... and I think is was writtn in php 3 because I have had to change alot on the syntax of the code to get it half way wor

Re: [PHP] How to recognise url in a block of text

2006-10-17 Thread AYSERVE.NET
Hello, Thanks Toby. The aim is to show the entire text taken from the database (mysql) with the link within the text showing as a clickable link. Not just to remove entirely. Regards, Bunmi www.ayserve.net www.budelak.com Toby Osbourn wrote: Hello, I would suggest first of all splitting the

[PHP] Re: Nicht gelesen: [PHP] How to recognise url in a block of text

2006-10-17 Thread AYSERVE.NET
I did not see any text in your mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to recognise url in a block of text

2006-10-17 Thread AYSERVE.NET
Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as a link within that text. I will appreciate any help. Regards, Bunmi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text from Excel csv file loaded into MySQL table

2006-10-17 Thread Alan Milnes
Richard Lynch wrote: Ah... Try something like this: This assumes that no record (all 4 fields) with overhead is move than 1Mb in size -- Change the 100 if you have monster fields. And count on needing to tweak my.cnf in that case anyway. Looks a lot neater than my code! Is it version

Re: [PHP] A no brainer...

2006-10-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-16 16:40:34 -0700: > > On Oct 16, 2006, at 6:20 PM, Roman Neuhauser wrote: > >Modern filesystems cope well with large directories (plus it's > >quite trivial to derive a directory hierarchy from the > >filenames). Looking at the numbers produced by timi

Re: [PHP] _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us

2006-10-17 Thread Stut
John Taylor-Johnston wrote: This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3 _SERVER["HTTP_ACCEPT_LANGUAGE"] fr-ca,en-us;q=0.5