[PHP] checking how many records are returned?

2003-08-04 Thread Amanda McComb
Is there a way to check how many records are returned from a query to the database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Extracting Compressed Files

2003-08-04 Thread Curt Zirzow
* Thus wrote Matt Palermo ([EMAIL PROTECTED]): > Does anyone know of easy ways to be able to extract all > files/folders/subfolders from different types of compressed files (.zip, > .tar.gz, etc.)? If anyone could help me out with this, I would really > appreciate it. man unzip man tar man if

[PHP] PHP Fusebox

2003-08-04 Thread Ralph Guzman
I am trying to standardize my development process and have been looking at the different frameworks out there. One of the philosophies I like is that of Fusebox, although originally developed for ColdFusion it is now available for PHP: http://bombusbee.com/ Anybody have any experience working wi

Re: [PHP] Re: CURL

2003-08-04 Thread Jason Sheets
In most cases you can make Curl submit the login form itself, in which case Curl would become logged in. You can use Curl to get both GET and POST requests, the comments in the PHP manual are pretty decent. Jason John Ryan wrote: i was more asking for the actual curl commands to do so, i suppo

Re: [PHP] Regular Expression

2003-08-04 Thread Curt Zirzow
* Thus wrote Ralph Guzman ([EMAIL PROTECTED]): > 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. /p\.?o\.?\s*box/i > > I got i

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

2003-08-04 Thread Curt Zirzow
* Thus wrote Ben C. ([EMAIL PROTECTED]): > I tried doing as you said and it returned 0. Is there another way to add up the > column? Please restart this discussion in a new thread, I have no clue what you are trying to do anymore. Give an brief example of your query and your php code and what y

[PHP] Re: CURL

2003-08-04 Thread Igor Konforti
yeah, there is way to do it! http://www.php.net/manual/en/function.curl-setopt.php On Tue, 5 Aug 2003 01:04:42 +0100, John Ryan <[EMAIL PROTECTED]> wrote: theres this site i want to use to execute a command by visting a url. like http://www.site.com/stuff.php?id=1234&message=hello_world when i v

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

2003-08-04 Thread Jim Lucas
Give an example db layout and/or array layout that you plan on using. Would I be correct in assuming that the array would look something like this? $values['val_1'] = 100.00; $values['val_2'] = 150.00; $values['val_3'] = 200.00; $values['val_4'] = 250.00; $values['val_5'] = 100.00; if this is co

Re: [PHP] Regular expression question

2003-08-04 Thread Dan Phiffer
Actually, this is for a general purpose templating that might use < and > or [ and ] (i.e. [element attribute="value"]), but I suppose the same character entity requirement could be applied to other "boundary characters." Somehow it didn't occur to me. Thanks for the response, -Dan "Jim Lucas" <[

[PHP] CURL

2003-08-04 Thread John Ryan
theres this site i want to use to execute a command by visting a url. like http://www.site.com/stuff.php?id=1234&message=hello_world when i visit this in the browser when im logged into www.site.com, it works as im logged in with cookies or sessions or whatever. but obviosuly i cant be loged in fr

Re: [PHP] Regular expression question

2003-08-04 Thread Jim Lucas
well, first off '>' should not be allowed as a value of an attr="" pair anyways. You should convert it to > or < this will solve that problem. Jim Lucas - Original Message - From: "Dan Phiffer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 04, 2003 4:03 PM Subject: [PH

[PHP] non recursive array on search

2003-08-04 Thread Micah Montoy
I am getting the error message Notice: Uninitialized string offset: 7 in c:\inetpub\wwwroot\webpage10\example\search\dsp_search.php on line 61 What it should be doing is grabbing each word specified in the search box and compare this to the database keywords for each row in the column keywords.

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

[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 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 P

RE: [PHP] Values from forms

2003-08-04 Thread Jennifer Goodie
> --- "Beauford.2005" <[EMAIL PROTECTED]> wrote: > > > > You misspelled method. :-) > > Hope that helps. > > Chris It seems like this exact same problem has been addressed before. http://marc.theaimsgroup.com/?l=php-general&m=105900603231518&w=2 http://marc.theaimsgroup.com/?l=php-general&m=10590

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?

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, 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 colum

[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

[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("/]*)>/i", $subject, $matches)) print_r($matches); A $subject of "" gives: Array ( [0] => Array (

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 se

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 n

Re: [PHP] Values from forms

2003-08-04 Thread Chris Shiflett
--- "Beauford.2005" <[EMAIL PROTECTED]> wrote: > 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/) To unsubscribe, visit: http://www.php.net/unsub

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

[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. // $number gets inputted from another form (this works) input type=text name="team" SIZE="10"> This is teams-write.php: The problem I am having is getting the values inputted in th

[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 = $_

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'] || $_POST['

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

[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 va

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 > shutt

[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 nee

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

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 wel

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] 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", trim($_P

[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() [ 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 /home/***/publi

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

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 su

[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] 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

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 (tidy.sourcefo

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]> > Su

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]> > Su

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 f

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 >

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]> > Su

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 do

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] 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: http://www.php.ne

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 SUM(foo

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 En

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: [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 scri

[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: 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

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 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 End--

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 = mysql_f

[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 (transla

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

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 -- P

[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 ext

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

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,

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. After

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 dl3

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] 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

[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:- com_load_typelib(

[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:- com_load_typelib(

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] Functions in Safe Mode

2003-08-04 Thread Jay Fitzgerald
My code: echo number_format(filesize("news/final_1.txt")); The Warning: Warning: 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 /home/***/pub

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='"

[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

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 p

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] 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

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 database.

[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: http

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 PR

[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] 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-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 (PHP4)

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

2003-08-04 Thread Luis Lebron
Here's what I have been using. $trans= array("'" => "'", "'" => "'",">" => ">", "<" => "<", "&" => "&","-" => "-", "°" => "°", "±" => "±", "-" => "–", """ => "“", """ => "”","..." => "…","'" => "‘","²" =>"²","·" => "·" ); $value=strtr($value,$trans); Luis -Original Message- Fr

[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 0

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] 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 develo

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 = setl

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 I

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 par

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] 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 th

[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] 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 fro

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/pus

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: '; print_r( $GLOBALS ); echo ''; > > > > } > > > >

[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] 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

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 -

  1   2   >