PostgreSQL. In most situations
text or character varying should be used instead.
http://www.postgresql.org/docs/8.0/interactive/datatype-character.html
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; };
> echo '';
> };
>
> echo ' variable value ';
> foreach(get_defined_vars() as $key => $value){
> echo '$',$key ,'';
> if(is_array($value) and $key != 'GLOBALS'){
> if(sizeof($value) > 0){
>breakarray($v
gers, outputting them
via the chr() function, and seeing if the result is what you expected.
You may need to use the inverse function, ord(), to get your codes into
numeric form. For example, ord('m') will return decimal 109. That's only
an example, since you should be able to send single characters to the
terminal as is.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
st every day for the last
> > month. It has been a scorcher this year!
>
> Grumble, grumble... did I mention freshwater falls from the sky and
> forms vertical piles outside my home?
>
High of 72 degrees in central Florida. Now, where did I put my swimsuit?
;-}
Paul
--
Paul M.
On Sat, Jan 10, 2009 at 03:16:34AM -0500, Robert Cummings wrote:
> On Sat, 2009-01-10 at 03:10 -0500, Paul M Foster wrote:
> > On Sat, Jan 10, 2009 at 01:57:09AM -0500, Robert Cummings wrote:
> >
> > > On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote:
> > > &g
he PHP $name variable can't be seen by the HTML, which
is why you need to enclose it in a little PHP "island". Naturally, if
you're going to put PHP code in the middle of a HTML page, make the
extension PHP. Otherwise, Apache will not interpret the PHP code as PHP
(unless you do som
he login controller. So essentially, if the
user is logged in, I go ahead and instantiate whatever controller they
specify. But if they're not logged in, I force the login controller to
be the one which is instantiated. (In my case, the "front controller"
isn't really a class as other controllers are. It's just a bunch of
routines and function calls in index.php.)
Does that make sense?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r HTML/PHP pages.
But here's a question for those of you who work in a collaborative
environment-- are you really ever in a situation where some HTML weenie
is coding HTML pages and you're somewhere else doing the PHP work? Or is
that some academic's view of the way things *should* be done?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Jan 11, 2009 at 11:28:49PM -0800, Lars Torben Wilson wrote:
> 2009/1/11 Paul M Foster :
> > But here's a question for those of you who work in a collaborative
> > environment-- are you really ever in a situation where some HTML weenie
> > is coding HTML pages
sed by IE, and you can use !important to stress your IE
> styles. Best thing though is it validates through the W3C because it is
> just an HTML comment.
Don't move that page; I've bookmarked it. ;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
e is not a straight GPL-like license--
it requires attribution even on derivative projects and requires clear
notice of any changes you make to their code. But for a framework, it's
pretty good.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in 20 files for
each page load. Very compact. Probably not suitable for every kind of
project, but it works for this.
Incidentally, I would differ from the reviewer in the link above only in
this respect: He maintains that every line of code adds time. While this
is true, I believe it'
de works pretty well.
And most of the guys who code it would smack you silly if you suggested
objects to them.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Jan 15, 2009 at 09:57:42AM +0300, Usamah M. Ali wrote:
> On Thu, Jan 15, 2009 at 1:59 AM, Paul M Foster
> wrote:
>
> > If you're going to go with a prebuilt framework, I'd recommend
> > CodeIgniter for your first time out. If the docs look good to yo
On Thu, Jan 15, 2009 at 04:20:16AM -0500, Robert Cummings wrote:
> On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote:
> >
> > Incidentally, I would differ from the reviewer in the link above only in
> > this respect: He maintains that every line of code adds time. Whil
On Thu, Jan 15, 2009 at 04:17:51AM -0500, Robert Cummings wrote:
> On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote:
> > On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote:
> >
> > >
> > >The pages are significantly slower than straight PH
hey submit to your
existing form, your PHP can simply ignore it.
Also, you might try CAPTCHA (look it up). It tries to weed out human
from non-human surfers. You've probably got a 'bot submitting to you, so
this might help.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
; like for($i = 'a'; $i <= 'z'; ++$i)..
for ($i = 'a'; $i <= 'z'; $i++)
echo $i;
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, Jan 18, 2009 at 01:03:44PM +1100, Clancy wrote:
> On Fri, 16 Jan 2009 00:51:58 -0500, pa...@quillandmouse.com (Paul M Foster)
> wrote:
>
> >On Fri, Jan 16, 2009 at 11:57:24AM +1100, Clancy wrote:
> .
> >> The only explanation I
x27;s keeping track of mine? I
> had no idea!! Can they be cashed in for treats? :B
Well... they would be, except that yours are negative. ;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Jan 19, 2009 at 10:23:49PM -, c...@l-i-e.com wrote:
>
> ESTJ
>
Me too.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and class at a time should mean we get a
> steady stream of classes to the repo.. think about 6 months down the line]
>
You really don't have enough to do, do you?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Jan 20, 2009 at 03:29:29AM +, Nathan Rixham wrote:
> Paul M Foster wrote:
>> On Mon, Jan 19, 2009 at 11:57:25PM +, Nathan Rixham wrote:
>>
>>
>> You really don't have enough to do, do you?
>>
>> Paul
>>
>
> actually, way
On Tue, Jan 20, 2009 at 03:57:34AM +, Nathan Rixham wrote:
>
> welcome; good to see a new face - even if it is preformatted courier as
> per :p
That "preformatted courier" sounds like your email client. I use mutt an
vim for mail.
Paul
--
Paul M. Foster
--
PHP G
On Mon, Jan 19, 2009 at 10:49:34PM -0500, Daniel Brown wrote:
> On Mon, Jan 19, 2009 at 22:46, Paul M Foster wrote:
> >
> > Incidentally, I'm relatively new to the list, but I see a lot of CCs
> > along with posts to the list. The CCs are only useful if non-subscriber
and
provide a link to the PDF on the web page. The user clicks on the
generated PDF, and his/her browser opens up Acrobat or xpdf, and prints
from that application to their local machine.
Is that a reasonable way to implement this? Any better ideas?
Paul
--
Paul M. Foster
--
PHP G
y())
> {
> do stuff;
> }
> }
>
A couple of thoughts. First precede all your mysql_* calls with the at
sign (@) to shut up the routines if they generate text. I had this
problem, and that was the answer.
Second, store your connection resource as a class variable, so you can
pass it around to the various routines. Actually, you're already doing
this, but I prefer to do so explicitly, as:
var $link;
at the top of the class.
I have a similar class for PostgreSQL. I also have routines like
"update", which allow you to pass a table name and an associative array
of field values. Same thing for an "insert" routine.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do this?
The only way to save this text off is to put it in a $_SESSION variable
or cookie, at least if you want to save it beyond the present page. Oh,
you could also store it in a database.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Jan 21, 2009 at 09:10:54PM +0100, Jochem Maas wrote:
> Paul M Foster schreef:
> > On Wed, Jan 21, 2009 at 11:37:07AM -0600, Jay Moore wrote:
> >
> >> This is a MySQL class I use and I wanted to get everyone's thoughts on
> >> how/if I can improve it.
o use exceptions, but I hate them. They're like
setjmp/longjmp calls in C, and they're a really headache to deal with.
If you don't use default or predone handlers, you have to put all kinds
of try/catch blocks around everything. They make for non-linear
execution, and I prefe
l the user to retype the date properly anyway.
There are reasons to use setjmp and longjmp in C as well, but I only
ever used them once, and later ripped out that code.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n't have this problem so much with methods and functions, since I
specifically engineer them to give me exact results. But I get it when
testing POST and GET variables from web pages.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. If you're using
GET instead of POST for the form then change "$_POST" above to "$_GET".
Every item in a form yields a POST or GET variable which PHP can read,
just as it did above.
There are alternate ways to do this, but the above is probably the
simplest for you.
I recommend "Programming PHP" an O'Reilly book as a reference for the
language.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
except make sure it tests for the GET
variable "section", like:
if ($_GET['section'] == 'home') ...
If you've programmed in other languages, PHP is a little difficult to
grasp, just because it has to deal with the HTTP protocol, and you're
embedding PHP in HTML pages. Otherwise its syntax is almost completely
C-like.
HTH,
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote:
> Paul M Foster wrote:
> >
> > In case this has yet to be answered to your satisfaction...
> >
> > Your page will *have* to reload when the user presses the button, but
> > the majority of content
On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote:
> Paul M Foster wrote:
> >
> > Please show me how *without Javascript* and *only with PHP* you can
> > change the content on a page interactively as the user described
> > *without* reloading the
ing to help.
Glad you found a solution (from Kevin).
Don't worry about the sniping on the list. A lot of programmer types can
get prickly with each other about details.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, and you've told it to use its make_coffee()
method, which does something or another. You can also make those
"methods" private so that code outside the object can't "see" them.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to
break at the whim of the browser. If you want exact layout (columns
lined up, etc.), the simplest solution is to use HTML tables.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Jan 28, 2009 at 02:40:55PM -0500, Stephen wrote:
> Paul M Foster wrote:
>> If you want exact layout (columns
>> lined up, etc.), the simplest solution is to use HTML tables.
>>
>>
>>
> The horror.
>
> Do not use tables for layout.
>
> Use C
his at you, would you have had a clue? I had
enough trouble just learning the proper syntax and library routines for
Dartmouth BASIC and Pascal, without having to deal with a lot of
"metaprogramming" stuff.
This is the problem when you get newbies asking questions on a list
whose members
x27;ve pointed out to O'Reilly,
and when in doubt I check the function documentation on the php.net
site.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, have a blast. But as you can see
here from other replies, tables are the simplest choice for a lot of
people who work with web pages all the time.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tely dispair of
trying to make it look as good in CSS as it does in tables. Even with
tables, I had more experimenting and colspans than you can imagine.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Jan 28, 2009 at 11:41:31PM +, Nathan Rixham wrote:
> Paul M Foster wrote:
>> On Wed, Jan 28, 2009 at 09:26:10PM +, Ashley Sheridan wrote:
>>
>>
>>
>>> I use CSS as much as possible, and it's second nature to me now to
>>> desig
cles if you don't have to.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
); from line to
> line commenting out everything below it...Oi ...is this ever going to get
> easier for me I often wonder...
Use Vim. ;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
roken, then the record becomes inactive. So,
> there's no reason to update. "Do, or don't do, there is no try." --
> Yoda
Actually, if I needed a history, I wouldn't do it with timestamp fields
in the table. I'd build a new file that contained the history. Maybe
w
nection every 3s to check
> data, get the data back and save into localhost database.
>
If you have control of the server, you can just set this up in a bash
script, using mysql commands, which connect to the remote and then then
local databases. I'm talking about cron running the sc
ySQL
and seen PostgreSQL speed up. And I've seen MySQL add full-fledged DBMS
features. So their capabilities have come closer and closer together.
But I believe PostgreSQL is still the superior choice for an
*enterprise* DBMS.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
's a key that
binds tables together, you can't change it without cascading problems.
That key is now in *at least* two places and must be changed
*everywhere*, and the DBMS normally won't let you do that. You could
add "cascade update" provisions into your tables, but why? Just use an
integer key, and you're away.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
number of
spaces in code when PHP is embedded in the HTML. My best guess is that
Apache substitutes blanks for all the non-printing PHP code in the file.
But that's just a guess.
How exactly are you managing to obtain the page in such a way that you
can test character codes and such?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tirely separated from presentation in a elegant way.
> >
>
> In a thread about performance you suggest Smarty? Really? :D
>
You know, I was gonna say something about that, but I figure I've
complained enough on list. I agree, though.
Paul
--
Paul M. Foster
--
PHP Gene
he server?
And how does a server "get" a cookie?
Is it a separate request made by the server to the client?
If the value I've asked the user for is *not* stored as a cookie, then
is it passed as part of the HTTP submission or what?
Thanks for any enlightenment on this.
Paul
back to them and say "Well,
> everyone just *knows* PHP is a significant player" -- that's not
> proof.
Perhaps a better question then might be how many IIS servers are there
out there compared to Apache. Apache servers uniformly support PHP, but
I think only IIS servers support AS
e in the near future or ever), you could solve this
another way. Make these "constants" into class variables. You could even
make them static if you like. No, it's not as clean as having them be
constants, and you'd have to type $this-> before using them, but it's an
alternative, in case you hadn't thought of it.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
fining/declaring variables and their storage methods before use I
think makes for more conscientious programmers. And pointers are an
education all on their own. ;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> but I don't see that it can pass the variables to it.
>
Use the system() command, and enclose both your command and its
parameters in a pair of single quotes, as:
system('mycmd -a alfa -b bravo');
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.
least one other MVC framework. What am I
doing wrong?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l URL, like:
http://example.com/graphics/my_portrait.gif
My casual observation seems to indicate that the former will load faster
than the latter. But has anyone done any benchmarking on it?
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
rewrite correctly for this to
> work properly.
mod_rewrite isn't involved. Apache has a "lookback" feature that "looks
back" through the URL until it finds an actual file it can execute,
which in this case is index.php. Unfortunately, it appears that Apache
believes
, in my case. We develop the pages on
an internal server, which has the URL http://pokey/mysite.com. When we
move the pages to the live server at mysite.com, all the URLs would have
to be rewritten. Ugh.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ges weren't being crafted in Dreamweaver,
where inserting links like that is a pain.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
L in the base
tag is specified as:
http://mysite.com/";>
and, for example, a graphic link is done this way:
It appears to override other considerations with regard to pathing.
I've already chosen an alternative solution, but I'll definitely keep
this in mind for future reference. Thanks
production pages would involve a heap of (dangerous) global
search-and-replace magic.
So specifying absolute links might be a bit much. I'm not happy with the
way DW handles this stuff, but I have to strike a balance between my
vim-handcoding-command-line method and my wife's
click-and-drag-gotta-be-GUI method.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Feb 16, 2009 at 08:49:06PM +, Stuart wrote:
> 2009/2/16 Paul M Foster :
> >
> > Agreed. But here's the real reason, in my case. We develop the pages on
> > an internal server, which has the URL http://pokey/mysite.com. When we
> > move the pages
On Tue, Feb 17, 2009 at 12:27:58PM +, Stuart wrote:
> 2009/2/17 Paul M Foster :
> > On Mon, Feb 16, 2009 at 08:34:22PM +, Stuart wrote:
> >
> >
> >
> >> This is your problem, you're not understanding where the paths are
> >> being
On Tue, Feb 17, 2009 at 11:22:32AM +, Stuart wrote:
> 2009/2/17 Paul M Foster :
>
> Maintaining identical development, staging and live environments is
> one of the key components of reliable, repeatable and streamlined
> development, testing and deployment, but if you
P one won't be selectable the way you want unless you put
radio buttons next to all the dates. And after all that, you'd still
have to do some pre-processing of it to limit selections to current date
and later.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e(__FILE__)
yields "/var/www/includes", and you just add "../header.php" to it,
you'd get: /var/www/includes../header.php, not the file you want. The
file you want is: /var/www/includes/../header.php. And in this case,
header.php actually resides in /var/www (one directory up from
/var/www/includes).
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
date("Y"));
>
> Well no, guess I didn't find it because that code above gives me
> this 1235109600
>
> What is that??
It's a *nix timestamp number. Give it to date() this way:
date('Y-m-d', $startday)
And you'll see the date it re
in, then the third. And so on. Now, if you stay with your exising
code, you could move your loop end to *above* this point, and simply
perform your file-open/loop/file-close operation once, after the loop
has terminated. That's probably faster than stopping inside each
iteration and writing a l
uot;; // uses
> $_SESSION['thisid']
>
> //but this does not..
> $updateSQL ="UPDATE `mytable` SET thetotal=$amt WHERE
> id=$_SESSION['thisid']";
Don't single quote values inside array brackets when the whole
expression is in double quotes. You
On Mon, Feb 23, 2009 at 01:39:51PM -0800, Daevid Vincent wrote:
> http://startuplessonslearned.blogspot.com/2009/01/why-php-won.html
>
I *like* the way this guy thinks.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
, that's the
way you do it in PostgreSQL; I assume MySQL uses the same mechanism.)
Also, I don't know that mysql_query() returns *false* on no rows. I
generally check that with mysql_num_rows(). Again, I don't know MySQL
that well. PostgreSQL only returns *false* if there's a pro
.
>
> I think, the listadmins from should blacklist
> .
Look more closely at the headers. There is spoofing going on here.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
schema.columns WHERE table_name =
> 'table_name'
>
> this might help with doing the same for M$Access?
>
This is the SQL standard way of doing this. Both MySQL and PostgreSQL
support it. Don't know about MSSQL.
Paul
--
Paul M. Foster
--
PHP General Mailing List (h
On Sat, Feb 28, 2009 at 06:54:25PM -0500, Andrew Ballard wrote:
> On Sat, Feb 28, 2009 at 6:08 PM, Paul M Foster
> wrote:
> > On Sat, Feb 28, 2009 at 12:41:12AM +, Ashley Sheridan wrote:
> >
> >> On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote:
> >
>
the same).
You might want to invest in a book like "PHP Cookbook" which has a great
deal of working code for you to look at and emulate. It's pretty much
all examples and their explanations.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
er. There are tons of these about. My
personal recommendation for about the lightest weight of these is
CodeIgniter (codeigniter.com). Being lightweight also allows you to look
at its code and easily understand what it's doing and why.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Mar 03, 2009 at 10:57:21AM -0500, PJ wrote:
> How does one enter back quotes from the keyboard?
Tell me you didn't seriously just ask that question.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ecause he won't
take the time to buy a book or carefully research an item on the web.
And FWIW, php.net has better documentation than that of any
other package I've ever seen. I keep a browser tab open to php.net at
all times.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http:/
cDos and pre-packaged
> prepared foods...
McDonald's is my *favorite* fast food! Are you saying there's something
less than healthy about it?
Sorry, I used to live in LA, and I had health food people up to here.
They were the sickest people I knew. So I took it as my personal mission
just want to have a copy of the website itself on the device,
you could either copy it to the document root of the webserver on the
machine, or mount it at a point within the doc root. Otherwise, the web
server won't see it as a website to serve up.
Paul
--
Paul M. Foster
--
PHP General Maili
http://php.net/goto
>
Someone would add gotos to a language *on purpose*?!
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
value which you already know.
What is the fascination with using concat_ws()? Just say:
$name = $first_name . ' ' . $last_name;
or
$name = "$first_name $last_name";
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Mar 07, 2009 at 05:52:55AM -0500, Robert Cummings wrote:
> On Sat, 2009-03-07 at 02:12 -0500, Paul M Foster wrote:
> > On Sat, Mar 07, 2009 at 11:29:41AM +1100, Clancy wrote:
> >
> > > On Fri, 6 Mar 2009 08:53:44 -0500, danbr...@php.net (Daniel Brown) wrote:
&g
On Sat, Mar 07, 2009 at 02:13:11PM +, Ashley Sheridan wrote:
>
> And spaces instead of tabs! That's heresy!
>
No, it's python. ;-}
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
reSQL. Can PDO be extended?
In any case, I just wrote my own driver class for each DB type, and then
a function which instantiates the appropriate driver with the
appropriate parameters.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;
>From the php.net manual for array_push():
Note: If you use array_push() to add one element to the array it's
better to use $array[] = because in that way there is no overhead
of calling a function.
But that's the only change I would make. Overall, I completely agree
with this philosophy.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, Mar 07, 2009 at 05:12:28PM -0500, Eric Butera wrote:
> On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster wrote:
> > On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
> >
> >
> >
> >
> >>
> >> PDO. :) Anything else is a waste
ides developers with a powerful alternative to
> > SQL that maintains flexibility without requiring unnecessary code
> > duplication.
> >
>
> Wow, a proprietary language that I get to learn on top of the two that
> do the job and that I already know! Bonus!
ROTFL!
Pa
ave regarding which framework seems
> to be the most promising?
>
Use CodeIgniter. It's about the lightest weight and relatively easy to
understand.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
difference?
The reference for the above is:
http://us2.php.net/manual/en/features.cookies.php#36058
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Mar 09, 2009 at 11:35:57PM -0400, APseudoUtopia wrote:
> On Mon, Mar 9, 2009 at 10:26 PM, Paul M Foster
> wrote:
> > This is in two parts. First cookies. I'm a little unclear on how they
> > work. From what I've read, cookies are stored by the browser. When a
> 'Helmut Schmidt', 'address' => '123 Anystrasse');
I want to stress that PHP is *not* a *visual* language. You have to sit
down with an editor and write it. Very unlike programs which allow you
to design tables using visual means.
Hope that helps.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
umor. Extra
kudos to Dan for setting the tone of the list. His replies are generally
very helpful, his expression precise, and he's usually not wrong.
(Dan, make the check out to... ;-)
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
last meatless meal she
tried.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing the input easier in Perl or
Python, where you don't have to deal with variable initialization as
much. And both also have APIs for MySQL and PostgreSQL. And I believe
both DBMSes can handle databases of this size.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ntation for ltrim():
http://us2.php.net/manual/en/function.ltrim.php
The string you're including as the second parameter to ltrim() is the
*characters* you want to trim on, not the *character pattern*. If you
think about it that way, it will make sense. Also one of the examples on
the r
1 - 100 of 704 matches
Mail list logo