php-general Digest 19 Jul 2005 15:30:47 -0000 Issue 3576

2005-07-19 Thread php-general-digest-help
php-general Digest 19 Jul 2005 15:30:47 - Issue 3576 Topics (messages 218932 through 218960): Re: Is there a way to get a variable name as a string? 218932 by: Daevid Vincent 218933 by: Rob Agar 218934 by: Rasmus Lerdorf 218935 by: Ryan A 218936 by:

Re: [PHP] Session has new id on 'some' pages.

2005-07-19 Thread Burhan Khalid
Marek Kilimajer wrote: Andy Pieters wrote: Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id! set the domain of the cookie to 'server.org.uk', it's the fifth

Re: [PHP] PHP from CLI with SAPI

2005-07-19 Thread Burhan Khalid
Fredrik Tolf wrote: Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP support, but writing a new SAPI for PHP seems like overkill. What's so bad about Apache? Therefore, is it possible to use PHP

Re: [PHP] Tracking a mobile phone

2005-07-19 Thread Burhan Khalid
Please add OT to the subject if the topic has nothing to do with PHP. OT = Off Topic. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-19 Thread Burhan Khalid
Rasmus Lerdorf wrote: Daevid Vincent wrote: Is there a way to get the name of a variable as a string? For example... Nope, not possible. Well ob_start(); echo '$var'; $contents = ob_get_contents(); ob_end_clean(); echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);

Re: [PHP] Tracking a mobile phone

2005-07-19 Thread Tom Rogers
Hi, Tuesday, July 19, 2005, 5:15:10 AM, you wrote: T Hi there, T I was wondering if anybody has attempted to track a mobile phone through a T country. I know that this is usually more a case for the FBI . a friend of T mine is going on a 4 month bike tour and I would like to 'track' him for T

Re: [PHP] Date function and MySQL

2005-07-19 Thread Arno Coetzee
Philip Thompson wrote: Hi all. I have the week number (for example, this is the 29th week of the year and it begins on 7/17/05). Does anyone know how to obtain the first (and maybe the last) date of the week if you only know the week number of the year? Would it be better for me to

Re: [PHP] sytax errors

2005-07-19 Thread Mark Rees
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] babu wrote: Hi, could someone please check where the sytax error is in these statements. $sqlstmt= EXEC sp_addlogin .$adduser. , .$addpass; $sqlstmt1= EXEC sp_adduser @loginame= .$adduser. , @name_in_db= .$adduser;

Re: [PHP] sytax errors

2005-07-19 Thread babu
Hi, Its giving the line number. But actually i want to know the correct syntax for concatenation. I think all there is some mistake in all the three concatination statements. so could some one check and give some idea. thanks John Nichel [EMAIL PROTECTED] wrote: babu wrote: Hi, could

Re: [PHP] sytax errors

2005-07-19 Thread Raz
Its giving the line number. But actually i want to know the correct syntax for concatenation. I think all there is some mistake in all the three concatination statements. No - there is no problem with any of the statements per se, but there may be when executed with $adduser, $addpass etc.

RE: [PHP] show a field in php file

2005-07-19 Thread Jay Blanchard
[snip] what is it wrong to ask questions on a php general mailing list where I know there are a bunch of people that can help? I do have a php book But it dosent show. Why can other people ask questions but I cant? [/snip] It is not that you cannot ask questions, it is that your questions show

Re: [PHP] show a field in php file

2005-07-19 Thread Raz
Hey George... On 19/07/05, Jay Blanchard [EMAIL PROTECTED] wrote: It is not that you cannot ask questions, it is that your questions show a basic lack of research. The answers to the questions you have asked are easily gotten from the manual, tutorials, and good books on PHP development.

[PHP] PHP CERT. Question

2005-07-19 Thread Joseph
Is there a list which deals with basic certification questions and anxieties? I got the 'official' Zend study guide and now believe I know nothing. And the practice book has quests whose subjects are not mentioned in the relevant chapters. If someone else has completed the exam, which text did

