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

2003-11-13 Thread Chris W. Parker
Scott Fletcher on Thursday, November 13, 2003 6:29 AM said: > Thanks for > the attachment at the bottom of the email about 'reformatting the > outlook replies'. That is great, I'm going to use it. hahahahahahaha! This is sooo funny (to me) because just last week we

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Chris W. Parker
Chris Shiflett on Thursday, November 13, 2003 1:41 PM said: > http://shiflett.org/hacks/php/http_post Ok I don't think this can be used in conjuction with a redirect but I'd like to find out. Here is some code I wrote up quick (and didn't test). What I'd like to hap

RE: [PHP] Passing POST variables w/out a FORM submit

2003-11-13 Thread Chris W. Parker
Chris Shiflett on Thursday, November 13, 2003 2:07 PM said: > You are telling the browser to send a GET request to the URL > $redirect. What the user sees in the browser is the response to this > GET request, not the response to the POST request that you sent > behin

RE: [PHP] New problem - HELP!

2003-11-13 Thread Chris W. Parker
Jake McHenry on Thursday, November 13, 2003 3:12 PM said: > You asked is it empty or actually undefined...? I showed you the csv > file, and the output of print_r... You tell me.. I don't know.. Lol :\ What you can do is try different comparisons for the if stateme

RE: [PHP] can I license a php script?

2003-11-14 Thread Chris W. Parker
Robert Cummings on Friday, November 14, 2003 1:34 PM said: > Be careful though, if your code incorporates other peoples code, for > instance Smarty, or PEAR::DB then it may fall under their license. For > instance if your code "depends" and I believe the key here is

RE: [PHP] can I license a php script?

2003-11-14 Thread Chris W. Parker
Chris on Friday, November 14, 2003 7:13 PM said: > Why wouldn't I be able to charge for the software? [snip] Sounds good to me! :) Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/

RE: [PHP] To Loop or Not to Loop?

2003-11-17 Thread Chris W. Parker
Matt Matijevich on Monday, November 17, 2003 12:10 PM said: > The second thing I would do, and this is just at a glance of the code, > I would separate it into 2 tables, inventory(the table you already > have) and inventory_pics (or something like that) and make that

RE: [PHP] Front page validation to PHP

2003-11-18 Thread Chris W. Parker
Graham Barlow on Tuesday, November 18, 2003 7:57 AM said: > What do I need to do to our Frontpage forms to ensure the validation > works again and we can force data to be entered. I haven't used frontpage in probably 2 years so my memory may be a little foggy. But i

RE: [PHP] Anti Anti-Template Commentary :)

2003-11-18 Thread Chris W. Parker
Robert Cummings on Tuesday, November 18, 2003 1:05 PM said: > You might want to take the above article with a HUGE grain of salt. It > over generalizes and pretty much slots all template systems into the > same category. One of it's large claims is the overhead of th

RE: [PHP] sorting question

2003-11-18 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, November 18, 2003 3:25 PM said: > I used PHP to combine several MySQL queries into a single array and > now I'm trying to sort the results by one of the named columns. Any reason you can't turn all those queries into one and sort by da

RE: [PHP] Question about video (PHP unrealted)

2003-11-19 Thread Chris W. Parker
Frank Tudor on Wednesday, November 19, 2003 11:26 AM said: > I know this is bad but this is the only listserver/newgroup > thingy I use because I am php challenged. Actually you have (nearly) the entire internet at your beck and call. Me: "Frank, google. Google, Fr

RE: [PHP] how to create a function and return two parameters????

2003-11-19 Thread Chris W. Parker
Scott Fletcher on Wednesday, November 19, 2003 12:07 PM said: > I wanted to know how do I return two parameters within a > function. I'm not having much luck with it. I kept getting errors... [snip] >return $strResponse_XML,$strResponse_HTML; That's becaus

RE: [PHP] Why is the php loop, 'for()', so slow????

2003-11-19 Thread Chris W. Parker
Scott Fletcher on Wednesday, November 19, 2003 12:11 PM said: > Why does the for() loop for PHP so slow when it is digesting a > large amount of data? Is there a way to make the loop go faster? Show us your loop. -- Don't like reformatting your Outlook replies

