Re: [PHP] Creating a text file

2007-07-19 Thread Ryan Lao
okay, i'll try that example you gave me... thanks! ""Daniel Brown"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 7/17/07, Ryan Lao <[EMAIL PROTECTED]> wrote: >> i made a simple PHP form that would ask for the users complete name, a >> button that would browse to a file that t

Re: [PHP] Save email as .eml file

2007-07-19 Thread Handa Utsav
Hi there, Well it can be easily done. Just input your mail (make 'procmail' fwd it) to your script & script would save it as .eml . Try to use the following code for script : CODE # Hope this helps you out. Greetings Utsav Handa -- PHP General Mailing List (ht

[PHP] Re: converting extended chars to plain ascii

2007-07-19 Thread ahlist
On 7/19/07, ahlist <[EMAIL PROTECTED]> wrote: Hello, A libarary I'm using (the cybersource api if it helps any) is dying when I pass it "extended" chars - such as bjorn (two dots over the o - not sure of the actual name of this char -sorry). For some reason, the newest version of cybersourc's a

Re: [PHP] Save email as .eml file

2007-07-19 Thread bkozora
I've been struggling with the same issue, does anyone have a link to or know of a way to automatically create eml files using PHP? The links that Google search returned were mostly specific to email clients, I need to create the eml files on the server. Thanks -- View this message in context: ht

Re: [PHP] repetition of tedious references

2007-07-19 Thread Arpad Ray
Olav Mørkrid wrote: i didn't know about empty. thanks! do you have a link to this new php 6 ? : convention? I haven't seen any documentation yet but it currently operates like: ($a ?: $b) === (empty($a) ? $b : $a) with the exception that if $a is unset then an E_NOTICE error is raised. It rem

Re: [PHP] repetition of tedious references

2007-07-19 Thread Chris
tedd wrote: At 5:41 PM -0400 7/19/07, Eric Butera wrote: On 7/19/07, tedd <[EMAIL PROTECTED]> wrote: But, Rasmus gave me this: $action = isset($_GET['action']) ? $_GET['action'] : null; Since you're responding to someone else asking about such things where there is the chance someone can j

Re: [PHP] repetition of tedious references

2007-07-19 Thread tedd
At 5:41 PM -0400 7/19/07, Eric Butera wrote: On 7/19/07, tedd <[EMAIL PROTECTED]> wrote: But, Rasmus gave me this: $action = isset($_GET['action']) ? $_GET['action'] : null; Since you're responding to someone else asking about such things where there is the chance someone can just copy & pa

Re: [PHP] session_decode from session handler

2007-07-19 Thread Ryan Graciano
PHP passed $data to my write($id) function, and then I wrote it to the database. In the code below, I have retrieved it from the database. I presume that it used encode_session to generate $data. I tried calling unserialize() on it for good measure, but it wasn't able to parse the data. When

Re: [PHP] repetition of tedious references

2007-07-19 Thread Instruct ICC
From: tedd <[EMAIL PROTECTED]> Olav: Mine too. But, Rasmus gave me this: $action = isset($_GET['action']) ? $_GET['action'] : null; Which could be translated to: $language = isset ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) : "*"; I think that might help. Any

Re: [PHP] repetition of tedious references

2007-07-19 Thread Eric Butera
On 7/19/07, tedd <[EMAIL PROTECTED]> wrote: At 2:24 PM +0200 7/18/07, Olav Mørkrid wrote: >consider the following statement: > >$language = >isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && >$_SERVER["HTTP_ACCEPT_LANGUAGE"] != "" ? >$_SERVER["HTTP_ACCEPT_LANGUAGE"] : "*"; > >when using strings in array

Re: [PHP] session_decode from session handler

2007-07-19 Thread Tijnema
On 7/19/07, Ryan Graciano <[EMAIL PROTECTED]> wrote: I'm having an issue getting session_decode to work from my session handler in PHP 5.2.3. Here's a short code snippet that demonstrates what I'm trying to do (from my read handler) - public function read($id) { var_dump($data); // pri

Re: [PHP] repetition of tedious references

2007-07-19 Thread Tijnema
On 7/19/07, tedd <[EMAIL PROTECTED]> wrote: At 2:24 PM +0200 7/18/07, Olav Mørkrid wrote: >consider the following statement: > >$language = >isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && >$_SERVER["HTTP_ACCEPT_LANGUAGE"] != "" ? >$_SERVER["HTTP_ACCEPT_LANGUAGE"] : "*"; > >when using strings in array

