Re: [PHP] PHP Frameworks

2005-03-14 Thread Burhan Khalid
Simon Reye wrote: I'm moving away from Cold Fusion and am considering java or php. I've mucked around with Struts and Coccoon on the java side and think they are great. There does not however seem to be any well backed projects similar to these for php. Can anyone point me to a good php MVC

Re: [PHP] IMAP with ssl support

2005-03-14 Thread Bostjan Skufca @ domenca.com
For Imapd: make slx cp imapd/imapd /usr/local/sbin/ cd c-client cp c-client.a /usr/local/lib/libc-client.a cp rfc822.h /usr/local/include/ cp mail.h /usr/local/include/ cp linkage.h /usr/local/include/ For PHP: add just '--with-imap' '--with-imap-ssl' regards, Bostjan On Friday 11

[PHP] 64-bit PHP

2005-03-14 Thread Abdul Rehman Gani
Hi, I am experiencing memory leaks when running a Mambo site on an AMD 64. This exact site ran fine on a 32-bit platform. Does anyone have experience with PHP on 64-bit platform? If so do you have any pointers for me? Thanks, Abdul East Coast Access Tel: 031-566-8080 Fax: 031-566-8010 Web:

[PHP] Re: Building PHP5 on Windows - VS.net?

2005-03-14 Thread M. Sokolewicz
you'll get various problems on the way. Building php without any extensions is fairly easy, and doesn't pose any problems. However once you start compiling in extensions, you'll need to fiddle a bit with some (eg. pdo_mysql requires a couple of changes in the include paths in the c-files, icov

[PHP] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Zeev Suraski
Everyone, We've rolled initial release candidates for PHP 5.0.4 and 4.3.11. As usual, these 3rd digit releases include a variety of bug fixes and minor updates. PHP 5.0.4RC1 source: http://downloads.php.net/zeev/php-5.0.4RC1.tar.bz2 http://downloads.php.net/zeev/php-5.0.4RC1.tar.gz PHP 4.3.11RC1

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread Burhan Khalid
John Swartzentruber wrote: On 3/13/2005 3:55 PM John Swartzentruber wrote: On 3/11/2005 11:57 AM John Swartzentruber wrote: I am running Fedora core3 with Apache 2.0.52 (from default RPMs), MySQL 4.1.10 (from RPMs from MySQL site), and PHP 5.0.3 built from source. I'm going through the PHP

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread John Swartzentruber
On 3/14/2005 6:03 AM Burhan Khalid wrote: John Swartzentruber wrote: When I run phpinfo(), it says my mysqli API client version is 3.23.58. When I run php -i from the command line it says it is 4.1.10a. The latter is correct. What would cause the discrepancy? The server has been stopped and

[PHP] newbie:changing variable to type resource

2005-03-14 Thread Saswat Praharaj
Hi All, I am new to PHP, stuck with a problem and need your help. I would like to change a variable to type resource. I searched in php.net and in google but did not find anything helpful. Now , why I would like to do that... I am writing a socket application which will accept connection from

[PHP] password Boxes

2005-03-14 Thread Ross Hulford
Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? Or is this just determed by the OS and uncangable with CSS or Javascript of PHP? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Evert | Rooftop Solutions
Zeev Suraski wrote: Everyone, We've rolled initial release candidates for PHP 5.0.4 and 4.3.11. As usual, these 3rd digit releases include a variety of bug fixes and minor updates. PHP 5.0.4RC1 source: http://downloads.php.net/zeev/php-5.0.4RC1.tar.bz2

Re: [PHP] password Boxes

2005-03-14 Thread trlists
On 14 Mar 2005 Ross Hulford wrote: Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? It is determined by the browser and OS. I presume you are talking about Windows XP, which is where I see that

[PHP] Classes code completion and Zend Studio

2005-03-14 Thread Zareef Ahmed
Hi All, I have a function to load the classes and return the object. function LoadClass($ClassName) { require_once(Class.$ClassName.inc); return new $ClassName(); } Its working fine. But Zend Studio's Code completion is not working for this type of object, Any hints? Zareef Ahmed -- PHP

[PHP] REMOTE_ADDR

2005-03-14 Thread Niels Riis Kristensen
Hi As a relative newbie I have a problem: I am running PHP 5 on a Apache platform (Mac) and I have just noticed that the log I keep of ip's entering my site, is showing the internal server ip instead of the external visitor ip. I am using getenv(REMOTE_ADDR) and is has been working before. Can

