nities like this list so we
>>> solo
>>> freelancers don't think we're simply mad.
>>
>> You are... :-)
> Well yes, but I meant without company.. See when we are in a herd,
> then even if we're all mad, then somehow it seems alright. ;-) We
erencing your revision in /tags/ branch is a way to organise your work.
> Is this the generally held belief or do I need to go
> back and re-read?
Just read further while you keeping confusing moments in mind.
At some point, they will become clearer... eventually.
--
Sincerely Yours, ANR
er the clients requirements.
Well, as last resort, there's a transactions exists.
Especially for these times where you DO need to insert/update more than one
row at once, without even smalest possibility of intervention from other
clients.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
e slow, you'd better use functions
designed especially to work with asyncronous I/O.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; etc. Why not just give the page a glance?
>>
>> http://us3.php.net/manual/en/intro.curl.php
> If you don't have access to Curl, you could also look at the PEAR
> HTTP_Request class. IIRC this supports HTTP Basic authentication.
I'd recommend HTTP_Client in that case.
l, up to 15
lines so far, and backtrace trimmed at 6'th or 7'th line.
Is there any way to affect this behaviour without recompiling PHP?
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o, as you said,
mimicking web browsers behaviour.
Including cookies handling.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;return __FILE__;".
If all what you need is to print path to file containing class, if you
accessing your object as string, you could utilize magic of __toString().
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. Thanks a lot!
> But still, I wish there were a way of doing that, without altering the
> class behaviour.
(top posting fixed)
Ok, if you prefer backward solution - hook your own error-handler and cause an
error in class, then you'll have path to it's file in backtrace.
I mean, knowing the filename of this or that function absolutely meaningless,
unless you're running into problem of some sort.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
us
>> converting PEAR_Error to Exception at least 2 lines. All-in-all, up to 15
>> lines so far, and backtrace trimmed at 6'th or 7'th line.
>> Is there any way to affect this behaviour without recompiling PHP?
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ight
> fill your logs up a bit...
Good catch indeed. I was confused by the strange limit (not 1023-1024 as I
expect that), so I haven't checked if this setting affecting things.
And don't worry about my log :) I want it enabled for php-cli.ini only, for
development purposes.
On live suite, exceptions generally never breaking out to {main} scope.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t mentioned
things.
I've left required info in quotation. Read it again, if you didn't understand
it first time.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
languages. That can be done ONLY by native speakers, who know English AND the
field, to which that specific text related.
As example, I can point to the EVE-online and their attempt to hire foreign
company to translate game interface to Russian... That said, it was complete
failure. Two times.
ial meaning whatsoever.
>>
>>
>> except in the deranged world of the original author :D
> You're right. Because associative arrays are meant to make code easier to
> understand by using meaningful indexes.
That, actually, COULD be meaningful index. In some cases.
Please don't top post any more. thank you.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s not so nice there at this time
> of year, though the heat is more bearable.
to the bottom !
from the top
to read
it's easier
Because
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
up, but see.
What you said database does not have latin1, that cant be true.
Try
SHOW CHARACTER SET;
that should list all available charsets.
Then set connection to receive your data in right encoding.
SET NAMES encoding;
Or, if you're using right version of PHP, simply use
mysql_set_charset('encoding');
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n't see where you have problem or what you
want to achieve by CHANGING dates in such way.
Care to explain?
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
people's code. I am not fluent in PHP. That is why I wanted a
> reference in the documents. I do not sprinkle the @ symbol through my
> code to avoid careful construction, I used it in a specific instance
> to deal with an empty query string, over which I had no control. I
> will stu
x27;]));// TRUE
var_dump(isset($a['foo'])); // FALSE
var_dump(isset($a['hello'])); // FALSE
// The key 'hello' equals NULL so is considered unset
// If you want to check for NULL key values then try:
var_dump(array_key_exists('hello', $a)); // TRUE
?>
(c) http://php.net/isset
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you want to check if array key has meaningful value or not, disregarding
it's content and/or presence, use isset(). But that have never happened to me
in, like, 10 years. And knowing if key is present critical for foreach() cycle.
On the other side, for every my project bigger than s
formats
> beside this so I lose this flexible approach.
> It does work for me now but I was wondering if there was a way to avoid
> this.
Not as I know. So, you should either force user to use specific format
(military -MM-DD HH:MM:SS for example) or leave user no chance to enter
wrong data.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
verride this problem? Just the not nice eval("return $variable");?
> and in simple words - is there any way to make the following code work:
> $varname = "\$_SERVER['REMOTE_ADDR']";
> $varvalue = $$varname;
First of all, why you need it to work?
Expl
ould also mention Colorer project, without which it all would be much more
complicated. http://colorer.sf.net/ (Yeah, it is very much complicated itself,
I know...)
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, very nice piece of code.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings, "Kyle Terry".
In reply to Your message dated Thursday, October 23, 2008, 15:32:07,
> I'm stuck... What is the best way to send a jpg to a printer with PHP? Looks
> like it is only working with png and bmp...
Example?
--
Sincerely Yours, ANR Daemon <[EMA
tine, such as
htmlentites()
Don't use add*slashes and any kind of it, including magic_quotes*, unless you
surely know what you're doing and why.
And please, don't top-post.
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mplish. For
> what it's worth, if I were to do it with a regular expression, I would
> use:
> $filename = "us.123.kyle.20081029.zip";
> preg_match('/(.*)\..*$/', $filename, $match);
I should correct you to
#^((.+)(\.[^\.]+)?)$#
Results will be
1 => Filenam
is a part of it.
> var_dump( pathinfo( '.htaccess' ));
> var_dump( pathinfo( 'htaccess' ));
> die( );
> ?>
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ders at the moment first body byte sent, and since it is
HEAD request, Apache shut down the script in case of request completion
(HEADers sent).
--
Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ll
>
> LoadFile C:/usr/sbin/php-5.2.2-Win32/php5ts.dll
>
> LoadModule php5_module "C:/usr/sbin/php-5.2.2-Win32/php5apache2_2_filter.dll"
>
>
> php_admin_value extension_dir "C:/usr/sbin/php-5.2.2-Win32/ext"
> PHPIniDir "C:/usr/sbin/php-5.2.2-Wi
30 matches
Mail list logo