php-general Digest 19 Oct 2006 06:30:13 -0000 Issue 4409

2006-10-19 Thread php-general-digest-help
php-general Digest 19 Oct 2006 06:30:13 - Issue 4409 Topics (messages 243300 through 243328): Re: postback for php 243300 by: Ed Lazor 243302 by: Fred Moses 243325 by: Manuel Lemos Re: php_admin_value, virtual hosts, upload_tmp_dir 243301 by: Richard Lynch

Re: [PHP] PHP 5.16 and Sihuson

2006-10-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-18 10:57:52 -0600: php -v PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies This configuration cause no end of problems, and I finally

Re: [PHP] Object-Oriented PHP Courses in the UK

2006-10-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-18 16:28:04 +0100: I'm relatively new to object-oriented PHP. I'm loving things like Symfony and Smarty etc but really need a little more guidance! Does anyone know of a good object-oriented PHP course available in the UK? Perhaps something my company could

Re: [PHP] PHP 5.16 and Sihuson

2006-10-19 Thread Google Kreme
On 19 Oct 2006, at 02:30 , Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-10-18 10:57:52 -0600: php -v PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies The

Re: [PHP] What is the smallest, fastest web server to run PHP and SSL (on a soekris box)

2006-10-19 Thread Google Kreme
On 18 Oct 2006, at 17:25 , Daevid Vincent wrote: I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage). There's thttp which is really really small. However, keep in mind, Apache has been around for long

[PHP] Problems with open_basedir

2006-10-19 Thread Patrik Jansson
Hello, I'm having some difficulties with open_basedir. If I include the prefix /home/web25637/ in open_basedir shouldn't it include every directory within this? We're getting this error: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.

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

2006-10-19 Thread Robin Vickery
On 18/10/06, AYSERVE.NET [EMAIL PROTECTED] wrote: Hello Guys, I thought I was home and dry when the program worked fine on my windows but when I ran from my Linus server, I keep getting a url like: http://www.website.com/pdf/ED1.pdf%A0 instead of http://www.website.com/pdf/ED1.pdf. I'd look at

Re: [PHP] Re: Creating thumbnails using Image Functions, then saving to folders

2006-10-19 Thread Al
Børge Holen wrote: On Wednesday 18 October 2006 20:55, Al wrote: Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and

[PHP] regex

2006-10-19 Thread Bagus Nugroho
Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. Thanks in advance. bgs -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] regex

2006-10-19 Thread John Nichel
Bagus Nugroho wrote: Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. Use preg_replace to replace all numbers with nothing. $var

[PHP] Creating Tree Structure from associative array

2006-10-19 Thread Angelo Zanetti
Hi all, I have an associative array, which contains parent and child relationships. I've searched the web for creating a tree structure from this and found a few good sites but doesnt help 100% perhaps someone can point me in the correct direction? I've started to code it got to a point

Re: [PHP] regex

2006-10-19 Thread Google Kreme
On 19 Oct 2006, at 07:49 , Bagus Nugroho wrote: Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. Well, stripping the digits is

Re: [PHP] regex

