php-general Digest 27 Nov 2005 10:21:34 -0000 Issue 3818

Topics (messages 226493 through 226504):

Intersecting Dates
        226493 by: Shaun
        226498 by: M. Sokolewicz
        226499 by: M. Sokolewicz

Re: cms type session - how to ?
        226494 by: Raj Shekhar

R: [PHP] Intersecting Dates
        226495 by: Sebastian \"En3pY\" Zdrojewski

Re: Wanna Join me for an open source PHP Project?
        226496 by: M. Sokolewicz

Re: [PHP-WIN] Wanna Join me for an open source PHP Project?
        226497 by: Bob Stout

Where can i find docs to create a php5 extensions with OOP as SimpleXML?
        226500 by: Edwin Barrios
        226502 by: vizion

Improving my PHP coding
        226501 by: Todd Cary

Client-side file uploading
        226503 by: Ajree

Re: Web Service Php - Currency Conversion
        226504 by: Colin Ross

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:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how 
can one check if another set intersects these dates?

Thanks for your advice 

--- End Message ---
--- Begin Message ---
Shaun wrote:

Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how can one check if another set intersects these dates?

Thanks for your advice
one possibility is to change the dates to timestamps, then check if the starting date (to intersect) is > $start or < $end, and check if the end date (intersect) is > $start or < $end. If any of those are true, it intersects.
(use strtotime() or some similair function to change 01-01 => 31-03)

another would be splitting dates and doing the same thing for months, followed by days (if months of both equal)

