I could do, or do you think I'm
> seeing problems where there are none?
Use htmltidy or htmlpurifier to clean up things. I.e. grab the amount
of content you want, then use one of the tools to repair and clean the
html.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http:
On 26 April 2010 13:23, Ashley Sheridan wrote:
>
> On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote:
>
> On 26 April 2010 12:52, Ashley Sheridan wrote:
> > I've been thinking about this problem for a little while, and the thing
> > is, I can think of ways of d
On 26 April 2010 18:58, Michelle Konzack wrote:
> Hello Pete,
>
> Am 2010-04-26 17:04:32, hacktest Du folgendes herunter:
>> Is it possible that the space is a new-line (or a carriage-return) ?
>
> grmpf! -- That it was...
>
>> preg_replace('/\s+$/','',$FILE);
>
> Works now!
Consider a trim,
r without confusing. There's
nothing worse than "This didn't work, sorry" - why didn't it work??
Was it my fault? Can I get it to work somehow?
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.fl
other part of the block, I receive so many
> echo's as iterations the while do ( this is logical ). However I don't
> understand why the echo is printed above the while even when I put it
> after the while and out of the while's block.
>
Check your html for broken html table code.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that, I'd get
mighty annoyed with the software, and after a while would definitely
look for alternatives. Whether or not there's a coding problem, you
have to look at the situation from the point of the user: a complete
failure with no information is like a BSOD/TSOD ... and we all know
the
On 27 April 2010 16:07, Paul M Foster wrote:
> On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote:
>
>> On 27 April 2010 15:36, Paul M Foster wrote:
>> > On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote:
>> >
>> >> How do you guy
On 27 April 2010 16:24, Paul M Foster wrote:
> On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote:
>
>> On 27 April 2010 16:07, Paul M Foster wrote:
>> > On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote:
>> >
>> >> On 27 April 2010 1
On 27 April 2010 18:21, tedd wrote:
> At 4:31 PM +0200 4/27/10, Peter Lind wrote:
>>
>> While I love to rant at stupid users, the truth is probably that
>> programmers are the ones who should take courses in how users think.
>> In the end, if I fail to understand my u
uniqueness constraint violated',
> Pg_Error::getMessage(Pg_Error::INTEGRITY_CONST_UNIQUE));
> and I can't see what I've done wrong :(
>
In your code snippet, you do not declare
Pg_Error::INTEGRITY_CONST_UNIQUE - and equally to the point, in the
class you only use I
n't be any problems using a classes constants in the definition
of an array in the same class. However, to avoid possible extra work
down the line, I wouldn't use Pg_Error::YOUR_CONSTANT inside the
class, I'd use self::YOUR_CONSTANT
Regards
Peter
--
WWW: http://plphp.dk / http://pli
gt; I did something like this in VBA, but I want to create something for PHP.
>>
>> How can extract an am or pm from the input string, convert to 24 hours for
>> calculations, then convert back to 12 hour am/pm format in PHP?
>>
Consider the DateTime class, might suit your needs.
http
r single letter: "g" or "h,k" or "r,s,t" or whatever - all the same
> result.
>
This was discusses a little while ago, have a look at
news.php.net/php.general/303839/Logical-reason-for-strtotime-east-and-strtotime-west-returningvalid-results.html
and the respon
ng the middle tier object
> 24. $this->mBoCatalog = new BoCatalog();
> 25. //if ProductID exists in the query string, we're viewing a
> product.
> 26. if(isset($_GET['ProductID']))
> 27. $this->mSelectedProduc
On 6 May 2010 10:47, Auto-Deppe C. Hänsel wrote:
> Hi guys and girls,
>
> okay, this is a dumbnut question I wouldn't bother asking but I really
> did hit a spot now where I am totally wedged up in my head and can't think
> straight anymore... so the, I bet easy, answer to my question escapes
d rather have it in UTF-8. But
> utf8_de/encode won't help me there, I'm afraid.
>
http://dk2.php.net/manual/en/function.mb-convert-encoding.php might be of help.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://
On 8 May 2010 00:39, Nathan Nobbe wrote:
>
> hmm, both the strings seem to work fine on my laptop:
>
+1. Have no problem with either string
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchs
ied everything, based on an xpath from
> Firebug (Firefox plugin), but kept getting NULL.
>
try //table//font - that should give you all the font elements in
table elements. Given your layout, you're then looking for
$list->item(3)
Regards
Peter
--
WWW: http://plphp.dk / http
e same
object is going to result in ... your __call() method getting called
again. You need to map the $method to whichever class methods you
*actually* want to call, instead of blindly trying to reissue the
call.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www
On 9 May 2010 23:56, Nathan Nobbe wrote:
> On Sun, May 9, 2010 at 3:25 PM, Peter Lind wrote:
>>
>> On 9 May 2010 23:21, Daniel Kolbo wrote:
>> > Hello,
>> >
>> > I've defined a __call() method inside a class. Within the __call()
>> > meth
st
>> Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
>>
>
>
> I have to ask, why do you want to do that? Wouldn't it be easier to
> offer your application as a system that only you host. That way, the
> end-user never gets to see your PHP code.
&
tact page.
> Far easier to keep everything a bit more modular. That way, if you need
> to update something, you update only a small part of the site rather
> than some huge core file.
>
> But, if your needs are even more simple, say it's just a very small
> brochure website y
it doesn't.
I doubt anyone is proposing the "one script with all classes and
functions" approach. Several files is obviously a preferable method.
How you structure the code is completely different though: do you
allow a user to run blog.php directly or do you funnel everything
throu
; somesite.com/scriptname/var1/var2/var3
>
> that seems to work well with no use of the rewrite module.
>
And why wouldn't you want to use mod_rewrite? It's an extremely
powerful tool that does the job really well.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: htt
Output looks pretty typical for something encrypted/obfuscated. As the
script will run, it needs to unpack itself ... so you can write
automated unpackers for this kind of thing if you want.
Best go with Phpsters advice of the contract, you'd be a lot better
off (assuming the court system works).
you're asking then.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 12 May 2010 17:07, Paul M Foster wrote:
>
> Because your public internet server disables its use.
>
And once more I'm reminded of just how happy I am with my VPS and my
dedicated server.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedi
for rewriting and it does it well. Doing the same job in
PHP is likely to use more resources and be more complex.
In short: using mod_rewrite for url rewriting is not "overkill" - it's
using the proper tool for the job.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.d
to match is dynamic or in a
dynamic string. When you know what the output will be and can match
it, the str* functions are much better as they are much more
efficient.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/
ses :(
>
Don't rely on IP addresses staying the same for a user, it's not safe
in any way and not needed anyway. Karls method is probably the best
bet - just remember to record "last accessed time" so anyone not
accessing for more than 15-20 minutes will succeed if trying to log
gt; ));
> } else return chaseToReference($array[$path[0]], array_slice($path, 1));
> } else {
> return goodResult($array);
> }
> }
>
> function result(&$r) {
> return $r['result'];
> }
>
> function goodResult(&$r) {
> $r2
ctually what you are doing with "data". The browser may be just
> deleting the +. Not positive.
>
> & lastname="+ lastname +"
>
> needs to be
>
> &lastname="+lastname+"
>
As it's javascript, those spaces are not in string: they'
You need to remove the space after & (you're constantly inserting
blank spaces in your string for no reason) as I'm guessing you don't
have any spaces inside the data you're dealing with.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.l
is, to most people, means coming up with a meaningful way of naming
files and classes so you can parse the class name and then know where
to grab the file from (Zend naming for instance:
Zend_Db_Table_Abstract gets parsed to Zend/Db/Table/Abstract.php). So
no, you don't have to stress the server
Unable to select
> database:".mysql_error());
>
>
> }
> ?>
>
> that will not work on my rss feed. But it does work on my main page which
> uses the dbconnect script. The only error that I'm getting is the one set in
> my dbconnect call... "Could not con
7;');
>>
>> echo preg_replace
>> ($patterns, $replacements, $text);
>> ?>
>>
>> Output:
>> We want to replace > with the <>tag> and with
>> the
>>
>> Look what happend with BOLD.
>>
>> Is there an
On 18 May 2010 12:35, Andre Polykanine wrote:
> Hello Peter,
>
> Hm... I see I need to specify what I'm really doing. Actually, I need
> to change the letters in the text. It's a famous and ancient crypting
> method: you divide the alphabet making two parts, then you ch
On 18 May 2010 13:32, Ashley Sheridan wrote:
>
> On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote:
>
> On 18 May 2010 12:35, Andre Polykanine wrote:
> > Hello Peter,
> >
> > Hm... I see I need to specify what I'm really doing. Actually, I need
> >
On 18 May 2010 13:43, Ashley Sheridan wrote:
>
> On Tue, 2010-05-18 at 13:46 +0200, Peter Lind wrote:
>
> On 18 May 2010 13:32, Ashley Sheridan wrote:
> >
> > On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote:
> >
> > On 18 May 2010 12:35, Andre
ouble to read!
>
> Regards,
> Ferdi
>
Easiest is (if you're on *nix) to setup an MTA like postfix or exim to
relay emails from the localhost. Then get a good mail library like
Swiftmailer and point that to the local MTA. Typically, that's about
the setup you need to do (if you
should consider using form tokens, so you don't
get caught by double submits and cross site form posts, etc.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
-
"text/javascript"',
> 'language="vbscript\"',
> 'type="text/vbscript"',
> 'language="vbscript"',
> 'type="text/tcl"',
> "error_reporting\(0\)",//Most hacks I've seen make certai
ot *just* that PHP isn't handling utf8 perfectly. Encoding
between database and server is a rather complex issue, you're dealing
with:
* database encoding
* database connection encoding
* php internal encoding
* output encoding
Messing up just *one* of these will give bad output -
On 21 May 2010 10:47, Lester Caine wrote:
> Peter Lind wrote:
>>>
>>> The problem here is that PHP still does not know how to handle UTF8
>>> > properly
>
>> It's not*just* that PHP isn't handling utf8 perfectly. Encoding
>> between dat
do the job:
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff
Otherwise, just do strtotime(endtime) - strtotime(starttime) / 60.
That's the difference in minutes.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.co
uot;])/60)
> . "";
>
No. Assuming that your timestamp is of the -mm-dd HH:ii:ss form,
you need to do (strtotime(["submit_timestamp"]) -
strtotime($row["login_timestamp"]))/60.
Regards
Peter
>
> On Tue, May 25, 2010 at 10:01 AM, Peter Lind wrote
ng at. The first is the null value
you're getting, which will invalidate the whole thing. The second
problem is that you were looking for output along the lines of "60
minutes" but you're using date() which as the second parameter expects
a unix timestamp - not two timestamps subtra
On 25 May 2010 21:50, Bruce Gilbert wrote:
> yea, not sure why my Query isn't returning a value though? If I don't
> use date(), what should I use?
The output of strtotime() is an int - specifically a number of
seconds. Subtract two number of seconds from each other and what do
you get? Furthermo
ernative I'm missing that
> doesn't suck? What do most people do to deal with this trainwreck?
>
Personally, I think this issue stems from a wrong way of thinking
about methods and overriding them. You're either not documenting the
overriding methods properly or overriding met
On 27 May 2010 17:57, la...@garfieldtech.com wrote:
> On 5/27/10 10:43 AM, Peter Lind wrote:
>
>> You're overriding the function. IDEs should *not* show the parent
>> documentation, because the parent function does *not* get called. It
>> only gets called if you do a
On 27 May 2010 18:21, la...@garfieldtech.com wrote:
> On 5/27/10 11:13 AM, Peter Lind wrote:
>
>>> I'm overriding the method because I want to change the *implementation*.
>>> The *interface* of it, which is documented in the docblock, should not
>>> chang
don't. It's downright stupid to do
so, because it's a huge risk for very little gain. 3) farm out risks
like these to companies that specialize in dealing with them - you
will with 100% certainty not be able to do as good a job as these.
The question to ask is not: how to store cr
fill in the details on a monthly basis?
If 1) then the above points apply and you should not store the data,
period. If 2) then I would assume the situation is somewhat different
- though, not knowing the laws from the US I wouldn't really know.
Regards
Peter
--
WWW: http://plphp.dk / http:
On 1 June 2010 15:58, Paul M Foster wrote:
> On Tue, Jun 01, 2010 at 09:52:54AM +0200, Peter Lind wrote:
>
>> Just wondering: seems there's a bit of a misunderstanding going on
>> here. Are you talking about storing credit card information in a way
>> such
On 1 June 2010 17:33, Ashley Sheridan wrote:
> On Tue, 2010-06-01 at 16:31 +0100, Richard Quadling wrote:
>
>> $re1 = '/^[a-z]++$/i';
>> $re2 = '/^[a-z ]++$/i';
>>
>>
>>
>> --
>> -
>> Richard Quadling
>> "Standing on the shoulders of some very clever giants!"
>> EE : http://www.experts-exchang
/line 40
You're lacking the starting delimiter '/'
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
task, but there's no
way around it.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ions.info/ or any of the numerous other
sites with regex info :)
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To
ch anything. Also, ( and $
> have a special meaning in regex, so should be escaped to avoid any
> confusion or problems.
>
( and $ have no special meaning inside square brackets - you don't
need to escape them there.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
Linke
ou sure this is what is giving you the error, as people are using
> this fine in their examples on the manual page for empty()
>
Empty only works on variables, not return values from functions.
If you're checking the return value from a function, just do if
($class->method()
's
getting hit more than other forms (and you should possibly see other
equally interesting signs, such as referrer). Also ... if you're
letting users specify an email address to send to as well as content
and you don't make sure to authenticate users, you're really asking to
get abu
2010/6/7 Raymond Irving :
> Thanks Nisse. This works great!
>
> I just wish the HTML DOM parser could just ignore the contents of the
>
> still encourage you to avoid enclosing variables in double-quotes
>> unnecessarily. (And integers in single-quotes for that matter.)
>>
>> Paul
>>
>> --
>> Paul M. Foster
>>
>
>
> The obvious way around this would be to include some sort
On 8 June 2010 16:53, Ashley Sheridan wrote:
>
> On Tue, 2010-06-08 at 16:44 +0200, Peter Lind wrote:
>
> On 8 June 2010 16:38, Ashley Sheridan wrote:
> > On Tue, 2010-06-08 at 10:35 -0400, Paul M Foster wrote:
> >
> >> On Tue, Jun 08, 2010 at 09:38:
or_prepend_string = ""
> 391
> 392 ; String to output after an error message.
> 393 ;error_append_string = ""
> 394 error_append_string = ""
>
Did you check the html_errors directive?
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: h
On 12 June 2010 11:23, Peter Lind wrote:
> On 12 June 2010 01:17, Daevid Vincent wrote:
>> I'm trying to clean up some code and have been looking at error_log output
>> and they all look like this:
>>
>> [11-Jun-2010 23:04:54] In
>> /var/www/my_notificat
gt; parse the input file and separate the queries... which is difficult since the
> syntax can be quite complex.
>
Use mysqli - it supports running multiple queries at once.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couc
On 23 June 2010 08:53, Tanel Tammik wrote:
> Hi,
>
> is there a vulnerability with using $_SERVER['REMOTE_ADDR'] in sql queries?
>
With any and all input to sql queries: escape the input. Then you
don't have to ask the question.
Regards
Peter
--
WWW: http:/
e
web-app you've compromised security (anyone compromising the server
has automatic access as well).
You're essentially looking at the old problem: if it runs it can be
broken. You can only try to make it as hard as possible but there's
nothing foolproof.
Regards
Peter
--
rking scripts. If someone roots the server with everything up and
running, there's really very little you can do.
This is getting offtopic, though, if memory serves. I believe PCI has
some strict requirements on how security should be implemented. You'll
have to follow those and
ent to the app server
3. It's encrypted and sent to the DB server
Where does the data go after step 3? Does encrypted data go back out
to the app server? In which case, what's to stop me from exploiting
the web-server and then sending *bad data/commands* to the app server?
But maybe I
e isset snippet is better, though if you care
about finding null values you need to go the route of array_keys().
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r note, I would try to sanitise that $_GET variable a bit, as
> it could lead to issues down the line later. Maybe limit the string to
> patterns you expect for an image URL.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
Might be quicker to do with a .htaccess file - you can avoid loading php at all.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 25 June 2010 20:59, Ashley Sheridan wrote:
>
> On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote:
>
> On 25 June 2010 19:35, Ashley Sheridan wrote:
> > On Fri, 2010-06-25 at 19:31 +0200, Karl Cifius wrote:
> >
> >> Hi,
> >>
> >> I'm m
On 25 June 2010 21:02, Ashley Sheridan wrote:
>
> On Fri, 2010-06-25 at 21:01 +0200, Peter Lind wrote:
>
> On 25 June 2010 20:59, Ashley Sheridan wrote:
> >
> > On Fri, 2010-06-25 at 20:57 +0200, Peter Lind wrote:
> >
> > On 25 June 2010 19:35, Ashley Sheridan
quot;. I was
>>> stunned that anyone would do such a thing. And I just confirmed it was
>>> this fellow.
>>>
>>> Paul
>>>
>>> --
>>> Paul M. Foster
>>>
>>
>>
>> Yes, he did this also to me in a personal reply to a m
verlaying the TemplateMonster-ish site at that
>> address?
>>
>>
>> --
>>
>> UNADVERTISED DEDICATED SERVER SPECIALS
>> SAME-DAY SETUP
>> Just ask me what we're offering today!
>> daniel.br...@parasane.net || danbr...@php.net
>> http://www
at you're looking for, check PHPClasses, quite a
few things there as well, though nothing really great last I checked.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
XHTML 1.0 specification, you
> will find 'name' is no longer listed as a standard attribute. It is all
> but obsolete and has been replaced by 'id' almost everywhere. They
> actually recommend you put both attributes into tags with identical
> values until your applicat
On 1 July 2010 15:02, Bob McConnell wrote:
> From: Peter Lind
>
>> On 1 July 2010 14:38, Bob McConnell wrote:
>>> From: Adam Richardson
>>>
>>>> On Wed, Jun 30, 2010 at 9:16 PM, David Mehler
>
>>> wrote:
>>>>
>>>>>
On 1 July 2010 15:28, Peter Lind wrote:
> On 1 July 2010 15:02, Bob McConnell wrote:
>> From: Peter Lind
>>
>>> On 1 July 2010 14:38, Bob McConnell wrote:
>>>> From: Adam Richardson
>>>>
>>>>> On Wed, Jun 30, 2010 at 9:16 PM, Dav
; preg_match('/^\d{2}$/',
> $_POST['month']))?$_POST['month']:'01';
>
> which would set a default month value of '01' if there was either no
> month value sent or it wasn't a 2-digit value.
>
Not sure I'd bother with a preg the
On 1 July 2010 23:50, Ashley Sheridan wrote:
>
> On Thu, 2010-07-01 at 23:48 +0200, Peter Lind wrote:
>
> On 1 July 2010 23:40, Ashley Sheridan wrote:
> > On Thu, 2010-07-01 at 14:26 -0700, Don Wieland wrote:
> >
> >> In one of my forms, I am building a variable
specific use-case,
> which is not the same as the ID attribute at all.
>
> I never said the forms themselves would have the same name or id, but
> elements within them might have the same name, and two forms might have
> elements with the same name. If the ID were to be a substitute for
Is there any way to apply multiple filters to one field using
filter_var_array?
Basically I have an email field which I want to sanitize and validate.
The docs and any sites I find only tell how to apply one filter at a
time using filter_var_array.
Regards,
Peter Lafferty
Software
On 2 July 2010 19:52, Adam Richardson wrote:
> On Fri, Jul 2, 2010 at 12:28 PM, wrote:
>
>> "Bob McConnell" wrote on 07/02/2010 08:53:30 AM:
>>
>> > > Arguments against using/dismissing the "name" attribute in tags is
>> > > simply nonsense.
>> >
>> > This discussion began when I pointed out tha
On 2 July 2010 20:03, Adam Richardson wrote:
> On Fri, Jul 2, 2010 at 1:59 PM, Peter Lind wrote:
>
>> On 2 July 2010 19:52, Adam Richardson wrote:
>> > On Fri, Jul 2, 2010 at 12:28 PM, wrote:
>> >
>> >> "Bob McConnell" wrote on 07/02/2010
ER JOIN
> ".$cfgtableContent." WHERE ".$cfgtableCategories.".postCat = ".$cat." ORDER
> BY ".$cfgtableContent.".postNumber DESC";
>
> ?>
>
> with no change...
>
There's no join clause in your query, i.e. nothing to tie the two
ta
lems *does* "php -l" pick up? I can't find a description
>> anywhere.
>>
>
>
> According to the man page for php, the -l flag only checks the syntax,
> so a warning wouldn't be displayed, as technically it's not a
> show-stopper. Maybe some sort o
ariable old string is 44 and new string is 39
> On the Mac, the length of varialbe old string is 44 and new string is 38.
>
> This is all happening inside of FileMaker... I will test the PHP code inside
> a web browser on both plaforms to see what happens.
>
> --Rick
>
Windows u
a string can span more than one line and have variables
>>> in
>>>> it. It can even be used with code, so HEREDOC is again useless for most
>>>> situations:
>>>>
>>>> $foo = "
>>>> Hello $name,\n
>>>> \n
>
gt;
> $stmt = $DB->prepare('"UPDATE '. TBL_USERS .' SET
> date_last_action=:updateDate WHERE id=:userId');
Try without the extra quotation mark before UPDATE.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plin
ain user object, will there still be an increase of
> performance?
>
It's unlikely to cause you performance problems unless you've got a
huge amount of traffic - and then you could probably fix your problems
easier than refactoring classes.
Personal anecdote: I've worked on classe
ned to the company
> $clients = $company->get_clients();
>
> // Get all projects joined to the client
> $projects = $clients->get_projects();
>
> ?
>
Have you looked at things like Doctrine2?
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www
On 22 July 2010 15:49, Sebastian Ewert wrote:
> Peter Lind wrote:
>>
>> It's unlikely to cause you performance problems unless you've got a
>> huge amount of traffic - and then you could probably fix your problems
>> easier than refactoring classes.
>>
&
looks simple enough but that
> installation is brutal. Any other suggestions? I'm thinking of
> sticking with good ol' hand coding and a few helper classes.
>
Let me repeat myself: did you have a look at Doctrine2?
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
ve you a lot of answers.
>
> --Shreyas
PHP is serverside so no, it can't help here. When using xhtml strict,
your only option is to use JS for opening links in new windows.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Co
rstr and
strpos - returning a bool is not faster than returning an integer.
Would have to check the actual php source to see how the two are
implemented to see if there's any real difference that might make a
difference in speed.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn:
On 27 July 2010 11:46, Ashley Sheridan wrote:
>
> On Tue, 2010-07-27 at 11:35 +0200, Peter Lind wrote:
>
> On 27 July 2010 11:27, Ashley Sheridan wrote:
> > On Tue, 2010-07-27 at 09:30 +0200, Gary wrote:
> >
> >> I know there are a number of possible w
ed-case for classes and camelcase for
functions, e.g. MyClass and myFunction(). Still, that's really just
personal taste and whatever makes you happy is the thing to go with.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Cou
1001 - 1100 of 1883 matches
Mail list logo