php-general Digest 2 Nov 2008 10:03:39 -0000 Issue 5768
Topics (messages 282737 through 282750):
Re: Mailing lists
282737 by: tedd
282738 by: Dotan Cohen
282739 by: Dotan Cohen
282742 by: Shawn McKenzie
Re: Recursive Directory Listing
282740 by: tedd
Re: Control Over Printer Queue On Windows
282741 by: bruce
Re: PreReq Index
282743 by: Craige Leeder
Re: Change tracking
282744 by: Nathan Rixham
Re: Yahoo/Gmail/Hotmail Contacts API
282745 by: Nathan Rixham
282746 by: Nathan Rixham
282747 by: Eric Butera
282750 by: Richard Heyes
question about google maps
282748 by: Sudhakar
282749 by: Ashley Sheridan
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 ---
Gang:
-snip-
International food fight.
You guys are a hoot.
It's interesting to see how your minds wander about (or aboot).
I used to have a theory that intelligence was inversely proportional
to latitude. To prove my point, I would direct people to observe the
Upper Peninsula of Michigan, where phrases like "Say ya to da UP,
eh?" were common.
When confronted with an discerning opinion, I would add even more
evidence by telling them to look further north where pronunciation of
"about" and "a boot" merged -- and thus that would usually win my
argument.
Now, that I am confronted with such a wide latitude (in both
meanings) of diverse opinion, I must conclude that intelligence and
ignorance are both amply distributed all over the globe irrespective
of one's shortcomings in language skills -- thank God.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
2008/10/30 Shawn McKenzie <[EMAIL PROTECTED]>:
> Richard Heyes wrote:
>>> It's
>>> exceedingly easy to configure and use.
>>
>> Not as easy as setting up a Google group, which I've just done... :-)
>> For anyone whose interested: http://groups.google.com/group/rgraph
>>
>
> OH GOD MY EYES ARE BLEEDING! Is that a breast cancer awareness group?
>
OMG Ponies!!!
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü
--- End Message ---
--- Begin Message ---
2008/10/30 Daniel P. Brown <[EMAIL PROTECTED]>:
> On Thu, Oct 30, 2008 at 3:44 PM, Ashley Sheridan
> <[EMAIL PROTECTED]> wrote:
>>
>> Called English for a reason you Yank ;)
>
> Hey, my forefathers, foremothers, fore-aunts and -uncles, et
> cetera, didn't spend the last two-hundred-thirty-two years butchering
> the language just for you to correct us, Sheridan! If you guys had
> gotten it right in the first place, we wouldn't have had to improve
> it! ;-P
>
You mean fork it? funEnglish?
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü
--- End Message ---
--- Begin Message ---
Dotan Cohen wrote:
> 2008/10/30 Shawn McKenzie <[EMAIL PROTECTED]>:
>
>> Richard Heyes wrote:
>>
>>>> It's
>>>> exceedingly easy to configure and use.
>>>>
>>> Not as easy as setting up a Google group, which I've just done... :-)
>>> For anyone whose interested: http://groups.google.com/group/rgraph
>>>
>>>
>> OH GOD MY EYES ARE BLEEDING! Is that a breast cancer awareness group?
>>
>>
>
> OMG Pwnies!
>
Fixed that for you.
-Shawn
--- End Message ---
--- Begin Message ---
At 12:13 PM -0400 10/30/08, Joe Schaeffer wrote:
I have a (readable) directory structure like so:
../navigation
/cats
/dogs
/beagles
/collies
/some/other/dirs/
/horses
I need to display those directories in nested html lists (marked up
with css). Using PHP on the above, I'd like to produce the following
HTML:
<ul>
<li>cats</li>
<li>dogs
<ul>
<li><beagles></li>
<li><collies>
<ul><li>some...</li></ul>
</li>
</ul>
</li>
<li>horses</li>
</ul>
--joe:
The html is simple to add, so I'll provide just the basics of placing
a directory and it's contents in an array:
<?php
echo '<pre>';
print_r(recur_dir('.'));
echo '</pre>';
?>
<?php // === functions ==========
function recur_dir($dir)
{
$dirlist = opendir($dir);
while ($file = readdir ($dirlist))
{
if ($file != '.' && $file != '..')
{
$newpath = $dir.'/'.$file;
$level = explode('/',$newpath);
if (is_dir($newpath))
{
$mod_array[] = array(
'level'=>count($level)-1,
'path'=>$newpath,
'name'=>end($level),
'kind'=>'dir',
'mod_time'=>filemtime($newpath),
'content'=>recur_dir($newpath));
}
else
{
$mod_array[] = array(
'level'=>count($level)-1,
'path'=>$newpath,
'name'=>end($level),
'kind'=>'file',
'mod_time'=>filemtime($newpath),
'size'=>filesize($newpath));
}
}
}
closedir($dirlist);
return $mod_array;
}
Cheers,
tedd
PS: This is nathan's code.
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
hi shahrzad,
do you know what the cmd line functions are to drive the printer? i have no
idea, but i'm willing to bet if you search google, you'll find examples of
how to accomplish this. once you figure this out, implementing in php will
be easy.
--
-----Original Message-----
From: shahrzad khorrami [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 01, 2008 6:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Control Over Printer Queue On Windows
Hi all,
I am writing a script to print a few thousand pdf documents and I need
to have some control over the number of jobs that are sent to the
printer queue at time ...
I can not see how to get print queue information eg the number of
jobs pending .. at least my attempts are failing..
any ideas?
Thanks in advance
--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
So set up include_path to have all those directories and call it done.
The problem I see with with this is what if there is are two files of
two different types (thus in different directories) which have the same
file name?
Forgive me, I'm just trying to shoot out scenarios.
--- End Message ---
--- Begin Message ---
Mike Smith wrote:
Thanks Steven/Tony for your replies. I'll consider this a bit more before I
jump in. I appreciate different perspectives. And I'll have to digest Tony's
solution.
Thanks,
Mike Smith
If you're on mysql you can combine the whole lot and speed up your db by
adding in spatial indexes and geo indexes.. very simple in principle,
instead of an auto_inc primary key, just have a POINT(x,y) column where
x is the id and y is a timestamp - you'll be suprised at the speed (i
can easily get sub 0.005sec queries on tables with 60mill+ rows in them
using spatial indexes like this, also allows you to easily pick out all
rows modified in date range, or all with id between, or mix of both +
more with no performance dent as it's always a spatial query on a single
binary index.
just a suggestion, not ultra quick to get going but great once it is
--- End Message ---
--- Begin Message ---
Feris wrote:
Hi All,
I noticed that social networking sites can retrieve our contacts using an
authenticated session. Is there any open source PHP API to achieve the same
thing ?
Thanks,
Feris
or just use open id
--- End Message ---
--- Begin Message ---
Nathan Rixham wrote:
Feris wrote:
Hi All,
I noticed that social networking sites can retrieve our contacts using an
authenticated session. Is there any open source PHP API to achieve the
same
thing ?
Thanks,
Feris
or just use open id
wow massively mis-read that one, yeah what nitsan said, there's api's
for all of the major's
--- End Message ---
--- Begin Message ---
On Sat, Nov 1, 2008 at 8:02 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:
> Feris wrote:
>>
>> Hi All,
>> I noticed that social networking sites can retrieve our contacts using an
>> authenticated session. Is there any open source PHP API to achieve the
>> same
>> thing ?
>>
>> Thanks,
>>
>> Feris
>>
> or just use open id
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Open id's really a toy at this point.
--- End Message ---
--- Begin Message ---
> Open id's really a toy at this point.
Now that MS and Google have signed up it will soon get a lot bigger.
http://news.bbc.co.uk/1/hi/technology/7699320.stm
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated October 25th)
--- End Message ---
--- Begin Message ---
hi
how do i go about displaying an address which appears on google maps for a
business on a web page.
what are the steps.
if some one knows about this please let me know.
thanks
--- End Message ---
--- Begin Message ---
On Sun, 2008-11-02 at 13:43 +1300, Sudhakar wrote:
> hi
>
> how do i go about displaying an address which appears on google maps for a
> business on a web page.
>
> what are the steps.
>
> if some one knows about this please let me know.
>
> thanks
Have you actually tried looking at Google's API for this? Their API has
all the information you need to do this.
Ash
www.ashleysheridan.co.uk
--- End Message ---