Re: [PHP] emailing files...

2004-12-27 Thread Jason Wong
On Monday 27 December 2004 15:50, Gregory Machin wrote: > I would like to email some log files as attachments, all the examples > use an html page with a file input box, how can i do it without the > file input box. It sounds like the examples are a superset of your problem, ie that does what yo

Re: [PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-27 Thread Rinke Hoekstra
Dear Richard, Thank you for your most extensive an excellent suggestions! I will have a look at it once my holidays are over... (or when I start itching too badly) Thanks again. -Rinke Richard Lynch wrote: Rinke Hoekstra wrote: I have a rather odd problem. Since a few days, my otherwise perfect

Re: [PHP] Re: negative numbers

2004-12-27 Thread Jason Wong
On Monday 27 December 2004 12:40, Richard Lynch wrote: > If you want to mimic the behaviour of abs (allowing for positive numbers) > and performance was an issue, that: > $x = ($x < 0) ? - $x : $x; > > is most likely faster than abs() Having nothing better to do I decided to benchmark this: tern

[PHP] Recommend a free shopping cart app?

2004-12-27 Thread Bosky, Dave
I was looking for a nice 'Free' shopping cart app that I can plug into my website and wanted some recommendations. I've written some good ones in Cold Fusion and don't feel like converting them to PHP at the moment. Thanks, Dave HTC Disclaimer: The information contained in this message

Re: [PHP] Re: negative numbers

2004-12-27 Thread Greg Donald
On Mon, 27 Dec 2004 18:16:21 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > ternary: > >$doo = -20; >for ($i = 1; $i < 1000; $i++) { >$dah = ($doo < 0) ? - $doo : $doo; >} > > abs(): > >$doo = -20; >for ($i = 1; $i < 1000; $i++) { >$dah = abs($doo); >

Re: [PHP] $HTTP_POST array

2004-12-27 Thread Burhan Khalid
kalinga wrote: Dear all, Is it possible to pass the entire $HTTP_POST array to a function of a class as a variable? Use $_POST -- its automatically in scope of every function (you don't need to pass it). You can pass any array to a function. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: Recommend a free shopping cart app?

2004-12-27 Thread Matthew Weier O'Phinney
* Dave Bosky <[EMAIL PROTECTED]>: > I was looking for a nice 'Free' shopping cart app that I can plug into my > website and wanted some recommendations. osCommerce and ZenCart are both very nice -- the latter is derived from the former, by the way. They require a bit of work to integrate with an e

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-27 Thread Jose M.Herrera
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rory Browne wrote: | I think what Jose is trying to say, is that because 'or' has a lower | precidence than =, you are interpreting the expression wrong. Yes, I was trying to say that. The () are very important when you need to use OR, AND, ||, &&, etc.

[PHP] Re: How to set an absolute include path?

2004-12-27 Thread Brian Dunning
I should add that I'd heard that the following will set the include_path to the server root, no matter where you call includes from: ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); But this doesn't seem to be doing it for me. Also my development ser

[PHP] Re: emailing files...

2004-12-27 Thread Manuel Lemos
Hello, on 12/27/2004 05:50 AM Gregory Machin said the following: I would like to email some log files as attachments, all the examples use an html page with a file input box, how can i do it without the file input box. You may want to try the message composing and sending class. It lets you attach

Re: [PHP] How to set an absolute include path?

2004-12-27 Thread Jordi Canals
On Mon, 27 Dec 2004 08:27:25 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: > Is there a command that will set the include path to the web server > root? set_include_path($_SERVER['DOCUMENT_ROOT']; > I'm trying to set up a directory structure where include files will be > called from all diffe

Re: [PHP] How to set an absolute include path?

2004-12-27 Thread John Holmes
Brian Dunning wrote: Is there a command that will set the include path to the web server root? I'm trying to set up a directory structure where include files will be called from all different folder depths, so I'll need to call them absolutely like: include('/includes/file.php'); where the abo

RE: [PHP] Re: negative numbers

2004-12-27 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Jason Wong > Sent: 27/12/04 10:16 > > On Monday 27 December 2004 12:40, Richard Lynch wrote: > > > If you want to mimic the behaviour of abs (a

[PHP] LDAP_SEARCH filter syntax help

2004-12-27 Thread jtennyson
Hello, I am just starting to familiarize myself with LDAP and I am having problems with a simple search when using a filter with multiple criteria. I'm trying to return distinguishedname attribute when a match exists for both samaccountname AND telephonenumber. The syntax I am using is: ldaps

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-27 Thread Rory Browne
I think what this highlights is that the or operator isn't supposed to be used in that way. It is simply supposed to be used to add a back door to failed function calls. ie mysql_connect(args) or die("mysql connection failed") If you want to return true when either $a or $b is true, then use ||. e

[PHP] Making includes and requires safe.

2004-12-27 Thread Todd Cary
I received the following and I would like to know what is meant by "making includes and requires safe": [Quote] News Story by Peter Sayer DECEMBER 27, 2004 (IDG NEWS SERVICE) - The latest version of the Santy worm poses an elevated risk to many Web sites built using the PHP scripting language,

RE: [PHP] Making includes and requires safe.

2004-12-27 Thread Jay Blanchard
[snip] To prevent these attacks, it may be necessary to recode the site to use the include() and require() functions in a safe manner. [/snip] >From http://www.php.net/include "If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to b

[PHP] LDAP_SEARCH filter syntax help

2004-12-27 Thread jtennyson
Hello, I am just starting to familiarize myself with LDAP and I am having problems with a simple search when using a filter with multiple criteria. I'm trying to return distinguishedname attribute when a match exists for both samaccountname AND telephonenumber. The syntax I am using is: ldaps

[PHP] OpenSource -webshop?

2004-12-27 Thread Wiberg
Hi there! I have a thougt of making my site OpenSource. It's a webshop, so I'm unsecure about the security... Maybe someone will use the sourcecode for malicious attacks instead of making the code better? What are your thoughts about this? *curious* /G @varupiraten.se -- No virus found in this ou

[PHP] How to set an absolute include path?

2004-12-27 Thread Brian Dunning
Is there a command that will set the include path to the web server root? I'm trying to set up a directory structure where include files will be called from all different folder depths, so I'll need to call them absolutely like: include('/includes/file.php'); where the above will work no mat

[PHP] PHP based Apache admin tool?

2004-12-27 Thread Brian Dunning
Is there any such thing as a PHP based GUI tool for administering Apache? I've searched high & low and found nothing. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP based Apache admin tool?

2004-12-27 Thread M. Sokolewicz
Brian Dunning wrote: Is there any such thing as a PHP based GUI tool for administering Apache? I've searched high & low and found nothing. - Brian administering what exactly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to set an absolute include path?

2004-12-27 Thread Jeffery Fernandez
Brian Dunning wrote: I should add that I'd heard that the following will set the include_path to the server root, no matter where you call includes from: ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); But this doesn't seem to be doing it for me. Als

RE: [PHP] How to set an absolute include path?

2004-12-27 Thread Jay Blanchard
[snip] Is there a command that will set the include path to the web server root? I'm trying to set up a directory structure where include files will be called from all different folder depths, so I'll need to call them absolutely like: include('/includes/file.php'); where the above will wo

Re: [PHP] How to set an absolute include path?

2004-12-27 Thread John Nichel
Brian Dunning wrote: Is there a command that will set the include path to the web server root? I'm trying to set up a directory structure where include files will be called from all different folder depths, so I'll need to call them absolutely like: include('/includes/file.php'); where the abo

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-27 Thread Thomas Goyne
On Mon, 27 Dec 2004 21:19:39 +, Rory Browne <[EMAIL PROTECTED]> wrote: Generally however there is no need to parentisize everything to the right of the assignment operator(=), since besides 'and', 'or', 'xor', and the comma operator. The only time I see the need to parentisize everything to

[PHP] How to process a query form with CHECKBOX Please help

2004-12-27 Thread S Kumar
Dear group, I am a novice programmer started doing php to process a query form of my patients. I have a database and one table in it deals with my patient information. Depending on their condition I divided their age groups into 3 categories. In my database a table patient_data has a column a

[PHP] authentication

2004-12-27 Thread Ali
Hi everyone... can anyone lead me to a good tutorial on authentication...it wud be good if i can get a one in connection with a database.. thnks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] authentication

2004-12-27 Thread John Holmes
Ali wrote: can anyone lead me to a good tutorial on authentication...it wud be good if i can get a one in connection with a database.. $all_good = query("SELECT valid_user FROM table"); or use Google. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The

[PHP] How to limit the number of entries got from ldap?(ldap_search)

2004-12-27 Thread truename
source code: It takes about 100 secs while the entries amount to more than 10,000. Is there any solution to make it do fast? Or is there any method to fetch 100 entries every time?

Re: [PHP] Re: negative numbers

2004-12-27 Thread Curt Zirzow
* Thus wrote Ford, Mike: > To view the terms under which this email is distributed, please go to > http://disclaimer.leedsmet.ac.uk/email.htm > > > > > -Original Message- > > From: Jason Wong > > Sent: 27/12/04 10:16 > > > > On Monday 27 December 2004 12:40, Richard Lynch wrote: > > >

[PHP] not gettingg desired results... is my programming logic run amuck...

2004-12-27 Thread GH
Greetings: I am having a problem with some php that I have written... In an attempt to clearly state the problem and how it is supposed to work the following may be lengthy, to which I appologize for. I am not getting the results that I am expecting. I am using the following url to access my p

[PHP] Re: How to process a query form with CHECKBOX Please help

2004-12-27 Thread Ospinto
Young Middle Old note that the name of all three is "agegroup[]". this ensures that it stores the values in an array "$agegroup". now on the next page, you can simply say $ageresult=implode(" and ",$agegroup); now, your query is simply: Select age_group from patient_data where age_group = $ageres

[PHP] How to delete text with replies for archive pages

2004-12-27 Thread Will McCullough
Hey Everyone, We are writing a web archive to a mail list server. We want to be able to delete the footer that comes through on every email so that we don't end up with those long footers that are 4x repeated sometimes like in the example here: - >>PHP General Mailing List (http:/

Re: [PHP] Making includes and requires safe.

2004-12-27 Thread John Holmes
> It uses search engines including Google, Yahoo and AOL to identify exploitable Web pages written in PHP that use the functions "include()" and "require()" in an insecure manner, K-OTik said. Exactly how is a worm going to know if I have include($crap) in my code by searching google? Is it sear

[PHP] Re: [PHP-DB] How to process a query form with CHECKBOX Please help

2004-12-27 Thread John Holmes
S Kumar wrote: I have a database and one table in it deals with my patient information. Depending on their condition I divided their age groups into 3 categories. In my database a table patient_data has a column age_group and a patient can be any one of young, middle or old category. Now the po

[PHP] Re: How to process a query form with CHECKBOX Please help

2004-12-27 Thread Jonathan
Shouldn't you use "radio" rather than checkbox for age group? the 2 responses is good if you want them to be able to select more than one. "S Kumar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear group, > I am a novice programmer started doing php to process > a query form of