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???
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
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()
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
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
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);
$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
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
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
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
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
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
{
--- 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
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
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
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.
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
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
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
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,
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
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
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
[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
Hi folks,
Would you please suggest me the name of ERP - CRM software solely
implemented in PHP .
-- Manoj Kr. Sheoran
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,
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
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
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
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
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
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
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
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,
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
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
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.
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
* 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
* 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
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
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
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
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
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:
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
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
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!
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
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
Norton AntiVirus Deleted1.txt
Description: plain/text
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 =
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
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
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
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
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
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
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
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
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
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
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
63 matches
Mail list logo