RE: [PHP] Any idea how to do this?

2003-10-06 Thread Chris W. Parker
Ryan A on Monday, October 06, 2003 1:34 PM said: > HEHEHEHE good one Chris, John seems unusally snappy today... > But seriously, this cant be ALL that hard, not even a suggestion of > where to start? > I have searched on google but have never really tried any of php'

RE: [PHP] general OO php question

2003-10-06 Thread Chris W. Parker
Kirk Babb on Monday, October 06, 2003 4:57 PM said: > If I have a class called Registration, should I code in the > mysql_connect inside each function inside the class that needs it, or > should I make a function called dbConnect? What you should do is define a db c

[PHP] mysql_fetch_array() not working as expected

2003-10-07 Thread Chris W. Parker
Hey peeps. Let me make this simple. I've got the following sql query in a function: SELECT c.id , cc.id , cc.prod_id , p.name , cc.price , cc.qty FROM cart AS c INNER JOIN cart_contents AS cc ON cc.cart_id = c.id INNER JOIN products AS p

RE: [PHP] mysql_fetch_array() not working as expected

2003-10-07 Thread Chris W. Parker
Marek Kilimajer on Tuesday, October 07, 2003 12:26 PM said: > (c.id) You can make the query: > SELECT c.id > , cc.id AS ccid > , cc.prod_id > , p.name doh! how obvious! thanks. c. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] RE: {Spam?} [PHP] Congratulations You Win

2003-10-08 Thread Chris W. Parker
Francis Weeny on Wednesday, October 08, 2003 7:30 PM said: > SUNSWEETWIN PROMO LOTTERY,THE NETHERLANDS. [snip great news] YES!!! WE'RE RICH!! c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function to show time passed since event

2003-10-08 Thread Chris W. Parker
Hiya. Tried searching google with no luck on this one. I'd like a function that when passed a time will spit back in plain english how much time has passed. i.e. You logged in "one hour ago". Anyone got da hookup? Thanks, Chris. p.s. Now with signature! -- Don't like reformatting your

RE: [PHP] problem transferring a variable using POST

2003-10-09 Thread Chris W. Parker
Davy Campano on Thursday, October 09, 2003 8:57 AM said: > This statement works: > $sql = 'UPDATE wo SET status = 1 WHERE ticket = 1' > > This statement does not: > $sql = 'UPDATE wo SET status = 1 WHERE ticket = > $HTTP_POST_VARS[ticketed]' > > Any suggestions...

RE: [PHP] problem transferring a variable using POST

2003-10-09 Thread Chris W. Parker
Bertrand Moulard on Thursday, October 09, 2003 9:20 AM said: > $_POST['ticketed'] : this is not an array but value isn't it ? Try print_r($_POST); and see what you get. c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] problem transferring a variable using POST

2003-10-09 Thread Chris W. Parker
Bertrand Moulard on Thursday, October 09, 2003 9:24 AM said: > fair enough, $_POST is an array, but what about $_POST['ticketed'] ? > Just want to make sure about this {} thingie The output of this page is the following: Parse error: parse error, unexpected T_EN

RE: [PHP] variables passed through URL

2003-10-09 Thread Chris W. Parker
Frank Tudor on Thursday, October 09, 2003 1:48 PM said: > How would I populate the value in a form tag? > > name="something"> You need to go here http://us4.php.net/manual/en/language.variables.external.php and read up. hth, chris. -- PHP General Mailing List (

RE: [PHP] what is the best PHP editor?

2003-10-13 Thread Chris W. Parker
Chris Boget on Monday, October 13, 2003 10:00 AM said: > I am not sure what you would consider reasonably priced, but the best > editor I've come across is Visual Slick Edit. Bar none, the best and > most feature rich editor I've come across in the last few years.

RE: [PHP] Slow searches in large database

