RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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, would

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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] Is my feedback form being successfully abused?

2005-09-20 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] 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

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

RE: [PHP] Re: Suggestions for class design

2005-09-20 Thread Chris W. Parker
Murray @ PlanetThoughtful mailto:[EMAIL PROTECTED] 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 learn a

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 correct

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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

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

2005-09-22 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 form

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

2005-09-22 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 list on

RE: [PHP] Opensource webshop

2005-09-22 Thread Chris W. Parker
Gustav Wiberg mailto:[EMAIL PROTECTED] 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 pay for

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

2005-09-22 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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

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

2005-09-23 Thread Chris W. Parker
Philip Thompson mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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 app.

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

2005-09-23 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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,

RE: [PHP] Bitwise operators

2005-09-26 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[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 have taken

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

2005-09-26 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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. Chris.

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

2005-09-26 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] 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. -- PHP

RE: [PHP] Array Select from database

2005-09-28 Thread Chris W. Parker
Silvio Porcellana mailto:[EMAIL PROTECTED] 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 ever

RE: [PHP] Mixing PHP VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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 % ?php stuff here gets executed by PHP ? Wow. I didn't

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 steps.

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

2005-10-14 Thread Chris W. Parker
twistednetadmin mailto:[EMAIL PROTECTED] 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 not

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

2005-10-14 Thread Chris W. Parker
twistednetadmin mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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... zooom!How is he supposed to smash a computer with the rooftop of a 5-story building? It's too big!!/zooom! --

[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

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

2005-10-28 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] 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 everything not

[PHP] suspicious? maybe spam? what?

2005-01-21 Thread Chris W. Parker
rant Will whoever is causing [suspicious - maybe spam] to appear in the subject of the PHP emails PLEASE WHITELIST THE PHP LIST. Ugh.. it's so annoying. /rant Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-01-25 Thread Chris W. Parker
Greg Donald mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 9:36 AM said: The Perl solution many years ago was to make a newbie list. My local Linux user group solution last year was to make a newbie list. This idea has been presented too. All the smart people will go to the

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

2005-01-25 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 11:23 AM said: Greg Donald wrote: On Tue, 25 Jan 2005 10:19:12 -0800, Chris W. Parker [EMAIL PROTECTED] wrote: ... Ok so maybe it wasn't as funny in the email as it was in my head but gosh where did everyone's sense

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 2:46 PM said: I need a pretty basic log in script. Something that people log in to, and the page and all linked/related pages cannot be accessed unless the person has logged in. So what do I need for this? Cookies,

RE: [PHP] PHP Application server / Expression of Interest

2005-01-25 Thread Chris W. Parker
Devraj Mukherjee mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 3:34 PM said: I recently passed around an email enquiring about the existance of an application server solution for PHP. Thanks to some of the responses, that lead my research further. Pardon my ignorance but, what is

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

2005-01-25 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 3:35 PM said: or will all you advanced guys/girls spend countless hours repeatedly asking people to post code, use print_r()/var_dump() etc... without so much as halfbaked challenge in sight? Yes. :-) Perhaps I

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
Joe Harman mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 4:23 PM said: IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... Well, I don't think

[PHP] Looking for ideas on scheduling

2005-01-28 Thread Chris W. Parker
Hello, I'm looking to make a simple scheduler for myself and I'd like to get some feedback on how to handle the events and their being executed at the right time. The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs are added to the users crontab file.

RE: [PHP] Looking for ideas on scheduling

2005-01-28 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Friday, January 28, 2005 11:36 AM said: Chris W. Parker wrote: The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs are added to the users crontab file. This could result in LOTS of entries in crontab

RE: [PHP] Looking for ideas on scheduling

2005-01-31 Thread Chris W. Parker
Marek Kilimajer mailto:[EMAIL PROTECTED] on Saturday, January 29, 2005 12:05 PM said: What about option 3: Use at command to execute php script when the next event should be executed. This php script will execute this task and then set itself to execute at the time of the next event.