2006-10-19 Thread Google Kreme
On 19 Oct 2006, at 07:56 , John Nichel wrote: $var3 = 'abc 20 def'; Then we want output like : $var3 = 'abc def'; How regex can help us?. Use preg_replace to replace all numbers with nothing. $var = preg_replace ( /\d+/, , $var ); Nope, that will leave $var3 = 'abc def'; (note the double

Re: [PHP] regex

2006-10-19 Thread Stut
Bagus Nugroho wrote: If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. It's very difficult to get the right solution to a problem when all

[PHP] IMAP extension causing delays

2006-10-19 Thread Edward Kay
Hello, I need PHP's IMAP extension for my web app but it is really slowing my server up. My setup: Fedora Core 5, Apache 2.2.2, PHP 5.1.4 (run as CGI with suPHP), PHP IMAP extension - all standard FC5 RPMs. The test page is simple - just a call to phpinfo(). Without the IMAP extension, the

Re: [PHP] IMAP extension causing delays

2006-10-19 Thread Jochem Maas
Edward Kay wrote: Hello, I need PHP's IMAP extension for my web app but it is really slowing my server up. My setup: Fedora Core 5, Apache 2.2.2, PHP 5.1.4 (run as CGI with suPHP), PHP IMAP extension - all standard FC5 RPMs. The test page is simple - just a call to phpinfo().

Re: [PHP] IMAP extension causing delays

2006-10-19 Thread John Nichel
Edward Kay wrote: Hello, I need PHP's IMAP extension for my web app but it is really slowing my server up. My setup: Fedora Core 5, Apache 2.2.2, PHP 5.1.4 (run as CGI with suPHP), PHP IMAP extension - all standard FC5 RPMs. The test page is simple - just a call to phpinfo(). Without the

RE: [PHP] IMAP extension causing delays

2006-10-19 Thread Edward Kay
From this, it is clear to me there is some major delay being introduced by the loading of the IMAP extension. Any ideas on how to resolve this? use php as an apache module - thereby the startup delay is only noticed when the webserver starts - this assumes that the problem is a startup

Re: [PHP] IMAP extension causing delays

2006-10-19 Thread John Nichel
Edward Kay wrote: From this, it is clear to me there is some major delay being introduced by the loading of the IMAP extension. Any ideas on how to resolve this? use php as an apache module - thereby the startup delay is only noticed when the webserver starts - this assumes that the problem

Re: [PHP] regex

2006-10-19 Thread Robin Vickery
On 19/10/06, Bagus Nugroho [EMAIL PROTECTED] wrote: Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; $re = '/^\s+|\d+\s*|\s*\d+\s*$/'; $var1 =

[PHP] Re: Problems with open_basedir

2006-10-19 Thread Colin Guthrie
Patrik Jansson wrote: Hello, I'm having some difficulties with open_basedir. If I include the prefix /home/web25637/ in open_basedir shouldn't it include every directory within this? We're getting this error: Warning: file_exists() [function.file-exists]: open_basedir restriction in

Re: [PHP] Creating Tree Structure from associative array

2006-10-19 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-19 16:08:58 +0200: Hi all, I have an associative array, which contains parent and child relationships. I've searched the web for creating a tree structure from this and found a few good sites but doesnt help 100% perhaps someone can point me in the correct

RE: [PHP] IMAP extension causing delays

2006-10-19 Thread Edward Kay
Thanks for your suggestions John. At the moment, I do need to run it as a CGI as I need different php.ini files for each virtual host. I think there may well be some issues with DNS, as suggested by Jochem. My configuration of DNS stuff locally is a bit patchy :) I'll investigate this avenue

[PHP] worst sites / standard format

2006-10-19 Thread Chuck Stearns
hey, check out the bar on the side of the ones with main.html. http://www.997thelake.com/main.html http://www.cool929fm.com/main.html http://www.star933.com/ http://www.wzzo.com/main.html http://www.929nin.com/main.html guess we have our work cut out for us, eh? we need to find a distinct,

Re: [PHP] worst sites / standard format

2006-10-19 Thread Ed Lazor
Sorry, how does this relate to PHP? It seems like you're just trying to get us to visit your sites to bump up traffic. On Oct 19, 2006, at 8:44 AM, Chuck Stearns wrote: hey, check out the bar on the side of the ones with main.html. http://www.997thelake.com/main.html

Re: [PHP] worst sites / standard format

2006-10-19 Thread Skip Evans
Me thinks Chuckie boy here is spamming our list and needs to get booted. Sorry, Chuckie, only the best tasting tuna get to be Starkist. Skip Ed Lazor wrote: Sorry, how does this relate to PHP? It seems like you're just trying to get us to visit your sites to bump up traffic. On Oct

Re: [PHP] worst sites / standard format

2006-10-19 Thread Chuck Stearns
shoot, sorry guys, i was working on an email to a buddy, and didn't realize i was still on my newsgroup program til it was too late... won't happen again... /cs Skip Evans wrote: Me thinks Chuckie boy here is spamming our list and needs to get booted. Sorry, Chuckie, only the best tasting

[PHP] Creating new table from distinct entries

2006-10-19 Thread Alan Milnes
PHP 4.4.4 MySQL 4.1.21-community-nt I have a table in my database that has a Primary key on 2 fields (MyID and MyChange) and a field that indicates if there is a problem with the record (MyError)- I want to create a new table that only has unique MyIDs and where there is more than 1 I only

[PHP] Telemarketing Script/Tracking Application