Re: [PHP] repetition of tedious references

2007-07-19 Thread tedd
At 2:24 PM +0200 7/18/07, Olav Mørkrid wrote: consider the following statement: $language = isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]) && $_SERVER["HTTP_ACCEPT_LANGUAGE"] != "" ? $_SERVER["HTTP_ACCEPT_LANGUAGE"] : "*"; when using strings in arrays that may be non-existing or empty, you have to rep

RE: [PHP] Pirate PHP books online?

2007-07-19 Thread Chris Boget
> > The idea of even offering an electronic version should be to drive > > sales for the hard copy. Maybe offer a "Condensed Version" > > electronically, that has enough content that readers can get enough of > > a feel for the product to drive a buying decision. Throughout, make > > reference

[PHP] Re: If MySQL column/field values are in an PHP array

2007-07-19 Thread kvigor
OK, $cen_fields is an array of a store's Name, City, and State concatenated. $cen_fields[0] echo'd looks like this: CHIEFS SUPERMARKET ST. MARYS OH $cen_fields[1] echo'd looks like this: CHIEFS SUPERMARKET CELINA OH $in_list is the concatenated store's Name, City, and State but formatted w/ co

[PHP] about SQL authentication on PHP

2007-07-19 Thread Lic. Eduardo R. Hernández Osorio
Hello: I'm trying to connect to a SQL Server database with PHP using windows auth. To do that I modified the PHP.ini file changing the line above: ... ; Use NT authentication when connecting to the server mssql.secure_connection = Off ... putting mssql.secure_connection = On ... instead but when

Re: [PHP] Creating a text file

2007-07-19 Thread tedd
At 10:29 AM +0800 7/18/07, Ryan Lao wrote: i made a simple PHP form that would ask for the users complete name, a button that would browse to a file that the user wants to upload, a text area for additional comments, and a submit button. This form works just fine. what i want to achieve next is f

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

2007-07-19 Thread tedd
At 7:01 PM -0500 7/18/07, Larry Garfield wrote: On Wednesday 18 July 2007, tedd wrote: > And, I've spent enough time in court to know the difference. Apparently not. And how much time have you spent in court? Rhetorical question and not germane to the topic, but I have spent a considerabl

Re: [PHP] Compiling/Building PHP 5.2.3 on Mac OS X 10.3.9

2007-07-19 Thread Greg Donald
On 7/19/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Unless anyone has a better solution of getting php 5.2.3 on mac os x 10.3.9 http://destiney.com/blog/php-4-5-macos-x -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] Compiling/Building PHP 5.2.3 on Mac OS X 10.3.9

2007-07-19 Thread Rahul Sitaram Johari
Ave, I¹m running php 5.0.2 on Mac OS X 10.3.9 (Panther) which I had installed using entropy.ch¹s installer. Time to upgrade ­ but not sure which way to go. Apparently Entropy does not support anything < 10.4 (Tiger). I¹ve looked around macports & fink but can¹t get any clear direction. Tried mac

[PHP] converting extended chars to plain ascii

2007-07-19 Thread ahlist
Hello, A libarary I'm using (the cybersource api if it helps any) is dying when I pass it "extended" chars - such as bjorn (two dots over the o - not sure of the actual name of this char -sorry). For some reason, the newest version of cybersourc's api aborts on this input. Can anyone recommend

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

2007-07-19 Thread tedd
At 7:05 PM -0500 7/18/07, Larry Garfield wrote: On Wednesday 18 July 2007, tedd wrote: And just because they do, doesn't make it any less accurate either. I don't care if Hitler agreed with me, there is a fundamental wrongful act of taking something that is not yours regardless of what you,

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread tedd
At 8:52 AM -0500 7/19/07, Larry Garfield wrote: On Thursday 19 July 2007, Daniel Brown wrote: > The problem with that, though, is that a lot of publishers require exclusivity, so an author is bound (no pun intended) by contract not to publish elsewhere - including on their own website.

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

2007-07-19 Thread tedd
At 8:48 AM -0500 7/19/07, Larry Garfield wrote: And a side note, while this thread may not have anything to do with PHP code it is vitally important that those involved in the creation and business of information and expression understand copyright law. You don't need to be a professional lawyer

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Tijnema
On 7/19/07, Austin Denyer <[EMAIL PROTECTED]> wrote: Jim Moseby wrote: >> The problem with that, though, is that a lot of publishers require >> exclusivity, so an author is bound (no pun intended) by contract not >> to publish elsewhere - including on their own website. >> > The idea of even

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Austin Denyer
Jim Moseby wrote: >> The problem with that, though, is that a lot of publishers require >> exclusivity, so an author is bound (no pun intended) by contract not >> to publish elsewhere - including on their own website. >> > The idea of even offering an electronic version should be to drive sales

