|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 10 Dec 2005 05:59:03 -0000 Issue 3842
php-general-digest-help
lists.php.net
Date: Fri Dec 09 2005 - 23:59:03 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 10 Dec 2005 05:59:03 -0000 Issue 3842
Topics (messages 227215 through 227253):
Re: Create Image From HTML
227215 by: Jochem Maas
227216 by: tg-php.gryffyndevelopment.com
Forwarding $_POST Values
227217 by: Shaun
227218 by: Jay Blanchard
227219 by: Jim Moseby
227220 by: Bernhard Janetzki
227221 by: tg-php.gryffyndevelopment.com
227224 by: Jay Blanchard
227225 by: vizion
227231 by: John Nichel
227235 by: Zack Bloom
static functions w/ PHP 4?
227222 by: Michael B Allen
227223 by: Robert Cummings
Re: Forwarding $_POST Values... please no flaming
227226 by: tg-php.gryffyndevelopment.com
227237 by: Curt Zirzow
Re: Forwarding $_POST Values WAY OT
227227 by: Jay Blanchard
227236 by: Robert Cummings
Re: List Usage WAS Forwarding $_POST Values
227228 by: Jay Blanchard
Re: Problem on Instalation ~ several module unable to downl oad
227229 by: Jay Blanchard
227230 by: Jay Blanchard
Re: PHP, MySQL and XML for IPodCasting
227232 by: Danny
227234 by: Michael Hulse
Socket Select()
227233 by: will.25sucks.com
CSS and Tables
227238 by: Michael B Allen
227239 by: Afan Pasalic
227240 by: Curt Zirzow
227241 by: Michael B Allen
227242 by: Curt Zirzow
227243 by: Stephen Leaf
227244 by: Chris
227246 by: Michael B Allen
227252 by: Stephen Leaf
[JOB] MySQL/PHP Engineer, Los Angeles, CA
227245 by: Beau Gould
227251 by: Curt Zirzow
how to pass an array to Java script
227247 by: Johny John
227249 by: Michael Hulse
227250 by: Curt Zirzow
227253 by: Johny John
Re: CSS and TablesL
227248 by: Curt Zirzow
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Shaun wrote:
> Hi,
>
> I am trying to create a Content Management System where users can click on
> various parts of a page and the content is displayed in a JavaScript text
> editor. For each tag I intend to wrap a link (<a href>) around it. This
> works fine for <p> tags but I cant put a link around a <table> tag because
> it isnt allowed in HTML. My idea to get around this is make an image from
> everything between the table tags with php so I can make it link to another
> page, is this possible?
of course its possible - but I wouldn't bother trying though! nigh on impossible
and if you did manage to writing something for it you wouldn't be able to buy
the hardware needed to run it :-)
an alternative to wrapping things in A tags is to inject onclick handlers
into all the relevant tags, so you TABLE tag would becone something like:
<TABLE onclick="myFunction(); return false;" .... >
where myFunction() does whatever it needs to do, taking any parameters which you
might want to supply, e.g.:
<TABLE onclick="myFunction(1234); return false;" .... >
... and:
function myFunction(elementDatabaseID)
{
}
I'm not saying its that easy to implement properly but I thinks its viable at least
>
> Thanks for your advice
>
attached mail follows:
As Jochem mentioned, you can use the 'onclick' event to trigger some JS when a user clicks on something. I wanted to add that you may be able to use the 'innerHTML' property to get the HTML contained within the area clicked too.
It sounds like you're saying that the user clicks on a table and that gets loaded into a javascript text editor to edit the table HTML?
If so, try something like this:
<script>
function loadIntoJSEditor(id) {
sendHTMLtoJSEditor(document.getElementById(id).innerHTML);
}
</script>
<span id="ClickableArea1" onClick="loadIntoJSEditor(this.id)">
<table>
<tr><td>someoisjaosjf</td></tr>
<tr><td>someoisjaosjf</td></tr>
<tr><td>someoisjaosjf</td></tr>
</table>
</span>
You can test it by changing "sendHTMLtoJSEditor" to "alert" so it shows in a popup window.
Just make sure all your <span>s or <div>s or whatever you choose to encapsulate the clickable areas in all have unique ID's.
-TG
= = = Original message = = =
Hi,
I am trying to create a Content Management System where users can click on
various parts of a page and the content is displayed in a JavaScript text
editor. For each tag I intend to wrap a link (<a href>) around it. This
works fine for <p> tags but I cant put a link around a <table> tag because
it isnt allowed in HTML. My idea to get around this is make an image from
everything between the table tags with php so I can make it link to another
page, is this possible?
Thanks for your advice
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
attached mail follows:
Hi,
I have a server with all my clients websites on. However I have some clients
who have their own servers. I want to be able to have a form on my site that
allows users to log into their webmail, however if the client has their own
server I need to forward the $_POST values to a login script on a different
server, is this possible?
Thanks for your advice.
attached mail follows:
[snip]
I have a server with all my clients websites on. However I have some clients
who have their own servers. I want to be able to have a form on my site that
allows users to log into their webmail, however if the client has their own
server I need to forward the $_POST values to a login script on a different
server, is this possible?
Thanks for your advice.
[/snip]
Yes, it is possible.
You're welcome.
http://www.php.net/curl
http://www.catb.org/~esr/faqs/smart-questions.html
attached mail follows:
>
> I have a server with all my clients websites on. However I
> have some clients
> who have their own servers. I want to be able to have a form
> on my site that
> allows users to log into their webmail, however if the client
> has their own
> server I need to forward the $_POST values to a login script
> on a different
> server, is this possible?
>
I don't see why not. Set your form
action=http://their.server.com/loginscript.php
JM
attached mail follows:
On Friday 09 December 2005 20:31, Jim Moseby wrote:
> > I have a server with all my clients websites on. However I
> > have some clients
> > who have their own servers. I want to be able to have a form
> > on my site that
> > allows users to log into their webmail, however if the client
> > has their own
> > server I need to forward the $_POST values to a login script
> > on a different
> > server, is this possible?
>
> I don't see why not. Set your form
> action=http://their.server.com/loginscript.php
It's also possible to perform an POST request.
You have to use fsockopen an some HTTP Requests.
Greets Boerni
attached mail follows:
And if for some reason that's not viable, you can simulate a real POST method by using a socket connection and manually sending the POST variables.
Take a look at this script:
http://www.flashkit.com/board/history/topic.php/384942-1.html
That looks about right (sorry, no time to test myself.. but that's the basic concept in a nutshell).
-TG
= = = Original message = = =
>
> I have a server with all my clients websites on. However I
> have some clients
> who have their own servers. I want to be able to have a form
> on my site that
> allows users to log into their webmail, however if the client
> has their own
> server I need to forward the $_POST values to a login script
> on a different
> server, is this possible?
>
I don't see why not. Set your form
action=http://their.server.com/loginscript.php
JM
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
attached mail follows:
[snip]
Wow...what a helpful answer! Thankfully, other people responded to
the guys question and didn't come off like smug pricks!
[/snip]
Been on mailing lists long? Who the fuck are you to critisize me buttwad?
Probably some new, politically correct panty-waist who says Happy Holidays
because he doesn't have the balls to say Merry Christmas. I saw that you had
a better answer. Keep calling out people like this and you'll quickly earn a
trip to /dev/null. Is that smug enough for you?
Every four months or so some jerkwad joins the list and gets his
sensibilities bruised when a terse reply is given to someone who a.) doesn't
need defending and 2.) obviously did no research at all. There is a concept
here called teaching a developer to fish. I wasn't rude and the links were
quite helpful.
attached mail follows:
> -----Original Message-----
> From: Jay Blanchard [mailto:jay.blanchard
THERMON.com]
> Sent: Friday, December 09, 2005 12:22 PM
> To: 'B.D.'
> Cc: PHP General (E-mail)
> Subject: RE: [PHP] Forwarding $_POST Values
>
> [snip]
> Wow...what a helpful answer! Thankfully, other people responded to
> the guys question and didn't come off like smug pricks!
> [/snip]
>
> Been on mailing lists long? Who the fuck are you to critisize me buttwad?
> Probably some new, politically correct panty-waist who says Happy Holidays
> because he doesn't have the balls to say Merry Christmas. I saw that you
> had
> a better answer. Keep calling out people like this and you'll quickly earn
> a
> trip to /dev/null. Is that smug enough for you?
>
> Every four months or so some jerkwad joins the list and gets his
> sensibilities bruised when a terse reply is given to someone who a.)
> doesn't
> need defending and 2.) obviously did no research at all. There is a
> concept
> here called teaching a developer to fish. I wasn't rude and the links were
> quite helpful.
Well if you were not rude then you certainly are now -
Too much correspondence with you in that vein could contaminate the
environment. <chuckles>
Also sounds like you have a few prejudices to grow out of .. who would you
like to be when you grow up?
BTW
I suggest you use a dictionary if you cannot use a spellchecker.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
vizion wrote:
<snip>
> Well if you were not rude then you certainly are now -
> Too much correspondence with you in that vein could contaminate the
> environment. <chuckles>
You should take your act on the road.
> Also sounds like you have a few prejudices to grow out of .. who would you
> like to be when you grow up?
Ohhhhhh...Jay, take heed, we have an Internet psychologist here.
> BTW
> I suggest you use a dictionary if you cannot use a spellchecker.
Holy cow...not his spelling. Oh dear, I bet he feels so bad now. It's
not ofter one gets hit with a n00b slam like spelling.
And for the OP: RTFM
There, was that more to the point?
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
attached mail follows:
Guys just stop. This should be the last post regarding this.
On 12/9/05, John Nichel <jnichel
by-tor.com> wrote:
>
> vizion wrote:
> <snip>
> > Well if you were not rude then you certainly are now -
> > Too much correspondence with you in that vein could contaminate the
> > environment. <chuckles>
>
> You should take your act on the road.
>
> > Also sounds like you have a few prejudices to grow out of .. who would
> you
> > like to be when you grow up?
>
> Ohhhhhh...Jay, take heed, we have an Internet psychologist here.
>
> > BTW
> > I suggest you use a dictionary if you cannot use a spellchecker.
>
> Holy cow...not his spelling. Oh dear, I bet he feels so bad now. It's
> not ofter one gets hit with a n00b slam like spelling.
>
> And for the OP: RTFM
>
> There, was that more to the point?
>
> --
> By-Tor.com
> ...it's all about the Rush
> http://www.by-tor.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Is there any way to have static functions and members of an Object w/ PHP 4.3? Like:
class Auth {
static var error;
static function authenticate() {
...
}
}
Auth::authenticate();
?
The documentation suggests this is possible but I can't seem to make it work. Is this behavior specific to PHP 5?
Thanks,
Mike
attached mail follows:
On Fri, 2005-12-09 at 14:48, Michael B Allen wrote:
> Is there any way to have static functions and members of an Object w/ PHP 4.3? Like:
>
> class Auth {
> static var error;
>
> static function authenticate() {
> ...
> }
> }
>
> Auth::authenticate();
>
> ?
>
> The documentation suggests this is possible but I can't seem to make it work. Is this behavior specific to PHP 5?
In PHP4 if you don't make use of $this in a class method then it can be
used as a static function.
PHP4 does not support static class vars, instead you need to use a
static function with a static variable.
<?php
class Auth
{
function authenticate()
{
...
}
function staticVar( $setValue=null )
{
static $myStaticVar = null;
if( $setValue !== null )
{
$myStaticVar = $setValue;
}
return $myStaticVar;
}
}
?>
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
Ok.. not one bit of this was necessary guys. Please take it off-list if you have personal problems that need resolving.
Yeah.. people do join the list and expect to have their hands held through everything, or expect others to solve all their problems, but if the question offends you, it's better not to answer than to start a flame war.
I took this question to be along the lines of "How would you get PHP to send POST variables" where as another solution (probably the better and simpler) was "Yeah.. just put the full path of the other server in your FORM tag as it's action".
This list is for PHP questions.. HTML and Javascript are kind of related so maybe someone thinks PHP can help and it turns out to be better solved through HTML or JS .. so be it. But bitching people out ISN'T a viable solution on this list. If you think the question is stupid or irrelevant, take it to private email or just delete it. Please.
-TG
= = = Original message = = =
[snip]
Wow...what a helpful answer! Thankfully, other people responded to
the guys question and didn't come off like smug pricks!
[/snip]
Been on mailing lists long? Who the fuck are you to critisize me buttwad?
Probably some new, politically correct panty-waist who says Happy Holidays
because he doesn't have the balls to say Merry Christmas. I saw that you had
a better answer. Keep calling out people like this and you'll quickly earn a
trip to /dev/null. Is that smug enough for you?
Every four months or so some jerkwad joins the list and gets his
sensibilities bruised when a terse reply is given to someone who a.) doesn't
need defending and 2.) obviously did no research at all. There is a concept
here called teaching a developer to fish. I wasn't rude and the links were
quite helpful.
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
attached mail follows:
On Fri, Dec 09, 2005 at 03:36:59PM -0500, tg-php
gryffyndevelopment.com wrote:
> Ok.. not one bit of this was necessary guys. Please take it off-list if you have personal problems that need resolving.
What is ironic is that you just took it onto the list.
Curt.
--
cat .signature: No such file or directory
attached mail follows:
[snip]
Well if you were not rude then you certainly are now -
Too much correspondence with you in that vein could contaminate the
environment. <chuckles>
Also sounds like you have a few prejudices to grow out of .. who would you
like to be when you grow up?
BTW
I suggest you use a dictionary if you cannot use a spellchecker.
[/snip]
Sure, too much correspondence in the vein of the e-mail I just posted could
be just very contaminating. How do you respond to someone who calls you a
"smug prick"? ROFLMMFAO! As for who I want to be when I grow up; I want to
be someone who does not hide behind an anonymous e-mail address while
crtiquing someone for supplying terse, but correct, answers to others here
for several years. Oh, wait ....
Would my original reply have been any better if I had said RTFM, STFA, or
STFW? I usually get taken to task for that as well.
attached mail follows:
On Fri, 2005-12-09 at 15:40, Jay Blanchard wrote:
> ROFLMMFAO!
I'm jest curious here... is that extra 'M' for massive? :B
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
[snip]
Well if you were not rude then you certainly are now -
Too much correspondence with you in that vein could contaminate the
environment. <chuckles>
Also sounds like you have a few prejudices to grow out of .. who would you
like to be when you grow up?
BTW
I suggest you use a dictionary if you cannot use a spellchecker.
[/snip]
Sure, too much correspondence in the vein of the e-mail I just posted could
be just very contaminating. How do you respond to someone who calls you a
"smug prick"? ROFLMMFAO! As for who I want to be when I grow up; I want to
be someone who does not hide behind an anonymous e-mail address while
critiquing someone for supplying terse, but otherwise helpful, answers to
others here for several years. Oh, wait ....
Would my original reply have been any better if I had said RTFM, STFA, or
STFW? I usually get taken to task for that as well.
attached mail follows:
[snip]
Yes,
all requested module is put on same folder which module which succesfully
load.
But, I don't understand why they say the module is not found?
[/snip]
What operating system are you using?
attached mail follows:
[snip]
Yes,
all requested module is put on same folder which module which succesfully
load.
But, I don't understand why they say the module is not found?
What operating system are you using?
{/snip]
Sorry, found the original post. Can you send the snippet for the php.ini
where you set the extensions directory?
attached mail follows:
Simply Fantastic!. Thanks a lot!
So for me the best solution I think, would be to read the MySQL Table, and
produce the XML with a given template from a PHP Script.
I will use Scheduled Task instead of CRON... (Sorry, working on windows ;-)
)
[Off topic] Could it be tested without an IPod device? I´ve been googling
around, but I don´t know much about those devices, and IPodCasters
simulators for PC
Thanks again,
Best Regards.
On 12/9/05, Michael Hulse <micky
ambiguism.com> wrote:
>
> On Dec 9, 2005, at 3:45 AM, Danny wrote:
> > How to proceed....
>
> I recently set-up my first Podcast... Every week I have a script that
> grabs three MP3 files from a remote server and puts them on my own
> server... Then I have another script that generates the Podcast XML.
>
> I am using CRON jobs to do all the work for me... all I have to do is
> open iTunes and everything starts downloading automatically.... is
> nice.
>
> The way I generate my XML is via output buffering and a simple
> text-file template. Here is my template (template.txt):
>
> <?xml version=" 1.0"?>
> <rss version="2.0">
> <channel>
> <title>Put your title here [{_dateCheck_}]</title>
> <link>Link to your site/the page that explains what this podcast is
>
> all about.</link>
> <description>This is the description... it will show-up in
> iTunes...
> yadda yadda...</description>
> <language>en-us</language>
> <copyright>Copyright Info</copyright>
> <lastBuildDate>{_dateLong_}</lastBuildDate>
> <webMaster>Your name here</webMaster>
> <ttl>1</ttl>
> <item>
> <title>Name of MP3 podcast - Hour 01, {_dateCheck_},
> {_dateSlashes_}</title>
> <description>Hour 01 ({_dateSlashes_}) of this particular
> podcast.</description>
> <pubDate>{_dateLong_}</pubDate>
> <enclosure
> url="http://www.yoursite.com/location_of_podcast_mp3/mp3_name-
> {_dateShort_}.mp3" length="10800040" type="audio/mpeg"/>
> <guid isPermaLink="false">{_randNumOne_}</guid>
> </item>
> <item>
> <title>Name of MP3 podcast - Hour 02, {_dateCheck_},
> {_dateSlashes_}</title>
> <description>Hour 02 ({_dateSlashes_}) of this particular
> podcast.</description>
> <pubDate>{_dateLong_}</pubDate>
> <enclosure
> url=" http://www.yoursite.com/location_of_podcast_mp3/mp3_name-
> {_dateShort_}.mp3" length="10800040" type="audio/mpeg"/>
> <guid isPermaLink="false">{_randNumTwo_}</guid>
> </item>
> <item>
> <title>Name of MP3 podcast - Hour 03, {_dateCheck_},
> {_dateSlashes_}</title>
> <description>Hour 03 ({_dateSlashes_}) of this particular
> podcast.</description>
> <pubDate>{_dateLong_}</pubDate>
> <enclosure
> url=" http://www.yoursite.com/location_of_podcast_mp3/mp3_name-
> {_dateShort_}.mp3" length="10800040" type="audio/mpeg"/>
> <guid isPermaLink="false">{_randNumThree_}</guid>
> </item>
> </channel>
> </rss>
>
> Here is my PHP (pod.php):
>
> <?php
>
> # Error checking:
> if((isset($_REQUEST['pass'])) && ($_REQUEST['pass'] === 'let_me_in') &&
> (!empty($_REQUEST['pass']))) {
>
> # Begin date:
> $date_long = date('r'); // Example output: Mon, 21 Nov 2005 05:20:18
> -0500
> $date_short = date('mdy'); // Example output: 051121
> $date_slashes = date('m/d/y'); // Example output: 11/21/05
> $date_check = date('l');
> #End date.
>
> function randNumb() {
> # Begin random # generation:
> srand ((double) microtime( )*1000000);
> $random_number = rand( );
> return $random_number;
> # End random # generation.
> }
>
> $rand_num_one = randNumb();
> $rand_num_two = randNumb();
> $rand_num_three = randNumb();
>
>
> // HTML to be written:
> ob_start();
>
> readfile($_SERVER['DOCUMENT_ROOT'].'/template.txt');
>
> $contents = ob_get_clean();
>
ob_end_clean();
>
> $contents = str_replace('{_dateLong_}',$date_long, $contents);
> $contents = str_replace('{_dateSlashes_}',$date_slashes, $contents);
> $contents = str_replace('{_dateShort_}',$date_short, $contents);
> $contents = str_replace('{_randNumOne_}',$rand_num_one, $contents);
> $contents = str_replace('{_randNumTwo_}',$rand_num_two, $contents);
> $contents = str_replace('{_randNumThree_}',$rand_num_three, $contents);
> $contents = str_replace('{_dateCheck_}',$date_check, $contents);
>
> # Now open the file and write contents of template:
> $fp =
> fopen($_SERVER['DOCUMENT_ROOT'].'/
> path_to_place_where_you_store_the_xml_file/
> xml_file_name'.$date_check.'.xml','wb'); // Open for writing only; If
> the file does not exist, attempt to create it.
> fwrite($fp, $contents);
> fclose($fp);
>
> } else { echo "<h1>Please Leave Now!</h1>"; }
>
> ?>
>
> I then use a cron to run the above script every week, like so:
>
> GET http://www.your_site.com/pod.php?pass=let_me_in > /dev/null
>
> Or, instead of using the CRON, you can just got to the script via your
> browser like so:
>
> http://www.your_site.com/pod.php?pass=let_me_in
>
> And the XML file will generate itself.
>
> Please keep in mind, I quickly slapped this script together... It gets
> the job done for me... I am sure there are way better ways to do what I
> am doing... also, the XML template could be more robust (more meta-tags
> maybe?)... the PHP script could probably use something other than
> output buffering... If anyone has ideas/thoughts/suggestions for
> improvements please let me know.
>
> HTH,
> Cheers,
> Micky
> --
> BCC for Privacy: http://www.cs.rutgers.edu/~watrous/bcc-for-privacy.html
> My del.icio.us: http://del.icio.us/mhulse
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
dpc
attached mail follows:
On Dec 9, 2005, at 1:45 PM, Danny wrote:
> Simply Fantastic!. Thanks a lot!
Sure thing, I am glad that I was able to help/give you some ideas. :)
> So for me the best solution I think, would be to read the MySQL Table,
> and produce the XML with a given template from a PHP Script. I will
> use Scheduled Task instead of CRON... (Sorry, working on windows ;-))
That sounds like the perfect solution! :D
> [Off topic] Could it be tested without an IPod device? I´ve been
> googling around, but I don´t know much about those devices, and
> IPodCasters simulators for PC
Great question! :)
[Double OT:] Podcast/Podcasting, IMHO, is about the worst name the
founders could have given this technology... To me, POD sounds like a
proprietary APPLE technology/product - maybe only to be used with an
iPod? When, in all actuality, Podcasts/Podcasting can be used/played by
many different apps on many different platforms - and no need for an
iPod! Also, it is not restricted to iPods, I think just about any
contemporary MP3 player can import Podcasts... Well, that is my two
cents on this OT subject. :) [/Double OT]
To answer your question:
iPodder (PC) is probably what you are looking for:
http://www.ipodder.org/
Here is a nice tutorial on how to download streams:
http://www.jakeludington.com/archives/000406.html
I am sure that the latest/next version of Windows Media Player will
probably let you download Podcasts... Not too sure though, I am on a
Mac.
A few notes:
-- What is Podcasting?
Podcasting (iPod + broadcasting) is a new kind of radio for your
computer and/or MP3 player. Podcasting allows you to save and listen to
your favorite radio programs when and where you want.
-- How Podcasting works.
A broadcaster makes digital audio files available on the Internet.
Listeners "subscribe" to these programs using podcasting software. The
listener's computer automatically downloads the audio files, which can
then be listened to on the computer or transferred to a portable MP3
audio player.
-- How do you get started?
In order to receive podcasts you need a computer, an Internet
connection, and podcasting software. To take a podcast with you, an
iPod or any portable MP3 player is also needed. The podcasting software
includes programs that allow your computer to automatically receive
audio files of specified broadcast programs over the Internet. Then you
can either listen to the programs on your computer or have them
downloaded to your portable audio player.
Hope that helps!
Good luck,
Cheers,
Micky
--
¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><((((º>
·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸><((((º>
`·.¸¸><((((º>¸.·´¯`·.¸¸><((((º>
attached mail follows:
Hi,
I'm working on writing a multi-client socket server and have a question
about the socket_select() function.
I've read through lots of example source on the web using BSD sockets
and select().
For some reason none of them ever populate the write fd set. They
only populate the read fd set.
$numchanged = socket_select($read,$write=NULL,$except=NULL,0);
The server examples I've seen usually just test for any incoming data
and then respond immediately with a socket_write,
they never bother using the write fd set to see if the socket can be
written to.
Can someone explain why, and maybe point me to some examples where it
would be useful to use the write fd set?
thanks alot,
will
attached mail follows:
This question is a little OT but no doubt everyone and their brother is
generating tables here so heres my question.
I'm a little frustrated with CSS. Sure I can define styles for TH, TD,
and so on. But mildly sophisticated pages are buried in tables within
tables. Specifying global styles for these tags is useless. Likewise I
can define a class like:
.t {
font-size: small;
border-bottom: 1px lightgrey solid;
border-right: 1px lightgrey solid;
}
and add a class="t" to EVER SINGLE TH and TD tag like:
echo "<table cellpadding=\"0\" cellspacing=\"0\">";
echo "<tr><td class=\"t\">ID</td><td class=\"t\">Username</td><td class=\"t\">Name</td><td class=\"t\">Email</td><td class=\"t\">Options</td><td class=\"t\">Date</td>";
while ($row = mysql_fetch_row($result)) {
echo "<tr><td class=\"t\">$row[0]</td> <td class=\"t\">$row[1]</td> <td class=\"t\">$row[2]</td> <td class=\"t\">$row[5]</td> <td class=\"t\">$row[6]</td> <td class=\"t\">$row[7]</td> <tr/>";
}
echo "</table>";
but that is a total waste of bandwidth and typing. Also, it's just ugly.
What I *want* to do is define a class for TR or TABLE or better still
just add a DIV around the entire section I want to style and have it
affect the encosed region. What does the "cascade" in CSS stand for?
So can anyone recommend a method to this maddness?
Thanks,
Mike
attached mail follows:
table, tr, th, td, p, { (note there is no dot in front of the class name!)
font-size: small;
border-bottom: 1px lightgrey solid;
border-right: 1px lightgrey solid;
}
and yo don't ned to add class=t any more
:)
similar for input, body, p, a...
-afan
On Friday 09 December 2005 20:16, Michael B Allen wrote:
> This question is a little OT but no doubt everyone and their brother is
> generating tables here so heres my question.
>
> I'm a little frustrated with CSS. Sure I can define styles for TH, TD,
> and so on. But mildly sophisticated pages are buried in tables within
> tables. Specifying global styles for these tags is useless. Likewise I
> can define a class like:
>
> .t {
> font-size: small;
> border-bottom: 1px lightgrey solid;
> border-right: 1px lightgrey solid;
> }
>
> and add a class="t" to EVER SINGLE TH and TD tag like:
>
> echo "<table cellpadding=\"0\" cellspacing=\"0\">";
> echo "<tr><td class=\"t\">ID</td><td class=\"t\">Username</td><td
> class=\"t\">Name</td><td class=\"t\">Email</td><td
> class=\"t\">Options</td><td class=\"t\">Date</td>"; while ($row =
> mysql_fetch_row($result)) {
> echo "<tr><td class=\"t\">$row[0]</td> <td class=\"t\">$row[1]</td>
> <td class=\"t\">$row[2]</td> <td class=\"t\">$row[5]</td> <td
> class=\"t\">$row[6]</td> <td class=\"t\">$row[7]</td> <tr/>"; }
> echo "</table>";
>
> but that is a total waste of bandwidth and typing. Also, it's just ugly.
>
> What I *want* to do is define a class for TR or TABLE or better still
> just add a DIV around the entire section I want to style and have it
> affect the encosed region. What does the "cascade" in CSS stand for?
>
> So can anyone recommend a method to this maddness?
>
> Thanks,
> Mike
attached mail follows:
On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
> This question is a little OT but no doubt everyone and their brother is
> generating tables here so heres my question.
well, i try to only use tables when I present tabular data, i
wonder mabey if i'm a cousin or something. And, yes, it is a bit OT.
>
> I'm a little frustrated with CSS. Sure I can define styles for TH, TD,
> and so on. But mildly sophisticated pages are buried in tables within
> tables. Specifying global styles for these tags is useless. Likewise I
> can define a class like:
The thing is, well, consider how frustrating it was to make a
complicated table of data.
I think CSS appears to be complicated cause it has to interact with
HTML in wich people tend to belive that HTML is too output: layout,
markup, and presentation.
HTML and CSS are two sperate languages. HTML/CSS is going/has been
more leaning towards the concept of XML/XSLT. Where, the html (xml)
is the data and the CSS (xslt) is how to present it. I always use
this site to show the power of css and how html is rather
unimportant for presentation but for data structure:
http://www.csszengarden.com/
>
> .t {
> font-size: small;
> border-bottom: 1px lightgrey solid;
> border-right: 1px lightgrey solid;
> }
Anyway... Change the definition to:
table.t td, table.t th {
And Add:
table.t th {
text-align: left;
}
> and add a class="t" to EVER SINGLE TH and TD tag like:
>
> echo "<table cellpadding=\"0\" cellspacing=\"0\">";
Assign the class of 't' to the table.
> echo "<tr><td class=\"t\">ID</td><td class=\"t\">Username</td><td class=\"t\">Name</td><td class=\"t\">Email</td><td class=\"t\">Options</td><td class=\"t\">Date</td>";
techincally i would define these as <th>'s they are headers for the
data set.
> while ($row = mysql_fetch_row($result)) {
> echo "<tr><td class=\"t\">$row[0]</td> <td class=\"t\">$row[1]</td> <td class=\"t\">$row[2]</td> <td class=\"t\">$row[5]</td> <td class=\"t\">$row[6]</td> <td class=\"t\">$row[7]</td> <tr/>";
and here you just have <td>
HTH,
Curt.
--
cat .signature: No such file or directory
attached mail follows:
On Fri, 9 Dec 2005 20:42:14 -0600
Afan Pasalic <afan
afan.net> wrote:
> table, tr, th, td, p, { (note there is no dot in front of the class name!)
> font-size: small;
> border-bottom: 1px lightgrey solid;
> border-right: 1px lightgrey solid;
> }
>
> and yo don't ned to add class=t any more
>
> :)
>
> similar for input, body, p, a...
And what do I do if the table is within another table that is styled
differently?
Mike
attached mail follows:
On Fri, Dec 09, 2005 at 08:42:14PM -0600, Afan Pasalic wrote:
> table, tr, th, td, p, { (note there is no dot in front of the class name!)
> font-size: small;
> border-bottom: 1px lightgrey solid;
> border-right: 1px lightgrey solid;
> }
>
> and yo don't ned to add class=t any more
Now anytime I do a <p> i'm going to have some weird border around
it. Not to mention a wierd border around all table, th, td and tr's.
And if you happened to miss the border definition, globaling all
these items like this is a bad thing. At least, you simply need to
global the 'html' or 'html body' declartion with the default
settings with explicit definitions like font size, font face,
color, etc.. then redefine what ever is needed based on the id or
class of the elements.
There are cases when you may want to define things <p>, <td>, <th>
globally though, for example i commonly redine my p and th as:
p {
margin: 0.8em 0; /* to much space by default */
}
th {
text-align: left; /* center alignment never looks good */
}
Curt.
--
cat .signature: No such file or directory
attached mail follows:
Not IE friendly but you could always do
table.table1>tr>td { css here; }
IE will simply ignore it.. even if you set other rules that it _does_
understand. :)
On Friday 09 December 2005 21:07, Curt Zirzow wrote:
> On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
> > This question is a little OT but no doubt everyone and their brother is
> > generating tables here so heres my question.
>
> well, i try to only use tables when I present tabular data, i
> wonder mabey if i'm a cousin or something. And, yes, it is a bit OT.
>
> > I'm a little frustrated with CSS. Sure I can define styles for TH, TD,
> > and so on. But mildly sophisticated pages are buried in tables within
> > tables. Specifying global styles for these tags is useless. Likewise I
> > can define a class like:
>
> The thing is, well, consider how frustrating it was to make a
> complicated table of data.
>
> I think CSS appears to be complicated cause it has to interact with
> HTML in wich people tend to belive that HTML is too output: layout,
> markup, and presentation.
>
> HTML and CSS are two sperate languages. HTML/CSS is going/has been
> more leaning towards the concept of XML/XSLT. Where, the html (xml)
> is the data and the CSS (xslt) is how to present it. I always use
> this site to show the power of css and how html is rather
> unimportant for presentation but for data structure:
>
> http://www.csszengarden.com/
>
> > .t {
> > font-size: small;
> > border-bottom: 1px lightgrey solid;
> > border-right: 1px lightgrey solid;
> > }
>
> Anyway... Change the definition to:
>
> table.t td, table.t th {
>
> And Add:
>
> table.t th {
> text-align: left;
> }
>
> > and add a class="t" to EVER SINGLE TH and TD tag like:
> >
> > echo "<table cellpadding=\"0\" cellspacing=\"0\">";
>
> Assign the class of 't' to the table.
>
> > echo "<tr><td class=\"t\">ID</td><td class=\"t\">Username</td><td
> > class=\"t\">Name</td><td class=\"t\">Email</td><td
> > class=\"t\">Options</td><td class=\"t\">Date</td>";
>
> techincally i would define these as <th>'s they are headers for the
> data set.
>
> > while ($row = mysql_fetch_row($result)) {
> > echo "<tr><td class=\"t\">$row[0]</td> <td class=\"t\">$row[1]</td>
> > <td class=\"t\">$row[2]</td> <td class=\"t\">$row[5]</td> <td
> > class=\"t\">$row[6]</td> <td class=\"t\">$row[7]</td> <tr/>";
>
> and here you just have <td>
>
> HTH,
>
> Curt.
> --
> cat .signature: No such file or directory
attached mail follows:
I believe, for IE (though I haven't tested it) this would work:
table.table1 > tbody > tr > td { css here; }
I think IE assumes a tbody, even when there isn't one specified.
table.table1 td { css here; }
Would also do fairly well, but , since this would apply to all tds
within the table tag (even the cells of any embedded tables) may require
some creative spefification of values to work properly
Chris
Stephen Leaf wrote:
>Not IE friendly but you could always do
>
>table.table1>tr>td { css here; }
>
>IE will simply ignore it.. even if you set other rules that it _does_
>understand. :)
>
>On Friday 09 December 2005 21:07, Curt Zirzow wrote:
>
>
>>On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
>>
>>
>>>This question is a little OT but no doubt everyone and their brother is
>>>generating tables here so heres my question.
>>>
>>>
>>well, i try to only use tables when I present tabular data, i
>>wonder mabey if i'm a cousin or something. And, yes, it is a bit OT.
>>
>>
>>
>>>I'm a little frustrated with CSS. Sure I can define styles for TH, TD,
>>>and so on. But mildly sophisticated pages are buried in tables within
>>>tables. Specifying global styles for these tags is useless. Likewise I
>>>can define a class like:
>>>
>>>
>>The thing is, well, consider how frustrating it was to make a
>>complicated table of data.
>>
>>I think CSS appears to be complicated cause it has to interact with
>>HTML in wich people tend to belive that HTML is too output: layout,
>>markup, and presentation.
>>
>>HTML and CSS are two sperate languages. HTML/CSS is going/has been
>>more leaning towards the concept of XML/XSLT. Where, the html (xml)
>>is the data and the CSS (xslt) is how to present it. I always use
>>this site to show the power of css and how html is rather
>>unimportant for presentation but for data structure:
>>
>> http://www.csszengarden.com/
>>
>>
>>
>>>.t {
>>> font-size: small;
>>> border-bottom: 1px lightgrey solid;
>>> border-right: 1px lightgrey solid;
>>>}
>>>
>>>
>>Anyway... Change the definition to:
>>
>> table.t td, table.t th {
>>
>>And Add:
>>
>> table.t th {
>> text-align: left;
>> }
>>
>>
>>
>>>and add a class="t" to EVER SINGLE TH and TD tag like:
>>>
>>> echo "<table cellpadding=\"0\" cellspacing=\"0\">";
>>>
>>>
>>Assign the class of 't' to the table.
>>
>>
>>
>>> echo "<tr><td class=\"t\">ID</td><td class=\"t\">Username</td><td
>>>class=\"t\">Name</td><td class=\"t\">Email</td><td
>>>class=\"t\">Options</td><td class=\"t\">Date</td>";
>>>
>>>
>>techincally i would define these as <th>'s they are headers for the
>>data set.
>>
>>
>>
>>> while ($row = mysql_fetch_row($result)) {
>>> echo "<tr><td class=\"t\">$row[0]</td> <td class=\"t\">$row[1]</td>
>>><td class=\"t\">$row[2]</td> <td class=\"t\">$row[5]</td> <td
>>>class=\"t\">$row[6]</td> <td class=\"t\">$row[7]</td> <tr/>";
>>>
>>>
>>and here you just have <td>
>>
>>HTH,
>>
>>Curt.
>>--
>>cat .signature: No such file or directory
>>
>>
>
>
>
attached mail follows:
On Fri, 9 Dec 2005 19:07:36 -0800
Curt Zirzow <czirzow
gmail.com> wrote:
> On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
> > This question is a little OT but no doubt everyone and their brother is
> > generating tables here so heres my question.
>
> well, i try to only use tables when I present tabular data, i
> wonder mabey if i'm a cousin or something. And, yes, it is a bit OT.
So what do you use for layout? CSS absolute positioning? I'm highly skeptical.
> http://www.csszengarden.com/
But from looking at the "Submit your Design" link I see they have some
elaborate forms with no tables. Mmm, I'm less skeptical.
> > .t {
> > font-size: small;
> > border-bottom: 1px lightgrey solid;
> > border-right: 1px lightgrey solid;
> > }
>
> Anyway... Change the definition to:
>
> table.t td, table.t th {
>
> And Add:
>
> table.t th {
> text-align: left;
> }
>
> > and add a class="t" to EVER SINGLE TH and TD tag like:
> >
> > echo "<table cellpadding=\"0\" cellspacing=\"0\">";
>
> Assign the class of 't' to the table.
Yes! This is what I want. So the following:
classname descendantelem {
style
}
means to apply the style to descendantelems but you can assign the class to any ancestor?
Can I mix styles for table and td tags like the following?
table.t, table.t th, table.t td {
empty-cells: show;
border-collapse: collapse;
border-width: 1px;
border-style: solid;
border-color: lightgrey;
}
The emtpy-cells and border-callapse styles are table specific I think
but the above appears to work.
Thanks,
Mike
attached mail follows:
On Friday 09 December 2005 21:53, Chris wrote:
> I believe, for IE (though I haven't tested it) this would work:
>
> table.table1 > tbody > tr > td { css here; }
How I wish this would work.
it doesn't handle the parent>child at all. I've tested it. found it to be good
to use to -fix- other problems.
do a few css changes.. then fix it for the other browsers using this approach.
>
> I think IE assumes a tbody, even when there isn't one specified.
>
> table.table1 td { css here; }
hmm.. never tried doing this approach before. thanks ;)
>
> Would also do fairly well, but , since this would apply to all tds
> within the table tag (even the cells of any embedded tables) may require
> some creative spefification of values to work properly
>
> Chris
>
> Stephen Leaf wrote:
> >Not IE friendly but you could always do
> >
> >table.table1>tr>td { css here; }
> >
> >IE will simply ignore it.. even if you set other rules that it _does_
> >understand. :)
> >
> >On Friday 09 December 2005 21:07, Curt Zirzow wrote:
> >>On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
> >>>This question is a little OT but no doubt everyone and their brother is
> >>>generating tables here so heres my question.
> >>
> >>well, i try to only use tables when I present tabular data, i
> >>wonder mabey if i'm a cousin or something. And, yes, it is a bit OT.
> >>
> >>>I'm a little frustrated with CSS. Sure I can define styles for TH, TD,
> >>>and so on. But mildly sophisticated pages are buried in tables within
> >>>tables. Specifying global styles for these tags is useless. Likewise I
> >>>can define a class like:
> >>
> >>The thing is, well, consider how frustrating it was to make a
> >>complicated table of data.
> >>
> >>I think CSS appears to be complicated cause it has to interact with
> >>HTML in wich people tend to belive that HTML is too output: layout,
> >>markup, and presentation.
> >>
> >>HTML and CSS are two sperate languages. HTML/CSS is going/has been
> >>more leaning towards the concept of XML/XSLT. Where, the html (xml)
> >>is the data and the CSS (xslt) is how to present it. I always use
> >>this site to show the power of css and how html is rather
> >>unimportant for presentation but for data structure:
> >>
> >> http://www.csszengarden.com/
> >>
> >>>.t {
> >>> font-size: small;
> >>> border-bottom: 1px lightgrey solid;
> >>> border-right: 1px lightgrey solid;
> >>>}
> >>
> >>Anyway... Change the definition to:
> >>
> >> table.t td, table.t th {
> >>
> >>And Add:
> >>
> >> table.t th {
> >> text-align: left;
> >> }
> >>
> >>>and add a class="t" to EVER SINGLE TH and TD tag like:
> >>>
> >>> echo "<table cellpadding=\"0\" cellspacing=\"0\">";
> >>
> >>Assign the class of 't' to the table.
> >>
> >>> echo "<tr><td class=\"t\">ID</td><td class=\"t\">Username</td><td
> >>>class=\"t\">Name</td><td class=\"t\">Email</td><td
> >>>class=\"t\">Options</td><td class=\"t\">Date</td>";
> >>
> >>techincally i would define these as <th>'s they are headers for the
> >>data set.
> >>
> >>> while ($row = mysql_fetch_row($result)) {
> >>> echo "<tr><td class=\"t\">$row[0]</td> <td
> >>> class=\"t\">$row[1]</td> <td class=\"t\">$row[2]</td> <td
> >>> class=\"t\">$row[5]</td> <td
> >>>class=\"t\">$row[6]</td> <td class=\"t\">$row[7]</td> <tr/>";
> >>
> >>and here you just have <td>
> >>
> >>HTH,
> >>
> >>Curt.
> >>--
> >>cat .signature: No such file or directory
attached mail follows:
[JOB] MySQL/PHP Engineer, Los Angeles, CA
http://www.superiorss.com/jobs.htm
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/195 - Release Date: 12/8/2005
attached mail follows:
On Fri, Dec 09, 2005 at 10:41:15PM -0600, Beau Gould wrote:
> [JOB] MySQL/PHP Engineer, Los Angeles, CA
> http://www.superiorss.com/jobs.htm
Consider what would happpen if everone on this list would decide to
post their resume?
You know what would happen?
My resume would be better than anyone.
Curt.
--
cat .signature: No such file or directory
attached mail follows:
Hi,
How to pass an array (from php ) to java script and display it
using javascript?...
Jasus.
attached mail follows:
On Dec 9, 2005, at 8:30 PM, Johny John wrote:
> Hi,
> How to pass an array (from php ) to java script and display
> it
> using javascript?...
>
> Jasus.
Well,
FWIK, Here is how you pass a variable:
<script type="text/javascript" language="javascript">
<?php echo "var picUrl = '$picUrl';\n"; ?>
document.write(picUrl);
</script>
So, if you know how to instantiate an array in JS, just do a PHP loop
where you pull contents out of the PHP array an put into the JS
array... then you can do whatever you want with the array later in your
JS script... AFAIK.
Hth,
Cheers,
Micky
attached mail follows:
On Fri, Dec 09, 2005 at 08:30:51PM -0800, Johny John wrote:
> Hi,
> How to pass an array (from php ) to java script and display it
> using javascript?...
What is your array?
What do you expect your script to do?
What context is this to be outputed to?
Sorry, i had to pull a 'Jay Blanchard' on ya...
Curt.
--
cat .signature: No such file or directory
attached mail follows:
Sorry foe yhe inconvenience...
Script is given below..
$name = $_GET['photo'];
$id = $_GET['ga_id'];
$objGA = new Gallery_Album($db);
$objError = $objGA->getAlbum($id);
$y = unserialize($objError['ga_images']);
echo "<br>";
$count = count($y);
function getArray($count)
{
for ($i = 0; $i < $count ; $i++)
{
$domain = stristr($y[$i]['photo'] , '-');
$value[$i] =str_replace("-","",$domain);
$numberslide[].= $value[$i];
}
return $numberslide;
}
////////////////////////
echo "<script type='text/javascript>";
echo "var numberslide = new Array()";
for ($i = 0; $i < $count ; $i++)
{
echo "numberslide[$i] = '$numberslide[$i]';\n";
echo "alert("numberslide[$i]")";
}
echo "</script>";
i want to preload the images to the client side and then to display from the
client side..
Johny
On 12/9/05, Curt Zirzow <czirzow
gmail.com> wrote:
>
> On Fri, Dec 09, 2005 at 08:30:51PM -0800, Johny John wrote:
> > Hi,
> > How to pass an array (from php ) to java script and display it
> > using javascript?...
>
> What is your array?
>
> What do you expect your script to do?
>
> What context is this to be outputed to?
>
> Sorry, i had to pull a 'Jay Blanchard' on ya...
>
> Curt.
> --
> cat .signature: No such file or directory
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
On Fri, Dec 09, 2005 at 10:38:12PM -0500, Michael B Allen wrote:
> On Fri, 9 Dec 2005 19:07:36 -0800
> Curt Zirzow <czirzow
gmail.com> wrote:
>
> > On Fri, Dec 09, 2005 at 09:16:32PM -0500, Michael B Allen wrote:
> > > This question is a little OT but no doubt everyone and their brother is
> > > generating tables here so heres my question.
> >
> > well, i try to only use tables when I present tabular data, i
> > wonder mabey if i'm a cousin or something. And, yes, it is a bit OT.
>
> So what do you use for layout? CSS absolute positioning? I'm highly skeptical.
Imo, aboslute position will get you in trouble and will avoid it
unless absolute is needed. there are severaL solutions for css
layouts, googling for css layout or css design will give you
serveral options.
>
> > http://www.csszengarden.com/
>
> But from looking at the "Submit your Design" link I see they have some
> elaborate forms with no tables. Mmm, I'm less skeptical.
Serveral times i have pointed people to that site and they were
like 'yeah, and so?'
And so look at the html source across all the different pages and
compare them, you will notice that the only thing differnent is the
css included.
>
> > > .t {
> > > font-size: small;
> > > border-bottom: 1px lightgrey solid;
> > > border-right: 1px lightgrey solid;
> > > }
> >
> > Anyway... Change the definition to:
> >
> > table.t td, table.t th {
> >
> > And Add:
> >
> > table.t th {
> > text-align: left;
> > }
> >
> > > and add a class="t" to EVER SINGLE TH and TD tag like:
> > >
> > > echo "<table cellpadding=\"0\" cellspacing=\"0\">";
> >
> > Assign the class of 't' to the table.
I hope you didn't miss this.
Curt.
--
cat .signature: No such file or directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]