2006-10-19 Thread Jay Blanchard
Is anyone aware of a PHP/MySQL app that would be used by telemarketing staff to track calls, do follow-ups, allow scripting, etc.? We could write something in house but we are pressed for time. I have been poking around the web this morning, but have not found much. TVMIA! -- PHP General Mailing

Re: [PHP] Re: Creating thumbnails using Image Functions, then saving to folders

2006-10-19 Thread Børge Holen
On Thursday 19 October 2006 14:47, Al wrote: Børge Holen wrote: On Wednesday 18 October 2006 20:55, Al wrote: Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image

Re: [PHP] Telemarketing Script/Tracking Application

2006-10-19 Thread Curt Zirzow
On 10/19/06, Jay Blanchard [EMAIL PROTECTED] wrote: Is anyone aware of a PHP/MySQL app that would be used by telemarketing staff to track calls, do follow-ups, allow scripting, etc.? We could write something in house but we are pressed for time. I have been poking around the web this morning,

Re: [PHP] Creating new table from distinct entries

2006-10-19 Thread Ed Lazor
This is definitely something you'll want to run by the MySQL mailing list. On Oct 19, 2006, at 10:02 AM, Alan Milnes wrote: PHP 4.4.4 MySQL 4.1.21-community-nt I have a table in my database that has a Primary key on 2 fields (MyID and MyChange) and a field that indicates if there is a

[PHP] User question for PHP

2006-10-19 Thread Tom Ray [Lists]
Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User question for PHP

2006-10-19 Thread Christian Heinrich
try suPHP :-) Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] User question for PHP

2006-10-19 Thread Al
Christian Heinrich wrote: try suPHP :-) Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? Sounds like it could be a big security issue if not very

Re: [PHP] User question for PHP

2006-10-19 Thread Andy Hultgren
To whoever was asking this (sorry didn't see the original email): Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? I was recently exchanging on this list

[PHP] Weird stack trace in error_log from PDOException

2006-10-19 Thread Russ Brown
Hi, I have a pretty simple bit of code that looks like the following; // Prepare a statement. This will actually call a stored procedure $objStatement = $objDB-prepare($strInsert); try { $objStatement-execute($arrParams); error_log(ABOUT TO fetchColumn); $intID =

[PHP] [ANNOUNCE] php|tek

2006-10-19 Thread Richard Lynch
As many of you know, I've been planning to host a PHP-General Gathering in Spring 2007. It's just been announced that php|architect is hosting a php|tek Conference MAY 2007 in CHICAGO! Now, I'm not dumb enough to butt heads with Marco :-) So we decided to work together on his conference this

[PHP] ENV vars

2006-10-19 Thread jekillen
Hello again; I'm wondering if it is possible to create an $_ENV var with a php script running under a web server. I'm not sure where to look in the manual or other documentations for this. Isn't there a set_env() function or something like it? (would apply to php 4 0r 5x) Thanks in advance. JK

Re: [PHP] ENV vars

2006-10-19 Thread Ed Lazor
How are you running PHP? What are you trying to accomplish with setting the env var? On Oct 19, 2006, at 8:16 PM, jekillen wrote: Hello again; I'm wondering if it is possible to create an $_ENV var with a php script running under a web server. I'm not sure where to look in the manual or

Re: [PHP] Creating Tree Structure from associative array

2006-10-19 Thread Larry Garfield
That depends on what your data structure is, exactly, and what sort of tree structure you want on the other side. Please be more specific. On Thursday 19 October 2006 09:08, Angelo Zanetti wrote: Hi all, I have an associative array, which contains parent and child relationships. I've

Re: [PHP] Problems with open_basedir

2006-10-19 Thread Chris
Patrik Jansson wrote: Hello, I'm having some difficulties with open_basedir. If I include the prefix /home/web25637/ in open_basedir shouldn't it include every directory within this? We're getting this error: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.

Re: [PHP] User question for PHP

2006-10-19 Thread Chris
Andy Hultgren wrote: To whoever was asking this (sorry didn't see the original email): Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not wwwrun or nobody? I was recently

Re: [PHP] Creating Tree Structure from associative array

2006-10-19 Thread Robert Cummings
On Thu, 2006-10-19 at 23:58 -0500, Larry Garfield wrote: That depends on what your data structure is, exactly, and what sort of tree structure you want on the other side. Please be more specific. On Thursday 19 October 2006 09:08, Angelo Zanetti wrote: Hi all, I have an associative