php-general Digest 6 Aug 2007 16:53:05 -0000 Issue 4946

2007-08-06 Thread php-general-digest-help
php-general Digest 6 Aug 2007 16:53:05 - Issue 4946 Topics (messages 260224 through 260240): Re: Creating watermarks 260224 by: Christian Hänsel Re: About MySQL Tables 260225 by: Chris Aitken passthru 260226 by: Payne 260228 by: Richard Heyes 260229

RE: [PHP] About MySQL Tables

2007-08-06 Thread Chris Aitken
-Original Message- From: Kelvin Park [mailto:[EMAIL PROTECTED] I have two tables that share product codes to relate data. One table is called IMAGE, and another one is called the PRODUCT. There are more than one image for every product, for example product code 1122 will have 3

[PHP] passthru

2007-08-06 Thread Payne
Hi, Does anyone know way to passthru man pages so they don't show the ascii formating? Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding to time having a timestamp

2007-08-06 Thread Richard Heyes
How can I add a day to a date if I have a timestamp. Here is my line: list($d,$m,$y,$dayname,$monthname,$am)=explode(' ',date('d m Y D M a', $timestamp)); Simply add 86400 (number of seconds in a day). -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] passthru

2007-08-06 Thread Richard Heyes
Does anyone know way to passthru man pages so they don't show the ascii formating? You could: 1) Replace all newlines (ASCII 10) with a br tag. htmlspecialchars() will do this for you. 2) Use a pre tag within which newlines are preserved 3) Use preg_replace to replace non-printable

[PHP] Re: passthru

2007-08-06 Thread Colin Guthrie
Richard Heyes wrote: Does anyone know way to passthru man pages so they don't show the ascii formating? You could: 1) Replace all newlines (ASCII 10) with a br tag. htmlspecialchars() will do this for you. Does it? I thought it only replaced entities. \n is not a special char in html

[PHP] Error Handling question

2007-08-06 Thread debussy007
Hi, I am new to PHP and need some help for error handling. I read in the docs that i can handle the errors this way in my PhP: set_error_handler('errorHandler'); function errorHandler($errnum,$errmsg,$file,$lineno){ [...] } But does that mean that I have to copy paste this code in all my

Re: [PHP] passthru

2007-08-06 Thread Payne
Richard Heyes wrote: Does anyone know way to passthru man pages so they don't show the ascii formating? You could: 1) Replace all newlines (ASCII 10) with a br tag. htmlspecialchars() will do this for you. 2) Use a pre tag within which newlines are preserved 3) Use preg_replace to replace

Re: [PHP] Re: passthru

2007-08-06 Thread Richard Heyes
Does anyone know way to passthru man pages so they don't show the ascii formating? You could: 1) Replace all newlines (ASCII 10) with a br tag. htmlspecialchars() will do this for you. Does it? I thought it only replaced entities. \n is not a special char in html lingo in that you can

Re: [PHP] passthru

2007-08-06 Thread POLONKAI Gergely
Why don't you just use the man2html script? 2007. 08. 6, hétfő keltezéssel 05.14-kor Payne ezt írta: Hi, Does anyone know way to passthru man pages so they don't show the ascii formating? Payne

[PHP] Check if var has a date (timestamp or regular)

2007-08-06 Thread OOzy Pal
How can I check an inputed date if it is a valid date and if it is in the form of a timestamp or regular date such as (22-07-2007 or 22/07/2007) -- OOzy Ubuntu-Feisty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] compose html body with variables

2007-08-06 Thread Matt
Hello, I'm trying to compose the body of an html email to use with the mail() function. I'm running into problem because I'm not sure how to quote the multi-line body. Here is what I have: $body = echo Hello, here is your quote from Freight Services.br /br /;

Re: [PHP] Error Handling question

2007-08-06 Thread brian
debussy007 wrote: Hi, I am new to PHP and need some help for error handling. I read in the docs that i can handle the errors this way in my PhP: set_error_handler('errorHandler'); function errorHandler($errnum,$errmsg,$file,$lineno){ [...] } But does that mean that I have to copy paste

Re: [PHP] Check if var has a date (timestamp or regular)

2007-08-06 Thread brian
OOzy Pal wrote: How can I check an inputed date if it is a valid date and if it is in the form of a timestamp or regular date such as (22-07-2007 or 22/07/2007) You could first check if the variable consists only of numbers. If so, it's likely a timestamp. If $var does consist of something

RE: [PHP] compose html body with variables

2007-08-06 Thread Edward Kay
-Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 15:38 To: php-general@lists.php.net Subject: [PHP] compose html body with variables Hello, I'm trying to compose the body of an html email to use with the mail() function. I'm running into problem

[PHP] Can anyone point me toward some useful resources?

2007-08-06 Thread greg patmore
Hi all, I was wondering if anyone could point me toward some good resources regarding suggestions on handling user preferences over a cluster in a heavy traffic website. Online resources are preferable:-), but thanks for any help you could give. Regards, Greg

Re: [PHP] compose html body with variables

2007-08-06 Thread Matt
Edward Kay wrote: -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: 06 August 2007 15:38 To: php-general@lists.php.net Subject: [PHP] compose html body with variables Hello, I'm trying to compose the body of an html email to use with the mail() function. I'm running into

[PHP] Saving

2007-08-06 Thread Dan
Has anyone had to save the insance of a class which had a properties which were pointers? I have a really simple class. Just a few functions and a couple properties variables. But now I need to be able to save the class to a file. Of course when you re-open the file the pointers will be

[PHP] How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
Hello all, I am working on a project which needs to have some sort of plugins architecture and I am kinda stuck. Basically I want to give a list of items to the user, and according to his/her selection, I want to load relevant functionality into my application. I was thinking of having an