RE: [PHP] PHP Security Consortium

2005-01-31 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Sunday, January 30, 2005 10:19 PM said: The PHP Security Consortium has officially launched. The following is the press release: Oooh cool! This looks to be a great resource. Keep up the good work Chris. Another, Chris. -- PHP General Mailing

[PHP] What's wrong with this rewrite rule?

2005-02-02 Thread Chris W. Parker
Hello, I've been messing with a certain rewrite rule for about 30 minutes now and it's driving me insane. I've got plenty of other rewrite rules working perfectly. Here is the rule in question. RewriteRule ^detail\.asp\?product_id=([\w-]+)$ product.php?id=$1 The URL I'm testing this with is:

RE: [PHP] Re: What's wrong with this rewrite rule?

2005-02-02 Thread Chris W. Parker
M. Sokolewicz mailto:[EMAIL PROTECTED] on Wednesday, February 02, 2005 10:22 AM said: the problem is actually really easy You're not asking it on an apache list (this is a PHP list... so why should anyone here know anything about mod_rewrite for apache?) sorry if I sounded rude, but

RE: [PHP] Re: What's wrong with this rewrite rule?

2005-02-02 Thread Chris W. Parker
Michael mailto:[EMAIL PROTECTED] on Wednesday, February 02, 2005 11:54 AM said: You're insisting that the path to rewrite start with d. It's not going to start with d, it's going to start with /. As in /detail.asp... Easy thing to miss, though... Actually that's not why. None of my

RE: [PHP] newbie question ; calling php script with parrameters from html

2005-02-02 Thread Chris W. Parker
Sagaert Johan mailto:[EMAIL PROTECTED] on Wednesday, February 02, 2005 2:38 AM said: can i use this kind of construction in my html code ? a href=test.php?selection=highSelect high/a Yes. if yes , how do i retrieve the passed string in the php code ?php $value =

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Morley mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 9:57 AM said: I'm not sure if this is specifically a PHP problem, but here we go. Is there a way to clear the POST variables when the user refreshes a page? [snip] I read something somewhere that seemed to imply this

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, February 03, 2005 11:26 AM said: A simple thing to do is to put an md5 hash into the POST data, then only do the insert if that md5 hash isn't already used when they hit refresh. This avoids the hassle of re-direct headers and trying

RE: [PHP] Primer for working with arrays

2005-02-09 Thread Chris W. Parker
Robert Sossomon mailto:[EMAIL PROTECTED] on Wednesday, February 09, 2005 10:50 AM said: I need a really good primer for working with arrays in PHP and with MySQL. I can do what I need to do without them right now, but I would really like to get arrays figured out. Any have some good

RE: [PHP] Fancy Form processing Ideas

2005-02-14 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Monday, February 14, 2005 6:29 AM said: I am looking for interesting approaches to form submissions and error checking in the forms. One time, at PHP Summer Camp, I made this one form that, when submitted, would open the CD tray on my server

RE: [PHP] User Passwords: checking for unique chars

2005-02-14 Thread Chris W. Parker
Alex Gemmell mailto:[EMAIL PROTECTED] on Monday, February 14, 2005 7:24 AM said: Hello! Hi! # Code: beingfunnynotmean!Do you also have a label on your computer that says Computer?/beingfunnynotmean! Some questions (because I'm curious): 1. Why would you *not* allow

RE: [PHP] [NEWBIE] Trying to combine array into one string

2005-02-15 Thread Chris W. Parker
Dave mailto:[EMAIL PROTECTED] on Tuesday, February 15, 2005 7:37 AM said: The Problem: I can't quite figure out how to take the results of the mysql_query() and assemble them into a string. In my experiments so far, I either get a mysql_data_seek(): Offset 0 is invalid for MySQL

RE: [PHP] Re: isset

