RE: [PHP] mod_rewrite and getting url variables

2005-04-12 Thread Chris W. Parker
Matthew Weier O'Phinney on Tuesday, April 12, 2005 9:42 AM said: > When using mod_rewrite, if the rewrite rule does not include a > pass-through, then the query string is not passed on to the script in > question. So, if you request the page directly with: > > h

RE: [PHP] pixels per character

2005-04-14 Thread Chris W. Parker
Christian Calloway on Thursday, April 14, 2005 1:59 PM said: > trying to dynamically size cell widths; what I need is a formula to > measure pixels per character for an arbitrary font (in this case 10pt > verdana). A simple function f(x) = strlen(x) * SOMECONSTANT ju

RE: [PHP] Sessions and frames

2005-04-14 Thread Chris W. Parker
Gustav Wiberg on Thursday, April 14, 2005 4:00 PM said: > I have built my site into frames. > > I want to transfer a session-variable from my left frame to my right > frame... How do I do this best? Thoughts? You do this best by setting some session data on one pag

RE: [PHP] diffence between two numbers...

2005-04-15 Thread Chris W. Parker
[EMAIL PROTECTED] on Friday, April 15, 2005 3:35 AM said: > $a = 7; > $b = 27; > somefunction($a, $b) > // outputs "20" > etc... > does that exist? function difference($a, $b) { return abs($a-$b); } Chris. -- PHP General Mailing List (http://www.php.net

RE: [PHP] Question regarding PDF creation

2005-04-18 Thread Chris W. Parker
Mário Gamito on Monday, April 18, 2005 3:01 AM said: > I'm using FPDF (http://www.fpdf.org/) to create a... PDF. First of all thanks for asking this question because I was in need of building PDFs and lo and behold FPDF works great so far! > $pdf->Cell(60,10,'Powe

RE: [PHP] Post shorter code

2005-04-21 Thread Chris W. Parker
Petar Nedyalkov on Thursday, April 21, 2005 8:17 AM said: > > Forgetting is also an issue in Netiquette ;-) > A lot of people forget the rules, it's not a problem. I just meant > that we have to be careful. > Yeah and sometimes people forget to trim their messages

RE: [PHP] Count totals(might be 0T)

2005-04-21 Thread Chris W. Parker
Ryan A on Thursday, April 21, 2005 3:03 PM said: > When I sql the DB I call it like this: select picture_name<,more > fields> from where cno= order by category. > > Any ideas as to how i get how many pics per category and size per > category? I'm not sure if its a

RE: [PHP] strncmp function (Forgot code snippit)

2005-03-30 Thread Chris W. Parker
Russ on Wednesday, March 30, 2005 1:18 PM said: > I'm new to php and linux. I am trying to replace a password program I > used under windows with a mysql based login. I want to compare the > first character of the first and last name of the user for a capital > lette

RE: [PHP] Re: Php defense

2005-04-22 Thread Chris W. Parker
Matthew Weier O'Phinney on Friday, April 22, 2005 7:39 AM said: > I'm not allowed to say what company it's for, but we just finished > building a site for a Fortune 50 company. But what you could do is create an anonymous account somewhere, let's say @hotmail.com, a

RE: [PHP] Timetables

2005-04-25 Thread Chris W. Parker
Richard Collyer on Monday, April 25, 2005 3:15 PM said: > My idea of doing this was to have a database with each record being a > day for a particular employee. Recording ID, Start Time, Finish Time > in TimeStamp. You need to tie those records to the employee recor

RE: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Chris W. Parker
Joseph Connolly on Tuesday, April 26, 2005 8:12 AM said: > Well, it does help to know that pther people are using the product on > multiple machines and are not having problems. It may be that there is > something conflicting with the program. HE may have not yet loo

RE: [PHP] Re: handling a user pressing browser's back button

2005-04-27 Thread Chris W. Parker
Richard Lynch on Tuesday, April 26, 2005 10:03 PM said: > Or, with some browsers, you can't get "back" to page 1 AT ALL, unless > you hit "back" twice rapidly in succession, or use the popup back > menu to "skip" the middle page that does the re-direct. I think that