RE: [PHP] Why is the php loop, 'for()', so slow????

2003-11-19 Thread Chris W. Parker
Scott Fletcher on Wednesday, November 19, 2003 1:12 PM said: > function CBC_XML_BreakUp(&$strResponse_XML, &$strResponse_HTML) > > { [snip] Wow I didn't think you were going to post your whole program. :0 1. Are you sure the for() loop is the slow part? 2. As so

RE: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray on Thursday, November 20, 2003 5:29 AM said: > Any ideas on how to accomplish this within the PHP construct? Instead of reinventing the wheel you can just use HTTPS. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tu

RE: [PHP] On-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray on Wednesday, November 19, 2003 9:44 AM said: > Any ideas on how to accomplish this within the PHP construct? You already posted this question and I've already responded to it. Check the old thread. -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] Two-way on-the-fly encryption

2003-11-20 Thread Chris W. Parker
Ray on Thursday, November 20, 2003 9:32 AM said: > I thought of that and I do plan on implementing it on the way in and > out. However, to meet HIPA and other business requirements, the data > can not exist at any point in time on my system in unencrypted form. > I

RE: [PHP] echo or print

2003-11-21 Thread Chris W. Parker
Wouter van Vliet on Friday, November 21, 2003 10:55 AM said: > Point is, which of the inline printing style is preferred by you > guyes. I tend to use a lot, since it reads easier but get > into struggles with myself when I do that multiple times in a row. Because

RE: [PHP] FW: [ERR] RE: [PHP] tar and ownership

2003-11-21 Thread Chris W. Parker
Nigel Jones on Friday, November 21, 2003 11:44 AM said: > I second that it's annoying > > CC'ed to List Owner :P Your best bet is to refuse @hanmir.com altogether. This has been happening for a long time (with different addresses all @hanmir.com) and I imagine it w

RE: [PHP] Deleting a String from a file.

2003-11-21 Thread Chris W. Parker
Cameron Badgley on Friday, November 21, 2003 1:42 PM said: > I have written the following code but receive the error: > Warning: fclose(): supplied argument is not a valid File-Handle > resource in /u3/7/cirop27/public_html/todo/to2doDEL.php on line 63 [snip] >

[PHP] looking for some software (helpdesk, intranet)

2003-11-21 Thread Chris W. Parker
Hey everyone, I just googled, freshmeated, and sourceforged but didn't find anything good (or what I thought to be good that was free). I'm looking for some helpdesk software and some intranet software with a MySQL backend. Anyone have any suggestions? Thanks, Chris. -- PHP General Mailing Li

RE: [PHP] question about security

2003-11-21 Thread Chris W. Parker
Alan Fullmer on Friday, November 21, 2003 5:00 PM said: > do i have to htmlspecialchars every entry? Yes you have to protect yourself from your users data each and every time you receive user data, ever, always. > does this make any sense? I think so. Chris. --

RE: [PHP] looking for some software (helpdesk, intranet)

2003-11-24 Thread Chris W. Parker
Jason Wong on Friday, November 21, 2003 8:07 PM said: > 1) State what exactly you're looking for -- what features are > must-have, what are nice-to-have etc. Specifically I want users to have their own accounts with their own personal data. Right now everyone sees t

RE: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread Chris W. Parker
Eugene Lee on Tuesday, November 25, 2003 12:47 PM said: > If you would stop using M$ Outlook and switch to a better mail client > that supports mailing lists, your problem would be solved. The problem with your theory is that some of us are in corporate environments

RE: [PHP] eregi function?

2003-11-25 Thread Chris W. Parker
Jas on Tuesday, November 25, 2003 2:32 PM said: > Not sure how to do this but I have a call to a database which pulls > the contents of a table into an array and I need a eregi string which > will sift through the contents and put a line break (i.e. \n or ) > after e

RE: [PHP] The clock issue in this forum!

2003-11-28 Thread Chris W. Parker
Rasmus Lerdorf on Friday, November 28, 2003 12:37 AM said: > Why are you sorting your email on the sender's timestamp and not the > arrival timestamp in your mailbox? Or is this really another thing > Outlook can't figure out? Please take note, Outlook and Outlook