2005-02-15 Thread Chris W. Parker
M. Sokolewicz mailto:[EMAIL PROTECTED] on Tuesday, February 15, 2005 8:25 AM said: seems lengthy. is there a way around this? i tried using $cmd = @ $_POST['cmd']; to suppress errors but didnt seem to have ay effect. still if(isset($_POST['cmd'])) { $cmd = $_POST['cmd']; }

RE: [PHP] Help with a query please - unable to error check!

2005-02-16 Thread Chris W. Parker
Shaun mailto:[EMAIL PROTECTED] on Wednesday, February 16, 2005 1:15 PM said: I have a problem with a query, I get the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line

RE: [PHP] Re: paring large files - PHP or Perl

2005-02-16 Thread Chris W. Parker
Daniel Bowett mailto:[EMAIL PROTECTED] on Wednesday, February 16, 2005 2:06 PM said: [snip 56 lines...] PHP or Perl??? I'd say Python :) Please trim your posts. KTHXBYE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Having problem with ob_start('gz_handler'); (seg fault)

2005-02-22 Thread Chris W. Parker
Hello, I'm having a mysterious problem with phpMyAdmin 2.6.1. I've already consulted the phpMyAdmin forum on sourceforge but so far I've not had any answers come my way. All of a sudden this morning I found that the program stops dead in its track's during a call to ob_start('gz_handler');.

RE: [PHP] Having problem with ob_start('gz_handler'); (seg fault)

2005-02-23 Thread Chris W. Parker
Burhan Khalid mailto:[EMAIL PROTECTED] on Tuesday, February 22, 2005 11:21 PM said: I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2. You need to upgrade to the latest PHP version, which is 4.3.10 and while you are at it, consider upgrading MySQL to 4.0. Is this a known problem?

RE: [PHP] sentence case

2005-02-23 Thread Chris W. Parker
Leif Gregory mailto:[EMAIL PROTECTED] on Wednesday, February 23, 2005 10:31 AM said: I'm thinking something like: 1. strtolower() the string 2. explode() on the period 3. Loop through the resulting array a. trim() whitespace on each element b. ucfirst() on each element of the

RE: [PHP] Having problem with ob_start('gz_handler'); (seg fault) [SOLVED]

2005-02-25 Thread Chris W. Parker
Burhan Khalid mailto:[EMAIL PROTECTED] on Tuesday, February 22, 2005 11:21 PM said: Chris W. Parker wrote: [ snipped ] I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2. You need to upgrade to the latest PHP version, which is 4.3.10 and while you are at it, consider

[PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Hello, I couldn't find this anywhere on google or PHP's site but I'm pretty sure there's an answer to it. How can I turn the following into something that resembles the ternary operator? ?php if($something) { $this = $that; } ? I seem to remember it looking something like: ?php

RE: [PHP] PHP Wiki

2005-02-25 Thread Chris W. Parker
Randy Johnson mailto:[EMAIL PROTECTED] on Thursday, February 24, 2005 2:50 PM said: Is there a Wiki site for PHP? Is there a need for one? Been to http://phpcommunity.org/wiki/? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What's up with the list?

2005-02-25 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 6:12 AM said: Haven't gotten anything from the list since yesterday...is it me, or is it the list. Fix it Jay!!! ;) While we're asking questions about the list, is it just me or does it take everyone's email 30+ minutes

RE: [PHP] Hi ALL

2005-02-25 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 9:43 AM said: Yeah, not so long ago, when the stats were mailed to the list monthly, I was averaging 65-70 posts a month, and John would always be more than double that. I think he just liked to hear himself talk. ;)

RE: [PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 4:04 PM said: just do: if ($something) $this = $that; Thanks! Chris. p.s. No need to respond if your suggestion is: ?php if($something) { $this = $that; } ? :) -- PHP General Mailing List

RE: [PHP] Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Justin Lilly mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 3:10 PM said: This should do the trick: $something ? $this=$that Actually that gives a synax error. But I've figured it out based on your suggestion. It's actually: ?php $something $this = $that; ? Chris. --

