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
-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
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
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
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
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
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
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
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
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
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
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 /;
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
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
-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
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
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
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
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
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
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
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'
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:
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
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
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
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
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
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
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
[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
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,
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,
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
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
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
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
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
38 matches
Mail list logo