13 jan 2009 kl. 22.38 skrev Merlin Morgenstern:
Hi there,
I am still facing trouble with pdflib and php 5. After hours of
research I found that I do have to install the pecl package. So I
decided to compile it into php staticly like described here:
http://www.php-resource.de/handbuch/insta
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 you (and
> they are pretty good), you'll probably do fine with it. It's about the
> lightest weight platform out t
Make it easy and store the date as a unix timestamp. Then it's a
simple testto do
If ((current timestamp - db timestamp) < 172,800 ){
echo '';
}
Conversely, you can use strtotime() to convert the date.
Bastien
Sent from my iPod
On Jan 14, 2009, at 10:36 PM, paragasu wrote:
i do have
i do have a mysql table with one date field.
what i want is to display and tiny icon (red new icon) so user will
notice it is a new post.
i am looking for the simplest solutions here.
i believe we can calculate whether the date is within two days of user
current time.
then we display an icon based
On Wed, Jan 14, 2009 at 03:50:25PM -0800, Daevid Vincent wrote:
>
>OMG, and don't get me started on ORM. What a bloat that is. The amount of
>query overhead is rediculous. All these stupid objects for even the
>simplest of 'glue tables'. Straight SQL, optimized for your query and th
Core files are what my plans include too.
Bastien
Sent from my iPod
On Jan 14, 2009, at 9:26 PM, "Kyle Terry" wrote:
On Wed, Jan 14, 2009 at 6:17 PM, Paul M Foster >wrote:
On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote:
Not to start a Holy War (as these "to framework" or
For what it's worth, you are on my good guys list.
Coming. From a Dba background I am in the camp of everything is a
trade off. Ease of use for speed, functionality for complexity and so
on.
My two cents: zend has an advantage because you can use the bits and
pieces without the need to ha
On Wed, Jan 14, 2009 at 6:17 PM, Paul M Foster wrote:
> On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote:
>
> >Not to start a Holy War (as these "to framework" or "not to framework"
> >debates often turn into), but I personally had a horrible experience
> with
> >using fr
On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote:
>Not to start a Holy War (as these "to framework" or "not to framework"
>debates often turn into), but I personally had a horrible experience with
>using frameworks. I was forced to use Symfony at my last job and it was so
On 14/1/09 07:56, Robert Cummings wrote:
Strip all tags except bold and italics. Then replace with
and with since the former tags are deprecated.
Actually, "b" and "i" have not been formally deprecated in any standard.
The closest thing to a prohibition on these elements is WCAG 1.0's
Chec
paragasu wrote:
one of my client says his company do have a program to test php code for common
programming security problem like sql injection etc
i am curious but he do not want to tell what the program is.
do this program exists? what is it?
https://chorizo-scanner.com/
http://securityscann
On Wed, Jan 14, 2009 at 5:17 PM, Daevid Vincent wrote:
>
>
> > > Lol, on your resumé page, the popup says you're not a Java man, but
> then
> > > the actual resumé says you are... :p
>
> No. I wrote Java for 3.5 years at WildTangent, a company I founded as
> employee #2 back in 1998, and left onc
one of my client says his company do have a program to test php code for common
programming security problem like sql injection etc
i am curious but he do not want to tell what the program is.
do this program exists? what is it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
> > Lol, on your resumé page, the popup says you're not a Java man, but then
> > the actual resumé says you are... :p
No. I wrote Java for 3.5 years at WildTangent, a company I founded as
employee #2 back in 1998, and left once I felt it was starting to become
sketchy and we had grown to over 25
On Wed, Jan 14, 2009 at 7:26 PM, Eric Butera wrote:
> On Wed, Jan 14, 2009 at 6:47 PM, Daevid Vincent wrote:
>> On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote:
>>
>>> On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote:
>>>
>>> > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings
>>> > wrote:
On Wed, Jan 14, 2009 at 6:17 PM, tedd wrote:
> At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote:
>>
>>
>> As others have said, use crypt().
>> http://php.net/manual/function.crypt.php has Example #2 Using crypt()
>> with htpasswd.
>
>
> Thanks, but that doesn't really solve my problem.
>
> You see,
On Thu, 2009-01-15 at 01:42 +0100, Michelle Konzack wrote:
> Hello Ashley,
>
> Am 2009-01-13 22:14:53, schrieb Ashley Sheridan:
> > Yeah. Now my development goes like this:
> >
> > 1. Design for Firefox
> > 2. Fix for Opera, Safari et al
> > 3. Fix for IE
> > But generally speaking
Am 2009-01-13 20:22:42, schrieb Daniel Brown:
> On Mon, Jan 12, 2009 at 14:30, Robert Cummings wrote:
> >
> > 2.0 is the new beta... what did you think Web 2.0 was all about?
>
> In Q3 2009, Microsoft is "improving" on that with Web 2.11 for Workgroups.
I had "W?? 3.11 for Workgroups" in 199
Hello Ashley,
Am 2009-01-13 22:14:53, schrieb Ashley Sheridan:
> Yeah. Now my development goes like this:
>
> 1. Design for Firefox
> 2. Fix for Opera, Safari et al
> 3. Fix for IE
> But generally speaking, if it works in Firefox, it'll most likely behave
> itself in everything exc
On Wed, Jan 14, 2009 at 6:47 PM, Daevid Vincent wrote:
> On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote:
>
>> On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote:
>>
>> > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings
>> > wrote:
>> > > On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wr
On Wed, Jan 14, 2009 at 4:06 PM, Ashley Sheridan
wrote:
> On Wed, 2009-01-14 at 15:47 -0800, Daevid Vincent wrote:
> > On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote:
> >
> > > On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera
> wrote:
> > >
> > > > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cumming
On Wed, 2009-01-14 at 15:47 -0800, Daevid Vincent wrote:
> On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote:
>
> > On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote:
> >
> > > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings
> > > wrote:
> > > > On Wed, 2009-01-14 at 17:01 -0500, Robert Cum
Hi,
I am Looking for a Senior Software Engineer to join our dynamic and growing
Internet-based company. The qualified candidate will expand our web-based
platform, building new features and products. You will effectively design,
develop, and deploy applications based on open-source technologie
On Wed, 2009-01-14 at 17:59 -0500, Paul M Foster wrote:
> On Wed, Jan 14, 2009 at 04:30:59PM -0500, John Corry wrote:
>
> > Well, bummer.
> >
> > I *seriously* need to divine a way to increase my efficiency both
> > immediately and for the long term as I maintain tomorrow the
> > applications I
On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote:
> On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote:
>
> > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings
> > wrote:
> > > On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote:
> > >> On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrot
Could it be that you tested the correct algorithm but didn't use the correct
salt or some other permutation to receive the same encoded result?
-TG
- Original Message -
From: tedd
To: Shawn McKenzie , php-general@lists.php.net
Date: Wed, 14 Jan 2009 18:17:35 -0500
Subject: Re: [PHP] Bas
2009/1/15 tedd
> At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote:
>
>>
>>
>> As others have said, use crypt().
>> http://php.net/manual/function.crypt.php has Example #2 Using crypt()
>> with htpasswd.
>>
>
>
> Thanks, but that doesn't really solve my problem.
>
> You see, I know the password and
tedd wrote:
At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote:
As others have said, use crypt().
http://php.net/manual/function.crypt.php has Example #2 Using crypt()
with htpasswd.
Thanks, but that doesn't really solve my problem.
You see, I know the password and I know the encoded result --
If anything this strengthens my point...
First of all, that is my PERSONAL site (notice it is my NAME), so it is
NOT enterprise or SaaS.
Second it uses the www.winlike.net Javascript FRAMEWORK (which I heavily
manipulated in PHP to make the menu dynamic, adding a tertiary menu
level and various
On Wed, 2009-01-14 at 18:17 -0500, tedd wrote:
> At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote:
> >
> >
> >As others have said, use crypt().
> >http://php.net/manual/function.crypt.php has Example #2 Using crypt()
> >with htpasswd.
>
>
> Thanks, but that doesn't really solve my problem.
>
> You
At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote:
As others have said, use crypt().
http://php.net/manual/function.crypt.php has Example #2 Using crypt()
with htpasswd.
Thanks, but that doesn't really solve my problem.
You see, I know the password and I know the encoded result -- what I
don'
On Wed, Jan 14, 2009 at 04:30:59PM -0500, John Corry wrote:
> Well, bummer.
>
> I *seriously* need to divine a way to increase my efficiency both
> immediately and for the long term as I maintain tomorrow the
> applications I build today.
>
> For the new-to-frameworks, is there a better/easier f
Lamp Lists wrote:
hi,
as far as I know (at least I was told so) html page will download faster then
the same page made with php getting the same info from mysql, right?
let's pretend we are building php/mysq based website of one football team.
there are pages of every player, about the team, g
From: Ashley Sheridan
To: Lamp Lists
Cc: php-general@lists.php.net
Sent: Wednesday, January 14, 2009 4:47:28 PM
Subject: Re: [PHP] HTML pages are faster then php?
On Wed, 2009-01-14 at 14:34 -0800, Lamp Lists wrote:
> hi,
> as far as I know (at least I was told
On Wed, 2009-01-14 at 14:34 -0800, Lamp Lists wrote:
> hi,
> as far as I know (at least I was told so) html page will download faster then
> the same page made with php getting the same info from mysql, right?
>
> let's pretend we are building php/mysq based website of one football team.
> there
hi,
as far as I know (at least I was told so) html page will download faster then
the same page made with php getting the same info from mysql, right?
let's pretend we are building php/mysq based website of one football team.
there are pages of every player, about the team, games etc.
in admin a
On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote:
> On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings
> wrote:
> > On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote:
> >> On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote:
> >> > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent
> wrote
On Wed, Jan 14, 2009 at 2:22 PM, Frank Stanovcak
wrote:
> This is mostly to make sure I understand how sessions are handled
> correctly.
> As far as sessions are concerned the variable data is stored on the server
> (be it in memory or temp files), and never transmitted accross the net
> unless ou
On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings wrote:
> On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote:
>> On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote:
>> > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote:
>> > > http://daevid.com
>> >
>> > "It appears your browser does
This is mostly to make sure I understand how sessions are handled correctly.
As far as sessions are concerned the variable data is stored on the server
(be it in memory or temp files), and never transmitted accross the net
unless output to the page? So this means I should be able to store the
On Wed, 2009-01-14 at 17:03 -0500, Robert Cummings wrote:
> On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote:
> > On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote:
> > > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote:
> > > > http://daevid.com
> > >
> > > "It appears your brows
On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote:
> On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote:
> > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote:
> > > http://daevid.com
> >
> > "It appears your browser does not support some of the advanced
> > features this site requir
On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote:
> On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote:
> > http://daevid.com
>
> "It appears your browser does not support some of the advanced
> features this site requires."
>
> That is pretty enteprisey! ;D
I got the same message... 200
On Wed, 2009-01-14 at 13:39 -0800, Daevid Vincent wrote:
> Not to start a Holy War (as these "to framework" or "not to framework"
> debates often turn into), but I personally had a horrible experience
> with using frameworks. I was forced to use Symfony at my last job and
> it was so cumbersome and
On Wed, 2009-01-14 at 13:39 -0800, Daevid Vincent wrote:
> Not to start a Holy War (as these "to framework" or "not to framework"
> debates often turn into), but I personally had a horrible experience
> with using frameworks. I was forced to use Symfony at my last job and
> it was so cumbersome and
On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote:
> http://daevid.com
"It appears your browser does not support some of the advanced
features this site requires."
That is pretty enteprisey! ;D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
It is over head, but it caches the execution plan for multiple runs of the
script. So different users with different data will use the same cached
query on the database. Saving processing time. It also prevents SQL
injection on the fly because you are indicating what data type each place
holde
On Wed, Jan 14, 2009 at 4:30 PM, John Corry wrote:
> Well, bummer.
>
> I *seriously* need to divine a way to increase my efficiency both
> immediately and for the long term as I maintain tomorrow the
> applications I build today.
>
> For the new-to-frameworks, is there a better/easier framework to
John Corry wrote:
For the new-to-frameworks, is there a better/easier framework to use
that will streamline the development process from the beginning?
I've been using my own I developed from the ground up for the past
couple years, but have recently looked at cakePHP and I think it might
b
Not to start a Holy War (as these "to framework" or "not to framework"
debates often turn into), but I personally had a horrible experience
with using frameworks. I was forced to use Symfony at my last job and it
was so cumbersome and slow to do even the simplest things. The whole MVC
thing can be
Well, bummer.
I *seriously* need to divine a way to increase my efficiency both
immediately and for the long term as I maintain tomorrow the
applications I build today.
For the new-to-frameworks, is there a better/easier framework to use
that will streamline the development process from the begin
VamVan wrote:
On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo wrote:
Hello,
I've been using PHP and Smarty for several years now and I am happy with
this "division" of data from presentation. With this philosophy in mind, i
am a bit perplexed as to how to handle the text on my sites. That is,
On Tue, Jan 13, 2009 at 6:49 PM, Daniel Kolbo wrote:
> Hello,
>
> I've been using PHP and Smarty for several years now and I am happy with
> this "division" of data from presentation. With this philosophy in mind, i
> am a bit perplexed as to how to handle the text on my sites. That is, the
> t
On Wed, Jan 14, 2009 at 3:36 PM, wrote:
> I've been reading about these great new 'frameworks' for PHP development.
>
> The most similar experience I have so far is using PEAR/Smarty in
> application development.
>
> I am becoming very interested in adding one (or more) of these frameworks to
> m
I've been reading about these great new 'frameworks' for PHP development.
The most similar experience I have so far is using PEAR/Smarty in
application development.
I am becoming very interested in adding one (or more) of these frameworks
to my work existence.
I'm leaning toward the Zend
One way to balance the author's need to have nice-looking output, and your need
to keep the content/html under control is to provide the authors with a variety
of template layouts with varying number/placement/sizes of images and blocks of
text.
Build a half-dozen of them, allow only ASCII t
On Wed, 2009-01-14 at 15:24 -0500, Frank Stanovcak wrote:
> "Ashley Sheridan" wrote in message
> news:1231962521.3613.13.ca...@localhost.localdomain...
> > On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
> >> Hello,
> >> I am trying to get the following to work:
> >> "Select Netid from Users wher
tedd wrote:
>> What it is depends on what encryption routines you have installed.
>>
>> The algorithm to authenticate detects the algorithm based on the hash.
>>
>> 32-char : MD5
>> $1$ : SHA-1
>> $2$ : SHA-2
>> etc.
>> (Apologies if I got my tokens/algorithms wrong)
>>
>> If you just toss
"Ashley Sheridan" wrote in message
news:1231962521.3613.13.ca...@localhost.localdomain...
> On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
>> Hello,
>> I am trying to get the following to work:
>> "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'"
>> Netid is a string type.
>> No
2009/1/14 tedd
> What it is depends on what encryption routines you have installed.
>>
>> The algorithm to authenticate detects the algorithm based on the hash.
>>
>> 32-char : MD5
>> $1$ : SHA-1
>> $2$ : SHA-2
>> etc.
>> (Apologies if I got my tokens/algorithms wrong)
>>
>> If you just t
On Wed, Jan 14, 2009 at 2:34 PM, tedd wrote:
>> What it is depends on what encryption routines you have installed.
>>
>> The algorithm to authenticate detects the algorithm based on the hash.
>>
>> 32-char : MD5
>> $1$ : SHA-1
>> $2$ : SHA-2
>> etc.
>> (Apologies if I got my tokens/algorit
>
> Robert Cummings wrote:
>
>> On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote:
>>
>>
>>> Phpster wrote:
>>>
>>>
What about stripping out all the 'nuances' and just reducing it to just
the text where you then control the display and using your templates and
css?
Bast
There are a number of online tools for creating the proper htaccess and
htpasswd files for basic auth. Here's a couple (forget which one I used
last time I needed it, both have 'visited' links in my browser):
http://www.wmtips.com/tools/htpasswd-generator/
http://www.htaccesstools.com/htaccess
On Wed, 2009-01-14 at 10:11 -0800, Kyle Terry wrote:
> On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry wrote:
>
> >
> >
> > On Wed, Jan 14, 2009 at 9:11 AM, wrote:
> >
> >>
> >> > Doesn't anybody use prepared statements these days? It even helps MySQL
> >> > AND Oracle cache an execution plan...
>
On Wed, 2009-01-14 at 11:17 -0500, MikeP wrote:
> Hello,
> I am trying to get the following to work:
> "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'"
> Netid is a string type.
> No matter where of if I put the quotes, I still get array[phpCAS] not the
> value.
> If there is anyt
What it is depends on what encryption routines you have installed.
The algorithm to authenticate detects the algorithm based on the hash.
32-char : MD5
$1$ : SHA-1
$2$ : SHA-2
etc.
(Apologies if I got my tokens/algorithms wrong)
If you just toss MD5s in there, it should work, I think, i
On Wed, 2009-01-14 at 07:48 -0500, Alice Wei wrote:
>
> > Subject: RE: [PHP] PHP unlink Permission Error
> > From: a...@ashleysheridan.co.uk
> > To: aj...@alumni.iu.edu
> > CC: php-general@lists.php.net
> > Date: Tue, 13 Jan 2009 17:07:34 +
> >
> > On Tue, 2009-01-13 at 11:49 -0500, Alice Wei
On Wed, 2009-01-14 at 09:08 -1000, Daniel Kolbo wrote:
> Robert Cummings wrote:
> > On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote:
> >
> >> Phpster wrote:
> >>
> >>> What about stripping out all the 'nuances' and just reducing it to
> >>> just the text where you then control the di
Robert Cummings wrote:
On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote:
Phpster wrote:
What about stripping out all the 'nuances' and just reducing it to
just the text where you then control the display and using your
templates and css?
Bastien
Sent from my iPod
On Jan 13, 20
What it is depends on what encryption routines you have installed.
The algorithm to authenticate detects the algorithm based on the hash.
32-char : MD5
$1$ : SHA-1
$2$ : SHA-2
etc.
(Apologies if I got my tokens/algorithms wrong)
If you just toss MD5s in there, it should work,
At 12:51 PM -0500 1/14/09, Andrew Ballard wrote:
On Wed, Jan 14, 2009 at 12:36 PM, Stuart wrote:
2009/1/14 tedd :
Let's say that I don't want to use the htpasswd command from the UNIX shell
to generate an encoded password -- how else can I create an
encoded password
string that would wor
On Wed, Jan 14, 2009 at 9:20 AM, Edmund Hertle <
edmund.her...@student.kit.edu> wrote:
> > Edmund Hertle schrieb:
> >
> > Hey,
> >> I've just discovered the ArrayObject class, but it seems to not be well
> >> documented, so here is my problem:
> >>
> >> You can use ArrayObject::append() to add a
On Wed, Jan 14, 2009 at 10:07 AM, Kyle Terry wrote:
>
>
> On Wed, Jan 14, 2009 at 9:11 AM, wrote:
>
>>
>> > Doesn't anybody use prepared statements these days? It even helps MySQL
>> > AND Oracle cache an execution plan...
>>
>> Forgive me if I'm wrong, but:
>>
>> Caching an execution plan for a
On Wed, Jan 14, 2009 at 9:11 AM, wrote:
>
> > Doesn't anybody use prepared statements these days? It even helps MySQL
> > AND Oracle cache an execution plan...
>
> Forgive me if I'm wrong, but:
>
> Caching an execution plan for a prepared statement that is run only once in
> the script is just ov
On Wed, Jan 14, 2009 at 12:36 PM, Stuart wrote:
> 2009/1/14 tedd :
>> Let's say that I don't want to use the htpasswd command from the UNIX shell
>> to generate an encoded password -- how else can I create an encoded password
>> string that would work in a .htaccess file using basic authentication
2009/1/14 tedd :
> Let's say that I don't want to use the htpasswd command from the UNIX shell
> to generate an encoded password -- how else can I create an encoded password
> string that would work in a .htaccess file using basic authentication?
AFAIK it's an MD5 hash, nothing more complicated th
Hi gang:
Let's say that I don't want to use the htpasswd command from the UNIX
shell to generate an encoded password -- how else can I create an
encoded password string that would work in a .htaccess file using
basic authentication?
Cheers,
tedd
--
---
http://sperling.com http://anci
> Doesn't anybody use prepared statements these days? It even helps MySQL
> AND Oracle cache an execution plan...
Forgive me if I'm wrong, but:
Caching an execution plan for a prepared statement that is run only once in the
script is just overhead, no?
Or can it actually re-use the same
At 2:18 PM -0600 1/13/09, Micah Gersten wrote:
Jochem Maas wrote:
switch (true) {
case ($x === $y):
// something
> break;
This is a misuse of the switch statement. Switch is meant to compare
values to a single variable as stated on the manual page:
http://us
On Wed, Jan 14, 2009 at 8:41 AM, MikeP wrote:
> Thanks, Thats the kind of help I was looking for.
> Mike
> wrote in message
> news:20090114162142.65944.qm...@o2.hostbaby.com...
> >
> > You can only interpolate ONE level of array or object indirection in a
> > string.
> >
> > WORKS:
> > "... $foo
> The charset: latin1 and the collation: latin1_swedish_ci.
Trivia quiz at a MySQL presentation at my Chicago PHP User Group a few year ago
comes in handy!
The defaults for MySQL are actually latin1_swedish as that is the native
language of the original developer, (?Monty Widenus?)
This
Thanks, Thats the kind of help I was looking for.
Mike
wrote in message
news:20090114162142.65944.qm...@o2.hostbaby.com...
>
> You can only interpolate ONE level of array or object indirection in a
> string.
>
> WORKS:
> "... $foo[x] ..."
> "... $foo->x ..."
>
> FAILS:
> "... $foo[x][y] ..."
> "
On Wed, Jan 14, 2009 at 11:34 AM, MikeP wrote:
>
> ""Eric Butera"" wrote in message
> news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com...
>> On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote:
>>> Hello,
>>> I am trying to get the following to work:
>>> "Select Netid from Users where
""Eric Butera"" wrote in message
news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com...
> On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote:
>> Hello,
>> I am trying to get the following to work:
>> "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'"
>> Netid is a string
On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote:
> Hello,
> I am trying to get the following to work:
> "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'"
> Netid is a string type.
> No matter where of if I put the quotes, I still get array[phpCAS] not the
> value.
> If there is anyth
In olden times, of PHP 3, you could for sure use ->x and [x] interchangeably,
as an Object then was little more than a C struct with a couple functions
tacked on, as was an array.
I think PHP 3 Object may actually have been implemented as a PHP array with
some additional C functions on it, c
You can only interpolate ONE level of array or object indirection in a string.
WORKS:
"... $foo[x] ..."
"... $foo->x ..."
FAILS:
"... $foo[x][y] ..."
"... $foo->x->y ..." //almost for sure it fails, never tried...
You can use curly braces in side a string to evaluate something:
WOR
I am trying to get the following to work:
"Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'"
Netid is a string type.
No matter where of if I put the quotes, I still get array[phpCAS] not the
value.
Maybe try this :
$q = 'Select Netid from Users where Netid = "' . $_SESSION[p
Try
session_start();
$sql = "SELECT Netid FROM User WHERE
Netid='".$_SESSION['phpCAS']['user']."'";
-Mensagem original-
De: MikeP [mailto:mpel...@princeton.edu]
Enviada em: quarta-feira, 14 de janeiro de 2009 14:17
Para: php-general@lists.php.net
Assunto: [PHP] Quotes in querys
Hello,
> Edmund Hertle schrieb:
>
> Hey,
>> I've just discovered the ArrayObject class, but it seems to not be well
>> documented, so here is my problem:
>>
>> You can use ArrayObject::append() to add a new value to the array, but is
>> there also a method to add a new key and value?
>>
>> And I know tha
Hello,
I am trying to get the following to work:
"Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'"
Netid is a string type.
No matter where of if I put the quotes, I still get array[phpCAS] not the
value.
If there is anything I still have trouble with after all these years its
quot
On Wed, 14 Jan 2009 13:19:31 +0200, Thodoris wrote:
> Variable_name Value
> character_set_client utf8
> character_set_connection utf8
> character_set_databaselatin1
> character_set_filesystem binary
> character_set_results utf8
> character_set_server latin1
> ch
Edmund Hertle schrieb:
Hey,
I've just discovered the ArrayObject class, but it seems to not be well
documented, so here is my problem:
You can use ArrayObject::append() to add a new value to the array, but is
there also a method to add a new key and value?
And I know that I could extend the cla
On Wed, Jan 14, 2009 at 6:18 AM, Edgar da Silva (Fly2k) <
silva.ed...@gmail.com> wrote:
> Did you try:
>
> $a = new ArrayObject;
> $a['sometest'] = 'somevalue';
>
its also worth pointing out, the above syntax is available b/c ArrayObject
implements the ArrayAccess interface.
http://www.php.net/~
Did you try:
$a = new ArrayObject;
$a['sometest'] = 'somevalue';
?
On Wed, Jan 14, 2009 at 10:42 AM, Edmund Hertle wrote:
> Hey,
> I've just discovered the ArrayObject class, but it seems to not be well
> documented, so here is my problem:
>
> You can use ArrayObject::append() to add a new valu
> Subject: RE: [PHP] PHP unlink Permission Error> From:
> a...@ashleysheridan.co.uk> To: aj...@alumni.iu.edu> CC:
> php-general@lists.php.net> Date: Tue, 13 Jan 2009 17:07:34 +> > On Tue,
> 2009-01-13 at 11:49 -0500, Alice Wei wrote:> > > > > > > > > Subject: RE:
> [PHP] PHP unlink Permiss
Hey,
I've just discovered the ArrayObject class, but it seems to not be well
documented, so here is my problem:
You can use ArrayObject::append() to add a new value to the array, but is
there also a method to add a new key and value?
And I know that I could extend the class and write my own metho
Only allow a few markup tags, strip_tags() allows a limited lIst to be
kept
Bastien
Sent from my iPod
On Jan 13, 2009, at 11:18 PM, Daniel Kolbo wrote:
Phpster wrote:
What about stripping out all the 'nuances' and just reducing it to
just the text where you then control the display
What's the output of:
SHOW VARIABLES LIKE 'character_set%'
Variable_name Value
character_set_clientutf8
character_set_connectionutf8
character_set_database latin1
character_set_filesystembinary
character_set_results utf8
character_set_serverlatin1
charact
On Wed, 14 Jan 2009 11:33:25 +0200, Thodoris wrote:
>> On Tue, 13 Jan 2009 15:51:01 +0200, Thodoris wrote:
>>
>>
>>> Hi gang,
>>> I am generating a spreadsheet using the contents of a mysql table. I
>>> guess that there is something in the data that causes iconv used in the
>>> module's s
1 - 100 of 106 matches
Mail list logo