RE: [PHP] Re: Like ternary but without the else.

2005-02-25 Thread Chris W. Parker
Jason Barnett mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 2:10 PM said: $this = $something ? $that : null; That won't work because I'm setting a default value for $this and want it to change only if it has to. The long winded way to write this would be: ?php $myVariable =

RE: [PHP] what does this mean?

2005-02-25 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Friday, February 25, 2005 12:31 PM said: I thought 'tertiary' also - I could remember the 'other' name... I was under the impression that both names were valid.. anyone know if this is true? google brings up relevant hits for both, from what I

RE: [PHP] Re: Like ternary but without the else.

2005-02-28 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Monday, February 28, 2005 5:12 PM said: Course, I gotta say that maybe you're coming at this wrong in the first place, if you have to change $this based on $something to $that but $this already has a value... Maybe you should have figured out

RE: [PHP] Re: Like ternary but without the else.

2005-03-01 Thread Chris W. Parker
anirudh dutt mailto:[EMAIL PROTECTED] on Monday, February 28, 2005 9:25 PM said: dunno if u've read the options ppl have given u or u've ignored their answers: ugh... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How can I secure database passwords used by PHP webpages

2005-03-02 Thread Chris W. Parker
Dan Tappin mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 7:32 AM said: The best way is to not store the password at all. Store a hash of the password like this: INSERT INTO users SET pass = MD5('password'); Now not knowing how you authenticate those passwords this might not

RE: [PHP] php DBMS

2005-03-02 Thread Chris W. Parker
Gerben mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 10:22 AM said: Thanks for all your responses, but I think I wasn't clear enough of my intentions. Actually, that what I'm looking for; A database engine written in PHP. Even if something like this did exist why would you want it

RE: [PHP] php DBMS

2005-03-02 Thread Chris W. Parker
Chris W. Parker on Wednesday, March 02, 2005 10:38 AM said: Gerben mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 10:22 AM said: Thanks for all your responses, but I think I wasn't clear enough of my intentions. Actually, that what I'm looking for; A database engine written

RE: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Chris W. Parker
Al mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 11:22 AM said: I've been using in my scripts $_SERVER['DOCUMENT_ROOT'] to find the base path for includes, etc. We just moved the site to a new virtual host and it doesn't work. print_r() gives me: $_SERVER['document_root']=

RE: [PHP] PHP Sessions?