Re: [PHP] password Boxes

2005-03-14 Thread Dotan Cohen
On Mon, 14 Mar 2005 08:37:04 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 14 Mar 2005 Ross Hulford wrote: Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? It is determined by the browser

[PHP] Re: Eliminating CLI overhead

2005-03-14 Thread Jason Barnett
Skippy wrote: I intend to run a lot of PHP scripts, all the time, on a Linux machine. The scripts were designed for CLI environment, since they will handle the entire management of the machine, being started by init and then effectively and completely taking over. I'm wondering whether

[PHP] Re: inserting arabic into mysql

2005-03-14 Thread Jason Barnett
P80 wrote: I have a text area form and when I insert it into mysql I get letters like this: ... instead of arabic letters. anything I know do to get it right? thanx in advance You're definitely better off asking this question on a MySQL list... or possibly even the php-db list. My

[PHP] Re: eregi expression for checking a domain

2005-03-14 Thread Jason Barnett
Ross Hulford wrote: Does anyone know a working eregi expression for determining a domain is valid? don't need the http:// just looking for www.thedomain.com cheers, R. parse_url() http://php.net/manual/en/function.parse-url.php -- Teach a man to fish... NEW? |

Re: [PHP] password Boxes

2005-03-14 Thread Jochem Maas
Dotan Cohen wrote: On Mon, 14 Mar 2005 08:37:04 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 14 Mar 2005 Ross Hulford wrote: Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? It is determined by the

Re: [PHP] password Boxes

2005-03-14 Thread trlists
On 14 Mar 2005 Dotan Cohen wrote: change input type='text' name='name'/ To: input type='password' name='name' This does not address the question. The OP saw small dots in the password display, he wanted asterisks. That is not because he was using type='text' but because he was already

Re: [PHP] Re: inserting arabic into mysql

2005-03-14 Thread Christophe Chisogne
Jason Barnett a crit : trying to store data in MySQL in an unsupported encoding format. MySQL only supports the UTF-8 encoding (of Unicode) since MySQL 4.1 IIRC Ch. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5 JBOSS

2005-03-14 Thread Jason Barnett
David Joffrin wrote: Hi, I searched on the net, found a lot of articles about it... followed all the various one by one, tried a lot, but I am getting the famous error: java.lang.UnsatisfiedLinkError: no php5servlet.dll in java.library.path. ... I modified my application to display the

[PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Craig Lewis
Hello, I have just attempted to migrate for the first time from php4 to php5. The problem i am having is some sort of change in how the open_basedir directive works in php 5. I don't see much discussion about this, so I must be doing something stupid, otherwise, I would think there would be a

[PHP] Re: [PHP-DEV] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Edin Kadribasic
Windows binaries are now available at: PHP 5.0.4RC1 http://downloads.php.net/edink/php-5.0.4RC1-Win32.zip PHP 4.3.11RC1 http://downloads.php.net/edink/php-4.3.11RC1-Win32.zip Additional downloads for PHP 5.0.4RC1: http://downloads.php.net/edink/pecl-5.0.4RC1-Win32.zip

Re: [PHP] REMOTE_ADDR

2005-03-14 Thread Richard Lynch
I am running PHP 5 on a Apache platform (Mac) and I have just noticed that the log I keep of ip's entering my site, is showing the internal server ip instead of the external visitor ip. I am using getenv(REMOTE_ADDR) and is has been working before. Try $_SERVER['REMOTE_ADDR'] instead of

Re: [PHP] Classes code completion and Zend Studio

2005-03-14 Thread Richard Lynch
Hi All, I have a function to load the classes and return the object. function LoadClass($ClassName) { require_once(Class.$ClassName.inc); return new $ClassName(); } Its working fine. But Zend Studio's Code completion is not working for this type of object, Any hints? You could

Re: [PHP] password Boxes

2005-03-14 Thread Richard Lynch
Does anyone know how to change the style of password boxes so when the characters are entered an asterisk appears rather that a smal circle? Or is this just determed by the OS and uncangable with CSS or Javascript of PHP? They are certainly NOT changeable with PHP. I doubt that JavaScript

Re: [PHP] newbie:changing variable to type resource

2005-03-14 Thread Richard Lynch
I am new to PHP, stuck with a problem and need your help. I would like to change a variable to type resource. I searched in php.net and in google but did not find anything helpful. Now , why I would like to do that... I am writing a socket application which will accept connection from

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread Richard Lynch
When I run phpinfo(), it says my mysqli API client version is 3.23.58. When I run php -i from the command line it says it is 4.1.10a. The latter is correct. What would cause the discrepancy? The server has been stopped and started many times, and PHP rebuilt a few times, so it isn't a browser

Re: [PHP] Mailing List

2005-03-14 Thread Richard Lynch
A form with a rich text box and a submit button. I've got not idea what a rich text box is, so you're on your own for that part. Then someone suggested urlencode however that encoded the entire message, so they got Click%20the%20link%20below.. You want to use urlencode, but *only* on the

Re: [PHP] Eliminating CLI overhead

2005-03-14 Thread Richard Lynch
I intend to run a lot of PHP scripts, all the time, on a Linux machine. The scripts were designed for CLI environment, since they will handle the entire management of the machine, being started by init and then effectively and completely taking over. I'm wondering whether starting up the PHP

Re: [PHP] incrementing a number from a text file

2005-03-14 Thread Richard Lynch
Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id Horror! Perhaps I'm missing something, but what's wrong with that query? It looks like a pretty

Re: [PHP] REMOTE_ADDR

2005-03-14 Thread Rasmus Lerdorf
Richard Lynch wrote: I am running PHP 5 on a Apache platform (Mac) and I have just noticed that the log I keep of ip's entering my site, is showing the internal server ip instead of the external visitor ip. I am using getenv(REMOTE_ADDR) and is has been working before. Try $_SERVER['REMOTE_ADDR']

[PHP] Referencing different static members in

2005-03-14 Thread André Pletschette
Hi, In the static function toHtml_table_heading I want to use a static array $fields, which is defined differently in each implementation. My first trial was to use self::$fields[] to access this array, but this only sees the member of DBTable, not the inherited from DBTable. My second

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread John Swartzentruber
On 3/14/2005 12:22 PM Richard Lynch wrote: When I run phpinfo(), it says my mysqli API client version is 3.23.58. When I run php -i from the command line it says it is 4.1.10a. The latter is correct. What would cause the discrepancy? The server has been stopped and started many times, and PHP

Re: [PHP] PHP causes Apache segmentation fault?

2005-03-14 Thread Richard Lynch
PHP I'm already building from Source. Uninstalling all of MySQL doesn't seem to be an option because of that dovecot dependency. What I'd really like to know (among so many other things) is how configure is determining which MySQL it should use. Also knowing the difference between PHP via a

Re: [PHP] Classes code completion and Zend Studio

2005-03-14 Thread Zareef Ahmed
On Mon, 14 Mar 2005 09:03:00 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Hi All, I have a function to load the classes and return the object. function LoadClass($ClassName) { require_once(Class.$ClassName.inc); return new $ClassName(); } Its working fine. But

[PHP] Re: Classes code completion and Zend Studio

2005-03-14 Thread Zareef Ahmed
On Mon, 14 Mar 2005 10:28:06 -0800, Jamie Alessio [EMAIL PROTECTED] wrote: I have a function to load the classes and return the object. function LoadClass($ClassName) { require_once(Class.$ClassName.inc); return new $ClassName(); } Its working fine. But Zend Studio's Code

[PHP] Re: Classes code completion and Zend Studio

2005-03-14 Thread Jamie Alessio
I have a function to load the classes and return the object. function LoadClass($ClassName) { require_once(Class.$ClassName.inc); return new $ClassName(); } Its working fine. But Zend Studio's Code completion is not working for this type of object, Any hints? Zareef, In Zend Studio 4.0 (not sure

[PHP] multidimensional array sort

2005-03-14 Thread Ashley M. Kirchner
I have a multidimensional array that's built as follows (it's pretty much a directory tree): Array ( [Dir1] = Array ( [User1] = Array ( [0] = File1 [1] = File2 ) [User2] = Array { [0] = File1 [1] = File2 [2] = File3 } )

[PHP] Re: [PHP-DEV] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Greg Beaver
Edin Kadribasic wrote: Windows binaries are now available at: PHP 5.0.4RC1 http://downloads.php.net/edink/php-5.0.4RC1-Win32.zip PHP 4.3.11RC1 http://downloads.php.net/edink/php-4.3.11RC1-Win32.zip Additional downloads for PHP 5.0.4RC1: http://downloads.php.net/edink/pecl-5.0.4RC1-Win32.zip

Re: [PHP] multidimensional array sort

2005-03-14 Thread Leif Gregory
Hello Ashley, Monday, March 14, 2005, 12:12:19 PM, you wrote: A I need to do a sort on the whole thing in such a way that: Aa) all the Dir#'s are in ascending order, and Ab) all the User#'s are in ascending order with each Dir#, and Ab) all the File#'s are also in

