php-windows Digest 17 Feb 2004 04:00:23 -0000 Issue 2125

Topics (messages 22841 through 22856):

I need some help, willing to pay
        22841 by: John Yu

problems with spam
        22842 by: mayo
        22843 by: Svensson, B.A.T. (HKG)
        22844 by: mayo
        22854 by: Alfonso Montero

Convert time
        22845 by: Harpreet
        22846 by: Svensson, B.A.T. (HKG)
        22848 by: Svensson, B.A.T. (HKG)
        22850 by: David Felton
        22851 by: Svensson, B.A.T. (HKG)
        22852 by: re_action
        22853 by: Svensson, B.A.T. (HKG)
        22855 by: Meteorlet Woody

Array Sorting Help
        22847 by: Herhuth, Ron
        22849 by: Svensson, B.A.T. (HKG)

using backslash \ in php
        22856 by: Harpreet

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi guys

 

I need some urgent work done and I don't have the time to do it myself. I've
gotten screwed over by 3 programmers now and I'm desperate. I need some
modification done on the product info page for OSCommerce. This is at most a
3-4 hours job for someone that's decent in php. 

 

I'm willing to pay since it's very urgent and rush job. If you are
interested, please add me to your msn ([EMAIL PROTECTED]) or reply to
this email. MSN or other online chat is preferred to get things done fast.

 

Thanks

 

John 


--- End Message ---
--- Begin Message ---
Has anybody else been getting spammed with penis and breast enlargeners to
their listserv email?

I use [EMAIL PROTECTED] solely for listservs and in the past week I've
started getting 5-10 spams a day.

Gil Midonnet

--- End Message ---
--- Begin Message ---
On Mon, 2004-02-16 at 15:36, mayo wrote:
> Has anybody else been getting spammed with penis and breast enlargeners to
> their listserv email?
> 
> I use [EMAIL PROTECTED] solely for listservs and in the past week I've
> started getting 5-10 spams a day.

Oh dear have I - for years.... I even tried to enlarge my penis, but bot
even that help to get rid of the spam.

You know, ought to smile and keep pressing that delete button very,
very, often.

In my case it means deleting +30 spams a day, with all kind of different
interesting(?) adult content.

--- End Message ---
--- Begin Message ---
oh, I do. I'm just trying to locate the listserv that had it's emails
harvested.

I think I found it. 4 listservs say "why don't you delete the posts" 1 has
10+ "me too"