Re: [PHP] Saving

2007-08-06 Thread Stut
Dan wrote: Has anyone had to save the insance of a class which had a properties which were pointers? I have a really simple class. Just a few functions and a couple properties variables. But now I need to be able to save the class to a file. Of course when you re-open the file the

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Borokov Smith
Hey Hamza, require_once($chosenPlugin . '.class.php'); $obj = new $chosenPlugin(); return $obj; And you can start from there. hth, boro Hamza Saglam schreef: Hello all, I am working on a project which needs to have some sort of plugins architecture and I am kinda stuck. Basically I want

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
Hello Boro, Thanks for your response. However I am looking for something a bit more comprehensive :) I could do it as you suggested if I had only a few plugins. As I am going to add loads of plugins over the time, rather than adding all the plugins one by one, could something like a 'loader'

Re: [PHP] Re: Which Chat system to use

2007-08-06 Thread robert mena
Hi zerof, Thanks for the reply. Unfortunately the chat you've suggested does not have one basic need that is private chats (via separate channels). This way a user chatting in the room will be able to send direct messages with others. Any other tips? On 8/4/07, zerof [EMAIL PROTECTED] wrote:

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Stut
Hamza Saglam wrote: Thanks for your response. However I am looking for something a bit more comprehensive :) I could do it as you suggested if I had only a few plugins. As I am going to add loads of plugins over the time, rather than adding all the plugins one by one, could something like a

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Matt Zandstra
You might want to take a look at stickleback: http://sourceforge.net/projects/stickleback Documentation is very thin on the ground right now, but there's a presentation here: http://www.appulsus.com/resources/stickpres200706/img0.html mz On Mon, 6 Aug 2007, Hamza Saglam wrote: Hello

[PHP] Re: How to implement a plugin system?

2007-08-06 Thread Hamza Saglam
I think I have a rough understanding of the whole process so I should start coding :) Many thanks to everyone for your suggestions. Regards, Hamza. Hamza Saglam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I am working on a project which needs to have some sort of

Re: [PHP] Saving

2007-08-06 Thread Dan
Aww fuck! I clicked the wrong newsgroup. Sorry about that guys. Stut [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dan wrote: Has anyone had to save the insance of a class which had a properties which were pointers? I have a really simple class. Just a few functions and a

[PHP] Thoughts about music library

2007-08-06 Thread Børge Holen
I'm building an web interface for my music collection. What I would like is some opinions on what to choose pro/cons: The first choice I took was to stream music directly to a player, i.e. I construct and export an m3u with php and open that with any player. This gives me an external playlist

[PHP] Re: Thoughts about music library

2007-08-06 Thread Colin Guthrie
Børge Holen wrote: I'm building an web interface for my music collection. I'd have a quick look at mp3act. It does pretty much what you want I think. Also you may like Jinzora. There are probably others out there too. HTH Col. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Thoughts about music library

2007-08-06 Thread Børge Holen
On Monday 06 August 2007 23:39, Colin Guthrie wrote: Børge Holen wrote: I'm building an web interface for my music collection. I'd have a quick look at mp3act. It does pretty much what you want I think. yes, but where is the fun in that? ;D and if something irritate me, it simple to fix it

RE: [PHP] Thoughts about music library

2007-08-06 Thread Jay Blanchard
[snip] I'm building an web interface for my music collection. [/snip] Have you seen Ampache - http://www.ampache.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Thoughts about music library

2007-08-06 Thread Børge Holen
On Monday 06 August 2007 23:57, Jay Blanchard wrote: [snip] I'm building an web interface for my music collection. [/snip] Have you seen Ampache - http://www.ampache.org/ as a matter of fact... yes. From my point of view, it seems defect... the only thing it misses is the ballroom and beer,

[PHP] mail problem - deadline!!!!! - SOLVED

2007-08-06 Thread Luc
Good evening list, Solved the problem myself :-) i changed the mail function instead of $youremail = '[EMAIL PROTECTED]', i used $to = and changed the mail fuction from: @mail($contato_email,$subjectline,$body, From: $contato_email); into @mail($to,$subjectline,$body,

Re: [PHP] Can anyone point me toward some useful resources?

2007-08-06 Thread Nathan Nobbe
greg, how is your application written? is it fairly modular? you could build an n-tier system by assigning different components of the application to different pieces of hardware. then you could have the components communicate via a local high speed network. soap would be a good protocol for

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Nathan Nobbe
On 8/6/07, Stut [EMAIL PROTECTED] wrote: Hamza Saglam wrote: Thanks for your response. However I am looking for something a bit more comprehensive :) I could do it as you suggested if I had only a few plugins. As I am going to add loads of plugins over the time, rather than adding all

Re: [PHP] Thoughts about music library

2007-08-06 Thread Mark Kelly
Hi. On Monday 06 August 2007 23:13, Børge Holen wrote: As mentioned earlier, I want to make stuff myself When I did this I used Music Player Daemon (MPD - http://musicpd.org/) and wrote my own web interface in php. It offers a nice simple but powerful API, and is *very* low on resource usage

Re: [PHP] Check for well formed html

2007-08-06 Thread tedd
At 5:14 PM +0200 8/5/07, Tijnema wrote: On 8/5/07, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a client who wants to include html tags in his CMS. I know that I can limit what tags he can use, but how can I check if the text is well formed with the tags permitted before storing it in

[PHP] import Excel file into PostgreSQL

2007-08-06 Thread Alain Roger
HI, I would like to know the best and fastest way how to import some colums contents from Excel file to PostgreSQL database. how can i do that ? I mean some columns of Excel should be imported into a particular table and some others into another table. thanks for any suggestion. -- Alain