Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-14 Thread Elliotte Rusty Harold
Kenneth Downs wrote: A content-free emotive statement. It would be more accurate to say that it follows a set of principles you do not share, namely, weak typing. We would expect you as a java dude to prefer strong typing. Strong typing to me is inappropriate in a web layer, and reduces my

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread B.A.S.
Hans Kaspersetz wrote: // build additional headers $additionalHeaders = "From: [EMAIL PROTECTED]"; $additionalHeaders .= "To: [EMAIL PROTECTED]"; $additionalHeaders .= "Cc: [EMAIL PROTECTED]"; $additionalHeaders .= "Return-Path: -f [EMAIL PROTECTED]"; $additionalHeaders .= "Reply-To: [EMAIL PROTE

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread Hans Kaspersetz
Thanks, Hans. Here are the headers: Return-path: <[EMAIL PROTECTED]> Envelope-to: [EMAIL PROTECTED] Delivery-date: Mon, 14 Jan 2008 19:49:12 -0600 Received: from nobody by hosting.company.com with local (Exim 4.68) (envelope-from <[EMAIL PROTECTED]>) id 1JEavQ-0007T3-9u; Mon, 14 Jan 20

[nyphp-talk] Installing PHP/MySQL on in-house MS server

2008-01-14 Thread B.A.S.
I have a potential client referred to me by their network guy. The client wants a simple CMS, which I'm comfortable doing. I'm basically subbing as the network guy will handle the paper and mark up my rate by a certain number of percentage points. The client is running Windows Server 2003 in-h

Re: [nyphp-talk] Concatenation

2008-01-14 Thread Ken Robinson
At 09:29 PM 1/14/2008, David Krings wrote: Hi! I saw this in email thread going on: $message = "\nName: $name\n\n"; $message .= "E-mail: $email\n\n"; Is that doing the same as $message = "\nName: $name\n\n"; $message = $message."E-mail: $email\n\n"; Yes. It's similar to using the "+=" or "-=

[nyphp-talk] Concatenation

2008-01-14 Thread David Krings
Hi! I saw this in email thread going on: $message = "\nName: $name\n\n"; $message .= "E-mail: $email\n\n"; Is that doing the same as $message = "\nName: $name\n\n"; $message = $message."E-mail: $email\n\n"; ??? David ___ New York PHP Community Tal

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread B.A.S.
Hans Kaspersetz wrote: So my guess is that the address the mail is coming from doesn't exist or the headers are malformed. Send us the complete headers for on of your generated emails. It should look like: Subject: foo bar From: blah blah <[EMAIL PROTECTED]> Date: Mon, 14 Jan 2008 19:09:03 -

[nyphp-talk] xls output: localhost works, www doesn't

2008-01-14 Thread Rick Retzko
Hi all - Hopefully one of you have seen this and can quickly point me to the error of my ways. I need to output small files from mysql database to the user via excel files. I'm using the following class to do this: private function output_file(){ //output the file to the user

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread Hans Kaspersetz
So my guess is that the address the mail is coming from doesn't exist or the headers are malformed. Send us the complete headers for on of your generated emails. It should look like: Subject: foo bar From: blah blah <[EMAIL PROTECTED]> Date: Mon, 14 Jan 2008 19:09:03 -0600 To: "Blah blah" <[E

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread B.A.S.
Ken Robinson wrote: Get a SPF record on the DNS Zone for the domain. A PTR record is also good, but the hosting company usually has to do that one. As for the mail() function itself, use the "optional" 5th parameter to set the "Return-path:" header. Set it to "-f [EMAIL PROTECTED]". The usern

RE: [nyphp-talk] Why do "cool kids" choose PHP to build websitesinstead of Java