RE: [PHP] Important notice

2003-11-28 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, November 26, 2003 9:30 PM said: > If you feel this transaction was made > by our mistake, please press "No". I keep clicking "No" but nothing is happening. PLEASE HELP! Maybe it's a bug with PHP?? Chris. -- PHP General Mailing List

RE: [PHP] header("Location: page.php") not redirecting

2003-12-01 Thread Chris W. Parker
rogue on Monday, December 01, 2003 2:39 PM said: > echo looks fine (no error in the URL). I am stumped. Is there anything > besides output to the screen before header() that breaks it? Create a file with only the following code and see what happens. http://www.goog

RE: [PHP] PHP - Oracle - BLOBs - Display BLOB data in a table

2003-12-03 Thread Chris W. Parker
Ahbaid Gaffoor on Wednesday, December 03, 2003 2:46 PM said: > I have written the first half of my application which stores images in > BLOB fields of an oracle database. > > This part of my app. works fine. > > I am now trying to download the database stored blob

RE: [PHP] Text field comparison

2003-12-03 Thread Chris W. Parker
Jeff on Wednesday, December 03, 2003 4:57 PM said: > I have created a few forms using post. There are certain fields that > must match (i.e. username/password) before submission. Can this be > accomplished using PHP? No, PHP is a server-side language. You need JavaS

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Chris W. Parker
Cesar Cordovez on Thursday, December 04, 2003 9:25 AM said: > I work on a project 100% made in PHP and MySQL that > costs a lot of money (6 figures) a copy. Ok... I can't let this go. Do tell! What is it? Or at the very least, what does it do? Chris. -- Don't li

RE: [PHP] related products, how to's best practices

2003-12-04 Thread Chris W. Parker
Justin French on Thursday, December 04, 2003 6:03 AM said: > 2. Javascript pop-up -- you could take this part of the process out of > the main window, and into a JS pop-up window which let's the user dig > through categories, do searches, WHATEVER to find each produc

RE: [PHP] Problem with references

2003-12-04 Thread Chris W. Parker
David Otton on Thursday, December 04, 2003 3:43 AM said: > function f() > { > return (array (7, 5)); > } > > list ($a, $b) = f(); Hey cool! I never knew about that. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.

RE: [PHP] What do you say to someone who says...

