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

2005-07-20 Thread Rasmus Lerdorf
Robert Cummings wrote: 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

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

2005-07-20 Thread Nadim Attari
Hello, I've changed the codes. Please run this one to view the results. The notable change is: $calculatedGross = $originalNet * (1.000 + ($commissionPct * 0.010)); Regards, Nadim Attari Alienworkers.com ?php set_time_limit( 0 ); echo 'html'; echo ' headtitleTest Rounding Net

[PHP] checking for internet connection

2005-07-20 Thread Steven Sher
Hi I am looking for a simple way to check if the server is connected to the Internet, they use a dialup to get Internet connection, and I need to email reports out, but want to check to see if the user remembered to connect to the Internet first. If anybody has a nice script, or just a

[PHP] checking for internet connection

2005-07-20 Thread Steven
Hi I am looking for a simple way to check if the server is connected to the Internet, they use a dialup to get Internet connection, and I need to email reports out, but want to check to see if the user remembered to connect to the Internet first. If anybody has a nice script, or just a

Re: [PHP] Date function and MySQL

2005-07-20 Thread kalinga
this seems pretty interesting, i'm tring to write a code in php to get those two outputs, but bit confused in counting weeks. could somebody clear me.. what is the first *date* of the first week of year 2005? is it saturday jan 1st 2005 (assuming first week starts from jan 1 of any year) or is

[PHP] Re: still some problems with contact form

2005-07-20 Thread Mark Rees
An alternative (and more user-friendly) approach is to have the form's action as itself (i.e. the form on contact.php submits to contact.php). You can then identify which fields are incomplete and highlight them in the form. This will make it easier for users to see what they have done wrong and

Re: [PHP] checking for internet connection

