RE: [PHP] quit me off the php list

2002-01-15 Thread Chris Lott
The bottom of EVERY MESSAGE has instructions for removing yourself from the list. Please follow them. c -- Chris Lott -- http://www.chrislott.org/ -Original Message- From: Thyago Consort [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 10:01 AM To: Adam Baratz; PHP List

[PHP] PHP in the University and Corporation [was RE: [PHP] Computer Science and PHP]

2002-01-26 Thread Chris Lott
the marketing ends. c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Re: getting a LAMP job in this economy

2002-01-26 Thread Chris Lott
motto, and that might mean SQL Server, it might mean MySQL. It might mean a Linux server, it might mean Win2K. There is no single panacea. c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Re: PHP in the University and Corporation [was RE: [PHP] Computer Science and PHP]

2002-01-27 Thread Chris Lott
doors, not to mention the possibility of such certifications becoming a joke as MCSE and other Microsoft Certs (for instance, and a cert I can speak of with firsthand experience :) have become in many circles and actually having as much negative impact as positive. c -- Chris Lott http

RE: [PHP] Mysql / PostgreSQL with PHP

2002-01-28 Thread Chris Lott
(stored procedures and subselects, which I am waiting for in the new MySQL almost with tears in my eyes :), I would go with pg. I don't believe pg has replication features. I've never used pg on Windows if you are thinking of using it there. c -- Chris Lott http://www.chrislott.org/ -- PHP

RE: [PHP] Books on PHP

2002-02-14 Thread Chris Lott
, since it is structured and written that way. You really can't go wrong with any of those books, a good project to keep yourself interested, and a local copy of the documentation. c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] good practice

2002-02-15 Thread Chris Lott
Well, .inc seems to be so common as to be a standard practice. At the very least, the real issue is education on the need to protect included files anyway so that they can't be accessed directly. c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] zend studio 2.0

2002-02-17 Thread Chris Lott
-- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] zend studio 2.0

2002-02-17 Thread Chris Lott
their development (either of themselves or their program) negatively. c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text editor for linux

2002-02-18 Thread Chris Lott
Anyone know of a good text editor for linux, WITH syntax highlighting for php/html + other languages? emacs. There is no alternative. :) c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Chris Lott
or ?? c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php Enum Field

2002-02-18 Thread Chris Lott
Sorry, my question was how can I retrieve the preset Enum values from AccessRight field property? Thanks. Untested, but I think I remember: $result = mysql_query(SHOW COLUMNS FROM main LIKE `colname`); c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http

Re: [PHP] Re: Homesite

2002-02-19 Thread Chris Lott
There is an expressions builder for php that works like the one that come with Homesite. I don't use it but it used to be on the Allire site. Since Macromedia owns hs now, No telling where to find it. Try: http://www.wilk4.com/asp4hs/php4hs.htm c -- Chris Lott http://www.chrislott.org

Re: [PHP] Crashing a webserver

2002-02-19 Thread Chris Lott
://www.softwareqatest.com/qatweb1.html#LOAD c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cool PHP sites

2002-02-26 Thread Chris Lott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It strikes me that my students really don't have a good grasp of what PHP is capable of doing, since they are getting bogged down in learning the minutiae of the language itself. So (quickly if possible-- I'd like to demo some sites tonight) what are

[PHP] default/optional parameters in function

