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

2012-04-25 Thread Tommy Pham
On Wed, Apr 25, 2012 at 9:04 PM, Tommy Pham wrote: > On Wed, Apr 25, 2012 at 8: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: >> >>

Re: [PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
On Wed, Apr 25, 2012 at 10:44 PM, Simon J Welsh 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 working on

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(

[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] 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 octe

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

2012-04-25 Thread Tommy Pham
On Wed, Apr 25, 2012 at 8: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');   /

[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: attac

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 tha

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 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 > engine for

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 somestuff()?> can be used without short_open_tag enabled. However, you always schould divide U

[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 it?

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 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 bre

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 o

[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 wer

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 wrote: > On Thu, 2012-04-19 at 13:48 +0200, Mati

Re: [PHP] Sort question..

2012-04-25 Thread Matijn Woudt
On Wed, Apr 25, 2012 at 3:16 PM, Karl-Arne Gjersøyen 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.. Here is my sor

[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: Bildegalleri

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" 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 >>

Re: [PHP] What is wrong here?

2012-04-25 Thread ma...@behnke.biz
"Karl-Arne Gjersøyen" 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 help. > Also