Gil Midonnet


 > -----Original Message-----
 > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
 > Sent: Monday, February 16, 2004 10:12 AM
 > To: php-windows
 > Subject: Re: [PHP-WIN] problems with spam
 >
 >
 > On Mon, 2004-02-16 at 15:36, mayo wrote:
 > > Has anybody else been getting spammed with penis and breast
 > enlargeners to
 > > their listserv email?
 > >
 > > I use [EMAIL PROTECTED] solely for listservs and in the
 > past week I've
 > > started getting 5-10 spams a day.
 >
 > Oh dear have I - for years.... I even tried to enlarge my penis, but bot
 > even that help to get rid of the spam.
 >
 > You know, ought to smile and keep pressing that delete button very,
 > very, often.
 >
 > In my case it means deleting +30 spams a day, with all kind of different
 > interesting(?) adult content.
 >
 > --
 > PHP Windows Mailing List (http://www.php.net/)
 > To unsubscribe, visit: http://www.php.net/unsub.php
 >

--- End Message ---
--- Begin Message --- At 04:11 PM 16/02/2004 +0100, you wrote:
On Mon, 2004-02-16 at 15:36, mayo wrote:
> Has anybody else been getting spammed with penis and breast enlargeners to
> their listserv email?
>
> I use [EMAIL PROTECTED] solely for listservs and in the past week I've
> started getting 5-10 spams a day.


Oh dear have I - for years.... I even tried to enlarge my penis, but bot
even that help to get rid of the spam.

You know, ought to smile and keep pressing that delete button very,
very, often.

In my case it means deleting +30 spams a day, with all kind of different
interesting(?) adult content.

Hi guys.


Two tools that help me deal with spam or aviod it:
www.mailwasher.net (for Win platforms only)
www.spammotel.com

I use MailWasher daily and dealing with spam (even bouncing it to fake a non-existing address) has become less painful. To avoid being spammed again, i use SpamMotel for creating 'disposable' addresses.
Go and see yourself if any of these suits your needs.


I suggest all spammed webmasters to set up a 'spam trap' in their sites to fight back spammers (scripts to generate fake addresses to poison spammer's DB's). More spam-fighting resources at: www.spamhelp.org, www.spamcon.org, www.spamcop.net

Just my 2 cents.

--
Alfonso Montero López           | PGP Public Key available
PGP Key ID: 0x8F897F0E          | Llave PGP Pública disponible

--- End Message ---
--- Begin Message ---
I am trying to add time. If my seconds or minutes go over 60 how can i find
the number of minutes or hours.

I am doing something like this

 if ($totsec>60)
  {
    $min=$totsec/60;
    $sec=$totsec-$min*60;
  }

but i get results in 1.233333333.

I need integers

Please help

--- End Message ---
--- Begin Message ---
PHP is typeless and will convert your left hand operand to the type
returned by your right hand expression. You can deal with this by
casting the right hand expression to an integer when computing the
minutes. To compute the seconds, you better use the modulus operator(%).

Example:

$min = (int)($sec/60);
$min = $sec % 60;

There might be also a floor function you can instead of casting, but of
that I know nothing (read: I didn't search the man pages).

On Mon, 2004-02-16 at 17:35, Harpreet wrote:
> I am trying to add time. If my seconds or minutes go over 60 how can i find
> the number of minutes or hours.
> 
> I am doing something like this
> 
>  if ($totsec>60)
>   {
>     $min=$totsec/60;
>     $sec=$totsec-$min*60;
>   }
> 
> but i get results in 1.233333333.
> 
> I need integers
> 
> Please help

--- End Message ---
--- Begin Message ---
On Mon, 2004-02-16 at 17:46, Svensson, B.A.T. (HKG) wrote:

> There might be also a floor function you can instead of casting, but of
> that I know nothing (read: I didn't search the man pages).

"There might also exist a floor function which you can use instead[...]"

time to leave work.....

--- End Message ---
--- Begin Message ---
lol

-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 4:49
To: php-windows
Subject: Re: [PHP-WIN] Convert time


On Mon, 2004-02-16 at 17:46, Svensson, B.A.T. (HKG) wrote:

> There might be also a floor function you can instead of casting, but of
> that I know nothing (read: I didn't search the man pages).

"There might also exist a floor function which you can use instead[...]"

time to leave work.....

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************

--- End Message ---
--- Begin Message ---
On Mon, 2004-02-16 at 17:46, Svensson, B.A.T. (HKG) wrote:

> Example:
> 
> $min = (int)($sec/60);
> $min = $sec % 60;
> 

Jesus.... "$min = $sec % 60 60;" should be "$sec = $sec % 60;" ....


I'll have a lot of funny bugs to behold in my code tomorrow....

--- End Message ---
--- Begin Message ---
Hello B.A.T.,

Monday, February 16, 2004, 8:01:30 PM, you wrote:

SBATH> On Mon, 2004-02-16 at 17:46, Svensson, B.A.T. (HKG) wrote:

>> Example:
>> 
>> $min = (int)($sec/60);
>> $min = $sec % 60;
>> 

SBATH> Jesus.... "$min = $sec % 60 60;" should be "$sec = $sec % 60;" ....


SBATH> I'll have a lot of funny bugs to behold in my code tomorrow....

Maybe $sec = min % 60 ;) ?

--- End Message ---
--- Begin Message ---
>> Jesus.... "$min = $sec % 60 60;" should be "$sec = $sec % 60;"

> Maybe $sec = min % 60 ;) ?

No it should not be, think again why.

--- End Message ---
--- Begin Message ---
Harpreet,Hello!

        Another easy way like this:
        $min = Date('i', mktime(0, 0, $totsec, 0, 0, 2004));
        $sec = Date('s', mktime(0, 0, $totsec, 0, 0, 2004));

May this helps,

Meteorlet Woody

======= 2004-02-17 00:35:40 =======

>
>I am trying to add time. If my seconds or minutes go over 60 how can i find
>the number of minutes or hours.
>
>I am doing something like this
>
> if ($totsec>60)
>  {
>    $min=$totsec/60;
>    $sec=$totsec-$min*60;
>  }
>
>but i get results in 1.233333333.
>
>I need integers
>
>Please help
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

= = = = = = = = = = = = = = = = = = = =

--- End Message ---
--- Begin Message ---
Before I begin I must admit I am a bit new to arrays so please be gentle.

Here is my situation:

I am building an app that queries the database and brings back a result
set.  This resultset contains last name, first name and id.

I am then using the "similar_text" function to weed out only those matches
that fall within a ceratin percentage point...and then placing them into
an array...right now I'm only using a flat indexed array so the array
looks like this :

$matchArray[0] = lastname1
$matchArray[1] = firstname1
$matchArray[2] = numberOfCharsMatch1
$matchArray[3] = percentageMatch1
$matchArray[4] = lastname2
etc...

What I would like to do is to sort the results based on the
"percentageMatch"  Obviously my simple flat array will not do the trick.
I have read about multidimensional arrays but to be honest I'm having a
hard time wrapping my grey matter around how to put it into effect here.

How can I go about A) setting up the array correctly...and B) sorting it
correctly?

Thanks a ton!
Ron

--- End Message ---
--- Begin Message ---
On Mon, 2004-02-16 at 17:49, Herhuth, Ron wrote:

> What I would like to do is to sort the results based on the
> "percentageMatch"  Obviously my simple flat array will not do the trick.

Why don't you just sort them in the database before returning the result
set?

SELECT ...
FROM ...
WHERE ...
ORDER BY <percentageMatch1>

--- End Message ---
--- Begin Message ---
I have a form with a textbox that allows a user to enter the filepath. If i
enter the file path as c:/ it works just fine.

If I type in c:\ on submit form it converts the \ to \\ and on every submit
the number of slashes double. How can I use the backslash as I need the
backslash for specifing the filepath. How can I stop it to replicate??

Help is appreciated.

Thanks,

Regards

--- End Message ---

Reply via email to