2002-07-03 Thread Chris Lott
I have a function that writes meta tags... if a tag (or tags) is not specified, then it gets a default value... is there a cleaner way to do this? function print_pmeta ($type) { if ($type[description]) { print 'meta name=description content=' . $type[description] . ' /'; } else {

Re: [PHP] default/optional parameters in function

2002-07-03 Thread Chris Lott
On Wed, 3 Jul 2002, Analysis Solutions wrote: On Wed, Jul 03, 2002 at 05:44:28PM -0800, Chris Lott wrote: I have a function that writes meta tags... if a tag (or tags) is not specified, then it gets a default value... is there a cleaner way to do this? Not that I can think of. I do

[PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
as decent primers... I expect that the PHP book will have enough of the fundamentals of programming to set them on the right path... Any suggestions for a MySQL book would be great. If both were in one book, even better! -- Chris Lott [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
On 15 Nov 2001, [EMAIL PROTECTED] (The Big Roach) spake thusly: I think a better strategy would be to introduce them to the basics of databases in general as opposed to trying to teach MySQL to them. A good primer on DB's would be Databases for mere mortals by ... ? some guy! But the cover is

[PHP] Setting title via included file

2001-11-20 Thread Chris Lott
I have a page that includes a file in the middle, but I wish to set the title of the page based on a variable set in the included file-- is this possible? PHP processes the page sequentially, so if I have $foo = Title in the included file, it is too late to use it for the title of the main

[PHP] Performance: functions vs includes?

2001-07-06 Thread Chris Lott
Is there a performance benefit or other reason to prefer including files or using functions that write the same contents? For instance, on my pages I have an number of includes for header, main nav, footer, random quote. If I need to pass variables to one of them I just set the variable right

[PHP] Next Book

2001-07-08 Thread Chris Lott
Finished with Beginning PHP from Wrox. Am eyeing Advanced PHP from Wrox. Other good books I should think about? Recommendations? Reviews? I know the PHP FAQ has pointers to books, but I am looking for recommendations on what I SHOULD get as I transition from a Cold Fusion person to a PHP devotee

[PHP] Storing multi-page texts

2001-07-08 Thread Chris Lott
What kind of methods have any of you used for storing text that needs to be displayed as both multi-page (for reading) and single-page (for printing)? My plan is to store the articles with basic HTML formatting that will render based on the site stylesheet(s). I'm using MySQL. My main question

RE: [PHP] Book Database

2001-07-09 Thread Chris Lott
The Library of Congress web site is good for that sort of thing. You can search for an ISBN and have returned a formatted MARC record/etc which is fairly easy to parse. I don't have code anymore, but I did exactly this at one time. c -Original Message- From: Reuben D Budiardja

[PHP] Manual building/snapshot

2001-07-14 Thread Chris Lott
Since nothing seems to be available at snaps.php.net/manual I grabbed the phpdoc cvs tree. Could anyone who is building their own manual tell me what I need to build it? I'm running RedHat Linux 7.1 c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] Select IN array?

2001-07-14 Thread Chris Lott
I have an array of id numbers ($catids). I would like to select from the mysql database all records where cid is in that array. This syntax fails: select * from categories where cid in $catids What is the correct way to do this? It can be done outside of a loop, can't it? c -- PHP General

RE: [PHP] Select IN array?

2001-07-14 Thread Chris Lott
I have an array of id numbers ($catids). This syntax fails: select * from categories where cid in $catids Never mind. I was being stupid. For the record, one needs to implode(,, $catids) and then use that in the WHERE statement, i.e. where cid in ($catids) c -- PHP General Mailing List

RE: [PHP] PHP vs Perl question

2001-07-18 Thread Chris Lott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd go for it. Perl can be messy, but it is also quite powerful and doesn't HAVE to be messy. It is EVERYWHERE both in terms of availability and use. But most of all, it is a fun language to play with... and if you do any system admin it is an

RE: [PHP] a good PHP editor

2001-07-18 Thread Chris Lott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emacs on windows is great, and php-mode (there are a few. One that I have a link close to hand for is at: http://sourceforge.net/projects/php-mode/ ) is cool. I don't usually recommend it because it can be a pain to get setup optimally, but once it

RE: [PHP] a good PHP editor

2001-07-19 Thread Chris Lott
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I wonder if Emacs runs on win2k it ran on win95 great... Emacs/Windows runs fine on win2k. -BEGIN PGP SIGNATURE- Version: PGP 7.0.3- signed for information authentication and security Comment: Key ID: 0x51046CFD

[PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-02-25 Thread Chris Lott
I'm making the switch from Windows to Linux for mydesktop and development environment and would greatly appreciate suggestions for development tools on this platform. Ubuntu seems to be getting all the press, but suggestions about Linux distributions are welcome as well! c -- PHP General Mailing

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-03-01 Thread Chris Lott
Thanks for the advice-- I've run Linux without a GUI for a long time, so I'm quite familiar with hand compilations-- but I always wondered if I was just missing something with packaging systems that it seemed to REQUIRE hand-compilation to get a workable development LAMP system. Anytime I tried

Re: [PHP] PHP to read news

2005-10-22 Thread Chris Lott
are also doing. So that is the proper way. I imagine if you search for NNTP and PHP you will find some third party classes and code that might help out too... c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shortest possible check: field is set, integer or 0

2005-11-30 Thread Chris Lott
What is the shortest possible check to ensure that a field coming from a form as a text type input is either a positive integer or 0, but that also accepts/converts 1.0 or 5.00 as input? c -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPEclipse vs TruStudio

2005-12-14 Thread Chris Lott
Which of these are better Eclipse plugins for PHP Development? Or, which advantages do each provide? c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting dates with php

2005-12-21 Thread Chris Lott
On 12/21/05, Ross [EMAIL PROTECTED] wrote: Hi, Have a load of dates in the format DD/MM/YY. Thet are stored as a VARCHAR on a mysql DB. Couldn't you use cast() to cast the values first? Something like (untested): SELECT CAST(doc_date AS DATE) FROM papers ORDER BY doc_date DESC c -- PHP

[PHP] Dynamic Array Index using Variable

2006-01-09 Thread Chris Lott
I want to do something like this to check if a variety of submitted form fields (crn, instructor, etc) have any value in them: $reqfields = array('crn', 'instructor'); $errorflag = 0; foreach ($reqfields as $field) { if ($_REQUEST[$field] == '') { $errorflag = 1;

Re: [PHP] Dynamic Array Index using Variable

2006-01-09 Thread Chris Lott
What I have is a form with 45 data fields... if any of a selected 35 of those fields is empty, I want to have the user go back. So I can't loop over the entire _POST array. So I thought I would put the names of the fields I *do* want to check into an array and check. So this won't work:

[PHP] Recommend an IDE for Windows

2004-05-07 Thread Chris Lott
-- Chris Lott chris.lott[AT]gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Recommend an IDE for Windows

2004-05-08 Thread Chris Lott
On Fri, 07 May 2004 23:58:47 +0200, Rainer Müller [EMAIL PROTECTED] wrote: I've been looking at Zend Studio and Nusphere PHPEd as primary candidates. However, I have a short window to buy something (fiscal year issues) so any comments on these two editors (separately or in comparison to one

[PHP] PHP 4 and PHP 5 on same windows server

2004-06-17 Thread Chris Lott
Are there instructions available (or can anyone fill me in) on the best way to set up PHP 5 to run on my Windows/Apache server concurrently with my PHP4 install? I am currently running PHP4 as an Apache module... c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] PHP based image database

2004-06-17 Thread Chris Lott
tagging and/or allows for a controlled vocabulary of keywords, and a decent hierarchical system for organization. Anyone know of such a beast-- or something close? c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] displaying repetitive results

2004-11-10 Thread Chris Lott
Given a database query thats returns results from a linking (or xref) table which includes repetition because of the joins: ++--+--+ | id | title| subject | ++--+--+ | 1 | Collected Poems of Keats |

Re: [PHP] displaying repetitive results

2004-11-13 Thread Chris Lott
On Sat, 13 Nov 2004 06:30:14 +, Curt Zirzow [EMAIL PROTECTED] wrote: You might normalize the data a bit. agreed! Curt My data IS Normalized! The results you are seeing below are from joining together the books, subjects, and books_subjects xref table, as I explained below. But my

[PHP] Where to learn about these topics

2004-11-20 Thread Chris Lott
Where can I learn topics such as: 1) Examples of complex PHP applications entering data into complex related table structures. For instance, if I am writing an application to create a class catalog that has 5 related tables, how do I handle the workflow when the data in related tables doesn't yet

Re: [PHP] Where to learn about these topics

2004-11-22 Thread Chris Lott
In MySQL I would say... If you have data which has to be inserted in serveral tables, you must first check if all conditions are ok. So, do some selects to check if everythin in your database is ok, and after that, execute the query. But, when you really want to make complex database driven

[PHP] Overriding display errors and error reporting in php.ini

2004-11-24 Thread Chris Lott
I am running a system with PHP 5 and IIS 4. If I enable error display in php.ini, errors get displayed. If I turn error display off, they go away. However, if I have them off in php.ini but I put this code on a page: error_reporting(E_ALL); ini_set('display_errors', TRUE); I still get no error

[PHP] Finding duplicates in arrays

2004-06-24 Thread Chris Lott
Given two arrays, I want to find the records which are duplicates. What is the simplest approach? And should I use a different approach to compare three or more arrays to find only duplicates that occur in all of them? c -- Chris Lott -- PHP General Mailing List (http://www.php.net

[PHP] Does this beginner's book exist?

2004-08-30 Thread Chris Lott
decent examples, and perhaps exercises/quizzes (not as important as the first two)? c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Chris Lott
/manuscript/ [description] = Manuscript [time] = 2004-09-16T19:25:14Z ) I'd like to sort the array based on one of the values in the field href, description, or time. Is there a canonical way of doing this? c -- Chris Lott -- PHP General Mailing List (http

[PHP] PHP textbook suggestions?

2007-04-05 Thread Chris Lott
to be a traditional textbook! But it shouldn't be a reference manual either. c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP textbook suggestions?

2007-04-06 Thread Chris Lott
-- one anti-recommendation. So if anyone has any productive ideas for a good textbook for beginners, my ears are open. c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP textbook suggestions?

2007-04-06 Thread Chris Lott
a while. c -- Chris Lott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP textbook suggestions?

2007-04-11 Thread Chris Lott
are small, but the learning effects of the inconsistencies is much larger, particularly with a group of students that are not techies, not geeks, not computer science or IT students... c On 4/10/07, LuKreme [EMAIL PROTECTED] wrote: On 6-Apr-2007, at 08:13, Chris Lott wrote: echo substr(abcdef

Re: [PHP] PHP textbook suggestions?

2007-04-11 Thread Chris Lott
On 4/10/07, Richard Lynch [EMAIL PROTECTED] wrote: print 'The cost is ' . $cost; NOT print The cost is $cost; AND CERTAINLY NOT print (The cost is $cost); echo The cost is , $cost; If you're going to be this picky, you'd better write your own textbook... :-) Perhaps instead of a