2003-10-13 Thread Chris W. Parker
Adrian Teasdale on Monday, October 13, 2003 3:54 PM said: > An example of one of our search strings is: [snip] > Basically, is there anything that anyone can immediately suggest that > we need to do to speed things up? 1. You could try changing 'docs.*' to a verbo

[PHP] class/object design

2003-10-14 Thread Chris W. Parker
Hey peeps. Let me try to make this simple. Right now I have a base db class that is moved solely for interacting with the db. It opens the connection, runs queries, and returns the results of those queries. Along with this class I've got some other classes (I'll call them "upper" classes) that are

RE: [PHP] Sessions Question

2003-10-14 Thread Chris W. Parker
Jake McHenry on Tuesday, October 14, 2003 5:00 PM said: [snip] > Can someone point me in the right direction here? I'd love to help you but you did not provide enough information. What exactly are you trying to do and what is it failing? Try showing us the code i

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
Mike Brum on Tuesday, October 14, 2003 5:31 PM said: > One quick note - if you're starting a session then you can't user the > header() function afterwards. You'll get the lovel "headers already > sent" error. > > Be sure to use an alternate method of redirection if

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
Jake McHenry on Tuesday, October 14, 2003 7:00 PM said: > Mainly what my problem is, is that when I turn Register_Globals = Off, > then my scripts stop working. I can't even get past the page I showed > you, the login page. No errors, it's just like I didn't enter an

RE: [PHP] fetch entire mysql-result to an array immediately

2003-10-15 Thread Chris W. Parker
Victor Spång Arthursson on Wednesday, October 15, 2003 7:33 AM said: > Is that possible? The mysql_fetch_array fetches the result by one row > each time, but I dont want to iterate through a result but only just > fetch it right away... I don't think there is a buil

RE: [PHP] Newbie question about Class

2003-10-15 Thread Chris W. Parker
Al on Wednesday, October 15, 2003 10:36 AM said: > Will the class structure do this for me or must I save the values in > $GLOBAL or something? I think you'd have to send the value via $_GET or save it in a session variable if you want to retrieve it on another page

RE: [PHP] Nested queries don't work

2003-10-15 Thread Chris W. Parker
Rich Fox on Wednesday, October 15, 2003 12:37 PM said: > This does NOT work! It seems that the 2nd query steps on the results > of the first one! Can someone verify this effect? Seeing that you're using different result variables I would think that it should work al

RE: [PHP] Sessions Question

2003-10-15 Thread Chris W. Parker
Jake McHenry on Wednesday, October 15, 2003 12:55 PM said: > Once I get a complete list, I can just copy and paste that to all my > files, correct? Yes you can just copy and paste the code. > What happens if I try to call a variable in $_SESSION > that hasn't been

RE: [PHP] Session lose value with httpS