2005-03-02 Thread Chris W. Parker
rory walsh mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 11:19 AM said: ?php if($_POST[username]==rory){//if user logs in as rory start session session_start(); header(Cache-control: private); $_SESSION['loggedin'] = yes; } Put session_start(); at the *very* beginning of your

RE: [PHP] Catalog or cart

2005-03-02 Thread Chris W. Parker
Robby Russell mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 1:15 PM said: Very flexible and runs on PostgreSQL. http://www.pgcart.com/ And yadda yadda yadda, I'm tired today, said the elephant. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP Sessions?

2005-03-02 Thread Chris W. Parker
rory walsh mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 1:26 PM said: The problem there is that I have to test if the user has logged on so I need to include the if statement? Can the session_start not be called from within an if statement? Does it really have to be the very

RE: [PHP] PHP Sessions?

2005-03-02 Thread Chris W. Parker
rory walsh mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 2:08 PM said: Thanks everyone, I'm getting closer. The only problem I have not is that I keep entering that test, I modified it to change the session variable once we enter the test but it somehow does not seem to change it?

RE: [PHP] PHP Sessions?

2005-03-02 Thread Chris W. Parker
rory walsh mailto:[EMAIL PROTECTED] on Wednesday, March 02, 2005 2:38 PM said: Is it to do with the link: a href=\index.php?action=edit\ does this call the script again, just as an action=script.php in a form would? Cheers for the help on this. Yes it does. But it doesn't erase the

RE: [PHP] Preventing data from being reposted?

2005-03-03 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Thursday, March 03, 2005 5:57 AM said: Gareth Williams wrote: Wouldn't using GET instead of POST help? in a way it could - but you don't usually want to use a GET as this can be easily spoofed (i.e. anyone could send you a link or post one in a

RE: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Chris W. Parker
Leif Gregory mailto:[EMAIL PROTECTED] on Thursday, March 03, 2005 5:31 PM said: Hello Richard, Thursday, March 3, 2005, 1:15:38 PM, you wrote: include_path In the php.ini? But wouldn't that affect every virtual host on the server? Meaning I'd have to put all the includes for every

RE: [PHP] Database engine in PHP

2005-03-04 Thread Chris W. Parker
Gerben mailto:[EMAIL PROTECTED] on Friday, March 04, 2005 10:45 AM said: I have already asked this question, but I think I wasn't clear enough of my intentions (thanks for all your responses anyway) Yeah you definitely weren't clear enough the first time... but this time you're definitely

RE: [PHP] Image Submits to Forms

2005-03-04 Thread Chris W. Parker
Marquez Design mailto:[EMAIL PROTECTED] on Friday, March 04, 2005 11:05 AM said: Greetings, voice style=type:alien;Greetings earthling!/voice Select page, then with the delete button, delete the file, Select page, then with the edit button, edit the page. Does anyone know how I could

RE: [PHP] Help with REGEXP please

2005-03-04 Thread Chris W. Parker
Shaun mailto:[EMAIL PROTECTED] on Friday, March 04, 2005 11:55 AM said: Please could someone tell me how i can extract the information from a string that is after 'ID_' and before '_FN' Get the RegExCoach. It'll be your best friend. Try: /ID_(.*)_FN/ Chris. -- PHP General Mailing

RE: [PHP] call anchor from php

2005-03-07 Thread Chris W. Parker
Ross Hulford mailto:[EMAIL PROTECTED] on Monday, March 07, 2005 2:48 PM said: Is it possible to call a named anchor from within a php script?? I need my page to go to the point in the page where the form is and bypass all the rubbish. Since that is a client-side issue and PHP is

FW: [PHP] call anchor from php

2005-03-07 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Monday, March 07, 2005 3:09 PM said: Ross, Please don't send emails off list unless there is a specific reason to do so. In this case, there's not. Now on to your issue. What I want to do is something like this although this doesn't work What

RE: [PHP] Document root, preferred way to find it???

2005-03-08 Thread Chris W. Parker
Leif Gregory mailto:[EMAIL PROTECTED] on Tuesday, March 08, 2005 6:55 AM said: link rel=stylesheet type=text/css title=Site CSS href=/includes/site.css / and I've never placed a period at the beginning. But you raise an interesting point. Is the server telling the browser where the

RE: [PHP] Passwords?

2005-03-08 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Sunday, March 06, 2005 5:24 AM said: that said you still don't want this file or this string to get into the hands of evilhaxors - best to keep this file (one with the encrypted pwd in it) outside of the docroot. Why encode it at all then? If

RE: [PHP] suspicious - maybe spam

2005-03-08 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Tuesday, March 08, 2005 9:54 AM said: Don't feel too bad. Every few weeks, I get an automated email from ezmlm warning me that php-general messages have bounced, and I might be removed from the list if it keeps up. Same here. -- PHP General

RE: [PHP] PHP / JavaScript integration

2005-03-08 Thread Chris W. Parker
Mário Gamito mailto:[EMAIL PROTECTED] on Tuesday, March 08, 2005 4:28 PM said: I'm trying to integrate some JavaScript functions in PHP, but so far, no good :( [snip] Now... i want to call this JavaScript function from the regular PHP files. In particular, before the HTML code. Like

RE: [PHP] a new it company

2005-03-09 Thread Chris W. Parker
Rory Browne mailto:[EMAIL PROTECTED] on Wednesday, March 09, 2005 10:06 AM said: Because it seems your are a spammer, and a liar(you concealed your alleged connection with aforementioned site), I hereby CALL FOR A BOYCOTT ON http://www.bansalsetech.com/ Ironic thing here is that there

RE: [PHP] Quickform - edit form

2005-03-09 Thread Chris W. Parker
Leonie (phpgroup) mailto:[EMAIL PROTECTED] on Wednesday, March 09, 2005 1:13 PM said: I've set up a form using Quickform. I've got it working a dream. My problem is at the moment it only adds records to the database. I would like to also have an edit form. I don't know what is easiest.

RE: [PHP] PHP5.0.3-3 on RedHat

2005-03-10 Thread Chris W. Parker
Kim Madsen mailto:[EMAIL PROTECTED] on Thursday, March 10, 2005 12:52 AM said: I´m using a shell script and just add the php-version whenever I need to upgrade, then _all_ my extensions are included and I can easily add new ones or remove unsued/unsage ones. Depending on the download time

RE: [PHP] Re: PHP hangs when exec'ing SSH

2005-03-10 Thread Chris W. Parker
Ross Becker mailto:[EMAIL PROTECTED] on Thursday, March 10, 2005 11:50 AM said: ugh: top posting. ugh ugh: no trimming! oy vey! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to ge the ones which are not

2005-03-11 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Friday, March 11, 2005 10:12 AM said: I've built this little regular expression to test wether an e-mail address is valid or not: if(eregi ([EMAIL PROTECTED], $email)) First, you should be aware that your RegEx is wrong. I know it's

RE: [PHP] Tried to run PHP as shell script and got the error...

2005-03-11 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Friday, March 11, 2005 11:28 AM said: Your first line needs to have both the # and the ! (shebang) #!/usr/local/bin/php Would this also work??? williamhung/usr/local/bin/php :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: bulk emailer

2005-03-14 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] on Monday, March 14, 2005 2:05 PM said: Usually you can tell the sendmail program to just queue the messages instead of deliverying them immediately using the delivery mode switch od . If you want to see how that is done, take a look at the

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jeff Schmidt mailto:[EMAIL PROTECTED] on Monday, March 14, 2005 2:58 PM said: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/welding/weldingconsultants.com/wcapp/admin.php on line 82 Line 82 is:

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very likely the problem is not on line 82, but rather before it. Line 82 is just where the PHP parser finally gets

RE: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Chris W. Parker
Jason Barnett mailto:[EMAIL PROTECTED] on Monday, March 14, 2005 3:57 PM said: Chris W. Parker wrote: Chris W. Parker on Monday, March 14, 2005 3:15 PM said: Line 82 is: print 'tdinput type=\'checkbox\' name=\'status[' . $row[profileID] . ']' . ' value='true'//td\n; Very

RE: [PHP] opt-in mail list best practice

2005-03-16 Thread Chris W. Parker
Todd Trent mailto:[EMAIL PROTECTED] on Wednesday, March 16, 2005 12:46 PM said: - Opt-in list could be less than 100 or in the 1000's. [snip] I've been googling all day and have found mailing classes, libraries, and scripts none of which seem to be documented very well or let me build

RE: [PHP] Setting cookies for other domains

2005-03-17 Thread Chris W. Parker
Brian Dunning mailto:[EMAIL PROTECTED] on Thursday, March 17, 2005 4:45 PM said: Question: why didn't this work, is it supposed to work the way I was trying, and if not, then what is that domain variable there for??? Answer: Seems to me that browsers wouldn't allow this as it could

RE: [PHP] Convert time

2005-03-18 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Friday, March 18, 2005 12:10 PM said: Hi, Hello virtualsoftware! I want to display the date he registered in this format: year, month, day, hour, minute, second. Please somebody tell me how can i do that. Take a look at:

<    1   2   3   4   5   6   7   8   9   10   >