[PHP] Re: Template style question

2005-11-06 Thread Petr Smith
Smarty sucks. Mixing presentation and logic is never good idea. I know Smarty is very popular, but big popularity doesn't always mean quality. Back to original question: If you decided to reinvent the wheel, please don't reinvent square wheel without tire. Mixing presentation and logic is

Re: [PHP] Re: Template style question

2005-11-06 Thread Torgny Bjers
Petr Smith wrote: Smarty sucks. Mixing presentation and logic is never good idea. I know Smarty is very popular, but big popularity doesn't always mean quality. Back to original question: If you decided to reinvent the wheel, please don't reinvent square wheel without tire. Mixing

Re: [PHP] Register Globals (more)

2005-11-06 Thread Jochem Maas
John Taylor-Johnston wrote: Patience please :) See my html below. Basically, if type=checkbox is checked, I'm trying to build $to string in mail(). parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING line 4 How do I rebuild this peice of

Re: [PHP] Register Globals (more)

2005-11-06 Thread Jochem Maas
John Taylor-Johnston wrote: Patience please :) See my html below. Basically, if type=checkbox is checked, I'm trying to build $to string in mail(). parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING line 4 How do I rebuild this peice of

[PHP] filemtime doesn't always copy correctly

2005-11-06 Thread David T. Kotchen
I am backing up a file (the path filename of which are stored in $original; the path filename of the copy are stored in $bkup). I would also like to copy the file modification time of $original, so, after copying the file itself, I use: touch($bkup, filemtime($original)); However,

Re: [PHP] Re: Template style question

2005-11-06 Thread Robert Cummings
On Sun, 2005-11-06 at 05:11, Petr Smith wrote: Smarty sucks. Mixing presentation and logic is never good idea. I know Smarty is very popular, but big popularity doesn't always mean quality. Back to original question: If you decided to reinvent the wheel, please don't reinvent square wheel

[PHP] italic, bold and underline with GD ?

2005-11-06 Thread David
Can we use some function with GD to make text italic, bold and/or underline? http://php.net/imagettftext I see we can change size and font, but not style it's not possible in PHP? Thanks in advance David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] use SMB share to run php files

2005-11-06 Thread Ross
Ok been looking into in and know a bit of terminology now. I have an SMB share on my mac which is my WWWROOT folder on my windows computer. These files have all permissions enabled so I can edit in dreamweaver (on mac). All I want to so is setup PHP/Apache so it recognises the WWWROOT folder

Re: [PHP] PGP 5 start up issue

2005-11-06 Thread Unknown Unknown
I don't mean the php.ini file, I mean the extension directive setting in php.ini

Re: [PHP] PGP 5 start up issue

2005-11-06 Thread Vizion
On Sunday 06 November 2005 12:14, the author Unknown Unknown contributed to the dialogue on- Re: [PHP] PGP 5 start up issue: I don't mean the php.ini file, I mean the extension directive setting in php.ini Yep I thought that was what you meant -- it is not the cause.. I should have posted

[PHP] PHP 5.1 release ?

2005-11-06 Thread Dan Rossi
Hi there just wondering when there may be a php 5.1 release ? I just went into the downloads on the php site and the link to RC1 has been removed ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Line breaks in mail function?

2005-11-06 Thread Murray @ PlanetThoughtful
Hi All, I'm building a site on a new web host and am currently working on feedback forms. I'm using the mail() function to send the feedback to the destination mail account, and I'm having problems getting the body of the email to line break. I've tried constructing the body with both

Re: [PHP] Line breaks in mail function?

2005-11-06 Thread Jasper Bryant-Greene
On Mon, 2005-11-07 at 12:20 +1000, Murray @ PlanetThoughtful wrote: Example code: $body = 'From: ' . $name . '\r\n\r\n'; $body .= 'Email:' . $email . '\r\n\r\n'; $body .= 'IP Address: ' . $_SERVER['REMOTE_ADDR'] . '\r\n\r\n'; $body .= 'Feedback:\r\n\r\n'; $body .=

RE: [PHP] Line breaks in mail function?

2005-11-06 Thread Richard Leclair
Hi Murray, Try doing something like this: --- $body = From: $name Email: $email IP Address: $_SERVER['REMOTE_ADDR'] Feedback: $feedback ; $fromaddr = $email Reply-To: $email X-Mailer: PHP/ . phpversion(); mail([EMAIL PROTECTED],

[PHP] Mysql php Load Data Infiles

2005-11-06 Thread Vizion
While I think this is primarily a mysql syntax problem I have asked on the mysql forum but not got a reply. I am trying using php to set up a system for loading a new data base using the Load Data Infile statement. I could not get it to work properly with php so I thought I would try some

Re: [PHP] Line breaks in mail function?

2005-11-06 Thread Murray @ PlanetThoughtful
Jasper Bryant-Greene wrote: On Mon, 2005-11-07 at 12:20 +1000, Murray @ PlanetThoughtful wrote: Example code: $body = 'From: ' . $name . '\r\n\r\n'; $body .= 'Email:' . $email . '\r\n\r\n'; $body .= 'IP Address: ' . $_SERVER['REMOTE_ADDR'] . '\r\n\r\n'; $body .=

Re: [PHP] preg for unicode strings?

2005-11-06 Thread Niels Ganser
Andy, try that one: /^[a-zA-Z]{3}|\p{Sc}$/u You don't want to put \p{Sc} in square brackets as \p{Sc} itself already is a character class. Umm.. Kinda don't make myself clear here, do I? You just don't want to, it's 5am in the morning here I gotta go to the next bed ;p Regards, Niels Andy

[PHP] Making functions available from another script

2005-11-06 Thread Richard Leclair
Hi PHP-ers, Here's an easy one: Q: How can I make a function available from within another php script? Eg. B.php contains: ?php include .../fns.php ? Which has a function fn($x); Later on, I want to include this function in B.php somewhere. In short: B.php wants to use fn($x) found in

[PHP] Mcrypt 3DES encrypt/decrypt Help

2005-11-06 Thread yangguang1981
Hi all: I wan't to use php_mcrpyt to encrypt data,but have a problem in it ! Hint: Warning: mcrypt_encrypt(): Size of key is too large for this algorithm Algorithm : 3DES Key: 48bit ?php // Designate string to be encrypted $string =3D Applied Cryptography, by Bruce Schneier, is a wonderful

Re: [PHP] Template style question

2005-11-06 Thread Stephen Leaf
One idea that you might try. is XSL. instead of doing %var1% and doing a replace. you can do things like xsl:value-of select=var1/ Doing this also completely separates presentation logic from the code. you can do other fun things like loops also. I will warn you by saying that XSL in the beginning