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
s of the differences
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
rning. They
get there, but it takes a while.
c
--
Chris Lott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in-- as far as I can tell-- 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
-
work through and understand is good-- doesn't have 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
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 us
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
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:
> foreach(
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;
}
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
--
PH
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
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
NNTP functions. That's whats the IMAP functions you
are using 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
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 d
> 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
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
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
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 | poetr
; http://110am.com/projects/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
--
P
tices, has 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
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.ph
-data 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
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
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
d!
c
--
Chris Lott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
> &
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 '';
}
else {
print '';
}
if ($type["keywords"]) {
print '';
-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
osberger/httperf.html
http://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
> 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
> 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
ndex page 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
> 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
lick or not doesn't impact 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
mentioned are particularly mouse-centric.
c
--
Chris Lott
http://www.chrislott.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
hoice for a class text, 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.
lacks
(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.chrislot
g any 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
ven the
most stable. The right tool for the job is my 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 unsubs
and granted, which would defeat 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]
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
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 doc
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 cov
serve 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
-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
iQA/AwUBO1cb6daLYehRBGz9
-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 is
-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 indispe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I can't speak for Win9x, but on NT and now 2K, I have been using Homesite
for YEARS, open all the time, editing many pages (I'm lazy so I typically
have 20-30 pages open at any given time), heavy use of regex search and
replace across folders, etc. an
> 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 Mailin
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 Mai
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
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 [mailt
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 i
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 :
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 befo
experienced with a host can tell you if they are any good or
not!
via private mail is fine, if you want to share that good thing with one
person instead of the list...
c
--
Chris Lott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
57 matches
Mail list logo