2003-10-15 Thread Chris W. Parker
<-^-!-%- [mailto:[EMAIL PROTECTED]> on Wednesday, October 15, 2003 3:58 PM said: > What would cause a session value to be lost, under HTTPS? Hmm... I'll be coming up against this soon and would like to know the answer as well. One question though: can you set values in the $_SESSION array w

RE: [PHP] Return to browser and keep running!

2003-10-15 Thread Chris W. Parker
Manuel Vázquez Acosta on Wednesday, October 15, 2003 5:46 PM said: > set_time_limit(0); makes the scripts to run completely without the 30 > seconds error; but it will keep the connection with the browser; so > it does not solve the problem though I think you want t

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
Joseph Bannon on Thursday, October 16, 2003 9:24 AM said: > Does IE use mozilla? I'm writing a PHP script to keep track of user > agents. 1. Your question isnt' clear. 2. Please don't submit lazy lazy lazy questions like this to the list. (I think) You also asked t

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
Joseph Bannon on Thursday, October 16, 2003 9:33 AM said: >> Your question isnt' clear. > > What is not clear about it? I'm trying to keep keep track of user > agents with php. I think you mean to say "Does the word 'mozilla' appear in the IE user agent string?" A

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
John Nichel on Thursday, October 16, 2003 9:39 AM said: > Then write some test scripts, or google. I used "user agent strings" and gosh darn it, look what I found!! (page is slow to load) http://www.pgts.com.au/pgtsj/pgtsj0208c.html Chris. p.s. Please properly s

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
Joseph Bannon on Thursday, October 16, 2003 9:47 AM said: >> I think you mean to say "Does the word 'mozilla' appear in the IE >> user agent string?" > > That is not what I'm asking. I already know it appears there. But I > already got my answer. ok well then that

RE: [PHP] nested require_once

2003-10-16 Thread Chris W. Parker
Craig Lonsbury on Thursday, October 16, 2003 9:45 AM said: > I know this seems to be exactly what the whole 'once' part is about, > but better safe than sorry. That is correct. It only includes the file once regardless of how many times the file is requested within

RE: [PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Chris W. Parker
Joseph Bannon on Thursday, October 16, 2003 11:22 AM said: > Are there any sites I can post a bid request for programmers and > graphic designers? I've seen requests posted to this list in the past and not heard anyone complain (that I can remember). So it should b

RE: [PHP] intercepting URLs in a "control-system"

2003-10-16 Thread Chris W. Parker
Alan Lord on Thursday, October 16, 2003 1:40 PM said: > Having read quite a bit on-line, I am interested in trying to "trap" > URLs sent to my site so I can process the request and respond without > neccessarily having a "real" page to serve. If this makes any sense,

RE: [PHP] Use include function (newbie)

2003-10-17 Thread Chris W. Parker
Karina S on Friday, October 17, 2003 8:02 AM said: > Question: > Is it a right way to do this task or this reqursive calls overloads > the server? Maybe I'm misunderstanding you but I didn't see anything wrong with the example you gave. Maybe someone else will under

RE: [PHP] Hanmir I'm gonna kill you, you son of a..........

2003-10-17 Thread Chris W. Parker
Ryan A on Thursday, October 16, 2003 6:35 PM said: > Has this crap from hanmir started again? Yes. > Am I the only one who is getting these damn messages? And no. One thing that's strange though is that my sendmail /etc/mail/access rule does not work for these em

RE: [PHP] SQL security

2003-10-17 Thread Chris W. Parker
Eugene Lee on Friday, October 17, 2003 8:20 AM said: > If you're using MySQL, you can use mysql_real_escape_string(). If > you're using another database, hopefully there is a similar function. Doesn't MySQL automatically protect against attacks like SQL injection?

RE: [PHP] SQL security

2003-10-17 Thread Chris W. Parker
Mike Migurski on Friday, October 17, 2003 9:15 AM said: > There is a magic quotes feature, > which adds slashes to request variable. You may be thinking of that: Whoops! Yeah, that's what I'm talking about. Chris. -- Don't like reformatting your Outlook replies?

[PHP] strange MySQL result problem

2003-10-17 Thread Chris W. Parker
Hey peeps. Let me be quick (or try to at least). Here is a snippet of my db class. function query($sql, $current_line) { $this->Result = mysql_query($sql) or die($this->stop($current_line)); // the following two lines work if they are in the next // method get_query_res

RE: [PHP] Login system

2003-10-17 Thread Chris W. Parker
Bas on Friday, October 17, 2003 11:11 AM said: > And also... the interjinn website wont open... And also... it worked for me... And also... please don't top post... c. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~ja

RE: [PHP] strange MySQL result problem

2003-10-20 Thread Chris W. Parker
Marek Kilimajer on Friday, October 17, 2003 5:29 PM said: > Is your query correct? Yes. > function query($sql, $current_line) > { [snip] > } I tried your mod and I still saw the error, but your mod did not trigger any output. Chris. -- Don't like reformatting y

RE: [PHP] Multidimensional Arrays

2003-10-20 Thread Chris W. Parker
Ed Curtis on Monday, October 20, 2003 11:39 AM said: > What I'd like to do is break this into a multidimensional > array so I have approximately the following depending on what they > choose for each example. [snip] > I tried the following with no luck. > >

RE: [PHP] A web site interface preference tutorial

2003-10-20 Thread Chris W. Parker
Colin Kettenacker on Monday, October 20, 2003 11:06 AM said: > Any feedback/tips/hints/improvements to the code is appreciated. I > will hopefully have my company web site > finished within the next month (Nov) with the full tutorial on it.

RE: [PHP] A web site interface preference tutorial

2003-10-20 Thread Chris W. Parker
Colin Kettenacker on Monday, October 20, 2003 1:39 PM said: > Ahhh... nobody knows about the site yet (well till now I guess) :) ^ Exactly ---/ ;) -- Don't like reformatting your Outlook r

RE: [PHP] OT Re: php|cruise - do unto others...

2003-10-20 Thread Chris W. Parker
Robert Cummings on Monday, October 20, 2003 2:12 PM said: >> SADLY, the manual only mentions silver - unfortunately I >> only have copper to send!!! Someone should rewrite TFM > > InterJinn can turn your copper into silver. Just like it can simonize > cars, and oth

RE: [PHP] need help w a for loop

2003-10-20 Thread Chris W. Parker
Redmond Militante on Monday, October 20, 2003 2:15 PM said: > for($j=0; $j < $categories_count; $j++){ > $categories_array = array(); > $tempval="str_categories".$j; > array_push($categories_array,'$_REQUEST['.$tempval.']'); > } > > it looks like it's appending the

RE: [PHP] need help w a for loop

2003-10-20 Thread Chris W. Parker
Chris W. Parker <> on Monday, October 20, 2003 2:27 PM said: > that's because you've got: > >> array_push($categories_array,'$_REQUEST['.$tempval.']'); > > and not: > >> array_push($categories_array,$_REQUEST[$tempval]); Oh ma

RE: [PHP] need help w a for loop

2003-10-20 Thread Chris W. Parker
Ray Hunter on Monday, October 20, 2003 2:47 PM said: > Or you could try this: > > $categories_array = array(); > > for( $j = 0; $j < $categories_count; $j++ ) { > $tempval = "str_categories".$j; > $categories[$j] = $_REQUEST[$tempval]; > } Or you could get rea

[PHP] passing form data using $_SESSION

2003-10-20 Thread Chris W. Parker
Hiya. The way I do my forms is I create a form page and a corresponding processing page. I don't like to post forms to themself so I always make a processing page that header("Location: ...")'s back to the original page. Normally I create a long string that get's posted back to the original page

RE: [PHP] Read a file, extract and echo some information

2003-10-20 Thread Chris W. Parker
PHP Webmaster on Monday, October 20, 2003 4:36 PM said: > As you can see, the above code will not work as the $title variable > has not been set yet. So, I need a way of opening up the home.php > file, extracting the line containing the $title variable and putting >

RE: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-21 Thread Chris W. Parker
Marco Tabini on Tuesday, October 21, 2003 9:56 AM said: > True. Alas, it has to fit in our design, so one of the possibilities > we're experimenting with is using either floating frames for the > threading, or reducing the font size--the problem with the latter > bei

RE: [PHP] Read a file, extract and echo some information

2003-10-21 Thread Chris W. Parker
PHP Webmaster on Tuesday, October 21, 2003 4:17 AM said: > The required file will be changing all the time, that's why I want > to set the title in the individual pages and get the main page to > read that information. in that case let me revise my original code.

RE: [PHP] Using cookies

2003-10-21 Thread Chris W. Parker
John Taylor-Johnston on Tuesday, October 21, 2003 11:40 AM said: > Can someone recommend a good URL on cookies and security issues > please? I can program them, but am told I'm putting others at risk, > forcing people to use cookies on my site. I guess it depends o

RE: [PHP] Using cookies

2003-10-21 Thread Chris W. Parker
Marco Tabini on Tuesday, October 21, 2003 1:31 PM said: > But if the browser causes the information to leak, we did not share > (or disclose) it--the user did, through action or inaction (e.g.: not > patching his or her browser). > > Your bank won't share your money

RE: [PHP] Using cookies

2003-10-21 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, October 21, 2003 2:35 PM said: > Actually it's more like the bank storing your money in a safe with > glass walls. > > Sure the bank "stored" it, and stored it "securely" (it was behind > glass wasn't it?)

