[PHP] PHP/MYSql equivalent to Hypermail/Monharc?

2001-01-25 Thread Greg Schnippel
Hi, I have been using Hypermail for archiving our mailing lists but I'm becoming and more frustrated with its limitations. Is there an equivalent PHP script to hypermail out there? Ideally, I would like to maintain the incoming e-mail addresses in a mysql database. Thanks, -Greg -- PHP G

RE: [PHP] is there free php+mySql hosting?

2001-05-03 Thread Greg Schnippel
>From the archives: "The number of free PHP web hosts is growing . More and more are offering MySQL options too! Each category below is in alphabetic order. > Some don't require banners : http://www.1st-home.net/ (requires affiliate signups) http://www.mycgiserver.com/ htt

RE: [PHP] Search Engine

2002-01-15 Thread Greg Schnippel
> * On 15-01-02 at 12:09 > * Yogesh Mahadnac said > >> Hi all! I want to develop a search engine in PHP for a >> portal that I'm working on at the moment, and I'd be glad if >> someone could please show me how to do it, or if anyone knows >> of a link where i can find a tutorial for

RE: [PHP] Write an array to a file

2002-01-29 Thread Greg Schnippel
Scott - You can just write it as a pipe-delimited file, write it to the file, and then read it back in. Use implode and explode: $company = array("Item 1", "Item 2", "Item 3", "Item 4"); #- # # Output array # $output_string = implode("|", $company)

RE: [PHP] outputting db content

2001-12-19 Thread Greg Schnippel
> Does anyone have a quick example of how you would show X > numbers of database records at a time from a query? (you > know, list 25 of 400 records with next/previous navigation)... I've used this code snippet and lots of projects and it seems to work pretty well. Would appreciate advice on

[PHP] Mysterious MYSQL Error..

2001-07-22 Thread Greg Schnippel
I'm stumped on this one.. I set up PHP 4.04/Apache/Mysql 3.23 on my Windows 98 box for development purpouses. Its been working flawlessly for 2-3 years now (using the same configuration files, etc). However, as of 3 days ago, i can't get it to execute a simple "select * from table query". Here's

RE: [PHP] Mysterious MYSQL Error..

