php-general Digest 25 Apr 2012 08:45:18 -0000 Issue 7788

2012-04-25 Thread php-general-digest-help
php-general Digest 25 Apr 2012 08:45:18 - Issue 7788 Topics (messages 317668 through 317673): Re: NULL Problem 317668 by: Matijn Woudt 317669 by: Serge Fonville 317670 by: David Stoltz 317671 by: David Stoltz What is wrong here? 317672 by: Karl-Arne

Re: [PHP] What is wrong here?

2012-04-25 Thread ma...@behnke.biz
Karl-Arne Gjersøyen karlar...@gmail.com hat am 25. April 2012 um 06:45 geschrieben: Hello again. I can't figure out what is wrong here. move_uploaded_file() get error message from die() and can't copy/move temp_file into directory bilder I have try to chmod 0777 bilder/ but it did not

Re: [PHP] What is wrong here?

2012-04-25 Thread Stuart Dallas
On 25 Apr 2012, at 09:45, ma...@behnke.biz wrote: Karl-Arne Gjersøyen karlar...@gmail.com hat am 25. April 2012 um 06:45 geschrieben: Hello again. I can't figure out what is wrong here. move_uploaded_file() get error message from die() and can't copy/move temp_file into directory bilder

[PHP] Sort question..

2012-04-25 Thread Karl-Arne Gjersøyen
Hello again. I have a photo album that show all images in a specified directory. but I like to sort them by filename as one possibillity and random sort the photos as another feature. I don't know how to do this.. Here is my soruce-code: !DOCTYPE html html lang=no head

Re: [PHP] Sort question..

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 3:16 PM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have a photo album that show all images in a specified directory. but I like to sort them by filename as one possibillity and random sort the photos as another feature. I don't know how to do this..

Re: [PHP] Re: Email Antispam

2012-04-25 Thread David Mehler
Hello, Thank you to all who have offered suggestions with this issue. I have discussed it with the individual I'm working for and a contact form has been authorized. So, I'm going to go with that option. Thanks. Dave. On 4/19/12, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu,

[PHP] Find/count different word in a text

2012-04-25 Thread Karl-Arne Gjersøyen
Hello again. I am looking for a way to find and count different word in a text.. I am thinking on save the text as array and iterate through the array. Then I like to register all different words in the text. For example. If bread is used more than one time, I will not count it. After the check

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Stuart Dallas
On 25 Apr 2012, at 17:59, Karl-Arne Gjersøyen wrote: I am looking for a way to find and count different word in a text.. I am thinking on save the text as array and iterate through the array. Then I like to register all different words in the text. For example. If bread is used more than one

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 6:59 PM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I am looking for a way to find and count different word in a text.. I am thinking on save the text as array and iterate through the array. Then I like to register all different words in the text. For

[PHP] Best PHP Template System

2012-04-25 Thread Willie Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have been looking at Smarty Template Engine. The only reason I don't like it is because it is really slow when there are a bunch of results for pagination. Question is, is there something out there that is a lot faster with pagination built into

Re: [PHP] Best PHP Template System

2012-04-25 Thread Yared Hufkens
Why use an external engine which slows your scripts down to do something which can easily be done by PHP itself? PHP is imho the best template engine for PHP. With PHP 5.4, it became even easier because ?=$do-somestuff()? can be used without short_open_tag enabled. However, you always schould

Re: [PHP] Best PHP Template System

2012-04-25 Thread Willie
Point taken. I will try to learn without the Template Engine! Thanks a lot Yared! On Wed, Apr 25, 2012 at 3:07 PM, Yared Hufkens y4...@yahoo.de wrote: Why use an external engine which slows your scripts down to do something which can easily be done by PHP itself? PHP is imho the best template

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Ken Robinson
At 12:59 PM 4/25/2012, Karl-Arne Gjersøyen wrote: Hello again. I am looking for a way to find and count different word in a text.. I am thinking on save the text as array and iterate through the array. Then I like to register all different words in the text. For example. If bread is used more

[PHP] Serving a .dmg via readfile?

2012-04-25 Thread Brian Dunning
Hey all - I'm having no luck serving a .dmg from my online store. I stripped down the code to just the following to debug, but no matter what I get a zero-byte file served: header('Content-Type: application/x-apple-diskimage'); // also tried octet-stream header('Content-Disposition:

Re: [PHP] Serving a .dmg via readfile?

2012-04-25 Thread Tommy Pham
On Wed, Apr 25, 2012 at 8:54 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm having no luck serving a .dmg from my online store. I stripped down the code to just the following to debug, but no matter what I get a zero-byte file served:  header('Content-Type:

Re: [PHP] Serving a .dmg via readfile?

2012-04-25 Thread D. Dante Lorenso
On 4/25/12 10:54 PM, Brian Dunning wrote: Hey all - I'm having no luck serving a .dmg from my online store. I stripped down the code to just the following to debug, but no matter what I get a zero-byte file served: header('Content-Type: application/x-apple-diskimage'); // also tried

[PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
Hi everyone, Does anybody know what might influence the output of the date() function besides date.timezone setting? Running through some code in an app I'm working on, I have this code: $timestamp = time(); $mysqlDatetime = date(Y-m-d G:i:s, $timestamp); Logging these values yields: INSERT

Re: [PHP] date() confustion

2012-04-25 Thread Simon J Welsh
On 26/04/2012, at 4:40 PM, Nathan Nobbe wrote: Hi everyone, Does anybody know what might influence the output of the date() function besides date.timezone setting? Running through some code in an app I'm working on, I have this code: $timestamp = time(); $mysqlDatetime = date(Y-m-d

Re: [PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
On Wed, Apr 25, 2012 at 10:44 PM, Simon J Welsh si...@welsh.co.nz wrote: On 26/04/2012, at 4:40 PM, Nathan Nobbe wrote: Hi everyone, Does anybody know what might influence the output of the date() function besides date.timezone setting? Running through some code in an app I'm

Re: [PHP] Serving a .dmg via readfile?

2012-04-25 Thread Tommy Pham
On Wed, Apr 25, 2012 at 9:04 PM, Tommy Pham tommy...@gmail.com wrote: On Wed, Apr 25, 2012 at 8:54 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm having no luck serving a .dmg from my online store. I stripped down the code to just the following to debug, but no matter what I get