RE: [PHP] Using cookies

2003-10-21 Thread Chris W. Parker
John W. Holmes on Tuesday, October 21, 2003 5:30 PM said: > Not a good method. If I get on your site and see my cookie has the > value 241757219 in it, I just need to subtract one from the number > and revisit your site. Now I'm the user who registered before me. > U

RE: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Chris W. Parker
John Nichel on Wednesday, October 22, 2003 11:33 AM said: >> > echo "foo = {$_SESSION['foo']}"; >> echo "bar = {$_SESSION['bar']}"; > > Get rid of the "foo =" and the "bar =". when you use the single > equals sign, you're setting value Not when it's inside a

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-24 Thread Chris W. Parker
Justin French on Friday, October 24, 2003 12:57 AM said: > I also adapted wrapping all variables in {parenthesis} so that PHP has > no chance of being confused heh... actually those are {curly braces} and these are (parenthesis). > No special chars or vars: > echo

RE: [PHP] How do i delete all escaped backslashes when i make a file???

2003-10-24 Thread Chris W. Parker
Bas on Friday, October 24, 2003 10:06 AM said: > A textarea. Hey do us all a favor (or you can just do me a favor) and trim your posts and don't top post. thanks. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/sof

[PHP] MysSQL db not restoring

2003-10-24 Thread Chris W. Parker
Sorry for the OT post but here goes... I do nightly dumps of a MySQL database and now I've finally mistakenly emptied some tables I shouldn't have. I'd like to restore last nights dump file. This is the command I'm using: mysql -u username -ppassword db_name < db_name.dump I'm getting the follo

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
olinux on Friday, October 24, 2003 9:41 PM said: >>> echo " "; > > uggh - apparently you've never had to redesign a > site/application that uses this style. This is one > table cell, but when you work this style through a big > app, it's a huge pain (waste of time)

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Jay Blanchard on Monday, October 27, 2003 9:31 AM said: > CSS! :) Oh that's what he meant? I thought he was talking about the quoting style used on that line. Chris. p.s. The last time I actually used bgcolor was probably almost a year ago. :) -- Don't like refo

