php-general Digest 19 Nov 2004 09:41:35 -0000 Issue 3121

2004-11-19 Thread php-general-digest-help
php-general Digest 19 Nov 2004 09:41:35 - Issue 3121 Topics (messages 202469 through 202492): Re: PHP Supremacy... 202469 by: Mike Re: [OOP] Class to handle PEAR::DB 202470 by: valerie17.telkom.net Re: $_FILES and move_uploaded_file showed no directories name???

[PHP] Confused with constructors

2004-11-19 Thread Gerald Wharney
I'm trying the example at: http://www.php.net/manual/en/language.oop.constructor.php ?php class A { function A() { echo I am the constructor of A.br /\n; } function B() { echo I am a regular function named B in class A.br /\n; echo I am not a constructor in

Re: [PHP] Confused with constructors

2004-11-19 Thread Gareth Williams
Try this: class base_object() { function base_object() { echo I'm the base; } function base_test() { echo I'm the base test; } } class extended_object() extends base_object { function extended_object()

[PHP] Simple coding question

2004-11-19 Thread Octavian Rasnita
Hi all, Please tell me which is the shortest method for writing the following code: $var = $_GET['var'] || 'value'; I want the program to put the value value in the variable $var if the array element 'var' is not defined or in case it is 0 and I would like to avoid using that long style with if

Re: [PHP] getting the highest number in 3 db fields?

2004-11-19 Thread Dennis Seavers
http://www.php.net/manual/en/function.max.php [Original Message] From: Louie Miranda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 11/19/2004 2:10:32 AM Subject: Re: [PHP] getting the highest number in 3 db fields? thanks, im not aware that php also has max(), ty. On Thu, 18 Nov 2004

[PHP] Holding an array in a session

2004-11-19 Thread Shaun
Hi, I have created an array of tables in my database and put it into a session using the following code: $_SESSION['ses_csv_files'][] = array(); $qid = mysql_query(SHOW TABLES); $num = mysql_num_rows($qid); for ($i = 0; $i $num; $i++) { $r = mysql_fetch_array($qid);

[PHP] Re: Simple coding question

2004-11-19 Thread M. Sokolewicz
$var = ($_GET['var'] ? $_GET['var'] : 'value'); Octavian Rasnita wrote: Hi all, Please tell me which is the shortest method for writing the following code: $var = $_GET['var'] || 'value'; I want the program to put the value value in the variable $var if the array element 'var' is not defined or in

Re: [PHP] Simple coding question

2004-11-19 Thread Simas Toleikis
Octavian Rasnita wrote: $var = $_GET['var'] || 'value'; How about: $var = isset($_GET['var']) ? $_GET['var'] : 'value'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Understanding Static Methods

2004-11-19 Thread Jordi Canals
On Fri, 19 Nov 2004 03:16:14 +0100, Sylvain Girard [EMAIL PROTECTED] wrote: I'm taking a wild guess here, but doesn't that got anything to do with the public declaration of the method? If I declare the method without the public declaration it bahaves the same ... static function

[PHP] Re: Holding an array in a session

2004-11-19 Thread Sebastian Mendel
Shaun wrote: Hi, I have created an array of tables in my database and put it into a session using the following code: $_SESSION['ses_csv_files'][] = array(); $_SESSION['ses_csv_files'] = array(); // without [] $qid = mysql_query(SHOW TABLES); $num = mysql_num_rows($qid); for ($i = 0; $i

[PHP] Re: Confused with constructors

2004-11-19 Thread Sebastian Mendel
Gerald Wharney wrote: I'm trying the example at: http://www.php.net/manual/en/language.oop.constructor.php ?php class A { function A() { echo I am the constructor of A.br /\n; } function B() { echo I am a regular function named B in class A.br /\n; echo I am not

[PHP] Re: Understanding Static Methods

2004-11-19 Thread Sebastian Mendel
Jordi Canals wrote: I'm trying to understand static methods in a test class. Reading the manual, it says: A member or method declared with static can not be accessed with a variable that is an instance of the object and cannot be re-defined in an extending class. Test code: ?php class B {

Re: [PHP] Re: Confused with constructors

2004-11-19 Thread Gerald Wharney
--- Sebastian Mendel [EMAIL PROTECTED] wrote: as i understand it exactly as you, it must be a bug/error OK, I see that it is a known issue: http://bugs.php.net/bug.php?id=28459 thanks -- G W (no bush) ___ Moving

RE: [PHP] PHP Supremacy...

2004-11-19 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 18 November 2004 03:21, Jason Wong wrote: On Thursday 18 November 2004 06:55, Matthew Sims wrote: If Microsoft one day decides to stop work on .NET or goes out of

Re: [PHP] RE: **[SPAM]** Re: [PHP] PHP Supremacy...

2004-11-19 Thread Yann Larrivée
You might be interested into the PHP White Paper that PHP Quebec has made. It has example of canadian companies that are using PHP with sucess for mission critical projects. In these compagnies you will find Air Canada, The Canadian Spacial Agency, Labat, Molson ... Your boss will also be

RE: [PHP] Segmentation Fault

2004-11-19 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 18 November 2004 02:10, Jerry Swanson wrote: I have index.php file. On one server it executes with no problem. On another server it gives me Segmentation Fault error.

[PHP] Timezones

2004-11-19 Thread Venelin Arnaudov
Hi, I have a legacy PHP3 system and a MySQL DB with two tables: user { user_id int, timezone varchar (like Europe/Brussels, US/Eastern, America/New_York, etc.) } and messages { msg_id int, user_id int, date int } When a user submits a message, my PHP script (using time() function) stores

Re: [PHP] mail() issue...

2004-11-19 Thread rouvas
Start sendmail with appropriate params to queue messages and not send them immediately. That way, sendmail will immediately accept the message and your script will be freed. sendmail will process the message shortly without delaying you. -Stathis On Thursday 18 November 2004 21:34, Scott

Re: [PHP] Re: Understanding Static Methods

2004-11-19 Thread Jordi Canals
On Fri, 19 Nov 2004 12:01:16 +0100, Sebastian Mendel [EMAIL PROTECTED] wrote: Jordi Canals wrote: I'm trying to understand static methods in a test class. Reading the manual, it says: A member or method declared with static can not be accessed with a variable that is an instance of the

Re: [PHP] PHP Supremacy...

2004-11-19 Thread Yves Arsenault
I see: © 2004 Novell, Inc At the bottom of the mono site.. Cool. Yves On Fri, 19 Nov 2004 11:33:36 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 18 November 2004 03:21,

Re: [PHP] RE: **[SPAM]** Re: [PHP] PHP Supremacy...

2004-11-19 Thread Robert Cummings
On Fri, 2004-11-19 at 06:36, Yann Larrivée wrote: You might be interested into the PHP White Paper that PHP Quebec has made. It has example of canadian companies that are using PHP with sucess for mission critical projects. In these compagnies you will find Air Canada, The Canadian

[PHP] Re: Simple coding question

2004-11-19 Thread Daniel Schierbeck
Octavian Rasnita wrote: Hi all, Please tell me which is the shortest method for writing the following code: $var = $_GET['var'] || 'value'; I want the program to put the value value in the variable $var if the array element 'var' is not defined or in case it is 0 and I would like to avoid using

[PHP] Permissions

2004-11-19 Thread Phil Ewington - 43 Plc
Hi All, I have a need for a PHP application to read/write Linux system files that have root.root ownership. At present reading not a problem but writing obviously is denied. I know there are probably some serious security issues here, but what should I be doing to allow this behaviour. I am

RE: [PHP] Permissions

2004-11-19 Thread Jay Blanchard
[snip] I have a need for a PHP application to read/write Linux system files that have root.root ownership. At present reading not a problem but writing obviously is denied. I know there are probably some serious security issues here, but what should I be doing to allow this behaviour. I am running

[PHP] ERP - CRM implemented in PHP

2004-11-19 Thread Manoj Kumar
Hi folks, Would you please suggest me the name of ERP - CRM software solely implemented in PHP . -- Manoj Kr. Sheoran

Re: [PHP] PHP Supremacy...

2004-11-19 Thread Marek Kilimajer
Yves Arsenault wrote: I see: © 2004 Novell, Inc At the bottom of the mono site.. Does not matter who is the current sponsor. The project is released under LGPL and MIT X1 licence: http://www.mono-project.com/about/licensing.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Permissions

2004-11-19 Thread Stephan Fiedler
Hi Phil, Phil Ewington - 43 Plc wrote: Hi All, I have a need for a PHP application to read/write Linux system files that have root.root ownership. At present reading not a problem but writing obviously is denied. I know there are probably some serious security issues here, but what should I be

RE: [PHP] Permissions

2004-11-19 Thread ankur_os
Sorry, I do not know the exect anaswer but i have one rough idea that in PHP we have one function by which we can run the linux command like fun_name(command) Actually i used this function long before so i forgot we can use chmod 777 to our file or any command to change the permissionand by

[PHP] PhP e COBOL

2004-11-19 Thread Andre
Hello I need some help in this subject php + COBOL. I need to load data of a program in COBOL for a site written in php. The data must be loaded for a DB in mysql. Any one knows as I make this. Thank for the help André Caridade

Re: [PHP] mail() issue...

2004-11-19 Thread Manuel Lemos
Hello, On 11/18/2004 04:42 PM, Paul Danko wrote: I am building an application that uses the mail() command. I am running on RedHat v9 with Apache v2 and PHP v4.3.8. The problem is, when I run the mail() function, the submitting page is very slow (1-2 seconds), I assume because it is waiting for

Re: [PHP] ERP - CRM implemented in PHP

2004-11-19 Thread Brent Baisley
Moregroupware has been around a while and seems pretty mature. moregroupware.org or you may want to look at PHPGroupware. phpgroupware.org On Nov 19, 2004, at 9:14 AM, Manoj Kumar wrote: Hi folks, Would you please suggest me the name of ERP - CRM software solely implemented in PHP . -- Manoj

Re: [PHP] Re: $_FILES and move_uploaded_file showed no directories name???

2004-11-19 Thread Raditha Dissanayake
Scott Fletcher wrote: Yep, that Java applet, Raditha's Rad Upload... Just found the documentation there that the file path worked before PHP 4.3.6 but not with 4.3.6 and up. I don't know what the PHP developer did with the $_FILE codes before releasing PHP 4.3.6 Older versions of PHP used

Re: [PHP] PhP e COBOL

2004-11-19 Thread Raditha Dissanayake
Andre wrote: Hello I need some help in this subject php + COBOL. I need to load data of a program in COBOL for a site written in php. The data must be loaded for a DB in mysql. Any one knows as I make this. Thank for the help Not sure if you will find a lot of cobol programmers in this

RE: [PHP] getting the highest number in 3 db fields?

2004-11-19 Thread Gryffyn, Trevor
If we're trying to get the max value between 3 columns in a row like this: Prolog transmodal asian 1 2 3 We'd want to get the value 3 If you wanted to get the max out of three values in a row, you might do something like this: SELECT MAX(prolog, transmodal,

Re: [PHP] PHP Supremacy...

2004-11-19 Thread Yves Arsenault
I just thought it was neat to see a competitor of MS :-) Yves On Fri, 19 Nov 2004 15:26:40 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote: Yves Arsenault wrote: I see: © 2004 Novell, Inc At the bottom of the mono site.. Does not matter who is the current sponsor. The project is

Re: [PHP] PhP e COBOL

2004-11-19 Thread James E Hicks III
Andre wrote: Hello I need some help in this subject php + COBOL. I need to load data of a program in COBOL for a site written in php. The data must be loaded for a DB in mysql. Every night a job runs on our Mainframe here that creates a big file filled with SQL updates. Every morning a CLI

[PHP] problems with path in a Win32 instalation

2004-11-19 Thread Waack3 Master
hi there... I had installed php 4.3.9 at Windows XP SP2. there is a problem in two (or more) extensions I Installed. - the domxml do not know what path are. - when using the dba extension with db3 as handler it can't write into the direcotory I. it creates the file but don't saves nothing.

RE: [PHP] Timezones

2004-11-19 Thread Gryffyn, Trevor
Don't know if this helps, but this was a message regarding Windows based long timezone formats that was posted a little while ago by another user: --- Kim [EMAIL PROTECTED] Managed to find it It helps using just those right keywords after a million

[PHP] Re: Understanding Static Methods

2004-11-19 Thread Matthew Weier O'Phinney
* Jordi Canals [EMAIL PROTECTED]: I'm trying to understand static methods in a test class. Reading the manual, it says: A member or method declared with static can not be accessed with a variable that is an instance of the object and cannot be re-defined in an extending class. It's possible

Re: [PHP] Understanding Static Methods

2004-11-19 Thread Curt Zirzow
* Thus wrote Jordi Canals: On Fri, 19 Nov 2004 03:16:14 +0100, Sylvain Girard [EMAIL PROTECTED] wrote: I'm taking a wild guess here, but doesn't that got anything to do with the public declaration of the method? If I declare the method without the public declaration it bahaves the

RE: [PHP] PHP-editor connected to FTP?

2004-11-19 Thread Chris W. Parker
Chris mailto:[EMAIL PROTECTED] on Thursday, November 18, 2004 8:56 PM said: HTML-Kit (www.chami.com) will do this. I've been using HTML-Kit for almost 2 years and I've never had a problem with a bad save. I use HTML-Kit as well and feel it is a bloated pile of crap. i'm sorry you've had

RE: [PHP] PhP e COBOL

2004-11-19 Thread Vail, Warren
Sure, 1. In PHP/Mysql extract rows and save them to a file in delimited fashion, for numeric values be sure to align all the number digits (cobol is dependent on numeric fields being aligned), you can do this with sprintf(%09.02f,$dbfloat); Your delimiter character can be any character that

[PHP] HTML form online

2004-11-19 Thread Jerry Swanson
I want to write php script that fill out HTML form online. Any ideas how to do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can't download to Mac MSIE

2004-11-19 Thread Brian Dunning
Hi, Below is the code I use to provide downloads of purchased software. It has always worked great for all browsers, except MSIE for Mac (OS X and OS 9). They just receive a blank text file called getfile.php (which is the name of this doc). Can anyone suggest a way to improve this to work

Re: [PHP] HTML form online

2004-11-19 Thread Greg Donald
On Fri, 19 Nov 2004 14:39:57 -0500, Jerry Swanson [EMAIL PROTECTED] wrote: I want to write php script that fill out HTML form online. Any ideas how to do it? http://pear.php.net/package/HTTP_Request If that isn't enough, you can open a socket connection directly to the web server:

Re: [PHP] HTML form online

2004-11-19 Thread Matthew Sims
I want to write php script that fill out HTML form online. Any ideas how to do it? If you have a form such as this: form method=post action=index.php input type=text name=line1 value=Testing One input type=text name=line2 value=Testing Two /form You would see two text lines filled in with

RE: [PHP] HTML form online

2004-11-19 Thread Gryffyn, Trevor
Sure, get whatever data you need into variables and just do something like this: ? $firstname = Trevor; $lastname = Gryffyn; $company = Air Cargo Inc; ? html headtitle/title/head body form action=process.php method=POST First Name: input type=text name=firstname value=?$firstname?br Last

Re: [PHP] PHP-editor connected to FTP?

2004-11-19 Thread Aaron Gould
i'm sorry you've had so much trouble with it! but in the hopes of not scaring off other users i feel it is my duty as an html-kit user to respond. I'll back you up on this. I've used HTML-Kit for quite some time... probably over three years now. Great little program, especially for free!

RE: [PHP] HTML form online

2004-11-19 Thread Vail, Warren
I want to write php script that fill out HTML form online. Any ideas how to do it? I'm probably reading too much into your question, but it sounds like there is another website with a form on it, and you would like to develop a script that would connect to the website, fill in the information

[PHP] Sort $_FILE['userfile']['name'] by ascending abc order...

2004-11-19 Thread Scott Fletcher
Um, let's see, what would be the way to go in sorting the dual array --snip-- $_FILES['userfile']['name'] $_FILES['userfile']['type'] $_FILES['userfile']['size'] $_FILES['userfile']['tmp_name'] $_FILES['userfile']['error'] --snip-- where $_FILES['userfile']['name'] would be in ascending abc

[no subject]

2004-11-19 Thread webmaster
Norton AntiVirus Deleted1.txt Description: plain/text -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sequrity without HTTPS?

2004-11-19 Thread fabien champel
you can fint sha1 and md5 functions in javascript here : http://pajhome.org.uk/crypt/md5/index.html __ example : before html ?php session_start(); if ( function_exists(session_regenerate_id) ) session_regenerate_id(); $l = $_POST[login]; $p = $_POST[pass]; $lemd5 =

[PHP] Re: I am new - Having problems displaying something

2004-11-19 Thread Jed Smith
passthru()'s prototype is actually: void passthru(string cmd[, int return) http://php.net/passthru Meaning using passthru() with the concatenation operator . will produce unexpected results, as the product of the passthru call is actually printed directly out to the page, as

[PHP] Re: HTML form online

2004-11-19 Thread Jed Smith
Jerry Swanson wrote: I want to write php script that fill out HTML form online. Any ideas how to do it? If you want to fill a form *remotely*, that's a little tougher. You'll need cooperation from the server-side code on the site you want to fill the form on. As Matthew noted, the VALUE

Re: [PHP] HTML form online

2004-11-19 Thread Jed Smith
Warren Vail wrote: If so you probably want to start here; http://www.php.net/manual/en/ref.curl.php cURL can do that? -- _ (_)___Jed Smith, Code Ninja | / __| RFBs: [email for info] | \__ \ +1 (541) 606-4145 _/ |___/ [EMAIL PROTECTED] (Signed mail preferred: PGP

Re: [PHP] I am new - Having problems displaying something

2004-11-19 Thread Brian Heibert
I tried adding a ip addresss: EMBED SRC=http://4.10.69.244/christiantoplist/playing.php; WIDTH=256 HEIGHT=256 ALIGN=BOTTOM The domain I have christiantoplist.org forwards to http://4.10.69.244/christiantoplist/index.html But it still doesn't work It says: Current Song: and then it's blank

[PHP] Re: Sort $_FILE['userfile']['name'] by ascending abc order...

2004-11-19 Thread M. Sokolewicz
Scott Fletcher wrote: Um, let's see, what would be the way to go in sorting the dual array --snip-- $_FILES['userfile']['name'] $_FILES['userfile']['type'] $_FILES['userfile']['size'] $_FILES['userfile']['tmp_name'] $_FILES['userfile']['error'] --snip-- where $_FILES['userfile']['name'] would be

[PHP] ending a session

2004-11-19 Thread Hans J.J. Prins
Hello, I started a session at www.mydomain.com:/myscript.php I want to destroy the session at www.mydomain.com/myscript.php I seem to not be able to destroy it though. Does the different port have anything to do with it? Thx, H J.J. P -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: ending a session

2004-11-19 Thread Jed Smith
Hans J.J. Prins wrote: Hello, I started a session at www.mydomain.com:/myscript.php I want to destroy the session at www.mydomain.com/myscript.php I seem to not be able to destroy it though. Does the different port have anything to do with it? Thx, H J.J. P Although I've never encountered this

Re: [PHP] ERP - CRM implemented in PHP

2004-11-19 Thread Yann Larrive
I would sugest Dollibar http://freshmeat.net/projects/dolibarr/ Wich has all the crm, ERP fonctionalities. And hostly up to now i haven't rellay seen a groupware made in PHP that is really clean (code wise) and easy to use. Has gropware there is OpenGroupeware but the api is write-en in

Re: [PHP] Is Perl faster than PHP?

2004-11-19 Thread Justin French
On 17/11/2004, at 2:54 AM, Merlin wrote: it came to my attention that most of the high traffic portals are using perl in the backend. Those sites do also apear to me to be very fast in comparison to most php sites. Are there any known performance comperissons between the two available? Or can

[PHP] Re: ending a session

2004-11-19 Thread Hans J.J. Prins
Hello Jed, Thx for your response. 1. What are you running on ? 1) FreeBSD with Apache 2) Also Directadmin (hosting control panel) 2. What are you running on 80? 1) FreeBSD with Apache 2) A login form into directadmin. I do this because I wanted to skin the login form but cant

Re: [PHP] how to parse a string parse with ereg

2004-11-19 Thread Jason Wong
On Friday 19 November 2004 01:50, [EMAIL PROTECTED] wrote: Then you can process each line separately but in groups 3 lines at a time (assuming they're supposed to be groups of 3). but what happen's in the case a user drop down every line in a web form without a ELO character ? Not quite