Re: [PHP] grabbing variable from bottom to top

2003-08-04 Thread Jeff Harris
On Aug 3, 2003, Micah Montoy claimed that: |Anyone know of a way to use a variable that isn't defined until further down |the script at the top. I have a counter and once everything runs through |the script, the count is complete, I need to display this at the top above |the displayed results.

[PHP] FTP accounts

2003-08-04 Thread Binay Agarwal
Hi everybody! can any body suggest me the good resources/snippet for creating and managing FTP accounts. My configuration includes: Redhat : 7.0 Php - 4.0.6 Apache web server Any help would be highly appreciated. Thanks in advance Binay

[PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C.
How do I add a column of numbers generated through a MySQL query without using the SQL SUM() function? I have tried looking through the different documentation. I am probably missing something. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Justin French
Do you mean something like: ? $i = 0; $sql = SELECT a,b,c FROM foo; $res = mysql_query($sql); while($myrow = mysql_fetch_array($res)) { $i++; echo $i.br /; echo $myrow['a'] .br /; echo $myrow['b'] .br /; echo $myrow['c'] .br /; } ? Justin

[PHP] How to Ask Questions THe Smart Way...

2003-08-04 Thread Ralph Guzman
Here is something some of you on this list may find funny, others may find this useful. This is not spam, this is actually a good manual you should all read: http://catb.org/~esr/faqs/smart-questions.html Good Reading. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C.
Yes. From there I want to add all the 'a' values together using PHP. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 12:40 AM To: Ben C. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Addin a column of numbers not using MySQL Do you mean

[PHP] Qmail + PHP

2003-08-04 Thread Haseeb
Hello, anyone here who created new user for Qmail with PHP? Haseeb IncrediMail - Email has finally evolved - Click Here

Re: [PHP] FTP accounts

2003-08-04 Thread Jason Wong
On Monday 04 August 2003 03:29, Binay Agarwal wrote: can any body suggest me the good resources/snippet for creating and managing FTP accounts. My configuration includes: Redhat : 7.0 Php - 4.0.6 Apache web server How you create an FTP account all depends on what ftpserver you're running.

Re: [PHP] Qmail + PHP

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 04:07, Haseeb wrote: anyone here who created new user for Qmail with PHP? Yes. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jason Wong
On Monday 04 August 2003 15:59, Ben C. wrote: Yes. From there I want to add all the 'a' values together using PHP. So do it then. $total = $total + $myrow['a'] // or something as you go through the loop // is just one of the ways to do this -- Jason Wong -

[PHP] Relevant PHP market research

2003-08-04 Thread Alexandru COSTIN
Hi, I've searched the net for various information on PHP usage in the enterprise. I've searched Forrester (http://www.forrester.com/search/1,6260,,00.html?squery=php), Gartner (http://www.gartner.com) and Google(http://www.google.com/search?q=market+research+php) with little results. I know some

Re: [PHP] Qmail + PHP

2003-08-04 Thread Haseeb
i want your help. but as this is OT can we talk some where else. MSN may be? Haseeb ---Original Message--- From: [EMAIL PROTECTED] Date: Monday, August 04, 2003 01:22:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Qmail + PHP On Tuesday 05 August 2003 04:07, Haseeb wrote:

Re: [PHP] Qmail + PHP

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 05:36, Haseeb wrote: i want your help. but as this is OT can we talk some where else. MSN may be? 1) how you add users depends on how you have installed and configured qmail 2) google for php qmail 3) check out omailadmin -- Jason Wong - Gremlins Associates -

Re: [PHP] Qmail + PHP

2003-08-04 Thread Haseeb
i have searched already. can u give me sometime?? Haseeb ---Original Message--- From: [EMAIL PROTECTED] Date: Monday, August 04, 2003 02:54:38 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Qmail + PHP On Tuesday 05 August 2003 05:36, Haseeb wrote: i want your help. but as this

[PHP] Making i18n work on all Unix webservers ?

2003-08-04 Thread Christophe Chisogne
With the following code to translate messages in french, we need to put the mo files in a directory like ./local/xxx/LC_MESSAGE/messages.{mo,po} putenv(LANGUAGE=french); setlocale(LC_ALL, 'fr_BE'); bindtextdomain(messages, ./local); textdomain(messages);