RE: [PHP] MysSQL db not restoring

2003-10-27 Thread Chris W. Parker
Curt Zirzow on Friday, October 24, 2003 5:19 PM said: > You probably have a field name that is a keyword of some sort. Hard > to tell without seeing the create table syntax. I checked this out and I did not have any keywords as column names. Would it help if I poste

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Justin French on Monday, October 27, 2003 2:12 PM said: > a) echo " "; > b) echo " "; > c) echo ' '; > d) echo " "; Exactly what is the problem with: echo " "; I don't see the problem. Chris. -- Don't like reformatting your Outlook replies? Now there's relief!

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Chris Shiflett on Monday, October 27, 2003 2:30 PM said: > --- Justin French <[EMAIL PROTECTED]> wrote: >> a) echo " "; > > The curly braces are superfluous here, since you are using double > quotes. I'm not sure if you like having them there, but I think that > les

RE: [PHP] Code optimization: single vs. double quotes?

2003-10-27 Thread Chris W. Parker
Curt Zirzow on Monday, October 27, 2003 3:16 PM said: > 5. no newline after the tr. :) > > There are some broswer issues with tr and td's not being on the > same line. Ok I resisted sending this earlier but it appears it is now necessary. ;) Here is how I WOULD ha

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
Pablo Zorzoli on Wednesday, October 29, 2003 11:20 AM said: > You cannot do any echo ""; before header("location:.."); maybe that's > the problem. The solution would be to turn on output buffering. http://www.fullurl.com/notjust/a/page.html";); exit; ?> hth, C

