[PHP] How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Jon M.
I just found a place here: http://us2.php.net/manual/en/language.oop.php That has this example: /* This is how it should be done. */ class Cart { var $todays_date; var $name; var $owner; var $items = array(VCR, TV); function Cart() { $this-todays_date = date(Y-m-d);

Re: [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread Rasmus Lerdorf
James Williams wrote: No You don't declare variables in PHP. You just start using them. Perhaps you mean assign? Since your example of var = variableName; is actually an assignment in Javascript. In PHP you simply do: $one_var = $another_var; -Rasmus You are however, when dealing

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] New Security Measures ...

2005-05-05 Thread Paypal
clothesman futile antiquarian bar wholesale sum acquire saturnalia prefecture section astute cathedral intercom behavioral carlyle

Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread Rasmus Lerdorf
Jon M. wrote: So, are you saying that it is absolutely PHP-illegal to do: Yes, it is illegal. Inside a class definition you can define properties like this, but for regular variables it is simply not supported. And it makes no sense. If you can't stop your hands from typing this stuff, do

Re: [PHP] control-M

2005-05-05 Thread Petar Nedyalkov
On Thursday 05 May 2005 06:13, David Christensen wrote: I know I'm missing something, but I can't seem to find it or figure it out. I've done the google search, and I've done a quick scan of the list archives, but I can't seem to find the right way to remove control-M from a form submission

Re: [PHP] regex

2005-05-05 Thread Petar Nedyalkov
On Wednesday 04 May 2005 21:31, Sebastian wrote: very new to regex i have a string with bbcode such as [img=XXX] (XXX being numeric) how do i search the string for the value of the bbcode and compare it to another variable? so i can take XXX and compare it to $image dynamically. Try this