RE: [PHP] PHP and Ajax?

2005-04-28 Thread Chris W. Parker
Jeremiah Johnson on Thursday, April 28, 2005 11:28 AM said: > Does anyone have any references on using PHP and Ajax? I caught the > news on PHP Architect about the webcast they are doing in May and it > sounds like an interesting technology, but I can't wait, of cour

RE: [PHP] varible

2004-04-12 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, April 12, 2004 8:32 AM said: > Is there a solution ( without open global ) , then send the value of > the varible of list.php to view.php ? you can put the variables in $_SESSION or pass them via the querystring. hth, chris. -- PHP G

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 9:40 AM said: > What I can't understand is why Test1 shows as nothing, while > Test2 shows the value I wanted. Thanks a lot! [snip] > $_SESSION['element_countp'] = count($p_lnames); > echo "TEST 1".$element_countp; > > $element_co

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:17 PM said: > So I went and turned them off. Now of course my pages don't work > properly. I guess I have to go through all my code and address the > variables properly ie. $_POST and $_SESSION? no. just assign them at the begin

RE: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread Chris W. Parker
BOOT on Wednesday, April 14, 2004 12:37 PM said: > But if I want to use $username accross many pages then I will have to > make it a session variable and call it as such on each page like > "$_SESSION['username']" correct. c. -- PHP General Mailing List (http://

RE: [PHP] WIERD list behavior

2004-04-14 Thread Chris W. Parker
Dennis Gearon on Wednesday, April 14, 2004 12:08 PM said: > When I make a posting to this list, I get an email like below: just ignore it. this list seems to be plagued with illegitimate auto-replys. but i guess that's sort of an oxymoron isn't it? chris. -- PH

RE: [PHP] Re: Session confusion again :( - Thanks!

2004-04-15 Thread Chris W. Parker
Ligaya Turmelle on Wednesday, April 14, 2004 8:25 PM said: > Can you explode something while you are working on it?? Won't it > overwrite itself? no that will work fine. all operations right of the = happen first. hth, chris. -- PHP General Mailing List (http://w

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
Arthur Radulescu on Thursday, April 15, 2004 4:48 AM said: > Not exactly... I was not reffering to PHP files... The white spaces > from a template file will make double the size of certain files when > they are sent to the browser... So a page of 50 k might have 100

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
electroteque on Thursday, April 15, 2004 5:03 AM said: > the htmlkit looks hot, although its licenced, work has a shitty copy > of homesite 4 licences, i doubt i can convince them, i am using > phpedit, although does it turn tabs into spaces ?? html-kit is great. a

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
Chris Boget on Thursday, April 15, 2004 9:59 AM said: >>> Not exactly... I was not reffering to PHP files... The white spaces >>> from a template file will make double the size of certain files when >>> they are sent to the browser... So a page of 50 k might have 100

RE: [PHP] PHP editor

2004-04-15 Thread Chris W. Parker
Arthur Radulescu on Thursday, April 15, 2004 10:02 AM said: >> Remove all whitespace from the final HTML, then all this doesn't >> matter. [snip function] > Have already thought about this but would this not be too time > consuming to process this replacement on e

RE: [PHP] PHP editor]

2004-04-15 Thread Chris W. Parker
Jorge Oliveira on Thursday, April 15, 2004 10:32 AM said: > -> for html is better using tabs because by using spaces, it will > increase output to the browser; only if you use more than one space per indent. chris. -- PHP General Mailing List (http://www.php.net

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Chris W. Parker
Scott Fletcher on Thursday, April 15, 2004 11:37 AM said: > Yea, we have Googled. We found no result to a few problems and we > found some different answers to one problem but they don't fixed the > problem. This showed that we need to get a better understanding of

RE: [PHP] Good source of knowledge info for MySQL newbie?

2004-04-15 Thread Chris W. Parker
Scott Fletcher on Thursday, April 15, 2004 12:12 PM said: > Well, this one say the website could not be found... :-) ack! | | | | \_/ > https://mailing.lists.org/subscriptions.to/mailing.lists.php > > j/k ;) /`\ | | | he was just kidd

RE: [PHP] alternating row color--newbie help

2004-04-15 Thread Chris W. Parker
Montagna, Dan on Thursday, April 15, 2004 1:02 PM said: > Hi everyone, hi. > for($i = 0; $i < $numofrows; $i++) { > $row = mysql_fetch_array($result); //get a row from our result set > if($i % 2) { //this means if there is a remainder > echo "\n"; >

RE: AW: [PHP] smarty

2004-04-16 Thread Chris W. Parker
Enrico Weigelt on Friday, April 16, 2004 10:13 AM said: keep in mind it's friday!! > Either we'd talk about the (dis)advantages of TE's in general > or compare different TE's, i.e. smarty vs. pattemplate vs. xslt. don't forget interjinn. > So lets split the thread

RE: [PHP] Unwanted e-mails

2004-04-16 Thread Chris W. Parker
David A. Stevens on Friday, April 16, 2004 10:31 AM said: > I have somehow, for reasons unknown to me, gotten onto some e-mail > list that I don't want to or need to be on. Somebody please, at all > the above addresses, do everything possible to get me off that > lis

RE: AW: [PHP] smarty

2004-04-16 Thread Chris W. Parker
John Nichel on Friday, April 16, 2004 11:24 AM said: > > You do realize that with 2.5 hours left in the work day today, we're > likely to get even sillier? ;) > I still have 6 hours to go. :( c. p.s. anyone play ffxi? -- PHP General Mailing List (http://www.

RE: [PHP] Unwanted e-mails

2004-04-16 Thread Chris W. Parker
Lester Caine on Friday, April 16, 2004 12:20 PM said: > Does not Fing work!! > The unsubscribe process requires you to reply to the eMail that is > sent. THAT email is bounced for many people who are trying to > unsubscribe. SOMEBODY NEEDS TO GET THEIR ACT TO

RE: [PHP] Unwanted e-mails

2004-04-16 Thread Chris W. Parker
Lester Caine on Friday, April 16, 2004 12:36 PM said: > EVERY message posted to lists.php.net simply gets bounced, and every > attempt to get a response on these lists has been ignored. i don't see how if every message you send gets bounced it's still coming through

RE: [PHP] Double mails

2004-04-16 Thread Chris W. Parker
Lopez, Kaleb (GEAE, Foreign National, CIAT) on Friday, April 16, 2004 1:07 PM said: > Is anyone else getting the mails twice? not me. are you getting *your* mails twice or *every* mail twice? chris. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Double mails

2004-04-16 Thread Chris W. Parker
Lopez, Kaleb (GEAE, Foreign National, CIAT) on Friday, April 16, 2004 1:24 PM said: > Every mail comes twice... Well, every mail from the list. in that case i don't know. i've never heard of such behavior. c -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] How to disable browser's back- and refresh-Button

2004-04-19 Thread Chris W. Parker
Hawkes, Richard on Monday, April 19, 2004 8:31 AM said: > Yes, I think unconstructive e-mails are a little rude aren't they? i agree... but i didn't see any unconstructive emails. did you? > So here's a bit of JavaScript that removes everything! I'll let you > fidd

[PHP] oo question

2004-04-19 Thread Chris W. Parker
hi. i've recently realized that the little "oo" code i've written is actually not very oo at all. it's more like procedural code wrapped in a class. armed with my new knowledge i'm in the process of modifying my current classes to be more oo (or what i like to this is more oo). so i'm going to as

RE: [PHP] oo question

2004-04-19 Thread Chris W. Parker
Edward Peloke on Monday, April 19, 2004 10:49 AM said: > this: function Customer($customer_id = 0) > > doesn't always set the customer_id to 0 even when you pass one in? no. that is the default value for a function if *no* value is passed in. chris. -- PHP Gene

RE: [PHP] oo question

2004-04-19 Thread Chris W. Parker
Chris W. Parker <> on Monday, April 19, 2004 11:03 AM said: > Edward Peloke <mailto:[EMAIL PROTECTED]> > on Monday, April 19, 2004 10:49 AM said: > >> this: function Customer($customer_id = 0) >> >> doesn't always set the customer_id to 0 eve

RE: [PHP] Re: oo question

2004-04-19 Thread Chris W. Parker
Torsten Roehr on Monday, April 19, 2004 10:46 AM said: > the second approach is definitely much, much better and the right way > to go. But what exactly is your QUESTION? oh yeah.. umm... i guess at this point it would be "which is better?"... as i was writing the

RE: [PHP] Cookies

2004-04-19 Thread Chris W. Parker
Fidencio Monroy on Monday, April 19, 2004 2:35 PM said: > Hi all, is there a way to check is a browser is accepting my cookies? yes that's easy. set the cookie and then test for it. if you can read the cookie back you're all set! if not, the person is not accepting

RE: [PHP] oo question

2004-04-19 Thread Chris W. Parker
Kelly Hallman on Monday, April 19, 2004 12:34 PM said: > I think what you're talking about here is encapsulation. in that case what is abstraction? >> PROPOSED CHANGE: >> class Customer { >>... >>function initialize_customer($customer_id) { >>// gra

RE: [PHP] Unwanted e-mails

2004-04-19 Thread Chris W. Parker
Lester Caine on Monday, April 19, 2004 3:37 PM said: > Andy B wrote: > >> i know i got tons of those before... all i did was block the >> btconnect address and be done with it just ignore them at least >> thats all i did yeah me too. these come in all the time

RE: [PHP] Flatten/Unflatten arrays

2004-04-19 Thread Chris W. Parker
OrangeHairedBoy on Monday, April 19, 2004 4:23 PM said: > In Perl there is a way to flatten an array into a string, and a > matching function to unflatten the array. i think you're looking for serialize() and unserialize(). http://php.net/serialize http://php/net/

RE: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, April 20, 2004 3:41 PM said: > Hi there I was wondering how people usually turn the app off during > system maintainance. During the hours of 6-7 the database goes down > for backing up, the users therefore keeping trying to get into the

RE: [PHP] Making an app unviewable during system maintainance

2004-04-21 Thread Chris W. Parker
Travis Low on Tuesday, April 20, 2004 10:02 PM said: > Michal Migurski wrote: [snip] >> Good point, though if this is a concern, the OP will probably use the >> built-in enforcement of referential integrity and transaction >> support of whatever database they are r

RE: [PHP] Remove white space?

2004-04-22 Thread Chris W. Parker
Robert Sossomon on Thursday, April 22, 2004 7:51 AM said: > I am pulling data from a MySQL DB and I need to remove the whitespace > on the variable and turn it to lowercase. remove whitespace *on* the variable?? i don't get it. chris. -- PHP General Mailing Li

RE: [PHP] regular expressions php/perl/actionscript

2004-04-22 Thread Chris W. Parker
Gabino Travassos on Thursday, April 22, 2004 12:24 PM said: > I'm wondering if Regular Expressions are the same in Perl and PHP (and > possibly Actionscript)? They look the same and smell the same, but if > I see a book in a store for Perl Regular Expressions that's

RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz on Thursday, April 22, 2004 12:21 PM said: > I was wondering if using conditional functions would save resources. > The thing is that there's many functions in the code I'm using, but > most aren't used in each case. I was thinking that maybe, even if the > fun

RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz on Thursday, April 22, 2004 3:17 PM said: > [snip] >> how do you not define a function but put it in an include file at the >> same time and still have it be useable? > [/snip] [snip /] > If I don't define them, I don't expect them to be usable, that's the >

RE: [PHP] OK SQL experts...

2004-04-23 Thread Chris W. Parker
Brian Dunning on Friday, April 23, 2004 8:19 AM said: > SELECT * FROM 'my_table' WHERE ('field_1' LIKE '%$keyword%' OR > 'field_2' LIKE '%$keyword%' OR 'field_3' LIKE '%$keyword%') AND > 'status' = 'active'; have you tried simply: SELECT * FROM my_table WHERE statu

RE: [PHP] Scripting practices

2004-04-23 Thread Chris W. Parker
Gabe on Friday, April 23, 2004 1:55 PM said: > When scripting in a language (such as PHP) that doesn't require you to > determine the variable type before you use it, is it still considered > good technique to initialize it to the type you're going to use it as? > Or

RE: [PHP] Submit button as image

2004-05-12 Thread Chris W. Parker
Sam on Wednesday, May 12, 2004 10:10 AM said: > What do you do with this? nothing. i usually don't give my image buttons a name value so that never shows up. what it's meant for is server side image maps. the browser is telling the server where on the image the user

RE: [PHP] Making Printer Friendly files

2004-05-13 Thread Chris W. Parker
Todd Cary on Thursday, May 13, 2004 3:15 PM said: > I have a news letter produced by PageMaker that is normally put into > PDF format so the user can download it. However, I would like to > have a Printer Friendly version (no graphics). Is there a PHP > program tha

RE: [PHP] Best way to do "Last 3 Items Viewed"

2004-05-14 Thread Chris W. Parker
Chuck Barnett on Friday, May 14, 2004 10:42 AM said: > Anyone have any code snippits that would allow me to do a "Last 3 > Items Viewed" like on ebay? no but i can give you a suggestion as to a method... each time someone views an item do a first-in-last-out rotati

RE: [PHP] creating a mailing list

2004-04-29 Thread Chris W. Parker
chris o'shea on Thursday, April 29, 2004 2:44 AM said: > Does anybody know the best way of doing a mass mail through php? i recall a solution being to write a properly formatted email and dump it into server's outgoing queue allowing the MTA (sendmail, exim, postfix

RE: [PHP] paging methodology

2004-05-04 Thread Chris W. Parker
John W. Holmes on Tuesday, May 04, 2004 1:30 PM said: > I don't follow what "$_GET record count from initial query performed > above;" is for, but that's the basic methodology. well that just meant that after the initial count of records is found it will be retrieve

RE: [PHP] paging methodology

2004-05-05 Thread Chris W. Parker
John W. Holmes on Wednesday, May 05, 2004 7:32 AM said: > Personal preference here, I guess, but I don't care for searches that > don't tell you how many records were matched (or how many pages > you'll have). I think the additional query is well worth it. The > numb

RE: [PHP] paging methodology

2004-05-05 Thread Chris W. Parker
Chris on Wednesday, May 05, 2004 10:56 AM said: > If you're using MySQL 4+ you could use the SQL_CALC_FOUND_ROWS flag > in the select statement. > > It causes the query to count the number of rows it *would have* > returned if there had been no limit clause. do you

RE: [PHP] paging methodology

2004-05-05 Thread Chris W. Parker
Chris on Wednesday, May 05, 2004 11:24 AM said: > The documentation for the FOUND_ROWS() function is here: > http://dev.mysql.com/doc/mysql/en/Information_functions.html ahh... i see. so it essentially allows you to execute one query while achieving the same two que

RE: [PHP] what do '?' and ':' do?

2004-05-17 Thread Chris W. Parker
Radek Zajkowski on Monday, May 17, 2004 12:38 PM said: > $module_dir = ($module == "") > ? "" > : $module."/"; > > what does the semicolon and the question mark do? i think it's called a ternary operator. usually i write it all on one line like so:

RE: [PHP] Regular Expression

2004-05-18 Thread Chris W. Parker
Chris Boget on Tuesday, May 18, 2004 9:55 AM said: > Why isn't my regex working? From everything that I've > read, it should be... > $string = "[joebob]"; > > if( preg_match( '/\[(\s+)\]/i', $string, $aMatches )) { "\s Matches any whitespace character; this is eq

RE: [PHP] newbie question about preg_match

2004-05-20 Thread Chris W. Parker
Al on Thursday, May 20, 2004 12:51 PM said: > If I have multiple instances that match the pattern, but only want the > first one, which is the best way to handle it? reread the last sentence in John's post. > John W. Holmes wrote: > >> From: "Al" <[EMAIL PROTECTED

RE: [PHP] I am in Socket Paradise

2004-05-20 Thread Chris W. Parker
René Fournier on Thursday, May 20, 2004 2:58 PM said: > Please ignore my previous > "I-AM-SO-FRUSTRATED-I-AM-READY-FOR-A-JACKET-WITH-REALLY-LONG-SLEEVES" > posts. I have managed to solve my socket woes. My simple client works > loops, timesout, loops again... elegant

RE: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Chris W. Parker
GodFoca on Friday, May 21, 2004 1:29 PM said: > Warning: Cannot add header information - headers already sent by > (output started at /home/tiempodemaria/main.php:3) in > /home/tiempodemaria/main.php on line 11 [snip] > Does anybody knows what's going on? I don't u

RE: [PHP] find out ip address [beginner]

2004-05-24 Thread Chris W. Parker
Tobes on Monday, May 24, 2004 2:09 PM said: > hi, i need some code to find out the ip address of a server. just a > simple dns query. > > how do i do that? i'm a beginner, please help. are you saying you already have the FQDN (Fully Qualified Domain Name)? or are y

RE: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Chris W. Parker
Jonesy on Monday, May 24, 2004 2:21 PM said: > WFM: >|$ ping ibm.com >|PING ibm.com (129.42.18.99) 56(84) bytes of data. >: wow. that's the weirdest looking php i've ever seen. is that a beta or something? chris. -- PHP General Mailing List (http://w

RE: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Chris W. Parker
Curt Zirzow on Monday, May 24, 2004 3:55 PM said: >> wow. that's the weirdest looking php i've ever seen. is that a beta >> or something? > > what ya talking about? i was pointing out that the user explained he was a beginner and that he was looking for code. so fo

RE: [PHP] include and require

2004-05-27 Thread Chris W. Parker
Lieve Vissenaeken on Thursday, May 27, 2004 11:05 AM said: > Can anyone help me with this one: > Is there a difference between "include()" and "require()" ? yes i can help you with it. go to www.php.net and search for "include". you will then find the answer you

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 8:29 AM said: > I have stumbled on something that is new for me. Usually when I get a > PHP error I print them on the page, but suddenly pages with errors > don't load at all, in IE I get the usual "The page cannot be > displayed" and

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 9:06 AM said: > Thanks, but that didn't take me anywhere. My browser still seems to > hang itself or load a part of the page. I suppose it could be any of > my http-processes that freezes up.. but I don't seems like it and I > don't kn

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 9:12 AM said: > Nothing complicated at all. It loops out some values from a MySQL > database with not more than 20 entries. It's not that.. well unless it's a server thing (in which case i'd have no ideas towards a solution) your next

RE: [PHP] Unable to load pages with errors

2004-05-28 Thread Chris W. Parker
peter a on Friday, May 28, 2004 9:17 AM said: > It not just that page.. it is all pages the will generate some sort of > PHP error. Instead of the usual error output I get nothing. hmm... sounds like a php configuration thing. i.e. a server thing. in which case i'm

RE: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread Chris W. Parker
John W. Holmes on Friday, May 28, 2004 11:25 PM said: > You're right. Option 2 offers more security in that no one will ever > be able to reach the file directly with a web browser. You don't need > to use file() or file_get_contents(), though... A simple > include('

RE: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, June 01, 2004 8:12 AM said: > how about just calling 'db.php' so that when someone does request it > via a web browser it will be parsed and end up not sending any data > to the client? that should read, "just calling *it* '

RE: [PHP] Security/Web tree/db connect and select

2004-06-01 Thread Chris W. Parker
John W. Holmes on Tuesday, June 01, 2004 8:29 AM said: > We'll call that Option 3, which is a viable option if you cannot do > Option 2 (store outside of webroot). The problems with this method is > that if PHP ever fails for any reason, the file may be delivered as

RE: [PHP] Asuming query without the ?

2004-06-03 Thread Chris W. Parker
Robert Winter on Thursday, June 03, 2004 4:31 PM said: > Where and how do I set this? I'm to Unix and PHP. just look up mod_rewrite and you'll get some answers. http://www.engelschall.com/pw/apache/rewriteguide/ chris. p.s. please don't respond to two different

RE: [PHP] Re: if/elseif/else v. switch

2004-06-07 Thread Chris W. Parker
Aidan Lister on Saturday, June 05, 2004 6:19 AM said: > You'll note I did not criticise the poster, merely his seemingly > stupid question. oh right and that makes everything better. you're a fantastic person! > I suggest you practice what you preach. If you have a

RE: [PHP] getting the line number

2004-06-07 Thread Chris W. Parker
Tim Traver on Monday, June 07, 2004 11:52 AM said: > Is it possible to get the line number of the parent script of a > subroutine ??? no, not like you want (afaik). i wanted this same thing too but ended up just doing a workaround. it's a little kludgy but it's not

RE: [PHP] getting the line number

2004-06-07 Thread Chris W. Parker
Adam Bregenzer on Monday, June 07, 2004 12:04 PM said: > debug_backtrace[1] should get you everything you want and then some. > > [1] http://www.php.net/debug_backtrace that's what i get for using an older version. mwa mwa mwa chris. -- PHP General Mailing L

RE: [PHP] an easy (perhaps dumb) question about PHP

2004-06-07 Thread Chris W. Parker
Cere Davis on Monday, June 07, 2004 3:28 PM said: [snip] > ...have a web > library that writes basic html form input html types for like > radio_button(name,val) and checkbox(name,val) type functions. I can't > see that php has this type of feature. i'm pretty sure

RE: [PHP] Hokki =)

2004-06-08 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, June 08, 2004 3:37 PM said: > Looking forward for a response :P > > pass: 74434 i are also looking forward for the response! please send immediately! regards's, julio. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Hokki =)

2004-06-09 Thread Chris W. Parker
John Nichel on Wednesday, June 09, 2004 6:06 AM said: > Pardon my ignorance, but what in the world is this about? i think it's spam. and the response that was supposedly sent by me was actually sent by my long lost evil twin brother Julio. chris. -- PHP General

RE: [PHP] Simple cms type system

2004-06-09 Thread Chris W. Parker
James Harrell on Wednesday, June 09, 2004 12:04 PM said: > Hi Ryan, > > Ours isn't open source, but does come with source available > for the display modules: http://celestia.cbstech.com > You can strip down what features are available by removing > modules from the

[PHP] homebrew mailing list security

2004-06-09 Thread Chris W. Parker
hello. i'm currently working on a mailing list app for my company to have one central place to manage our mailing list(s). at first it was going to purely be a place for our staff to manage our list. but then i got to thinking that it would be very convenient to take a lot of the management overhe

RE: [PHP] Running a PHP script on an automated regular schedule

2004-06-10 Thread Chris W. Parker
I.A. Gray on Thursday, June 10, 2004 3:03 AM said: > I am wanting to use a PHP script to check on an hourly/daily basis on > a few things- ie links on my sites, whether the sites are up and > running and also to send an e-mail to me. can you create a crontab for you

RE: [PHP] Re: Getting Server time

2004-06-10 Thread Chris W. Parker
>> When I'm using the time() function am I getting the time on the >> server? If not how can I get the time from the server regardless of >> whether or not its in the same time zone as the client. read the *first* comment. http://us2.php.net/time chris. -- PHP General Mailing List (http://www.

RE: [PHP] src="test.php"

2004-06-16 Thread Chris W. Parker
Gerben on Wednesday, June 16, 2004 10:38 AM said: > I wondering how browsers handle the following html-codes: > > > and > > > are there any browser that will choke in it because the files don't > have the appropriate (.css and .js) extension? although i don't ha

RE: [PHP] http to https

2004-06-17 Thread Chris W. Parker
Ryan Schefke on Thursday, June 17, 2004 4:28 PM said: [snip] > > > [snip] > > > [snip] > > > > > > What am I doing wrong? you're pressing the return key too much. 0_0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] " in data

2004-06-18 Thread Chris W. Parker
Robert Sossomon on Friday, June 18, 2004 10:27 AM said: > I have data with "something" in it and when I pull that data and dump > it into an HTML form I am losing everything that is after the first " > . Has anyone encountered this before, and have a way to patch it?

RE: [PHP] " in data

2004-06-18 Thread Chris W. Parker
Robert Sossomon on Friday, June 18, 2004 12:30 PM said: > My code for extraction: >$item_desc = addslashes($Quote['sel_item_desc']); you don't need to addslahes() when retrieving. just htmlentities() the data before you display it. do a simple test: ";

RE: [PHP] " in data

2004-06-21 Thread Chris W. Parker
Curt Zirzow on Friday, June 18, 2004 10:38 PM said: > s/should/will s/s\/should\/will/s\/should\/will\// :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OT? Getting peer reviews for an entire application

2004-06-23 Thread Chris W. Parker
Jason Barnett on Tuesday, June 22, 2004 11:23 PM said: > I'm not really > looking for people to help me "accomplish task X" as much as I'm > looking for people to just make suggestions for general code > improvement. > > So, where else might I find people that are

RE: [PHP] Php survey+database

2004-06-23 Thread Chris W. Parker
tommie ramirez.andujar on Wednesday, June 23, 2004 12:31 PM said: > I am new to php and I am trying to do the following, to create a php > file that may contain some kind of form or survey and the data > entered may be added to a database... > Here the code of the ht

RE: [PHP] a 4 days diary

2004-06-24 Thread Chris W. Parker
Pierre on Thursday, June 24, 2004 10:38 AM said: > I have to code a 4 days diary for a client, schedule every 30 mn and > with a system of rdv accepted by mail. what is a 4 days diary? why does it need to be scheduled every 30 mins? what is "rdv"? > I really don't

FW: [PHP] a 4 days diary

2004-06-24 Thread Chris W. Parker
Pierre on Thursday, June 24, 2004 10:54 AM said: > Right it's OOP sorry for the mistake, > I have to do a diary for only 4 days (the web site is for an > exhibition, that's why) by rdv I mean a "rendez-vous" an appointment > if you prefer. So if I resume I need to ma

RE: [PHP] a 4 days diary

2004-06-24 Thread Chris W. Parker
Pierre on Thursday, June 24, 2004 11:24 AM said: > So... all datas will be in a mysql base. Many users are gonna use this > system (check the list of exhibitors, ask appointment by mail) and if > the exhibitor accept the appointment I have to insert it my table. > My

RE: [PHP] Handling Code Continuation

2004-06-28 Thread Chris W. Parker
Curt Zirzow on Friday, June 25, 2004 9:29 PM said: > In general practice, and depending on how much html you're > outputing: > > function input($type,$size,$name,$value) { > value="" name="> > } you must have been really worn out when you wrote that cur

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
Bob Hockney on Tuesday, June 29, 2004 5:58 PM said: > I wrote a php script that accesses a database, and I am wondering > about securing the password to the database. I could prompt the user > for the password every session, but I don't necessarily want the user > t

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

2004-06-30 Thread Chris W. Parker
Torsten Roehr on Wednesday, June 30, 2004 10:03 AM said: > 1. get data from DB > 2. convert for valid HTML output (stripslashes(), htmlentities()) > 3. output as HTML (into the form elements) > 4. get POST data > 5. escape POST data and insert into DB again two comm

RE: [PHP] Protecting database passwords

2004-06-30 Thread Chris W. Parker
Red Wingate on Wednesday, June 30, 2004 9:33 AM said: > Hashing ... but i guess he wants to protected the password > needed to access the DB not a PW stored in the DB. you probably understand this already but for those who don't i would like to say: right, but the

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