Stuart Dallas schreef:
On 28 Feb 2008, at 11:52, Stut wrote:
On 28 Feb 2008, at 11:39, Jochem Maas wrote:
I can't seem to manage to buffer output (of an included file) in a
CLI script,
the following does not work:
// buffer output so we can avoid the shebang line
being
Stut schreef:
On 28 Feb 2008, at 12:15, Timothy Asiedu wrote:
Please I would be grateful if you could remove my e-mail address:
[EMAIL PROTECTED] from the general Mailing List.
Unsubscribe instructions are in the footer of every email you receive
from this list. Follow them to get your
Nathan Rixham schreef:
Jochem Maas wrote:
...
-Stut
bit of false logic here but have you tried:
eval(ltrim(file_get_contents($script),$shebang));
haven't tried it, did consider it. I hate eval() :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Stuart Dallas schreef:
On 28 Feb 2008, at 12:29, Jochem Maas wrote:
Stuart Dallas schreef:
On 28 Feb 2008, at 11:52, Stut wrote:
On 28 Feb 2008, at 11:39, Jochem Maas wrote:
I can't seem to manage to buffer output (of an included file) in a
CLI script,
the following does not work
Jochem Maas schreef:
...
indeed ... I tested it and it works on my server too. my code is no
different
to yours with regard to the context of the problem. so what's going on.
I think (I know) I forgot to mention one tiny little detail.
the whole 'include' code occurs in a script that forks
Nathan Rixham schreef:
how's this?
#!/usr/bin/php
?php
class trimshebang {
function filter($in, $out, $consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket-data = ltrim($bucket-data,#!/usr/bin/php\n);
$consumed += $bucket-datalen;
David Sveningsson schreef:
Hi, I've written an application in c which I would like to start/stop as
a daemon in gnu/linux.
The application has the argument --daemon which forks the process and
exits the parent. Then it setups a SIGQUIT signal handler to properly
cleanup and terminate. It
Paul Scott schreef:
On Wed, 2008-02-27 at 19:50 +0800, skylark wrote:
What design patterns do you usually use?
I am not sure that you are understanding what a design pattern is. It is
not a piece of software or a thing to use, but it is a set of repeatable
components that you use in whatever
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote:
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote:
Hi all,
What design patterns do you usually use?
This one:
Paul Scott schreef:
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote:
Paul Scott schreef:
there seems to be some misunderstanding ... a design pattern is not
a component (or anything else of substance) but merely a conceptual
strategy used to tackle a problem ... ever find yourself writing
Aschwin Wesselius schreef:
Nathan Nobbe wrote:
Surely he didn't explain OOP to you... he's anti OOP :)
ya; im waiting to see one of these 'simple' sites thats written
strictly w/
functions and procedural code that does more than support a username
and password :)
-nathan
I worked for a
Richard Heyes schreef:
What design patterns do you usually use?
Whatever solves the problem. Factory is quite a common one. MVC is another.
anyone considered that 'function' and 'class' (given that we seem to
be flogging the old OOP v. Functions horse) are both design patterns if you
look
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 12:10 PM, tedd [EMAIL PROTECTED] wrote:
Sure, I understand that if you want to swap databases (MySQL to
whatever) having a abstract layer makes it easier. But, it don't make
it easier for me in the short term.
Or create a simple non-OOP
Jason Pruim schreef:
So I was supposed to go home a half hour ago but that didn't happen... I
hate deadlines! :P
in my home language Pruim means prune ... you sound like you've had to suck on
one to many ;-)
Can someone tell me why this code works for setting the table name:
dunno. lets
Matty Sarro schreef:
Greetings all!
I am still relatively new to any kind of web design or php programming, I'll
be completely honest. I am used to working with C, Perl, Java, and a splash
of C++. PHP and web application development are kind of a new bag for me and
I'm still trying to get my
Stut schreef:
On 27 Feb 2008, at 20:59, Daniel Brown wrote:
So let this be at least a basic retort to those who don't consider
web development real programming. Because you'd be surprised how
much I hear, oh, you work with web stuff, I thought you meant you
were a real programmer.
Well,
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 4:34 PM, tedd [EMAIL PROTECTED] wrote:
I would include DOM scripting and understanding what the current buzz
words mean (i.e., graceful degradation, unobtrusive code, accessible,
functional, secure, and compliant).
I was going to include
Brian Dunning schreef:
Don't laugh but we have a Win 2003 Server set up with WAMP, and the
PHP/MySQL scripts work great. I set one up to run as a scheduled task:
C:\php5\php.exe D:\wamp\www\scriptname.php
...but nothing happens and the Scheduled Tasks log says that it exited
with an (ff). So
Stut schreef:
On 27 Feb 2008, at 23:25, Jochem Maas wrote:
Stut schreef:
I DID NOT!! It was him! I only schreef in private!
that's what they all say ... my thunderbird knows different ;-)
I've interviewed more than my fair share of web developers who
couldn't reverse an array without
tedd schreef:
Hi gang:
I want to send a styled email via heredoc, can that be done?
$message = EOT
Title: This is a title of the Event.
Time: This the time of the Event.
Please show up on time.
EOT
that's just string generation ... 'style' equates to harassing people
with HTML emails ...
tedd schreef:
At 3:46 PM +0100 2/26/08, Jochem Maas wrote:
style comes naturally to some of us ;-)
:-)
Yes, but it eventually comes to style=oldeveryone/style
only if your markup is correct
quot;but it eventually comes to span class=oldeveryone/spanquot;
;-)
Cheers,
tedd
--
PHP
tedd schreef:
At 4:10 PM +0100 2/26/08, Jochem Maas wrote:
tedd schreef:
At 3:46 PM +0100 2/26/08, Jochem Maas wrote:
style comes naturally to some of us ;-)
:-)
Yes, but it eventually comes to style=oldeveryone/style
only if your markup is correct
Now you sound like my wife
Robert Cummings schreef:
On Mon, 2008-02-25 at 14:50 +, Nathan Rixham wrote:
ps: I can't believe how long this thread has lasted without anyone
mentioning that the subject line is misspelled.
I notice it everytime a post arrives, but usually the content is
juicier :)
Cheers,
Nathan Nobbe schreef:
On Thu, Feb 21, 2008 at 12:01 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Richard Lynch schreef:
If it's that inter-tangled, then I would hazard a WILD GUESS that the
__autoload will still end up loading everything...
but not on every request ;-) ... I do use output
hi people,
1. __autoload APC
I have been STW to try and find a definitive answer as to whether using
__autoload with APC
is a bad idea ... and if so why? ... I can't find that definitive answer, can
anyone here
state whether this it's an absolutely bad idea to use __autoload with APC? (I
Richard Lynch schreef:
On Thu, February 21, 2008 9:27 am, Jochem Maas wrote:
1. __autoload APC
I have been STW to try and find a definitive answer as to whether
using __autoload with APC
is a bad idea ... and if so why? ... I can't find that definitive
answer, can anyone here
state whether
this is a php generals type of question.
Sebastian schreef:
hi,
why isn't it possible to assign class constants like this:
class test
{
const
DIR='dirname'.DIRECTORY_SEPARATOR.'anotherdirname'.DIRECTORY_SEPARATOR;
}
is there some performance issue?
classes are defined at
Yuval Schwartz schreef:
Hello and thank you,
Another question, I get a message:
*Warning*: feof(): supplied argument is not a valid stream resource in *
/home/content/t/h/e/theyuv/html/MessageBoard.php* on line *52*
**
And I've tried troubleshooting for a while; I'm pretty sure I'm opening the
Pauau schreef:
I have a class method which declares a static variable within.However,
across all the instances of the class, the current value on that variable
replicates. Is it the intended functionality? Example: class A {public
function foo() {static $i=0;$i++;
Nathan Nobbe schreef:
On Feb 13, 2008 8:44 PM, Nirmalya Lahiri [EMAIL PROTECTED] wrote:
--- Pauau [EMAIL PROTECTED] wrote:
I have a class method which declares a static variable
within.However,
across all the instances of the class, the current value on that
variable
replicates. Is it the
Ritesh Nadhani schreef:
On Feb 13, 2008 6:03 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, February 13, 2008 4:28 am, Ritesh Nadhani wrote:
I have a situation where I have to copy something like 1000 files one
by one to a temporary folder. Tar it using the system tar command and
let the
Nathan Nobbe schreef:
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Nathan Nobbe schreef:
what you are using is potentially not what you think it is. you are
using
a 'static variable' which is not a static class member.
actually it pretty much *is* the same
@4u schreef:
Hi,
I have a problem with fsockopen in connection with the UNIX abstract
namespace.
To open a UNIX socket in the abstract namespace I have to add a nul byte
in front of the path.
Unfortunately PHP returns
fsockopen() [function.fsockopen]: unable to connect to unix://:0
that it's not my fault.
Jochem Maas schrieb:
@4u schreef:
Hi,
I have a problem with fsockopen in connection with the UNIX abstract
namespace.
To open a UNIX socket in the abstract namespace I have to add a nul byte
in front of the path.
Unfortunately PHP returns
fsockopen() [function.fsockopen
Xavier de Lapeyre schreef:
Hi,
I need to develop a website, but my management is rather unstable in his
vision for the layout.
I'm thinking of developing the components as classes and functions, and
then use a template system to render the layout.
If the management wishes to change the layout,
Larry Garfield schreef:
http://www.php.net/pdo
All the cool kids are doing it.
not true - some of them use firebird ;-)
On Saturday 09 February 2008, nihilism machine wrote:
Looking to really beef up my DB class, any suggestions for functions
to add that will be more time saving for a web
Daniel Brown schreef:
On Feb 7, 2008 7:10 PM, Jochem Maas [EMAIL PROTECTED] wrote:
McNaught, Scott schreef:
. Get profile results for novices without having to mess around
installing php binaries such as APD / zend debugger etc
I suppose that includes xdebug?
If xdebug works
nihilism machine schreef:
i have a method called CreateUser() which is public and takes 5
variables as its data, then adds them to a db. it only executes the
first method not the other although its all the same but the variable.
ex:
$auth = new auth();
$auth-CreateUser(fake email, 1, fake
Daniel Brown schreef:
On Feb 8, 2008 4:17 PM, tedd [EMAIL PROTECTED] wrote:
At 10:31 AM -0500 2/8/08, Daniel Brown wrote:
On Feb 8, 2008, at 10:14 AM, tedd wrote:
Hi gang:
From a variable with the name of $this_variable -- how do I get a
string 'this_variable' ?
What Tedd
Michael Moyle schreef:
Hi,
I am new to the list and have a question that inspired me to join the
list as I can not find any answer online.
When a object reference is passed to the $_SESSION array what happens to
let's assume php5. all objects are reference like, they behave from a user POV
Michael Moyle schreef:
Jochem,
On Thu, 2008-02-07 at 09:11 +0100, Jochem Maas wrote:
Michael Moyle schreef:
Hi,
I am new to the list and have a question that inspired me to join the
list as I can not find any answer online.
When a object reference is passed to the $_SESSION array what
Legolas wood schreef:
Hi
Thank you for reading my post
I am trying to run a php based application using php5 and apache.
but I receive an error like:
*Fatal error*: Call to undefined function imagefontwidth() in
*/var/www/v603/includes/functions.php* on line *28*
that would tend to
Louie Henry schreef:
Good Day All
I am running windows xp pro and using built in IIS as my web-server. And I
installed PHP 5.2.5. I also installed MySQL 5.0.37. Now PHP is working, how
ever I having problems with the configuration with MySQL.
I used phpinfo(), and I notice this
Martin Marques schreef:
Nathan Nobbe escribió:
On Feb 6, 2008 6:13 AM, Martin Marques [EMAIL PROTECTED]
wrote:
I got an update from tzdata on a Debian server due to a daylight saving
change here in Argentina.
I doubt that debian stable is pushing newer versions of TZ db, than that found
Daniel Brown schreef:
On Feb 7, 2008 8:34 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Martin Marques schreef:
see what you have as the value for the date.timezone ini setting.
I've already checked that, and it's not set.
it should be set to something, so fix that.
All other points being
McNaught, Scott schreef:
Hi there,
Is it possible to make the declare(ticks=1) statement apply to *all*
functions executed in a php script, regardless of scope?
is the declare() pragma not a file scope wotsit? i.e. you'd have to
do declare(ticks=1); at the top of each file.
...
.
Ford, Mike schreef:
On 05 February 2008 21:37, Jochem Maas advised:
the same is not exactly true for floats - although you can
use them as array keys you'll
notice in the output of code below that they are stripped of
their decimal part (essentially
a floor() seems to be performed on the float
Robbert van Andel schreef:
I am having trouble with a PHP CLI script I wrote to help manage my website.
The site is on a shared hosting server where the PHP installation is set up
as a CGI. The script creates some backups of my databases and sends them to
Amazon's S3 service.
First off, the
Casey schreef:
On Feb 5, 2008, at 10:43 AM, Eric Butera [EMAIL PROTECTED] wrote:
On Feb 5, 2008 1:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote:
hi all,
i have this php statement:
? if($rowB[$rowA[0]]=='Y') {echo checked;} ?
Richard Lynch schreef:
On Sun, February 3, 2008 11:51 am, Robert Cummings wrote:
On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote:
On Sun, 2008-02-03 at 20:10 +1100, doc wrote:
come on people try you skills at
http://www.rhwebhosting.com/comp/index.php
Reworded as:
Redesign our
Eric Butera schreef:
On Feb 4, 2008 5:13 PM, Jim Lucas [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Destiny http://86.31.249.90/
I love FF + NoScript :)
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth
at 06:33 +0200, Paul Scott wrote:
On Fri, 2008-02-01 at 03:40 +0100, Jochem Maas wrote:
I for one would really like to see a concrete example of this kind of
use of geometry columns and spacial indexes as an alternative to the stand
integer based primary keys.
On one of my local postGIS tables
Shawn McKenzie schreef:
Glad I read threads that I don't care about or I wouldn't have found out
about Firebug! I just installed it, very cool!
it can definitely make your day less painful :-)
Also, considering the price of oil/gas, I'm sorry that the 'war for oil'
didn't work out the way
Nathan Nobbe schreef:
all,
as ive been researching SPL lately ive read several times that spl will
store only the current element of the underlying collection in memory
during iteration. articles that mention this will say that using these
iterators should afford savings when traversing large
hi people,
I'm in the market for a new framework/toolkit/whatever-you-want-to-call-it.
I've been taking a good hard look at the Zend Framework - if nothing else the
docs
are very impressive.
I'd like to hear from people who have or are using ZF with regard to their
experiences, dislikes,
Greg Donald schreef:
On 2/1/08, Jochem Maas [EMAIL PROTECTED] wrote:
I'm in the market for a new framework/toolkit/whatever-you-want-to-call-it.
I've been taking a good hard look at the Zend Framework - if nothing else the
docs
are very impressive.
I'd like to hear from people who have
Richard Heyes schreef:
Anyone have any trouble with this combination? It consistently crashes
for me.
firefox not an option? or anything else that resembles a proper browser ;-)
http://pear.php.net
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Eric Butera schreef:
On Jan 31, 2008 7:33 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Richard Heyes schreef:
Anyone have any trouble with this combination? It consistently crashes
for me.
firefox not an option? or anything else that resembles a proper browser ;-)
http://pear.php.net
Thanks
Richard Heyes schreef:
firefox not an option?
Nope.
or anything else that resembles a proper browser ;-)
Strange, IE has been working fine for me for the last eight years...
that's the kind of thing people say just after they hear they have prostrate
cancer ;-)
seriously though - why
Eric Butera schreef:
On Jan 31, 2008 9:27 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 31, 2008 7:33 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Richard Heyes schreef:
Anyone have any trouble with this combination? It consistently crashes
for me.
firefox not an option
Eric Butera schreef:
On Jan 31, 2008 11:14 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 31, 2008 9:27 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Eric Butera schreef:
On Jan 31, 2008 7:33 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Richard Heyes schreef:
Anyone have any
Robert Cummings schreef:
On Thu, 2008-01-31 at 17:14 +0100, Jochem Maas wrote:
let's not forget that nobody outside of IT actually uses Opera
Please back up that st-ass-tistic please. Methinks you reached around
and pulled it out of your lightless nether regions.
given that you can prove
Eric Butera schreef:
On Jan 31, 2008 12:02 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Robert Cummings schreef:
On Thu, 2008-01-31 at 17:14 +0100, Jochem Maas wrote:
let's not forget that nobody outside of IT actually uses Opera
Please back up that st-ass-tistic please. Methinks you reached
Richard Heyes schreef:
Jochem Maas wrote:
Richard Heyes schreef:
firefox not an option?
Nope.
or anything else that resembles a proper browser ;-)
Strange, IE has been working fine for me for the last eight years...
that's the kind of thing people say just after they hear they have
Nathan Nobbe schreef:
i like opera for 4 reasons,
1. it renders fast
2. when i have 50 tabs open, its still responsive
3. it supports ctrl+z, wicked feature :
undo? undo what?
4. when you close and reopen, all the tabs from before are still there; key
however, firefox is the champion for
Mr Webber schreef:
PHP is a server-side page generator. It has NOTHING to do with the browser.
The PHP programmer determines the content of the resulting HTML and the
browser reacts to THAT. Browsers never see a line of PHP script!
yes I think Richard knows that. he was asking whether
Tom Chubb schreef:
I am looking to buy a Mac in a couple of weeks primarily for writing music
using Apple Logic Studio 8 which will run absolutely fine on a MacBook.
However, I am considering installing something like MAMP and using that as
my development server too at which point I'm wondering
Robert Cummings schreef:
On Thu, 2008-01-31 at 18:42 +0100, Jochem Maas wrote:
Nathan Nobbe schreef:
i like opera for 4 reasons,
1. it renders fast
2. when i have 50 tabs open, its still responsive
3. it supports ctrl+z, wicked feature :
undo? undo what?
What you just typed into a form
Robert Cummings schreef:
On Thu, 2008-01-31 at 18:02 +0100, Jochem Maas wrote:
...
Would you believe me if I said I wasn't in IT? ;) My wife isn't in IT,
but she uses Opera regularly, she likes it's speed and the way it zooms.
My 4 year old son loves Opera, but he doesn't know anything else
Mike Morton schreef:
Good point ;)
Except that generally, when am told next Saturday - I take that to mean
the next Saturday - just one more ambiguity in the english language that
makes it so hard to learn I suppose!
The odd thing about this whole situation it that it seems to have cropped up
Daevid Vincent schreef:
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 31, 2008 8:19 AM
To: [EMAIL PROTECTED]
Cc: PHP General List
Subject: Re: [PHP] PEAR website and MSIE 6
Richard Heyes schreef:
firefox not an option?
Nope.
or anything
Per Jessen schreef:
Richard Lynch wrote:
OK, what is a 'geometry column' and what is a 'spatial index' ?
Imagine a single column combining both longitude and latitude.
Now imagine an index that knows about long/lat, and keeps
geographically close objects sorted in the index for you.
you already had the answer to this problem. do try to read the error message
properly.
a 'non object' is quite clear - if in doubt about what something is or something
should be use var_dump() or print_r() to output the variable in question (e.g.
$DB, which
you would have seen was NULL).
now
Stut schreef:
Nathan Nobbe wrote:
On Jan 29, 2008 7:27 PM, Stut [EMAIL PROTECTED] wrote:
Personally I'd use a static method in this instance.
thats what i recommended.
If you need to create
an instance of the class you can do so in the static method and that
way it
will get destroyed when
Janet N schreef:
Hi there,
I have two forms on the same php page. Both forms has php embeded inside
html with it's own submit button.
How do I keep the second form from not disappearing when I click submit on
the first form? My issue is that when I click the submit button from the
first
form
Stut schreef:
Jochem Maas wrote:
Stut schreef:
Nathan Nobbe wrote:
On Jan 29, 2008 7:27 PM, Stut [EMAIL PROTECTED] wrote:
Personally I'd use a static method in this instance.
thats what i recommended.
If you need to create
an instance of the class you can do so in the static method
Anup Shukla schreef:
Nathan Nobbe wrote:
Actually, I don't think so. I believe constructors return void, while
the 'new' keyword returns a copy of the object.
im pretty sure constructors return an object instance:
php class Test { function __construct() {} }
php var_dump(new Test());
Richard Lynch schreef:
I believe the constructor returns the object created, with no chance
in userland code of altering that fact, over-riding the return value,
or any other jiggery-pokery to that effect.
New causes the constructor to be called in the first place, and that's
about it.
The
Greg Donald schreef:
On Jan 30, 2008 1:36 PM, Eric Butera [EMAIL PROTECTED] wrote:
Thanks for your post. Competition is a good thing.
I agree. PHP is the reason we're not all still working out of a cgi-bin.
Have you looked at the PHPUnit code coverage reports? Of course it
isn't built in
them serially (i.e. in 2 different requests) ...
if so then break up the forms in to 2 pages ... if not I can't figure out
what you want to do at all. please explain.
Thanks.
On Jan 30, 2008 3:16 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Janet N schreef:
Hi there,
I have two forms on the same
it aint PHP ... but I've just fall in love with this: http://www.capify.org/
which won't help if any of the servers in question are windows boxes unless you
can install cygwin on there (I'm guessing that would allow it to work). although
from reading your post I gather you have to perform the
Nathan Nobbe schreef:
On Jan 30, 2008 8:21 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Greg's my hero of the day - even if he has been banging the Ruby drum on
the PHP Stage half the night ;-)
greg does seem to know a crap-ton about ruby, and gentoo even ;)
one thing I would offer
Nathan Nobbe schreef:
On Jan 29, 2008 3:02 PM, Stut [EMAIL PROTECTED] wrote:
Why? What exactly do you think you're saving by not putting the
instance in a variable? I can't think of one good reason to do this.
its an esthetic thing; and besides the simple factory method is an
easy
nihilism machine schreef:
How does this look now?
just as bad as before. you haven't even tried to run the code have you?
?php
class dbconfig {
public $connInfo = array();
public $connInfo[$hostname] = 'host.com';
public $connInfo[$username] = 'dbuser';
public
Christoph Boget schreef:
Constructors return the object, correct? If so, how can I do this:
class Bob {
private $blah;
_construct( $blah ) {
$this-blah = $blah;
}
public getBlah() {
return $this-blah;
}
}
echo Bob( 'Hello!' )-getBlah();
When I try that, I get the message
nihilism machine schreef:
Ok, trying to write my first php5 class. This is my first project using
all OOP PHP5.2.5.
I want to create a config class, which is extended by a connection
class, which is extended by a database class. Here is my config class,
how am I looking?
dunno can't see
Teck schreef:
Hi,
I'm trying to find a way to get part of a string where the part is
matched with regular expressions.
So, for example, if I have a string:
a2b3cd5ef6ghi7232jklmn
I need to grab 12b3cd5 using regular expressions and store the part in
a variable.
what are the rules for
Nathan Nobbe schreef:
all,
previously, on this list and elsewhere, i have raised the topic of
interface inheritance, lamenting that php is void of the feature.
to my utter amazement i discovered that php does in fact support
interface inheritance, reading through some of Marcus Boergers'
code
thanks to everyone for there info/feedback/help/etc - I have
a somewhat better understanding of this pack/unpack/binary stuff now :-)
Jochem Maas schreef:
someone asked about checksum values in another thread, I believe
he got his answer no thanks to me. but whilst I was trying to help
I got
Zoltán Németh schreef:
hey Dan,
where is the stats for last week? the experiment is over or what? ;)
ha, so I'm not the only one wanting to know how close to the truth my
predictions
for this weeks stat are ;-)
greets
Zoltán Németh
--
PHP General Mailing List (http://www.php.net/)
To
Jay Blanchard schreef:
[snip]
where is the stats for last week? the experiment is over or what? ;)
[/snip]
There are no stats for last week because I participated.
any way you cut it Richard wins ;-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
is that you have no garantee of the
destruction order which means you can't garanteed any other objects
will be available (e.g. to write a log to a db or something similar)
Richard Lynch wrote:
On Fri, January 25, 2008 1:31 pm, Jochem Maas wrote:
setup as via register_shutdown_function().
I
one of the little imps in my head just found the light switch. thank you :-)
Nathan Nobbe schreef:
On Jan 24, 2008 7:13 PM, Jochem Maas [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
ok. that's where my brain goes to mush - all strings in php (for now)
are binary ... what's
Jochem Maas schreef:
I'm getting exceptions thrown without a stackframe. I understand what this
means but not how it can happen given the following:
1. *every* frontend script on the site is wrapped in a try/catch block
2. I have set an exception handler to dump these so-called uncaught
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 24, 2008 9:51 AM
To: Eric Butera
Cc: Nathan Nobbe; Jochem Maas; clive; PHP LIST
Subject: Re: [PHP] are email address could be spammed
On Jan 24, 2008 10:42 AM, Eric Butera [EMAIL PROTECTED] wrote:
I used to be hardcore pop only but now that I use
I'm getting exceptions thrown without a stackframe. I understand what this
means but not how it can happen given the following:
1. *every* frontend script on the site is wrapped in a try/catch block
2. I have set an exception handler to dump these so-called uncaught exceptions
in the error log
Peter Ford schreef:
Jochem Maas wrote:
Jochem Maas schreef:
I'm getting exceptions thrown without a stackframe. I understand what
this
means but not how it can happen given the following:
1. *every* frontend script on the site is wrapped in a try/catch block
2. I have set an exception handler
Per Jessen schreef:
Floor Terra wrote:
I know how to do multiple queries - the key issue in my question
was how to do them concurrently (i.e. in parallel).
So you want to make PHP multithreaded???
No, just the mysql queries.
Try pcntl_fork() to create a child process for each query.
Each
Richard Lynch schreef:
On Fri, January 25, 2008 4:37 am, Jochem Maas wrote:
I'm getting exceptions thrown without a stackframe. I understand what
this
means but not how it can happen given the following:
I wonder if you can wrap a try/catch around the loading of the
constants and class
Nathan Nobbe schreef:
On Jan 25, 2008 12:45 PM, Jochem Maas [EMAIL PROTECTED] wrote:
you'll end up forking a complete apache process - assuming mod_php.
you don't want that
alright, Jocheem, now its my turn for a stupid question.
doesnt apache fork a different process on each php request
501 - 600 of 3344 matches
Mail list logo