RE: [PHP] redirect

2003-10-29 Thread Chris W. Parker
alain dhaene on Wednesday, October 29, 2003 11:29 AM said: > I have check my code. > I haven't use a echo in my code. > It's very strange. I will search more on the manule. PHP has so far been very good to me with reporting this error. I would trust the error messag

RE: [PHP] ORDER BY RAND()....

2003-10-29 Thread Chris W. Parker
Payne on Wednesday, October 29, 2003 11:54 AM said: >> Try -> >> SELECT url FROM sponsors ORDER BY RAND() LIMIT 1; >> >> >> > I did that same thing. SELECT url FROM sponsors ORDER BY column RAND() LIMIT 1; How about that one? Chris. -- Don't like reformatting

RE: [PHP] Undefined Index - is this how you "declare" get & post?

2003-10-29 Thread Chris W. Parker
Terence on Wednesday, October 29, 2003 4:40 PM said: > Since I started using error_reporting(E_ALL), I havent found (in my > opinion) a good way to declare GET and POST variables when getting > them from a form or querystring. I have searched google and the docs > fo

RE: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Chris W. Parker
- Edwin - on Wednesday, October 29, 2003 11:26 PM said: [snip lots of nice things about mac osx] > Yes, I can do those and more on my Mac. And it doesn't even > crash on me even if I do many things at the same time. I > could run it for months! Yeah but... it's a M

RE: [PHP] [Stats] PHP Net List: October 2003

2003-11-04 Thread Chris W. Parker
Bill Doerrfeld <mailto:[EMAIL PROTECTED]> on Tuesday, November 04, 2003 10:28 AM said: > Jay Blanchard 78 > Chris W. Parker 78 Tied for 7th place! w00t! Chris. -

RE: [PHP] Shared SessionIDs?

2003-11-04 Thread Chris W. Parker
Guillaume Dupuis on Tuesday, November 04, 2003 2:36 PM said: > We currently have 3 php servers. Can we use the same SessionID to > connect across the 3 systems? If not, what would you suggest to > minimize the number of login prompts, while keeping secure? Here's an

RE: [PHP] Shared SessionIDs?

2003-11-05 Thread Chris W. Parker
John W. Holmes on Tuesday, November 04, 2003 6:07 PM said: > I think you missed the part where he said "while keeping secure"... :) > > Storing something like this in a cookie is in no way secure. Hey man! That's why I put the disclaimer... >> Here's an idea (whet

RE: [PHP] Sessions within new windows

2003-11-05 Thread Chris W. Parker
Pablo Gosse on Wednesday, November 05, 2003 3:08 PM said: > From my experience over the past few years, here's how IE works with > sessions and new windows. [snip Pablo's experience] Your description is the way I understand it. Chris. -- Don't like reformatting

[PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
Hi list. Ok I know it's not possible to "return" more than one value. But I'm going to explain what I'd like to do so maybe there's an easy way to do it. I've got some functions that query a database and turn the result into an array and return that array. What I'd like to do is not only return t

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
Robert Cummings on Wednesday, November 05, 2003 4:07 PM said: > You can do the following: > > function get_results( &$rows, &$fields ) Works great! Thanks. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/o

RE: [PHP] anyway to return more than one value?

2003-11-05 Thread Chris W. Parker
John W. Holmes on Wednesday, November 05, 2003 4:28 PM said: > Are you talking about something like this: > > $retval['result'] = get_results($result); > $retval['rows'] = mysql_num_rows($result); > $retval['fields'] = mysql_num_fields($result); > > return $retval;

RE: [PHP] High bandwidth application tips

2003-11-05 Thread Chris W. Parker
Wouter van Vliet on Wednesday, November 05, 2003 5:06 PM said: > * Unset when not used anymore I don't do this enough. One thing you can do to make loops faster is the following: (yes I've posted this in the past!!) Unoptimized: $upperlimit = 100; for($i = 0;$i

RE: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Chris W. Parker
Bas on Thursday, November 06, 2003 7:21 AM said: > Okay, i am happy that BTML 2.0 is released(finally) You need to get a website and post a link to the site instead of posting a giant email with code that's not even indented and probably wrapped in some places. -

RE: [PHP] anyway to return more than one value?

2003-11-06 Thread Chris W. Parker
Robert Cummings on Wednesday, November 05, 2003 6:59 PM said: > It ABSOLUTELY amazes me how this list is so cyclic. Do you think this list is more so than any other list? I'm on a few and it seems to be the same way everywhere. Unfortunately I don't think there's an

[PHP] question about :: usage

2003-11-07 Thread Chris W. Parker
Hi yizzle. Anyway... Here is my problem. I have a class called Validate that has a method called ValidateInput. There is another method in this class called phonenumber. ValidateInput calls phonenumber at some point like this $this->phonenumber($input);. In my page I'm trying to use this class wi

RE: [PHP] BTML 2.0 released!!!

2003-11-07 Thread Chris W. Parker
Robert Cummings on Friday, November 07, 2003 11:35 AM said: > And while I didn't have to scroll to read this email, I > often have to scroll for longer emails when it is bottom posted. > Which seems kinda silly to me since I've already read the thread. The only reas

RE: [PHP] question about :: usage

2003-11-07 Thread Chris W. Parker
Eugene Lee on Friday, November 07, 2003 12:00 PM said: > Won't work. $this refers to the instance of an object. Yeah I've decided to just instantiate an object. It's not really a big deal I guess, I just thought it might be a little cleaner to not instantiate. A fr

RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Chris W. Parker
Robert Cummings on Friday, November 07, 2003 1:12 PM said: > Yes you're re-iterating your circular arguments. Here's how I see your > point of view: > > Everyone must do it because the majority are doing it (AKA the sheep > follows the sheep follows... who's leading

RE: [PHP] reminder service php script

2003-11-07 Thread Chris W. Parker
Ryan A on Friday, November 07, 2003 4:38 PM said: > A while back there was a discussion of a good reminder service > script, I need one now, have searched at hot scripts but because > there are so many scripts there its a bit confusing... OMG! I'm working on this ex

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris W. Parker
Dave Carrera on Monday, November 10, 2003 8:45 AM said: > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to > [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]"); > > What is wrong with the above php based mysql_quer

RE: [PHP] explode () question

2003-11-10 Thread Chris W. Parker
Malcolm on Monday, November 10, 2003 9:13 AM said: >I can't figure out how to do an ereg that will replace just the > colon in Time nor can I find a way to make explode ignore it. This > may even be a completely wrong approach, any help would be > appreciated.

RE: [PHP] How to handle the POST data

2003-11-10 Thread Chris W. Parker
Koala Yeung on Monday, November 10, 2003 11:05 AM said: > When one submit a thread, read the index table of forum.php, and press > "Reflash", the browser will give a message like: > "The page you are browsing contains POSTDATA. >If you Re-submit the information

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart on Monday, November 10, 2003 12:18 PM said: > I see the Location: of the Header function there, but what I see in > the code is just a location = and a page name... No header > function... > > Is it the same thing? $location = "page.php"; is nothing m

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart on Monday, November 10, 2003 12:42 PM said: > It's not $location = xxx, just > location = "page.php"; > And it seems to work as a redirect... But not part of the header > fuction, and not just setting a variable... Hmm.. Never seen that before an

RE: [PHP] \n and

2003-11-10 Thread Chris W. Parker
Eugene Lee on Monday, November 10, 2003 3:58 PM said: > Warning: nl2br() is not safe because it emits "" tags which do > not always work on all browsers (especially browsers not explicitly > advertised to be XHTML-compliant). My original response (in my mind) was "W

RE: [PHP] \n and

2003-11-10 Thread Chris W. Parker
John Nichel on Monday, November 10, 2003 5:18 PM said: > It was a joke. Maybe I'm just too old. *G* Or maybe you're just not funny. OOOH MOTED! :) Why does it feel like Friday??? p.s. i got your joke and no offense, just teasing. please feel free to make fun

[PHP] help create community newbie guide to security

2003-11-10 Thread Chris W. Parker
Ok. I know this has been asked a MILLION times in one form or another but still I have a few holes in my understanding of how to write a secure app*. What I'd like to do is gather enough info to be able to write a good, short (heck in can be long, I don't care) write up on what it takes to write

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris W. Parker
Chris Shiflett on Monday, November 10, 2003 8:21 PM said: > It would probably need to be either very short or very long. Yes, I would prefer very long so as to be as complete as possible. >> 2. The session id should not be stored on the client. > > I'm not sure I

