php-general Digest 19 Nov 2008 09:57:20 -0000 Issue 5798
Topics (messages 283485 through 283513):
Re: anchor name on URL
283485 by: Stan
283486 by: Ashley Sheridan
283487 by: Boyd, Todd M.
283489 by: Yeti
283491 by: Ashley Sheridan
283492 by: Daniel P. Brown
283493 by: Ashley Sheridan
283494 by: Daniel Brown
283496 by: Ashley Sheridan
283498 by: Daniel Brown
283501 by: Richard Heyes
283503 by: Ashley Sheridan
283504 by: Richard Heyes
283505 by: Ashley Sheridan
283506 by: Daniel P. Brown
283509 by: Ashley Sheridan
283510 by: Micah Gersten
283511 by: Craige Leeder
283513 by: Yeti
Re: Help insert not working, implode errors....
283488 by: Terion Miller
283490 by: Ashley Sheridan
283507 by: Jim Lucas
Scheduling scripts?
283495 by: tedd
283499 by: Daniel P. Brown
283500 by: Richard Heyes
283502 by: bruce
283508 by: Jim Lucas
PostTrack/ListWatch System
283497 by: Daniel P. Brown
NetBeans & xdebug
283512 by: Craige Leeder
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Well ... you got me thinking ...
I moved the placement of the named anchor to inside the first <td> tag in
the row and it works (instead of inside the <tr> tag.
Sorry.
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 14:21 -0600, Stan wrote:
> Well ... you got me thinking ...
>
> I moved the placement of the named anchor to inside the first <td> tag in
> the row and it works (instead of inside the <tr> tag.
>
> Sorry.
>
>
>
Ah, it seems that the doctype might have been to blame then, as an <a>
tag cannot exist within a <tr> unless it is in a <td> or <th>. If in
doubt, run your page through the W3C Validator, as it's a great help in
catching bugs.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 18, 2008 2:34 PM
> To: Stan
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: anchor name on URL
>
> On Tue, 2008-11-18 at 14:21 -0600, Stan wrote:
> > Well ... you got me thinking ...
> >
> > I moved the placement of the named anchor to inside the first <td>
> tag in
> > the row and it works (instead of inside the <tr> tag.
> >
> > Sorry.
> >
> >
> >
> Ah, it seems that the doctype might have been to blame then, as an <a>
> tag cannot exist within a <tr> unless it is in a <td> or <th>. If in
> doubt, run your page through the W3C Validator, as it's a great help
in
> catching bugs.
I also think it's worth mentioning that the XHTML standard will refer to
the "id" attribute, not the "name" attribute, when searching for a link
in the format "#identifier". Many people double-up (putting the same
value in both attributes) for backwards-compatibility. I look forward to
the day when markup isn't so bloated due to the inability of certain web
browser franchises to "get it right."
// Todd
--- End Message ---
--- Begin Message ---
> I look forward to the day when markup isn't so bloated
> due to the inability of certain web browser franchises to "get it right."
Although I usually look at the future through an optimistic point of
view, that day may never come.
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 14:58 -0800, Yeti wrote:
> > I look forward to the day when markup isn't so bloated
> > due to the inability of certain web browser franchises to "get it right."
>
> Although I usually look at the future through an optimistic point of
> view, that day may never come.
>
You say that, have you heard the latest for IE9? They're already
planning it, and apparently it's going to use the Webkit engine!
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Tue, Nov 18, 2008 at 6:09 PM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
>>
> You say that, have you heard the latest for IE9? They're already
> planning it, and apparently it's going to use Microsoft's own
> version of the Webkit engine!
Fixed your post, Ash.
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 18:09 -0500, Daniel P. Brown wrote:
> On Tue, Nov 18, 2008 at 6:09 PM, Ashley Sheridan
> <[EMAIL PROTECTED]> wrote:
> >>
> > You say that, have you heard the latest for IE9? They're already
> > planning it, and apparently it's going to use Microsoft's own
> > version of the Webkit engine!
>
> Fixed your post, Ash.
>
I don't think you fixed it, so much as wrote something else and made it
look like I wrote it...
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Tue, Nov 18, 2008 at 6:14 PM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
>>
> I don't think you fixed it, so much as wrote something else and made it
> look like I wrote it...
Yes.
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 18:21 -0500, Daniel Brown wrote:
> On Tue, Nov 18, 2008 at 6:14 PM, Ashley Sheridan
> <[EMAIL PROTECTED]> wrote:
> >>
> > I don't think you fixed it, so much as wrote something else and made it
> > look like I wrote it...
>
> Yes.
>
> --
> </Daniel P. Brown>
> http://www.parasane.net/
> [EMAIL PROTECTED] || [EMAIL PROTECTED]
> Ask me about our current hosting/dedicated server deals!
>
I'd really rather you didn't, please.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Tue, Nov 18, 2008 at 6:29 PM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
>>
> I'd really rather you didn't, please.
And I'd rather you had a sense of humor. So in hindsight, we both
learned something.
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
--- End Message ---
--- Begin Message ---
> You say that, have you heard the latest for IE9? They're already
> planning it, and apparently it's going to use the Webkit engine!
That would be nice, if only for the rather good canvas support, which
I kinda have a vested interest in.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 23:44 +0000, Richard Heyes wrote:
> > You say that, have you heard the latest for IE9? They're already
> > planning it, and apparently it's going to use the Webkit engine!
>
> That would be nice, if only for the rather good canvas support, which
> I kinda have a vested interest in.
>
> --
> Richard Heyes
>
> HTML5 Graphing for FF, Chrome, Opera and Safari:
> http://www.rgraph.org (Updated November 15th)
>
Yeah, but it will mean that there will still be about 3 different
rendering versions of IE out there by the time it comes out; 7, 8 and 9
(I'm fairly sure 6 will have gone to that good ol' web in the sky by
that time)
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
> Yeah, but it will mean that there will still be about 3 different
> rendering versions of IE out there by the time it comes out; 7, 8 and 9
> (I'm fairly sure 6 will have gone to that good ol' web in the sky by
> that time)
Sure, but depending on how closely it follows WebKit, could make
testing on IE9, Safari and Chrome a breeze.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 23:51 +0000, Richard Heyes wrote:
> > Yeah, but it will mean that there will still be about 3 different
> > rendering versions of IE out there by the time it comes out; 7, 8 and 9
> > (I'm fairly sure 6 will have gone to that good ol' web in the sky by
> > that time)
>
> Sure, but depending on how closely it follows WebKit, could make
> testing on IE9, Safari and Chrome a breeze.
>
> --
> Richard Heyes
>
> HTML5 Graphing for FF, Chrome, Opera and Safari:
> http://www.rgraph.org (Updated November 15th)
>
Don't forget Konqueror in that list ;) It's not exactly the same engine
after Apple forked it from KHTML, but it's quite close, and both
Konqueror and Safari are said to be working a little more closely than
before to share the work done to the rendering engines since the fork.
I'm waiting for the day when Firefox starts using Google's V8 scripting
engine!
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Tue, Nov 18, 2008 at 6:57 PM, Ashley Sheridan
<[EMAIL PROTECTED]> wrote:
>>
> Don't forget Konqueror in that list ;) It's not exactly the same engine
> after Apple forked it from KHTML, but it's quite close, and both
> Konqueror and Safari are said to be working a little more closely than
> before to share the work done to the rendering engines since the fork.
A few years ago, that was the only browser I'd use for web
surfing. I'm honestly not sure where it's market share is now, but
I'd guess only in the 1% range. It's a shame.... it's a viable player
on the field.
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 19:01 -0500, Daniel P. Brown wrote:
> On Tue, Nov 18, 2008 at 6:57 PM, Ashley Sheridan
> <[EMAIL PROTECTED]> wrote:
> >>
> > Don't forget Konqueror in that list ;) It's not exactly the same engine
> > after Apple forked it from KHTML, but it's quite close, and both
> > Konqueror and Safari are said to be working a little more closely than
> > before to share the work done to the rendering engines since the fork.
>
> A few years ago, that was the only browser I'd use for web
> surfing. I'm honestly not sure where it's market share is now, but
> I'd guess only in the 1% range. It's a shame.... it's a viable player
> on the field.
>
> --
> </Daniel P. Brown>
> http://www.parasane.net/
> [EMAIL PROTECTED] || [EMAIL PROTECTED]
> Ask me about our current hosting/dedicated server deals!
>
Now I tend only to use it now for file management, FTP and testing
websites.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
> On Tue, 2008-11-18 at 23:51 +0000, Richard Heyes wrote:
>
>>> Yeah, but it will mean that there will still be about 3 different
>>> rendering versions of IE out there by the time it comes out; 7, 8 and 9
>>> (I'm fairly sure 6 will have gone to that good ol' web in the sky by
>>> that time)
>>>
>> Sure, but depending on how closely it follows WebKit, could make
>> testing on IE9, Safari and Chrome a breeze.
>>
>> --
>> Richard Heyes
> Don't forget Konqueror in that list ;) It's not exactly the same engine
> after Apple forked it from KHTML, but it's quite close, and both
> Konqueror and Safari are said to be working a little more closely than
> before to share the work done to the rendering engines since the fork.
>
> I'm waiting for the day when Firefox starts using Google's V8 scripting
> engine!
>
>
> Ash
>
I'd rather all the engines follow the W3C standards so that you just
have to make sure your web page is compliant.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--- End Message ---
--- Begin Message ---
Micah Gersten wrote:
I'd rather all the engines follow the W3C standards so that you just
have to make sure your web page is compliant.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Though I always script to W3 Standards, I could care less if browsers
follow those standards, so long as we wind up closer and closer to a
general set of rules we can obide by.
If IE 9 does take on Webkit, that's one step closer. It means one less
set of arbitrary rules to develop for, which is one step closer to a
standard.
Just my opinion. I guess it's the same as the fact that I don't care so
much for any given standards, as much as I do for the idea of those
standards. Bad standards are still 7 steps ahead of no standards at all.
- Craige
--- End Message ---
--- Begin Message ---
> Now I tend only to use it now for file management, FTP and testing
> websites.
Beware that Konqueror has changed with KDE4. Now its main purpose is
to be a web browser, whereas the new program "Dolphin" is used for
file management etc.
--- End Message ---
--- Begin Message ---
I changed the implode to :
if (isset($_POST['BannerSize'])){$BannerSize = implode(',',
$_POST['BannerSize']);} else {$BannerSize = "";}
now it says "Invalid Arguement" whereas when it was the other way it didn't
On Tue, Nov 18, 2008 at 12:38 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Terion Miller wrote:
>
>> Help I inherited this script and just found that its not inserting
>> anything
>> into the "workorderform" table in the db, and I'm getting implode() errors
>> for the 'bannersize' isset line
>>
>> New and need help in over my head:
>> here is the code:
>>
>>
>>
> First off, I would argue that this code never worked, unless you changed
> the order of the arguments being passed to your implode() calls.
>
> The arguments are backwards in all three calls.
>
> check out this
>
> http://php.net/implode
>
> it might give you insight on how to make it work.
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare
>
>
--- End Message ---
--- Begin Message ---
On Tue, 2008-11-18 at 16:52 -0600, Terion Miller wrote:
> I changed the implode to :
> if (isset($_POST['BannerSize'])){$BannerSize = implode(',',
> $_POST['BannerSize']);} else {$BannerSize = "";}
>
> now it says "Invalid Arguement" whereas when it was the other way it didn't
>
>
> On Tue, Nov 18, 2008 at 12:38 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> > Terion Miller wrote:
> >
> >> Help I inherited this script and just found that its not inserting
> >> anything
> >> into the "workorderform" table in the db, and I'm getting implode() errors
> >> for the 'bannersize' isset line
> >>
> >> New and need help in over my head:
> >> here is the code:
> >>
> >>
> >>
> > First off, I would argue that this code never worked, unless you changed
> > the order of the arguments being passed to your implode() calls.
> >
> > The arguments are backwards in all three calls.
> >
> > check out this
> >
> > http://php.net/implode
> >
> > it might give you insight on how to make it work.
> >
> > --
> > Jim Lucas
> >
> > "Some men are born to greatness, some achieve greatness,
> > and some have greatness thrust upon them."
> >
> > Twelfth Night, Act II, Scene V
> > by William Shakespeare
> >
> >
I can see nothing wrong with that. I also just read the implode manual
page quickly, and it definitely does not say you can use the arguments
the other way around. What it does say is that the glue parameter is
optional, and is wrongly the first parameter as it's usual for optional
parameters to be on the right hand side of the arguments list.
On a personal note (just my code style really) I'd change the above to
the shorthand version, as you're only using the if for a simple
assignment:
$BannerSize = (isset($_POST['BannerSize']))?implode(",",
$_POST['BannerSize']):"";
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Terion Miller wrote:
> I changed the implode to :
> if (isset($_POST['BannerSize'])){$BannerSize = implode(',',
> $_POST['BannerSize']);} else {$BannerSize = "";}
>
> now it says "Invalid Arguement" whereas when it was the other way it didn't
>
>
"Invalid Argument". Then $_POST['BannerSize'] is not what it is expecting.
Run a is_array() on it before you are using it.
Something like the following should do.
if ( isset($_POST['BannerSize']) && is_array($_POST['BannerSize']) ) {
$BannerSize = implode(',', $_POST['BannerSize']);
} else {
$BannerSize = "";
}
You could also go a little further and do something like this...
if ( isset($_POST['BannerSize']) ) {
if ( is_array($_POST['BannerSize']) ) {
$BannerSize = implode(',', $_POST['BannerSize']);
} else {
$BannerSize = $_POST['BannerSize'];
}
} else {
$BannerSize = "";
}
The latter one would assume that you would only receive a valid string
instead of an array if $_POST['BannerSize'] was set at all.
so... YMMV
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
Hi guys:
Dones anyone have any scheduling scripts that they might share OR can
give me a link to some?
I need a way for a user to register an appointment via a calendar.
I don't want to write something that's already been done and available.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
On Tue, Nov 18, 2008 at 6:26 PM, tedd <[EMAIL PROTECTED]> wrote:
> Hi guys:
>
> Dones anyone have any scheduling scripts that they might share OR can give
> me a link to some?
>
> I need a way for a user to register an appointment via a calendar.
>
> I don't want to write something that's already been done and available.
Strictly a public calendar, Tedd, or one with a full registration
and appointment-setting system?
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
--- End Message ---
--- Begin Message ---
> Dones anyone have any scheduling scripts that they might share OR can give
> me a link to some?
>
> I need a way for a user to register an appointment via a calendar.
>
> I don't want to write something that's already been done and available.
Not sure if it does what you want, but you might try looking at Google
calendar. It's very good.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)
--- End Message ---
--- Begin Message ---
he's looking to create a script/app for his own.clent usage..
not to just use google's cal app,,,
check out freshmeat.net, or sourceforge if you haven't already...
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Richard Heyes
Sent: Tuesday, November 18, 2008 3:42 PM
To: tedd
Cc: PHP General Mailing List
Subject: Re: [PHP] Scheduling scripts?
> Dones anyone have any scheduling scripts that they might share OR can give
> me a link to some?
>
> I need a way for a user to register an appointment via a calendar.
>
> I don't want to write something that's already been done and available.
Not sure if it does what you want, but you might try looking at Google
calendar. It's very good.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated November 15th)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
tedd wrote:
> Hi guys:
>
> Dones anyone have any scheduling scripts that they might share OR can
> give me a link to some?
>
> I need a way for a user to register an appointment via a calendar.
>
> I don't want to write something that's already been done and available.
>
> Cheers,
>
> tedd
>
>
I used http://bulldog.tzo.org/webcal/ for my wife and a few friends. Seemed
nice and easy to setup.
Looks like it is end of life, but they have started a new version,
http://www.webcalng.com/ looks pretty much the same.
Might give that a try.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
All:
I'm going to put the PostTrack/ListWatch system back in an active
state to start counting and reporting next week. Thanks to those who
voiced requests, suggestions, and inquiries.
If anyone DOES NOT WANT their email address to appear in the
Friday reports next to their post metrics, please send me a private
email with your address.
It will have the standard SPAM stuff and all, including
improvements that were made in the "off season" since I took it down
to rework it. A near-future version will also include an
implementation of RGraph[1] by our very own Richard Heyes.
Suggestions are always welcome, as well.
1: http://www.rgraph.org/
--
</Daniel P. Brown>
http://www.parasane.net/
[EMAIL PROTECTED] || [EMAIL PROTECTED]
Ask me about our current hosting/dedicated server deals!
--- End Message ---
--- Begin Message ---
Hi Guys,
So after somebody mentioned that NetBeans supports PHP development, I
decided to give it a try. I'm liking it thus far, but I have a question
if anybody happens to know the answer.
I have created a project group containing two projects (One for the site
framework, one for the site frontend), but I'd like some help using
xdebug across two projects.
NetBeans has built in breakpoints and watches which it co-ordinates with
the script when run with xdebug, but I cannot seem to get these to work
in the framework project if I'm testing front end.
IE:
- Add breakpoint to front-end page.
- Add watch to front-end variable
- Add breakpoint to back-end framework
- Add watch to back-end member variable
NetBeans does not show me anything have set to do on the back-end.
Note, I'm not using the xdebug breakpoint function, but rather expecting
NetBeans to take care of those for me, so I don't litter code with those
function calls.
It has something to do with the multiple projects, but I wondered if
there was a way around it. As I said, I've added both projects to the
same project group.
- Craige
--- End Message ---