RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
Red Wingate on Wednesday, June 30, 2004 10:29 AM said: > even for the guy who wrote the source. it's allmost impossible to > restore the data as the only option is a brute-force attempt. right so what is the point you're trying to make? c. -- PHP General Mailing

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Joel Kitching on Wednesday, June 30, 2004 10:34 AM said: > What's wrong with addslashes() on the way in and stripslashes() on the > way out? Why would you want to convert it to it's HTML entity? 1. addslashes() is not as robust as other solutions like mysql_escape_

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Justin Patrin on Wednesday, June 30, 2004 11:10 AM said: > mysql_escape_string() and mysql_real_escape_string() do the escaping > as mysql needs it. In addition, you can use PEAR::DB's quoteSmart to > quote and it will change depending on the DB backend you're using.

RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris W. Parker
Scott Fletcher on Wednesday, June 30, 2004 12:42 PM said: > Bummer, mysql_escape_string() is available only in PHP 5 and up. I'm > using PHP 4.3.1 read the page again bro. :) http://us4.php.net/mysql_escape_string chris. -- PHP General Mailing List (http://

RE: [PHP] problem with embeded objects and reference

2004-06-30 Thread Chris W. Parker
Vincent DUPONT on Wednesday, June 30, 2004 1:05 PM said: > Hi, hi. > could anyone help on this 'by reference' problem. when starting a new thread please do not just reply to an ongoing thread and change the subject. please start a new email. your fellow list mem

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, June 30, 2004 2:11 PM said: >> Hashing ... but i guess he wants to protected the password >> needed to access the DB not a PW stored in the DB. > > Yes, this is what I am concerned about, access to the file by local > users on the ser

RE: [PHP] Messages to List Being Truncated

2004-06-30 Thread Chris W. Parker
Pablo Gosse on Wednesday, June 30, 2004 2:29 PM said: > Hi folks. I've just attempted to twice post a message, and for some > reason it's being truncated somewhere between my Sent Items folder and > when it appears on the list. > > Has anyone had similar problems.

RE: [PHP] Messages to List Being Truncated

2004-06-30 Thread Chris W. Parker
Red Wingate on Wednesday, June 30, 2004 2:50 PM said: > the first one was truncated but the second one was complete. Btw thx > Chris for opening up yet another thread that could have been avoided > if your client was configured correctly. oh woe is me! if only i had

[PHP] sql statement help needed

2004-06-30 Thread Chris W. Parker
hello, i've had to change some of my tables to accomodate some greater flexibility in the application that uses it and because of this i need to go through and update all the records. i've done one table by hand and it had about 100 records and took about 20 minutes. but this next table has about

RE: [PHP] Messages to List Being Truncated

2004-06-30 Thread Chris W. Parker
Red Wingate on Wednesday, June 30, 2004 3:21 PM said: > I would recommend you to either use some kind of Newsgroup software or > just try another e-mail client ( eg thunderbird ) ok. i'll see what i can do. chris. -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, June 30, 2004 4:15 PM said: > How can I use a password hash to log on to a database server (or for > any other login for that matter)? i apologize. i completely misunderstood your original post. in which case, i can think of only two

RE: [PHP] List

2007-04-25 Thread Chris W. Parker
On Tuesday, April 24, 2007 6:02 PM Richard Lynch said: > I do not have any problems, but I'm not using Outlook, and never will. Okay... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Skip Evans on Friday, July 14, 2006 4:33 PM said: > My apologies to all. I assumed that JS questions > would be entertained as the application is within > a PHP app. No need to apologize. My off-list email wasn't meant to berate but merely let you know what the purp

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Chris W. Parker <> on Monday, July 17, 2006 10:23 AM said: > motherboards. Or how about this one? "My can't keeps walking on my > keyboard while I'm trying to write a PHP page. What should I do?" Okay that should be CAT, not can't. -- PHP General

[PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Chris W. Parker
Hello, So we're getting ready to redo our website once again to integrate some modern changes and a shift in branding. I'm currently looking at all my options as far as software goes. The question I have to answer is "Do I write everything by myself from scratch and spend 3-6 months doing it? Or d

RE: [PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Chris W. Parker
Brady Mitchell on Thursday, July 20, 2006 12:25 PM said: > The answer to this question depends heavily on your needs. What kind > of functionality do you need to get out of your website? If you are > looking for a website that is similar to others in function, than

RE: [PHP] Enterprise grade CMS+Ecomm

2006-07-21 Thread Chris W. Parker
Larry Garfield <mailto:[EMAIL PROTECTED]> on Thursday, July 20, 2006 6:36 PM said: > On Thursday 20 July 2006 11:30, Chris W. Parker wrote: > > Drupal has its own ecommerce suite that is reasonably robust all on > its own. Yeah I saw that module. I think today I am going

[PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use PHP5. I know that Fedora Core 5 offers PHP 5.1

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jochem Maas on Wednesday, August 09, 2006 11:05 AM said: [snip useful stuff] > 1. you can skip 'make test' > 2. if in doubt do 'make clean' before 'make' > 3. rinse and repeat 'configure', 'make', 'make install' as required > 4. do './configure --help' to see all th

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jack Gates <mailto:[EMAIL PROTECTED]> on Wednesday, August 09, 2006 10:16 AM said: > On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: >> I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some >> negative things about it in general (FC5). > > W

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jonathan Duncan on Wednesday, August 09, 2006 3:55 PM said: > If you want to really learn Linux, try Gentoo. If you just want a > very good and easy to use Linux, go with SuSE. To keep this related to the question I asked... Do either of the latest builds of these

[PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Hello, I have about 90 customers who have created accounts but not yet activated them in the past 11 months. That's less than one every 3.6 days but compared to our total number of customers, it's right at the edge of being a significant number. I'm curious to find a way to determine if the mail

RE: [PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Richard Lynch on Thursday, August 10, 2006 1:14 PM said: > Keep in mind that for many mere mortals, the process of dealing with > your email confirmation goes like this: > > 1. surf to site, put in email > 2. check email, find nothing. > 3. go back to site, use work

RE: [PHP] OT? Verifying mail was received

2006-08-11 Thread Chris W. Parker
tedd on Thursday, August 10, 2006 7:59 PM said: > Not a php solution, but send them all a buck via PayPal. For $90 > you'll learn if their email addresses are correct. > > That should be cheaper than writing a program to figure it out for > you, if it can be done.

[PHP] Setting flags versus checking for existing/nonexisting values

2006-08-15 Thread Chris W. Parker
Hello, Is it a better practice to set flags to determine the action of your code or is it perfectly acceptable to have your code determine what it should do based on the existence (or lack thereof) of data? For example: versus: Of course this is an overly simplistic example but you get the

RE: [PHP] Setting flags versus checking for existing/nonexisting values

2006-08-15 Thread Chris W. Parker
Brad Bonkoski on Tuesday, August 15, 2006 10:04 AM said: > Pros: potentially more readable code. > Cons: Wasted energy typing unnecessary lines of code. > Really I would say it comes down to coder preference. > > (and why would you avoid the latter all together? Te

[PHP] Easier way to get the name of a variable?

2006-08-15 Thread Chris W. Parker
Hello, After some "intense" searching of Google I found one example at http://us2.php.net/language.variables on how to get the name of a variable. But it looks pretty expensive. $val) { if($val === $new) $vname = $key; } $var = $old; return $vname; } ?> Anyone aware of a simple

RE: [PHP] Creating User Friendly URLS

2006-08-17 Thread Chris W. Parker
tedd on Thursday, August 17, 2006 8:29 AM said: >> And then stripping out the "index.php", and using the remainder for >> both the URL and the database lookup. > > Why not just place all your pages inside folders with the names you > want and then link to the folde

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Chris W. Parker
Daevid Vincent on Thursday, August 17, 2006 12:58 PM said: > B/c I'm too busy (and lazy) to hand type it all in, wondering if > someone has an array of state abbreviations to names like so... > > $states = array( > ... > 'NY' => 'New York', > 'WA' => 'Wa

[PHP] Looking for caveats to the following code

2006-08-17 Thread Chris W. Parker
Hello, While experimenting with some object stuff I stumbled upon something new (although not object related). Normally I would do this: Using the same function above I discovered I can do this: The issue is whether or not this is a safe test. My initial thought is that it is safe since I'

RE: [PHP] active directory and PHP

2006-08-18 Thread Chris W. Parker
Richard Lynch on Friday, August 18, 2006 9:47 AM said: > Active Directory is a bastardized LDAP with goofy idiosyncracies to > drive you crazy. And you're speaking from experience? > Never use AD myself. Oh wait, I guess not... :/ Chris. p.s. I'm just having

[PHP] OT alternate website authentication methods

2006-08-18 Thread Chris W. Parker
Hello, Last night I was reading Chris Shiflett's PHP Security book from O'Reilly and got to thinking about ways to authenticate a user other than using a password. Ideas: 1. Use flash to allow the user to draw an image. If the original image created during signup is within an acceptable range of

RE: [PHP] Shopping cart

2006-08-23 Thread Chris W. Parker
Richard Lynch on Tuesday, August 22, 2006 10:30 AM said: > Guys, don't take this wrong but... > > How do you think all the other PHP shopping carts got started?... > > Pretty much the same way. > > So you really need to spend the next couple months figuring out wh

RE: [PHP] OT alternate website authentication methods

2006-08-23 Thread Chris W. Parker
Everyone, Been out of the office for a few days... As nearly everyone has pointed out, the downside(s) to visual/audial authentication methods are greater than the benefits Thanks! Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Format of Encrypted Password

2006-09-05 Thread Chris W. Parker
Kevin Murphy on Tuesday, September 05, 2006 3:27 PM said: > The passwords are called in the application by: > > $_SERVER['PHP_AUTH_PW'] > Is there any way to tell how these passwords were encrypted? Have you tried searching the entire codebase for that string? Mig

[PHP] Data validation at the db level

2006-09-07 Thread Chris W. Parker
Hey everyone, Is there any work being done in the database world for data validation at the db level? It would be cool to just define a field as being an email address (of length nn) instead of saying a TEXT field (of length nn) and validating it in the application layer. Same goes for other thin

RE: [PHP] Data validation at the db level

2006-09-07 Thread Chris W. Parker
Jay Blanchard on Thursday, September 07, 2006 5:16 PM said: > There are all sorts of ways to validate data at the DB level and this > is a PHP question how? Just because! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] +AFs-OT+AF0- Working with version control

2006-09-21 Thread Chris W. Parker
Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. Currently I don't use version control at all. What I do instead is have one directory that contains my development website and one directory that contains the live webs

RE: [PHP] PHP Standard style of writing your code

2006-04-28 Thread Chris W. Parker
Richard Lynch on Monday, April 24, 2006 11:50 PM said: > So no matter what was actually typed, *I* would see: > > function foo ($x) { > //body > } > > but some heretic who doesn't know any better would see: > function foo($x) > { > //body > } > > Now *THAT* wo

RE: [PHP] PHP Standard style of writing your code

2006-05-01 Thread Chris W. Parker
Richard Lynch on Saturday, April 29, 2006 12:12 AM said: > Okay, but let's do keep this fairly serious, and let's NOT let it > devolve into the usual religious flame-war this topic gets to... Yeah I should have asked off list as I'm not interested in debating, just

RE: [PHP] ????,????????????

2006-05-02 Thread Chris W. Parker
Yes definitely. I totally agree. Please send me more on the product/service you're giving away/trying to sell to me/us. I'd really like to see/hear/experience more. Thanks/Regards/Sincerely! Chris. -Original Message- From: abzgjisf5 [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006

RE: [PHP] ????,????????????

2006-05-02 Thread Chris W. Parker
Yeah it's Chinese. I can see the characters fine. The subject is just ? marks, though I'm not sure why. -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 4:45 PM To: Chris W. Parker Cc: p

RE: [PHP] Sanity checker?

2006-05-03 Thread Chris W. Parker
Ezra Nugroho on Wednesday, May 03, 2006 10:51 AM said: > Well, Reservoir, > I envision a tool that would audit your php code, and tell you if your > code is good or not, if it has scaling issues, etc, etc. Basically it > tells if your php code is "sane" or not. Is

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Steve on Friday, April 21, 2006 5:58 PM said: > So everyone's aware, I have NO intention of storing credit card #'s. I > don't see why anyone needs to.. especially after reading Richard's > past posts in the archive. Perhaps if you don't use a merchant account

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Edward Vermillion on Wednesday, May 03, 2006 4:15 PM said: > Ahh!! *thud* > > Count me in the heart attack group. So would it be a reasonable risk > if it was *your* cc # that was stolen? And do your customers *know* > that you're handling their sensitive in

RE: [PHP] Creating an OO Shopping Cart

2006-05-04 Thread Chris W. Parker
Richard Lynch on Thursday, May 04, 2006 2:06 AM said: > Contact the bank with which you already HAVE a merchant account for > your point-of-sale credit card swiper thingies. Already have the info in front of me. :) > If you're re-doing it anyway, you might as well

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 10:38 AM said: > - Anything else you wish to add pertaining to the > above. You could try sending an insanely long value to a script on your page and see how much of the actual data it received before being truncated or causing an er

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Jay Blanchard on Thursday, May 04, 2006 10:42 AM said: > [snip] > - Anything else you wish to add pertaining to the > above. > [/snip] > > People who use GET requests are lazy. What does... Edit User #241241 ...have to do with being lazy? Chris. -- PHP Genera

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 1:18 PM said: > Thanks for replying, thats an idea, but was hoping > people from this list could reply with their > experiences because my local server might be different > from production servers that you guys access everyday > (as t

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 1:36 PM said: > (Basically, I am checking to see how many characters > we can have in a URL that the server will accept and > process, the script checks 200-1000 chars.. add more > if you want to) Without any tweaking of the server m

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A on Thursday, May 04, 2006 4:08 PM said: >> Are you sure you searched on this subject? > >> "maximum url length" in Google turns up a number of >> resources saying "2083" due to IE's limit. > > Yes, I mentioned that in my original post... Yes I know, that's

RE: [PHP] Another Shell Caught

2006-05-11 Thread Chris W. Parker
Wolf on Thursday, May 11, 2006 8:01 AM said: > If any of you guys want to know when I get another shell caught on my > site, email me off-list and I'll set you up as a mailing list > personally. > > This new one is the r57shell and is picked up by Symantec What is

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-12 Thread Chris W. Parker
tedd on Friday, May 12, 2006 11:01 AM said: > At 6:03 PM +0100 5/12/06, Porpoise wrote: >> "tedd" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>> >>> Try this: >>> >>> http://xn--ovg.com/ajax_page1 >>> >> Eerrrm... Blank Page!?! >

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-15 Thread Chris W. Parker
tedd on Friday, May 12, 2006 12:23 PM said: > That's as it should be -- and technically, "Next" did appear so the > page wasn't blank. Splitting hairs aside, a user, "civilian" or not, would not expect they need to click "Next" from a "blank page" to get to the cont

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Chris W. Parker
Ryan A on Wednesday, June 21, 2006 10:51 AM said: > @K. Bear - Thanks for the link, I'll check it out as > soon as i get a little time. Read that article. I personally like the "Nested Set" (also called Modified Preorder Tree Traversal) method. It may at first be a

RE: [PHP] can't figure out this mysql error

2004-01-26 Thread Chris W. Parker
Jason Wong on Friday, January 23, 2004 10:03 PM said: > Time to put the php debugger in action -- echo all your variables to > see that contain what you expect them to contain. 'echo $this->Result;' prints "Resource id #2" 'print_r($this->Result);' prints "Resource

RE: [PHP] Sessions not working.

2004-01-29 Thread Chris W. Parker
Jas on Thursday, January 29, 2004 1:06 PM said: [snipped about 425 useless lines] > Well in that case do a dump_vars($_session[],$_session[]) for each > session variable you register and see if anything is listed. > Jas C'mon dude. Some of use are on dialup (not me

[PHP] trim your posts

2004-01-29 Thread Chris W. Parker
thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do you guys do this?

2004-01-30 Thread Chris W. Parker
Ryan A on Friday, January 30, 2004 10:09 AM said: > common directory (member_pics) so what do you suggest I name the > pictures? eg: > username.jpg? > first_last_name.jpg? > _username.jpg? how about _originalfilename.jpg? Someone uploads "breadbox.jpg" you save it

RE: [PHP] Size of Arrays

2004-01-30 Thread Chris W. Parker
Galen on Friday, January 30, 2004 12:35 PM said: > On huge arrays (hundreds of thousands of elements, three dimensions, > several megabytes) the performance impact is huge! The downside is > you'll probably have to use numeric keys instead of associative, but > for b

RE: [PHP] Am I missing Something

2004-01-30 Thread Chris W. Parker
Stuart on Friday, January 30, 2004 2:56 PM said: > print ''; print_r($somearray); print ''; not to steal your glory stuart but you can make it easier on yourself by doing the following: echo '',print_r($somearray),''; it's merely less typing. hth, chris. -- PHP

RE: [PHP] Exectution Time?

2004-01-30 Thread Chris W. Parker
John Nichel on Friday, January 30, 2004 3:23 PM said: John and John, Nice replies. Mike, John W. Holmes example I think was supposed to be a wink wink nudge nudge thing. What you need to do is store the current time at the point just before you begin execution, th

RE: [PHP] How do you guys do this?

2004-01-30 Thread Chris W. Parker
PHP Email List on Friday, January 30, 2004 4:41 PM said: > I sure hope that there aren't 2 people uploading breadbox.jpg at the > same second. That'd be too weird! Now maybe if it was a porn site I > could see the same name, tina.jpg, michele.jpg, but again, the same

RE: [PHP] How do you guys do this?

2004-01-30 Thread Chris W. Parker
Michal Migurski on Friday, January 30, 2004 5:31 PM said: > users uploading two identically named files at the same time (not all > /that/ unlikely), and you are using a database table to track Really? You don't think it's that uncommon? Please give an example as I

RE: [PHP] [ERR] RE: [PHP] extract(filename)

2004-02-04 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 04, 2004 10:23 AM said: > Transmit Report: > > To: [EMAIL PROTECTED], 402 Local User Inbox Full > ([EMAIL PROTECTED]) OH GREAT! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Chris W. Parker
Sam Masiello on Wednesday, February 04, 2004 1:36 PM said: > Thank you for the reply, Adam, but unfortunately it didn't work. So you want to accept input that may or may not look like the following? Here is some \[text\] for j00. Well I'm no regex expert but I *th

RE: [PHP] MySQL: Order by

2004-02-05 Thread Chris W. Parker
John Taylor-Johnston on Wednesday, February 04, 2004 9:48 PM said: > When I order by number, it echoes 1,2,3,4,5,6,7,8,9,10 and hten jumps > to 100...199 before it comes back to 11-19. Any way of ordering that > differently? Sounds like your 'number' column is not a

RE: [PHP] php-general list question - [Fwd: Delivery Report (failure) forphp-general@lists.php.net]

2004-02-05 Thread Chris W. Parker
Adam Bregenzer on Thursday, February 05, 2004 1:45 PM said: > I get one of these for almost every message I send, usually with a > delay of a few days and always the same error. I see my posts come > from the list to me and I see people replying to my messages so th

RE: [PHP] var references

2004-02-06 Thread Chris W. Parker
Arthur Pelkey on Friday, February 06, 2004 9:46 AM said: > $blat = $tue_5a; [snip] > while($row = mysql_fetch_array($result)) { > switch($blat) { > case tue_5a: > $min_1 = $row[29]; > break; > } [snip] > Why can I not

RE: [PHP] Surpressing a 'foreach' Error Message

2004-02-06 Thread Chris W. Parker
craig on Friday, February 06, 2004 2:24 PM said: > if (is_array($project)) > foreach ($project as $project_id => $value) { > $fields[] = $project_id; > $values[] = $value; > } > } you're missing a curly brace after the if (). -- PHP General Mailing List

RE: [PHP] math produces strange characters 

2004-02-06 Thread Chris W. Parker
Paul Furman on Friday, February 06, 2004 3:28 PM said: >$result= (1 * 10); > print$result >> > > 10 > Again, I very new to this, first time I tried doing a little simple > math, I'm befuddled. I'm not getting the same result. I got a plain 10. But some wei

RE: [PHP] math produces strange characters 

2004-02-06 Thread Chris W. Parker
Paul Furman on Friday, February 06, 2004 4:00 PM said: > That was the whole page but it's being included from a template. When > I made the test math file empty: > I still got the funny characters but not with any other pages I > include there. > > Here it is: > ht

RE: [PHP] question

2004-02-11 Thread Chris W. Parker
Meramec Challenge Paintball, LLC on Wednesday, February 11, 2004 7:40 AM said: I'm glad you put "question" in your subject line because for a minute there I thought you were sending me a note of praise. I realized you weren't once I read your informative subject line

RE: [PHP] A dumb question

2004-02-11 Thread Chris W. Parker
Jeremy Schroeder on Wednesday, February 11, 2004 11:39 AM said: > What does the ampersand do in the bottom example code, they both work. > > $n1 = $num1 -> function(); > $n1 = & $num1 -> function(); I think in this it's what's called a reference. Don't know much el

RE: [PHP] A dumb question

2004-02-11 Thread Chris W. Parker
Chris W. Parker <> on Wednesday, February 11, 2004 11:45 AM said: > I think in this it's what's called a reference. Don't know much else. > :) Ok that should be "I think this is what's called"... had to correct that. -- PHP General Mailing List (

[PHP] negative impact on session management after turning off trans_id?

2004-02-12 Thread Chris W. Parker
Hi. I'm wondering if there are any negative side affects to turning off the trans_id? Does it just mean that the site can't keep track of a user unless they have cookies turned on? There are enough parts of my site that don't require a session that I think requiring cookies is not a problem so I'

RE: [PHP] Mp3 with php?

2004-02-12 Thread Chris W. Parker
carlos castillo on Thursday, February 12, 2004 3:53 PM said: > does anyone know how to reproduce a mp3 file with php? What do you mean reproduce? Copy? Create from scratch? Represent visually? In any case.. I'd say PHP cannot do anything but create a copy of a file

RE: [PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Chris W. Parker
Matt Hedges on Friday, February 13, 2004 1:00 PM said: > I need for a table cell to fill in the remaining space between some > rows above and a row below, no matter what the window size. I > thought this was possible with a height="*", but it doesn't work. you shou

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Chris W. Parker
Michael T. Peterson on Friday, February 13, 2004 1:03 PM said: > I have written a very straightforward user login script. Once the > user successfully logs in, I would like my PHP script to take him > directly to the home page. [snip] > Can I avoid that intermediate

RE: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Chris W. Parker
Alex Hogan on Friday, February 13, 2004 1:10 PM said: > if($login == "successful"){ > $url = "yourin.php"; > } > else{ > $url = "tryagain.php": > } > > header("Location: $url"); don't forget the rest of the url and don't forget to exit like matt said...

RE: [PHP] logo

2004-02-13 Thread Chris W. Parker
rostik on Friday, February 13, 2004 12:53 PM said: please don't send attachments to the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] cli input and screen question(s)

2004-02-13 Thread Chris W. Parker
Matthias Nothhaft on Friday, February 13, 2004 3:26 PM said: > The other problem is: I would like to draw a screen > like midnight commander does. Is there a way to get that > work with PHP ? midnight commander? never heard of it. but you might want to look into so

RE: [PHP] Fedora FC1 + PHP 4.3.4 + phpMyAdmin 2.5.6 rc1 - Problems Resolving Included Files

2004-02-13 Thread Chris W. Parker
Radi Shourbaji on Friday, February 13, 2004 4:05 PM said: > Hello All! I'm struggling to get phpMyAdmin working correctly on a > new installation of Fedora FC1. What exactly are you having problems with? > I would appreciate it if someone could walk me > through t

RE: [PHP] auto increment

2004-02-17 Thread Chris W. Parker
BAO RuiXian on Tuesday, February 17, 2004 11:32 AM said: > If the id is auto increment, can't you use max(id) to get the last > inserted one? only if you are the absolute only person that will ever be connected to that db at one time. otherwise the answer is no. wh

RE: [PHP] Re: Sessions

2004-02-17 Thread Chris W. Parker
Paul Furman on Tuesday, February 17, 2004 10:39 AM said: >> Have a questions about sessions. In building a simple app do I have >> to include the session id in the url string or in a hidden tag? or >> does it normally track it by cookies and so I dont have to call

[PHP] how to deal with http and https directory structures?

2004-02-17 Thread Chris W. Parker
hey everyone, i'm just starting to use https with my site (got it working today) and i came up against a problem with how i create my directory tree and organize my files. originally i did the following: http root: /home/cparker/www/domain.com/ https root: /home/caprker/www/domain.com/ssl but

RE: Re: [PHP] post variables (SpamEnder: BLOCKED 8BZF-SE44074-lgonze@panix.com) (fwd)

2004-02-17 Thread Chris W. Parker
Lucas Gonze on Tuesday, February 17, 2004 2:00 PM said: > Is it possible to ban subscribers who issue this kind of > auto-response? i just wish people were smart enough to understand that no one cares about the spam in the other persons mailbox. we only care about t

RE: [PHP] Getting age from yyyy-mm-dd

2004-02-18 Thread Chris W. Parker
Ryan A on Wednesday, February 18, 2004 8:19 AM said: > I think I will need to use mktimebut how?? > > Any help appreciated, in URL form, hints or PHP manual references. well i think the idea is to convert the date/time of the person's birthday into a unix times

RE: [PHP] PHP Login Page Issues

2004-02-18 Thread Chris W. Parker
Pushpinder Singh on Wednesday, February 18, 2004 7:46 AM said: > I was wondering if anyone had a chance to take a quick peek at > this code. Thanks again guys ! yes. but it's hard to read, so i just skipped it considering i haven't had a lot of time to spend in

RE: [PHP] Re: how to deal with http and https directory structures?

2004-02-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 6:03 AM said: > What this means is that you can have a user access a certain page via > https by simply providing a link containing "https://"; as the prefix. > The down side of this solution is that users will be fre

RE: [PHP] Going a bit nuts with php/mysql structure......(maybe 0T)

2004-02-18 Thread Chris W. Parker
Ryan A on Wednesday, February 18, 2004 12:18 PM said: > I have the 3 distinct order_ids, but when I try to do a "select > *where order_id='$order_ids' " on the order_ids...I get all the > damn records. The only thing truly unique is the CNObut I have > been u

RE: [PHP] Nested Loops

2004-02-18 Thread Chris W. Parker
Alex Hogan on Wednesday, February 18, 2004 2:06 PM said: > Do I have something wrong with my syntax? > > Is there an easier way to do this? i don't know the answer to either of those questions but if it's complaining of an undefined index you might want to try prin

[PHP] rewrite rule not working

2004-02-18 Thread Chris W. Parker
hi. ok so i've got two rules in a .htaccess file. both of them are valid. only one works. here are the pertinent lines in my .htaccess: RewriteEngine on RewriteBase /~cparker/ RewriteRule ^products/([a-zA-Z0-9-]+)$ product.php?id=$1 RewriteRule ^verify/([a-f0-9]+)$ verify.php?uid=$1 Here is h

RE: [PHP] checking users have the latest version of a file

2004-02-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 3:42 PM said: > Hi there i am developing a collaboration filespace, i was wondering if > there is any way either using diff or filesize to check if users have > the latest version of a file before uploading their copy

RE: [PHP] checking users have the latest version of a file

2004-02-19 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, February 18, 2004 5:18 PM said: > I dont understand what you are doing with the md5, and > > i assume YOU will know which file is the latest version. > > this is what i have to try and find out to prevent that. the md5 thing will ju

RE: [PHP] Generating Sub Headings

2004-02-19 Thread Chris W. Parker
Nicole on Thursday, February 19, 2004 10:28 AM said: > I have data that looks like this: [snip] > The second value is the year, I have have multiple files for the same > year. What I want to do is output the values under Year sub headings. ok woh. that's way too m

RE: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Chris W. Parker
Scott Fletcher on Friday, February 20, 2004 8:41 AM said: > Went Google surfing on Browser Refresh & Back/Forward Button and > it turned out that PHP can do the dirty work. Problem is no sample > script, all I see are comments about suggesting on using the > $_S

RE: [PHP] PICTURE (((PHP don't work with Apache))) PICTURE

2004-02-20 Thread Chris W. Parker
[EMAIL PROTECTED] on Friday, February 20, 2004 10:21 AM said: > This is the window, that I see, when trying to see my phpinfo.php > file through the Internet Explorer. > E-mail: [EMAIL PROTECTED] hmm.. i didn't see a picture but that's g

RE: [PHP] sending reply, the continuing

2004-02-20 Thread Chris W. Parker
how about having your php script execute another php script via the command line? wouldn't this allow the web page to close it's connection while the command line continued to do it's thing unaware of what was going on with the web server? chris. -- PHP General Mailing List (http://www.php.ne

RE: [PHP] Security Question

2004-02-20 Thread Chris W. Parker
Ed Lazor on Friday, February 20, 2004 2:29 PM said: > It's like PHP is somehow confused and running my script with the > account settings (and permissions, possibly) for another user on my > host provider's server. If that's true, wouldn't this quality as a > securi

<    2   3   4   5   6   7   8   9   10   >