Re: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Thank you Rouvas, I never used the tools you mentioned. But I will definitely give them a try. I wrote a perl script using LWP as an http user agent. and the timing function you suggested. It works well. I am new to this forum, and new to PHP. It seems Rasmus is famous, and I should have

RE: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Shaw, Chris - Accenture
snipIt seems Rasmus is famous, and I should have shown my respect./snip history src = 'php_manual_en.chm' PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus Lerdorf in 1995, initially as a simple set of Perl scripts for tracking accesses to his online resume. He named this

Re: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Hi André, It sounds interesting. But since I am pretty new to PHP, I have some questions, naive maybe, about what you wrote. #!/bin/sh\n/path/to/script/Send.php 12 \n What does the Send.php look like? I do not have idea how a shell interprets an php script and what the parameter 12 means

[PHP] mysql problem- I know it isn't strictly php

2005-07-19 Thread Ross
Hi all, I am trying to create a table on the remote server but it never seems to work CREATE TABLE `sheet1` ( `id` int(10) NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `fname` varchar(255) NOT NULL default '', `sname` varchar(255) default NULL, `job_title`

RE: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Can somebody here help me to delete my message? People who read this must be laughing at me. :) snipIt seems Rasmus is famous, and I should have shown my respect./snip history src = 'php_manual_en.chm' PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus Lerdorf in

RE: [PHP] mysql problem- I know it isn't strictly php

2005-07-19 Thread Jay Blanchard
[snip] 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=303' at line 18 and this is what the manual says (not very helpful) a.. Error: 1064 SQLSTATE: 42000

Re: [PHP] show a field in php file

2005-07-19 Thread John Nichel
George B wrote: Jochem Maas wrote: John Nichel wrote: George B wrote: snip non-researched basic stuff http://us2.php.net/manual/en/index.php :-) anyone care for a php mysql extension: mysql_do_xml_http_request_bound_richdatagrid([string] query); george if you want to keep asking

Re: [PHP] show a field in php file

2005-07-19 Thread Jochem Maas
George B wrote: Jochem Maas wrote: John Nichel wrote: George B wrote: snip non-researched basic stuff http://us2.php.net/manual/en/index.php :-) anyone care for a php mysql extension: mysql_do_xml_http_request_bound_richdatagrid([string] query); george if you want to keep asking

Re: [PHP] show a field in php file

2005-07-19 Thread John Nichel
Jochem Maas wrote: snip **Non-Researched Basic Stuff - from John Nichel, eventually I'll be able to leave off the footnote :-P Cool, I've left my mark on history. An Internet acronym to my credit; my life is complete. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL

[PHP] Only variable references should be returned by reference

2005-07-19 Thread Marc G. Fournier
Just upgraded to 4.4.0 ... several legacy applications that we have installed now break with the above error message ... specifically, older installs of Horde, but I've seen reports of other apps ... Without reverting back to 4.3.11, is there a way I can temporarily fix this while working

[PHP] preg_match_all question

