[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Colin Guthrie
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

Re: [PHP] Time formatting issues

2007-07-16 Thread Chris
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);

Re: [PHP] Time formatting issues

2007-07-16 Thread [EMAIL PROTECTED]
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

Re: [PHP] Re: Announcing Xaja, a PHP Reverse Ajax framework

2007-07-16 Thread David Négrier
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

[PHP] mysql question

2007-07-16 Thread Man-wai Chang
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.

[PHP] Re: mysql question

2007-07-16 Thread Daniel Kullik
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 TABLE?

[PHP] Re: mysql question

2007-07-16 Thread Man-wai Chang
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. --

[PHP] Re: mysql question

2007-07-16 Thread Man-wai Chang
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 the

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Jochem Maas
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 PHP 4.0

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Colin Guthrie
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 they?

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Man-wai Chang
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.

[PHP] halfhearted girl scout

2007-07-16 Thread php
sbbc aojsaw duoo iyuxo

Re: [PHP] PHP mail with attachment

2007-07-16 Thread Richard Heyes
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

[PHP] PHP 101 Podcasts

2007-07-16 Thread Paul Scott
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

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread tedd
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

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Mark Kelly
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

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Sancar Saran
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 stuff

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Dotan Cohen
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

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Stut
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 that

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Colin Guthrie
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 stopped torrenting now.

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Colin Guthrie
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*

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread chris
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 --

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread Stut
[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

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread Suhas Pharkute
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 if

[PHP] Re: Unlink file older then 7 days

2007-07-16 Thread Colin Guthrie
[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

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread Stut
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

[PHP] html emails and plain text dectection

2007-07-16 Thread Ross
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();

Re: [PHP] html emails and plain text dectection

2007-07-16 Thread Stut
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

Re: [PHP] html emails and plain text dectection

2007-07-16 Thread Richard Heyes
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

[PHP] multiple random items

2007-07-16 Thread chris
Hi I have this script which pulls 1 random item from a txt file. How would I modify it to pull 10 random items. ?php $delim = \n; $quotefile = names.txt; $fp = fopen($quotefile, r); $contents = fread($fp, filesize($quotefile)); $quote_arr = explode($delim,$contents); fclose($fp); //

[PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
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

Re: [PHP] multiple random items

2007-07-16 Thread Zoltán Németh
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. ?php $delim = \n; $quotefile = names.txt; $fp = fopen($quotefile, r); $contents = fread($fp,

Re: [PHP] multiple random items

2007-07-16 Thread Robert Cummings
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. ?php $delim = \n; $quotefile = names.txt; $fp = fopen($quotefile, r); $contents = fread($fp,

Re: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Robert Cummings
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') Array ( [2]

Re: [PHP] PHP short tags: Questions

2007-07-16 Thread Daniel Brown
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,

Re: [PHP] multiple random items

2007-07-16 Thread Robert Cummings
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. ?php $delim = \n; $quotefile = names.txt;

Re: [PHP] multiple random items

2007-07-16 Thread Robert Cummings
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. ?php $delim = \n; $quotefile = names.txt;

Re: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Robert Cummings
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 Like:

RE: [PHP] Time formatting issues

2007-07-16 Thread Melissa W. Dickens
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

Re: [PHP] SMS questions

2007-07-16 Thread Crayon Shin Chan
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 email

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Crayon Shin Chan
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 might

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Daniel Brown
SNIP AMT=all /SNIP 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

Re: [PHP] multiple random items

2007-07-16 Thread Zoltán Németh
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 to pull

Re: [PHP] SMS questions

2007-07-16 Thread Robert Cummings
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 spammers.

Re: Re[2]: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Crayon Shin Chan
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, which

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Colin Guthrie
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

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Richard Heyes
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

RE: [PHP] multiple random items

2007-07-16 Thread Edward Kay
-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.

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Tom Ray [Lists]
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 stolen

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Tom Ray [Lists]
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. --

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Richard Heyes
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

Re: [PHP] Time formatting issues

2007-07-16 Thread [EMAIL PROTECTED]
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

[PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-16 Thread Instruct ICC
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,

Re[4]: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Richard Davey
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

Re: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Jim Lucas
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 )

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Janet Valade
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

[PHP] installing php5.2.3 on apache2.2 \w mod_fastcgi

2007-07-16 Thread M. Sokolewicz
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

Re[2]: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Richard Davey
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

Re[8]: [PHP] Newbie seeks urgent help

2007-07-16 Thread Luc
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;

[PHP] problemas apache 2.2.4 + php 5.2.2

2007-07-16 Thread Eduardo Arévalo
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

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
-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

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Robert Cummings
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 creates

RE: [PHP] Time formatting issues

2007-07-16 Thread Melissa W. Dickens
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

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
-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

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread David Powers
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

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Stut
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

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread David Powers
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

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread Ray
-Original Message- From: [EMAIL PROTECTED] To: php-general@lists.php.net 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

RE: [PHP] acerca de extensiones SQL Server

2007-07-16 Thread Lic. Eduardo R. Hernández Osorio
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...

Re: [PHP] acerca de extensiones SQL Server

2007-07-16 Thread Chris
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?

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-16 Thread Chris
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

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Larry Garfield
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

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Larry Garfield
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

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Robert Cummings
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) ) {

[PHP] Creating thumbnails

2007-07-16 Thread Vanessa Vega
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

Re: [PHP] Creating thumbnails

2007-07-16 Thread Stephen Edberg
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, I'm

Re: [PHP] Creating thumbnails

2007-07-16 Thread Vanessa Vega
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

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Man-wai Chang
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

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread heavyccasey
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

[PHP] Re: Pirate PHP books online?

2007-07-16 Thread Man-wai Chang
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! /( _

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread heavyccasey
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

Re: [PHP] Creating thumbnails

2007-07-16 Thread Stephen
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

RE: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Andras Kende
-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:

[PHP] $_POST

2007-07-16 Thread Nathan Wallis
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

Re: [PHP] $_POST

2007-07-16 Thread Robert Cummings
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 PHP5