RE: [PHP] Globals

2003-08-04 Thread Ford, Mike [LSS]
-Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: 01 August 2003 20:18 I'm curious if someone could explain to me why this is occuring: function blah() { //global $GLOBALS; echo 'Globals: pre'; print_r( $GLOBALS ); echo '/pre'; } As it is

RE: [PHP] Pushing array onto array

2003-08-04 Thread Ford, Mike [LSS]
-Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: 02 August 2003 23:07 * Thus wrote Andrew Brampton ([EMAIL PROTECTED]): Well I just coded up a very small example, and it pushing 1 array into the other... Check out: http://81.102.229.151/push.php and

RE: [PHP] Pushing array onto array

2003-08-04 Thread Ford, Mike [LSS]
-Original Message- From: Hank TT [mailto:[EMAIL PROTECTED] Sent: 03 August 2003 06:03 Well, I might have been more specific about their example, since not everyone has the book. An excerpt below (so I don't need to retype all the names of characters and foul creatures from the

[PHP] Web tools for FTP accounts management

2003-08-04 Thread Binay Agarwal
Hi everybody! can any body suggest me the good resources/snippet for creating and managing FTP accounts through web interface using PHP. My configuration includes: Redhat : 7.0 wu-ftpd (FTP Server) Php - 4.0.6 Apache web server Any help would be highly appreciated. Thanks in advance Binay

Re: [PHP] Qmail + PHP

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 06:00, Haseeb wrote: 1) how you add users depends on how you have installed and configured qmail i have searched already. can u give me sometime?? 1) OK, *how* have you installed and configured qmail? 2) How do you add users right now? If you can't answer those

Re: [PHP] Making i18n work on all Unix webservers ?

2003-08-04 Thread Tom Rogers
Hi, Monday, August 4, 2003, 8:25:18 PM, you wrote: CC With the following code to translate messages in french, CC we need to put the mo files in a directory like CC ./local/xxx/LC_MESSAGE/messages.{mo,po} CC putenv(LANGUAGE=french); CC setlocale(LC_ALL, 'fr_BE'); CC

Re: [PHP] Invalid Characters, XML...

2003-08-04 Thread David Otton
On Sun, 3 Aug 2003 21:51:53 -0400 (EDT), you wrote: Im using PHP to write to XML files, but I am having some problems. A lot of users are cutting and pasting content from text editors like word, which uses odd quotation marks, dashes, etc. which PHP writes to the XML file, and then the XML parser

RE: [PHP] Relevant PHP market research

2003-08-04 Thread Jay Blanchard
[snip] I would appreciate any figures on the web development market - because this is the market for most of us - and knowing the market could only be a good thing. I think we should consider this key figures: [/snip] {IMHO} I understand why your focus would be on the web development market, but

Re: [PHP] Making i18n work on all Unix webservers ?

2003-08-04 Thread Christophe Chisogne
Tom Rogers wrote: CC ./local/xxx/LC_MESSAGE/messages.{mo,po} CC setlocale(LC_ALL, 'fr_BE'); CC bindtextdomain(messages, ./local); CC textdomain(messages); CC How can I guess which xxx to use, for my code to work on CC any webserver ? Try using $dir_name =

Re: [PHP] Relevant PHP market research

2003-08-04 Thread Alexandru COSTIN
Hi, [snip] I would appreciate any figures on the web development market - because this is the market for most of us - and knowing the market could only be a good thing. I think we should consider this key figures: [/snip] {IMHO} I understand why your focus would be on the web development

Re: [PHP] Qmail + PHP

2003-08-04 Thread Haseeb
i have not installed qmail myself my linux admin compiled it. as for how i am managing new user registrations right now . using plesk control panel Haseeb ---Original Message--- From: [EMAIL PROTECTED] Date: Monday, August 04, 2003 04:12:01 PM To: [EMAIL PROTECTED] Subject: Re:

[PHP] site error

