On Thu, 2009-11-19 at 17:43 -0800, Daevid Vincent wrote:
I was reading this: http://pear.php.net/manual/en/standards.including.php
and it states:
Note: include_once and require_once are statements, not functions.
Parentheses should not surround the subject filename.
I never knew
Daevid Vincent wrote:
I have a form with probably 100+ elements from input, checkbox, select
boxes, textareas, etc. It's extremely tedious to fill these in all the time
and submit while developing/testing.
Anyone know of a plugin to Firefox (or IE for that matter) that will fill in
the
Daevid Vincent wrote:
I was reading this: http://pear.php.net/manual/en/standards.including.php
and it states:
Note: include_once and require_once are statements, not functions.
Parentheses should not surround the subject filename.
I never knew that. I've always (wrongly) used:
Ford, Mike wrote:
-Original Message-
From: Nisse Engström [mailto:news.nospam.0ixbt...@luden.se]
Sent: 19 November 2009 14:54
To: php-general@lists.php.net
Subject: Re: [PHP] Noob question: Making search results clickable.
On Wed, 18 Nov 2009 10:31:59 -0500, Paul M Foster wrote:
Yo!
I have a working form that adds user input to an XML file, it adds the
new item element to the bottom of the list of previously created
item elements.
I would now like the new elements to be added to the top of the list.
So far i've tried using: insertBefore() but i'm still getting
From: Daevid Vincent
I have a form with probably 100+ elements from input, checkbox, select
boxes, textareas, etc. It's extremely tedious to fill these in all the
time
and submit while developing/testing.
Anyone know of a plugin to Firefox (or IE for that matter) that will
fill in
the
I have a tricky problem.
I'm trying to make a progress feedback mechanism to keep users informed about a
slowish process on the server end of a web app. The backend is generating a PDF
file from a bunch of data which extends to many pages. I can keep tabs on the
progress of this generation by
-Original Message-
From: Peter Ford [mailto:p...@justcroft.com]
Sent: 20 November 2009 15:18
To: php-general@lists.php.net
Subject: [PHP] Does PHP block requests?
I have a tricky problem.
I'm trying to make a progress feedback mechanism to keep users
informed about a
slowish
Nathan Rixham wrote:
Daevid Vincent wrote:
I was reading this: http://pear.php.net/manual/en/standards.including.php
and it states:
Note: include_once and require_once are statements, not functions.
Parentheses should not surround the subject filename.
I never knew that. I've always
Hi,
We are currently using PHP version 5.2.6. in production, and I'd like to
upgrade to the latest 5.3.1
My Assumptions:
- I can simply download the Windows binary file, and install it.
- None of the 5.2.6 code will break
Will there be a momentary interruption of web services during the
Forgot to ask:
On the Windows download page, there are options like:
VC9 Thread Safe
VC9 Non-Thread Safe
VC6 Thread Safe
...etc
What is the VC, and what is thread safe?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Assumption 2 is invalid. You need to take a close look at the change
log. Many features from 5.2 are no longer available and will break
code that depends on them.
Bob McConnell
-Original Message-
From: David Stoltz [mailto:dsto...@shh.org]
Sent: Friday, November 20, 2009 10:50 AM
To:
Matthew Croud wrote:
The XML looks like:
Clothes
Item.../Item
Item.../Item
Item.../Item
- new items are added here
Clothes
This is what my code looks like:
$y = $dom - getElementsByTagName(item);
$dom - documentElement - insertBefore($Xitem,$y);
If trying to pass the top
Hi I am a new user of PHP..in my project i have put login forms and i am
able to login successful but the pages after the login can be accessed
directly by typing the address so if any one can help in this matter.
Thank you,
--
Nitin
Bob - I checked the changelog - 99% of it are bug fixes
I don't see anything about 5.2.x features not being available as you
suggest.
But thanks for the reply.
-Original Message-
From: Bob McConnell [mailto:r...@cbord.com]
Sent: Friday, November 20, 2009 10:50 AM
To: David Stoltz;
You can use either cookies of sessions to maintain security:
Some pseudo code:
Login page:
Login successful? If yes, set session value LOGIN = YES
Then on all other pages, 1st check session value LOGINif != YES
then bump them to the login page.
Make sense?
-Original Message-
David Stoltz wrote:
Forgot to ask:
On the Windows download page, there are options like:
VC9 Thread Safe
VC9 Non-Thread Safe
VC6 Thread Safe
...etc
What is the VC, and what is thread safe?
Thanks!
VC = Microsoft Visual C. 9 and 6 are the versions.
De-lurking here.
I'm trying, with no success, to use some CSS styling on my PHP output.
Here's the code I want to style:
echo 'trtd class=spacer'.$row[0].'/tdtd'.$row[1].'/td
I want to use a CSS style for the second td cell, picking up the style
from the value of a variable. I tried this:
Hi,
$newcolor = color: red;
td style= ? echo($newcolor): ?'.$row[1].'/td
But it doesn't work. No problem with th spacer class, works fine. I just
can't get the syntax for pulling a CSS style from a PHP var.
You could do this:
?php
$newcolor = 'red';
echo td
We are currently using PHP version 5.2.6. in production, and I'd like to
upgrade to the latest 5.3.1
Before upgrading production, upgrade your staging server and do QA.
Any big changes like this should be tested in staging before being
pushed to production. Also take a look at
You may be right, I keep thinking of the bugs that were dropped out of
6.0, like magic quotes and register globals. They're only deprecated in
5.3.
bm
-Original Message-
From: David Stoltz [mailto:dsto...@shh.org]
Sent: Friday, November 20, 2009 10:59 AM
To: Bob McConnell;
Hi
How can i create a web page that include some gadgets? what kind of
technology do i have to use to creating web pages like igoogle and gmail?
How can i create them by php?
On Fri, 2009-11-20 at 23:15 +0330, Ali Asghar Toraby Parizy wrote:
Hi
How can i create a web page that include some gadgets? what kind of
technology do i have to use to creating web pages like igoogle and gmail?
How can i create them by php?
Wow!
Well, first what is it you want to do? Make
On Fri, 2009-11-20 at 14:45 -0500, Phil Matt wrote:
I am trying to style HTML table cells depending on the values stored in
a MySQL db. Thanks to other on this list, I can now refer to the
variable that holds a CSS styling value.
Now, I need to apply different values of that variable,
On Fri, 2009-11-20 at 15:11 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
Well, you're main problem here is that you are only using a single =
character. What that is saying to PHP is: if you let me assign the
value of $beverage to $row[3] then do this next bit, but what I think
On Fri, 2009-11-20 at 15:30 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
print $row[3];
Does it contain a string like you expect?
Yes. I'm going to try the same kind of formatting on a different $row
cell and see what happens.
Cheers and thanks again --- Phil
Copying back
To add to what Ashley said about $row[3], remember that when you are
returning from the db the counter for fields will start at 0 not 1, so if
its the 3rd field that will be $row[2]. You might also want to do switch
rather then elseif but thats always a good debate.
On Fri, Nov 20, 2009 at 3:16
Ashley Sheridan wrote:
Copying back the phplist *again*!
Sorry. I'll remember to copy in...
what does your code currently look like now, with the right == in?
$entree=meat;
$beverage=coffee;
if ($row[3] == $entree)
{
$newcolor=color:red;
}
elseif ($row[3] == $beverage)
{
Dan McCullough wrote:
To add to what Ashley said about $row[3], remember that when you are
returning from the db the counter for fields will start at 0 not 1, so
if its the 3rd field that will be $row[2]. You might also want to do
switch rather then elseif but thats always a good debate.
Jônatas Zechim wrote:
Try:
echo 'td style=' . $newcolor .'' . $row[1] . '/td';
Thanks, Jônatas. This was the solution.
Cheers --- Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2009-11-20 at 15:52 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
Copying back the phplist *again*!
Sorry. I'll remember to copy in...
what does your code currently look like now, with the right == in?
$entree=meat;
$beverage=coffee;
if ($row[3] == $entree)
{
Ashley Sheridan wrote:
copy the results of this:
vardump($row);
Sirloin Steak freshAcmemeat
Chicken Breast frozen Acmemeat
Decaf Columbianpantry Giant coffee
Ice Cream frozen Giant dessert
All looks as expected.
NB: This is just
On Fri, 2009-11-20 at 16:17 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
copy the results of this:
vardump($row);
Sirloin SteakfreshAcmemeat
Chicken Breast frozen Acmemeat
Decaf Columbian pantry Giant coffee
Ice Cream
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: 20 November 2009 21:16
To: Phil Matt
Cc: php-general@lists.php.net
Subject: Re: [PHP] Change styling depending on var value
On Fri, 2009-11-20 at 16:17 -0500, Phil Matt wrote:
Ashley Sheridan
Ashley Sheridan wrote:
That's not a vardump, a vardump would contain the type of variable. I
wanted to see the whole thing.
I played with this for a while and checked the PHP manual; not sure how
to use this.
Cheers --- Phil
--
PHP General Mailing List (http://www.php.net/)
To
On Fri, 2009-11-20 at 16:41 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
That's not a vardump, a vardump would contain the type of variable. I
wanted to see the whole thing.
I played with this for a while and checked the PHP manual; not sure how
to use this.
Cheers --- Phil
-Original Message-
From: Peter Ford [mailto:p...@justcroft.com]
Sent: 20 November 2009 16:40
You're right about trying to use the same session - that was the
plan to get the
progress state passed across from one call to the other.
Closing the session on the generator script has
Ashley Sheridan wrote:
As Mike pointed out, I meant var_dump(), sorry!
Is the idea to put the variable in question within the parentheses?
I tried the statement,
var_dump($row[3];
And I got in the output:
NULL
Also tried
var_dump();
And I got in the output:
Warning: Wrong parameter
On Fri, 2009-11-20 at 17:08 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
As Mike pointed out, I meant var_dump(), sorry!
Is the idea to put the variable in question within the parentheses?
I tried the statement,
var_dump($row[3];
And I got in the output:
NULL
Also
Ashley Sheridan wrote:
put
var_dump($row);
I inserted this line in the script at the end of the html table, still
inside the PHP echo statement.
This yields:
bool(false)
Cheers --- Phil
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2009-11-20 at 17:23 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
put
var_dump($row);
I inserted this line in the script at the end of the html table, still
inside the PHP echo statement.
This yields:
bool(false)
Cheers --- Phil
That means that $row doesn't
Hi,
I need to pull all records from the table Registrants they are NOT in
the table ToBeRecleared
Registrants.Reg_ID is PK
ToBeRecleared.tbrc_Reg_ID is PK
Which query is more correct?
SELECT r.*
FROM registrants r
where r.reg_status=1 AND r.reg_id NOT IN (SELECT tbrc_reg_id FROM
On Fri, 2009-11-20 at 16:41 -0600, LAMP wrote:
Hi,
I need to pull all records from the table Registrants they are NOT in
the table ToBeRecleared
Registrants.Reg_ID is PK
ToBeRecleared.tbrc_Reg_ID is PK
Which query is more correct?
SELECT r.*
FROM registrants r
where r.reg_status=1
On Nov 20, 2009, at 2:29 PM, Ashley Sheridan wrote:
On Fri, 2009-11-20 at 17:23 -0500, Phil Matt wrote:
Ashley Sheridan wrote:
put
var_dump($row);
I inserted this line in the script at the end of the html table, still
inside the PHP echo statement.
This yields:
bool(false)
On Fri, 20 Nov 2009 16:41:58 -0600, LAMP wrote:
SELECT r.*
FROM registrants r
where r.reg_status=1 AND r.reg_id NOT IN (SELECT tbrc_reg_id FROM
toberecleared)
SELECT r.*
FROM registrants r
where r.reg_status=1 AND (SELECT count(*) FROM toberecleared where
tbrc_reg_id=r.reg_id) = 0
On Fri, Nov 20, 2009 at 04:41:58PM -0600, LAMP wrote:
Hi,
I need to pull all records from the table Registrants they are NOT
in the table ToBeRecleared
Registrants.Reg_ID is PK
ToBeRecleared.tbrc_Reg_ID is PK
Which query is more correct?
SELECT r.*
FROM registrants r
where
-Original Message-
From: Shawn McKenzie [mailto:nos...@mckenzies.net]
Sent: Friday, November 20, 2009 7:42 AM
To: Nathan Rixham
Cc: Daevid Vincent; php-general@lists.php.net
Subject: [PHP] Re: need a find/replace command to fix my require_once
Nathan Rixham wrote:
Daevid
Hey can one help me in creating different users using mysql for php and
assigning different privileges for them ..any sample code available?
--
PASULA NITIN REDDY
Graduate Student in Computer Science Department
University of Minnesota,Twin Cities
Minneapolis.
I tried to post this note to here:
http://us2.php.net/manual/add-note.php
But the stupid-ass form says:
Your note contains a prohibited (usually SPAM) word. Please
remove it and try again.
WTF!? It doesn't even TELL me what f'n word is the problem.
Seriously? It already asked me the
-Original Message-
From: Nathan Rixham [mailto:nrix...@gmail.com]
Sent: Friday, November 20, 2009 1:29 AM
To: Daevid Vincent
Cc: php-general@lists.php.net
Subject: Re: need a find/replace command to fix my require_once
Daevid Vincent wrote:
I was reading this:
50 matches
Mail list logo