Re: [PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-05 Thread bala chandar
hi, On 5/5/05, Jon M. [EMAIL PROTECTED] wrote: Oops!! What I meant was: JavaScript: var varName; PHP: var $varName; I can't believe I did that (I have been writing JavaScript for a few years, and know better -I gotta get more sleep). So, are you saying that it is absolutely

Re: [PHP] control-M

2005-05-05 Thread Joe Wollard
David, Well, I've never seen this issue on a form submission before, but I have seen it (and other oddities) when editing text files in vi that we created on M$. You might try something simple first such as: ?php $text = str_replace(^M\n\r, \n\r, $_POST['textarea_name']); ? I haven't tested

[PHP] select statement

2005-05-05 Thread Anasta
Why doesnt this work, it shows the username but not the balance of the users money.here is the mysql table: CREATE TABLE `users` ( `user_id` int(11) NOT NULL auto_increment, `username` varchar(15) NOT NULL default '', `password` varchar(15) NOT NULL default '', `status` varchar(10) NOT

Re: [PHP] control-M

2005-05-05 Thread Marek Kilimajer
David Christensen wrote: I know I'm missing something, but I can't seem to find it or figure it out. I've done the google search, and I've done a quick scan of the list archives, but I can't seem to find the right way to remove control-M from a form submission page with textarea fields. I have a

Re: [PHP] How to declare Vars in PHP?

2005-05-05 Thread Marek Kilimajer
Jon M. wrote: I know it's not necessary, but I still want to know how. I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; the above is wrong. you can declare variable inside class definition using (php4):

[PHP] pear - make install fails (php5)

2005-05-05 Thread gerold kathan
hi - i am running into troubles: i have a linux (Redhat ES3) system running php4.3.11 * trying to build apache2/php5.0.4 (= run php4 OR php5) = PREFIX : /usr/local/php5 i can do it as long i compile php5 with option --without-pear if i try to build with pear it compiles fine but when doing

RE: [PHP] Tracking what has been changed

2005-05-05 Thread Mark Rees
-Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal information.

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Ryan Faricy
Jon M. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I know it's not necessary, but I still want to know how. I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't

[PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Ryan Faricy
Jon M. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just found a place here: http://us2.php.net/manual/en/language.oop.php That has this example: /* This is how it should be done. */ class Cart { var $todays_date; var $name; var $owner; var $items = array(VCR,

[PHP] multi dimensional array

2005-05-05 Thread Angelo Zanetti
Hi guys, I have a problem where I use a multi dimensional array on one server and now have moved it to another server and it just doesnt work: $result2 = $userdb-listUsers($clubID); $i=0; while ( $row2 = mysql_fetch_array($result2) ) { //echo

[PHP] Re: php5-mysqli

2005-05-05 Thread Ryan Faricy
Nsk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] which config files are responsible for loading mysqli in apache/php5 ? php.ini ;; Old MySQL support extension=mysql.so ;; New MySQL support. extension=mysqli.so -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] insert not working

2005-05-05 Thread Ross
$query = INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', '$postcode', '$city', '$telephone', '$mobile', '$fax', '$email',

Re: [PHP] select statement

2005-05-05 Thread bala chandar
On 5/5/05, Anasta [EMAIL PROTECTED] wrote: Why doesnt this work, it shows the username but not the balance of the users money.here is the mysql table: CREATE TABLE `users` ( `user_id` int(11) NOT NULL auto_increment, `username` varchar(15) NOT NULL default '', `password` varchar(15)

[PHP] Re: Thanks, I understand now

2005-05-05 Thread Jon M.
OK, thanks everyone. My question has been thoroughly answered, and I completely understand now. I did try the var $varName; outside a class, just to see what happened, and found out it does indeed throw a parse error, so I'll just use a comment as suggested. I wonder why Beginning PHP 5

Re: [PHP] XSL:FO + PHP

2005-05-05 Thread rouvas
On Wednesday 04 May 2005 22:30, Dan Rossi wrote: On 05/05/2005, at 1:47 AM, Kristen G. Thorson wrote: Dan, I have done this before, but it was only a proof-of concept excercise for me, so my procedure may not work for you. My test was against an Amazon web service and generating a PDF

[PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Jon M.
OK, thanks everyone. (BTW -I actually meant to say 'var $varName;' in PHP and 'var varName;' in JavaScript -doh!) Anyway, my question has been thoroughly answered, and I completely understand now. I did try the var $varName; outside a class, just to see what happened, and found out it

Re: [PHP] multi dimensional arraySOLVED

2005-05-05 Thread Angelo Zanetti
this is quite weird but apparently on the one server if you user $user as a variable name thats what causes the problem. I simply renamed my variable to something else and it worked, I find it strange that it worked on 1 server and not the other, is it possible that the different apache versions

Re: [PHP] select statement

2005-05-05 Thread Prathaban Mookiah
Maybe the query should be select user_balance FROM users WHERE user_id=$uname; Prathap -- Original Message --- From: Anasta [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thu, 5 May 2005 16:10:35 +0800 Subject: [PHP] select statement Why doesnt this work, it shows the

Re: [PHP] insert not working

2005-05-05 Thread Marek Kilimajer
Ross wrote: $query = INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', '$postcode', '$city', '$telephone', '$mobile', '$fax',

Re: [PHP] [SOLVED] Function shall receive Pointer to Array

2005-05-05 Thread Fred Rathke
Thanks, Chris. You have been right. It worked already. I still remove all my typing errors in the original version. For this list I wrote a new version of it. Should have tried it first. Sorry. Greatings *I should not work after midnight* Liebe Grüße Fred Rathke [EMAIL PROTECTED]

Re: [PHP] insert not working

2005-05-05 Thread Prathaban Mookiah
Did you check for proper permissions in the user and db tables in the user database? Prathap -- Original Message --- From: Ross [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thu, 5 May 2005 10:15:52 +0100 Subject: [PHP] insert not working $query = INSERT INTO sheet1

[PHP] is this the correct syntax

2005-05-05 Thread Ross
Am trying to do an update of a record... Is this the correct syntax.. $query= UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id= $id; R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re: insert not working

2005-05-05 Thread Ross
Just a type error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi dimensional array

2005-05-05 Thread bala chandar
hi, On 5/5/05, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys, I have a problem where I use a multi dimensional array on one server and now have moved it to another server and it just doesnt work: $result2 = $userdb-listUsers($clubID); $i=0; while ( $row2 =

Fwd: [PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Rory Browne
Otherwise you can 'declare' them by assigning them a null/zero/empty value. $my_number = 0; $my_string = $my_array = array(); The main reason for 'declaring' variables in PHP, is so that you can use them in functions without raising an E_NOTICE. On 5/5/05, Ryan Faricy [EMAIL PROTECTED] wrote:

Re: [PHP] insert not working

2005-05-05 Thread bala chandar
Hi, On 5/5/05, Ross [EMAIL PROTECTED] wrote: $query = INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web, add_info) VALUES ('$title', '$fname', '$sname', '$job_title', '$organisation', '$street', '$postcode', '$city',

Re: [PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Rory Browne
Next time you double post(I'm assuming by accident), could you reply to one, of the posts declaring it void, and point people to the other, so that you don't have two people answering the same question in two different threads. On 5/5/05, Ryan Faricy [EMAIL PROTECTED] wrote: Jon M. [EMAIL

RE: [PHP] insert not working

2005-05-05 Thread Mark Rees
-Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 10:16 To: php-general@lists.php.net Subject: [PHP] insert not working $query = INSERT INTO sheet1 (title, fname, sname, job_title, organisation, street, postcode, city, telephone, mobile, fax, email, web,

[PHP] need help on .htaccess

2005-05-05 Thread Mathieu Dumoulin
We have here at work a simple .htaccess that redirects all requests to an index page which works fine so far. I'll show you the code of the .htaccess you can use it if you can't to, it works perfectly fine. AddType application/x-httpd-php .html RewriteEngine on RewriteBase / RewriteRule ^$ -

[PHP] joining in php development

2005-05-05 Thread bala chandar
hi, how to join in php development??? -- bala balachandar muruganantham blog lynx http://chandar.blogspot.com web http://www.chennaishopping.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Error suppression operator (@)

2005-05-05 Thread Rory Browne
ditto everyone who said use it if you don't care about errors, but don't use it in places where you expect errors. Also don't use it in places where it can be avoided with minimal cost. For example if you have an optional field, and people usually fill it in, and rarely leave it empty, then you

Re: [PHP] Question about acessing databases and formatting output

2005-05-05 Thread The Doctor
On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar wrote: hi, On 5/5/05, The Doctor [EMAIL PROTECTED] wrote: This is probably easy, but how does one access a database, mysql or oracle or postgresql, and present the data in a tabular format? -- Member - Liberal International

[PHP] How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Hi, I have a file called application.php and in this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG-wwwroot = http://www.mydomain.com; $CFG-dirroot = /usr/home/myaccount/public_html; $CFG-admindir = $CFG-wwwroot/admin; $CFG-claimsdir_adm

[PHP] Linking to the Root Dir - LAMP

2005-05-05 Thread Shaun
Hi, I have a file called application.php and this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG-wwwroot = http://www.mydomain.com; $CFG-dirroot = /usr/home/myaccount/public_html; $CFG-admindir = $CFG-wwwroot/admin; $CFG-claimsdir_adm

[PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-05 Thread Oscar Andersson
I have made a instal of the latest mySQL and PHP 5 on my computer. I have made the following changes to my php.ini file extension=php_mysql.dll extension_dir = c:\php\ and i have put the php_mysql. and libmysql.dll in c:\php\ and in c:\windows to Now i try this in my php-file $con =

Re: [PHP] is this the correct syntax

2005-05-05 Thread Prathaban Mookiah
It should be $id. Note that missing Prathap -- Original Message --- From: Ross [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thu, 5 May 2005 12:09:18 +0100 Subject: [PHP] is this the correct syntax Am trying to do an update of a record... Is this the correct

[PHP] Socket connection reset by pear

2005-05-05 Thread =?iso-8859-1?q?Mart=EDn_Marqu=E9s?=
I'm trying to build some communication aside of the server thin client stuff, with a socket daemon and a socket client. The daemon is the same that everybody can find in the PHP docs (example 1). The client simply opens a connection to the daemon and writes data using the socket Object from

[PHP] Re: is this the correct syntax

2005-05-05 Thread Mathieu Dumoulin
Ross wrote: Am trying to do an update of a record... Is this the correct syntax.. $query= UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id= $id; R. Technically this is right as long as your variables are giving out the real intented values. For extra knowledge, your $query

Re: [PHP] control-M

2005-05-05 Thread David Christensen
Actually, I forgot to also mention that the browser is changing the control-M (^M) from the query when it sets the default value for the textarea to br /. I guess that is the HTML representation of the ^M. I'm currently using: $_POST[$field] = str_replace(\r\n, \n, $_POST[$field]);

Re: [PHP] joining in php development

2005-05-05 Thread Angelo Zanetti
well your statement doesnt make any sense bala chandar wrote: hi, how to join in php development??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] control-M

2005-05-05 Thread David Christensen
These aren't text files, there form fields from a browser and fields from query. I don't think dos2unix will be of much help with this. Dave On Thu, 2005-05-05 at 09:07 +0300, Petar Nedyalkov wrote: On Thursday 05 May 2005 06:13, David Christensen wrote: I know I'm missing something, but I

[PHP] Re: How do I link to the root directory of the server?

2005-05-05 Thread Shaun
Sorry for double posting, these took an hour to appear in my newsreader and I thought there was a problem with the first one I sent Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a file called application.php and in this file I define all of the directories in

[PHP] Re: Linking to the Root Dir - LAMP

2005-05-05 Thread Mathieu Dumoulin
Shaun wrote: Hi, I have a file called application.php and this file I define all of the directories in my site: class object {}; $CFG = new object; $CFG-wwwroot = http://www.mydomain.com; $CFG-dirroot = /usr/home/myaccount/public_html; $CFG-admindir = $CFG-wwwroot/admin;

Re: [PHP] control-M

2005-05-05 Thread David Christensen
Joe, not sure you str_replace will work. I think I need a way to represent the ^M with an ASCII code. The ^M character is a single character. If you type ^M that is 2 characters, caret + M. They are not equal ASCII-wise. Dave On Thu, 2005-05-05 at 03:11 -0400, Joe Wollard wrote: David,

Re: [PHP] need help on .htaccess

2005-05-05 Thread Greg Donald
On 5/5/05, Mathieu Dumoulin [EMAIL PROTECTED] wrote: We have here at work a simple .htaccess that redirects all requests to an index page which works fine so far. I'll show you the code of the .htaccess you can use it if you can't to, it works perfectly fine. AddType application/x-httpd-php

Re: [PHP] is this the correct syntax

2005-05-05 Thread Mathieu Dumoulin
Prathaban look carefully, we are here to give acurate info and you are giving mistaken information. The $id thing is wrong, you'll actually create a parse error X| ... Prathaban Mookiah wrote: It should be $id. Note that missing Prathap -- Original Message --- From: Ross [EMAIL

Re: [PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-05 Thread bala chandar
hey On 5/5/05, Oscar Andersson [EMAIL PROTECTED] wrote: I have made a instal of the latest mySQL and PHP 5 on my computer. I have made the following changes to my php.ini file extension=php_mysql.dll extension_dir = c:\php\ and i have put the php_mysql. and libmysql.dll in c:\php\ and in

Re: [PHP] joining in php development

2005-05-05 Thread bala chandar
Hey On 5/5/05, Angelo Zanetti [EMAIL PROTECTED] wrote: well your statement doesnt make any sense bala chandar wrote: hi, how to join in php development??? i want to develop some functions that is built in to the php. how to contribute or join in its development/? -- bala

[PHP] PHP mail

2005-05-05 Thread Eustace
I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace

Re: [PHP] joining in php development

2005-05-05 Thread Angelo Zanetti
best is to get hold of the guys at www.php.net bala chandar wrote: Hey On 5/5/05, Angelo Zanetti [EMAIL PROTECTED] wrote: well your statement doesnt make any sense bala chandar wrote: hi, how to join in php development??? i want to develop some functions that is built

[PHP] Re: PHP mail

2005-05-05 Thread Mathieu Dumoulin
Eustace wrote: I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace I'll show you how we do it here

[PHP] form variables

2005-05-05 Thread Anasta
Can anyone tell me how a submit button can be used to send set a variable so there is only a button --no textfield. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] control-M

2005-05-05 Thread Marek Kilimajer
David Christensen wrote: Actually, I forgot to also mention that the browser is changing the control-M (^M) from the query when it sets the default value for the textarea to br /. I guess that is the HTML representation of the ^M. you are using nl2br() on the input, that funcion adds 'br /'

[PHP] php/osx and firebird

2005-05-05 Thread James
I've attempted to access a firebird database living on an osx/apache/php machine. When I'm running the following script, ?php ini_set(magic_quotes_sybase, On); $host = 'localhost:/Library/Frameworks/Firebird.framework/Resources/examples/employee.fdb'; $username = sysdba; $password =

[PHP] calling a derived static method from a base class

2005-05-05 Thread Christopher J. Bottaro
code class Base { static function f() { self::g(); } static function g() { print(Base\n); } } class Derived extends Base { static function g() { print(Derived\n); } } Derived::f(); /code I want that to

Re: [PHP] PHP mail

2005-05-05 Thread Aaron Gould
Eustace wrote: I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace Everything you need to know

[PHP] Objects in Arrays (without the READ prompt)

2005-05-05 Thread Stuart Nielson
Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one shouldn't have that problem. I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username, usertype, etc. I want

[PHP] if then else statement not working

2005-05-05 Thread Anasta
What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { echo username; } else { echo 'empty'; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP mail

2005-05-05 Thread Philip Hallstrom
I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! See the example here:

[PHP] Re: Objects in Arrays (without the READ prompt)

2005-05-05 Thread Mathieu Dumoulin
Stuart Nielson wrote: Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one shouldn't have that problem. I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username,

Re: [PHP] control-M

2005-05-05 Thread David Christensen
I am? That news to me??? I just did a 'grep nl2br form.php' and I don't any output with nl2br. I'm not sure this is what's going on. I did see that function in the Strings section of the manual, but it didn't do anything for me. Thanks for your help, Dave On Thu, 2005-05-05 at 16:11 +0200,

[PHP] OO toturial

2005-05-05 Thread Khorosh Irani
hello Can anyone tell me the url of a good toturial about object and php that contain: polymorphism,Delegation,...? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Objects in Arrays (without the READ prompt)

2005-05-05 Thread Jason Petersen
Hi, I think you need to serialize your objects. http://us3.php.net/manual/en/language.oop.serialization.php Jason On 5/5/05, Stuart Nielson [EMAIL PROTECTED] wrote: Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one

[PHP] FlashPHP Issue

2005-05-05 Thread Khorosh Irani
Hello How I can get the width and height of a swf file with php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] form variables

2005-05-05 Thread Petar Nedyalkov
On Thursday 05 May 2005 17:46, Anasta wrote: Can anyone tell me how a submit button can be used to send set a variable so there is only a button --no textfield. Use hidden input fields. -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key:

Re: [PHP] form variables

2005-05-05 Thread bala chandar
hi On 5/5/05, Anasta [EMAIL PROTECTED] wrote: Can anyone tell me how a submit button can be used to send set a variable so there is only a button --no textfield. use value= in the button html component -- bala balachandar muruganantham blog lynx http://chandar.blogspot.com web

Re: [PHP] PHP mail

2005-05-05 Thread bala chandar
Hi On 5/5/05, Aaron Gould [EMAIL PROTECTED] wrote: Eustace wrote: I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show

[PHP] Re: if then else statement not working

2005-05-05 Thread Jason Barnett
Anasta wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { I think maybe you mean this: if ($seatnum == 'seat1') { Heck from the code above you won't even

RE: [PHP] calling a derived static method from a base class

2005-05-05 Thread Mike Johnson
From: news [mailto:[EMAIL PROTECTED] On Behalf Of code class Base { static function f() { self::g(); } static function g() { print(Base\n); } } class Derived extends Base { static function g() {

[PHP] Re: OO toturial

2005-05-05 Thread Jason Barnett
Khorosh Irani wrote: hello Can anyone tell me the url of a good toturial about object and php that contain: polymorphism,Delegation,...? Thanks Google for Gang of Four Programming -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pear - make install fails (php5)

2005-05-05 Thread Jason Barnett
Gerold Kathan wrote: ... Installing PHP CLI binary:/usr/local/php5/bin/ Installing PHP CLI man page: /usr/local/php5/man/man1/ Installing PEAR environment: /usr/local/php5/lib/php/ make[1]: *** [install-pear-installer] Segmentation fault make: *** [install-pear] Error 2 = it

Re: [PHP] joining in php development

2005-05-05 Thread Jason Barnett
Bala Chandar wrote: Hey On 5/5/05, Angelo Zanetti [EMAIL PROTECTED] wrote: well your statement doesnt make any sense bala chandar wrote: hi, how to join in php development??? i want to develop some functions that is built in to the php. how to contribute or join in its development/? Fix

Re: [PHP] if then else statement not working

2005-05-05 Thread bala chandar
On 5/5/05, Anasta [EMAIL PROTECTED] wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { you must use if (seatnum == seat1) { echo username; }

Re: [PHP] Tracking what has been changed

2005-05-05 Thread Jason Barnett
Mark Rees wrote: -Original Message- From: Robb Kerr [mailto:[EMAIL PROTECTED] Sent: 05 May 2005 00:29 To: php-general@lists.php.net Subject: [PHP] Tracking what has been changed Here's the scenario... I am building a site in which users will be able to create and then later edit personal

[PHP] Re: if then else statement not working

2005-05-05 Thread Matthew Weier O'Phinney
* Anasta [EMAIL PROTECTED]: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { What are you comparing? is seatnum a constant? is seat1 a constant? or is one

Re: [PHP] if then else statement not working

2005-05-05 Thread Gabriel Guzman
Anasta wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { echo username; } else { echo 'empty'; } ? mysql_query() returns a resource, not the results

Re: [PHP] control-M

2005-05-05 Thread Marek Kilimajer
David Christensen wrote: I am? That news to me??? I just did a 'grep nl2br form.php' and I don't any output with nl2br. I'm not sure this is what's going on. I did see that function in the Strings section of the manual, but it didn't do anything for me. Well, php isn't making it up, it has to

Re: [PHP] if then else statement not working

2005-05-05 Thread Philip Hallstrom
What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { echo username; } else { echo 'empty'; } ? Just guessing since I'm not sure what you're trying to do, but... ?php

Re: [PHP] if then else statement not working

2005-05-05 Thread Rasmus Lerdorf
Anasta wrote: What am i doing wrong here, the output is always 'empty' ?php $result = mysql_query(SELECT username FROM users WHERE seatnum='seat1') or die(mysql_error()); if (seatnum == seat1) { echo username; } else { echo 'empty'; } ? That doesn't even look like PHP code. In

Re: [PHP] OO toturial

2005-05-05 Thread Brent Baisley
I've been looking and reading for a while now. What I've discovered is that you really should learn the concepts rather than how php implements the concepts. PHP4 lacks the capability to do (at least do well) a lot of object stuff (i.e. multiple inheritance), PHP5 has far better support for

Re: [PHP] form variables

2005-05-05 Thread Ryan Faricy
A hidden INPUT would be better... FORM ... INPUT TYPE=hidden NAME=yourVariableName VALUE=yourValue ... /FORM Bala Chandar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi On 5/5/05, Anasta [EMAIL PROTECTED] wrote: Can anyone tell me how a submit button can be used to send set a

Re: [PHP] control-M

2005-05-05 Thread David Christensen
Oh, you just clued me in... I wonder if [EMAIL PROTECTED] might be able to shed some like on this. I'm using TBS as my template engine for this site. And yes, it does use nl2br in the meth_Html_Conv function. I'll probably need to add the htmlconv=no option to all of the textarea fields. I

Re: [PHP] FlashPHP Issue

2005-05-05 Thread Chris
Khorosh Irani wrote: Hello How I can get the width and height of a swf file with php? Thanks http://www.php.net/getimagesize -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/osx and firebird

2005-05-05 Thread Gabriel Guzman
James wrote: I've attempted to access a firebird database living on an osx/apache/php machine. snip How do I enable those functions? I've looked at the php documentation (http://uk2.php.net/manual/en/ref.ibase.php ) To enable InterBase support configure PHP --with-interbase[=DIR], where DIR

Re: [PHP] php/osx and firebird

2005-05-05 Thread Lester Caine
James wrote: To enable InterBase support configure PHP --with-interbase[=DIR], where DIR is the InterBase base install directory, which defaults to /usr/interbase. I've tried to add: --with-interbase=/Library/Frameworks/Firebird.framework/Resources to my php.ini and it didn't work. That does not

Re: [PHP] to pass session from one websever to another webserver

2005-05-05 Thread Rory Browne
In that case you're probably best to have a single source for the session data, and simply pass the SessionID as a $_GET variable in the URL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] downloading files

2005-05-05 Thread Cima
hi all, i've uploaded some files into my postgresql db, via a php script, and now id like to give a user the posibility to download these files via a php script. what would be the best way to do this bearing in mind that the files are 'integrated' into the db and are referenced by an oid. the

[PHP] file uploads and sizes

2005-05-05 Thread Cima
i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset .) part of the code is executed yet when

[PHP] one-time password (OTP) authentication

2005-05-05 Thread james
Two-factor authentication (authenticating user with something they know AND something they possess) is becoming more and more popular due to increasing security requirements and the prevalence of spyware software. However, in open source projects, solutions such as RSA securID, smartcards,

[PHP] file uploads and sizes

2005-05-05 Thread Cima
i have the following code that works except when the file i'm trying to upload excedes the upload_max _filesize and post_max_size defined in the php.ini file. what happens when the file is smaller than the max sizes mentioned previously, the if (isset .) part of the code is executed yet when

[PHP] html hyperlink and PHP

2005-05-05 Thread Oscar Andersson
If i do like this. a href=huvudsida.php?action=lista target=_self How does the webbrowser send this? With post or get or ..? Shall i get the action with $_POST or $_GET? ex. @$action = $_POST['action']; if(!$action) @$action = $_GET['action']; processRequest($action); If i do

Re: [PHP] FlashPHP Issue

2005-05-05 Thread disguised.jedi
How I can get the width and height of a swf file with php? http://www.php.net/ming -- [EMAIL PROTECTED] PHP rocks! Knowledge is Power. Power Corrupts. Go to school, become evil Disclaimer: Any disclaimer attached to this message may be ignored. However, I must say that the ENTIRE contents

Re: [PHP] PHP based project management

2005-05-05 Thread Zareef Ahmed
Hi, Look for phpcollab. zareef ahmed On 5/4/05, Neal Carmine [EMAIL PROTECTED] wrote: Hi, There are a lot of open source project management packages. .Project, netoffice and others. Does anyone have a recommendation on the best overall project management software for tracking billable

Re: [PHP] html hyperlink and PHP

2005-05-05 Thread Richard Lynch
You could have tried it in the time it took you to post... It's GET. On Thu, May 5, 2005 7:28 pm, Oscar Andersson said: If i do like this. a href=huvudsida.php?action=lista target=_self How does the webbrowser send this? With post or get or ..? Shall i get the action with $_POST or $_GET?

  1   2   >