RE: [PHP] Explode a string

2003-11-12 Thread Chris W. Parker
Erin on Wednesday, November 12, 2003 9:13 AM said: > 734088+3+734132+9+734138+80+781007+1+ > > I need to place the string into a multi-array like so > > array[0][0] = 734088 > array[0][1] = 3 [snip] > Now ive tried everything i know any ideas? Yes. You need to som

RE: [PHP] Explode a string

2003-11-12 Thread Chris W. Parker
Chris W. Parker <> on Wednesday, November 12, 2003 9:19 AM said: > Without knowing any other way to do this I would use a regex to skip > the first + and change second one, repeating this until the end of the > string. Considering Jay's answer for this question, do I

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes on Wednesday, November 12, 2003 10:43 AM said: >> The dots in ipaddr variable are considered to be >> string concatenations. > > No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation? $

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
Jay Blanchard on Wednesday, November 12, 2003 10:49 AM said: > $ipaddr = "192.34.123.122"; > > . is not a concatenator, it is part of the string. > > $myFileName = "barkLikeAdog.txt"; > > . is not a concatenator, it is part of the string. Oh geez, I know *that*.

RE: [PHP] overriding string concatenation '.'

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes on Wednesday, November 12, 2003 11:00 AM said: > From the way I read that, the periods _within_ $ipaddr were being > seen as concatination characters (according to OP), which doesn't > make sense. So I wanted an example. Ok, see I thought he was t

[PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
Hey all. I tried googling for this AND looking in the archives with no luck. Can someone post a function or regex that can validate names (first and last)? The most important bit is that names like O'Malley and Hope-Jones are not barred. Hopefully I haven't been too brief with my request. Than

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris W. Parker
Andre Volmensky on Wednesday, November 12, 2003 2:17 PM said: > All these responses and nobody has said anything about > register_globals? heh, I guess you're right. Feel free to elaborate on what you mean for those of us that don't know what's up with register_gl

RE: [PHP] Explanation for php.net front page???

2003-11-12 Thread Chris W. Parker
Robert Cummings on Wednesday, November 12, 2003 2:38 PM said: > It's not active on the main page. It's on the search page. Go there > instead. > > http://www.php.net/search.php Wow that's cool. Sux though that IE's auto-complete gets in the way of the way list.

RE: [PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
CPT John W. Holmes on Wednesday, November 12, 2003 2:09 PM said: > $match = "^[a-z]+([- ]{1}|(\\\'))?[a-z]+$"; > > along with eregi(), but it can (should) be easily adapted to a syntax > compatible with preg_match(). I'm wondering two things: 1. Is there a

RE: [PHP] validate names with regex

2003-11-12 Thread Chris W. Parker
Eugene Lee on Wednesday, November 12, 2003 3:12 PM said: > The range of human names is so wide that there probably isn't a way to > validate names. What part of one's name do you consider valid? What part of one's name do I consider valid? Umm... probably the whole

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