Greetings,
I have a script that gets some text out of a MySQL table and sends it in the
message body via the mail function. Some of the emails are coming through with
an exclamation point followed by the text being moved to a new line.
I'm not sure where this ! and \n are coming from. When
mming.
-Anthony
On 07/07/2011 10:39 AM, Aaron Fischer wrote:
Hey guys,
I'd like to spruce up my html/php pages with more dynamic elements and
JS/AJAX/JQUERY/JSON type stuff. My stuff has been mostly html and php to date,
only played with javascript a little. However, I see value in a
Hey guys,
I'd like to spruce up my html/php pages with more dynamic elements and
JS/AJAX/JQUERY/JSON type stuff. My stuff has been mostly html and php to date,
only played with javascript a little. However, I see value in adding more
dynamic elements to my pages (showing/hiding div content,
l the eclipse project/
workspace workflow. However, even if you are not a fan of eclipse in
general (I am not) this is the best soap tool I know of. If yu are
on windows, also look at storm http://www.codeplex.com/storm
On Thu, Dec 3, 2009 at 1:38 PM, Aaron Fischer
wrote:
Justin,
OK, I
>
> pear channel-discover pear.zfcampus.org
> pear install zfcampus/zf
>
> - jake
>
> On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer
wrote:
>> Greetings all,
>>
>> I'm working on a project that will require the use of SOAP. From
what I
>> g
Greetings all,
I'm working on a project that will require the use of SOAP. From what
I gather there are three main packages I can use:
1) PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php
2) PEAR SOAP package - http://pear.php.net/package/SOAP
3) NuSOAP package - http:/
A gold star! I always wanted one of those. Thanks. =)
-Aaron
On Jun 30, 2009, at 1:37 PM, Allen Shaw wrote:
Very cool, Aaron. Also very cool that you've actually updated the
thread with your notes.
Gold star for you, man.
___
New York PHP Us
I would like to add spell check to a field in one of my
forms. I'm wondering if anyone has recommendations for a php class
and/or javascript/ajax function that they liked?
I did some quick searching for php and/or javascript spell checkers
and found a bunch of results but would like to he
Wanted to post my results. I have successfully created a zip code
radius function on my site, similar to a store locator. Here's a
brief recap:
1) Geocoded around 31,000 addresses sitting in my database, using
Google Maps API (http://code.google.com/support/bin/answer.py?answer=80200&top
That sounds good, thanks for the link Paul.
-Aaron
On May 22, 2009, at 4:21 PM, Paul Guba wrote:
Here is what I used:
http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculation.html
Paul Guba
p...@gubavision.com
On May 22, 2009, at 4:04 PM, Aaron Fischer wrote
.org/wiki/Haversine_formula
Once you have these three pieces, you will be able to calculate the
distance between contacts and any zip code.
Regards,
John Campbell
On Fri, May 22, 2009 at 2:09 PM, Aaron Fischer
wrote:
I'd like to build a feature that will allow someone to enter a zip
I'd like to build a feature that will allow someone to enter a zip and
a radius and have the page display all the contacts that are within
the specified radius of that location. (I have a db table to query
that has contacts and their address information, including zips.)
Has anyone found a
Heya, does anyone have any experience or recommendations for chat
software? I'm looking for something to host a group of chatters in a
room, probably around 20-40 chatters at a time.
I had something a year or so ago, I think it was called FlashChat, and
it was a php/flash combination. It
Greetings,
I have an application built for internal use that has a user login and
then uses sessions to track their state. I am running into a problem
in that their session seems to expire if they are on one page for
somewhere between 15-25 minutes. This creates a big problem because
th
I use FPDF and FPDI to import existing PDFs and modify them. However,
I agree it's probably not in the sense that you are referring to them
Tedd. Basically it brings the PDF in as a template and then you can
write to it, images or text for example.
Everything I have done has involved writ
I've had great success with this one:
http://www.fpdf.org/
On Jan 3, 2008, at 10:54 AM, Jeff Loiselle wrote:
Hello,
Can anyone recommend a package they've used (written in PHP, no
extensions) to open a PDF, add a simple text header line, and save it?
Regards,
jeff
___
Hi Ben,
I've been looking into working with csv. That seems like a nice way
to go. Do you use PHP to convert the .xls files to .csv? Yes, I'd
be interested in source. Thanks Ben.
-Aaron
On Aug 20, 2007, at 11:19 AM, Ben Sgro ((ProjectSkyLine)) wrote:
Hello Aaron,
I convert .xls fil
I've been googling around this morning looking for a good way to read
in an excel file with PHP. I found PHP-Excel Reader and MS-Excel
Stream Handler but haven't had success getting either one running. =(
Any recommendations on an available class to use or PHP functions to
go about this?
Dan, thanks that did the trick. I had various echo statements in my
original script but took them out for purposes of posting succinct
code to the list.
I didn't use grep because I don't have any exposure or experience
with it. It was mentioned as an option during my original post but I
Greetings,
I am working on a little script that will start at a specified
directory on my web server and then proceed to look through all files
and sub-folders for an instance of text located in a file. (This is
a follow-up of sorts to a previous post of mine from a week or two ago.)
I g
I'm using a text editor, BBEdit on Mac OS X. It has a nice find
feature but as far as I can tell it's only applicable for local
searches on my hard drive. It doesn't look like you can use the find
feature on a remote ftp/sftp site.
-Aaron
On Jul 26, 2007, at 1:48 PM, Darryle steplight wr
I have an include file that I do not want to use anymore. I want to
go through all the files on my site and find every instance of the
code that calls that include file.
Any suggestions on how to do that?
Thanks,
-Aaron
___
New York PHP Community
Here?
http://lists.nyphp.org/mailman/listinfo/mysql
Hi!
What is the best place to bug someone about a pure SQL question? I
need to join multiple tables and no matter what I do, it just
doesn't get me the wanted results.
So, any pointers are welcome.
David
___
+4 newegg.
I ordered a hard drive enclosure from them. It was defective. They
shipped another one out right away and took back the one I received.
No problems.
On Jul 20, 2007, at 10:39 AM, Jerry B. Altzman wrote:
on 2007-07-20 10:36 Andy Dirnberger said the following:
+2 newegg.com
I've had great results with FPDF.
http://www.fpdf.org/
1) Create the HTML web form.
2) Use PHP to store the data in your DB and then use FPDF to output a
PDF to the web browser for the user to print.
-Aaron
On Jul 19, 2007, at 11:20 AM, Nicholas Hart wrote:
I am looking for the easiest way t
+1.
All of the lists that I am on (except one) have the reply set to go
to the list. The one list that sends replies to the person who posts
is annoying and (to me) does not seem to be a logical process.
-Aaron
On Jun 15, 2007, at 3:41 PM, Allen Shaw wrote:
Actually, I like the fact that
+1
That would be a great resource. Probably be good to standardize to
require version numbers, date of user post, etc. since features vary
from version to version.
-Aaron
On May 25, 2007, at 11:58 AM, Mark Armendariz wrote:
It would be nice to see a "How I Work" section on nyphp.org
f
I already have a copy of Essential PHP Security. So I guess my bribe
is that you have to sign it. =)
-Aaron
On Apr 23, 2007, at 3:42 PM, Chris Shiflett wrote:
As just announced today, I'm giving tomorrow's talk, and the topic is
Security 2.0. Yeah, I'm poking fun at Web 2.0 with the title,
Hi all,
Looks like I'll be driving in to the city for the meeting tonight.
I'm planning on coming in early and am looking for a place where I
can sit down and get some work done with my laptop.
Any suggestions, like an internet cafe or something?
Necessary - being able to plug in to a powe
Hmmm, I RSVP'd last night just after midnight. Am I on the list or
was that too late?
Just want to make sure as I would be driving from a distance.
Thanks,
-Aaron
___
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo
Oh darn, I'm not going to be able to make it. (I would be driving
from a bit of a distance).
However, I'm very interested in the presentation. I hope it will be
recorded?
-Aaron
On Apr 23, 2007, at 3:42 PM, Chris Shiflett wrote:
As just announced today, I'm giving tomorrow's talk, and
Security, sessions and testing all sound great.
Specifically, I would be very interested in discussions about
practices that can be done to write secure code/apps, and things that
can be done to test it, attempt to find vulnerabilities, etc.
-Aaron
On Apr 12, 2007, at 3:54 PM, Chris Shifl
Using time() to add a unique string to the img src seems to work
quite well, thanks!
I think I prefer this to the nocache solution which gets applied to
all page elements.
This example will only prevent caching of the one image, so all other
items on the page can be cached, which I don't
Hi there,
I have a little app that is a pseudo-day-planner. Users can enter
appointments via a form and then I use PHP and GD to write the
appointment blocks onto a calendar image.
It works great in Safari on Mac and Firefox on PC. However, it
doesn't work with Internet Explorer on PC.
Kenneth, good timing, following up on the recent discussion about CSS.
NYPHP front end list is the spot to ask this question:
http://lists.nyphp.org/mailman/listinfo/front-end
-Aaron
-- resisting the urge to make a front-end, back-end reference.
On Mar 2, 2007, at 3:57 PM, Kenneth Downs wrote:
egEx Buddy looks nice. Hopefully their software is
better than their web design. =)
On Mar 1, 2007, at 5:58 PM, inforequest wrote:
Aaron Fischer agfische-at-email.smith.edu |nyphp dev/internal group
use| wrote:
Looks interesting but it's only offered for Windows.
http://www
Looks interesting but it's only offered for Windows.
http://www.regexbuddy.com/index.html
Any good OS X equivalents out there?
-Aaron
On Mar 1, 2007, at 3:16 PM, Cliff Hirsch wrote:
It's so simple! Seriously, I've said it before -- Regex Buddy is
awesome.
Gotcha. Thanks Chris, I'll take a look at Cal's pattern. =)
BTW, big props for your book. It's been extremely helpful.
-Aaron
On Mar 1, 2007, at 11:25 AM, Chris Shiflett wrote:
Hi Aaron,
I use the regexp from Chris's Essential PHP Security book:
http://phpsecurity.org/
Cool. :-)
I act
CSS resource page with links to a few lists:
http://www.dezwozhere.com/links.html
While not a list, I've heard good things about A List Apart:
http://alistapart.com/topics/code/css/
Also CSS Zen Garden:
http://www.csszengarden.com/
-Aaron
On Mar 1, 2007, at 10:53 AM, Urb LeJeune wrote:
Could
I use the regexp from Chris's Essential PHP Security book:
http://phpsecurity.org/
$email_pattern = '/[EMAIL PROTECTED]<&>]+@([ -a-z0-9]+\.)+[a-z]{2,}$/i';
if (preg_match($email_pattern, $yourEmailVar)) {
echo 'It's good';
}
else {
echo 'There's a problem';
}
Note, the echo's are
oductId();
Your output will be '12'. If you want to copy an object in PHP 5
you'll need to use 'clone.'
Aaron Fischer wrote:
Indeed it does. Sorry! I was led to believe (by my cs professor)
that the default behavior when copying an array is that the copied
array
wrote:
Aaron:
On Sun, Feb 25, 2007 at 03:47:45PM -0500, Aaron Fischer wrote:
I need to copy an array by value, not by reference. Is there a best
way to do this? Right now I found serialize/unserialize which seems
to do the trick.
What ARE you talking about? Copying by value is the default
I need to copy an array by value, not by reference. Is there a best
way to do this? Right now I found serialize/unserialize which seems
to do the trick.
Python has a function called deepcopy:
http://docs.python.org/lib/module-copy.html
For Java, it appears you can use a handmade function o
So when you are working on a PHP project and you are away from your
office or home, you can still be productive (for free). =)
On Feb 20, 2007, at 11:24 AM, Donald J Organ IV wrote:
But what it does allow for is for setting up public ally accessible
wi-fi that you can share with other FON
I notice some funny characters occasionally when some of my web forms
are submitted. Examples include stuff like:
Somebody submitted "word" and I get ?word?
Somebody submitted time and I get t! me
Not sure what would cause this? The form submissions are mostly from
within the U.S., so I do
o the same with option 2 and
compare the results.
- Brian
Aaron Fischer wrote:
How would one test something like this? Testing for performance
is something I would like to start doing but I don't know where/
how to start.
-Aaron
On Feb 7, 2007, at 11:05 AM, tedd wrote:
No offense meant,
How would one test something like this? Testing for performance is
something I would like to start doing but I don't know where/how to
start.
-Aaron
On Feb 7, 2007, at 11:05 AM, tedd wrote:
No offense meant, but when I have a question like that, I test it
and find out. Why ask the list f
Thanks Tedd and Dan. This code and the archives link helped me
understand what I needed to do. I'm off and running and everything
is working great. Much appreciated!!
-Aaron
On Jan 31, 2007, at 12:24 PM, tedd wrote:
At 9:37 AM -0500 1/31/07, Aaron Fischer wrote:
I'm un
Thanks for the thoughtful intro Rob, welcome to the list.
-Aaron
On Jan 31, 2007, at 4:47 PM, Rob Wilkens wrote:
Hi .
I'm new here (though I recognize one or two familiar names from
another list i'm on - LIPHP) --
A little about me as long as i'm writing (relating to PHP): I learned
PHP be
I think the stress of my scary supervisor is clouding my thinking.
=) Thanks Dan.
-Aaron
On Jan 31, 2007, at 10:28 AM, Dan Cech wrote:
Aaron Fischer wrote:
What I meant to say is that I've been searching the archives but
haven't
had success in finding the scripts that wer
What I meant to say is that I've been searching the archives but
haven't had success in finding the scripts that were posted a while ago.
On Jan 31, 2007, at 9:37 AM, Aaron Fischer wrote:
I'm working with GD for the first time and need to receive uploaded
images (th
I'm working with GD for the first time and need to receive uploaded
images (that part is done), determine if they are vertical or
horizontal orientation and then resize them appropriately given a max
length or width.
I'm listening to Jeff's GD presentation now and searching the
archives.
sprintf() did the trick nicely, thanks Ken.
-Aaron
On Jan 30, 2007, at 11:32 PM, Ken Robinson wrote:
At 11:23 PM 1/30/2007, Aaron Fischer wrote:
I am retrieving a four digit value from a mysql db. It is an
unsigned zerofill field so there are leading zeros.
I add 0001 to the value
I am retrieving a four digit value from a mysql db. It is an
unsigned zerofill field so there are leading zeros.
I add 0001 to the value. However, I find that I lose my leading
zeros, which I want to keep. I also tried incrementing the value but
that produces the same result.
Any sugge
0, 2007, at 10:03 PM, edward potter wrote:
Python rocks, but for sure get some Java experience under your belt
too.
Good luck! :-) ed
On 1/30/07, Aaron Fischer <[EMAIL PROTECTED]> wrote:
I'm taking an artificial intelligence class and we can do the
assignments in Python, Java, or C++.
I'm taking an artificial intelligence class and we can do the
assignments in Python, Java, or C++. I was leaning toward Java but
your post makes me want to lean toward Python. Hmmm...
-Aaron
On Jan 30, 2007, at 9:45 PM, edward potter wrote:
So what am I doing? I am diving FULL blast int
I'll check that out too, thanks David!
-A
David Mintz wrote:
The MySQL Cookbook (O'Reilly) is also loads of fun.
---
David Mintz
http://davidmintz.org/
En Nueva York el tránsito de la belleza a la desolación sucede
siempre expeditivamente, como si el principio universal
de máxima eficiencia
Thanks Timothy, I'll check out that book. The next thing(s) to add to
my library is one or two good books on SQL/MySQL.
Sounds like a good holiday present to myself!
Cheers,
-Aaron
Timothy Boyden wrote:
I don't have a code solution for you, but Google the CHECK and UNIQUE
predicates for th
e the "GROUP BY field_name" when * is used for the field
list? I've read that MySQL allows you to GROUP BY fields not listed in
the field list, but other DBs give errors.
-Rob
Aaron Fischer wrote:
That did it, thanks Rob and Andy.
Rob's query did the trick. I was ge
That did it, thanks Rob and Andy.
Rob's query did the trick. I was getting a MySQL error with Andy's that
I hadn't been able to figure out.
Cheers,
-Aaron
Rob Marscher wrote:
I'm pretty sure the subquery is redundant... I think this will work...
SELECT * FROM table_name GROUP BY field_na
Greetings,
I'm not sure how to do the following, any tips?
I have a column in a MySQL table that contains varchars. I would like
to select all records where there are instances of more than one record
for any given varchar.
So in plain language, the SQL statement would look something like:
Thanks Allen. That sounds very much like what I was thinking.
I was getting hung up on some of the logic but I think it's more because
I have been given a way-too-short deadline to get this done. =|
Deep breaths...
Cheers, thanks!
-Aaron
Allen Shaw wrote:
Aaron Fischer wrote:
Howdy,
Running into a wall trying to figure out the best way to accomplish the
following:
I have a web form that allows the user to ask a question about a certain
topic.
On the backend I have, say, five people available to answer questions
for each topic. They are stored in a MySQL table.
Howdy,
I have a logout page where I destroy the session. However, if I click
one of the application links it lets me back in. I believe the browser
is loading the application page from history. If I refresh the page it
kicks me out to the login page, which is the desired behavior but I
wou
Thanks Ken. Unfortunately I figured that out AFTER I sent the original
question. =)
-Aaron
Ken Robinson wrote:
> At 03:17 PM 10/20/2006, Aaron Fischer wrote:
>
>>Hi,
>>
>>I'd like to cycle through an array and destroy some elements (and leave
>>some in
I fixed that line and it's working now:
else { unset($test[$k]); }
However I would be interested to hear if anyone thinks there is a better
or more efficient approach to how I am doing it.
Cheers,
-Aaron
Aaron Fischer wrote:
> Hi,
>
> I'd like to cycle through an arr
Hi,
I'd like to cycle through an array and destroy some elements (and leave
some intact). What's the "best" way to do that?
Here's what I put together so far (which shows my array ignorance) =)
"yes" , "name" => "joe" , "sort" => "ascending")
while (list ($k, $v) = each ($test))
{
67 matches
Mail list logo