On 27 May 2010 17:57, la...@garfieldtech.com 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 specific parent
On 27 May 2010 18:21, la...@garfieldtech.com 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
change and it's a bug
(starttime) / 60.
That's the difference in minutes.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
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 peter.e.l...@gmail.com wrote:
On 25 May 2010 15:55, Bruce Gilbert webgu...@gmail.com wrote:
Here
with:
* database encoding
* database connection encoding
* php internal encoding
* output encoding
Messing up just *one* of these will give bad output - so you need to
make sure that all of them are aligned.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http
On 21 May 2010 10:47, Lester Caine les...@lsces.co.uk 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 database and server is a rather complex issue, you're
better to
use an existing tool like htmlpurifier.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net
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 keep things simple, that is: if you
want to mess about with postfix/exim you'll see days or months go by).
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
consider using form tokens, so you don't
get caught by double submits and cross site form posts, etc.
Regards
Peter
--
hype
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
/hype
to this besides any two-step sophisticated trick
like case changing?
Thanks!
Use better regexes: either match for word endings or use a delimiter
in your markers (i.e. ###BOLD### instead of BOLD).
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com
On 18 May 2010 12:35, Andre Polykanine an...@oire.org 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 change the
letters
On 18 May 2010 13:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote:
On 18 May 2010 12:35, Andre Polykanine an...@oire.org wrote:
Hello Peter,
Hm... I see I need to specify what I'm really doing. Actually, I need
to change
On 18 May 2010 13:43, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Tue, 2010-05-18 at 13:46 +0200, Peter Lind wrote:
On 18 May 2010 13:32, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Tue, 2010-05-18 at 13:09 +0200, Peter Lind wrote:
On 18 May 2010 12:35, Andre Polykanine
my comma or semicolon? :)
Your dbconnect function is not returning a value, defaulting to a null
return value. That means the or statement runs the die statement -
even though you're connecting.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com
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 in
again.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
($r) {
return $r['result'];
}
function goodResult($r) {
$r2 = array (
'isMetaForFunc' = true,
'result' = $r
);
return $r2;
}
After a quick glance, I can't actually see any modifications to $wm in
this code.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
guessing you don't
have any spaces inside the data you're dealing with.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http
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 a lot - but you do have to do
some manual work.
Regards
Peter
--
hype
as they are much more
efficient.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
the job really well.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On 12 May 2010 17:07, Paul M Foster pa...@quillandmouse.com 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
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http
complex.
In short: using mod_rewrite for url rewriting is not overkill - it's
using the proper tool for the job.
Regards
Peter
--
hype
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
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.
Not to mention: if it runs, it can be broken.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http
Option 1 with option 2 as a sidedish. Option 3 is a nightmare in my
experience - a proper MVC approach is much better to work, maintain
and assure the security of.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com
...
How do I get at bar2? I tried 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
--
hype
WWW: http
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
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http
On 9 May 2010 23:56, Nathan Nobbe quickshif...@gmail.com wrote:
On Sun, May 9, 2010 at 3:25 PM, Peter Lind peter.e.l...@gmail.com wrote:
On 9 May 2010 23:21, Daniel Kolbo kolb0...@umn.edu wrote:
Hello,
I've defined a __call() method inside a class. Within the __call()
method (after
On 8 May 2010 00:39, Nathan Nobbe quickshif...@gmail.com wrote:
hmm, both the strings seem to work fine on my laptop:
+1. Have no problem with either string
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
On 6 May 2010 10:47, Auto-Deppe C. Hänsel c.haen...@auto-deppe.de 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
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
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
-results.html
and the responses.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
viewing a
product.
26. if(isset($_GET['ProductID']))
27. $this-mSelectedProduct = (init)$_GET['ProductID'];
pretty sure (init) is not a valid cast ...
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http
for
calculations, then convert back to 12 hour am/pm format in PHP?
Consider the DateTime class, might suit your needs.
http://dk2.php.net/manual/en/class.datetime.php
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos
));
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 INTEGRITY_CONST_UNIQUE in the array, not
Pg_Error::INTEGRITY_CONST_UNIQUE
Regards
Peter
--
hype
WWW: http://plphp.dk / http
the
class, I'd use self::YOUR_CONSTANT
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
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
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
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
--
hype
WWW: http
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 effect they have on a user.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http
On 27 April 2010 16:07, Paul M Foster pa...@quillandmouse.com wrote:
On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote:
On 27 April 2010 15:36, Paul M Foster pa...@quillandmouse.com wrote:
On Tue, Apr 27, 2010 at 10:42:03AM +0200, Gary . wrote:
How do you guys handle errors
On 27 April 2010 16:24, Paul M Foster pa...@quillandmouse.com wrote:
On Tue, Apr 27, 2010 at 04:13:20PM +0200, Peter Lind wrote:
On 27 April 2010 16:07, Paul M Foster pa...@quillandmouse.com wrote:
On Tue, Apr 27, 2010 at 03:41:04PM +0200, Peter Lind wrote:
On 27 April 2010 15:36, Paul M
On 27 April 2010 18:21, tedd tedd.sperl...@gmail.com 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 users
of $isfile, then it is
working. Quoting of $isfile does not work too.
What have a overseen?
var_dump($isfile);
Don't make assumptions of what the value is, just check it.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr
the amount
of content you want, then use one of the tools to repair and clean the
html.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing
On 26 April 2010 13:23, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote:
On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
I've been thinking about this problem for a little while, and the thing
is, I can think
as *nix)
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
(it's also directed at getting Zend
certified, so it's covering the stuff you need to know for that, not
connected things).
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
php.net/curl should be able to do what you want.
file_get_contents with a proper stream context should also work (have
a look at functions like http://dk.php.net/manual/en/context.http.php
)
Regards
Peter
On 23 April 2010 17:18, Robert P. J. Day rpj...@crashcourse.ca wrote:
i'm sure
use them
for everything (i.e. 5 magic calls per request will do very, very
little to your app, whereas 1000 per request will have some
significance on a site with lots of users).
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http
On 23 April 2010 18:26, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-04-23 at 12:25 -0400, Adam Richardson wrote:
On Fri, Apr 23, 2010 at 12:21 PM, Peter Lind peter.e.l...@gmail.com wrote:
On 23 April 2010 18:10, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
I think
;
}
}
--
Peter van der Does
GPG key: E77E8E98
IRC: Ganseki on irc.freenode.net
Twitter: @petervanderdoes
WordPress Plugin Developer
Blog: http://blog.avirtualhome.com
Forums: http://forums.avirtualhome.com
Twitter: @avhsoftware
--
PHP General Mailing List (http://www.php.net
On Thu, 22 Apr 2010 10:49:11 -0400
Peter van der Does pvanderd...@gmail.com wrote:
My take on it:
$Items=1252398;
$MaxInGroup=30;
for ($x=$MaxInGroup; $x1;$x--) {
$remainder=$Items % $x;
// Change 17 to the max amount allowed in the last group
if ($remainder == 0
or not a 'reply-to'
is used.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On 22 April 2010 17:05, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Thu, 2010-04-22 at 17:06 +0200, Peter Lind wrote:
On 22 April 2010 12:14, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
I believe Dan Brown mentioned a very good reason why this is not as
simple an issue as just
On 21 April 2010 04:25, Alice Wei aj...@alumni.iu.edu wrote:
Well, from my experience with Ubuntu, looks like that it does not do that.
Unless, I am doing it wrong?
So did you try using the 'smtp' backend and passing all the connection
details rather than 'mail'?
--
hype
WWW: http://plphp.dk
On 21 April 2010 12:38, David McGlone da...@dmcentral.net wrote:
Maybe it's not how the list is set up, but instead how people are
replying to the list.
One would think that in a tech world where most programmers/developers
try to minimize the workload and a good programmer is lazy is seen
as
On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
Why change the way that has been around for years and adopted by
multiple e-mail lists?
It feels like it's more problem to change the way for thousands of
users just to satisfy a couple of few.
David was venting based on a
On 21 April 2010 15:41, Dan Joseph dmjos...@gmail.com wrote:
When you hit reply all, just take out all the other addresses and leave the
list one in there. The list was setup like this years ago on purpose, and
they've stated in the past they don't want to change it..
And waste time every
*
email list have it's settings changed a bit ... I start to wonder if
you've considered things from both sides.
Regards
Peter
--
hype
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
On 21 April 2010 20:09, Michelle Konzack linux4miche...@tamay-dogan.net wrote:
Hello Peter Lind,
Hi Michelle
Am 2010-04-21 15:47:54, hacktest Du folgendes herunter:
And waste time every single time you post to the list ... why do
people become programmers/developers again? To end creating
look for the
log files to see if the mail server has sent your mail properly or is
experiencing problems (those may not feed back into PHP).
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
Consider checking out http://php.net/gettext - it's the set of
functions in PHP for i18n.
With regards to language switching, you should consider using a url
hierarchy for it, instead of just serving all pages with changing
content.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
Most, if not all, mail servers keep log files. You should look for the
log files to see if the mail server has sent your mail properly or is
experiencing problems (those may not feed back into PHP).
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com
On 19 April 2010 10:30, Gary . php-gene...@garydjones.name wrote:
Should I be able to do this:
class X
{
const FOO = 'foo';
const FOOBAR = X::FOO . 'bar';
...
}
?
Because I can't. I get syntax error, unexpected '.', expecting ',' or
';'. I assume this is because the constants are
On 19 April 2010 14:24, Gary . php-gene...@garydjones.name wrote:
On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote:
On 19 April 2010 10:30, Gary wrote:
Should I be able to do this:
class X
{
const FOO = 'foo';
const FOOBAR = X::FOO . 'bar';
...
}
So no, you shouldn't be able to do
://pl2.php.net/_
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On 19 April 2010 12:54, Andre Polykanine an...@oire.org wrote:
Hello Peter,
Regarding the URL switching suggested by you and Michiel, how do I do
this if I have a rather complicated .htaccess file? For instance, a
blog entry URL is formed as follows:
http://oire.org/menelion/entry/190/ which
On 19 April 2010 16:18, Gary . php-gene...@garydjones.name wrote:
On Mon, Apr 19, 2010 at 2:37 PM, Peter Lind peter.e.l...@gmail.com wrote:
On 19 April 2010 14:24, Gary wrote:
On Mon, Apr 19, 2010 at 10:36 AM, Peter Lind wrote:
So no, you shouldn't be able to do that.
Okay. Why not?
Hate
.
// Manipulate the data in $row if necessary.
fputcsv($fp, $row);
}
?
An interesting idea. I'd do:
echo implode(',', $row);
regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
On 19 April 2010 17:40, Andrew Ballard aball...@gmail.com wrote:
On Mon, Apr 19, 2010 at 11:14 AM, Peter Lind peter.e.l...@gmail.com wrote:
On 19 April 2010 17:00, Andrew Ballard aball...@gmail.com wrote:
On Mon, Apr 19, 2010 at 9:45 AM, Manolis Vlachakis
1. $save=split([|;],$listOfItems
a question of: is any other part of
the system getting used against me.
Regards
Peter
--
hype
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
/hype
--
PHP General Mailing List (http
an HTML email which would have the email reader
interpret that code correctly
Bastien
Another option would be to use mysql_real_escape_string and make sure
that your code and the database are using utf-8. Then when the email
is sent, make sure that uses utf-8 as well.
Regards
Peter
--
hype
WWW
Javascript is client-side - only way to detect it is to have a page
send back information (post/get). What might work easiest is to have
jquery look for a given cookie upon page render, and if it doesn't
find it, then do an ajax call to the server. On the server side,
initiate a session for the
On 16 April 2010 13:54, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
On Fri, 2010-04-16 at 12:50 +0100, Paulo-WORK wrote:
Hello and thanks for any replies that this message may get.
I have a issue to solve regarding PHP.
My website relies heavlly on jquery and does not dowgrade properly.
There's a limit to how deep var_dump goes, at least if you're using
xdebug. Compare the output with that of print_r which is not limited
in the same way.
On 16 April 2010 16:15, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
I'm seeing some strange behaviour with var_dump. Is there a limit to
On 13 April 2010 15:20, Merlin Morgenstern merli...@fastmail.fm wrote:
Hello everybody,
I have form where users enter data to be saved in a db.
How can I make php save the form data into a session before the user leaves
the page without pressing the submit button? Some members leave the page
On 13 April 2010 17:27, Paul M Foster pa...@quillandmouse.com wrote:
On Tue, Apr 13, 2010 at 03:20:23PM +0200, Merlin Morgenstern wrote:
Hello everybody,
I have form where users enter data to be saved in a db.
How can I make php save the form data into a session before the user
leaves the
, bad ports, etc.
Along these lines: there's a chance that sending a mail from yourself,
to yourself, through PHP like this, will cause mail servers to think
it's spam. For testing email sending, normal scenarios are better
(i.e. send an email to another account).
Regards
Peter
--
hype
WWW: http
On 13 April 2010 00:04, Gary gwp...@ptd.net wrote:
For those that were looking to see a solution, this is what I have come up
with. It was pointed out on another board (MySQL) that inserting multiple
in one script is probably prohibited because of security reasons.
What I did was open the
On 9 April 2010 12:20, Rene Veerman rene7...@gmail.com wrote:
lolz :)) u try to be nice, and this is what u get?!?! :-D
Rene, it's nice of you to post messages on the availability of some OS
tools. However, you should also be aware that it's a minority of
people on this list that use those
On 9 April 2010 22:20, Merlin Morgenstern merli...@fastmail.fm wrote:
This sounds like the best solution to me. The only problem is that my regex
knowledge is pretty limited. The command:
RewriteRule ^(.+) /subapp_members/search_user.php
The above rule will try to redirect everything to
On 9 April 2010 23:08, Merlin Morgenstern merli...@fastmail.fm wrote:
Am 09.04.2010 22:58, schrieb Peter Lind:
On 9 April 2010 22:20, Merlin Morgensternmerli...@fastmail.fm wrote:
This sounds like the best solution to me. The only problem is that my
regex
knowledge is pretty limited
On 8 April 2010 16:30, David Otton phpm...@jawbone.freeserve.co.uk wrote:
On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
The structure is pretty easy to understand, however I'm not able to
solve this. Could you tell me why I'm not able to run this code.
Your else has a
On a related note: does anyone know why
php -r echo date('Y-m-d H:i:s', strtotime('a'));
happily outputs a valid timestamp? And why all other letters work as
well (but only one character)? I'm sure there's a good reason for it,
it just completely escapes me right now :)
Regards
Peter
--
hype
On Sun, 04 Apr 2010 17:46:19 -0600, Nathan Rixham nrix...@gmail.com
wrote:
Larry Garfield wrote:
Hi folks. Somewhat philosophical question here.
I have heard, although not confirmed, that the trend in the Java world
in the
past several years has been away from constructors. That is,
On Sat, 03 Apr 2010 08:58:44 -0600, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Sat, 2010-04-03 at 10:29 -0400, tedd wrote:
Hi gang:
Here's the problem.
I have 184 HTML pages in a directory and each page contain a
question. The question is noted in the HTML DOM like so:
p
No javascript's getElementByID() won't work here. As question is a
class, not an ID. But like what was mentioned here, you can use
getElementByClass() with Opera, and that will work.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, because Opera is pretty much leading the way with its HTML5
support. Not even Firefox supports as much as Opera does.
Thanks,
Ash
http://www.ashleysheridan.co.uk
Opera 10.10 is a very nice version, but 10.50 could be quite slow with
some web pages.
I still remember that once
Why don't you just use REGEX? I don't know any possibility to easily
process contents which are not valid XML/XHTML just because there's no
library to load such stuff (but put me in right there).
I'm not an expert of REGEX, but I think the following would do it:
Hi
You could replace the class with id and then go on with JavaScript.
A possible better way are regular expressions...
Greetz
Piero
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, and jquery is hosted on Microsoft CDN, don't
I think Tedds main reason not to use Javascript is that he needs it to
be done on the server rather than the client machine.
ps. please use bottom posting on the list.
Thanks,
Ash
http://www.ashleysheridan.co.uk
But he also mentioned that he wanted to avoid copy and paste... it does
On Sat, 03 Apr 2010 09:21:17 -0600, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
s, first browser to have tabs, first to have that
odd homepage with thumbnails of y
Talking about Opera's 'speed dial... I downloaded safari yesterday (which
I didn't like last time I used it), it now has
var_dump( array( true , 12 , php already does this ) );
array(3) {
[0]= bool(true)
[1]= int(12)
[2]= string(21) php already does this
}
:)
Yeah. But this feature of PHP is a boon if used carefully and a curse if
careless. You can get AMAZING results if you're not careful to
Somejavascript engine already support GetElementByClass, for example
Opera does.
My example shows how, namely:
document.getElementById(question).innerHTML;
will return the value within the class.
Cheers,
tedd
In your original post, you said the data you had was:
p class=question
Sort of.
Like I said, the folling will work:
document.getElementById(question).innerHTML;
While you are using a getElementById, which returns an ID, but adding
.innerHTML will return the class value.
Try it.
Cheers,
tedd
No, this will not work, if it appeared working, please re-check
It might have worked in Internet Explorer, as for a while that browser
got confused over the class and id if two different elements on a page
had the same class and id values.
Thanks,
Ash
http://www.ashleysheridan.co.uk
IE and Opera were the two I tested with.
--
Using Opera's
?php
// here is where you load a single file or change to iterate over a
// directory of files
$oDomDoc = DOMDocument::loadHTMLFile('./tedd.html');
// here is where you search for the question sections of each file
$oDomXpath = new DOMXPath($oDomDoc);
$oNodeList =
On Sat, 03 Apr 2010 11:30:36 -0600, Nathan Rixham nrix...@gmail.com
wrote:
them in a google code project or suchlike.
They'll obviously never be as fast as Java/C but they do allow for
static typing of collections using primitive types
That will be wonderful.
--
Using Opera's revolutionary
201 - 300 of 1823 matches
Mail list logo