2005-07-20 Thread James
Assuming they connect to check their email every now and then, you do realize people will still receive your email regardless of whether their connection is up or not? The emails reside on the email server until the user retrieves them. - Original Message - From: Steven [EMAIL

Re: [PHP] problems with self referential sticky forms

2005-07-20 Thread Mark Rees
eoghan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

[PHP] Re: checking for internet connection

2005-07-20 Thread Mark Rees
Steven [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I am looking for a simple way to check if the server is connected to the Internet, they use a dialup to get Internet connection, and I need to email reports out, but want to check to see if the user remembered to connect to

[PHP] Garbage in odbc_connect error

2005-07-20 Thread Vandana Ponnuru
Hi all, I have PHP-4.3.10 and Apache-2.0 running on a Redhat 9 machine. I am connecting to DB2 using the odbc API. I have different applications running connecting to different databases and the applications were all running perfectly fine. But now, odbc_connect fails with some garbage

Re: [PHP] Date function and MySQL

2005-07-20 Thread kalinga
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 obtain this in PHP

[PHP] MYSQL translator

2005-07-20 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 forms

RE: [PHP] My Project

2005-07-20 Thread Jay Blanchard
[snip] Hey, Look I made a new database just for this money testing stuff. This is the table: CREATE TABLE `money` ( `money` varchar(255) NOT NULL default '' ) TYPE=MyISAM; Now, I use this code $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` = (`myMoney`-10) WHERE

Re: [PHP] My Project

2005-07-20 Thread Joseph
Jay Blanchard wrote: [snip] Hey, Look I made a new database just for this money testing stuff. This is the table: CREATE TABLE `money` ( `money` varchar(255) NOT NULL default '' ) TYPE=MyISAM; Now, I use this code $sqlUpdate = UPDATE `myDatabase`.`myTable` SET `myMoney` = (`myMoney`-10)

RE: [PHP] My Project

2005-07-20 Thread Jim Moseby
Lots of extra characters in that one... try this: $q=mysql_query(update myTable set myMoney=(myMoney-10) where myCharacter='characterName'); if(!$q){echo mysql_error();} so wasteful :-) $q=mysql_query(update u set m=(m-10) where c='$c');if(!$q)die(mysql_error()); Still

Re: [PHP] My Project

2005-07-20 Thread John Nichel
Jay Blanchard wrote: snip been nice (because we usually get chided for our terseness). /snip I noticed that Jason appears to be back...the kid gloves will be off now. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

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

2005-07-20 Thread Robert Cummings
On Wed, 2005-07-20 at 02:42, Rasmus Lerdorf wrote: Robert Cummings wrote: [-- snippity --] You're only relief is to tone down the error reporting level (Which will knock out other notices during development but will be great for a production server), or do as I did and install a custom

Re: [PHP] My Project

2005-07-20 Thread Matt Darby
It *is* a great book (I cut my teeth with it as well): PHP and MySQL Development (Welling and Thomson) http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846 Read it, learn it, live it. Matt Darby Jay Blanchard

Re: [PHP] My Project

2005-07-20 Thread Edward Vermillion
Matt Darby wrote: It *is* a great book (I cut my teeth with it as well): PHP and MySQL Development (Welling and Thomson) http://www.amazon.com/exec/obidos/tg/detail/-/0672326728/qid=1121869940/sr=8-1/ref=pd_bbs_1/002-5827183-4477639?v=glances=booksn=507846 Read it, learn it, live it. Matt

RE: [PHP] My Project

2005-07-20 Thread Shaw, Chris - Accenture
snip Honestly, the best book I read when I was starting out, and one I've been using ever since, is the manual. I actually spent $ on a very good php book but I think I've only cracked the cover on it once or twice in two years. Way to go manual guys! :D /snip I totally agree, I have only used

[PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread Chuck Carson
Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and using apache 2.0.54? I have looked at every 10 times over. I have built php with oracle support probably 100 times on 5 different platforms and never had as many issues as I have had so far with this system.

Re: [PHP] Re: Tracking a mobile phone

2005-07-20 Thread Marcus Bointon
On 18 Jul 2005, at 20:56, Sebastian wrote: The phone would have to have GPS capabilities.. Not true. The network knows what cell the phone is in(and cells are pretty small in cities), and it knows where the cell is. This is the mechanism that's used for location dependent services

Re: [PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread Mikey
Chuck Carson wrote: Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and using apache 2.0.54? I have looked at every 10 times over. I have built php with oracle support probably 100 times on 5 different platforms and never had as many issues as I have had so far

Re: [PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread André Medeiros
On Wed, 2005-07-20 at 10:21 -0500, Chuck Carson wrote: Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and using apache 2.0.54? I have looked at every 10 times over. I have built php with oracle support probably 100 times on 5 different platforms and never had

[PHP] PHP Build Issues on Soalris 9

2005-07-20 Thread Chuck Carson
Okay, something I just noticed. (PHP builds fine, including make test) I see this after running configure: Generating files updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating scripts/php-config creating

Re: [PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread Chuck Carson
Yea, there is nothing talking about my eact configuration. (mainly on Solaris) I can get this config working on SLES 9 and Red Hat w/o problems and currently have it running on a dozen systems or so. I need it on Solaris 9... -CC On 7/20/05, Mikey [EMAIL PROTECTED] wrote: Chuck Carson wrote:

[PHP] Installing OLE/Spreadsheet Excel Writer Query

2005-07-20 Thread kevin . o'brien
Hi, I am working on Windows2003 Server. I tried unsuccessfully to install the OLE/Spreadsheet package from the command line. I went to www.pear.net and downloaded the packages. However, I was only able to download as .tgz files. Where should these be located? Using PHP4.4 Please could you tell

Re: [PHP] PHP Build Issues on Soalris 9

2005-07-20 Thread Jochem Maas
Chuck Carson wrote: Okay, something I just noticed. (PHP builds fine, including make test) I see this after running configure: Generating files updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating

Re: [PHP] Installing OLE/Spreadsheet Excel Writer Query

2005-07-20 Thread Jochem Maas
kevin.o'[EMAIL PROTECTED] wrote: Hi, I am working on Windows2003 Server. I tried unsuccessfully to install the OLE/Spreadsheet package from the command line. I went to www.pear.net and downloaded the packages. However, I was only able to download as .tgz files. Where should these be located?

Re: [PHP] PHP Build Issues on Soalris 9

2005-07-20 Thread John Nichel
Chuck Carson wrote: Okay, something I just noticed. (PHP builds fine, including make test) I see this after running configure: Generating files updating cache ./config.cache creating ./config.status creating php5.spec creating main/build-defs.h creating scripts/phpize creating

Re: [PHP] PHP Build Issues on Soalris 9

2005-07-20 Thread Jochem Maas
Chuck Carson wrote: On 7/20/05, Jochem Maas [EMAIL PROTECTED] wrote: Chuck Carson wrote: Okay, something I just noticed. (PHP builds fine, including make test) I see this after running configure: Generating files updating cache ./config.cache creating ./config.status creating php5.spec

[PHP] Combining recordsets

2005-07-20 Thread Mike Smith
I'm wondering if someone has a better solution then I've come up with. I've got a few reports that pull from various tables. Some times I'm not able to put all the tables into a single query/view. So I end up with a master query and 1 (or more) supporting queries. I'm using MSSQL

RE: [PHP] Combining recordsets

2005-07-20 Thread Shaw, Chris - Accenture
Mike, I recommend redesigning your query, the database can pull back the records you want far quicker than any frontend combining/processing, since that's what T-SQL and relational database were designed for. I might be able to help you with the SQL, but I am a little rusty, not really used it

[PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread babu
Hi all, I am using header method to redirect to a certain page.my first question is 1.Is there any other alternative to this method. 2.I am getting the error by using this method. the error is Cannot modify header information - headers already sent by. i have seen the php documentation for

Re: [PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread Cafer Simsek
Hi, You may try to run your codes with CLI, this provides to you that the see the some errors if have. And also you have posibility strace usage. Best Regards. -Cafer Chuck Carson [EMAIL PROTECTED] writes: Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Chris W. Parker
babu mailto:[EMAIL PROTECTED] on Wednesday, July 20, 2005 10:15 AM said: 1.Is there any other alternative to this method. Javascript or an html redirect. 2.I am getting the error by using this method. the error is Cannot modify header information - headers already sent by. i have seen

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread babu
Hi parker, can you please tell me how to use java script or html redirect, i mean a sample. thanks Chris W. Parker [EMAIL PROTECTED] wrote: babu on Wednesday, July 20, 2005 10:15 AM said: 1.Is there any other alternative to this method. Javascript or an html redirect. 2.I am getting the

Re: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Mikey
babu wrote: Hi parker, can you please tell me how to use java script or html redirect, i mean a sample. thanks Chris W. Parker [EMAIL PROTECTED] wrote: babu on Wednesday, July 20, 2005 10:15 AM said: 1.Is there any other alternative to this method. Javascript or an html

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Chris W. Parker
babu mailto:[EMAIL PROTECTED] on Wednesday, July 20, 2005 10:33 AM said: Hi parker, can you please tell me how to use java script or html redirect, i mean a sample. I must be in a good mood today. :) html redirect (more accurately called meta refresh):

[PHP] Content Header

2005-07-20 Thread Christopher J. Umina
Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the

[PHP] Re: Content Header

2005-07-20 Thread Matthew Weier O'Phinney
* Christopher J. Umina [EMAIL PROTECTED]: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user

Re: [PHP] Content Header

2005-07-20 Thread Cafer Simsek
Hi, You may try that; header(Content-Disposition: attachment; filename=\. $filename .\); Best Regards -Cafer On 7/20/05, Christopher J. Umina [EMAIL PROTECTED] wrote: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly,

Re: [PHP] Content Header

2005-07-20 Thread Cafer Simsek
Sorry it was header(Content-Disposition: inline; filename=\. $filename .\); -Cafer On 7/20/05, Cafer Simsek [EMAIL PROTECTED] wrote: Hi, You may try that; header(Content-Disposition: attachment; filename=\. $filename .\); Best Regards -Cafer On 7/20/05, Christopher J. Umina

Re: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread babu
Thanks for the help mike and parker, I have used ob_start and ob_end_flush methods, and its working fine. i got good idea of redirecting now. Mikey [EMAIL PROTECTED] wrote: babu wrote: Hi parker, can you please tell me how to use java script or html redirect, i mean a sample. thanks

[PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a dropdown menu. the user selects the options... this form has a action to file2.php file2.php--- i get the values of the form by

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

2005-07-20 Thread Ethilien
That last line always causes me problems, I think it is probably a difference in versions of mysql. Just change the last line to: ); without any of the text in their. It doesn't really do much anyway. Ross wrote: Hi all, I am trying to create a table on the remote server but it never seems

[PHP] Re: preg_match_all question

2005-07-20 Thread Ethilien
I don't see anything in this regex that would prevent https from being matched, since you don't specify the pattern of the actual url at all. What is an example of a link that it will match? Chris Bruce wrote: Hello, I am using the following to do link replacing:

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Mikey
babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a dropdown menu. the user selects the options... this form has a action to file2.php file2.php--- i get the values of

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

2005-07-20 Thread Mikey
Ross wrote: 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,

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
It will become a big mess up for me if i combine all the files as they are large files. Matt Darby [EMAIL PROTECTED] wrote: babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: It will become a big mess up for me if i combine all the files as they are large files. Matt Darby [EMAIL PROTECTED] wrote: babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example:

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
does session.auto_start should be set to 1 for sessions to work. Mikey [EMAIL PROTECTED] wrote:babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a dropdown menu. the user

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: does session.auto_start should be set to 1 for sessions to work. Mikey [EMAIL PROTECTED] wrote:babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a

[PHP] Delay in a mail item.

2005-07-20 Thread SMTP retry
One of your mail items is currently undeliverable at this site, and is on a queue for retransmission. A retransmission attempt will occur periodically for the next 4 days. The usual reason is that the host that we tried to send your mail to is inaccessible via the internet (presumably

[PHP] From float to hour and minutes

2005-07-20 Thread Miguel Guirao
Hi!! I'm calculating the amount of time that an electric plant can operate with a certain amount of gas, let's say: A plant can work an hour with 10 galons, How long does it will work with 300 galons? hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!) Then, I have the

[PHP] adding ftp functionality into php

2005-07-20 Thread Tom Cruickshank
Hello, My apologizes in advance if this is the wrong mailing list. I have a php module in apache which is missing ftp functionality (--enable-ftp was not used as an argument on compile time). However, recompiling php at this time does not give me other options I am looking for. I would like

Re: [PHP] From float to hour and minutes

2005-07-20 Thread Philip Hallstrom
I'm calculating the amount of time that an electric plant can operate with a certain amount of gas, let's say: A plant can work an hour with 10 galons, How long does it will work with 300 galons? hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!) Then, I have the time the

[PHP] gloabl reference behavior question?

2005-07-20 Thread Surendra Singhi
Hello, (1) When I try this code: ?php $var_global = stuff; function f1() { global $var_global; $var_local = array(1,2); $var_global = $var_local; } f1(); print_r($var_global); ? I get the output: stuff where as I was expecting junk value or null. My

[PHP] PHP and MySQL and resouce limits

2005-07-20 Thread John Hinton
I don't get it... I have been upping my memory limit for PHP. 32megs now... and am making calls to a database on a different server. I see the loads run up on the other server as it cruches the numbers.. and PHP is in the process of creating a single little page with about 40 numbers on it,

Re: [PHP] PHP Build Issues on Soalris 9

2005-07-20 Thread Jochem Maas
++ | *** ATTENTION Chuck Carson *** | || I'm not able to help really I am configuring with this:

Re: [PHP] PHP and MySQL and resouce limits

2005-07-20 Thread Matt Darby
John Hinton wrote: I don't get it... I have been upping my memory limit for PHP. 32megs now... and am making calls to a database on a different server. I see the loads run up on the other server as it cruches the numbers.. and PHP is in the process of creating a single little page with

[PHP] Attaching a pdf in email (no body text displays)

2005-07-20 Thread Ade Smith
I am attaching a PDF document to an email, this part works great, however to get this to work it prevents the text in the body of the message to be displayed, what am I doing wrong? Here is the code $filename = confirmation.pdf; if(!($fp = fopen($filename, r))): $error = Can't

[PHP] pspell.so causes server to crash ...

2005-07-20 Thread Marc G. Fournier
Was having this problem with 4.3.11, figured I'd upgrade to 4.4.0 first, to make sure it wasn't fixed already ... but, if I have the pspell.so extension enabled, and do a SIGHUP of the server, the apache process (apache 1) crashes ... I've currently got the following aspell installed from

[PHP] objects destroyed in same order as created?

2005-07-20 Thread Jasper Bryant-Greene
Hi all I am currently working on a PHP 5 application. For the sake of simplicity, I'll only describe 3 classes here, as that is all that is required for you to see my problem. I have a DB class that interacts with the database, a Session class that controls the session with the user, and a

Re: [PHP] Attaching a pdf in email (no body text displays)

2005-07-20 Thread Chris
I've attached some comments inline. Ade Smith wrote: I am attaching a PDF document to an email, this part works great, however to get this to work it prevents the text in the body of the message to be displayed, what am I doing wrong? Here is the code $filename = confirmation.pdf;

[PHP] AJAX PHP

2005-07-20 Thread balwant singh
Have anybody tried PHP AJAX, may please share your experience. also pls. suggest good link of tutorial on this. With Best Wishes Balwant Singh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php