[PHP] file/array manipulation

2005-03-14 Thread Mignon Hunter
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC company O

[PHP] file/array manipulation

2005-03-14 Thread Mignon Hunter
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC company O

[PHP] Class/object storing itself in a database

2005-03-14 Thread Chris Boget
I have the following Class: class MyClass { function store_myself() { $query = 'INSERT INTO mytable ( myfield ) VALUES ( ' . $this . ')'; $result = mssql_query( $query ); } } which works. Kind of. What I expected was a serialized copy of the object to be stored in the column

Re: [PHP] Class/object storing itself in a database

2005-03-14 Thread Robby Russell
On Mon, 2005-03-14 at 14:07 -0600, Chris Boget wrote: I have the following Class: class MyClass { function store_myself() { $query = 'INSERT INTO mytable ( myfield ) VALUES ( ' . $this . ')'; $result = mssql_query( $query ); } } which works. Kind of. What I expected was a

Re: [PHP] HELP TO GET OUT OF PHP MAILING LIST

2005-03-14 Thread Brian Dunning
I did not subscribe to it in the first place There goes that nefarious PHP-General again, randomly subscribing unsuspecting innocents as part of its evil master plan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4 php 5

2005-03-14 Thread mbneto
Hi Hans, What I am trying to avoid is having 2 copies of the same program installed... - mb On Sun, 13 Mar 2005 22:06:15 -0500, Hans Zaunere [EMAIL PROTECTED] wrote: Any tips regarding the configuration of php and/or apache ? Per option 1 below, they were saying two installs of Apache

Re: [PHP] PHP causes Apache segmentation fault? [SOLVED]

2005-03-14 Thread John Swartzentruber
On 3/14/2005 1:26 PM Richard Lynch wrote: PHP I'm already building from Source. Uninstalling all of MySQL doesn't seem to be an option because of that dovecot dependency. What I'd really like to know (among so many other things) is how configure is determining which MySQL it should use. Also

[PHP] Directory and file permissions on a virtual host

2005-03-14 Thread Al
Would some please provide me some simple rules for dealing with php scripts to fopen(), copy() and move_uploaded_file(). Environment is Linux, Apache on a virtual host I've spent a lot of time goggling, etc. and can find lot's of explanations for owner, group and world. They sound great; but

Re: [PHP] bulk emailer

2005-03-14 Thread Redmond Militante
can anyone recommend a good mailing list software that may be adapted for these purposes? [Fri, Mar 11, 2005 at 02:34:01PM -0800] This one time, at band camp, Richard Lynch said: A better answer, all around, might be to use a mailing list software package for sending bulk email -- They've

Re: [PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Jochem Maas
Craig Lewis wrote: Hello, I have just attempted to migrate for the first time from php4 to php5. The problem i am having is some sort of change in how the open_basedir directive works in php 5. I don't see much discussion about this, so I must be doing something stupid, otherwise, I would

Re: [PHP] password Boxes

2005-03-14 Thread Dotan Cohen
On Mon, 14 Mar 2005 16:25:32 +0100, Jochem Maas [EMAIL PROTECTED] wrote: yeah ... but next time read the question before you answer ;-) the guy was wondering how to change which character was used as the mask in password fields - normally its an asterisk, if you use WinXP with the std.

[PHP] Re: bulk emailer

2005-03-14 Thread Redmond Militante
hi [Sat, Mar 12, 2005 at 08:42:15PM -0300] This one time, at band camp, Manuel Lemos said: Hello, For starters, just stay away from SMTP based solutions if you can. It works but it takes much longer to queue messages that some alternatives because you need to deal with TCP overhead,

Re: [PHP] password Boxes