2008-01-14 Thread Steve Solomon
Well, OK, so you are complaining about PHP when your code isn't even aware that it is comparing integers with strings and comparing variables that have no value? On second thought you are correct in that PHP should be smart enough to realize your code has no idea what it is doing. Java would sure

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread Ken Robinson
At 06:40 PM 1/14/2008, B.A.S. wrote: No, the client in question doesn't have their own (dedicated) IP and AFAIK the only thing available is a static IP, which I'm guessing wouldn't help since (as I understand it) several domains could be using the same static IP. It doesn't have an SPF record

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread B.A.S.
Ben Sgro wrote: Hello, Gosh, who knows. I have a problem like that w/an app that runs PHPMailer; yahoo users never see the emails. It really sucks, and there isn't anything I can do about it. Yahoo just decides to block this particular domain, or whatever. Maybe someone with more email knowl

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread B.A.S.
John Campbell wrote: Sending mail from a shared host is always problematic. Do you have your own ip? A shared ip address is a disaster because if there is one spammer on the host, you are SOL and there is nothing you can do about it. If you care about emails going through, get your own ip and

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread John Campbell
Sending mail from a shared host is always problematic. Do you have your own ip? A shared ip address is a disaster because if there is one spammer on the host, you are SOL and there is nothing you can do about it. If you care about emails going through, get your own ip and make sure your dns has

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread Ben Sgro
Hello, Gosh, who knows. I have a problem like that w/an app that runs PHPMailer; yahoo users never see the emails. It really sucks, and there isn't anything I can do about it. Yahoo just decides to block this particular domain, or whatever. Maybe someone with more email knowledge can chime in

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread B.A.S.
Ben Sgro wrote: Hello, Out the box, PHPMailer works pretty good. I know there is a bug in the install I used where you have to explicitly set the language variable or else it doesn't work. I'd suggest further debugging your current situation before switching to PHPMailer. - Ben Hi Ben,

Re: [nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread Ben Sgro
Hello, Out the box, PHPMailer works pretty good. I know there is a bug in the install I used where you have to explicitly set the language variable or else it doesn't work. I'd suggest further debugging your current situation before switching to PHPMailer. - Ben A. wrote: Hi Everyone, I'

[nyphp-talk] Emails not being received when using mail()

2008-01-14 Thread A.
Hi Everyone, I'm having trouble with my form processing script for the first time; some of the email addresses I'm sending the results to aren't receiving anything. The server sending the mail is Linux, in a shared hosting environment. I've googled for a solution and understand that this pro

[nyphp-talk] Affilitate marketing question

2008-01-14 Thread Cliff Hirsch
This is outside the php realm, but this group always has interesting insights. Did anyone see this article in Sunday¹s Times? http://www.nytimes.com/2008/01/13/business/13digi.html?_r=1&ref=business&ore f=slogin What struck me as interesting is that most of the revenue comes from affiliate marke

Re: [nyphp-talk] PHP5 upgrade and suPHP ?

2008-01-14 Thread Rob Marscher
On Jan 12, 2008, at 12:48 AM, [EMAIL PROTECTED] wrote: I have a client who has been upgraded to PHP5 and the ISP has also implemented suPHP in the process. The core application that my client is using had/has a write requirement on certain folders that do things like temporary image creation and

[nyphp-talk] OT: Shopping Cart that schedules bookings

2008-01-14 Thread paul
Does anyone know of a shopping cart that would allow the user to book time with a service provider? Much like buying a product but in this case book time and date. Paul ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/lis

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-14 Thread John Campbell
On Jan 14, 2008 8:17 AM, Kenneth Downs <[EMAIL PROTECTED]> wrote: > Elliotte Harold wrote: > > Michael Southwell wrote: > > > >> ah, no, these answers are exactly right, given that $a is an integer, > >> $b and $c are strings, and $d is unset. $b and $c when converted to > >> integers for the purpo

Re: [nyphp-talk] Why do "cool kids" choose PHP to build websites instead of Java

2008-01-14 Thread Kenneth Downs
Elliotte Harold wrote: Michael Southwell wrote: ah, no, these answers are exactly right, given that $a is an integer, $b and $c are strings, and $d is unset. $b and $c when converted to integers for the purpose of comparison in #1 and #3 turn into 0 (zero) so the comparisons are true. #2 comp

Re: [nyphp-talk] Licensing open source software

2008-01-14 Thread David Krings
Hi! Ton's comments were along the lines of these as well. John Campbell wrote: - get credited (have my name mentioned in code) [snip] Fair enough. Good. - mandate that any changes or improvements are sent to me [snip] Are you kidding? One of the principals of open source is that people