2003-08-04 Thread Nick
Site www.Lancoalition.com On my site im receiving the following error: Warning: Unknown(): open_basedir restriction in effect. File(/home/lancoali/public_html/nuke/html/index.php) is not within the allowed path(s): (/home/*:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/X11R6/bin) in Unknown on line

RE: [PHP] Invalid Characters, XML...

2003-08-04 Thread Luis Lebron
Here's what I have been using. $trans= array(' = #39;, ' = #39;, = #62;, = #60;, = #38;,- = #45;, ° = #176;, ± = #177;, - = #150;, = #147;, = #148;,... = #8230;,' = #8216;,² =#178;,· = #183; ); $value=strtr($value,$trans); Luis -Original Message- From: David Otton

php-general Digest 4 Aug 2003 13:32:14 -0000 Issue 2216

2003-08-04 Thread php-general-digest-help
php-general Digest 4 Aug 2003 13:32:14 - Issue 2216 Topics (messages 158101 through 158147): Re: mail funciton 158101 by: Igor Konforti PHP / Oracle support (8/9) under Redhat 9 158102 by: Robert Mena 158107 by: Justin French Re: Forking PHP Processes on Unix

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Juan Nin
From: Robert Mena [EMAIL PROTECTED] a) apache It seems that apache + php does not work well under heavy load so I should stick with 1.3.X right ? Any ideas where I can find a rpm package for redhat 9 ? Yes, stick with apache-1.3.x Latest 1.3.x version RPM from Red Hat for RH 7.3 is

[PHP] attach

2003-08-04 Thread Diana Castillo
Hi, Can you tell me how to attach files when using the php mail function? Thanks, Diaan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] attach

2003-08-04 Thread Ryan A
Check the phpclasses site, it has some very good examples also do a search on google.. you can find it at http://google.com :-D Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: Diana Castillo [EMAIL

[PHP] Re: attach

2003-08-04 Thread Greg Beaver
http://pear.php.net/package-info.php?package=Mail_Mime Regards, Greg -- phpDocumentor http://www.phpdoc.org Diana Castillo wrote: Hi, Can you tell me how to attach files when using the php mail function? Thanks, Diaan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] mysql_real_escape_string

2003-08-04 Thread Larry E . Ullman
The following function is from Larry Ullman's PHP and mySQL on page 217 - script 6.8 - in which there is a connection to a mySQL database using PHP. My question is that I'm not sure of the global variable $dbc. Hello Anthony, The mysql_real_escape_string() requires a connection to the

[PHP] A better solution?

2003-08-04 Thread Ryan A
Hi, I have a table called the_slave where i am entering differient types of data and 5 specific types, to get a count of each of the types i used: $tt = SELECT ptype, count(*) FROM the_slave WHERE ptype IN ('1', '2', '3','4','5') and user='.$user.' and no='.$no.' GROUP BY ptype; then to dump

Re[2]: [PHP] Making i18n work on all Unix webservers ?

2003-08-04 Thread Tom Rogers
Hi, Monday, August 4, 2003, 11:04:19 PM, you wrote: CC Thanks. But it looks like it's more complicated. CC setlocale(LC_MESSAGES,'0') CC returns fr_BE, but it seems PHP looks in ./local/fr, CC not in ./local/fr_BE when searching the catalog files, CC at least on one webserver. (using PHP

Re: [PHP] A better solution?

2003-08-04 Thread Marek Kilimajer
Ryan A wrote: Hi, I have a table called the_slave where i am entering differient types of data and 5 specific types, to get a count of each of the types i used: $tt = SELECT ptype, count(*) FROM the_slave WHERE ptype IN ('1', '2', '3','4','5') and user='.$user.' and no='.$no.' GROUP BY ptype;

[PHP] Re: attach

2003-08-04 Thread Manuel Lemos
Hello, On 08/04/2003 10:59 AM, Diana Castillo wrote: Can you tell me how to attach files when using the php mail function? You may want to try this class that lets you compose messages with as many attachments as you want, including in HTML messages. http://www.phpclasses.org/mimemessage --

Re: [PHP] A better solution?

2003-08-04 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): Hi, I have a table called the_slave where i am entering differient types of data and 5 specific types, to get a count of each of the types i used: $tt = SELECT ptype, count(*) FROM the_slave WHERE ptype IN ('1', '2', '3','4','5') and user='.$user.'

[PHP] Functions in Safe Mode

2003-08-04 Thread Jay Fitzgerald
My code: echo number_format(filesize(news/final_1.txt)); The Warning: Warning: filesize() [ http://www.php.net/function.filesize function.filesize]: SAFE MODE Restriction in effect. The script whose uid is 17704 is not allowed to access news/final_1.txt owned by uid 65534 in

Re: [PHP] mysql_real_escape_string

2003-08-04 Thread Anthony Ritter
Larry E . Ullman [EMAIL PROTECTED] wrote in message: The mysql_real_escape_string() requires a connection to the database. The connection identifier is defined in another script so it's brought in using the global statement. Hope that helps, Larry .

[PHP] COM mail merge problem!

2003-08-04 Thread David Richards
Hi, I have a MySQL database which contains customer data. I have written a PHP script to create a CSV file and then import the data into Microsoft excel using COM, which has been saved into C:\TEMP\test.xls. I am now trying to start a mail merge in word with the following code:-

[PHP] COM mail merge problem!

2003-08-04 Thread David Richards
Hi, I have a MySQL database which contains customer data. I have written a PHP script to create a CSV file and then import the data into Microsoft excel using COM, which has been saved into C:\TEMP\test.xls. I am now trying to start a mail merge in word with the following code:-

Re: [PHP] Tracking Users via Cookies?

2003-08-04 Thread Chris Shiflett
--- Jason Bourque [EMAIL PROTECTED] wrote: I have a client that would like to track their visitors if they go to other competitors websites after visiting their own. Is this possible? Technically, yes, but realistically, no. No matter what solution you come up with, it will require a

RE: [PHP] Tracking Users via Cookies? IDEA

2003-08-04 Thread Joe Harman
What if you could read a browser's history file... There has to be a way to do this with something like javascript... Just an idea... Joe -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Sunday, August 03, 2003 9:03 PM To: Jason Bourque Cc: [EMAIL PROTECTED] Subject: Re:

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Jon Drukman
At 06:33 PM 8/3/2003, Robert Mena wrote: a) apache It seems that apache + php does not work well under heavy load so I should stick with 1.3.X right ? i don't know about that. i'm running an extremely high traffic website with apache + php + linux and it's a total champ. we've got 6 compaq

Re: [PHP] Not sure of the best way to handle a problem

2003-08-04 Thread David Smith
Actually it does have to do with php.One of my main questions was also about whether it was best to use the script from the command-line or from the web server itself. The network question had to do with php as well. Whether it would be best to use samba or another source. VNC is a poor idea.

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
I tried the code you provided below but it returned 0. Is there another way I can do it? From: Jason Wong [EMAIL PROTECTED] Date: 2003/08/04 Mon AM 04:25:13 EDT To: [EMAIL PROTECTED] Subject: Re: [PHP] Addin a column of numbers not using MySQL On Monday 04 August 2003 15:59, Ben C.

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
I tried doing as you said and it returned 0. Is there another way to add up the column? From: Jason Wong [EMAIL PROTECTED] Date: 2003/08/04 Mon AM 04:25:13 EDT To: [EMAIL PROTECTED] Subject: Re: [PHP] Addin a column of numbers not using MySQL On Monday 04 August 2003 15:59, Ben C.

[PHP] mod_php 4.3.2 (w/ apache 2.0.40 using apache filters) - problems loading extensions

2003-08-04 Thread Carl P. Corliss
(cross posted from php.install in hopes of increasing my chances of finding help) I've been trying to get php working on our RH8 box using a source rpm. PHP compiles fine however, when reloading apache with the new mod_php, mod_php fails to load any extensions. Yet php-cli and php-cgi load all

RE: [PHP] Tracking Users via Cookies? IDEA

2003-08-04 Thread Adam Alkins
Quoting Joe Harman [EMAIL PROTECTED]: What if you could read a browser's history file... There has to be a way to do this with something like javascript... Just an idea... Joe That would be a major privacy loophole if it were allowed.. -- Adam Alkins http://www.rasadam.com -- PHP

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 01:21, Ben C. wrote: I tried the code you provided below but it returned 0. Is there another way I can do it? Please post your code. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

[PHP] Re: FDF problem with IE - any experts out there?!?

2003-08-04 Thread Richard Lynch
Karsten Dambekalns wrote: Hi! Sorry for the 'longish' post... I am working on a script that generates FDF data and sends it to the browser for display in a PDF file. ... But it works only in Mozilla, MSIE starts Acrobat Reader which then pops up an alert window saying (translated from

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] I tried doing as you said and it returned 0. Is there another way to add up the column? [/snip] $sql = SELECT foo FROM table WHERE you have conditions ; if(!($result = mysql_query($sql, $connection))){ print(MySQL reports: . mysql_error() . \n); exit(); } while($row =

Re: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
CODE Begin- $sql_2 = SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \$id\ ; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_error()); while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE End- What I want to do from here is add up all the 'paid' figures. [/snip] while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; $total = $total + $paid; }

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] $sql_2 = SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \$id\ ; [/snip] Ben I would also check the query with echo$sql_2 \n; You may be surprised that what you get back is not what you intended. -- PHP General Mailing List (http://www.php.net/) To

[PHP] compiling php --with imap

2003-08-04 Thread Merlin
Hi there, I want to upgrade to a newer php version (from 4.2.2 to 4.3.2) In order to do that I picked my old configure command to reproduce it. The old php version was build with imap. Now I have found, that the directory where the file is supposed to be has been removed (I guess I have cleaned

Re: [PHP] Purging old files from directories

2003-08-04 Thread Mike Migurski
I need to write a script that will scan/read a given directory's contents and delete files older than a certain date. Ideally, this will be a script that runs via cron once a week and deletes all files it finds in the directory older than 2 weeks from the current date. I do currently have scripts

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] It still returns '0'. I think we are missing something. Any other ideas? Anyone else have any ideas? [/snip] echo the SELECT statement to make sure that $id is worth something -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] CODE Begin- $sql_2 = SELECT SUM(paidamount) as paid FROM $tb_name WHERE id = \$id\ ; $result_2 = @mysql_query($sql_2,$connection) or die(mysql_error()); while ($row = mysql_fetch_array($result_2)) { $paid = $row['paid']; } CODE

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] I tried the code again and still returns a '0'. It looks like the while() is only looping one record at a time. It does looks like it is add all the records. Do you or anyone have any other suggestions? [/snip] D'oh! *slaps forehead*! It IS getting only one record! Dang! SELECT

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. [/snip] Are you looping through the id's somehow? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] Let me try and explain a little better and easier. What I am trying to do is take a list of values and add them to get. I am getting the values from a database query. Assuming that I had the following: val_1 100.00 val_2 150.00 val_3 200.00 val_4 250.00 val_5 100.00

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Jay Blanchard
[snip] Unsure. How would I do that? [/snip] Ben I think that we have a communications failure. Let's start over...you wish to total a database column using php, correct? Everything that you have been shown so far will do that. Is it possible that there are no query results? If not, then we are

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 04:09:36 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re:

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
I tried the code again and still returns a '0'. It looks like the while() is only looping one record at a time. It does looks like it is add all the records. Do you or anyone have any other suggestions? From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 02:16:22 EDT To: Ben

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Unsure. How would I do that? From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 04:36:15 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL [snip] When I echo the select state the id is the first of many ids

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 04:09:36 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re:

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
When I echo the select state the id is the first of many ids that need to be added together. It is still not summing the total value of the records. From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 04:09:36 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re:

RE: [PHP] Invalid Characters, XML...

2003-08-04 Thread Ivo Pletikosic
I had a similar problem recently, but was not able to work with it in PHP tho. The array for that mapped characters to their entity turned out to be HUGE and it took forever to evaluate long XML files. I ended up killing several birds with one stone by wrapping the html-tidy utility

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Juan Nin
From: Robert Mena [EMAIL PROTECTED] But I'd need to compile php with oracle support. Do you have any experience with this setup ? RH9 + PHP with oracle support ? nope, have only used it with MySQL... the problem is that the php RPM does not have Oracle support compiled in? if it's that, then

[PHP] Regular Expression

2003-08-04 Thread Ralph Guzman
Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I'm using /i to make this case insensitive. I got it working with 1 2, but it's still not matching 3. Any suggestions? if(preg_match(

Re: [PHP] compiling php --with imap

2003-08-04 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): Hi there, I want to upgrade to a newer php version (from 4.2.2 to 4.3.2) In order to do that I picked my old configure command to reproduce it. The old php version was build with imap. Now I have found, that the directory where the file is supposed

Re: [PHP] compiling php --with imap

2003-08-04 Thread Jason Wong
On Tuesday 05 August 2003 02:26, Merlin wrote: I want to upgrade to a newer php version (from 4.2.2 to 4.3.2) In order to do that I picked my old configure command to reproduce it. The old php version was build with imap. Now I have found, that the directory where the file is supposed to be

[PHP] Functions in Safe Mode?

2003-08-04 Thread Jay Fitzgerald
My code: echo number_format(filesize(news/final_1.txt)); The Warning: Warning: filesize() [ http://www.php.net/function.filesize function.filesize]: SAFE MODE Restriction in effect. The script whose uid is 17704 is not allowed to access news/final_1.txt owned by uid 65534 in

RE: [PHP] Regular Expression

2003-08-04 Thread Jennifer Goodie
Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I got it working with 1 2, but it's still not matching 3. Any suggestions? if(preg_match( /p[\.]o\.* +box/i,

Re: [PHP] Regular Expression

2003-08-04 Thread Jon Drukman
At 02:45 PM 8/4/2003, Ralph Guzman wrote: Been working on this one for a while but can't get it working properly. I need a regular expression to match if address is 1. PO Box 2. P.O. Box 3. P.O.Box I'm using /i to make this case insensitive. I got it working with 1 2, but it's still not matching

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Robert Mena
Hi Juan, But I'd need to compile php with oracle support. Do you have any experience with this setup ? RH9 + PHP with oracle support ? Regards. --- Juan Nin [EMAIL PROTECTED] wrote: From: Robert Mena [EMAIL PROTECTED] a) apache It seems that apache + php does not work well under

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Robert Mena
Thanks for the reply. I already use 4.3.1 in my current server. I always compile my version of php since the ones that come with the distro are always too old and usually does not contain support for need features such as mcrpyt or oracle. - rt --- Justin French [EMAIL PROTECTED] wrote: I

[PHP] using exec to run a shell script

2003-08-04 Thread [EMAIL PROTECTED]
Hello. I'm attempting to run the exec function to run a shell script that will restart a service on my Red Hat server. The script says it has failed shutting down and restarting the service everytime I run it from a browser. Any suggestions on why it might be failing? I can send more details if

Re: [PHP] using exec to run a shell script

2003-08-04 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 4 Aug 2003 at 23:14, lines prefixed by '' were originally written by you. Hello. I'm attempting to run the exec function to run a shell script that will restart a service on my Red Hat server. The script says it has failed shutting

[PHP] easier than switch

2003-08-04 Thread skate
okay, so i know there's an easy way to do this, and i've seen it done, sure of it. so please forgive the stupidity of my question, i don't even know where to begin to look in the archives either... i have several forms on one page, they all submit a different variable, i then want to set one

Re: [PHP] easier than switch

2003-08-04 Thread John W. Holmes
skate wrote: okay, so i know there's an easy way to do this, and i've seen it done, sure of it. so please forgive the stupidity of my question, i don't even know where to begin to look in the archives either... i have several forms on one page, they all submit a different variable, i then want to

Re: [PHP] easier than switch

2003-08-04 Thread Chris Shiflett
--- skate [EMAIL PROTECTED] wrote: i have several forms on one page, they all submit a different variable The best solution would be to change this behavior, or at least add a consistent form variable that you plan to receive. ? if(isset($_POST)) { $type = $_POST['news'] ||

[PHP] Re: easier than switch

2003-08-04 Thread Paul Chvostek
On Mon, Aug 04, 2003 at 11:19:42PM +0100, skate wrote: i have several forms on one page, they all submit a different variable, i then want to set one variable depending on that... okay, now i'm confusing myself, lets try explain it with some code... if(isset($_POST)) { $type =

[PHP] Values from forms

2003-08-04 Thread Beauford.2005
Small brain cramp here. I have the following form and having problems retrieving the values from it. FORM ACTION=teams-write.php action=post name=inputs input type=hidden name=count value=? echo $number; ? // $number gets inputted from another form (this works) ? for($i = 1; $i $number + 1;

Re: [PHP] Re: FDF problem with IE - any experts out there?!?

2003-08-04 Thread Chris Shiflett
--- Richard Lynch [EMAIL PROTECTED] wrote: The *REAL* problem you are having is this: This was one of the best and most thorough explanations I have seen of this problem. :-) To add one more suggestion, there is another method that can trick IE into behaving properly, though this method is a

Re: [PHP] Values from forms

2003-08-04 Thread Chris Shiflett
--- Beauford.2005 [EMAIL PROTECTED] wrote: FORM ACTION=teams-write.php action=post name=inputs You misspelled method. :-) Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Functions in Safe Mode?

2003-08-04 Thread Jason Sheets
The problem is the owner of the script must be the owner of the file that you are accessing. If you fix your file ownership for your news directory or change your php script to be the same owner as the news directoryo you will be able to access the files. Look at the chown command,. you will

Re: [PHP] Values from forms

2003-08-04 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 00:05, lines prefixed by '' were originally written by you. $team2, etc. they are there, I just can't figure out how to get the values inputted into my database. In the loop below, what would I put the second values

[PHP] Regular expression question

2003-08-04 Thread Dan Phiffer
So I want to grab the attributes out of an HTML element. The following works, except in the case that the attribute's value includes the character : if (preg_match_all(/tag([^]*)/i, $subject, $matches)) print_r($matches); A $subject of tag attr=\value\ gives: Array ( [0] = Array

[PHP] PHP5 Prototyping

2003-08-04 Thread Andrew Johnstone
Are there any plans to implement prototyping in PHP5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Jay, It still returns '0'. I think we are missing something. Any other ideas? Anyone else have any ideas? Ben From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 03:10:15 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re: [PHP] Addin a column of numbers

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Let me try and explain a little better and easier. What I am trying to do is take a list of values and add them to get. I am getting the values from a database query. Assuming that I had the following: val_1 100.00 val_2 150.00 val_3 200.00 val_4 250.00 val_5 100.00 What

RE: Re: [PHP] Addin a column of numbers not using MySQL

2003-08-04 Thread Ben C .
Jay, No results are returned. It is blank. From: Jay Blanchard [EMAIL PROTECTED] Date: 2003/08/04 Mon PM 04:57:17 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL [snip] Unsure. How would I do that? [/snip] Ben I

RE: [PHP] Values from forms

2003-08-04 Thread Jennifer Goodie
--- Beauford.2005 [EMAIL PROTECTED] wrote: FORM ACTION=teams-write.php action=post name=inputs You misspelled method. :-) Hope that helps. Chris It seems like this exact same problem has been addressed before. http://marc.theaimsgroup.com/?l=php-generalm=105900603231518w=2

RE: [PHP] Values from forms

2003-08-04 Thread Beauford.2005
David, Thanks for the info. The first suggestion doesn't work, and the second may work - but the problem is I need the array to start at '1' - and arrays in general start at 0. Any ideas? TIA -Original Message- From: David Nicholson [mailto:[EMAIL PROTECTED] Sent: August 4, 2003 7:11

[PHP] Re: PHP5 Prototyping

2003-08-04 Thread Greg Beaver
http://www.php.net/zend-engine-2.php Regards, Greg -- phpDocumentor http://www.phpdoc.org Andrew Johnstone wrote: Are there any plans to implement prototyping in PHP5? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Values from forms

2003-08-04 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 5 Aug 2003 at 00:39, lines prefixed by '' were originally written by you. Thanks for the info. The first suggestion doesn't work, What error did you get? and the second may work - but the problem is I need the array to start at '1' -

  1   2   >