2005-03-14 Thread Jochem Maas
Dotan Cohen wrote: On Mon, 14 Mar 2005 16:25:32 +0100, Jochem Maas [EMAIL PROTECTED] wrote: yeah ... but next time read the question before you answer ;-) the guy was wondering how to change which character was used as the mask in password fields - normally its an asterisk, if you use WinXP with

Re: [PHP] Directory and file permissions on a virtual host

2005-03-14 Thread Richard Lynch
Would some please provide me some simple rules for dealing with php scripts to fopen(), copy() and move_uploaded_file(). Environment is Linux, Apache on a virtual host I've spent a lot of time goggling, etc. and can find lot's of explanations for owner, group and world. They sound great;

Re: [PHP] php 4 php 5

2005-03-14 Thread Richard Lynch
What I am trying to avoid is having 2 copies of the same program installed... Well, if you're gonna have PHP 4 and PHP 5, you're gonna have to have two copies of PHP... You could run both under Apache 1.x, but running PHP 5 with Apache 1.x means you aren't going to be taking advantage of any

[PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread [EMAIL PROTECTED]
I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the moment) Now, I have to list all products that

Re: [PHP] php 4 php 5

2005-03-14 Thread Jason Barnett
Richard Lynch wrote: ... [good stuff] ... Maybe if you told us WHY you need 4 5 we'd have better answers for ya. Agreed! Tell us what you specifically need and we can provide better answers. If you're wanting to test PHP5 with your current scripts then it would make sense to do exactly what

[PHP] Re: bulk emailer

2005-03-14 Thread Manuel Lemos
Hello, on 03/14/2005 06:15 PM Redmond Militante said the following: For starters, just stay away from SMTP based solutions if you can. It works but it takes much longer to queue messages that some alternatives because you need to deal with TCP overhead, which is silly when your MTA is in the

[PHP] long mysql_connect times

2005-03-14 Thread Dan Tappin
I have a PHP5.x site under development with MySQL 4.1.x. I had the site running fine and there were no speed issues at all. Everything is on the same system (a dual G5 Xserve). Today however the PHP pages with MySQL calls started to take forever to load. Static html and php files still

Re: [PHP] Re: bulk emailer

2005-03-14 Thread Pedro Luis Cruz Riguetti
quitenme de la lista porfavor quiero salir de aqui -- --- Banco de Crédito BCP - Dedicados a hacerte la Banca más simple. Visita nuestra Banca por Internet http://www.viabcp.com

[PHP] file/array manipulation

2005-03-14 Thread Mignon Hunter
Hello I'm trying to manipulate a text(.csv) file using php. I've read the file and can print each line, but I need to write where column A is missing ColumnAColumnB RABC company ABC company ABC company ABC company O

[PHP] function reverse to get_object_vars

2005-03-14 Thread kamen 123
Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? - http://gbg.bg/search -- ! -- PHP

RE: [PHP] Re: bulk emailer

2005-03-14 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] on Monday, March 14, 2005 2:05 PM said: Usually you can tell the sendmail program to just queue the messages instead of deliverying them immediately using the delivery mode switch od . If you want to see how that is done, take a look at the

Re: [PHP] Migration from php4 to php 5 open_basedir directive.

2005-03-14 Thread Craig Lewis
The files in question are 'within' the open_basedir directive. To explain further/better within virtualhost, php_admin_value open_basedir /www/htdocs/midwifefinder.com/site and... /www/htdocs/midwifefinder.com/site/index.php contains === ?php require_once(includes/app.php); which is

[PHP] Re: [PHP-DEV] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Pierre-Alain Joye
On Mon, 14 Mar 2005 14:20:36 -0500 [EMAIL PROTECTED] (Greg Beaver) wrote: Edin Kadribasic wrote: Windows binaries are now available at: PHP 5.0.4RC1 http://downloads.php.net/edink/php-5.0.4RC1-Win32.zip PHP 4.3.11RC1 http://downloads.php.net/edink/php-4.3.11RC1-Win32.zip

[PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jeff Schmidt
Hello, I'm beating my head, and can't figure out *WHY* PHP is giving me this error. The full error text is: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php

Re: [PHP] function reverse to get_object_vars

2005-03-14 Thread Robert Cummings
On Mon, 2005-03-14 at 13:26, kamen 123 wrote: Hello Do you know how to implement function reverse to get_object_vars? For example if I have class and I wish to set it's properties from database with loop through the columns in table? Something like this? $obj-$fieldName = $fieldValue;

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jeff Schmidt mailto:[EMAIL PROTECTED] on Monday, March 14, 2005 2:58 PM said: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php on line 82 Line 82 is:

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread M. Sokolewicz
Chris W. Parker wrote: Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Jason Barnett
Chris W. Parker wrote: Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Andre Dubuc
On Monday 14 March 2005 06:22 pm, Chris W. Parker wrote: Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . ^^ should be a slash??

Re: [PHP] long mysql_connect times

2005-03-14 Thread Dan Tappin
Just an update... on a hunch I changed my mysql_connect to mysql_pconnect. As expected the first one still takes 5 to 10 seconds and after that subsequent pages load instantly as expected. Dan T On Mar 14, 2005, at 3:07 PM, Dan Tappin wrote: I have a PHP5.x site under development with MySQL

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jason Barnett mailto:[EMAIL PROTECTED] on Monday, March 14, 2005 3:57 PM said: Chris W. Parker wrote: Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Dan Tappin
Why not make it simple?: // end PHP code ? tdinput type='checkbox' name='status[? echo $row['profileID']; ?]' value='true'/td ? // continue PHP code Dan T On Mar 14, 2005, at 3:58 PM, Jeff Schmidt wrote: Hello, I'm beating my head, and can't figure out *WHY* PHP is giving me this error. The

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the moment) Now, I have to

[PHP] MySQL, PHP and JBOSS

2005-03-14 Thread david joffrin
Hi, I finally managed to run JBOSS/Tomcat with PHP, however, I am facing the following error message when my PHP code is accessing MySQL: Fatal error: Call to undefined function mysql_connect() in C:\APPS\jboss-3.2.6\server\sudetp\deploy\jbossweb-tomcat50.sar\ROOT.war\registration.php on line

[PHP] PHP/Craig's List Scripts?

2005-03-14 Thread carreraSC
Hi, Has anyone ever seen a mockup or simulation of CL done in PHP, for download? I need to do a small scale version of it for an unrelated (non-competitive) space, and I thought it might save some time. Thanks! Mike in Boulder -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: can't pull products from DB with REGEXP?

2005-03-14 Thread Jamie Alessio
I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the moment) Now, I have to list all products that

[PHP] Array Help

2005-03-14 Thread Phil Neeb
Greets, I'm running into the problem of not having a server that gives me database access or ability to use files to store my data ... Yeah, I know, it sucks. Anyway ... My page has a number of profiles about people involved with my organization and all the profiles load into a set appearance.

[PHP] Re: PHP/Craig's List Scripts?

2005-03-14 Thread Jim Plush
Mike check out hotscripts.com in the PHP section, there are a billion scripts on there. you should be able to find one that matches your needs Jim carreraSC wrote: Hi, Has anyone ever seen a mockup or simulation of CL done in PHP, for download? I need to do a small scale version of it for an

Re: [PHP] incrementing a number from a text file

2005-03-14 Thread Kurt Yoder
On Mar 14, 2005, at 12:45 PM, Richard Lynch wrote: Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id Horror! Perhaps I'm missing something, but what's wrong with

Re: [PHP] Classes code completion and Zend Studio

