Daniel Brown schreef:
On Fri, Feb 29, 2008 at 12:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote:
it does because he's passing the title as an argument to the image script:
I would say that's what I get for skimming, but look here:
I guess I skimmed somewhat too ..
Jochem Maas schreef:
David Sveningsson schreef:
Hi, I've ran into some problems when outputing text to an image using
imagettftext. I cannot get swedish characters to work, I just get a
square. I've tried different fonts which I know has those characters
(bitstream vera, arial,
Daniel Brown schreef:
On Thu, Feb 28, 2008 at 9:17 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:
before going any further, your HTML page is in UTF-8 yes? with the
appropriate content-type line.
That wouldn't matter, Nate. It's an image (and already rendered
as a static graphical object)
David Sveningsson schreef:
Hi, I've ran into some problems when outputing text to an image using
imagettftext. I cannot get swedish characters to work, I just get a
square. I've tried different fonts which I know has those characters
(bitstream vera, arial, times new roman, etc). What am I doin
Greg Donald schreef:
On 2/28/08, Casey <[EMAIL PROTECTED]> wrote:
#!/usr/bin/php
Or the entirely more portable version:
#!/usr/bin/env php
thanks for the tip :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel Brown schreef:
On Thu, Feb 28, 2008 at 5:06 AM, Jochem Maas <[EMAIL PROTECTED]> wrote:
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 1:56 PM, Richard S. Crawford
> <[EMAIL PROTECTED]> wrote:
> [snip!]
>> I know that I could pass the name of the functi
Nathan Rixham schreef:
how's this?
#!/usr/bin/php
data = ltrim($bucket->data,"#!/usr/bin/php\n");
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return PSFS_PASS_ON;
}
}
stream_filter_register("trim.shebang", "trimshebang");
include "php://filter/rea
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 sc
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
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:
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 favour
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
Stut schreef:
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 output (and strip it from the output w
Andrés Robinet schreef:
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 28, 2008 6:39 AM
To: [php] PHP General List
Subject: [PHP] output buffering in CLI script.
hi there,
I can't seem to manage to buffer output (of an included file) in
hi there,
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
output (and strip it from the output we log)
$oldIFvalue = ini_set('implicit_flu
was just cruising the manual and came accross a nice tidbit.
from: http://nl.php.net/features.commandline
Shows configuration file names and scanned directories. Available as of PHP
5.2.3.
Example#3 --ini example
$ php --ini
Configuration File (php.ini) Path: /usr/dev/php/5.2/lib
Loaded Con
Daniel Brown schreef:
On Wed, Feb 27, 2008 at 1:56 PM, Richard S. Crawford
<[EMAIL PROTECTED]> wrote:
For my own amusement, I'm writing a function that will print out detailed
error messages for an API that I'm creating for a minor project. One of the
pieces of information I'd like to return
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
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). S
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 "
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."
We
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 bear
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 re
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 db
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 at
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 c
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?
>
>
>
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
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 a
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 al
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 everyone
only if your markup is correct
Now you sound like my wife. :-)
for your sake I
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 everyone
only if your markup is correct
"but it eventually comes to everyone"
;-)
Cheers,
tedd
--
PHP General Mailing List (http://www.ph
tedd schreef:
Hi gang:
I want to send a styled email via heredoc, can that be done?
$message = <<
that's just string generation ... 'style' equates to harassing people
with HTML emails ... which will require a message built using the multipart mime
specification ... for which you'll want to gr
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,
Rob.
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
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
stat
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
ne
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
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
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
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 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
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++;}}$obj1
l maybe post
it as a bug - but wanted to make sure 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
@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
(Connection
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, I'
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 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 Te
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 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
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.
...
.
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 ot
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
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 indicate
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
doc_ro
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
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
as
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
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
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:
debugging, i got $rowA[0] = 54, but i wa
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."
Twel
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 complete
2008-02-01 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 post
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 w
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 fr
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, likes,
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 c
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.
Incl
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.
>
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
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'
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,
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 anybod
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 w
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 we
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 t
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
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 Heye
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
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 i
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.
fi
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
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: http://ww
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
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 tas
at once then process 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
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 i
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 assi
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());
obje
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
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 whe
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
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 fo
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 workarou
nihilism machine schreef:
How does this look now?
just as bad as before. you haven't even tried to run the code have you?
$connInfo;
}
}
?>
public __constructor(){
$this->$connInfo = new dbconfig();
$username =
$hostname =
$password =
$
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 you
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
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: http://www.php.n
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 un
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
501 - 600 of 3360 matches
Mail list logo