other possibilities also exist obviously (eg. you could use mysql's BETWEEN syntax)

- tul

--- End Message ---
--- Begin Message ---
Shaun wrote:

Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how can one check if another set intersects these dates?

Thanks for your advice
one possibility is to change the dates to timestamps, then check if the starting date (to intersect) is > $start or < $end, and check if the end date (intersect) is > $start or < $end. If any of those are true, it intersects.
(use strtotime() or some similair function to change 01-01 => 31-03)

another would be splitting dates and doing the same thing for months, followed by days (if months of both equal)

other possibilities also exist obviously (eg. you could use mysql's BETWEEN syntax)

- tul

--- End Message ---
--- Begin Message ---
in infinite wisdom Gregory Machin spoke thus  On 11/23/2005 04:28 PM:
> Sorry for the lack of clarity on the single page... eg :
> http://127.0.0.1/index.php?
> where the index.php holds the logic of what is displayed and by passing vars
> back to it's self determins what is next displayed .. hope that helps..

What you mean is that you want a MVC framework.  This might help
http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html and this
http://www.tonymarston.co.uk/php-mysql/model-view-controller.html#2005-06-21

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

--- End Message ---
--- Begin Message ---
If you got also the year you can transform the dates into UNIX TIMESTAMP and
check againist that. If you don't have that, write down a simple procedure
that converts dates into days since 01/01 and use that method, but it will
be faulty if the date ranges overlap years.

Cheers

En3pY 


Sebastian Konstanty Zdrojewski 

________________________________

URL: http://www.en3py.net/
E-Mail: [EMAIL PROTECTED]

________________________________

Le informazioni contenute in questo messaggio sono riservate e
confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario
del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei
non fosse la persona a cui il presente messaggio è destinato, La invito ad
eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone
gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi
del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). 

-----Messaggio originale-----
Da: Shaun [mailto:[EMAIL PROTECTED] 
Inviato: sabato 26 novembre 2005 22.18
A: php-general@lists.php.net
Oggetto: [PHP] Intersecting Dates

Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how
can one check if another set intersects these dates?

Thanks for your advice 

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.8/183 - Release Date: 25/11/2005
 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Sat, 2005-11-26 at 14:03, M. Sokolewicz wrote:

Robert Cummings wrote:

On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote:


I'm pretty sure something like this already exists. Why? because I know somebody who uses it. Ok, so it's written in asp (by MS if I'm not mistaking), still... I wouldn't know why you'd want to write a new one in php... seems hard to make to me; might be wrong though.


Hard to make is not a very good argument against making something.
Especially when there's already a will to make it.


that wasn't the reason; the reason I'm looking at is that there is already a vendor-supplied way of doing it, and a non-vendor way would (most probably) not have the possibility of even duplicating the vendor-supplied version's possibilities (in this case).


That's like saying open source solutions can't compete with commercial
solutions. I'm not buying it (pun observed but not intended :)

Cheers,
Rob.

pun accepted :)

after thinking this over for a while, I actually started wondering if this is about building a webinterface to an application (outlook) or if it's simply an outlook-similair interface to a mailhost. If it's #1, I keep to my point (especially since you interface to an application which is *not* opensource). If it's #2 (or a variant thereof) I agree with you ;)

- tul

--- End Message ---
--- Begin Message ---
bala chandar wrote:

>Hi All,
>
>I have just started a Open source Project in SourceForget.net using PHP.
>
>Project Name: Weblook Express
>URL : http://sourceforge.net/projects/weblookexpress
>
>Idea came to me when I thought of porting the complete windows based
>Desktop outlook express Application into a Portable, Web based
>Application that runs on any Javascript supported web browser for any
>POP3, or IMAP or HTTP Mail Service Providers.
>
>I am just looking for people who can work along with me so that
>complete porting occurs so that we can release the base version.
>
>Technology to be used would be PHP, XML, XSLT, Javascript, HTML.
>

I'm currently using a commercial product for Outlook-HTML archiving
(MAPIlab's HTML E-mail Archiver). Although it works well and I'm
generally pleased with it, I would be interested in such an application
that was open source. However, I have no interest in Outlook Express. If
this ever progresses to the point of an MS Outlook version, I could get
interested in it.

-- 
Bob Stout <[EMAIL PROTECTED]> - The rules of life:
 "Either lead, follow, or get out of the way."
 "It's easier to get forgiveness than permission."
 "90% of everything is garbage."
 "Never attribute to malice what can be adequately explained by
  stupidity."

--- End Message ---
--- Begin Message ---
Hi,

I'm a PHP web programing, but i wanna learn how to develop php5 extensions.
I found php5 a good language to apply Objects programing, and it has very
usefull examples of OO extensions as SimpleXML, DOM, Sqlite; for this reason
i wanna develope my extension following those styles of API's .

I've read some docs about creating a php extension that appears as new
functions on PHP, but i can't find info to develop extensions that appear as
classes on PHP .

Thanks for your help. I'm really interested on this topic, especially to
collaborate in PHP extension projects as wxPHP.

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

> -----Original Message-----
> From: Edwin Barrios [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 26, 2005 7:07 PM
> To: php-general@lists.php.net
> Subject: [PHP] Where can i find docs to create a php5 extensions with OOP
> as SimpleXML?
> 
> Hi,
> 
> I'm a PHP web programing, but i wanna learn how to develop php5
> extensions.
> I found php5 a good language to apply Objects programing, and it has very
> usefull examples of OO extensions as SimpleXML, DOM, Sqlite; for this
> reason
> i wanna develope my extension following those styles of API's .
> 
> I've read some docs about creating a php extension that appears as new
> functions on PHP, but i can't find info to develop extensions that appear
> as
> classes on PHP .
> 
> Thanks for your help. I'm really interested on this topic, especially to
> collaborate in PHP extension projects as wxPHP.


I suggest you take a lookn at

http://www.zend.com/php5/articles/php5-xmlphp.php

david

--- End Message ---
--- Begin Message --- Though my applications run in a high profile environment (national class action lawsuits e.g. Enron, Microsoft, etc.), my coding style is ages old, and even then, primitive. If there is anyone who has the time to help me bring my coding up to 2005 standards, off line, I would appreciate it.

With appreciation....

--- End Message ---
--- Begin Message ---
Hi,

I'm working on a website with some downloadable files. I use simple web-based file uploading form to put new files on the server and I keep information about them (filename, description to be displayed and so on) in the database. It worked well until files began to exceed default Apache's limit of 2MB. I guess there is a way of increasing this limit (probably by .htaccess file - I'm not authorized to make changes in httpd.conf) but I don't think it's the best option here.

What I want to do is some kind of small client application running locally on my PC Windows machine. I thought of cURL handling ftp file uploads and a simple web service putting file info into database. Then add a GUI (PHP-GTK or WinBinder). I want to make it as simple to use as possible.

Have some of you ever made something like that? Maybe there are other techniques to make this kind of application in PHP. I'm a newbie to cURL and web services and I don't want to invent a wheel again. Any suggestions would be more than welcome.

Best regards,
Ajree

--- End Message ---
--- Begin Message ---
New version released that fixed the bug, fyi

On 9/28/05, Thomas <[EMAIL PROTECTED]> wrote:
>
> I have used nusoap and a xmethods service. You can get the ziped files
> here:
> http://www.thomash.co.za/uploads/forex/forex.nusoap.zip
>
> Hope that helps
>
> BTW: also had issues with the PEAR package.
>
> T
>
> -----Original Message-----
> From: Sylvain Gourvil [mailto:[EMAIL PROTECTED]
> Sent: 28 September 2005 12:57 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Web Service Php - Currency Conversion
>
> Jasper Bryant-Greene wrote:
> > Sylvain Gourvil wrote:
> >
> >> I am looking of a webservice whiwh could permit to convert euro price
> >> in dollar and uk pounds on my php website !
> >
> >
> > http://pear.php.net/package/Services_ExchangeRates
> >
>
>
> Thanks for that but there is a bug in installation.
> It seems to be great. If someone has something else, I'll be pleased
>
> Have a good day !
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---

Reply via email to