2001-07-22 Thread Greg Schnippel
trying to explain it to a colleague. I should 'pretend' to send a letter to php-general next time :p -greg -Original Message- From: Greg Schnippel [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Mysterious MYSQL Error.. I'

Re: [PHP] Secure input

2006-02-27 Thread Greg Schnippel
On 2/27/06 6:20 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > When users input is displayed for others then themself I try to filter out > html tags too. I type cast all relevant variables before processing them as one last check. Type casting forces the variable to be of the type you e

Re: [PHP] Need a CRM recommendation

2006-04-04 Thread Greg Schnippel
Try Civiccrm - http://www.openngo.org/ CiviCRM is the first open source and freely downloadable constituent relationship management solution. CiviCRM is web-based, internationalized, and designed specifically to meet the needs of advocacy, non-profit and non-governmental groups. I use this with

Re: [PHP] RSS Generation

2006-04-10 Thread Greg Schnippel
> ... When I tried saving it with an xml extension and > adding a .htaccess file to the directory in which the file was saved, I get > prompted to save the file instead of being able to view the file in a > browser. The only line in the .htaccess file is AddType > application/x-httpd-php xml. I h

[PHP] Fixing Invalid Characters in RSS Feeds.. ?

2005-08-10 Thread Greg Schnippel
I wrote a custom blog/CMS script that I use to generate RSS feeds. Every so often, in the process of cutting and pasting from other sites I will inadvertently enter a bad character that RSS doesn't like which causes the whole feed to break. (For example, versions of quotation marks or long dashes).

Re: [PHP] Insert one or many chekbox values in a db mysql

2005-08-10 Thread Greg Schnippel
Try this article on Evolt: http://www.evolt.org/article/Storing_form_array_data_to_MySQL_using_PHP/18/60222/ that covers the whole process with good code examples.. - schnippy On 8/9/05, Jesús Alain Rodríguez Santos <[EMAIL PROTECTED]> wrote: > Hi, I have 5 chekboxes in a page, I would like in

Re: [PHP] redirect based off server string

2005-08-10 Thread Greg Schnippel
Try doing a pattern match on the server string and then using Header to redirect them if its coming from the old server: if (preg_match("/ces.ncsu/i", $_SERVER["HTTP_HOST"])) { header("Location: http://www.nc4h.org";); } - schnippy On 8/10/05, Robert Sossomon <[EMAIL PROTECTED]> wr

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-17 Thread Greg Schnippel
> I'll reply soon off list, as I don't think it appropriate to give > potential spammers an archive full of new tricks. I don't know -- I think its always better to discuss this in the open if there is a real security risk that people should be aware of. A couple days after your posting to PHP-Ge

Re: [PHP] Browsing Into Levels

2005-08-30 Thread Greg Schnippel
Good answer, I think thats what they were looking for but just in case: Most of the breadcrumb classes out there (at least the ones that showed up in an initial google search) use either the existing directory/file structure or a hard-coded array of your site structure to create the breadcrumbs

Re: [PHP] Re: security/sql issues with php

2005-09-21 Thread Greg Schnippel
have you tried googling on +"application framework" +php.. that seems like what you're looking for and several of these projects are "commercial-grade" and open source. i use dbasis as my application framework and highly recommend it -- its a component of the syntaxCMS project. i have also used bl

[PHP] Help with Reverse Tree Traversal using Recursion ..

2005-11-14 Thread Greg Schnippel
I have a large data tree that I wanted to display in an outline format. I used a textbook tree recursion function to go through the data and display it as nested unordered lists: function outputTree($id) { if (checkChildObjectExists($id)) { print ""; $child =

Re: [PHP] Help with Reverse Tree Traversal using Recursion ..

2005-11-14 Thread Greg Schnippel
ch <[EMAIL PROTECTED]> wrote: > On Mon, November 14, 2005 7:46 am, Greg Schnippel wrote: > > I have a large data tree that I wanted to display in an outline > > format. I used a textbook tree recursion function to go through the > > data and display it as n

Re: [PHP] Good user comment system?

2005-11-14 Thread Greg Schnippel
If you're looking for a light-weight, threaded discussion script, I can recommend this class from xhawk.net http://www.xhawk.net/projects/discussion/ I like it because I can quickly integrate this into blogs or galleries by just instantiating a new board instance for each object id or article. I

Re: [PHP] php / mysql / js search result question

2005-12-29 Thread Greg Schnippel
Hi - It sounds like you're trying to implement something similar to "google suggest" which uses ajax to allow a user to navigate through a large list of entries. The "google suggest" method does use a lot of calls to the database but its asynchronous which eliminates cumbersome page loads. http:/

Re: [PHP] Hide email addresses from spam bots

2006-02-01 Thread Greg Schnippel
found this a couple of days ago on Digg: http://www.csarven.ca/hiding-email-addresses "A comprehensive list of methods on how to hide email addresses in source code from spam bots. Includes; CSS, Javascript, Forms, Images, Obfuscation, Authentication, Flash, Unicode, Encryption and other methods.

Re: [PHP] Hide email addresses from spam bots

2006-02-01 Thread Greg Schnippel
> I doubt if this can be done, but it there a way to detect a spambot > as compared to a SE indexing your site? They are both basically the > same, right? Yes, if you can assume that a spambot will be doing sneaky things to hide its origin or identity. The "bad behavior" project has been trying to

[PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Greg Schnippel
Has anyone developed a really good defense against email injection attacks? I'm waging a prolonged campaign against these luser hordes on a number of non-profit sites I help maintain. I've tried to secure all of the feedback forms using the function below that I cobbled together from various php s

Re: [PHP] Secure Mail Form using PHP

2006-02-16 Thread Greg Schnippel
> I'm trying to make sure my email form cannot be used for spam or > injecting additional code and addresses in any way. > >// CHECK FOR SPAM ATTEMPTS AND REMOVE THEM > > I had a similar problem with my contact form and went down a similar path of trying to clean up the user-input with re

Re: [PHP] novice with hacked email form issue

2006-02-21 Thread Greg Schnippel
On 2/21/06, cKc Consultants <[EMAIL PROTECTED]> wrote: > An email form that uses a simple server side php code to send the variable > values managed to send: Try looking for articles on 'email injection'. This is a really good place to start for a description of the security risk and ways to patc