php-general Digest 30 Jun 2009 10:33:10 - Issue 6203
Topics (messages 294723 through 294731):
Re: Named pair array from variable
294723 by: Ashley Sheridan
294724 by: Shawn McKenzie
294725 by: Shawn McKenzie
Re: Best way to reinstate radio-button states from
Hello again guys,
I was wondering the best way to tackle the following problem:
I've got a class, containing a property which is another object. So from
outside I should be able to do
$firstobject-propertycontainingobject-methodinsidethatobject();
The $firstobject variable is in the global
GPS Administrative Page v2.3.12 (BETA)My array:
Array ( [0] = Demo2.txt [1] = Demo.txt [2] = Demo.txt )
How could I push the values as:
- Demo2.txt, Demo.txt, Demo.txt?
Not sure which approach is good.
$saveFiles = array();
array_push($saveFiles, $ufName);
Help
--
Louie Miranda
My array:
Array ( [0] = Demo2.txt [1] = Demo.txt [2] = Demo.txt )
How could I push the values as:
- Demo2.txt, Demo.txt, Demo.txt?
Not sure which approach is good.
$saveFiles = array();
array_push($saveFiles, $ufName);
you could use array_push(), or the shorter syntax:
o
Hi All,
Should I need to install php5.X version. If so, can you please give me the link
where I can get the source for AIX and install over php4.X.
Secondly, I used a simple code as below to get the output, but now, it gives
blank page.
html
head
titlePHP Test/title
/head
body
?php
May be array_merge($array, explode(,, $string)).
--
João Cândido de Souza Neto
SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
Louie Miranda lmira...@gmail.com escreveu na mensagem
news:5016fc50906300125s12389ae1v3323c63c30343...@mail.gmail.com...
GPS
I think the best way is passing the object instance as a parameter to the
messwithotherthings method.
--
João Cândido de Souza Neto
SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
Luke l...@blog-thing.com escreveu na mensagem
Luke wrote:
Hello again guys,
I was wondering the best way to tackle the following problem:
I've got a class, containing a property which is another object. So from
outside I should be able to do
$firstobject-propertycontainingobject-methodinsidethatobject();
The $firstobject variable
It should be passed into the constructor as a parameter. If you're
using OOP properly, there's no reason to use $GLOBALS, ever. Any
variable in the $GLOBALS array exists twice in memory, so just keep
that in mind, if you plan to use it.
On Tue, Jun 30, 2009 at 8:43 AM, Peter
Hello!
The PHP Development Team would like to announce the immediate release
of PHP 5.3.0. This release is a major improvement in the 5.X series,
which includes a large number of new features and bug fixes.
Release Announcement: http://www.php.net/release/5_3_0.php
Downloads:
Lukas Kahwe Smith wrote:
Hello!
The PHP Development Team would like to announce the immediate release
of PHP 5.3.0. This release is a major improvement in the 5.X series,
which includes a large number of new features and bug fixes.
Release Announcement: http://www.php.net/release/5_3_0.php
Hi List,
Please find the error message below when I logged into managed jobs. Please
advice me to get rid of this.
The PHP-Extension domxml is needed to display job scheduler
informations
Please adjust the setting in the coniguration file php.ini
repeat status check
2009/6/30 Suresh Gupta VG sures...@zensar.com:
Hi List,
Please find the error message below when I logged into managed jobs. Please
advice me to get rid of this.
The PHP-Extension domxml is needed to display job scheduler
informations
Please adjust the setting in the coniguration
On Tue, Jun 30, 2009 at 09:42, Suresh Gupta VGsures...@zensar.com wrote:
Hi List,
Please find the error message below when I logged into managed jobs. Please
advice me to get rid of this.
Get rid of this.
The PHP-Extension domxml is needed to display job scheduler
Okay, what I am trying to do is this:
I have a db full of inspections, daily I need to run a script that will grab
the posting of inspections, check them against the db to make sure they
aren't duplicates and then insert all the new entries. Not sure if my
logic of going about it this way is
2009/6/30 Eddie Drapkin oorza...@gmail.com
It should be passed into the constructor as a parameter. If you're
using OOP properly, there's no reason to use $GLOBALS, ever. Any
variable in the $GLOBALS array exists twice in memory, so just keep
that in mind, if you plan to use it.
On Tue,
2009/6/30 pan p...@syix.com
Lukas Kahwe Smith wrote:
Hello!
The PHP Development Team would like to announce the immediate release
of PHP 5.3.0. This release is a major improvement in the 5.X series,
which includes a large number of new features and bug fixes.
Release Announcement:
On Tuesday 30 June 2009 15:42:01 Miller, Terion wrote:
Okay, what I am trying to do is this:
I have a db full of inspections, daily I need to run a script that will
grab the posting of inspections, check them against the db to make sure
they aren't duplicates and then insert all the new
Luke wrote:
Thanks for the replies :)
Surely if I pass it as a parameter to the __construct then I would have to
make an instance of the otherObject, notice that messwithotherthings is
static?
Also, if I'm not using OOP properly, Eddie, how would I use it properly to
prevent this
On Tue, Jun 30, 2009 at 10:44 AM, Lukel...@blog-thing.com wrote:
2009/6/30 Eddie Drapkin oorza...@gmail.com
It should be passed into the constructor as a parameter. If you're
using OOP properly, there's no reason to use $GLOBALS, ever. Any
variable in the $GLOBALS array exists twice in
On Tue, Jun 30, 2009 at 11:12 AM, Peter Fordp...@justcroft.com wrote:
Luke wrote:
Thanks for the replies :)
Surely if I pass it as a parameter to the __construct then I would have to
make an instance of the otherObject, notice that messwithotherthings is
static?
Also, if I'm not using OOP
On Tue, Jun 30, 2009 at 11:17 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tuesday 30 June 2009 15:42:01 Miller, Terion wrote:
Okay, what I am trying to do is this:
I have a db full of inspections, daily I need to run a script that will
grab the posting of inspections, check them
On 4-Sep-08, at 12:06 AM, Andi Gutmans wrote:
Btw, contrary to what many believe, 32bit PHP tends to perform better
than 64bit PHP.
So unless there's a really good reason why you want 64bit I wouldn't
waste too much time on that.
I have heard this before, but CPU hasn't really been our
On 6/30/09 10:40 AM, Bastien Koert phps...@gmail.com wrote:
On Tue, Jun 30, 2009 at 11:17 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tuesday 30 June 2009 15:42:01 Miller, Terion wrote:
Okay, what I am trying to do is this:
I have a db full of inspections, daily I need to run a
On Tue, Jun 30, 2009 at 11:17:17AM -0400, Eddie Drapkin wrote:
snip
I wouldn't really recommend going with a singleton in this situation,
as there exists a different solution (my other post :P) and there are
very few actual use-cases where the pattern makes sense, and deploying
it
On Tue, Jun 30, 2009 at 12:37 PM, Paul M Fosterpa...@quillandmouse.com wrote:
On Tue, Jun 30, 2009 at 11:17:17AM -0400, Eddie Drapkin wrote:
snip
I wouldn't really recommend going with a singleton in this situation,
as there exists a different solution (my other post :P) and there are
very
On Tue, Jun 30, 2009 at 12:09 PM, Miller,
Teriontmil...@springfi.gannett.com wrote:
On 6/30/09 10:40 AM, Bastien Koert phps...@gmail.com wrote:
On Tue, Jun 30, 2009 at 11:17 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tuesday 30 June 2009 15:42:01 Miller, Terion wrote:
Okay,
Does this list of inspections exist in the db? Could you not use an
INSERT INTO SELECT * FROM TABLE WHERE type statement...much less
processing overhead then
--
Bastien
Cat, the other other white meat
Hi Bastien,
Something like this is what you mean?
if (!empty($Go)) {
On Tue, Jun 30, 2009 at 2:19 PM, Miller,
Teriontmil...@springfi.gannett.com wrote:
Does this list of inspections exist in the db? Could you not use an
INSERT INTO SELECT * FROM TABLE WHERE type statement...much less
processing overhead then
--
Bastien
Cat, the other other white meat
On 6/30/09 11:17 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
It's a bad way of doing it, but could you not create a unique index on the
particular key you want to be unique, and then just try the select anyway
with the mysql_query() call preceeded with an @ to suppress warnings?
if
On 6/30/09 1:31 PM, Tom Worster f...@thefsb.org wrote:
On 6/30/09 11:17 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
It's a bad way of doing it, but could you not create a unique index on the
particular key you want to be unique, and then just try the select anyway
with the
On 6/29/09 10:26 PM, Michael A. Peters mpet...@mac.com wrote:
Rob Gould wrote:
I have a webpage which allows people to log in and make selections with
radio buttons and hit SUBMIT and saves the data from those radio buttons
to a mySQL database.
However, I'm finding that I also need the
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it in a
test pages, nothing in the world gets it to work. This is rather
frustrating, again:
THIS WORKS IN ANOTHER PAGE; IN THE TEST PAGE ID DOES NOT.
$sql = SELECT id
PJ wrote:
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it in a
test pages, nothing in the world gets it to work. This is rather
frustrating, again:
THIS WORKS IN ANOTHER PAGE; IN THE TEST PAGE ID DOES NOT.
On Tue, Jun 30, 2009 at 4:01 PM, PJaf.gour...@videotron.ca wrote:
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it in a
test pages, nothing in the world gets it to work. This is rather
frustrating, again:
THIS
On Tue, Jun 30, 2009 at 4:48 PM, PJaf.gour...@videotron.ca wrote:
PJ wrote:
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it in a
test pages, nothing in the world gets it to work. This is rather
frustrating,
On Tue, Jun 30, 2009 at 4:50 PM, Bastien Koertphps...@gmail.com wrote:
On Tue, Jun 30, 2009 at 4:48 PM, PJaf.gour...@videotron.ca wrote:
PJ wrote:
Could somebody please explain to me what is wrong with this code?
In my script it works, returns the correct id, but when I try it in a
test
[snip]
Use the OOP interface to mysqli or PDO and these problems don't happen
[/snip]
Either that or include a modicum of error checking in your code.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Eddie Drapkin wrote:
On Tue, Jun 30, 2009 at 10:44 AM, Lukel...@blog-thing.com wrote:
What I meant, and I probably sounded a bit rougher than I absolutely
had to, was that it's pretty universally lazy and/or bad design to use
global variables inside a class, because classes have member
You are correct as there was no metaphor in here at all! This, It
helps to think of classes like cars on a highway, is almost a simile,
but on the whole I would probably say that you were using an analogy :-)
HEIL SPELLCHECK!
I bow to my grammar nazi superior *bow*
--
PHP General Mailing
This might seem silly but here's what I'm trying to do
Suppose I have some kind of check variable - say for example
$abort_now. Or it could be a function. Something to be evaluated to a
value.
I want to execute a block of statements, but after EACH statement
executes, check the value of
Flint Million wrote:
This might seem silly but here's what I'm trying to do
Suppose I have some kind of check variable - say for example
$abort_now. Or it could be a function. Something to be evaluated to a
value.
I want to execute a block of statements, but after EACH statement
Tom Worster wrote:
*snip*
michael: radios and checkboxes take the checked attribute -- options in
selects take the selected attribute.
Doh - I knew that.
Typo. I always thought it silly there were two different attributes
anyway, when they basically are same thing and can never both occur in
Jay Blanchard wrote:
[snip]
Use the OOP interface to mysqli or PDO and these problems don't happen
[/snip]
Either that or include a modicum of error checking in your code.
OK, Ok, I feel stupid enough already.
I'm not sure I want to get in that deep... it's tough enough with the
simple
Hi all,
I have a php application for which I have a page which creates
temporary junk and puts it into a persistent store (in this case a
postgres database, but that is beside the point.)
I have a Save button which puts the stuff I really want into the
persistent store and cleans up
Mary Anderson wrote:
Hi all,
I have a php application for which I have a page which creates
temporary junk and puts it into a persistent store (in this case a
postgres database, but that is beside the point.)
I have a Save button which puts the stuff I really want into the
persistent
On Tue, Jun 30, 2009 at 06:31:54PM -0500, Flint Million wrote:
This might seem silly but here's what I'm trying to do
Suppose I have some kind of check variable - say for example
$abort_now. Or it could be a function. Something to be evaluated to a
value.
I want to execute a block of
On Tue, Jun 30, 2009 at 06:38:19PM -0700, Mary Anderson wrote:
Hi all,
I have a php application for which I have a page which creates
temporary junk and puts it into a persistent store (in this case a
postgres database, but that is beside the point.)
I have a Save button which puts
This is what I did. And it worked.
$saveFiles = array();
$arrSize=sizeof($saveFiles);
for ($number = 0; $number $arrSize; $number++) {
$saveFilesDump = $saveFiles[$number], ;
echo $saveFiles[$number], ;
}
File1.txt, File2.txt, File3.txt,
yes, the browser evoke unload event when leave the page (back, forward, or
close). you can send a message via ajax, but it may not been received by the
server successful, (when close the browser)
I think the best way is maintaining a timestamp as michael paul say, and
clear the 'junk' timely.
On Jun 30, 2009, at 10:48 PM, Paul M Foster pa...@quillandmouse.com
wrote:
On Tue, Jun 30, 2009 at 06:31:54PM -0500, Flint Million wrote:
This might seem silly but here's what I'm trying to do
Suppose I have some kind of check variable - say for example
$abort_now. Or it could be a
On Jun 30, 2009, at 10:59 PM, Paul M Foster pa...@quillandmouse.com
wrote:
On Tue, Jun 30, 2009 at 06:38:19PM -0700, Mary Anderson wrote:
Hi all,
I have a php application for which I have a page which creates
temporary junk and puts it into a persistent store (in this case a
On Tue, Jun 30, 2009 at 11:21:03PM -0400, Phpster wrote:
On Jun 30, 2009, at 10:48 PM, Paul M Foster pa...@quillandmouse.com
wrote:
snip
FWIW, I've had to do this exact thing with regard to form validation,
except I'm not looping. Check each condition, and if it fails, never
mind
Lukas Kahwe Smith wrote:
Hello!
The PHP Development Team would like to announce the immediate release of
PHP 5.3.0. This release is a major improvement in the 5.X series, which
includes a large number of new features and bug fixes.
Release Announcement: http://www.php.net/release/5_3_0.php
54 matches
Mail list logo