I will assume that your dates are stored in two variables $date1 and $date2
$date1array = explode("/",$date1);
$date2array = explode("/",$date2);
// Assume Date 2 is later than Date 1
$months_apart = ($date2array[2] - $date1array[2])*12;
// Month is later in date 1 than in date 2
// Find the d
Greetings Gents,
I want to take two dates formatted as
11/1/1998
10/1/2008
And find out how many months have elapsed between them.
I was wondering if there was a quick and dirty way to do this without a for
loop.
--
Blessed Be
Phillip
The House has passed a law that would abandon the Internet
Miguel Vaz wrote:
Yes, right on the spot. Main reasons being code theft and
using it on other projects. This being done by our office (its
actually a college and i work in a multimedia department) system
administrators, which are nothing left than arrogant leaches.
All i was m
Yes, right on the spot. Main reasons being code theft and
using it on other projects. This being done by our office (its
actually a college and i work in a multimedia department) system
administrators, which are nothing left than arrogant leaches.
All i was missing from your
I read your email, but I'm not using sessions and not really planning too.
But some of your code may be able to be modified to do what I need.
Thanks for the input.
B
_
From: Dave Goodchild [mailto:[EMAIL PROTECTED]
Sent: September 14, 2006 8:52 AM
To: Beauford
Subject: Re: [PHP] Ques
Hi Chris,
thanks for your feedback: at least now I know that the script is correct, I
am using version 4.3.10, I will investigate if some bug is present in this
version.
Fabri
-Messaggio originale-
Da: Christopher Weldon [mailto:[EMAIL PROTECTED]
Inviato: giovedì 14 settembre 2006 21.31
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Fabri wrote:
> Hi Christopher: this is just a simplified code, I use it to generate some
> xml file, no loop is present.
>
> Try it as it is: you will find that two files will be generated while it
> should be only one.
> If you remove 'session_start(
Hi Christopher: this is just a simplified code, I use it to generate some
xml file, no loop is present.
Try it as it is: you will find that two files will be generated while it
should be only one.
If you remove 'session_start()' then only one file will be generated: that's
correct!
Fabri
-M
Norbert Wenzel wrote:
Hi,
just for fun I tried the following code:
for($letter = 'A'; $letter <= 'Z'; ++$letter) {
echo($letter . ' ');
}
What surprised me was the output, which looked like this:
A B C [...] Y Z AA AB AC [...] YY YZ
I don't have any idea how these letters get printed o
On Thu, 2006-09-14 at 12:51 -0500, Ray Hauge wrote:
> On Thursday 14 September 2006 12:41, Robert Cummings wrote:
> > On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote:
> > > Hi,
> > >
> > > just for fun I tried the following code:
> > >
> > >
> > > for($letter = 'A'; $letter <= 'Z'; ++$lett
[EMAIL PROTECTED] wrote:
Rob,
I wasn't aware that that would work. I mean I suppose it should, but
basically
this is what I'm doing:
1) Create a new DOMDocument
2) DOMDocument->loadHTML()
3) find the elements I want with getElementsByTag() then finding the
one with
the correct attributes
On Thursday 14 September 2006 12:41, Robert Cummings wrote:
> On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote:
> > Hi,
> >
> > just for fun I tried the following code:
> >
> >
> > for($letter = 'A'; $letter <= 'Z'; ++$letter) {
> > echo($letter . ' ');
> > }
> >
> >
> > What surprised
On Thursday 14 September 2006 12:26, Norbert Wenzel wrote:
> Hi,
>
> just for fun I tried the following code:
>
>
> for($letter = 'A'; $letter <= 'Z'; ++$letter) {
> echo($letter . ' ');
> }
>
>
> What surprised me was the output, which looked like this:
>
> A B C [...] Y Z AA AB AC [...] Y
Norbert Wenzel wrote:
Hi,
just for fun I tried the following code:
for($letter = 'A'; $letter <= 'Z'; ++$letter) {
echo($letter . ' ');
}
What surprised me was the output, which looked like this:
A B C [...] Y Z AA AB AC [...] YY YZ
I don't have any idea how these letters get printed o
> What surprised me was the output, which looked like this:
>
> A B C [...] Y Z AA AB AC [...] YY YZ
>
> I don't have any idea how these letters get printed out, so
> I'd appreciate any guesses or explanations.
http://www.php.net/manual/en/language.operators.increment.php
--
PHP General Maili
On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote:
> Hi,
>
> just for fun I tried the following code:
>
>
> for($letter = 'A'; $letter <= 'Z'; ++$letter) {
> echo($letter . ' ');
> }
>
>
> What surprised me was the output, which looked like this:
>
> A B C [...] Y Z AA AB AC [...]
Hi,
just for fun I tried the following code:
for($letter = 'A'; $letter <= 'Z'; ++$letter) {
echo($letter . ' ');
}
What surprised me was the output, which looked like this:
A B C [...] Y Z AA AB AC [...] YY YZ
I don't have any idea how these letters get printed out, so I'd
appreci
Rob,
I wasn't aware that that would work. I mean I suppose it should, but
basically
this is what I'm doing:
1) Create a new DOMDocument
2) DOMDocument->loadHTML()
3) find the elements I want with getElementsByTag() then finding the one with
the correct attributes
. . .at this point, I need t
On Thu, 14 Sep 2006, Miguel Vaz wrote:
I thought about having a simple php local file that would include my
files that are hosted someplace else, and therefor be able to access my local
database, would that be possible? My first thought would probably be no, but
i cant really do any tests r
[EMAIL PROTECTED] wrote:
Satyam,
I don't see any "innerHTML" or "outerHTML" in relation to PHP DOM. I'm
familiar
with them from a Javascript standpoint, but no references when it comes
to PHP
DOM.
Regards,
Mike
Now that you have the element, why not just call:
$doc->saveXML($node);
Rob
I use fpdf class that you can get at: http://www.fpdf.org/
"Man-wai Chang" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
>> You'd probably have better luck using PHP+PDF Generation Classes of some
>> sort if you need precision layouts for printing... With HTML+CSS it will
>> sti
Brad Fuller wrote:
Miguel -
If my solution is not viable, is there any other way of hosting my
files someplace else, but still access the local database?
Yes. Your remotely hosted code would call the database on your local
server. Something like:
You would also need to allow th
Sorry, I immediatly thought about the client side.
No, I don't know there is any way on the server side with PHP.
Satyam
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Satyam" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, September 14, 2006 4:16 PM
Subject: Re: [PHP] DOM Question. No
On Thursday 14 September 2006 09:47, Ray Hauge wrote:
> On Wednesday 13 September 2006 11:51, Beauford wrote:
> > Hi,
> >
> > I have a form which I want to check for inappropriate words before it is
> > posted. I have used explode to put the string into an array using a space
> > as the delimiter a
On Wednesday 13 September 2006 11:51, Beauford wrote:
> Hi,
>
> I have a form which I want to check for inappropriate words before it is
> posted. I have used explode to put the string into an array using a space
> as the delimiter and then I check it against another array that contains
> the inapp
- Original Message -
From: "Man-wai Chang" <[EMAIL PROTECTED]>
To:
Sent: Thursday, September 14, 2006 1:35 PM
Subject: [PHP] Pre-printed forms
How do you guys and gals use PHP+HTML+CSS to print a report to
preprinted forms with precision?
if the report is to be printed at client sid
Satyam,
I don't see any "innerHTML" or "outerHTML" in relation to PHP DOM. I'm
familiar
with them from a Javascript standpoint, but no references when it comes to PHP
DOM.
Regards,
Mike
Quoting Satyam <[EMAIL PROTECTED]>:
Try the properties innerHTML or outerHTML, the later will include th
Miguel -
> If my solution is not viable, is there any other way of hosting my
> files someplace else, but still access the local database?
Yes. Your remotely hosted code would call the database on your local
server. Something like:
You would also need to allow the connection from the rem
Man-wai Chang wrote:
> How do you guys and gals use PHP+HTML+CSS to print a report to
> preprinted forms with precision?
You'd probably have better luck using PHP+PDF Generation Classes of some
sort if you need precision layouts for printing... With HTML+CSS it will
still vary depending on the ren
At 7:35 PM +0800 9/14/06, Man-wai Chang wrote:
How do you guys and gals use PHP+HTML+CSS to print a report to
preprinted forms with precision?
if the report is to be printed at client side, how do you do it? Via
networked printer?
Hi:
From my old days working with a vertical-mill, precision
> You'd probably have better luck using PHP+PDF Generation Classes of some
> sort if you need precision layouts for printing... With HTML+CSS it will
> still vary depending on the render used...
Not a bad idea. But is there free PHP class to do it?
--
.~. Might, Courage, Vision, SINCERITY. h
At 5:55 PM -0400 9/13/06, Beauford wrote:
The problem with scripts like these is there is so many variables to deal
with. First, this doesn't deal with uppercase. So a word like bAdWoRd would
not get detected, or a word beginning a sentence. Also, a word within a word
like wordbadwordword would
How do you guys and gals use PHP+HTML+CSS to print a report to
preprinted forms with precision?
if the report is to be printed at client side, how do you do it? Via
networked printer?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Fo
Try the properties innerHTML or outerHTML, the later will include the
enclosing tag.
Satyam
- Original Message -
From: "Michael Williams" <[EMAIL PROTECTED]>
To:
Sent: Thursday, September 14, 2006 2:12 AM
Subject: [PHP] DOM Question. No pun intended.
Hi All,
I'm having HTML DOM t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
This is php cconfiguration.
Add this to php.ini
session.cache_limiter=none
[EMAIL PROTECTED] wrote:
> Hi,
> Could somebody explain to me what to do to skip this message I'm getting
> after I search for some products on my page, got the list of produ
Nope.
It looks like this...
drwxr-xr-x 3 root root 4096 Sep 13 10:44 .
drwxr-xr-x 3 root root 4096 Sep 13 10:46 ..
drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight
Foresight being the mounted share.
On 9/13/06 10:49 AM, "John Nichel" <[EMAIL PROTECTED]> wrote:
> Rahul S. Johari wr
How can I set the "drwxr-xr-x" permissions on my mounted share? I've set
everything I possibly could in the windows 2003 server to give the mac os x
user full control!
On 9/13/06 10:49 AM, "John Nichel" <[EMAIL PROTECTED]> wrote:
> Rahul S. Johari wrote:
>> Samba. It's an SMB share.
>>
>>
>>
37 matches
Mail list logo