. However, I
have no idea how to do this - can anyone give me some pointers? Is it as
simple as adding a configure switch like --build-rpm?
Thanks,
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List
I installed all of mysql from official RPMs, except for devel and shared
modules which I compiled from the source RPM (These 4.1.13 binary RPMs are
hard-wired to OpenSSL 0.9.6 so you can't use them on any recent OS).
Any ideas to fix this?
Marcus
--
Marcus Bointon
Synchromedia Limited: P
it off.
I'm in the process of upgrading from PHP4 to 5, and this script works ok in
4 - the error is just in 5.
Any ideas?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailing List (htt
With a product factory class, you might do this instead:
$products = product_factory::get($productids);
Which achieves the same result, but using only a single DB query (hidden
inside the factory class, which does NOT call the product class in the same
way!). The next problem is keeping your p
I need some modules that are not
supported in any of the pre-built fink PHP5 packages, and I'm used to
compiling it without difficulty on Linux and OpenBSD.
Anyone else run into this or have any idea how I might fix it?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the pi
On 3 May 2005, at 19:18, Matthew Weier O'Phinney wrote:
* Jm <[EMAIL PROTECTED]>:
Does anyone have a nice email address syntax checking script they'd
like to share? Regular expression-based anyone? TIA.
I use the following regex:
preg_match('/[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}$/i', $ema
elp of course!
I've been googling for registrars, but as yet I've not found anyone
that offers all this. Can anyone recommend a registrar that has a
clue and a decent web interface?
Thanks,
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] |
On 13 May 2005, at 01:11, Richard Lynch wrote:
On Thu, May 12, 2005 3:40 am, Marcus Bointon said:
Multilingual domain support e.g. café.com
Er.
Maybe they changed the rules, but I don't think that's a valid
domain name
AT ALL.
So maybe the reason you are having trouble is you a
than to have to translate
into the English "dumbing down" of their language - that you might
find it harder is not a consideration.
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
or current releases.
Even in the various rpm repositories PHP5 is a rare beast - for
example rpmforge's members don't include it. rpmbone provides some
very basic rpms, but they suffer from dependency problems (even when
accessed via apt-get).
Any other ideas?
Marcus
--
Marcus B
that the setting of $this in
static calls from other instances is not a bug (though it's the root of this
problem)!
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
ion is not the same as encoding.
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
ow that this problem goes away in PHP5, and that the setting of $this in
static calls from other instances is not a bug (though it's the root of this
problem)!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
t work - it is exactly the case that fails in my
example. $this IS set in a static method that's called from any object
instance (even one of a different class), and it's a PHP feature, not a bug.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
ual/en/function.exec.php
http://uk2.php.net/manual/en/function.passthru.php
E.g. system('myperlscript.pl');
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 unsubscr
s 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/)
y of stack
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
;
string(0) ""
}
The docs (http://www.php.net/manual/en/language.types.array.php) say:
"If you convert an object to an array, you get the properties (member
variables) of that object as the array's elements. The keys are the
member variable names."
It se
ar in a variable
name, but it's fine as an array index.
Try a test 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'
t;]=>
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/
[EMAIL PROTECTED] | http://www.synchromedia.co.uk/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
want it to act just like the docs say it does, and if you
don't, you should 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://ww
extra info in a marginally less destructive way, for example 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
re
any circumstances in which 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 PROTECTE
ay[$matches[2]] = $value;
} else {
//It's a public property
$propArray[$key] = $value;
}
}
return $propArray;
}
Works nicely for me.
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of h
I not helping 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 (
ot;]=>
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:/
posting on -users, as they suggest), but occasionally they just don't
read the report - in this case I was referred to the documentation,
which agrees 100% with my complaint!
Marcus
--
Marcus Bointon
Synchromedia Limited: Creators of http://www.smartmessages.net/
[EMAIL PROTECTED] | http://ww
until I fix 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.
;ve looked in /sw/lib/freetype2/include/freetype2/
freetype/freetype.h and the missing constants are correctly defined
in there, and also in /usr/X11R6/include/freetype2/freetype/
freetype.h Those files should be found using the paths I gave in
configure.
Anyone got any idea how I can fi
o anything.
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
INET_ATON() function. I have ipv6 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 t
eat for me.
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
doesn't work at all:
print date('Y-m-d H:i:s', strtotime('now UTC-0800'))."\n";
1970-01-01 00:59:59
using 08:00 doesn't work either
Ideas?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia
ts
is that it allows for correct daylight savings calculations (assuming
that locale data is correct on the server).
Let me rephrase the question - how can I get the current time in a
named time zone using strtotime and without using a numeric offset?
Marcus
--
Marcus Bointon
Synchromedia Limited: P
,..., read its contents
and put it in
an associative array.
You have described exactly what the pear config package does: http://
pear.php.net/package/config/
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General
andled through
a single mechanism.
Does this sound like a solid structure and mechanism?
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
interface is very easy to work with.
Consensus seems to be that if you're just starting out in version
control, go straight to svn so you can skip all the reasons that made
them want an upgrade from cvs!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PR
s you would any
other webdav file system. I guess you could check out a version
remotely, then mount that area via webdav. Not sure what you'd gain
though.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
P
t of the point. With the mechanism I'm thinking of, I don't
have to be too precise about what exactly a plugin might do - I only
need to define the different plugin interfaces (which can be very
strict) that it might conform to - implementation is wide open.
I'd welcome a discus
anch, do a
checkout to this directory'.
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
P
is not case sensitive to class names, the file system you're on
probably is, so keep your case consistent throughout.
Docs are here: http://www.php.net/manual/en/language.oop5.autoload.php
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | htt
to be a standard
class method like __construct, so that a class would attempt to run
its own autoloader before breaking out to the global function namespace.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP G
thods, not global
functions. Just plain 'autoload' in a global context is not really
anything wildly different in style to say ini_set or error_reporting.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
talking hypothetically anyway as we
don't have autoload methods at present).
This thread is meant to be about how to improve automatic include
file location - saying not to try to do it at all is not very helpful.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the pi
/articles/printyourway/
http://www.alistapart.com/articles/goingtoprint/
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
the Entropy binaries as they're missing some extensions I
need. There are no bugs posted on the PHP tracker that match these
errors, so it's clearly not a common problem.
Any ideas what might be broken, and how I might fix it?
Marcus
--
Marcus Bointon
Synchromedia Limit
to do with
this. PHP's build system is completely independent of XCode. PHP uses
normal Unix-type tools such as gcc, make, ld, libtool, autoconf etc.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Ma
tly speaking this is a linking rather than a compiling problem
(i.e. the problem occurs after gcc has finished successfully). It
seems that the OS X ld has different options to the GNU or BSD
implementations, so I guess I'm really after someone that knows ld
well enough.
Marcus
--
y for days at a time.
This article I wrote might help:
http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20977409.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
fink (I'm using some fink packages like apache2, JPEG,
PNG, etc) and I'm still getting the ld problem I mentioned. Think I
may have to report it as a bug and see what comes of that.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http
On 13 Jun 2005, at 10:52, Marcus Bointon wrote:
I just tried compiling on a clean install of 10.4, with a clean
install of fink (I'm using some fink packages like apache2, JPEG,
PNG, etc) and I'm still getting the ld problem I mentioned. Think I
may have to report it as a bug an
);
but this does not seem to go via the internal __soapCall function,
thus denying me the ability to tweak the request on its way through.
If I call it manually (i.e. non-WSDL way), something like:
$sc->__soapCall('login', array('username' => 'abc', 'p
On 14 Jul 2005, at 16:07, Marcus Bointon wrote:
I've found various references to overriding the __call function
(which is now completely obsolete as it clashes with a magic
method) for the same kind of reason that I need to. So, it seems as
if __soapCall is NOT called internally
On 18 Jul 2005, at 20:56, Sebastian wrote:
The phone would have to have GPS capabilities..
Not true. The network knows what cell the phone is in(and cells are
pretty small in cities), and it knows where the cell is. This is the
mechanism that's used for location dependent services (especia
I wrote this question then found out where the problem was, so this
is just for the archives...
==
I've compiled PHP 5.0.4 successfully on OS X 10.4.2, but I'm getting
a weird problem with iconv. I specified it in my configure line:
--with-iconv
and it seems to pick it up ok w
if (queryResult.isDone()) {
...
How on earth do I do that in PHP? I don't think that creating PHP
classes and using classmap will help (it just moves the problem), at
least partly because this is a dynamic WSDL that is subject to change.
Marcus
--
Marcus Bointon
Synchromedia Limited: Pu
proach doesn't easily allow to you abandon and
resume later (unless you get clever with JS and cookies).
For keeping data in a session, you could combine this approach with
Ajax: http://particletree.com/features/smart-validation-with-ajax
Marcus
--
Marcus Bointon
Synchromedia Limited
($a = self::BAR) {
echo $a;
}
}
In this case $this->thing will be undefined, but wibble() will get
the correct default value for $a.
Comments?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General
$foo){
There is no way to do that. What you _CAN_ do, to ensure you're
getting
an array is:
There IS a way to do exactly this. It's called type hinting and it's
a PHP 5 feature:
http://www.php.net/manual/en/language.oop5.typehinting.php
Marcus
--
Marcus Bointon
Synch
within a session may go to
different servers, so file- or memory-based sessions are not much use.
Despite this, I also suspect that sessions may not be the way to go.
User authentication and management is not a synonym for sessions.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you
ndling (another PHP5 feature) is
next to useless without type hinting, so they HAD to implement it for
objects so that catch clauses could work properly.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk
--
PHP General Mailin
SQL-compatible DateTime string, use:
$datetime = date('Y-m-d h:i:s', $timestamp);
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
-5])\]))$
Which I got from here:
http://www.hexillion.com/samples/#Regex
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
p to 10 in this query -
you can find out how many it would have found by then asking:
$sql = "SELECT FOUND_ROWS()";
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
aces where I used to do this. Since MySQL 4.1 I've
changed it to something like:
"INSERT INTO mytable SET id = 123, bla = '$x' ON DUPLICATE KEY UPDATE
bla='$x'"
This saves you a query, and makes it easier to isolate the insert/
update as it will
exampel, the base class has no
properties to save, 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:
rong emphasis on usability over feature bloat.
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
directly: --with-gd and --with-freetype-
dir. The configure script doesn't report any problems:
...
checking for GD support... yes
checking for the location of libjpeg... /sw
checking for the location of libpng... /sw
checking for the location of libXpm... no
checking for FreeType 1.x support
{
function test() {
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
definition. 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 PR
WSDL is online after 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 bette
s that
would 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://www.php.net/unsub.php
). 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 t
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
/manual/en/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://w
tem in $_SESSION
simply 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
--
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 als
and is_array
($_REQUEST['checkbox_name'])) {
if (array_key_exists('option1', $_REQUEST['checkbox_name'])) {
echo "you selected option 1\n";
}
if (array_key_exists('option2', $_REQUEST['checkbox_name'])) {
echo
:
$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
ring,
$matches)) {
$result = trim($matches[0]);
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
ery($sql) and mysql_num_rows($myquery) > 0) {
$mydata = 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
arcus
--
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
friends is necessarily any
clearer. I sometimes find 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
Synch
_will_ usually work for things that come
through the web-driven superglobals, but not all arrays come from
there - if you use the same syntax for dealing with databases or your
own objects you could be creating some very entertaining bugs. I
don't know about you but I often deal with
railing spaces - 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 (htt
way as it
makes it much more 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
bug to track
down. Using array_key_exists means you will never 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 (htt
pect to receive an undefined index notice as you have
explicitly looked up an array index that does not exist. If you 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
lutely sure?
Yesterday I encountered an error in a large commercial php script and
it turned out that it was looking in $_SERVER['SERVER_NAME'] which
was there but set to NULL for some reason, and their test with isset
was failing. So it's not just academic and I'm not makin
tion to it. If an address is not RFC2822 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.u
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 i
ster_long_arrays off!
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
0there', your resulting URL 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
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
st 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
t recognise the (invalid) MIME-Type.
Quite - 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 inste
x27;ll be round
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://ww
my global include_path 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: Put
ng just 'echo getcwd();' 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
--
Marcu
1 - 100 of 122 matches
Mail list logo