[PHP] session_decode from session handler

2007-07-19 Thread Ryan Graciano
I'm having an issue getting session_decode to work from my session handler in PHP 5.2.3. Here's a short code snippet that demonstrates what I'm trying to do (from my read handler) - public function read($id) { var_dump($data); // prints out the serialized session correctly $retval = sess

[PHP] Re: If MySQL column/field values are in an PHP array

2007-07-19 Thread M. Sokolewicz
kvigor wrote: I created an array using the following: $in_list = "'".join("','",$cen_chiefs)."'"; //$cen_chiefs is an array $query_cen_chiefs = "SELECT * FROM central WHERE CONCAT(strName,' ',strCity,' ',strState) IN({$in_list})"; How would I go about adding an AND clause to the above query

RE: [PHP] Pirate PHP books online?

2007-07-19 Thread Jim Moseby
> > The problem with that, though, is that a lot of publishers require > exclusivity, so an author is bound (no pun intended) by contract not > to publish elsewhere - including on their own website. > The idea of even offering an electronic version should be to drive sales for the hard copy.

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Larry Garfield
On Thursday 19 July 2007, Daniel Brown wrote: > > I didn't want to get involved in this thread, though it was interesting > > to read... > > However, an idea just came into my mind: what if you, as the author, > > could offer a download for a price which would be the same as what you > > get after

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

2007-07-19 Thread Larry Garfield
On Wednesday 18 July 2007, Jay Blanchard wrote: > [snip] > ...all manner of interesting debate... > [/snip] > > What, exactly, is the difference between this particular brand of > copyright infringement and taking the book from a bookstore without > paying for it? Am I committing copyright infringe

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Daniel Brown
On 7/19/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: 2007. 07. 19, csütörtök keltezéssel 13.28-kor David Powers ezt írta: > Dotan Cohen wrote: > > David, I am the OP, and I have not posted the URL to the pirate site. > > Nor did I see it posted anywhere. Check the email, maybe someone else > > se

Re: [PHP] Creating a text file

2007-07-19 Thread Daniel Brown
On 7/18/07, Ryan Lao <[EMAIL PROTECTED]> wrote: Thanks for your reply, I want to create individual text files for every form submitted. ""Daniel Brown"" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 7/17/07, Ryan Lao <[EMAIL PROTECTED]> wrote: > > i made a simple PHP fo

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Zoltán Németh
2007. 07. 19, csütörtök keltezéssel 13.28-kor David Powers ezt írta: > Dotan Cohen wrote: > > David, I am the OP, and I have not posted the URL to the pirate site. > > Nor did I see it posted anywhere. Check the email, maybe someone else > > sent it to you directly. > > Dotan, I'm fully aware that

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread David Powers
Dotan Cohen wrote: David, I am the OP, and I have not posted the URL to the pirate site. Nor did I see it posted anywhere. Check the email, maybe someone else sent it to you directly. Dotan, I'm fully aware that you didn't post the URL, and I apologize if my post gave the impression that you w

[PHP] If MySQL column/field values are in an PHP array

2007-07-19 Thread kvigor
I created an array using the following: $in_list = "'".join("','",$cen_chiefs)."'"; //$cen_chiefs is an array $query_cen_chiefs = "SELECT * FROM central WHERE CONCAT(strName,' ',strCity,' ',strState) IN({$in_list})"; How would I go about adding an AND clause to the above query to return all ro

[PHP] coder needed

2007-07-19 Thread Danial Subhani
Pro-Net have a requirement for ether a full time php/msql coder or a good freelancer. Position is to start within two weeks based in London. If anyone is interested, please contact me 0870 835 6911 or 07900 894 044 Sorry if i'm posting to the wrong list. Danial Subhani -- PHP General Mailing

[PHP] end this thread? Re: [PHP] Re: Pirate PHP books online?

2007-07-19 Thread tomasz abramowicz
> > It's like defining good and evil -- at some point in the conversation > someone is going to use the words God or satan. > that's rather narrow minded. t. ps. sorry, i just thought i would spam some as well... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Dotan Cohen
On 17/07/07, David Powers <[EMAIL PROTECTED]> 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 Soluti