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
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
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
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
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);
>
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
* 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
-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.
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
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
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
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
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
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
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
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,
[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
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
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
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
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
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
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
[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
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
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
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
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
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
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?
* 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:
> >
>
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
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
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:/
> 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
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
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
37 matches
Mail list logo