2005-03-14 Thread Zareef Ahmed
On Mon, 14 Mar 2005 23:30:51 +, Alister Bulman [EMAIL PROTECTED] wrote: On Mon, 14 Mar 2005 19:14:37 +0530, Zareef Ahmed [EMAIL PROTECTED] wrote: Hi All, I have a function to load the classes and return the object. function LoadClass($ClassName) {

Re: [PHP] Array Help

2005-03-14 Thread Robert Cummings
On Mon, 2005-03-14 at 18:07, Phil Neeb wrote: Greets, I'm running into the problem of not having a server that gives me database access or ability to use files to store my data ... Yeah, I know, it sucks. Anyway ... My page has a number of profiles about people involved with my

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread [EMAIL PROTECTED]
Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for

[PHP] PHP-CLI Debugging Question

2005-03-14 Thread Davy Durham
Hi.. I'm working on converting some CLI (not CGI) bash scripts to php and was wondering if there's an equivalent to 'set -x' from bash in php set -x in bash basically causes the statements to be printed to stderr as they are executed. Does php have something similar? Thanks, Davy -- PHP

Re: [PHP] php 4 php 5

2005-03-14 Thread mbneto
Simply. My server has moved from php4 to php5 and my webmail program IMP can't be upgraded before I find out how to do that safely for my users. Now I have sites that need php5 and only one that does not work with it (imp). That's why I'd like to stick with apache2 + php5 default and

Re: [PHP] multidimensional array sort

2005-03-14 Thread Ashley M. Kirchner
Leif Gregory wrote: http://us3.php.net/manual/en/function.array-multisort.php I did go through that, but I can't get it to work and I'm almost willing to bet it's because of the way the array is built. For example, the example on that page says that I should be able to do a sort on $ar[0]

Re: [PHP] php 4 php 5

2005-03-14 Thread Rasmus Lerdorf
mbneto wrote: Simply. My server has moved from php4 to php5 and my webmail program IMP can't be upgraded before I find out how to do that safely for my users. Now I have sites that need php5 and only one that does not work with it (imp). That's why I'd like to stick with apache2 + php5 default and

Re: [PHP] Class/object storing itself in a database

2005-03-14 Thread Zareef Ahmed
On Mon, 14 Mar 2005 12:11:40 -0800, Robby Russell [EMAIL PROTECTED] wrote: On Mon, 2005-03-14 at 14:07 -0600, Chris Boget wrote: I have the following Class: class MyClass { function store_myself() { $query = 'INSERT INTO mytable ( myfield ) VALUES ( ' . $this . ')'; $result

Re: [PHP] Help with dates

2005-03-14 Thread Kevin
Dear mr. Maas, First of all my appologies for taking so long to respond. I had a family death to attend to. I will respond to the message in message. Yours, Kevin Jochem Maas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ... Why re-invent the wheel? It's part of a game.

[PHP] odd error

2005-03-14 Thread Rob Agar
hey all just got this error: Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM' The line that caused it was this: $db = null; (yes I know it's wrong, it's a typo/brain spasm) I'm just curious - what language IS that? finnish? Rob Agar Web Site Consultant Wild Lime Media - [EMAIL

Re: [PHP] odd error

2005-03-14 Thread Stephen Johnson
It's Hebrew -- it means twice colon. On Mar 14, 2005, at 8:34 PM, Rob Agar wrote: hey all just got this error: Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM' The line that caused it was this: $db = null; (yes I know it's wrong, it's a typo/brain spasm) I'm just curious - what

Re: [PHP] can't pull products from DB with REGEXP?

2005-03-14 Thread David OBrien
At 04:53 PM 3/14/2005, [EMAIL PROTECTED] wrote: I have table with products. In column categories are listed numbers of categories a product belongs, like: 1. 21, 2. 35, 8, 72, 1, 4, 3. 23, 11, 48, 4. 65, 5. 11, 6. 23, 7. ... (somebody else created the table this way and I have to keep it for the

Re: [PHP] newbie:changing variable to type resource

2005-03-14 Thread Saswat Praharaj
Richard, Thanks for the quick reply. Here is what I am trying to do : I am trying to tunnel some http packets from the browser to a PC which is inside a private network/firewall. The PC in the pvt. netwok sends a request to my server at regular interval. When the browser wants to send some

[PHP] php compiler

2005-03-14 Thread Davy Durham
Sooo.. I'm assuming there's no stable project for compiling php code to native binary machine code huh? (I've done some searching) Even anything commercial? (I didn't care for Zend's optimizer so much.. still has *RUN*time configuration) Thanks, Davy -- PHP General Mailing List

RE: [PHP] php compiler

2005-03-14 Thread Warren Vail
I could be wrong, but I believe that all the Java apps out there are not native binary machine code either? unless you count the JRE (Java Runtime Environment). Seems to me that is the way things are today, with JRE's all having run time configuration. I would prefer to PHP to Java any day.

[PHP] Re: multidimensional array sort

2005-03-14 Thread Nadim Attari
Try http://terra.di.fct.unl.pt/docs/php/function.array-multisort.php.htm function array_csort() {//coded by Ichier2003 $args = func_get_args(); $marray = array_shift($args); $msortline = return(array_multisort(; foreach ($args as $arg) { $i++; if (is_string($arg)) foreach