2005-07-19 Thread Chris Bruce
Hello, I am using the following to do link replacing: preg_match_all(/\s*a\s+[^]*href\s*=\s*[\']?([^\' ]+)[\' ]/isU,$file[$x],$matches); It works great for all but 'https' links. I am not that versed in regular expressions. Would anyone know what I need to put in there so that it will

[PHP] Can PHP Talk directly to Oracle w/o Using Listener

2005-07-19 Thread Chuck Carson
Does PHP have the ability to talk directly to a local oracle database w/o the need for a listener? Thx, CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Solaris 9/Oracle 10g Compile Time Problems

2005-07-19 Thread Chuck Carson
How do you build php 5.0.4 with support for oracle 10.2 on Solaris 9? I am getting the following compile time error? snip z -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket -lnsl -lnsl -lsocket -lgen -ldl -lclntsh -lxml2 -lz -liconv -lm -lsocket -lnsl -lxml2 -lz -liconv -lm -lsocket

RE: [PHP] Can PHP Talk directly to Oracle w/o Using Listener

2005-07-19 Thread Jay Blanchard
[snip] Does PHP have the ability to talk directly to a local oracle database w/o the need for a listener? [/snip] Yes. http://us2.php.net/oracle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ok, why is this happening...

2005-07-19 Thread Chris Boget
Consider the following test script: script language=php set_time_limit( 0 ); echo 'html'; echo 'headtitleTest Rounding Net Premium/title/head'; echo 'body'; echo 'Running test...br'; flush(); echo 'table'; echo 'tr'; echo 'tdOriginal Net/td'; echo 'tdCommission %/td';

[PHP] String with front slashes.....

2005-07-19 Thread Jay Blanchard
I have the potential for strings where the string will contain a front slash; index_Foo_Communications_c/o_Bar_Enterprises_20050718 I want to use the string to name a text file index_Foo_Communications_c/o_Bar_Enterprises_20050718.txt but it always fails to open the file because of the front

Re: [PHP] String with front slashes.....

2005-07-19 Thread John Nichel
Jay Blanchard wrote: I have the potential for strings where the string will contain a front slash; index_Foo_Communications_c/o_Bar_Enterprises_20050718 I want to use the string to name a text file index_Foo_Communications_c/o_Bar_Enterprises_20050718.txt but it always fails to open the file

RE: [PHP] String with front slashes.....

2005-07-19 Thread Jay Blanchard
[snip] I'd say it would be best to keep that slash out of the filename. Do a regex on the string before doing anything else preg_replace ( /\//, -, $string ); [/snip] That is what I ultimately told them, Don't do that. Of course they looked at me like I was a space alien (which I am today,

Re: [PHP] Ok, why is this happening...

2005-07-19 Thread John Nichel
Chris Boget wrote: snip echo if( $originalNet != $calculatedNet ) = . ( (int)$originalNet !== (int)$calculatedNet ) . br\n; /snip Change this to echo out what you're comparing... echo if( . (int)$originalNet . != . (int)$calculatedNet . ) = . ( (int)$originalNet !== (int)$calculatedNet ) .

[PHP] My Project

2005-07-19 Thread George B
Hey guys! This is gona be one of my last questions (hopefully) But here I will include all the info about my new project. It is going to be like a RPG Game written in PHP. There is going to be a store where you could buy weapons etc... The thing I want to ask you guys is this. Lets say There is

Re: [PHP] String with front slashes.....

2005-07-19 Thread John Nichel
Jay Blanchard wrote: snip BTW, my daughter got her learner's permit today! Damn, you're old. ;) I only have a 5yoso that must mean I'm still in my 20's, right? Right? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] My Project

2005-07-19 Thread Shaw, Chris - Accenture
Taxi for one.. -Original Message- From: George B [mailto:[EMAIL PROTECTED] Sent: 19 July 2005 17:39 To: php-general@lists.php.net Subject: [PHP] My Project Hey guys! This is gona be one of my last questions (hopefully) But here I will include all the info about my new project. It is

RE: [PHP] My Project

2005-07-19 Thread Jay Blanchard
[snip] Hey guys! This is gona be one of my last questions (hopefully) But here I will include all the info about my new project. It is going to be like a RPG Game written in PHP. There is going to be a store where you could buy weapons etc... The thing I want to ask you guys is this. Lets say

Re: [PHP] My Project

2005-07-19 Thread Paul Waring
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote: And I have 100 points. How would I make it so when I click BUY!! My money automaticaly subtracts from 100 to 90. How do I do that? Where is your money being stored? In a database? A text file? A cookie? Do you want the buy link to work

Re: [PHP] My Project

2005-07-19 Thread George B
Shaw, Chris - Accenture wrote: Taxi for one.. -Original Message- From: George B [mailto:[EMAIL PROTECTED] Sent: 19 July 2005 17:39 To: php-general@lists.php.net Subject: [PHP] My Project Hey guys! This is gona be one of my last questions (hopefully) But here I will include all the

Re: [PHP] Ok, why is this happening...

2005-07-19 Thread Chris Boget
Chris Boget wrote: snip echo if( $originalNet != $calculatedNet ) = . ( (int)$originalNet !== (int)$calculatedNet ) . br\n; /snip Change this to echo out what you're comparing... echo if( . (int)$originalNet . != . (int)$calculatedNet . ) = . ( (int)$originalNet !== (int)$calculatedNet

RE: [PHP] String with front slashes.....O T

2005-07-19 Thread Jay Blanchard
[snip] BTW, my daughter got her learner's permit today! Damn, you're old. ;) [/snip] You sure you want to say that today? I started late too, most of my high school friends had their children starting in their 20's ...I was into my 30's. She is my only child though. [snip] I only have a

Re: [PHP] My Project

2005-07-19 Thread George B
Paul Waring wrote: On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote: And I have 100 points. How would I make it so when I click BUY!! My money automaticaly subtracts from 100 to 90. How do I do that? Where is your money being stored? In a database? A text file? A cookie? Do you want

Re: [PHP] My Project

2005-07-19 Thread Mikey
George B wrote: Paul Waring wrote: On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote: And I have 100 points. How would I make it so when I click BUY!! My money automaticaly subtracts from 100 to 90. How do I do that? Where is your money being stored? In a database? A text file? A

RE: [PHP] My Project

2005-07-19 Thread André Medeiros
On Tue, 2005-07-19 at 17:46 +0100, Shaw, Chris - Accenture wrote: Taxi for one.. -Original Message- From: George B [mailto:[EMAIL PROTECTED] Sent: 19 July 2005 17:39 To: php-general@lists.php.net Subject: [PHP] My Project Hey guys! This is gona be one of my last questions

Re: [PHP] My Project

2005-07-19 Thread Paul Waring
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote: My money is being stored in a database. And I want everythign to be in PHP, no java script. And the BUY!! Button is a input button from a form. :) Well in that case you probably want something like this (after you've checked to see

Re: [PHP] My Project

2005-07-19 Thread André Medeiros
On Tue, 2005-07-19 at 17:57 +0100, Mikey wrote: George B wrote: Paul Waring wrote: On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote: And I have 100 points. How would I make it so when I click BUY!! My money automaticaly subtracts from 100 to 90. How do I do that?

[PHP] getting file size before upload

2005-07-19 Thread Merlin
Hi there, I know it is a often asked question, but after googling for about 2hours and trying out some wired examples I am still not any closer to a solution. So I was hoping to find expert advice here. I want to save the user the hastle of uploading a 2MB file and waiting for a long time

RE: [PHP] getting file size before upload

2005-07-19 Thread Jay Blanchard
[snip] I know it is a often asked question, but after googling for about 2hours and trying out some wired examples I am still not any closer to a solution. So I was hoping to find expert advice here. I want to save the user the hastle of uploading a 2MB file and waiting for a long time for an

Re: [PHP] Ok, why is this happening...

2005-07-19 Thread John Nichel
Chris Boget wrote: Chris Boget wrote: snip echo if( $originalNet != $calculatedNet ) = . ( (int)$originalNet !== (int)$calculatedNet ) . br\n; /snip Change this to echo out what you're comparing... echo if( . (int)$originalNet . != . (int)$calculatedNet . ) = . ( (int)$originalNet !==

RE: [PHP] My Project

2005-07-19 Thread Jay Blanchard
[snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` = (`myMoney`-10) WHERE `myCharacter` = `characterName`

Re: [PHP] My Project

2005-07-19 Thread George B
Paul Waring wrote: On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote: My money is being stored in a database. And I want everythign to be in PHP, no java script. And the BUY!! Button is a input button from a form. :) Well in that case you probably want something like this (after

Re: [PHP] My Project

2005-07-19 Thread Greg Donald
On 7/19/05, Mikey [EMAIL PROTECTED] wrote: $money = $money - 10; Make sure you protect it against multiple browser sessions. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] ARG, call to undefined function, same problem I had on SuSE

2005-07-19 Thread Chuck Carson
Okay, just built php 5.0.4 on solaris 9 and added mysql and oracle support (using Oracle 10.2.0.1). phpinfo() shows that oracle support is enabled, however, a simple call to ora_logon doesnt work: Fatal error: Call to undefined function ora_logon() in /usr/local/apache2/htdocs/oratest.php on line

[PHP] submission PHP code : MYSQL command lines translation

2005-07-19 Thread Alessandro Rosa
Dear All subscribers, my intention, through this e-mail, is to submit to your attentions one PHP class devoted to translate input native language commands for database into MYSQL commands lines. Download the code from:

Re: [PHP] getting file size before upload

2005-07-19 Thread Matthew Weier O'Phinney
* Jay Blanchard [EMAIL PROTECTED]: [snip] I know it is a often asked question, but after googling for about 2hours and trying out some wired examples I am still not any closer to a solution. So I was hoping to find expert advice here. I want to save the user the hastle of uploading a 2MB

Re: [PHP] ARG, call to undefined function, same problem I had on SuSE

2005-07-19 Thread Chris
I've never used the Oracle functions before, but the ora_* functions are different than the oci_* functions. The ./configure added the oci_* not the ora_*. Just looking in from the outside it seems that you need the oci_* , so try it wiith those? Chris Chuck Carson wrote: Okay, just

[PHP] Translating english into amglish

2005-07-19 Thread Murray @ PlanetThoughtful
Hi All, I'm based in Australia but my blog is predominantly read by Americans. I'm wondering if anyone knows of a class that will translate Australian / UK / Canadian / Whathaveyou English spellings into their American English equivalents? In other words, a class that will take a string

[PHP] submission PHP code : MYSQL command lines translation

2005-07-19 Thread Alessandro Rosa
Dear All subscribers, my intention, through this e-mail, is to submit to your attentions one PHP class devoted to translate input native language commands for database into MYSQL commands lines. The goal of this class is to provide a comfortable code interface to let programmers implement

Re: [PHP] Ok, why is this happening...

2005-07-19 Thread Andy Pieters
Hi I admit not gone trough all of your code, but mostly this happens when mixing the string concatenation operator (.) with the addition (+) or substraction (-) operator. HTH With kind regards Andy On Tuesday 19 July 2005 19:26, John Nichel wrote: Chris Boget wrote: Chris Boget wrote:

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Jason Wong
On Tuesday 19 July 2005 23:17, Marc G. Fournier wrote: Just upgraded to 4.4.0 ... several legacy applications that we have installed now break with the above error message ... specifically, older installs of Horde, but I've seen reports of other apps ... Without reverting back to 4.3.11, is

Re: [PHP] MySQL password file

2005-07-19 Thread Jason Wong
On Monday 18 July 2005 18:53, Lawrence Kennon wrote: In my current hosting situation I don't have the ability to store my file that contains MySQL userids/passwords in a subdirectory that is not under the server root. In order to protect it from being included from a foreign host I thought up

[PHP] What is this?

2005-07-19 Thread George B
How is this possibly not working? $money = $_GET ['money']; $money = $money -3 echo $money; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What is this?

2005-07-19 Thread George B
George B wrote: How is this possibly not working? $money = $_GET ['money']; $money = $money -3 echo $money; oops nvm i forgot the ; on like 2 :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My Project

2005-07-19 Thread Marek Kilimajer
Paul Waring wrote: On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote: My money is being stored in a database. And I want everythign to be in PHP, no java script. And the BUY!! Button is a input button from a form. :) Well in that case you probably want something like this (after

[PHP] still some problems with contact form

2005-07-19 Thread Bruce Gilbert
Hello, on my web site contact form: http://www.inspired-evolution.com/Contact.php I am still having a few problems with the return results after filling out the form. Basically I am wanted to return an error msg. when all of the required fields are not filled out (those with a red *), and an

[PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Hi, I'm trying to code a form that will call itself. The first time it is called (by a link), it should display the empty form. If it was called by a submit to itself, it will validate and then process or re-display the form if it didn't pass validation. In Programing PHP I found a

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread eoghan
On 20 Jul 2005, at 02:01, Linda H wrote: But when execute the code above I get an error: Notice: Undefined index: fahrenheit in C:\Program Files\Apache Group\Apache2\htdocs \. Where is fahrenheit? change the input name... Eoghan -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Linda H
Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Mikey
Linda H wrote: Where is fahrenheit? change the input name... fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; Linda Have you checked that the name is spelt correctly in your HTML

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread eoghan
On 20 Jul 2005, at 02:22, Linda H wrote: fahreheit is here: ? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $ The error was on the line: $fahr = $_GET['fahrenheit']; try: input name=fahrenheit type=text value=?php echo $fahr; ? / -- PHP General Mailing List

[PHP] PHP is occasionally seg faulting

2005-07-19 Thread Chuck Carson
Im running php 5.0.4 with oracle 10g on Solaris 9 and apache 2.0.54. (I built with --with-oci8 so I am using the OCI stuff) I have a simple test page that does select username from dba_users and merely prints each username to the browser. It will work 1 time or sometimes 2 but then subsequent

Re: [PHP] My Project

2005-07-19 Thread George B
Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` = (`myMoney`-10) WHERE

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Marc G. Fournier
yOn Wed, 20 Jul 2005, Jason Wong wrote: On Tuesday 19 July 2005 23:17, Marc G. Fournier wrote: Just upgraded to 4.4.0 ... several legacy applications that we have installed now break with the above error message ... specifically, older installs of Horde, but I've seen reports of other apps ...

Re: [PHP] My Project

2005-07-19 Thread Mikey
George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =

[PHP] Mail Function

2005-07-19 Thread Cabbar Duzayak
Hi, I have a web site that is going to have around total of 10-20 thousand unique users, about 1000 unique hits per day on shared hosting. I have been using PHP's internal mail mechanism with the local smtp server on my hosting company, but it is more like a hit-and-miss kind of thing. And,

Re: [PHP] ARG, call to undefined function, same problem I had on SuSE

2005-07-19 Thread Chris
You didn't send the questionto the list... I have no idea. Chris Chuck Carson wrote: Using ocilogon, I get this error: Warning: ocilogon() [function.ocilogon]: _oci_open_server: Error while trying to retrieve text for error ORA-12154 in /usr/local/apache2/htdocs/oratest.php on line 2 Can

Re: [PHP] My Project

2005-07-19 Thread Matt Darby
George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` =

Re: [PHP] My Project

2005-07-19 Thread Jochem Maas
Matt Darby wrote: George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query instead...once. $sqlUpdate = UPDATE `myDatabase`.`myTable` SET

Re: [PHP] still some problems with contact form

2005-07-19 Thread James
This is what you have done if(something happens) { print error; } print thanks for sending the form! So basically you are printing the error and then thanking them. You need to include an ELSE bracket. Like so.. if(this error || that error || some other error) { print error; } else {

Re: [PHP] My Project

2005-07-19 Thread Robert Cummings
On Tue, 2005-07-19 at 21:46, Jochem Maas wrote: Matt Darby wrote: George B wrote: Jay Blanchard wrote: [snip] $money -= 10; saves some chars ;) [/snip] This actually requires two trips to the database, once to get $money and once to update $money. Do it in the query

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Jason Wong
On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote: Which is? If its: Yep. ; at function call time. This method is deprecated and is likely to be ; unsupported in future versions of PHP/Zend. The encouraged method of ; specifying which arguments should be passed by reference is in

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Marc G. Fournier
On Wed, 20 Jul 2005, Jason Wong wrote: On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote: Which is? If its: Yep. ; at function call time. This method is deprecated and is likely to be ; unsupported in future versions of PHP/Zend. The encouraged method of ; specifying which

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Robert Cummings
On Tue, 2005-07-19 at 22:10, Jason Wong wrote: On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote: Which is? If its: Yep. ; at function call time. This method is deprecated and is likely to be ; unsupported in future versions of PHP/Zend. The encouraged method of ;

[PHP] Re: still some problems with contact form

2005-07-19 Thread Bruce Gilbert
thanks, makes some sense. so now where I have echo, I should have print? or just leave as echo and add the else and ||? Could you provide some sample code based on the code I posted previously by chance?? being new to PHP I am sure I will run into errors for a few days, as is... that would