I'm trying to present a simple SELECT statement "GROUPED" by date.
Ex.
WOUNITSOEMCOMMENTSDATE
123 10MeNotes03/18/2003
456 5 You More Notes 03/18/2003
Total 15
...
I have it working grouping the da
Marc Bakker wrote:
Hello all,
I installed PHP, Apache and MySQL. I read the install.txt file that came
with php and changed the default values in php.ini and httpd.conf. When I
restart Apache and type my local website (127.0.0.1/index.php) IE comes with
a 'Save file As' dialog box.
Instead of pa
- Original Message -
From: "Charles Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 12:50 PM
Subject: [PHP] strstr() question
> What is the expected return when using strtr() to compare a string to
> an empty string?
>
> example:
>
> $myval = strstr('bob',
--- Liam Gibbs <[EMAIL PROTECTED]> wrote:
> Is it just as quick to do:
>
> if($r == 0) {
> } else if($r != 0) {
> }
>
> than to do:
>
> if($r == 0) {
> } else {
> }
No. It is (almost) the difference between two conditionals versus one. Both are
fast, however, and you will find it hard to measur
Hello,
I have a list of users in LDAP. I do a:
$result=ldap_search($ldapconn,"ou=Users,dc=domain,dc=com", "g
idNumber=100");
to find the group of accounts I am looking for. Now what I want to do is
take the uid from each entry and print it out. I have tried using
ldap_get _entries but it
All the digest contains is all the normal e-mails all thrown into 1 huge
e-mail. You would recieve about 2 digests per day, instead of 100+ single
e-mails. Although i prefer the single e-mail system...
- Original Message -
From: "Tom Sommer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sen
At 3/14/2003 12:53 PM, Ron Petty wrote:
> Here is the code, maybe I am just missing something (this is the part
> where it writes and then opens again...
>> for($i = 0; $i < count($users); $i++)
>> {
>> for($k = 0; $k < count($grouplines);$k++)
>>
At 3/18/2003 11:46 AM, Steve Keller wrote:
> >> for($i = 0; $i < count($users); $i++)
> >> {
> >> for($k = 0; $k < count($grouplines);$k++)
> >> {
> >> $groupline = explode(":", $grouplines[$k]);
> >>
At 3/13/2003 01:05 PM, Christopher J. Crane wrote:
> I am just getting into PDF creation and I am having some issues. Can anyone
> send me a simple script that creates a PDF doc. I would like it to open in
> the browser after creation, not create a file.
Try the EZPDF class. It does just that, ser
I am trying to query a database looking for results that match an array of values I
have set.
The variable array is call group and has about 10 elements. Is there a way that I can
query the database using just $group instead of having to use the following:
SELECT * FROM `table` WHERE groupname
At 3/9/2003 09:11 AM, Niels Andersen wrote:
> LOL
>
> I like PHP, but I also like wet girlies. But the two are not interchangable,
> which is a pitty, becouse sometimes I really could use a wet girl, and I
> only have PHP
If god wanted geeks to procreate, women would be accept C includes.
--
S
Kevin Stone wrote:
>
> Logically the if-else construct is faster becuase PHP doesn't have to parse
> and execute the second conditional. An if-elseif construct is ussually
> followed by an else block to describe a default action if no other
> conditions are true. Otherwise you may as well use se
Hi Fellas,
I am trying to figure out how to encrypt the data using the base only.
The webserver use the base authentication. I have been searching the PHP
manual and I only saw base64_encode() but it is not the right algorithm.
Does anyone know the php function for the Base encryption?
Thank
Groan, I meant 'Basic' not 'Base'..
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Fellas,
>
> I am trying to figure out how to encrypt the data using the base only.
> The webserver use the base authentication. I have been searching the PHP
> manual an
$string = "'" . implode("','",$group) . "'";
$query = "SELECT * FROM table WHERE groupname IN ($string)";
---John Holmes...
- Original Message -
From: "Van Andel, Robbert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 3:51 PM
Subject: [PHP] Mysql Query Question
Thanks, I knew it was something simple but I couldn't find it on the 'Net.
Robbert van Andel
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:14 PM
To: Van Andel, Robbert; [EMAIL PROTECTED]
Subject: Re: [PHP] Mysql Query Question
$
Hi,
I've just been asked by a client to create a mass mail program in PHP which
the client can use to send a single message to everyone in it's email
database, but also have the option to select which email address the
message will go to.
I've done a simple script like this before which basica
Unless I'm completely mistaken, the BCC field will not show up when the email is
delivered.
Robbert van Andel
===
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mass
Thanks for the tip Erik.
Looks like I'll need to test live on this one -- I've got a win2k/Apache/PHP
setup locally -- output buffering apparently does not work in this
configuration...
I'll look into it on our host company's Linux servers,
--Noah
"Erik Price" <[EMAIL PROTECTED]> wrote
Thanks for the reply Rene,
Any change of a code sample of how u did this?? Im not at all experienced in
Java.
Thanks again for replying
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--
In w
Steve and Niels,
I personally don't think that this sort of garbage has any place on this
list. The PHP lists are for the promotion and assistance of the PHP
community. In our small ways, we are all ambassadors for PHP and should
behave as professionals. Having sexist and inappropriate comme
Brad Wright wrote:
Thanks for the reply Rene,
Any change of a code sample of how u did this?? Im not at all experienced in
Java.
According to the manual, PHP does have some tokenizer functions:
http://www.php.net/manual/en/ref.tokenizer.php
However, the documentation appears to be lacking as t
Erik,
thanks, are you able to pint me to some good reference sources on
tokenizer's... i have never come across them before
I have been scouring the web, and am coming up a decided blank. :)
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
At 3/18/2003 02:30 PM, Pete James wrote:
> Steve and Niels,
>
> I personally don't think that this sort of garbage has any place on this
list. The PHP lists
> are for the promotion and assistance of the PHP community. In our small
ways, we are
> all ambassadors for PHP and should behave as pro
Thanks Erik, looking now :)
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--
In wine there is truth, in beer there is strength, in water there are
bacteria
> From: Erik Price <[EMAIL PROTECT
I am having trouble verifying if a user is within a specified I.P. range.
The idea is that if a user is at a library within an I.P. range like
231.55.*.* and their I.P. address is 231.55.122.226 a session would be
registered for them. See my code below. This works but only for some I.P.'s
in a rang
> If you want clarity, why not:
>
> if($r == 0) {
> ...
> } else { // $r != 0
> }
Hmm. That's a good idea. Yeah, I was sure the else-if method wasn't faster.
I just wasn't sure if it was slower, or if that really mattered. But your
method seems fine, and I have no idea why I didn't think of that.
I'm not sure why, but I get an attachment when sending out a mail with the following
(see below). Well, I shouldn't say an attachment, but in Outlook I get that little
paperclip, saying there is an attachment. But when I go to open the attachment, there
is nothing there.I'm trying to send it to
At 23:24 18-3-2003, you wrote:
I'm not sure why, but I get an attachment when sending out a mail with the
following (see below). Well, I shouldn't say an attachment, but in Outlook
I get that little paperclip, saying there is an attachment. But when I go
to open the attachment, there is nothing
> It may be that the mail receiver expects some content after you put this
in
> the header:
> Content-Type: text/ascii; charset=iso-8859-1\n
> If you're sending plain text, and no special (read: non-western)
> characters, i don't think you need that part.
That was the fix. Yer a goldmine.
Hi everyone,
I am currently installing mod-rewrite to change all of my URL's from:
www.domain.com/category.php?ID=1
To
www.domain.com/category_name.html
So that they are more search engine friendly. However one problem I face
is that I cannot think of any way to write the session ID which woul
Steve Keller wrote:
Sexist and inappropriate? You would be offended because I insulted geeks?
Actually, it was not so much your comment that offended me, but the fact
that you chose to reprint his.
> If I was a female coder, I would take great offense to these
comments... but maybe that's just
The tokenizer that Erik was referring to is actually a PHP lexer, not a
general tokenizer. Perhaps you would be looking for the strtok() function?
www.php.net/strtok
Brad Wright wrote:
Erik,
thanks, are you able to pint me to some good reference sources on
tokenizer's... i have never come acro
I wrote a function to redirect my page to another one. But for some
reason I keep getting an error.
here is the function I made
function js_pointer_login($thepage)
{
echo ' window.location = '$thepage'
';
}
--
Antoine <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/
you are trying to include a variable inside a single quoted string.
change the echo line to this.
echo " window.location = '$thepage'>
";
Jim
- Original Message -
From: "Antoine" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 2:52 PM
Subject: [PHP]
Can anyone recommend a package suitable for editing HTML files on a remote
server through a PHP interface? Basically, an online HTML editor.
Cheers in advance,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It has to do with the fact that you're using single quotes, and
$thepage is not replaced for its value.
I think you'd want to rewrite the function like this (note the \
escaping the "):
function js_pointer_login($thepage)
{
echo " window.location = '$thepage'
";
}
Hope this Helps,
Oscar F.
Ant
- Original Message -
From: "Antoine" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 3:52 PM
Subject: [PHP] php and javascript
> I wrote a function to redirect my page to another one. But for some
> reason I keep getting an error.
> here is the func
On Tue, 2003-03-18 at 21:14, Scott Fletcher wrote:
> Groan, I meant 'Basic' not 'Base'..
> > I am trying to figure out how to encrypt the data using the base only.
> > The webserver use the base authentication. I have been searching the PHP
> > manual and I only saw base64_encode() but it
At 23:52 18-3-2003, you wrote:
I wrote a function to redirect my page to another one. But for some
reason I keep getting an error.
here is the function I made
function js_pointer_login($thepage)
{
echo ' window.location = '$thepage'
';
}
beside the quote thing which others mentioned, please ma
At 21:02 18.03.2003, Liam Gibbs said:
[snip]
>Is it just as quick to do:
>
>if($r == 0) {
>} else if($r != 0) {
>}
>
>than to do:
>
>if($r == 0) {
>} else {
>}
>
>The reason I like the former method is because, in a large IF-ELSE block,
>it's clear what belo
At 23:04 18.03.2003, Will Bown said:
[snip]
>I am having trouble verifying if a user is within a specified I.P. range.
>The idea is that if a user is at a library within an I.P. range like
>231.55.*.* and their I.P. address is 231.55.122.226 a session would b
Hi,
I use the following headers to force open a download dialog box. However, my download
files are located in other directories/subdirectories. How can I specify a download
path in the header? The 'Content-Location' header does not work in this case. Can
someone please help?
header("Content-t
very cool chris!!!
Justin
on 19/03/03 2:27 AM, Chris Hayes ([EMAIL PROTECTED]) wrote:
> At 14:38 18-3-03, you wrote:
>> Ok, I hope this makes sense,
>>
>> When a user 'registers' with our site, I want to generate their personal
>> webpage for them. Currently, I have a webpage where the conten
On Tue, 2003-03-18 at 23:45, Ruo Zhang wrote:
> I use the following headers to force open a download dialog box. However, my
> download files are located in other directories/subdirectories. How can I specify a
> download path in the header? The 'Content-Location' header does not work in this
>
Hiya Brad--
We published a news item on this a few days ago; there's a free WYSIWYG
editor that works both on IE and Mozilla 1.3 called HTMLArea.
You can find it here:
http://www.interactivetools.com/products/htmlarea/reviews.html
(our news item is at http://phparch.com/newsarchive.php?s=htmlar
Just wondering. I am trying to decide whether to build a FreeBSD server
or other... open to suggestions
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
test message
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Your hardware will determine your level of performance and in many cases
stability (cheap components like generic ram lower stability and
performance) but I've had no problems running PHP under FreeBSD 4 or
FreeBSD 5 or Slackware Linux and mostly minor problems running under
HP-UX 10/11.
Everyone
Hi people,
I want to setup a shopping cart for an ecom site which sells baby clothese
but I dont know which to pick,
Agora or OSCommerce? any help appreciated, if possible please tell me why
you picked the one you pick too...
FREE HOSTING.
.
Reciently I have purchase
Hi people,
I want to setup a shopping cart for an ecom site which sells baby clothese
but I dont know which to pick,
Agora or OSCommerce? any help appreciated, if possible please tell me why
you picked the one you pick too...
.
Reciently I have purchased a larg
> $abytes = explode('.', $ip); // explode the IP string
> $ip = 0;
> foreach ($abytes as $byte) $ip = ($ip << 8) + $byte;
>
> This will give you the valid numeric equivalent of the IP address.
Isn't that what ip2long() does?
Also, the man page on ip2long() has some good notes and code th
I have a MySQL query that I am sending the results to text boxes in a form.
In the event of a space in the string data, the string is being truncated at
the first space. Is there a PHP function that can prevent this string data
from being truncated in the form.
If I print the query results or send
unfortunately i am a rookie with perl, can someone help me convert this
little bit of code to php?
thanks in advanced.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
open(LOADAVG, '/proc/loadavg') or die $1;
while( ) {
$loadavg = substr( $_, 0, 4 );
}
close(LOADAVG);
cheers,
- Sebastian
> I have a MySQL query that I am sending the results to text boxes in a
> form.
> In the event of a space in the string data, the string is being
truncated
> at
> the first space. Is there a PHP function that can prevent this string
data
> from being truncated in the form.
No, there's no PHP funct
On Wed, 19 Mar 2003 07:30:20 +1000, Brad Wright wrote about "Re: [PHP]
Using PHP to get a word count of a MSword doc" what the universal
translator turned into this:
>Thanks for the reply Rene,
>
>Any change of a code sample of how u did this?? Im not at all experienced in
>Java.
>
>Thanks again f
> From: Erik Price <[EMAIL PROTECTED]>
> Date: Tue, 18 Mar 2003 16:57:57 -0500
>
> The only tokenizers I have used are the StringTokenizer and
> StreamTokenizer classes in Java. If you want to learn about these, go
> to this web page: http://www.mindview.net/Books/TIJ/ and download the
> book "Th
If the digest is mailed in the correct format, programs like Forte Agent
and Pegasus can split the digest into its seperate messages. Then you can
reply to a message inside the digest like it was a normal message.
It's kinda neat, but not all (read: few) lists support this, so the ones
that don't
On Tue, 18 Mar 2003 15:11:02 -0500, Erik Price wrote about "Re: [PHP]
nstalling PHP" what the universal translator turned into this:
>Does the AddType line in httpd.conf so that files ending with the
>extension ".php" are processed by the PHP binary? You should have a
>section in your httpd.con
On Wed, 19 Mar 2003 00:39:11 +0100, Ernest E Vogelsinger wrote about "Re:
[PHP] Which is quicker, if-else statements" what the universal translator
turned into this:
>Noticeable? Probably not, except you're timing loops of a million or more
>cycles... but it's clear that the second method needs mo
On Tue, 18 Mar 2003 16:19:28 -0500, Tim Thorburn wrote about "[PHP] mass
mail and selected mailings" what the universal translator turned into
this:
>I've just been asked by a client to create a mass mail program in PHP which
>the client can use to send a single message to everyone in it's email
On Tue, 18 Mar 2003 23:19:08 +0100, Chris Hayes wrote about "Re: [PHP]
Mail attachment" what the universal translator turned into this:
>It may be that the mail receiver expects some content after you put this in
>the header:
> Content-Type: text/ascii; charset=iso-8859-1\n
>If you're sen
On Tue, 18 Mar 2003 15:59:32 -0700, Kevin Stone wrote about "Re: [PHP] php
and javascript" what the universal translator turned into this:
>- Original Message -
>From: "Antoine" <[EMAIL PROTECTED]>
>To: "php list" <[EMAIL PROTECTED]>
>Sent: Tuesday, March 18, 2003 3:52 PM
>Subject: [PHP] p
On 18 Mar 2003 18:20:55 -0700, Jason Sheets wrote about "Re: [PHP] Does
PHP run better under any specific unix os?" what the universal translator
turned into this:
>Everyone has at least one OS of choice (mine is FreeBSD and then
>OpenBSD) so you will have to weigh opinions, I would decide what yo
As a note Turck mmcache does optimization and also caches the compiled
scripts into shared memory. Zend also has the Zend Optimizer and Zend
Encoder.
Turck mmcache is available at http://www.turcksoft.com/en/e_mmc.htm
The benchmarking I did with Turck mmcache showed that Turck was a little
over 1
$lastDate is a unix time stamp in mySql ... how can i list ONLY the users
who have not logged in for 60days?
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Regards,
Daniel
On Wed, 19 Mar 2003 13:16, Sebastian wrote:
> unfortunately i am a rookie with perl, can someone help me convert this
> little bit of code to php?
>
> thanks in advanced.
>
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> open(LOADAVG, '/proc/loadavg') or die $1
hmm now u are talkin about caching , our systems guy is planning on using
squid as the caching system is this a good idea ?
>= Original Message From Jason Sheets <[EMAIL PROTECTED]> =
>As a note Turck mmcache does optimization and also caches the compiled
>scripts into shared memory. Zend
you can use strtotime()
example, this will subtract 60 days from the variable you assign to it, in
this case it'll subtract it from $lastDate
and go from there.
strtotime("-60 days");
http://www.php.net/manual/en/function.strtotime.php
cheers,
- Sebastian
- Original Message -
From: "Ph
I have a subscription service and am trying to not allow the buyer to
proceed purchasing another subscription if one of their subscriptions is
over 29 days past due in their payment. I am trying to query each invoice
and checking to see if it is past due more than 29 days, if it is I want a
messag
I've been looking for an answer to this question for ages, but have failed.
Hopefully one of you guys can help.
I'm looking for a way of finding out what the linux server's country is set
to.
I notice there's setlocale(), but I want something more like getlocale(),
which there doesn't seen to be
Hi Everyone,
Does anyone know if it is possible to check the values of a $_GET field
and see if the submitted data is numeric or contains any letters.
What I want to do is allow users to link to a record in a MySQL db using
the record id's and the values of the name field.
www.domain.com/showlis
how do I connect securely to a postgres database on another server / DNS
name / IP?
Some way to do SSL/SSH easily from PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Helo,
use is_numeric($str) to check whether a string contains all numeric values.
Foong
"Stephen Of Blank Canvas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Everyone,
>
> Does anyone know if it is possible to check the values of a $_GET field
> and see if the submitted data
You should put this on the postgres general list not here...
I've heard a lot of talk about this lately, though I haven't gotten around to
implementing it yet.. There is also a section in the online postgres docs on
how to do this.
And if you're fast someone just posted a question 2 minutes ag
The usage of md5() in PHPLIB show TWO arguments, a seed and the string. Nothing in the
online manual shows 2 args. What's the dealio?
Line 111 from PHPLIB7.2c - session.inc:
$id = $this->that->ac_newid(md5(uniqid($this->magic)), $this->name);
--
PHP General Mailing List (http://www.php.net/)
First of all, the example you gave is only using one argument to the MD5 function.
Secondly, if you *want* to seed/salt the MD5 with a key you can use:
http://www.php.net/manual/en/ref.mhash.php
--
Jason k Larson
aka: der Ritter
Dennis Gearon wrote:
The usage of md5() in PHPLIB show TWO arguments,
Hi,
I need to get a php script to print out a list of random characters. This
is the list:
a'
b'
c'
d'
e'
f'
g'
a''
b''
c''
d''
e''
f''
g''
They would be printed to a maximum of 50 in a row separated by spaces. Can
anyone give me a pointer as to how to do this? Since the rand functions
are only
On Wednesday 19 March 2003 15:44, Bryan Koschmann - GKT wrote:
> I need to get a php script to print out a list of random characters. This
> is the list:
[snip]
> They would be printed to a maximum of 50 in a row separated by spaces. Can
> anyone give me a pointer as to how to do this? Since the
Dear all,
Have written a wrapper to Christian Novak's excellent biffwriter class
which writes out excel files based on query to a mysql database.
A for loop, $zz=1; $zz <=61; $zz++:
generates the id needed for the WHERE condition:
$sql = "SELECT $arv, DATE_FORMAT(date_rec,'%m-%d-%Y') as nice_d
101 - 180 of 180 matches
Mail list logo