dots are called an umlaut.
Paul
FWIW, the whole letters ÄäÖöÜü are called Umlaute (umlauts).
The two dots above *these* letters are Umlautzeichen (umlaut marks).
But two dots above an e or i are called Trema (diacritic mark).
Marcus
--
PHP General Mailing List (http://www.php.net
Jim Lucas wrote:
Parham Doustdar wrote:
Hello there,
I've been asked to create something like the tables you usually see,
where the headers are actually links and when you click the links, the
table gets sorted based on the header. Are there any classes that you
know of that would do the
Tony Marston wrote:
You cannot do this in a separate class as it requires action in both the
presentation (UI) and data access layers, and a single class is not allowed
to operate in more than one layer.
You can, but you shouldn't if you want to write your classes according
to the MVC
aveev wrote:
?
function generate_id($num) {
$start_dig = 4;
$num_dig = strlen($num);
$id = $num;
if($num_dig = $start_dig) {
$num_zero = $start_dig - $num_dig;
for($i=0;$i $num_zero; $i++) {
$id =
A.a.k wrote:
is there any alternative to header() for redirect users?
As far as I know there isn't.
Is the header-error the first error on the page? If not, the other error
message itself is the reason for the header-error and will be solved if
you solve the other error.
--
PHP General
Skip Evans wrote:
Hey all,
I have a SQL requirement I'm not quite sure how to compose.
I have two tables, shows, and shows_dates. It's a one to many
relationship where there is a single entry in shows and multiple entries
in shows_dates that list each date and time for a play production
Tom Worster wrote:
there's a control structure i wish php had: a simple block that you can
break out of, e.g.
As Maarten pointed out you could use a function. Another alternative is
to use Exceptions which might be the most proper way to do it.
--
PHP General Mailing List
Robert Cummings wrote:
On Wed, 2009-05-06 at 12:56 +0200, Marcus Gnaß wrote:
Tom Worster wrote:
there's a control structure i wish php had: a simple block that you can
break out of, e.g.
As Maarten pointed out you could use a function. Another alternative is
to use Exceptions which might
Robert Cummings wrote:
On Wed, 2009-05-06 at 22:23 +0200, Marcus Gnaß wrote:
Robert Cummings wrote:
On Wed, 2009-05-06 at 12:56 +0200, Marcus Gnaß wrote:
Tom Worster wrote:
there's a control structure i wish php had: a simple block that you can
break out of, e.g.
As Maarten pointed out
Troy Oltmanns wrote:
I have the code below being used to rifle through a list of available
categories and create select options for them. The code is being used to
query the database and compare the product category to the current
iteration, if there's a match, then add selected code so the
Paul M Foster wrote:
On Fri, Apr 10, 2009 at 09:01:14AM -0400, Bob McConnell wrote:
From: Paul M Foster
Here's a hairbrained idea I was kicking around. I object to the idea
of
including 15 or 30 files in a PHP application just to display one page
on the internet. It
Marcus Gnaß wrote:
like with programming questions in general.
Should have read my own post before sending! ;) Should be programming
languages!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Matthew Croud wrote:
Hello,
First post here, I'm in the process of learning PHP , I'm digesting a
few books as we speak.
I'm working on a content heavy website that provides a lot of
information, a template system would be great and so i've been looking
at ways to create dynamic data with a
programming in Pascal, not in C. If today I had to learn programming as
such I would definitively opt for Python! My choice for learning OOP
would be Python or even better Java cause you don't have the choice to
do it in a procedural way.
Marcus
--
PHP General Mailing List (http://www.php.net
Nathan Rixham wrote:
Project: PHP Common Objects and Datatypes
Has anything been setup for project COD-pieces yet? I like this name! ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nathan Rixham wrote:
Marcus Gnaß wrote:
Nathan Rixham wrote:
Project: PHP Common Objects and Datatypes
Has anything been setup for project COD-pieces yet? I like this name! ;)
Actually, yes it has - the project, well working group, has been
called voom.
Sounds fine too! ;)
If you're
getting started:
http://blog.somabo.de/2008/02/php-on-re2c.html
thanks
marcus
Sunday, March 2, 2008, 11:21:34 PM, you wrote:
RFC: REPLACE THE FLEX-BASED SCANNER WITH AN RE2C [1] BASED LEXER
Situation:
The current flex-based lexer depends on an outdated and unsupported flex
version
Andrés Robinet wrote:
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus
Sent: Friday, January 18, 2008 4:51 PM
To: php-general@lists.php.net
Subject: [PHP] Expand variable in comparison
Hi!
Is there any way to get the following snippet returning a true
Andrés Robinet wrote:
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marcus
Sent: Friday, January 18, 2008 9:56 PM
To: php-general@lists.php.net
Subject: [PHP] Re: Expand variable in comparison
Andrés Robinet wrote:
-Original Message-
From: news [mailto
Hello Derick,
to stick with our announced plan, can we release this in 2007?
marcus
Thursday, December 20, 2007, 1:43:18 PM, you wrote:
Hello!
I packed PHP 4.4.8RC1 today, which you can find here:
http://downloads.php.net/derick/
Please test it carefully, and report any bugs in the bug
Anders Norrbring wrote:
Is there a good way to detect in a script if it's called locally from
command line, or via a remote browser?
Check out http://www.php.net/manual/en/function.php-sapi-name.php.
Greetings
m.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello
I have a soap call that returns something like;
Result from a print_r();
stdClass Object ( [getCategoryTreeReturn] = Array ( [0] = stdClass Object
( [iId] = 1 [sName] = Cars Motorbikes [iParentId] = 0 [iTreeCount] =
114302 [iLocalCount] = 0 [aSubCats] = Array ( [0] = stdClass Object (
I need to output that as
Category: X
Sub-category: 1
Sub-category: 2
..
..
linking by id's to parent id's just like in a database.
-Original Message-
From: Roman Neuhauser [mailto:[EMAIL PROTECTED]
Sent: Friday, December 22, 2006 12:18 AM
To: Marcus
Cc: php
1. Set option HEADER true for the login part in Curl
2. Take the output of login page, you will notice Set-cookie:
name=cookie_value; parametres returned from the header.
3. Preg match or use (explode,str_replace etc) to get those names and
values. Prepare them for the next Curl fetch
4. Make a
it properly.
The original question wasn't whether it was a good idea or not, but
that it didn't act as the docs said it did. In the mean time, you
might like to know that this behaviour IS apparently considered
correct and a patch to documentation has been committed.
Marcus
--
Marcus Bointon
by pointing out there's a problem in the
first place? It's a lot more constructive than being rude.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/
--
PHP General Mailing List (http://www.php.net
(4) {
[A:private]=
NULL
[B]=
NULL
[c:protected]=
NULL
[A:private]=
NULL
}
[c]=
NULL
}
Reference preserved. It's not like I care about PHP4, nor am I doing
a deep conversion.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http
On 24 Sep 2006, at 22:07, Ray Hauge wrote:
Maybe you missed it, but he did submit a bug report:
http://bugs.php.net/?id=38935
He just wanted to see if other people had run into a similar
situation before
submitting the bug... from my understanding. I don't want to put
words in
Marcus
the properties (member
variables) of that object as the array's elements. The keys are the
member variable names.
It seems that's not quite true.
How can I stop it doing this? Looks a bit buggy to me.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL
with multiple public and multiple private variables. If
the format
of the array keys stays the same, then you should have your answer.
In my real code I do have multiple fields all exhibiting this
behaviour. I'll report it.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http
:private]=
string(0)
[field3:protected]=
string(0)
}
array(3) {
[field1]=
string(0)
[Myclassfield2]=
string(0)
[*field3]=
string(0)
}
So it seems protected fields behave differently too.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net
probably be using the object itself anyway.
Bug report is here: http://bugs.php.net/?id=38935
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/
--
PHP General Mailing List (http://www.php.net
by
adding 'private' and 'protected' array properties containing field
names for each access level to the resulting array. OTOH, that would
break what you'd expect count() to deliver after the conversion. I
really think it should just do what's it's meant to, and no more.
Marcus
--
Marcus Bointon
it is
preferable to using reflection (unless it's a relic from PHP4?).
What's next - appending a creation time to integers when they're cast
into strings?
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/
--
PHP
{
//It's a public property
$propArray[$key] = $value;
}
}
return $propArray;
}
Works nicely for me.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http
traces alone makes it worthwhile IMHO.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on
a single page; This is a very good way of making a browser go very
slowly and eat lots of memory.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/
--
PHP General Mailing List (http://www.php.net
networking disabled in my network
control panel, and my PHP is configured with --disable-ipv6. How can
I force it to return only ipv4 addresses? Is there an ini setting
somewhere?
Thanks,
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are going to add a flag
so that one can specify whether write support is enabled or not.
--
Best regards,
Marcusmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello D.,
SimpleXML was never ever designed to have methods. If you prefer methods
then you probably might be better with xmlReader or Dom. Either way i *may*
do something about it. Right now it perfectly fits my needs :-)
best regards
marcus
Friday, May 12, 2006, 5:42:23 PM, you wrote
was writte an expected, just it was grey and not red. What do I
have to do to make it read and why was it grey?
Marcus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
... (cached) yes
checking for gdFontCacheShutdown in -lgd... (cached) yes
checking for gdFreeFontCache in -lgd... (cached) yes
checking for gdNewDynamicCtxEx in -lgd... (cached) yes
checking for gdImageCreate in -lgd... (cached) yes
but when I make:
/Users/marcus/src/php-5.1.2/ext/gd/gd.c: In function
a dependency for apps installed through rpm.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bounces - MS Exchange server sometimes bounces messages with
no indication of the address the original message was sent to!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net
}
function __construct(){
//This will be called in PHP5
}
}
Why penalise the platform you're intending to run it on?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List
is working great for me from PHP.
http://www.fckeditor.net/
http://tinymce.moxiecode.com/
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
enough. Alternatively something like a CLI
option to firefox to run without X (i.e. no visible windows) and
output to a file instead of a display device. The options here don't
indicate that it can do that:
http://kb.mozillazine.org/Command_line_arguments
Any other ideas?
Marcus
--
Marcus
On 21 Dec 2005, at 21:18, M wrote:
http://marginalhacks.com/Hacks/html2jpg/
That's the kind of marginal hack I was hoping to avoid ;^) However,
it did lead me to http://khtml2png.sourceforge.net/ which seems far
more like it. Now I just have to persuade it to compile.
Thanks.
Marcus
...
Thanks very much for the tip, very glad to have finally found a
solution.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:05. Nothing special was needed.
The current 3.0.8 release of APC is broken in PHP 5.1.0-dev if you
ever use __autoload. It will be fixed in 3.0.9 (and is fixed in CVS),
though Rasmus implied that 3.0.9 is waiting until 5.1 release.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
call this as you asked, where would the result go?
Is there some sort of workaround ?
As was suggested, put your values in variables before calling the
function, though the code example you posted suggests you're trying
to do something odd.
Marcus
--
Marcus Bointon
Synchromedia Limited
that this is the fastest
method:
'first part of string '.(($a==$b)?$c:$d).' rest of string'
I benchmarked this a while ago and was surprised to find that
multiple concats with single quotes are significantly faster than
interpolation.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
(it is reported as having come from
your __autoload function). You need a stack trace to figure out where
the original problem occurred - xdebug works a treat (but it won't
mix with APC).
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
bugs in the bug system, but
only if you have a short reproducable test case.
If everything goes well, we can release it next tuesday. Especially
test
issues with mod_rewrite and Apache 2 please!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
-geometries.html
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
supported very nicely in
PDO in PHP 5.1. A tangent I know, but a useful one nonetheless. Hey,
and I remember when print using was considered a 'power user'
feature in BASIC in 1981!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
without a break.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
by not forking and using
nohup (look it up with man) with , however, that will mean it runs
as you, whereas a forked process can easily switch users and drop
privileges for increased security.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
this
pretty much puts paid to using short tags.
Admittedly it is on in php.ini-dist, but that's not recommended is
it ;^)
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net
date.timezone ini setting.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://www.oreilly.com/catalog/upgradephp5/
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in sitepoint apache forums too, see if anyone there has
any idea.
Thanks for the ideas.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
written some), there are others that do
nothing but downloads (I use Interarchy for just that). I could offer
a similar opinion about the browsers that have odd implementations of
content-disposition.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED
on
their site.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- it's right up there with 'application/force-download'. If you
want to suggest (the final choice is not yours to make) that a
browser might download something instead of displaying it, set an
appropriate content-disposition header instead of setting the wrong
type.
Marcus
--
Marcus Bointon
later.
Todd, I think you should read this: http://support.microsoft.com/kb/
q260519/
There's a PHP example just before the user notes here: http://
www.php.net/header
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
as there may be multiple
independent deployments of the same scripts on the server, and I
don't want them including each others files. Adding .. to the path
would work but is a security risk. Any other ideas?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL
();' seems to fail completely when called via
a rewrite. After all that, smarty still can't find its templates_c
for some reason. I'm sure there must be something simple and elegant
I'm missing. Probably a good night's sleep.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
will be: 'blah.php?x=Hello there', which
is obviously broken.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for this
site in IE.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
compliant,
it's pretty unlikely to work, though I have occasionally seen things
like non-ASCII chars and '_' get through.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net
On 3 Nov 2005, at 14:16, Richard Heyes wrote:
It even has a method specifically for normal email addresses of
the form [EMAIL PROTECTED]
Ah, well, that's good news. It's been a while since I looked at it.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL
that a nested mass of string functions is
even more confusing - at least a regex has a fixed grammar. I've just
written a load of stuff that uses preg_replace_callback that I'm
quite pleased with.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED
don't know about you but I often deal with arrays containing NULL
values where using isset would be very wrong.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net
- the subsequent trim fixes them both. I like
mine because it has 1 less char ;^)
Ultimately, if it works for you, great!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net
reliable to deal with all the other stuff like
MIME encoding, plus it has support for all these sending methods
without having to change much code. I use it with qmail.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
be exposed to this
possibility, no matter where your data comes from.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
used
other functions the same way you're using isset, you would see
nothing wrong with this:
$myarray = array();
print $myarray['a'];
but I would hope that you would have a problem with that. Why treat
isset differently?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
, and their test with isset
was failing. So it's not just academic and I'm not making it up -
this problem does happen for real.
All this over such a little thing - imagine if we had a whole
language to worry about! Oh wait...
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
'])) {
if (array_key_exists('option1', $_REQUEST['checkbox_name'])) {
echo you selected option 1\n;
}
if (array_key_exists('option2', $_REQUEST['checkbox_name'])) {
echo you selected option 2\n;
}
//etc...
}
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
:
$text = preg_replace('/ */', ' ', $text);
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
]);
echo $result;
}
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= mysql_fetch_array($myquery, MYSQL_NUM);
return $mydata[0];
}
return false;
}
Then call it:
if ($contents = display())
eval($contents);
This should be faster and safer than your original code.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED
with a word - putting
a ^ at the start would make it omit the first word if there was a
space in front if it.
Instead of preg_match(), I had to type preg_replace():
err. I think you missed the point here. You don't need all that messy
substr stuff at all. The preg_match already did it.
Marcus
does not get saved back to the session file if
register_long_arrays is enabled.
Anyone else seen this? Any idea why it might be happening?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List
On 29 Oct 2005, at 14:48, Marcus Bointon wrote:
changing an item in $_SESSION simply does not get saved back to the
session file if register_long_arrays is enabled.
I meant disabled.
I've also tried using it with the mm session save handler and I get
the same symptoms. I also get
/function.version-compare.php
to do so reliably. Version strings are messy things.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
). It doesn't do anything significantly
different to addslashes(), which is purely a PHP internal function.
If you are writing database independent code, you should probably
prefer addslashes (or things like adodb::qstr).
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
be expected to deliver).
Otherwise as Jochem says, use RAM for your cache in the first place.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
be OK. However, if you're using UTF-8 anyway, why not just use
the real characters?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
all). This
would work, but it's way less efficient.
I can't use an absolute path as it's deployed in multiple
configurations on multiple servers, and config is bad enough already.
Now before I report this as a bug/feature request, does anyone have
any better ideas?
Marcus
--
Marcus Bointon
() {
require 'a.inc.php';
global $a;
echo $a;
}
}
Is this just how it is, or am I doing something wrong?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net
. The
original definition is directly inside the included file, and not
itself inside a function or class.
I should have mentioned that I'm using PHP 5.1-dev, so it could just
be bug...
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
I've suddenly developed a peculiar compile problem in PHP5. I'm
trying to build PHP 5.0.4, 5.0.5RC1, 5.0.5RC2 or 5.1RC1, and they
have started giving me an odd problem with GD:
gcc -I/Users/marcus/src/php-5.0.4/ext/gd/libgd -DHAVE_LIBPNG -
DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -Iext/gd/ -I/Users
.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, so it returns an empty array from __sleep, but
that's unlikely to be useful for a subclass that does have properties
(and serializing an object without any properties is pointless!).
Ideas?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
1 - 100 of 210 matches
Mail list logo