RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Chris W. Parker
babu on Wednesday, July 20, 2005 10:15 AM said: > 1."Is there any other alternative to this method." Javascript or an html redirect. > 2.I am getting the error by using this method. the error is "Cannot > modify header information - headers already sent by". i have

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Chris W. Parker
babu on Wednesday, July 20, 2005 10:33 AM said: > Hi parker, > can you please tell me how to use java script or html redirect, i > mean a sample. I must be in a good mood today. :) html redirect (more accurately called meta refresh): http://www.pageresource.com/h

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Chris W. Parker
Dan Trainor on Thursday, July 21, 2005 2:03 PM said: > I never see "hi" even if an array is set as such: > > $vars = array("one","two","three","four","five"); That's because your function always returns true. If it finds a missing value it returns true. If it doesn

[PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Chris W. Parker
(It's been a while and I haven't seen this message yet. Are we back to rediculous message delays?? Forgive the repost if it be such.) Hello, I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interfac

RE: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Chris W. Parker
Philip Hallstrom on Wednesday, July 27, 2005 11:09 AM said: >> I was just expirementing with the diff command and was wondering if >> there was anything out there that does the same thing but with a more >> intuitive interface? > > What's wrong with "diff -r --brief

RE: [PHP] looking for program/script to diff directories and showdates

2005-07-27 Thread Chris W. Parker
John Nichel on Wednesday, July 27, 2005 10:56 AM said: > What about just checking the modified times of the two files with > filemtime()? You could have it grab the timestamp of both files, > compare them, and see if it's outside a set parameter (like 24 hours, > 7

[PHP] does PHP have a configuration setting for linefeed?

2005-07-28 Thread Chris W. Parker
Hi everyone, As you will read below I've got a strange problem happening with some files after being rsync'd from one machine (FC3) to another (RH9). Someone in the RedHat mailing list suggested that maybe the difference was in the configuration files for PHP. I didn't find anything in php.ini ab

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Chris W. Parker
Rick Emery on Friday, August 05, 2005 4:20 PM said: > Can anybody recommend a good JavaScript mailing list? If by anybody you mean Google, then yes anybody can recommend a good JavaScript mailing list. Hope this helps! Chris. -- PHP General Mailing List (http://w

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Chris W. Parker
Rick Emery on Friday, August 05, 2005 4:54 PM said: > Well, as I found out when I Google'd before I posted, it *lists* > plenty of JavaScript mailing lists. But it can hardly "recommend a > good" one, which is what I asked for, can it? I was soliciting > opinions. Y

RE: [PHP] Checking a date for validity

2005-09-07 Thread Chris W. Parker
Todd Cary on Wednesday, September 07, 2005 3:39 PM said: >/* Is date good */ >function is_date_good($date) { > if (strtotime($date) == -1) { >$retval = 0; > } else { >if (strpos($date, "/") > 0) { > $parts = explode("/", $da

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Matthew Weier O'Phinney on Monday, September 12, 2005 6:55 AM said: > Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't know how to do. Can you explain/show some code? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos on Monday, September 12, 2005 1:36 PM said: > If he is running postfix on the same machine that postfix is running, > it does not make much sense to send the message via SMTP because it > is a much slower way to do the same thing. I'm not. I was hopin

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos on Monday, September 12, 2005 2:41 PM said: > If you use > the mail() function, it uses whatever is installed in your machine > because by default it calls the sendmail program. I am aware of that but the problem I'm having is inconsistent mailings. For

RE: [PHP] incrementing in a for loop

2005-09-12 Thread Chris W. Parker
D A GERM on Monday, September 12, 2005 1:01 PM said: > [CODE] > for ($myLoop = 0; $myLoop < 100; $myLoop= $myLoop + 5) > { > print "my loop: $myLoop"; > } > [/CODE] Where's the code? Oh there

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos on Monday, September 12, 2005 3:15 PM said: > If you use PHP mail() function it just calls the sendmail wrapper. If > you loose messages, you should check the logs of the installed MTA. > Your problem seems to be misconfiguration like you are not setting

[PHP] Is my feedback form being successfully abused?

2005-09-16 Thread Chris W. Parker
Hello, About a few weeks ago I started seeing three emails that all come at the same time (within the same minute) that seem to be trying to exploit a feedback form I have on our website. Everytime someone submits a feedback form I am sent the information they entered. The To and From address are

[PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Hello, Every time I write some classes I always come across the same fundamental problem that I haven't figured out how to solve/approach yet. I'm not exactly sure how to put it into words simply but here goes... Let's take for example a class called 'Customer' that (obviously) manipulates custom

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard on Monday, September 19, 2005 10:40 AM said: > [snip] > Where I get tripped up is when I realize I'll need to at some point > get more than one customer at a time and thus I want to add a method > called 'get_customers()'. > [/snip] > Why, at any point

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard on Monday, September 19, 2005 10:53 AM said: > I think that it should be a stand alone class. The Customers class > could instantiate the needed number of Customer objects and the > methods of the Customers class could affect each Customer object. I'm

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Michael Sims on Monday, September 19, 2005 12:04 PM said: > Basically you're implementing DAO's (Data Access Objects), similar to > what an ORM (Object Relational Mapper) tool would do for you. [snip] Thanks for the info, and I'll check out the Propel site a little

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Anas Mughal on Monday, September 19, 2005 4:02 PM said: > The simplest way to solve this problem is as follows: > > - Have your Customer class hold only attributes for a customer. This > class would only have getter and setter methods. In the Java world, > this is r

RE: [PHP] Is my feedback form being successfully abused?

2005-09-20 Thread Chris W. Parker
Jochem Maas on Tuesday, September 20, 2005 2:37 AM said: > this 'fairly recent' class of attack is already quite well documented, > google around for more info. Actually I did do some googling on it before posting and was relatively confident that the attempt to exp

RE: [PHP] Suggestions for class design

2005-09-20 Thread Chris W. Parker
Sorry I've been so quiet on this topic since I started it but I've basically been overwhelmed with information! :) I was hoping the answer(s) would be a lot more plain and simple than it(they) has been so I could get to implementing some things right away. But I'm afraid it's going to take me longe

RE: [PHP] Re: Suggestions for class design

2005-09-20 Thread Chris W. Parker
Murray @ PlanetThoughtful on Tuesday, September 20, 2005 8:15 AM said: > And it's also worth mentioning at this point that it might present > more of a challenge to the original poster to implement and make use > of a complex data abstraction package [1] than to lear

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce on Wednesday, September 21, 2005 5:10 PM said: > but in all honesty thanks for being honest. > , if you're going to write an app, and you're going > to do something with the data, it makes sense to me that you > 'know'/ensure that you're dealing with the corr

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce on Wednesday, September 21, 2005 6:03 PM said: > since i > assume the '%x' chars traslate into something other than straight > text, i assume that the html function you mention strips out these > chars, or it returns a true/false if the data is valid. Those ch

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 11:05 AM said: > if the app allows the user to enter the input (call it 'foo') and then > submits the form via a POST, where the data is then written to the > db, what kind of validation should occur? Depends on what kind of a f

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 11:58 AM said: > hey chris... Hi. > so you're sayng that if data is outside of a-zA-Z0-9 "'" then it > should probably fail the regex anyway.. and it should error out.. (Where did that apostrophe come from? That wasn't in my l

RE: [PHP] Opensource webshop

2005-09-22 Thread Chris W. Parker
Gustav Wiberg on Thursday, September 22, 2005 1:21 PM said: > Hi there! Hi. > I'm just beginning to test if there is some interest in an > opensource-webshop... Do you mean a shopping cart? > The admin-part is not opensource.. Hmm... why not? And do I have to pa

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 3:33 PM said: > further investigation seems to imply that 'strings' that are to be > inserted into the mysql db should be 'backslashed' for the chars > > \x00, \n, \r, \,'," and \x1a. That's what escaping is. > the mysql_real_e

RE: [PHP] Subtracting dates w/o database interaction (MySQL)

2005-09-23 Thread Chris W. Parker
Philip Thompson on Friday, September 23, 2005 9:12 AM said: > I'm needing to find the number of days between two dates without > using an database functions (DATE_SUB, etc)... only PHP. Is there an > easy way to accomplish this? I have searched the PHP site, but have

RE: [PHP] basic user/input form questions... more validation!

2005-09-23 Thread Chris W. Parker
bruce on Friday, September 23, 2005 10:46 AM said: > which is why it's critical/important to really lay out (architect) > your app and to think about how the app should be handling various > data types. this also goes to thiking about how you name variables in > your

RE: [PHP] basic user/input form questions... more validation!

2005-09-23 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 4:19 PM said: > the articles i've seen imply that if you addslashes, you also need to > stripslashes on the backend... That's probably because gpc_magic_quotes (I think that's what it's called) is turned on and doing addslashes

RE: [PHP] OT - database and indexes... but anyone please?

2005-09-26 Thread Chris W. Parker
Gustav Wiberg on Saturday, September 24, 2005 9:48 PM said: > Thanx! Ok so I had to look up and down that message 3 or 4 times before I found this insignificant one line response. TRIM YOUR POSTS! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] Bitwise operators

2005-09-26 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, September 26, 2005 9:18 AM said: > So i ask what this output? > > $a = 4; > $b = 3; > > echo $a << $b; > echo $a >> $b; You just spent 3-5 minutes writing an email and now almost 10 minutes waiting for a reply to something that would

RE: [PHP] mysql/php date functions..

2005-09-26 Thread Chris W. Parker
bruce on Monday, September 26, 2005 11:13 AM said: > i'm concerned that i can't seem to craft/create a basic sql cmd > within mysql to get a value (other than NOW()) to work... [snip] > my question is why??? MySQL timestamps are different from UNIX timestamps. Chr

RE: [PHP] mysql/php date functions..

2005-09-26 Thread Chris W. Parker
John Nichel on Monday, September 26, 2005 12:43 PM said: > I don't convert it. I store the UNIX timestamp in an INT(11) column. This is going to be a basic question I'm sure but why INT and not VARCHAR? Is it simply because a timestamp is a number? Chris. -- PH

RE: [PHP] Array Select from database

2005-09-28 Thread Chris W. Parker
Silvio Porcellana on Wednesday, September 28, 2005 9:37 AM said: > In addiction, I would (SQL)escape the values joined: supposing you are > using MySQL, I'd do: > $values = join("', '", array_map('mysql_real_escape_string', $array)); Now that's a Freudian slip if I

RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard on Thursday, September 29, 2005 11:03 AM said: > I have a situation where I have to fix an app interface that was > constructed with hundreds of lines of VBScript. The quickest way for > me to do this would be to replace the offending VBScipt with PHP.

RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard on Thursday, September 29, 2005 1:34 PM said: > Darn right 'wow'! > > I can keep the ASP seperate from the PHP by use of the proper tags > for this instance. So... > > <% stuff here gets executed by ASP %> > Wow. I didn't think that would work! haha

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Chris W. Parker
Jay Blanchard on Monday, October 03, 2005 5:30 AM said: > A basic flowchart could have helped you to answer your question and > broken down the processes into their componenet parts. Heck, you > don't even need fancy flowcharting software...just write down the > step

RE: [PHP] Still struggeling with my first script...

2005-10-14 Thread Chris W. Parker
twistednetadmin on Friday, October 14, 2005 12:39 PM said: > Here are all the scripts original. It still won't work. I can't see > what's wrong with it??? > It's from the tutorial PHP5 and Mysql for dummies. What exactly is the problem? "It still won't work" is

RE: [PHP] Still struggeling with my first script...

2005-10-14 Thread Chris W. Parker
twistednetadmin on Friday, October 14, 2005 5:15 PM said: > All: Sorry. I forgot to write what's wrongstupid me... No problem. You'll get used to it. (I don't mean you'll get used to being stupid! I mean you'll get used to including all the relevant info!)

[PHP] Upgraded mail server today, testing functionality! (Sorry!)

2005-10-15 Thread Chris W. Parker
I know I know I know. I don't like test message either but since I started the upgrade I haven't received any new PHP mailings. Could be just because of low traffic, but I need to make sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Chris W. Parker
Jordan Miller on Friday, October 21, 2005 1:32 PM said: > I agree with John. It looks like you either need a hammer or the > rooftop of a 5-story building... How is he supposed to smash a computer with the rooftop of a 5-story building? It's too big!! -- PHP Genera

[PHP] How to account for misspellings and alternatives in searching?

2005-10-27 Thread Chris W. Parker
Hello, On my site right now if someone searches for "511" (a misspelling of the manufacturer 5.11) they are not presented with the right products because 511 is not found anywhere in the database. I've got a few ideas on how to solve this but I want to find one that requires as little administrat

RE: [PHP] Re: How to account for misspellings and alternatives insearching?

2005-10-28 Thread Chris W. Parker
Jochem Maas on Friday, October 28, 2005 1:33 AM said: > James Benson wrote: >> Not sure about the numbers but soundex could be useful >> >> http://php.net/soundex > > right and maybe its easier to just index thing like '5.11' as > '511' - ie just stripping off ever

<    5   6   7   8   9   10