RE: [PHP] web shot script
Joey wrote: > Sorry for the delay. > > The purpose is to be able to see what is running on a site at any > given time. Apaches 'server-status' perhaps? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Fatal error: Call to a member function on a non-object
Hej, I created a change request: http://bugs.php.net/bug.php?id=46601 Best regards Christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpDesigner 2008?
I know the IDE wars spring up occasionally, but looking through the archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it and think it's good or not? I just installed PDT + Eclipse today, and I'm still getting used to the integration. I'm used to Eclipse + Java, so it somewhat throws me for a loop in trying to figure out what works in what scope. I do wish I could have it do some kind of analysis of my files plus dependencies so any problems could be discovered at compile time, rather than run time. Thanks, Waynn
Re: [PHP] while question
Ashley Sheridan wrote: On Mon, 2008-11-17 at 18:01 -0500, Craige Leeder wrote: Ashley Sheridan wrote: On Mon, 2008-11-17 at 17:47 -0500, Craige Leeder wrote: Only thing to note with the foreach is that you are actually working on a copy of the array, so if you intend to modify it, pass it by reference. - Craige Can you do that? I assume it would look like this: foreach(&$array as $a) {} Close. It actually looks like this: foreach ($array as $key => &$value) {} This makes sense because for each iteration of the loop, PHP places a copy of the key in $key, and a copy of the value in $value. Therefor, you are specifying with this code that you want it to place a reference of the value into $value. - Craige Ah, that could be very useful to know, thanks! Ash www.ashleysheridan.co.uk foreach ($array as $key => $value) $value = a copy so won't change the original array $array[$key] = the original thus: foreach ($array as $key => $value) { $array[$key] = do_something_with($value); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: phpDesigner 2008?
Hi I tried PHPDesigner some time ago. It's not bad but now I'm using Netbeans and it's a good editor: http://www.netbeans.org/ (it's free!) Best regards, Holo ""Waynn Lue"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] >I know the IDE wars spring up occasionally, but looking through the > archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( > http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it > and think it's good or not? > > I just installed PDT + Eclipse today, and I'm still getting used to the > integration. I'm used to Eclipse + Java, so it somewhat throws me for a > loop in trying to figure out what works in what scope. I do wish I could > have it do some kind of analysis of my files plus dependencies so any > problems could be discovered at compile time, rather than run time. > > Thanks, > Waynn > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
tedd wrote: At 7:02 PM -0500 11/17/08, Craige Leeder wrote: I'm not illiterate; promise :p - Craige Yeah, his parents were married before he was born. Cheers, tedd omg tedd, I was just reading this thread over, thought exactly that witty response, clicked you're reply and there it is; masterful! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: phpDesigner 2008?
Waynn Lue wrote: I know the IDE wars spring up occasionally, but looking through the archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it and think it's good or not? I just installed PDT + Eclipse today, and I'm still getting used to the integration. I'm used to Eclipse + Java, so it somewhat throws me for a loop in trying to figure out what works in what scope. I do wish I could have it do some kind of analysis of my files plus dependencies so any problems could be discovered at compile time, rather than run time. Thanks, Waynn php isn't pre-compiled though.. did you go for ganymede with pdt 2 or the all in one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: phpDesigner 2008?
Holografix wrote: > Hi > I tried PHPDesigner some time ago. It's not bad but now I'm using Netbeans > and it's a good editor: http://www.netbeans.org/ (it's free!) > > Best regards, > Holo > > > ""Waynn Lue"" <[EMAIL PROTECTED]> escreveu na mensagem > news:[EMAIL PROTECTED] >> I know the IDE wars spring up occasionally, but looking through the >> archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( >> http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it >> and think it's good or not? >> >> I just installed PDT + Eclipse today, and I'm still getting used to the >> integration. I'm used to Eclipse + Java, so it somewhat throws me for a >> loop in trying to figure out what works in what scope. I do wish I could >> have it do some kind of analysis of my files plus dependencies so any >> problems could be discovered at compile time, rather than run time. >> >> Thanks, >> Waynn >> > > +1 for Netbeans. I've been using Quanta+ and got frustrated trying to get debugging to work. I've just got a development release of Netbeans 6.5 and the PHP support is really quite good now (I wasn't impressed with the 6.1 version I tried). I've used various incarnations of Netbeans (since about 3.5) for Java, and I've always liked it... I do miss some of Quanta+'s neat quote, bracket and tag completion, though... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Days until Easter and Christmas
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: > Easter lands on different dates depending upon several different > factors. For example in Canada it's the day after it is in the USA -- > I guess Canadians are slower, eh? :-) > > Also, in some religions the date is the full-moon after the Equinox > and not a specific date. Furthermore, the Equinox does not always > land on March 21, but sometimes it's March 20 (leap year). So, the key is to find the date of the Vernal Equinox, which as you say, does not always land on March 21. However, every 400 years, it does happen on March 21 7:30am GST. From there, we can derive a base for future dates. Every 4th year is a leap year, and every 4th century, giving 97 leap days each 400 years. so (365*400+97)/400 is 365.2425 gives the length of each year. Then the dates can be calculated as follows: http://phpro.org/examples/Get-Vernal-Equinox.html Any improvements welcomed Kind regards Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Days until Easter and Christmas
Kevin Waterson wrote: This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-) Also, in some religions the date is the full-moon after the Equinox and not a specific date. Furthermore, the Equinox does not always land on March 21, but sometimes it's March 20 (leap year). So, the key is to find the date of the Vernal Equinox, which as you say, does not always land on March 21. However, every 400 years, it does happen on March 21 7:30am GST. From there, we can derive a base for future dates. Every 4th year is a leap year, and every 4th century, giving 97 leap days each 400 years. so (365*400+97)/400 is 365.2425 gives the length of each year. Then the dates can be calculated as follows: http://phpro.org/examples/Get-Vernal-Equinox.html Any improvements welcomed Kind regards Kevin just for the sake of madness, many moons ago I wrote this bit of code which will create a "datestamp" $datestamp = ((($y-1)*365)+date("z",mktime(1,1,1,$m,$d,2007))+(floor($y/4)-(floor($y/100)-floor($y/400+1; if(floor($y/100) == $y/100) && (floor($y/400) == $y/400))) || ((floor($y/4) == $y/4) && (floor($y/400) == $y/400)) || ((floor($y/4) == ($y/4)) && !(floor($y/100) == $y/100))) && (date("z",mktime(1,1,1,$m,$d,2000))<60)) { $datestamp--; //leapyear adjustment } } return $datestamp; } function datestamp_parts($datestamp=0) { if($datestamp && ($datestamp < 11967900)) { $yd= ((365)+($datestamp-((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))*(365-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/4)-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/100)-floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/400))); $y = (ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365)); $l = ((floor((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/4)-(floor((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/100)-floor((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/400)))-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/4)-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/100)-floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/400; if((!$l && $yd>365)) { $yd=$yd-365; $y++; $l=1; } elseif($l && $yd>366) { $yd=$yd-366; $y++; $l=0; } $uy = $l ? 2000 : 2001; $m = date("n",mktime(1,1,1,1,$yd,$uy)); $md = date("j",mktime(1,1,1,1,$yd,$uy)); $out['year'] = $y; $out['month'] = $m; $out['month_day'] = $md; $out['leapyear'] = $l; $out['year_day'] = $yd; return $out; } else { return false; } } ?> not sure why I'm throwing it in but it sure was interesting trying to make it, possibly the single longest line of eye watering code ever in there lol! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Days until Easter and Christmas
Nathan Rixham wrote: Kevin Waterson wrote: This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-) Also, in some religions the date is the full-moon after the Equinox and not a specific date. Furthermore, the Equinox does not always land on March 21, but sometimes it's March 20 (leap year). So, the key is to find the date of the Vernal Equinox, which as you say, does not always land on March 21. However, every 400 years, it does happen on March 21 7:30am GST. From there, we can derive a base for future dates. Every 4th year is a leap year, and every 4th century, giving 97 leap days each 400 years. so (365*400+97)/400 is 365.2425 gives the length of each year. Then the dates can be calculated as follows: http://phpro.org/examples/Get-Vernal-Equinox.html Any improvements welcomed Kind regards Kevin just for the sake of madness, many moons ago I wrote this bit of code which will create a "datestamp" Takes input datestamp and returns an array containing the date info */ function datestamp($y=0,$m=0,$d=0) { /* datestamp(year, month, day) year INT | not required | default: current year month INT | not required | default: current month day INT | not required | default: current day called with no values returns the current dates datestamp returns false on error */ $datestamp = false; $y = $y ? $y : date("Y"); $m = $m ? $m : date("n"); $d = $d ? $d : date("j"); if(checkdate($m, $d, $y)) { $datestamp = ((($y-1)*365)+date("z",mktime(1,1,1,$m,$d,2007))+(floor($y/4)-(floor($y/100)-floor($y/400+1; if(floor($y/100) == $y/100) && (floor($y/400) == $y/400))) || ((floor($y/4) == $y/4) && (floor($y/400) == $y/400)) || ((floor($y/4) == ($y/4)) && !(floor($y/100) == $y/100))) && (date("z",mktime(1,1,1,$m,$d,2000))<60)) { $datestamp--; //leapyear adjustment } } return $datestamp; } function datestamp_parts($datestamp=0) { if($datestamp && ($datestamp < 11967900)) { $yd= ((365)+($datestamp-((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))*(365-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/4)-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/100)-floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/400))); $y = (ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365)); $l = ((floor((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/4)-(floor((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/100)-floor((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/400)))-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/4)-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/100)-floor(((ceil(($datestamp-((floor((($datestamp/365)/4)-floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))-1)/400; if((!$l && $yd>365)) { $yd=$yd-365; $y++; $l=1; } elseif($l && $yd>366) { $yd=$yd-366; $y++; $l=0; } $uy = $l ? 2000 : 2001; $m = date("n",mktime(1,1,1,1,$yd,$uy)); $md = date("j",mktime(1,1,1,1,$yd,$uy)); $out['year'] = $y; $out['month'] = $m; $out['month_day'] = $md; $out['leapyear'] = $l; $out['year_day'] = $yd; return $out; } else { return false; } } ?> not sure why I'm throwing it in but it sure was interesting trying to make it, possibly the single longest line of eye watering code ever in there lol! after more reflection, this should be a task on celebrity php code challenge "refactor that" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
Jochem Maas wrote: just for laughs .. given the 'dabble' thread "Cleeder" is phonetically very very close to a dutch word meaning 'messing around' .. rather in the way a 2yo might mess around with a bowl of yogurt. Haha, now that does make me laugh. Out of curiosity, what is the actual word for it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Days until Easter and Christmas
Read Wikipedia article computus On 18 Nov 2008, at 13:42, Nathan Rixham wrote: Nathan Rixham wrote: Kevin Waterson wrote: This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-) Also, in some religions the date is the full-moon after the Equinox and not a specific date. Furthermore, the Equinox does not always land on March 21, but sometimes it's March 20 (leap year). So, the key is to find the date of the Vernal Equinox, which as you say, does not always land on March 21. However, every 400 years, it does happen on March 21 7:30am GST. From there, we can derive a base for future dates. Every 4th year is a leap year, and every 4th century, giving 97 leap days each 400 years. so (365*400+97)/400 is 365.2425 gives the length of each year. Then the dates can be calculated as follows: http://phpro.org/examples/Get-Vernal-Equinox.html Any improvements welcomed Kind regards Kevin just for the sake of madness, many moons ago I wrote this bit of code which will create a "datestamp" 1st January 1 (datestamp 1) to 31st December 32767 (datestamp 11967900) datestamp(year,month,day) Turns any date in the valid date range into an integer value datestamp_parts(datestamp) Takes input datestamp and returns an array containing the date info */ function datestamp($y=0,$m=0,$d=0) { /* datestamp(year, month, day) year INT | not required | default: current year month INT | not required | default: current month day INT | not required | default: current day called with no values returns the current dates datestamp returns false on error */ $datestamp = false; $y = $y ? $y : date("Y"); $m = $m ? $m : date("n"); $d = $d ? $d : date("j"); if(checkdate($m, $d, $y)) { $datestamp = ((($y-1)*365)+date("z",mktime(1,1,1,$m,$d,2007)) +(floor($y/4)-(floor($y/100)-floor($y/400+1; if(floor($y/100) == $y/100) && (floor($y/400) == $y/400))) || ((floor($y/4) == $y/4) && (floor($y/400) == $y/400)) || ((floor($y/ 4) == ($y/4)) && !(floor($y/100) == $y/100))) && (date("z",mktime(1,1,1,$m,$d,2000))<60)) { $datestamp--; //leapyear adjustment } } return $datestamp; } function datestamp_parts($datestamp=0) { if($datestamp && ($datestamp < 11967900)) { $yd= ((365)+($datestamp-((ceil(($datestamp- ((floor((($datestamp/365)/4)-floor(($datestamp/365)/ 100)+floor(($datestamp/365)/400)/365))*(365- (floor(((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/ 365))-1)/4)-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/ 365))-1)/100)-floor(((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/ 365))-1)/400))); $y = (ceil(($datestamp- ((floor((($datestamp/365)/4)-floor(($datestamp/365)/ 100)+floor(($datestamp/365)/400)/365)); $l = ((floor((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/ 4)-(floor((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/ 100)-floor((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/365))/ 400)))-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/ 365))-1)/4)-(floor(((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/ 365))-1)/100)-floor(((ceil(($datestamp-((floor((($datestamp/365)/4)- floor(($datestamp/365)/100)+floor(($datestamp/365)/400)/ 365))-1)/400; if((!$l && $yd>365)) { $yd=$yd-365; $y++; $l=1; } elseif($l && $yd>366) { $yd=$yd-366; $y++; $l=0; } $uy = $l ? 2000 : 2001; $m = date("n",mktime(1,1,1,1,$yd,$uy)); $md = date("j",mktime(1,1,1,1,$yd,$uy)); $out['year'] = $y; $out['month'] = $m; $out['month_day'] = $md; $out['leapyear'] = $l; $out['year_day'] = $yd; return $out; } else { return false; } } ?> not sure why I'm throwing it in but it sure was interesting trying to make it, possibly the single longest line of eye watering code ever in there lol! after more reflection, this should be a task on celebrity php code challenge "refactor that" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Days until Easter and Christmas
At 10:56 PM +1100 11/18/08, Kevin Waterson wrote: This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-) Also, in some religions the date is the full-moon after the Equinox and not a specific date. Furthermore, the Equinox does not always land on March 21, but sometimes it's March 20 (leap year). So, the key is to find the date of the Vernal Equinox, which as you say, does not always land on March 21. However, every 400 years, it does happen on March 21 7:30am GST. From there, we can derive a base for future dates. Every 4th year is a leap year, and every 4th century, giving 97 leap days each 400 years. so (365*400+97)/400 is 365.2425 gives the length of each year. Then the dates can be calculated as follows: http://phpro.org/examples/Get-Vernal-Equinox.html Any improvements welcomed Kind regards Kevin Kevin: So here you are -- I was wondering where we had crossed paths before (to others, we were discussing this off-list). Yes, your code does produce the correct results that show in the years 2003 and 2007 the Vernal Equinox was on March 21 and not March 20 as the majority of years show. I was wrongly thinking that the Vernal Equinox landed on March 21 every leap year, but it doesn't. It's more complicated than that. It's interesting to see how close some of these dates/times get to landing on March 21. I'm sure there must be some pattern there, but I can't detect it. Thanks for your work. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_POST in header
Hi, i have a PHP page with a form. when user click on submit button, it sends form data to itself (so it sends data $_POST to itself). i would like to access to header itself to reset those $_POST data to avoid (in case of F5 under windows system) to resend the same data serveral time. therefore how can i get the header data and change them ? thx F.
RE: [PHP] $_POST in header
[snip] i have a PHP page with a form. when user click on submit button, it sends form data to itself (so it sends data $_POST to itself). i would like to access to header itself to reset those $_POST data to avoid (in case of F5 under windows system) to resend the same data serveral time. therefore how can i get the header data and change them ?[/snip] That is not really a good way to handle it. Use session data and check if the data exists for the submission...if it does do nothing with the data, if it doesn't you can process normally. And always sanitize user input! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST in header
Hi Alain, In short, you can't. It's the users computer that remembers what headers it sent last time, and when you refresh, it WILL ask them to send those headers again. The way this is typically handled from a programming perspective is to do all your processing on one page, and then jump away [via header("Location: ") ] to another page for display. This is the only way I have come across to solve this problem. You could use a Switch statement on the page to handle this, by passing it's case via querystring. e.g. Case 1: Process; Case 2: display; Hope this helps, - Craige Alain Roger wrote: Hi, i have a PHP page with a form. when user click on submit button, it sends form data to itself (so it sends data $_POST to itself). i would like to access to header itself to reset those $_POST data to avoid (in case of F5 under windows system) to resend the same data serveral time. therefore how can i get the header data and change them ? thx F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
Craige Leeder schreef: > Jochem Maas wrote: >> just for laughs .. given the 'dabble' thread "Cleeder" is phonetically >> very very close to a dutch word meaning 'messing around' .. rather in >> the way >> a 2yo might mess around with a bowl of yogurt. >> > Haha, now that does make me laugh. Out of curiosity, what is the actual > word for it? klieder ... kliederen the E sound is short. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
Jochem Maas wrote: klieder ... kliederen the E sound is short. Interesting to know. Thanks :D - Craige -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how can i lookup the index in a string where a regexp matches?
hi, i need to search with regexps in strings, and want to know the index (of the source string) at which the regexp matched. and the length of the matched string, so with substitutions like \d+.. i'm kinda in a hurry on this one, would appreciate your immediate answer very much.. -- -- Rene Veerman, creator of web2.5 CMS http://mediabeez.ws/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] implode()
I have read the whole forum at php.net on implode and I still don't get why this one does not work if (isset($_POST['BannerSize'])){$BannerSize = implode($_POST['BannerSize'],',');} else {$BannerSize = "";} someone please help
Re: [PHP] how can i lookup the index in a string where a regexp matches?
Rene Veerman wrote: hi, i need to search with regexps in strings, and want to know the index (of the source string) at which the regexp matched. and the length of the matched string, so with substitutions like \d+.. i'm kinda in a hurry on this one, would appreciate your immediate answer very much.. :D i shouldnt scan texts to fast anymore.. esp when i'm in a hurry http://nl.php.net/manual/en/function.preg-match.php | | will produce Array ( [0] => Array ( [0] => def [1] => 0 ) ) -- -- Rene Veerman, creator of web2.5 CMS http://mediabeez.ws/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how can i lookup the index in a string where a regexp matches?
> -Original Message- > From: Rene Veerman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18, 2008 8:47 AM > To: php php > Subject: [PHP] how can i lookup the index in a string where a regexp > matches? > > hi, i need to search with regexps in strings, and want to know the > index > (of the source string) at which the regexp matched. and the length of > the matched string, so with substitutions like \d+.. > > i'm kinda in a hurry on this one, would appreciate your immediate > answer > very much.. >From http://www.php.net/preg_match : flags flags can be the following flag: PREG_OFFSET_CAPTURE If this flag is passed, for every occurring match the appendant string offset will also be returned. Note that this changes the return value in an array where every element is an array consisting of the matched string at index 0 and its string offset into subject at index 1. HTH, // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] implode()
with implode one can reverse the function arguments i know .. but -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] implode()
$BannerSize = implode($_POST['BannerSize'], ','); Looks like you have your arguments backwards; try: $BannerSize = implode(',',$_POST['BannerSize']); --Greg
Re: [PHP] implode()
Terion Miller wrote: I have read the whole forum at php.net on implode and I still don't get why this one does not work if (isset($_POST['BannerSize'])){$BannerSize = implode($_POST['BannerSize'],',');} else {$BannerSize = "";} someone please help Is $_POST['BannerSize'] an array? e.g. IS there: $_POST['BannerSize'][1] $_POST['BannerSize'][2] Or something similar? - Craige -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: phpDesigner 2008?
Yes, NetBeans became my favourite too a while ago. And it runs on many Operating Systems, is free and has a debugger. I also like the way it handles projects. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date Issue
On Mon, Nov 17, 2008 at 6:02 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Mon, 2008-11-17 at 16:57 -0600, Boyd, Todd M. wrote: >> > -Original Message- >> > From: Craige Leeder [mailto:[EMAIL PROTECTED] >> > Sent: Monday, November 17, 2008 4:50 PM >> > To: Boyd, Todd M. >> > Cc: [EMAIL PROTECTED]; php-general@lists.php.net >> > Subject: Re: [PHP] Date Issue >> > >> > Boyd, Todd M. wrote: >> > >> Are you sure this isn't like Javascript's "getMonth" function? Its >> > index may begin at 0, making "day 0" the "first day" of the year. >> > >> >> > Hmm, though I know us programmers love to start counting at zero, why >> > would something as static as a date start counting at zero? I would >> > have >> > imagined something like that would start at 1. >> >> I dunno. Threw me for a hell of a loop (no pun intended) when I first >> started playing with Javascript dates, though. Year = starts at 1 (not >> literally, but for all intents and purposes). Day = starts at 1. Month = >> starts at 0? What?! :) >> >> >> // Todd > It makes no sense does it?! I was lucky enough to have an Oreilly book > with me at the time I was learning javascript. Only book of theirs i > wasnt so hot on was an ajax one. > > > Ash > www.ashleysheridan.co.uk I suspect it was done because it allows people to work with arrays for month names (including the options array that is part of the Javascript objects that represent SELECT tags) without having to subtract one from the index each time it gets used. In that sense, I can see the reasoning of why months and days of the week work that way (even though I think it's counter-intuitive and subtraction is a pretty simple operation). I don't understand why the day of the month or of the year would be zero-based, though. It's almost like the function just takes the number of seconds elapsed since the beginning of the year, divides by 86400 and truncates the result to a integer. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP performance profiling
I did a search and didn't find anything really astounding sounding, so I wanted to ask for some "live" recommendations from the crowd here. I was wondering if anyone had used FirePHP with Firebug or could recommend a good profiling method for figuring out where the slow parts of your PHP code are. I'm curious about solutions that don't require installing something on the server side, since that's not usually an option with shared web hosting and all. I used to love Zend Studio's server component along with the IDE, but it doesn't help so much with shared web hosts where you can't install the server component. Ideally, I'd love to see what segments of the code are running slow, but at the very minimum, I want to see if it's the PHP code or the MySQL calls that are slow. I know I can just add my own statements in the code, but I was hoping there was a more comprehensive solution available. Thanks in advance. -TG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: implode()
Terion Miller wrote: I have read the whole forum at php.net on implode and I still don't get why this one does not work if (isset($_POST['BannerSize'])){$BannerSize = implode($_POST['BannerSize'],',');} else {$BannerSize = "";} someone please help don't think it's a php thing, it's expecting an array in the post data, so check the html form that's sending to the page; it should be sending the BannerSize field as an array for future reference you can normally debug all these things yourself with a debugger or manually using var_dump or print_r; thus change you're code to: if (isset($_POST['BannerSize'])) { print_r($BannerSize); //if it's not an array don't implode $BannerSize = implode($_POST['BannerSize'],','); } else { $BannerSize = ""; } or if you can't be bothered just do this: if (isset($_POST['BannerSize'])) { if(is_array($_POST['BannerSize']) ) { $BannerSize = implode(',', $_POST['BannerSize']); //in right order.. } else { $BannerSize = $_POST['BannerSize']; } } else { $BannerSize = ""; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] how can i lookup the index in a string where a regexp matches?
> -Original Message- > From: Rene Veerman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18, 2008 8:50 AM > To: php php > Subject: Re: [PHP] how can i lookup the index in a string where a > regexp matches? > > Rene Veerman wrote: > > hi, i need to search with regexps in strings, and want to know the > > index (of the source string) at which the regexp matched. and the > > length of the matched string, so with substitutions like \d+.. > > > > i'm kinda in a hurry on this one, would appreciate your immediate > > answer very much.. > > > :D i shouldnt scan texts to fast anymore.. esp when i'm in a hurry > > http://nl.php.net/manual/en/function.preg-match.php > > | $subject = "abcdef"; > $pattern = '/^def/'; > preg_match($pattern, substr($subject,3), $matches, > PREG_OFFSET_CAPTURE); > print_r($matches); > ?> | > > will produce > > Array > ( > [0] => Array > ( > [0] => def > [1] => 0 > ) > > ) Are you sure about the ^? I would think '/^def/' would look for "def" at the beginning of the line... anyway, glad to see you found out about the PREG_OFFSET_CAPTURE flag. // Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
Craige Leeder wrote: Jochem Maas wrote: klieder ... kliederen the E sound is short. Interesting to know. Thanks :D - Craige don't believe him, "jochem" is really called Bob Davis, a slightly balding middle aged ASP developer from hull sent to infiltrate the PHP community and misguide the weak with tales of short sounding letters. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: phpDesigner 2008?
On Tue, Nov 18, 2008 at 10:06 AM, Yeti <[EMAIL PROTECTED]> wrote: > Yes, NetBeans became my favourite too a while ago. And it runs on many > Operating Systems, is free and has a debugger. > I also like the way it handles projects. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I found the licensing on phdesigner to be somewhat restrictive. Its not a bad editor, but I have been playing with Aptana which has a slightly steeper learning curve -- Bastien Cat, the other other white meat
Re[2]: [PHP] It's Sunday, and I'm bored...
Greetings, Govinda. In reply to Your message dated Monday, November 10, 2008, 3:42:40, >> Subversion, or svn for short. Helps you maintain code bases. Far >> better than regular backups (though by no means a replacement). > I looked it over briefly and it looks smart for serious collaborated > efforts.. but i ask - is anyone finding it makes sense for one-man > shows? I'd join the line... "hell yes" is the best possible description. Being emotional, it's perfectly entitles the time and nerves spent to redo all your work if you spotted anything wrong at some stage. > (For the time to get up to speed with this maybe I could just pay more > attention to making/naming my own backups?) Backups has nothing of the usability that CVS/SVN offers. It's, literally, a time machine. I seriously recommend the http://svnbook.red-bean.com/ When I've been told that we're moving to SVN and I though that I'd better start reading sooner, I felt Subversion website almost directly to that book, and it just eliminated all my quesions, even possible future ones. >>> It's nice to have at least loose communities like this list so we >>> solo >>> freelancers don't think we're simply mad. >> >> You are... :-) > Well yes, but I meant without company.. See when we are in a herd, > then even if we're all mad, then somehow it seems alright. ;-) We > even have professional looking tools to track which version of madness! hehe :) /agree -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
On Tue, Nov 18, 2008 at 9:33 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Craige Leeder wrote: > >> Jochem Maas wrote: >> >>> klieder ... kliederen >>> >>> the E sound is short. >>> >>> >>> >> Interesting to know. Thanks :D >> >> - Craige >> > > don't believe him, "jochem" is really called Bob Davis, a slightly balding > middle aged ASP developer from hull sent to infiltrate the PHP community and > misguide the weak with tales of short sounding letters. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Is this where we starting singing 'Pass the dutchie on the left hand side'? -- Bastien Cat, the other other white meat
Re: [PHP] PHP performance profiling
> I'm curious about solutions that don't require installing something on the > server side, since that's not usually an option with shared web hosting and > all. Since PHP runs on the server, as part of the webserver, I think it will be inevitable that you'll need to install something on your server. -- 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
Re: Re[2]: [PHP] It's Sunday, and I'm bored...
> ... Hi, In looking at the manual regarding tagging, it seems an awful chore compared to CVS. Is this the generally held belief or do I need to go back and re-read? -- 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
Re: [PHP] implode()
Can we see the form, please? As well, try using print_r on the array and see what it outputs. - Craige Terion Miller wrote: yes there is , the selections are coming from a form (which isn't working because its not inserting into the db---ah another post later I imagine) do you think a mis used implode would keep any of the data from making it to the db? I'm more of a designer than a programmer and feel like I'm drowning over my head here... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: phpDesigner 2008?
Holografix wrote: Hi I tried PHPDesigner some time ago. It's not bad but now I'm using Netbeans and it's a good editor: http://www.netbeans.org/ (it's free!) Best regards, Holo I never knew Netbeans had a PHP IDE. I'll have to try it - Craige -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] implode()
On 11/18/08, Terion Miller <[EMAIL PROTECTED]> wrote: > > I have read the whole forum at php.net on implode and I still don't get > why > this one does not work > > if (isset($_POST['BannerSize'])){$BannerSize = > implode($_POST['BannerSize'],',');} else {$BannerSize = "";} > > someone please help > You appear to have it backwards? Using implode() you should have your "glue" (the value you want to identify to implode on) before your $variable. It looks like you are trying to implode on a comma, correct? So using the proprer format of implode(glue,variable) you should so something like: implode(',',$_POST['BannerSize']); Dan
Re: [PHP] Re: phpDesigner 2008?
On Tue, Nov 18, 2008 at 6:00 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: >> >> I know the IDE wars spring up occasionally, but looking through the >> archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( >> http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it >> and think it's good or not? >> >> I just installed PDT + Eclipse today, and I'm still getting used to the >> integration. I'm used to Eclipse + Java, so it somewhat throws me for a >> loop in trying to figure out what works in what scope. I do wish I could >> have it do some kind of analysis of my files plus dependencies so any >> problems could be discovered at compile time, rather than run time. >> >> Thanks, >> Waynn >> > > php isn't pre-compiled though.. > > did you go for ganymede with pdt 2 or the all in one? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I saw someone say they were using that on the zend framework list saying it was super buggy. I've never been smart enough to not use the all-in-one though. :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP performance profiling
Gryffyn wrote: I did a search and didn't find anything really astounding sounding, so I wanted to ask for some "live" recommendations from the crowd here. I was wondering if anyone had used FirePHP with Firebug or could recommend a good profiling method for figuring out where the slow parts of your PHP code are. I'm curious about solutions that don't require installing something on the server side, since that's not usually an option with shared web hosting and all. I used to love Zend Studio's server component along with the IDE, but it doesn't help so much with shared web hosts where you can't install the server component. Ideally, I'd love to see what segments of the code are running slow, but at the very minimum, I want to see if it's the PHP code or the MySQL calls that are slow. I know I can just add my own statements in the code, but I was hoping there was a more comprehensive solution available. Thanks in advance. -TG manually with a home grown script or pear benchmark apd on windows or zend platform don't really know of anything else tbh but would like a nice profiler for php myself (easier if php was precompiled I guess) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SoapClient Result
Hello, i´m trying to consume a .net webservice from php as fallow: $client = new SoapClient('http://localhost:1105/Web Service .Net/Service.asmx?WSDL'); print_r($client->HelloWorld()); and the result is: stdClass Object ( [HelloWorldResult] => Hello World ) The call works as expected, the problem is the result, the $client->HelloWorld() returns a string in .net but in php is a stdClass with a HelloWorldResult attribute. I'm not sure of what to ask but something does not looks right here, i think i should get a string back from .net and not a class except for complex types. Do i have to write something like this $client->HelloWorld()->HelloWorldResult for every method for the web service to get the actual result? Uacaman
Re: [PHP] PHP performance profiling
On Tue, Nov 18, 2008 at 10:11 AM, Gryffyn <[EMAIL PROTECTED]> wrote: > I did a search and didn't find anything really astounding sounding, so I > wanted to ask for some "live" recommendations from the crowd here. > > I was wondering if anyone had used FirePHP with Firebug or could recommend a > good profiling method for figuring out where the slow parts of your PHP > code are. > > I'm curious about solutions that don't require installing something on the > server side, since that's not usually an option with shared web hosting and > all. > > I used to love Zend Studio's server component along with the IDE, but it > doesn't help so much with shared web hosts where you can't install the > server component. > > Ideally, I'd love to see what segments of the code are running slow, but at > the very minimum, I want to see if it's the PHP code or the MySQL calls > that are slow. I know I can just add my own statements in the code, but I > was hoping there was a more comprehensive solution available. > > Thanks in advance. > > -TG > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > If you cannot install stuff on your server, set yourself up a local dev environment. You should really be doing this anyways. One of the easiest ways to do this is to download a pre-made vmware player server application. Or you could do the xampp thing. Once you have that you can use xdebug [1] to profile your code. It has a lot of various ways of profiling. It doesn't require you modifying your code at all. Then it generates these files that you can use kcachegrind/wincachegrind to see every single function your script calls, how long it took, etc. There's also another tool to view these files called webgrind[2] [1] http://www.xdebug.org/docs/profiler [2] http://code.google.com/p/webgrind/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while-question
On Tue, 2008-11-18 at 14:33 +, Nathan Rixham wrote: > Craige Leeder wrote: > > Jochem Maas wrote: > >> klieder ... kliederen > >> > >> the E sound is short. > >> > >> > > Interesting to know. Thanks :D > > > > - Craige > > don't believe him, "jochem" is really called Bob Davis, a slightly > balding middle aged ASP developer from hull Ahhh... Hull... I have memories of thee. 15 years ago between 1am and 3am that was the place to head after the Ottawa bars closed and you wanted to squeeze in another 2 hours of binging. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] implode()
Terion Miller wrote: > I have read the whole forum at php.net on implode and I still don't get why > this one does not work > > if (isset($_POST['BannerSize'])){$BannerSize = > implode($_POST['BannerSize'],',');} else {$BannerSize = "";} > > someone please help > Including the error that is generated would be a good place to start when asking for help. To us, it is pretty obvious what the problem could be. But the error would help. -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP performance profiling
- Original Message - From: "Eric Butera" <[EMAIL PROTECTED]> To: Gryffyn <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Date: Tue, 18 Nov 2008 12:16:04 -0500 Subject: Re: [PHP] PHP performance profiling > On Tue, Nov 18, 2008 at 10:11 AM, Gryffyn > <[EMAIL PROTECTED]> wrote: > > I did a search and didn't find anything really astounding sounding, so I > > wanted to ask for some "live" recommendations from the crowd here. > > > > I was wondering if anyone had used FirePHP with Firebug or could recommend a > > good profiling method for figuring out where the slow parts of your PHP > > code are. > > > > I'm curious about solutions that don't require installing something on the > > server side, since that's not usually an option with shared web hosting and > > all. > > > > I used to love Zend Studio's server component along with the IDE, but it > > doesn't help so much with shared web hosts where you can't install the > > server component. > > > > Ideally, I'd love to see what segments of the code are running slow, but at > > the very minimum, I want to see if it's the PHP code or the MySQL calls > > that are slow. I know I can just add my own statements in the code, but I > > was hoping there was a more comprehensive solution available. > > > > Thanks in advance. > > > > -TG > > If you cannot install stuff on your server, set yourself up a local > dev environment. You should really be doing this anyways. One of the > easiest ways to do this is to download a pre-made vmware player server > application. Or you could do the xampp thing. > > Once you have that you can use xdebug [1] to profile your code. It > has a lot of various ways of profiling. It doesn't require you > modifying your code at all. Then it generates these files that you > can use kcachegrind/wincachegrind to see every single function your > script calls, how long it took, etc. There's also another tool to > view these files called webgrind[2] > > [1] http://www.xdebug.org/docs/profiler > [2] http://code.google.com/p/webgrind/ > I'm not as worried about profiling the code itself as it's execution in it's final environment. So setting up a test on my local machine isn't going to give me what I want. It's a good idea, and I definitely use VMWare appliances for a few things (particulary testing in various browser versions that don't always like to be installed next to each other). I forgot about xdebug and haven't checked out webgrind yet. Thanks for the recommendations! And thanks to Nathan for the other recommendations. To get really good profiling feedback, control of the server is probably necessary. But if there was something that got me close without messing with the server, I figured it was worth asking about. -TG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] anchor name on URL
If I had a page written in HTML and I had a named anchor on that page I could position the user at the anchor by http://myPage.com/myHTML.htm#myAnchor but I can't seem to make this work if the page is generated http://mypage.com/myPHP.php#myAnchor I've tried both FireFox 3.0.4 and IE 6 SP1. Maybe I'm naive to even expect this to work. Should it work? If not, how can I (can I even) position the user at some point into a long page when the page is generated on the fly? Thanks, Stan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] anchor name on URL
On Tue, Nov 18, 2008 at 1:25 PM, Stan <[EMAIL PROTECTED]> wrote: > If I had a page written in HTML and I had a named anchor on that page > > I could position the user at the anchor by >http://myPage.com/myHTML.htm#myAnchor > but I can't seem to make this work if the page is generated >http://mypage.com/myPHP.php#myAnchor > > I've tried both FireFox 3.0.4 and IE 6 SP1. Maybe I'm naive to even expect > this to work. Should it work? Absolutely. It's a browser standard, not a language-specific thing. PHP outputs HTML, among other things (but for now, we'll stick to HTML since it's what you're using). Regardless of the extension, the browser has no idea in what language the page was written. Are you passing a query string to the page as well? Are you sure the anchor is in the source as it should be? It would be easier for us to help you debug if you post a real link. If you don't want it to be public, you can feel free to send it to me off-list. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: anchor name on URL
Stan wrote: If I had a page written in HTML and I had a named anchor on that page I could position the user at the anchor by http://myPage.com/myHTML.htm#myAnchor but I can't seem to make this work if the page is generated http://mypage.com/myPHP.php#myAnchor I've tried both FireFox 3.0.4 and IE 6 SP1. Maybe I'm naive to even expect this to work. Should it work? If not, how can I (can I even) position the user at some point into a long page when the page is generated on the fly? Thanks, Stan should do the trick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] anchor name on URL
At 12:25 PM -0600 11/18/08, Stan wrote: If I had a page written in HTML and I had a named anchor on that page I could position the user at the anchor by http://myPage.com/myHTML.htm#myAnchor but I can't seem to make this work if the page is generated http://mypage.com/myPHP.php#myAnchor I've tried both FireFox 3.0.4 and IE 6 SP1. Maybe I'm naive to even expect this to work. Should it work? If not, how can I (can I even) position the user at some point into a long page when the page is generated on the fly? Thanks, Stan Stan: That should work -- I just did exactly that for a client a couple of days ago. It does not make any difference if you are using html or .php -- it will work. http://mypage.com/myPHP.php#myAnchor";>Whatever Clicking tha above link will cause the myPHP.php page to load and the browser to go to the myAnchor tag within the page. Check your spelling of the name and the href. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] anchor name on URL
If you do not escape the name attribute you might run into trouble when using XHTML. Always escape attributes properly. GOOD: Click me Click me too HEREDOC; ?> BAD: Click me'; echo 'Click me too'; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date Issue
On Tue, 2008-11-18 at 10:11 -0500, Andrew Ballard wrote: > On Mon, Nov 17, 2008 at 6:02 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Mon, 2008-11-17 at 16:57 -0600, Boyd, Todd M. wrote: > >> > -Original Message- > >> > From: Craige Leeder [mailto:[EMAIL PROTECTED] > >> > Sent: Monday, November 17, 2008 4:50 PM > >> > To: Boyd, Todd M. > >> > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > >> > Subject: Re: [PHP] Date Issue > >> > > >> > Boyd, Todd M. wrote: > >> > >> Are you sure this isn't like Javascript's "getMonth" function? Its > >> > index may begin at 0, making "day 0" the "first day" of the year. > >> > >> > >> > Hmm, though I know us programmers love to start counting at zero, why > >> > would something as static as a date start counting at zero? I would > >> > have > >> > imagined something like that would start at 1. > >> > >> I dunno. Threw me for a hell of a loop (no pun intended) when I first > >> started playing with Javascript dates, though. Year = starts at 1 (not > >> literally, but for all intents and purposes). Day = starts at 1. Month = > >> starts at 0? What?! :) > >> > >> > >> // Todd > > It makes no sense does it?! I was lucky enough to have an Oreilly book > > with me at the time I was learning javascript. Only book of theirs i > > wasnt so hot on was an ajax one. > > > > > > Ash > > www.ashleysheridan.co.uk > > I suspect it was done because it allows people to work with arrays for > month names (including the options array that is part of the > Javascript objects that represent SELECT tags) without having to > subtract one from the index each time it gets used. In that sense, I > can see the reasoning of why months and days of the week work that way > (even though I think it's counter-intuitive and subtraction is a > pretty simple operation). > > I don't understand why the day of the month or of the year would be > zero-based, though. It's almost like the function just takes the > number of seconds elapsed since the beginning of the year, divides by > 86400 and truncates the result to a integer. > > Andrew It just flew in the face of all I knew at the time to have a non-associative system-generated array (by that I mean one whos keys are integars and not string keys) that doesn't start at 0. No other arrays defined in Javascript that I'm aware of behave like this, not even the DOM ones. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] while question
On Tue, 2008-11-18 at 10:52 +, Nathan Rixham wrote: > Ashley Sheridan wrote: > > On Mon, 2008-11-17 at 18:01 -0500, Craige Leeder wrote: > >> Ashley Sheridan wrote: > >>> On Mon, 2008-11-17 at 17:47 -0500, Craige Leeder wrote: > >>> > Only thing to note with the foreach is that you are actually working on > a copy of the array, so if you intend to modify it, pass it by reference. > > - Craige > > >>> Can you do that? I assume it would look like this: > >>> > >>> foreach(&$array as $a) {} > >>> > >> Close. It actually looks like this: > >> > >> foreach ($array as $key => &$value) {} > >> > >> This makes sense because for each iteration of the loop, PHP places a > >> copy of the key in $key, and a copy of the value in $value. Therefor, > >> you are specifying with this code that you want it to place a reference > >> of the value into $value. > >> > >> - Craige > >> > >> > >> > > Ah, that could be very useful to know, thanks! > > > > > > Ash > > www.ashleysheridan.co.uk > > > > foreach ($array as $key => $value) > > $value = a copy so won't change the original array > $array[$key] = the original > > thus: > > foreach ($array as $key => $value) { > $array[$key] = do_something_with($value); > } > This is how I've always done it 'til now, but I think passing by reference is a bit neater in its approach, and can be easier to read when $value is itself an array or complex object. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Date Issue
On Tue, Nov 18, 2008 at 2:58 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > It just flew in the face of all I knew at the time to have a > non-associative system-generated array (by that I mean one whos keys are > integars and not string keys) that doesn't start at 0. No other arrays > defined in Javascript that I'm aware of behave like this, not even the > DOM ones. > > > Ash > www.ashleysheridan.co.uk That's what I'm talking about. Those functions like javascript's getMonth() return an int that is one less than the month number. My assumption is that people who defined the language made it this way so that you can write code that uses non-associative, zero-based arrays to decode the month number to a string: var month_names['en'] = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); var myDate = new Date(); var x = month_names['en'][myDate.getMonth()]; If getMonth() wasn't zero-based, you'd either have to include an empty element in the 0th position of at the beginning of the array, use an associative array, or that last line would have to be changed: var x = month_name['en'][myDate.getMonth() - 1]' Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: anchor name on URL
Well ... you got me thinking ... I moved the placement of the named anchor to inside the first tag in the row and it works (instead of inside the tag. Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 tag in > the row and it works (instead of inside the tag. > > Sorry. > > > Ah, it seems that the doctype might have been to blame then, as an tag cannot exist within a unless it is in a or . If in doubt, run your page through the W3C Validator, as it's a great help in catching bugs. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: anchor name on URL
> -Original Message- > From: Ashley Sheridan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18, 2008 2:34 PM > To: Stan > Cc: php-general@lists.php.net > 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 > tag in > > the row and it works (instead of inside the tag. > > > > Sorry. > > > > > > > Ah, it seems that the doctype might have been to blame then, as an > tag cannot exist within a unless it is in a or . 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help insert not working, implode errors....
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Scheduling scripts?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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. > > -- > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
> 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PostTrack/ListWatch System
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/ -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help insert not working, implode errors....
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 > >
Re: [PHP] Re: anchor name on URL
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. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scheduling scripts?
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? -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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
Re: [PHP] Re: anchor name on URL
> 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) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Scheduling scripts?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
On Tue, 2008-11-18 at 23:44 +, 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
> 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) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
On Tue, 2008-11-18 at 23:51 +, 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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. -- http://www.parasane.net/ [EMAIL PROTECTED] || [EMAIL PROTECTED] Ask me about our current hosting/dedicated server deals! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help insert not working, implode errors....
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scheduling scripts?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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. > > -- > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
Ashley Sheridan wrote: > On Tue, 2008-11-18 at 23:51 +, 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: anchor name on URL
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] NetBeans & xdebug
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php