Dotan Cohen wrote:
> I just found some jerk on StumbleUpon with titles like:
> PHP Essentials (c)2007 (Neil Smyth)
> PHP Cookbook (David Sklar/Adam Trachtenberg)
> PHP 5 Power Programming (c)2005 (Andi Gutmans/Stig Bakken/Derick Rethans )
> A Programmer's Introduction to PHP 4.0 (c)2000 (W. Jason G
Melissa wrote:
I have a DB
with a field type DATE (called TideDATE)
and a field type TIME (one of which is called highFIRST)
How can I format the time fields from displaying 00:00:00 (a 24 hour clock)
to HH:MM am/pm format?
$time = '13:05:00';
list($hr, $min, $sec) = explode(':', $time);
Melissa wrote:
I have a DB
with a field type DATE (called TideDATE)
and a field type TIME (one of which is called highFIRST)
How can I format the time fields from displaying 00:00:00 (a 24 hour clock)
to HH:MM am/pm format?
The DATE function has all kinds of neat formatters, but I do no
I don't believe there is an equivalent in other languages. In Java, the
closest match might be DWR for the Reverse Ajax approach, or maybe GWT
for the "no Javascript" approach.
I'm not completely sure, but I think nobody took exactly the same
approach yet, because Xaja opens a large number of pr
I tried to post to mysql.general, but the message never appeared. So I
am trying my luck here.
How could I build an index for a table created using the "CREATE
TEMPORARY TABLE ... SELECT ... FROM ..." syntax, using an account
without the privilege to use ALTER TABLE?
--
.~. Might. Courage.
Man-wai Chang wrote:
> I tried to post to mysql.general, but the message never appeared. So I
> am trying my luck here.
>
> How could I build an index for a table created using the "CREATE
> TEMPORARY TABLE ... SELECT ... FROM ..." syntax, using an account
> without the privilege to use ALTER TAB
> You didn't send much info along, so I assume you're using some version
> of MySQL 5.0.
Thanks. I figured it out (doesn't need 5.0):
CREATE TEMPORARY haha ( KEY (field1), KEY (field2) )
AS
SELECT po_no, po_date, item_no FROM . WHERE
Then I don't need the privilege for ALTER TABLE.
-
> CREATE TEMPORARY haha ( KEY (field1), KEY (field2) )
> AS
> SELECT po_no, po_date, item_no FROM . WHERE
> Then I don't need the privilege for ALTER TABLE.
I meant I could build index on a temp table without
the privilege to use "ALTER TABLE" by making the index
definitions as part of t
Colin Guthrie wrote:
> Dotan Cohen wrote:
>> I just found some jerk on StumbleUpon with titles like:
>> PHP Essentials (c)2007 (Neil Smyth)
>> PHP Cookbook (David Sklar/Adam Trachtenberg)
>> PHP 5 Power Programming (c)2005 (Andi Gutmans/Stig Bakken/Derick Rethans )
>> A Programmer's Introduction to
Jochem Maas wrote:
> Colin Guthrie wrote:
>> Don't be so naive as to think they just don't exist. It's all about
>> personal integrity - people who work with Free and Open Source systems
>> like PHP should feel pretty bad if they abuse someone else's hard work
>> by not buying the book.
>
> should
> All I'm really saying is that there are a lot of questionable things out
> there, be it pirated software, books, movies and music, or other even
> more deplorable things. These problems will never, ever be solved by
> locking away the means there has to be the desire to not reach that end.
R
sbbc
aojsaw
duoo iyuxo
Use something like http://phpmailer.sf.net/ which handles everything for
you already :)
Or:
http://www.phpguru.org/static/htmlMimeMail5.html
and
http://www.phpguru.org/downloads/html.mime.mail/
--
Richard Heyes
+44 (0)844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and Help
I have decided to take a stab at lecturing, and have taken on a group of
2nd year computer science students at UWC to teach PHP to.
I would like to make use of some podcasts and/or other CC licensed
content to make it a little more enjoyable than "Read the manual, write
unit tests, code, ship" w
Hi:
I have to agree with Col on this one. Books are not shareware,
freeware or open source. They are written for profit and anyone
wanting to pirate the books are stealing, plain and simple. And if
anyone thinks people will buy the book if it's useful to them, then
that's just silly thinking.
Hi.
On Monday 16 July 2007 12:42, Dotan Cohen wrote:
> So, suckers, I'm with you now, and I'll start pirating again.
This is a real shame (not to mention a foolish thing to post to a publicly
archived mailing list). As a user of open source technology you are
benefiting directly from the PHP
http://www.thepiratebay.org
On Monday 16 July 2007 14:42:25 Dotan Cohen wrote:
> On 16/07/07, Austin C <[EMAIL PROTECTED]> wrote:
> > Dont be so harsh. I used to torrent PHP books, and everyone I turrented,
> > I ended up buying from a book store so I could take it with me. So, that
> > kind of s
On 16/07/07, Austin C <[EMAIL PROTECTED]> wrote:
Dont be so harsh. I used to torrent PHP books, and everyone I turrented, I
ended up buying from a book store so I could take it with me. So, that kind
of stuff actually helped me. But, ive stopped torrenting now.
I guess that I'm naive. I've gott
Dotan Cohen wrote:
On 16/07/07, Austin C <[EMAIL PROTECTED]> wrote:
Dont be so harsh. I used to torrent PHP books, and everyone I
turrented, I
ended up buying from a book store so I could take it with me. So, that
kind
of stuff actually helped me. But, ive stopped torrenting now.
I guess tha
Stut wrote:
> Dotan Cohen wrote:
>> On 16/07/07, Austin C <[EMAIL PROTECTED]> wrote:
>>> Dont be so harsh. I used to torrent PHP books, and everyone I
>>> turrented, I
>>> ended up buying from a book store so I could take it with me. So,
>>> that kind
>>> of stuff actually helped me. But, ive stopp
Richard Davey wrote:
> ...snip...
> Someone ought to create a 'carbon footprint per email sent'
> calculator. Total up how much energy is literally wasted in the
> transmission (and consequent receiving) of just one message. I bet if
> you add it all up it'd put a printed book, which afterall *can*
How would I use fileatime to check if the file is older then 7 days?
I have a directory with .txt and .txt.asc files.
What I want to do is..
Check the age of all files ending in .txt.asc
and if the file *.txt.asc is older then 7 days
delete thatfile.txt.asc and also thatfile.txt
--
PH
[EMAIL PROTECTED] wrote:
How would I use fileatime to check if the file is older then 7 days?
You want filemtime not fileatime.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://us.php.net/manual/en/function.fileatime.php
$filename = 'somefile.txt';
if (file_exists($filename) && fileatime($filename) < (time()-(7*24*60*60)) )
{
unlink($filename);
}
Read docs!
Suhas
On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
How would I use fileatime to check
[EMAIL PROTECTED] wrote:
> How would I use fileatime to check if the file is older then 7 days?
Erm, If the fileatime is > 7 days???
OK, not quite. This checks the file ACCESS time. This means the last
time the file was read etc.
Now bear in mind that access times for files is generally a very u
Suhas Pharkute wrote:
http://us.php.net/manual/en/function.fileatime.php
$filename = 'somefile.txt';
if (file_exists($filename) && fileatime($filename) <
(time()-(7*24*60*60)) )
{
unlink($filename);
}
Read docs!
You too! The OP wanted a way to "check the age of all files". The
fileatime
I am using the code to send an html email (phpmailer class) now I need to
somehow determine if the recipient uses text only email and change email to
plain. Is this possible?
include( 'html_emails/html2.php' );
$mail_body = ob_get_contents();
ob_end_clean();
include("../mailer/clas
Ross wrote:
I am using the code to send an html email (phpmailer class) now I need to
somehow determine if the recipient uses text only email and change email to
plain. Is this possible?
Not really, no. You can send both HTML and plain text versions in the
same email and nearly all clients wi
Ross wrote:
I am using the code to send an html email (phpmailer class) now I need to
somehow determine if the recipient uses text only email and change email to
plain. Is this possible?
No.
--
Richard Heyes
+44 (0)844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk
Hi I have this script which pulls 1 random item from a txt file.
How would I modify it to pull 10 random items.
$delim = "\n";
$quotefile = "names.txt";
$fp = fopen($quotefile, "r");
$contents = fread($fp, filesize($quotefile));
$quote_arr = explode($delim,$contents);
fclose($fp);
// genera
Hello,
I use the following GetArray for returning an array from mysql results.
But having a hard time modifying it for returning a simple associative array
Like:
$conn->GetAssoc('SELECT id, name from manufacturers')
Array ( [2] => BMW [1] => MAZDA [9] => FORD )
function GetAr
2007. 07. 16, hétfő keltezéssel 15.40-kor [EMAIL PROTECTED] ezt írta:
> Hi I have this script which pulls 1 random item from a txt file.
> How would I modify it to pull 10 random items.
>
> $delim = "\n";
> $quotefile = "names.txt";
> $fp = fopen($quotefile, "r");
> $contents = fread($fp, file
On Mon, 2007-07-16 at 15:40 +0100, [EMAIL PROTECTED] wrote:
> Hi I have this script which pulls 1 random item from a txt file.
> How would I modify it to pull 10 random items.
>
> $delim = "\n";
> $quotefile = "names.txt";
> $fp = fopen($quotefile, "r");
> $contents = fread($fp, filesize($quot
On Mon, 2007-07-16 at 07:41 -0700, Andras Kende wrote:
> Hello,
>
> I use the following GetArray for returning an array from mysql results.
>
> But having a hard time modifying it for returning a simple associative array
>
> Like:
>
> $conn->GetAssoc('SELECT id, name from manufacturers')
>
> A
On 7/14/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
You must have missed this:
http://php.net/~derick/meeting-notes.html#remove-support-for-and-script-language-php-and-add-php-var
Actually, yes, I did. I'll have to read through some of that stuff.
Thanks for the link!
> Also note that,
On Mon, 2007-07-16 at 16:49 +0200, Zoltán Németh wrote:
> 2007. 07. 16, hétfő keltezéssel 15.40-kor [EMAIL PROTECTED] ezt írta:
> > Hi I have this script which pulls 1 random item from a txt file.
> > How would I modify it to pull 10 random items.
> >
> > > $delim = "\n";
> > $quotefile = "names
On Mon, 2007-07-16 at 16:49 +0200, Zoltán Németh wrote:
> 2007. 07. 16, hétfő keltezéssel 15.40-kor [EMAIL PROTECTED] ezt írta:
> > Hi I have this script which pulls 1 random item from a txt file.
> > How would I modify it to pull 10 random items.
> >
> > > $delim = "\n";
> > $quotefile = "names
On Mon, 2007-07-16 at 10:52 -0400, Robert Cummings wrote:
> On Mon, 2007-07-16 at 07:41 -0700, Andras Kende wrote:
> > Hello,
> >
> > I use the following GetArray for returning an array from mysql results.
> >
> > But having a hard time modifying it for returning a simple associative array
> >
>
Thank you VERY much Jay, Chris and Gary!
I tried the php code to change it and that worked Great, as Chris suggested
I am about to see how it flies with changing the SQL DB directly as Gary
suggested.
I might even just ADD a new DB field for the new format...
The mktime function looks VERY inte
On Friday 13 July 2007 22:38, Robert Cummings wrote:
> > in which the sender is responsible for storing the mail until the
> > intended recipient retrieves it seems like a good start.
>
> Bleh, that's so easily solvable for spammers. Create one real message,
> then softllink it for every actual em
On Monday 16 July 2007 19:42, Dotan Cohen wrote:
> I guess that I'm naive. I've gotten a few "what's the address"
> requests, but none from authors...
What makes you think any of the authors are subscribed to this list? Even
if some are, what makes you think they monitor the list 24/7? They mig
I actually thought this was a form of SPAM when I saw the first
several lines of the message. I mean, why not make it look as though
you're appalled by the acts of some who upload the books in order to
garner more interest? In fact, the OP even stated that he got some
inquiries, bu
2007. 07. 16, hétfő keltezéssel 10.56-kor Robert Cummings ezt írta:
> On Mon, 2007-07-16 at 16:49 +0200, Zoltán Németh wrote:
> > 2007. 07. 16, hétfő keltezéssel 15.40-kor [EMAIL PROTECTED] ezt írta:
> > > Hi I have this script which pulls 1 random item from a txt file.
> > > How would I modify it
On Mon, 2007-07-16 at 23:04 +0800, Crayon Shin Chan wrote:
> On Friday 13 July 2007 22:38, Robert Cummings wrote:
>
> > > in which the sender is responsible for storing the mail until the
> > > intended recipient retrieves it seems like a good start.
> >
> > Bleh, that's so easily solvable for spa
On Monday 16 July 2007 20:51, Richard Davey wrote:
> Someone ought to create a 'carbon footprint per email sent'
> calculator. Total up how much energy is literally wasted in the
> transmission (and consequent receiving) of just one message. I bet if
> you add it all up it'd put a printed book, wh
Daniel Brown wrote:
>P.S. - If a rooster lays an egg in a nest under a tree that falls
> in the woods and no one is there to hear it, how soon will train B
> meet train A if the wind blows the egg off the top of a barn facing
> west before sundown?
>
>No matter what shape or form, theft is
>> Every single
one of us has been guilty of it at some time or another
You can't make that assumption.
--
Richard Heyes
+44 (0)844 801 1072
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
--
PHP General Mailing List (http://w
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 16 July 2007 15:40
> To: php-general@lists.php.net
> Subject: [PHP] multiple random items
>
>
> Hi I have this script which pulls 1 random item from a txt file.
> How would I modify it to pull 10 random items
Richard Heyes wrote:
>> Every single
one of us has been guilty of it at some time or another
You can't make that assumption.
Sure he can. Assumptions are like opinions which are like ...well you
know what I'm getting at...we all have them. And if someone can honestly
say they've never stole
Daniel Brown wrote:
P.S. - If a rooster lays an egg in a nest under a tree that falls
in the woods and no one is there to hear it, how soon will train B
meet train A if the wind blows the egg off the top of a barn facing
west before sundown?
Oh, I know this! Roosters can't lay eggs.
--
PHP
Tom Ray [Lists] wrote:
Richard Heyes wrote:
>> Every single
one of us has been guilty of it at some time or another
You can't make that assumption.
Sure he can. Assumptions are like opinions which are like ...well you
know what I'm getting at...we all have them. And if someone can honestly
Melissa W. Dickens wrote:
Thank you VERY much Jay, Chris and Gary!
I tried the php code to change it and that worked Great, as Chris suggested
I am about to see how it flies with changing the SQL DB directly as Gary
suggested.
I might even just ADD a new DB field for the new format...
The mkt
I have an old PHP page without sessions. When the user submits the form,
and then clicks the browser back button, the prior form data is retained.
If I now have that PHP page require another page that uses session_start,
when the user submits the form, and then clicks the browser back button,
Hi Crayon,
Monday, July 16, 2007, 4:22:14 PM, you wrote:
> I think no matter which way you dice it, sending 1 email is a lot more
> energy efficient than printing 1 book. Just because the tree itself is
> renewable, the *energy* used in cutting it down, turning it into paper,
> turning the paper
Andras Kende wrote:
Hello,
I use the following GetArray for returning an array from mysql results.
But having a hard time modifying it for returning a simple associative array
Like:
$conn->GetAssoc('SELECT id, name from manufacturers')
Array ( [2] => BMW [1] => MAZDA [9] => FORD )
Anyone who is concerned about the trees doesn't need to steal the book.
They can buy it as a PDF.
Janet
Richard Davey wrote:
Hi Crayon,
Monday, July 16, 2007, 4:22:14 PM, you wrote:
I think no matter which way you dice it, sending 1 email is a lot more
energy efficient than printing 1 bo
Good day,
I've been struggling with this problem for quite a while now, I've
looked on google, but to no avail, documentation doesn't help me out
either. Now, I know this isn't a pure php problem as such, but rather a
problem in the cooperation of apache2.2, php and fastcgi.
So, here's what
Hi Jochem,
Monday, July 16, 2007, 6:11:12 PM, you wrote:
> no personal attack is intended here ... I hope you don't mind if I
> rebutt/discuss, I find it a rather interesting topic :-)
Not at all, my original post wasn't meant personally towards you
specifically, just in general.
> did you look
Hello DJ,
Saturday, July 14, 2007, 1:34:36 AM, you wrote:
> Isn't the sender's Email $contacto_email ?
> if($sendnotification == true) {
>$notification_message = "Obrigado por nos contatar,
> $contato_name. Recebemos sua mensagem e entraremos em contato em breve";
>
Hello list:
I am installed apache 2.2.4 and php 5.2.3.
sets:
1) Install the Apache without problems
2) Installs php without problems, following the passages of the INSTALL
Problem:
when it raises the apache with: ./apachectl start
leaves the following error
httpd: Syntax error on line 53 of /u
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Monday, July 16, 2007 7:52 AM
To: Andras Kende
Cc: php-general@lists.php.net
Subject: Re: [PHP] mysql_fetch_array to associative array
On Mon, 2007-07-16 at 07:41 -0700, Andras Kende wrote:
> Hello,
>
> I use the
On Mon, 2007-07-16 at 13:37 -0700, Andras Kende wrote:
>
> Hi Rob,
>
> Thanks for your help, its associative but I forget to mention its needs
> To be a single dimensional associative array.
>
>
> $result = array();
> while ( $row = mysql_fetch_assoc($get) ) {
> $result[] = $row;
> }
>
> This
Melissa W. Dickens
[EMAIL PROTECTED]
770-667-8933
843-838-7388
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 16, 2007 12:50 PM
To: Melissa W. Dickens
Hmm...
Another reason to upgrade!
We are running version 4 something or other!
--
PHP Gener
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Monday, July 16, 2007 1:46 PM
To: Andras Kende
Cc: php-general@lists.php.net
Subject: RE: [PHP] mysql_fetch_array to associative array
On Mon, 2007-07-16 at 13:37 -0700, Andras Kende wrote:
>
> Hi Rob,
>
> Thanks
Crayon Shin Chan wrote:
What makes you think any of the authors are subscribed to this list?
I am subscribed to this list, and I'm disgusted that somebody posted the
URL to the pirate site. I see that more than 2,000 copies of my "PHP
Solutions: Dynamic Web Design Made Easy" have been downloa
David Powers wrote:
Crayon Shin Chan wrote:
What makes you think any of the authors are subscribed to this list?
I am subscribed to this list, and I'm disgusted that somebody posted the
URL to the pirate site. I see that more than 2,000 copies of my "PHP
Solutions: Dynamic Web Design Made Ea
Stut wrote:
I'm not defending what they do, but
don't expect it to go anywhere - it's proven several times to be
untouchable and is likely here to stay for a very long time.
I'm not naive enough to believe that piracy can be stopped. Sadly, the
publicity surrounding such sites and their philo
-Original Message-
From: <[EMAIL PROTECTED]>
To:
Date: Mon, 16 Jul 2007 14:25:47 +0100
Subject: Re: [PHP] Unlink file older then 7 days
> How would I use fileatime to check if the file is older then 7 days?
>
>
>
>
something like:
$access = fileatime (c:\path\to\file);//assuming win
Exactly, I use Microsoft SQL Server as db Server and it i son another
machine. I need to configure my php to connect with that server. On Windows
with appserv that work fine but on Linux the php code doesn't work. Could
you help me to configure that?
I don't have internet.
Waiting for your help...
Lic. Eduardo R. Hernández Osorio wrote:
Exactly, I use Microsoft SQL Server as db Server and it i son another
machine. I need to configure my php to connect with that server. On Windows
with appserv that work fine but on Linux the php code doesn't work. Could
you help me to configure that?
http
Instruct ICC wrote:
I have an old PHP page without sessions. When the user submits the
form, and then clicks the browser back button, the prior form data is
retained.
If I now have that PHP page require another page that uses
session_start, when the user submits the form, and then clicks the
On Monday 16 July 2007, Richard Davey wrote:
> As a published author I would *rather* people read a PDF of my work,
> than not read it at all because they couldn't afford the printed
> version. But that is my choice to make, not yours.
>
> I would never be so two-faced as to rant about pirates and
On Monday 16 July 2007, Richard Davey wrote:
> Since humans have existed this has been the case. For someone to have
> that attitude shouldn't be unexpected. But even if you can come up
> with an alternative that works out for everyone, I should still have
> my right to not go along with it, and r
On Mon, 2007-07-16 at 13:37 -0700, Andras Kende wrote:
>
> > function GetAssoc($query) {
> > $get = $this->Execute ( $query );
> >
> $result = array();
> > while ( $row = mysql_fetch_array($get) ) {
Good day to all!
I would like to ask for some help with creating automatically thumbnail
pictures using PHP..
thanks in advance!
vanessa vega
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 17 Jul 2007, Vanessa Vega wrote:
> Good day to all!
>
> I would like to ask for some help with creating automatically thumbnail
> pictures using PHP..
>
> thanks in advance!
Well, that's a pretty vague question. The more specific you are, the
better answers you'll get. That being said,
Sorry for not being too specific...Well, to give an overview, i am uploading
images on the server, i save the names of the images on my database(mysql)
for retrieving them when i display it on the site.. im doing some kind of a
gallery using thumbnails but i just resize the images to a smaller s
I have to agree with Col on this one. Books are not shareware, freeware
or open source. They are written for profit and anyone wanting to pirate
Not really. You could open a sample book in bookstores, scan the
chapters to decide whether you are gonna buy it. It's not porn magazines
wrapped in
I just use the library..
On 7/16/07, Man-wai Chang <[EMAIL PROTECTED]> wrote:
> I have to agree with Col on this one. Books are not shareware, freeware
> or open source. They are written for profit and anyone wanting to pirate
Not really. You could open a sample book in bookstores, scan the
cha
You have to draw the line between:
1. a book
2. a secret
By not allowing customers to sample the book in a bookstore, you would
be selling secrets.
--
.~. Might. Courage. Vision. Sincerity. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\
I don't see why people need to buy the books. I learned PHP buy
borrowing one book from the library, then using php.net for more
advanced functions.
On 7/16/07, Man-wai Chang <[EMAIL PROTECTED]> wrote:
You have to draw the line between:
1. a book
2. a secret
By not allowing customers to sample
Vanessa Vega wrote:
Good day to all!
I would like to ask for some help with creating automatically thumbnail
pictures using PHP..
thanks in advance!
vanessa vega
Have a look at:
http://www.sitepoint.com/article/php-gallery-system-minutes
Stephen
--
PHP General Mailing List (http://
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Monday, July 16, 2007 6:12 PM
To: Andras Kende
Cc: php-general@lists.php.net
Subject: RE: [PHP] mysql_fetch_array to associative array
On Mon, 2007-07-16 at 13:37 -0700, Andras Kende wrote:
>
> > funct
Hey,
Just wondering if anyone can help me out. I have been used to using $_POST
but from what I can tell it isn't supported in PHP 5. What do you use
instead?
Thanks,
Nahtna
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote:
> Hey,
>
> Just wondering if anyone can help me out. I have been used to using $_POST
> but from what I can tell it isn't supported in PHP 5. What do you use
> instead?
Could you point us to the literature that says it's not supported in
P
85 matches
Mail list logo