2003-12-04 Thread Chris W. Parker
Cesar Cordovez on Thursday, December 04, 2003 10:21 AM said: > I'm byting my tongue off... I have to resist... I've signed a do not > tell anybody thingy... It is huge, as in database with a million > records, huge... But... ARGH! I understand. :( Chris. -- D

[PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Chris W. Parker
Hey there everyone. I haven't had time much to work on my cart program recently but I was just thinking about abandoned carts and can't figure something out completely. How do you determine if a shopping cart has been abandoned or not? What I am thinking is that when the customer adds an item to

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Chris W. Parker
Anas Mughal on Thursday, December 04, 2003 1:23 PM said: > This looks like a business decision. > Your business anaylist could help answer your question. Yes, and so far they've all given good ideas. Thanks. -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Chris W. Parker
Jay Blanchard on Thursday, December 04, 2003 1:25 PM said: > In another thread on another list I pointed out to another person > designing a cart that the items in the cart are removed from inventory > while they are in the cart even though no check-out has occured.

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Chris W. Parker
Justin French on Thursday, December 04, 2003 2:20 PM said: > If you owned a grocery store, you'd have to decide how long you'd > leave an abandoned cart in isle 3 -- 5 minutes? a week? This is > entirely a decision up to you and your client. ;) > If you have 10

RE: [PHP] Search logic question

2003-12-04 Thread Chris W. Parker
Hardik Doshi on Thursday, December 04, 2003 2:21 PM said: > Please let me know. If you have any doubt in > understanding the entire process please let me know so > i can try to explain more. Let me know if I get this right. A user searches for something. User gets

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-04 Thread Chris W. Parker
Justin French on Thursday, December 04, 2003 2:48 PM said: > Rather than storing the shopping cart in a DB, store the cart in the > session. When the session dies, so does the cart. > When/if they choose to save it, it THEN gets ported into a database. Aaah...!

RE: [PHP] Whitespace filter

2003-12-05 Thread Chris W. Parker
Justin Hendrickson on Friday, December 05, 2003 5:51 AM said: > Does anyone have an eloquent way to strip redundant whitespace without > harming whitespace inside , or

RE: [PHP] PHP to HTML

2003-12-08 Thread Chris W. Parker
Steve Marquez on Monday, December 08, 2003 12:28 PM said: > Greetings! Hi. > Is there a way to have PHP write an HTML file? Yes. Start here http://us2.php.net/manual/en/function.fwrite.php. Chris. -- Don't like reformatting your Outlook replies? Now there's reli

RE: [PHP] Re: query to display the results without...

2003-12-08 Thread Chris W. Parker
Eric Holmstrom on Monday, December 08, 2003 3:06 PM said: > How do i make it so if i type > http://localhost/test.php?partno=5r&description=copper $partno = $_GET['partno']; $description = $_GET['description']; $sql = " SELECT partno , descr

RE: [PHP] post an array into another site

2003-12-08 Thread Chris W. Parker
fred on Monday, December 08, 2003 4:31 AM said: > I have an array in php like this: > > $arr[0][0] = "Something"; > $arr[0][1] = "Hello"; > $arr[0][2] = "Hi"; > > It is possible to post this array to another site in a form? Or how > can i do this? Yes. Here is a h

[PHP] restrict access to multiple pages

2003-12-08 Thread Chris W. Parker
Hey y'all. Ok so I am working on the admin sectin of the e-commerce app I'm writing and I'm hoping there's a better way to do what I am currently doing. In an effort to prevent circumvention of the login page I've placed a check at the beginning of each page that basically does the following:

RE: [PHP] restrict access to multiple pages

2003-12-09 Thread Chris W. Parker
Chris Shiflett on Monday, December 08, 2003 5:17 PM said: > The only risk is forgetting to add this check, since I > assume you mean that you have to copy/paste this into every script. > You might want to consider whether you can design your application in > such a w

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-12-09 Thread Chris W. Parker
Ma Siva Kumar on Tuesday, December 09, 2003 4:00 PM said: > 4. Just put the following code into a file with a > .php extension and access it through your > webserver: > > phpinfo(); >> > > This will display tons of info if php is enabled, > or, it will ask you to

RE: [PHP] Array problem....

2003-12-10 Thread Chris W. Parker
Jas on Wednesday, December 10, 2003 3:21 PM said: > while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge) = > mysql_fetch_row($sql_subs)) { > $_session[''] = > "$sub+$msk+$dns01... > } No exactly sure what you mean but here goes: $iCtr = 0; while(list(...)) =

RE: [PHP] Array problem....

2003-12-10 Thread Chris W. Parker
Chris W. Parker <> on Wednesday, December 10, 2003 3:27 PM said: > while(list(...)) = mysql_fetch_row(...)) > { Got one too many ) in there. Should be: while(list(...) = mysql_fetch_row(...)) { Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Array problem....

2003-12-10 Thread Chris W. Parker
Jas on Wednesday, December 10, 2003 3:44 PM said: > having no idea you could use numbers as session variable names I kinda > feel like a retard right now. You solution worked, thank you very > much. It's an array just like any other which you probably realize now.

RE: [PHP] calling include inside a function?

2003-12-11 Thread Chris W. Parker
Louie Miranda on Wednesday, December 10, 2003 11:40 PM said: > Its possible How did you solve your problem? Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing

RE: [PHP] Array problem....

2003-12-11 Thread Chris W. Parker
Jas on Thursday, December 11, 2003 7:21 AM said: > Well just so you understand "why" I needed something like that here is > the finished result below [snip] > $i = 0; > while(list(...) = mysql_fetch_row(...)) { > $_SESSION[$i] = "..."; > $i++; > } I want t

RE: [PHP] how to determine if shopping cart has been abandoned?

2003-12-11 Thread Chris W. Parker
Daniel Guerrier on Thursday, December 11, 2003 9:08 AM said: > Why not just maintain carts for users with accounts > and maintain them indefinately. Users with out > accounts can have there carts stored in a session and > will become invalid when the session expires

RE: [PHP] error in mysql SQL syntax

2003-12-12 Thread Chris W. Parker
[EMAIL PROTECTED] on Friday, December 12, 2003 12:43 AM said: First I'm going to +1 Jason's comment. Then I'm going to give you a tip. > Could somebody tell me way I am getting an error in this SQL syntax. > $query = "insert into majordomoaliases > (domain,address

[PHP] logic for displaying hierarchical data (ala windows explorer)

2003-12-15 Thread Chris W. Parker
Hi everyone, Last Friday I struggled for a long time with displaying some data that's stored using the Modified Preorder Tree Traversal method. Without making this email overly long and complicated (like my first draft was) I'd like to simply ask if someone has any links or functions or instructio

RE: [PHP] PHP IDE?

2003-12-15 Thread Chris W. Parker
Al on Monday, December 15, 2003 12:52 PM said: > I searched for weeks and tried about 8 php editors and settled on > http://www.phpedit.net/products/PHPEdit/ > > Code hints and completion, and highlighting, etc. are superb. > > Has a few minor bugs, but they are no

[PHP] CVS on Windows

2003-12-15 Thread Chris W. Parker
Hey everyone, Sorry for the OT post but I don't know of any other lists where this would be appropriate so I'm sending it here. I will be interfacing with a CVS server not hosted on a Windows machine (it will be a bsd/*nix variant) and frankly I've never used it. What client do all you Windows pe

RE: [PHP] CVS on Windows

2003-12-16 Thread Chris W. Parker
Mike Migurski on Monday, December 15, 2003 10:03 PM said: > Tortoise is a popular CVS client for windows -- CVS commands are > added to the contextual menu in [[whatever windows calls its > Finder]]. All of your files are edited locally, using the editor of > your ch

RE: [PHP] Christmas

2003-12-19 Thread Chris W. Parker
Eric Bolikowski on Friday, December 19, 2003 2:28 PM said: > Merry christmas to every PHP developer here!!! You too. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing

RE: [PHP] include files

2003-12-19 Thread Chris W. Parker
Todd on Thursday, December 18, 2003 9:57 AM said: > Is it possible under PHP4 to get the name of the file that a function > was called from? To clarify, here's an example of what I'd like to do: [snip] > Does anyone know of a way to do this? I've tried several diff

RE: [PHP] Re: progress in PHP

2003-12-22 Thread Chris W. Parker
Steve Murphy on Monday, December 22, 2003 1:03 PM said: > Well its actually a pure PHP upload meter it just uses JS to open the > window. You could make PHP open the window as well with a little > tweaking. Unless I'm missing something here this is incorrect. PHP do

RE: [PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH PHP

2003-12-22 Thread Chris W. Parker
Larry Brown on Monday, December 22, 2003 3:59 PM said: > Is your field too small? MySQL doesn't complain when you give it a > string longer than it can accept based on the field's size. It just > cuts off what doesn't fit :-) Uhh... he stated in his original email

RE: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-23 Thread Chris W. Parker
Justin French on Monday, December 22, 2003 6:12 PM said: > Sounds more like the mysql field is a varchar255, rather than maybe a > mediumtext, and only the first 255 chars are getting inserted into the > DB? > > But I could be horribly wrong :) In an effort to keep

RE: [PHP] [Newbie Guide] For the benefit of new members

2003-12-29 Thread Chris W. Parker
Raditha Dissanayake on Sunday, December 28, 2003 8:55 PM said: > This compilation of your is really excellent. Over the last few > months i have noticed that many posters are cleary sending messages > without having read your newby guide. IMHO whenever that happens

RE: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Chris W. Parker
Freedomware on Monday, January 12, 2004 1:57 AM said: > Thanks for the tips, but there's one thing I should point out - I > won't actually be using Apache with my online domains (at least, I > don't think so). I'm just going to use it on my computer to preview > and

RE: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Chris W. Parker
Freedomware on Sunday, January 11, 2004 4:40 PM said: > Which PHP do you recommend I download - 3.0, 4.0 or 5.0? Your PHP > tutorial at http://www.php.net/tut.php offers a link to preconfigured > packages (Apache, PHP and MySQL). I noticed that the package that got >

RE: [PHP] Can you recommend a good PHP includes tutorial?

2004-01-16 Thread Chris W. Parker
Freedomware on Wednesday, January 14, 2004 5:17 AM said: > Wow, that is a lot simpler than I imagined. Thanks for the tip! Imagined? What did the book tell you to do? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] Returning Newbie (Disoriented)

2004-01-16 Thread Chris W. Parker
Freedomware on Monday, January 12, 2004 5:47 PM said: > Now I just have to get it hooked up to Dreamweaver. But I'll take your > advice and find out what programs my host is running. I don't think you "hook up" Dreamweaver to anything in the way that Frontpage "hook

RE: [PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Chris W. Parker
Chris Shiflett on Tuesday, January 20, 2004 12:54 PM said: > That was great. My favorite quotes from the article: > > "Register for this tutorial" Bummer. I was looking forward to reading it. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] hello to making the php pages

2004-01-20 Thread Chris W. Parker
hello you, i am here to ask of help from the mailing list. i have PHP Codes like this kind: echo "Welcome to my homepage Mom. See my brand new wife!": I have problem with PHP Codes from above. Where to fix Codes? :P Sorry I couldn't resist!!! -- PHP General Mailing

RE: [PHP] hello to making the php pages

2004-01-21 Thread Chris W. Parker
Dagfinn Reiersøl on Tuesday, January 20, 2004 10:19 PM said: > If he kept the old wife, he needs to talk to both wives. If not, > replacing the colon with a semicolon might help. she was kicked by bull pulling plow. new wife much better. make very happy. -- PHP Gen

RE: [PHP] textfields showing php tags & code

2004-01-21 Thread Chris W. Parker
craig on Wednesday, January 21, 2004 9:24 AM said: > This one has me stumped, it worked yesterday, but not today, > and I didn't change anything (as far as I know). > > This is some of the code from a function which is now showing the > code inside the textareas, r

RE: [PHP] Form validation

2004-01-21 Thread Chris W. Parker
Alex Hogan on Wednesday, January 21, 2004 7:18 AM said: > Can some one point me in the right direction for a good tutorial on > form validation in PHP? Here is a basic practical application. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] can't figure out this mysql error

2004-01-22 Thread Chris W. Parker
Hi. I have a db class that accesses and executes querys as well as returns the result (if you so choose to have it returned). One method within this class is called query() (how genius!). It's defined like so: Result = mysql_query($sql) or die($this->stop($current_line)); if(!$this->Result)

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

2004-01-23 Thread Chris W. Parker
Jason Wong on Thursday, January 22, 2004 8:49 PM said: > The if-clause will never be evaluated because if there had been an > error your program would have dieded on the previous line. Heh.. yeah I thought about that as I was examining the code for this post. But th

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

2004-01-23 Thread Chris W. Parker
Chris W. Parker <> on Friday, January 23, 2004 8:54 AM said: > All of what you say makes sense. Hopefully your suggestion will help > me find the problem! In looking through my code I see that I already do this. EVERY call to a mysql function has "or die($this->stop("

RE: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Chris W. Parker
Freedomware on Friday, January 23, 2004 3:19 AM said: > HOWEVER, it said the better method was to type in either "http" or (I > can't remember the second choice offhand). I think I did it on line > 133 (see below. Just to clarify. The difference between the two meth

RE: [PHP] Apology (Re: what PHP really needs)

2004-01-23 Thread Chris W. Parker
John Nichel on Friday, January 23, 2004 12:30 PM said: > Seems I struck a cord with some of the people on this mailing list > with my Cold Fussion, ASP/.NET comment. I forgot to put my little > smirk ;) after the comment. To those that I offended, I'm sorry. > Jus

[PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
Hello, This is now my 3rd attempt at writing this email. :) The first two were pretty long... I'm currently working on trying to find a solution that is both simple and flexible for storing the data of a complicated set of dynamic options for some of our products. My current thinking is that I w

RE: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
On Thursday, January 18, 2007 3:51 PM Chris said: Hey Chris, > If you have to write a 6 page document to explain what's going on, > that's probably bad.. because in 6 months time if you need to revisit > it, you're going to have issues. hehe I wouldn't say that my othe

RE: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
On Thursday, January 18, 2007 5:09 PM Paul Novitski said: > Are you considering keeping all the levels of your data tree in a > single table because you can't predict how many levels there will > be? If you CAN predict its depth, wouldn't it be simpler and easier > to c

[PHP] Can't get PHP errors to display or log consistently

2007-03-16 Thread Chris W. Parker
Hello, Using CentOS 4 and I can't get errors to display on the page AT ALL or log errors consistently. Some errors get logged (forgetting to us $this-> in a class for example) but most don't. I've tried: * using .htaccess to set the error reporting. * checking and double checking my php

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-16 Thread Chris W. Parker
On Friday, March 16, 2007 12:37 PM Robert Cummings said: > Is there a custom error handler in place? > > Try grepping for set_error_handler. Not in this project. Being used in another project wouldn't count towards this one would it? Thanks. -- PHP General Mailing

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-16 Thread Chris W. Parker
On Friday, March 16, 2007 12:49 PM Robert Cummings said: > If either project overrides the error handler than a custom error > handler is in place. All depends on whether the code that sets it gets > run. (Was at lunch.) I see. In that case how do I override it in this

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-19 Thread Chris W. Parker
On Friday, March 16, 2007 4:04 PM Robert Cummings said: Update: Now that I've corrected my mistake in php.ini and set the level of error reporting that I want I can see *most* errors. But shouldn't the following produce a visible error? If I comment the x I see 'hel

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-19 Thread Chris W. Parker
On Monday, March 19, 2007 11:28 AM Brad Fuller said: > Syntax errors like that will cause a startup error, which means your > code > can't be evaluated. So those 2 lines of code that turn the error > reporting > on never get executed. Oooohh it's a "startup error". D

RE: [PHP] Name Capitalization

2007-03-19 Thread Chris W. Parker
On Monday, March 19, 2007 10:24 AM Leonard Burton said: > For instance, McDonald needs to remain that way even if it comes in as > MCDONALD, or mcdonald. [snip] > Yeah, nothing is a "perfect solution" but anything is better than > nothing. That's probably true when you'

[PHP] Security: Passing URLs between pages for redirect

2007-04-02 Thread Chris W. Parker
Hi. Currently I'm building a small application for internal office use but I'd like to get some feedback on a certain aspect of it. When someone tries to access a page they do not have access to they are redirected to the login page with the URL they tried to access in the querystring. This URL i

[PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
Hello, I have a form page and a processing page. After submitting the form the processing page does whatever it needs to do (insert a record, send back validation errors, etc.) After determing what to do it always redirects somewhere with header('Location: URL'); But sometimes when I'm back at t

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 11:44 AM Tijnema ! said: > This is the only behavior i know of, a refresh action does the same > action he did for loading the current page again. If you submit data > to that page, it will resubmit the data. If you're using the > Location:URL

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 12:35 PM Chris Shiflett said: >> But sometimes when I'm back at the form page (after the redirect) >> and I refresh the page it does the previous page's actions again. > > Can you provide a raw HTTP dump of the complete scenario? Two things:

[PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name (varchar) email (varchar) balance (mediumin

RE: [PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
On Monday, April 09, 2007 3:51 PM Jochem Maas <mailto:[EMAIL PROTECTED]> said: Thanks for the response Jochem. > Chris W. Parker wrote: [snip] > you probably only want one DB call to > populate the User object with all the relevant > user data at the point where the object

RE: [PHP] Question about OO design

2007-04-10 Thread Chris W. Parker
On Monday, April 09, 2007 4:24 PM Jochem Maas said: >> Ok. I see what you're saying. If I populate all that data during the >> constructor why would I ever call the function again right? > > you could refresh the data if needed - but basically the idea is > to cut down

RE: [PHP] Primer for working with arrays

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

RE: [PHP] Fancy Form processing Ideas

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

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

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

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

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

RE: [PHP] Re: isset

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

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

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

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