Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Aziz Saleh
What Niklaus wishes for is a way to detect if an email message contains an attachment by just reading the headers (correct me if I am wrong). This isn't really a PHP issue. In any language you can't really figure out if an email has an attachment by just looking at the headers, you need to check t

Re: [PHP] Apache

2013-09-23 Thread Ashley Sheridan
On Mon, 2013-09-23 at 20:36 +0200, Domain nikha.org wrote: > Stuart Dallas am Montag, 23. September 2013 - 12:58: > > > And, honestly, who would have a PHP file per language? I think it's > perfectly reasonable to not allow that, because duplicating PHP code > across many files is an incredible s

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Michał Kochanowicz
W dniu 2013-09-23 17:24, Tamara Temple pisze: That is one whopping-big inode number — I am really out on a limb here, but is this a 32-bit vs 64-bit issue? You're right - 64-bit inode number was a cause. I had to add "inode32" mount option (XFS). Regards Michał -- PHP General Mailing Lis

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Michał Kochanowicz
W dniu 2013-09-23 10:06, Negin Nickparsa pisze: regardless of you, saying they have same permissions I think they do not have the same permission The reason was 64-bit inode number. PHP can't stat() files with 64-bit nodes, at lease on 32-bit system. Regards Michał -- PHP General Mailing L

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Negin Nickparsa
I have read your mail twice and still I could not get what you want exactly. can't get the structure of the email either although you elaborate it in details. you have said something about human rights that I couldn't understand why? but if you want to get the type of files fetch the structure an

Re: [PHP] Apache

2013-09-23 Thread Domain nikha . org
Stuart Dallas am Montag, 23. September 2013 - 12:58: > And, honestly, who would have a PHP file per language? I think it's perfectly reasonable to not allow that, because duplicating PHP code across many files is an incredible stupid way to support multiple languages. > I agree!! Didn't even know

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Negin Nickparsa
I have read your mail twice and still I could not get what you want exactly. can't get the structure of the email either although you elaborate it in details. you have said something about human rights that I couldn't understand why? but if you want to get the type of files fetch the structure an

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Tamara Temple
On Aug 13, 2013, at 3:00 AM, Michał Kochanowicz wrote: > Hello > > I've got a file, which can't be checked with filesize(). I copy it (with > permissions) and then I can filesize() the copy. This is same directory, > permissions are same. I don't understand what's the difference. Can you help

Re: [PHP] Problem with mbstring.internal_encoding, mcrypt and php-fpm

2013-09-23 Thread Condor
On 2013-09-23 15:42, Aziz Saleh wrote: Hristo, Try changing the php.ini config: mbstring.func_overload 0 See if that helps your issue, more on what it does: http://php.net/manual/en/mbstring.overload.php [3] Aziz On Mon, Sep 23, 2013 at 8:23 AM, Condor wrote: Hello, from two days I have

Re: [PHP] Problem with mbstring.internal_encoding, mcrypt and php-fpm

2013-09-23 Thread Aziz Saleh
Hristo, Try changing the php.ini config: mbstring.func_overload 0 See if that helps your issue, more on what it does: http://php.net/manual/en/mbstring.overload.php Aziz On Mon, Sep 23, 2013 at 8:23 AM, Condor wrote: > > Hello, > > from two days I have strange problem with this param > mbst

Re: [PHP] Friday's Question

2013-09-23 Thread Eric K. Dickinson
54, Only when the surface of the desk is problematic. On 09/20/2013 12:58 PM, Larry Martell wrote: On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling wrote: Hi gang: Do you use a Mousepad? My reason for asking is that I've used a Mousepad ever since mice first came out (back when they had one

Re: [PHP] Apache

2013-09-23 Thread Stuart Dallas
On 23 Sep 2013, at 11:37, Domain nikha.org wrote: > Tamara Temple am Montag, 23. September 2013 - 06:49: >> >> GoDaddy's default plesk-generated configuration for FastCGI-served PHP > files only looked to see if the file contained ".php" somewhere on it's > path - i.e. it would happily execute '

Re: [PHP] Apache

2013-09-23 Thread Domain nikha . org
Tamara Temple am Montag, 23. September 2013 - 06:49: > > GoDaddy's default plesk-generated configuration for FastCGI-served PHP files only looked to see if the file contained ".php" somewhere on it's path - i.e. it would happily execute 'malicilous.php.txt' as php code, even something ridiculous l

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Carsten Jensen
if you have console access and the cli version of php works, what does echo filesize('/path/to/file'); tell (try running as root, then later as uid 51/webuser) this will eliminate permission doubts also you should use regardless of you, saying they have same permissions I think they do not hav

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Negin Nickparsa
regardless of you, saying they have same permissions I think they do not have the same permission try to use --reference for chmod to see if there is any differences try to copy the file keeping the whole permissions from original using sudo cp -rp and check. if this copy has the warning then you

Re: [PHP] Apache's PHP handlers

2013-09-22 Thread Tamara Temple
On Sep 19, 2013, at 9:14 AM, Arno Kuhl wrote: > Arno: If you can request that file using a web browser, and it gets executed > as PHP on your server then there is an error in the Apache configuration. > > Easy test: create a file in a text editor containing some PHP ( phpinfo(); ?> would be eno

Re: [PHP] jquery fill select option value

2013-09-22 Thread Tedd Sperling
On Sep 22, 2013, at 12:47 PM, Jim Giner wrote: > On 9/22/2013 12:04 PM, Tedd Sperling wrote: >> On Sep 21, 2013, at 9:06 PM, iccsi wrote: >>> >>> -- >>> BMW >>> Audi >>> >>> >>> I use above code to have my select drop down on the form and would like to >>> use jQuery to fill option value on

Re: [PHP] jquery fill select option value

2013-09-22 Thread Jim Giner
On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi wrote: -- BMW Audi I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example c

Re: [PHP] jquery fill select option value

2013-09-22 Thread Tedd Sperling
On Sep 21, 2013, at 9:06 PM, iccsi wrote: > > -- > BMW > Audi > > > I use above code to have my select drop down on the form and would like to > use jQuery to fill option value on change event. > I would like know is it possible to do, if yes, any hint or example code at > server site is appr

Re: [PHP] jquery fill select option value

2013-09-22 Thread Jim Giner
On 9/22/2013 3:52 AM, Ashley Sheridan wrote: iccsi wrote: -- BMW Audi I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is it possible to do, if yes, any hint or example code at server site is

Re: [PHP] jquery fill select option value

2013-09-22 Thread Ashley Sheridan
iccsi wrote: > > -- > BMW > Audi > > >I use above code to have my select drop down on the form and would like >to >use jQuery to fill option value on change event. >I would like know is it possible to do, if yes, any hint or example >code at >server site is appreciated, > >Your help and inf

Re: [PHP] Friday's Question

2013-09-21 Thread Ashley Sheridan
On Sat, 2013-09-21 at 11:07 +1000, Daniel wrote: > 25 network admin and programmer and yes I use a mouse pad - my mouse > hates me if I dont use it. > > -- > Regards, > Daniel Fenn > 29 and don't use a mouse pad right now, although I did before I moved because the surface of my desk was too s

Re: [PHP] Friday's Question

2013-09-20 Thread Daniel
25 network admin and programmer and yes I use a mouse pad - my mouse hates me if I dont use it. -- Regards, Daniel Fenn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday's Question

2013-09-20 Thread Simon J Welsh
On 21/09/2013, at 4:51, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first came > out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not really needed -- or > so I'll t

Re: [PHP] Friday's Question

2013-09-20 Thread Bastien
Thanks, Bastien > On Sep 20, 2013, at 12:51 PM, Tedd Sperling wrote: > > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first came > out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not re

Re: [PHP] Friday's Question

2013-09-20 Thread Curtis Maurand
On 9/20/2013 1:24 PM, Joshua Kehn wrote: On Sep 20, 2013, at 1:23 PM, Larry Martell wrote: On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned to having all my workstations be laptops of one sort or another and th

Re: [PHP] Friday's Question

2013-09-20 Thread Mattias Thorslund
40, and no mouse pad atm. Seems that this table top is okay. This is an optical mouse without a ball underneath. However this mac-y-mouse DOES have a ball on top, for scrolling. Go figure. Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Re: php-general Digest 20 Sep 2013 17:33:26 -0000 Issue 8369

2013-09-20 Thread Bill Guion
On Sep 20, 2013, at 1:33 PM, php-general-digest-h...@lists.php.net wrote: > Friday's Question > 322111 by: Tedd Sperling > -- > > From: Tedd Sperling > Subject: Friday's Question > Date: September 20, 2013 12:51:49 PM EDT

Re: [PHP] Friday's Question

2013-09-20 Thread Tedd Sperling
On Sep 20, 2013, at 1:25 PM, Larry Martell wrote: > On Fri, Sep 20, 2013 at 11:20 AM, Jen Rasmussen wrote: >> -Original Message- >> What in the heck is a Bag Bomb? > > It's a salve for cow udders. Not sure what a person would do with it. Feet. Wait until you have callus as feet. ted

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
On Sep 20, 2013, at 1:23 PM, Larry Martell wrote: > On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: >> >> I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned >> to having all my workstations be laptops of one sort or another and they >> have built-in trackpads.

Re: [PHP] Friday's Question

2013-09-20 Thread Sean Greenslade
On Fri, Sep 20, 2013 at 12:51:49PM -0400, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? College Student (Electrical Engineer, go figure). Age: 20 Mousepad: yes I've used both optical and laser mice (they're a bit different, but similar tech) and I've found that I like having the pad

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn wrote: > > On Sep 20, 2013, at 1:23 PM, Larry Martell > wrote: > >> On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: >>> >>> I'm in my 20's and rarely, if ever, use a dedicated mouse. I've >>> transitioned to having all my workstations be lapto

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:20 AM, Jen Rasmussen wrote: > -Original Message- > What in the heck is a Bag Bomb? It's a salve for cow udders. Not sure what a person would do with it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday's Question

2013-09-20 Thread Daniel Brown
On Fri, Sep 20, 2013 at 1:20 PM, Jen Rasmussen wrote: > LOL. What in the heck is a Bag Bomb? He's referring to Bag Balm. http://www.bagbalm.com/ -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Friday's Question

2013-09-20 Thread Camilo Sperberg
On 20 sep. 2013, at 18:51, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first came > out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not really needed -- or > so I'

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
On Sep 20, 2013, at 1:26 PM, Larry Martell wrote: > On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn wrote: >> >> >> Slightly snobbish solution: Don't use windows. > > Unfortunately required to VPN into most of my clients corporate networks. Windows is required to VPN in? I'm guessing they use

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: > On Sep 20, 2013, at 1:04 PM, Daniel Brown wrote: > >>I'm in my mid-thirties and - despite having an optical mouse - I >> do indeed still use a mousepad. A customized one that the wife did >> for me for Christmas one year: images of Futur

Re: [PHP] Friday's Question

2013-09-20 Thread Aziz Saleh
Haha, like your product usage chart Tedd, Age: 31 Mousepad: Webster New Dictionary of Synonyms, too lazy of having to go to Microcenter and buy one! Aziz On Fri, Sep 20, 2013 at 12:58 PM, Larry Martell wrote: > On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling wrote: > > Hi gang: > > > > Do yo

Re: [PHP] Friday's Question

2013-09-20 Thread Daniel Brown
On Fri, Sep 20, 2013 at 12:51 PM, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? I'm in my mid-thirties and - despite having an optical mouse - I do indeed still use a mousepad. A customized one that the wife did for me for Christmas one year: images of Futurama, the Cleveland Br

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first came > out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not really needed -- or > so

RE: [PHP] Friday's Question

2013-09-20 Thread Jeff Burcher
> -Original Message- > From: Tedd Sperling [mailto:t...@sperling.com] > Sent: Friday, September 20, 2013 12:52 PM > To: php-general@lists.php.net > Subject: [PHP] Friday's Question > > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mi

Re: [PHP] Friday's Question

2013-09-20 Thread Matijn Woudt
On Fri, Sep 20, 2013 at 6:51 PM, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first > came out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not really needed -- > or so I'

RE: [PHP] Friday's Question

2013-09-20 Thread Jen Rasmussen
-Original Message- From: Tedd Sperling [mailto:t...@sperling.com] Sent: Friday, September 20, 2013 11:52 AM To: php-general@lists.php.net Subject: [PHP] Friday's Question Hi gang: Do you use a Mousepad? My reason for asking is that I've used a Mousepad ever since mice first came out (ba

RE: [PHP] Apache

2013-09-20 Thread Domain nikha . org
Hi Arno! Seems to be the standard behaviour of Apache servers all over the world! I was testing this way: First I renamed a real, proper GIF-file to "this.php.nice.gif", put it in the root of my websites and called it with the browser. Result: "Error 500 Internal Server Error". The logfile tells:

Re: [PHP] Friday's Question

2013-09-20 Thread Kirk . Johnson
Tedd Sperling wrote on 09/20/2013 10:51:49 AM: > > Do you use a Mousepad? [-snip-] Age: Bag Bomb Mousepad: Yes Padding for my wrist and quieter moving the mouse around - no scraping. So yes, I'm even too old to be plugged into an iPud or an iPeed, whatever they are :) Kirk

Re: [PHP] Friday's Question

2013-09-20 Thread Joshua Kehn
On Sep 20, 2013, at 1:04 PM, Daniel Brown wrote: >I'm in my mid-thirties and - despite having an optical mouse - I > do indeed still use a mousepad. A customized one that the wife did > for me for Christmas one year: images of Futurama, the Cleveland > Browns, Minnesota Vikings, and several

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:35 AM, Joshua Kehn wrote: > On Sep 20, 2013, at 1:26 PM, Larry Martell > wrote: > >> On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn wrote: >>> >>> >>> Slightly snobbish solution: Don't use windows. >> >> Unfortunately required to VPN into most of my clients corporate n

RE: [PHP] Friday's Question

2013-09-20 Thread Jen Rasmussen
-Original Message- From: larry.mart...@gmail.com [mailto:larry.mart...@gmail.com] On Behalf Of Larry Martell Sent: Friday, September 20, 2013 12:26 PM To: j...@cetaceasound.com Cc: Tedd Sperling; PHP General Subject: Re: [PHP] Friday's Question On Fri, Sep 20, 2013 at 11:20 AM

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Ashley Sheridan
On Thu, 2013-09-19 at 16:14 +0200, Arno Kuhl wrote: > Arno: If you can request that file using a web browser, and it gets executed > as PHP on your server then there is an error in the Apache configuration. > > Easy test: create a file in a text editor containing some PHP ( phpinfo(); ?> would be

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
2013/9/19 Aziz Saleh > I think that it would be more elegant if you are already in a OOP to keep > the flow and stick to OOP. It just doesn't make sense to me in an > environment that uses OOP to have functions laying around. > buzzword: multi-paradigm. Thats why it could make sense ;) > > Per

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Paul M Foster
On Thu, Sep 19, 2013 at 06:28:32PM +0200, Simon Dániel wrote: > Hi, > > I am working on an OOP project, and cannot decide which way to follow when > I have to write a simple function. > > For example, I want to write a function which generates a random string. In > an OOP environtment, it is a m

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Aziz Saleh
I think that it would be more elegant if you are already in a OOP to keep the flow and stick to OOP. It just doesn't make sense to me in an environment that uses OOP to have functions laying around. Personally I like to group similar functionality together in their own objects, this way I can reus

Re: [PHP] Static methods vs. plain functions

2013-09-19 Thread Sebastian Krebs
2013/9/19 Simon Dániel > Hi, > > I am working on an OOP project, and cannot decide which way to follow when > I have to write a simple function. > > For example, I want to write a function which generates a random string. In > an OOP environtment, it is a matter of course to create a static class

Re: [PHP] high traffic websites

2013-09-19 Thread Negin Nickparsa
it may be helpful for someone. I liked GTmetrix kinda helpful and magic. Sincerely Negin Nickparsa On Wed, Sep 18, 2013 at 4:42 PM, Sebastian Krebs wrote: > 2013/9/18 Camilo Sperberg > > > > > On Sep 18, 2013, at 14:26, Haluk Karamete > wrote: > > > > >> I recommend

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test: create a file in a text editor containing some PHP ( would be enough) and upload it to the www root of your site and name it test.pgif.

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Bastien Koert
On Thursday, September 19, 2013, Stuart Dallas wrote: > On 19 Sep 2013, at 14:39, Aziz Saleh > > wrote: > > > The best way to handle file uploads is to: > > > > 1) Store the filename somewhere in the DB, rename the file to a random > string without extension and store the mapping in the DB as well

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Stuart Dallas
On 19 Sep 2013, at 14:39, Aziz Saleh wrote: > The best way to handle file uploads is to: > > 1) Store the filename somewhere in the DB, rename the file to a random string > without extension and store the mapping in the DB as well. > 2) When sending the file, set the header content to the filen

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Aziz Saleh
The best way to handle file uploads is to: 1) Store the filename somewhere in the DB, rename the file to a random string without extension and store the mapping in the DB as well. 2) When sending the file, set the header content to the filename and output the content of the file via PHP (ex: by re

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Stuart Dallas
On 19 Sep 2013, at 13:58, "Design in Motion Webdesign" wrote: > it has nothing to do with ".php" in the file name. What the hacker did, was > uploading a .gif file with some malicious php code included to your > webserver. Then he called the .gif file from his own website by using a php > scr

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Design in Motion Webdesign
once('http://www.yoursite.com/images/yourimage.gif'). At that moment the php code inside the .gif file has been executed. Steven - Original Message - From: "Arno Kuhl" To: "'Design in Motion Webdesign'" ; Sent: Thursday, September 19, 2013 2:43 PM Subje

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
> For the past week I've been trying to get to the bottom of an exploit, but > googling hasn't been much help so far, nor has my service provider. > Basically a file was uploaded with the filename xxx.php.pgif which contained > nasty php code, and then the file was run directly from a browser. The

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
-Original Message- From: Ken Robinson [mailto:kenrb...@rbnsn.com] Sent: 19 September 2013 01:52 PM To: Cc: Subject: Re: [PHP] Apache's PHP handlers Check you .htaccess file. The hackers could have modified it to allow that type of file to be executed. I had some that modifi

Re: [PHP] Apache's PHP handlers

2013-09-19 Thread Design in Motion Webdesign
- Original Message - From: "Arno Kuhl" To: Sent: Thursday, September 19, 2013 1:35 PM Subject: [PHP] Apache's PHP handlers For the past week I've been trying to get to the bottom of an exploit, but googling hasn't been much help so far, nor has my service provider. Basically a file w

Re: [PHP] Re: assign database result to iinput text box

2013-09-18 Thread ITN Network
"; //select a database to work with $selected = mysql_select_db("iccsimd",$dbhandle) or die("Could not select aerver"); //execute the SQL query and return records $result = mysql_fetch_assoc(mysql_query("SELECT invid, invdate, note, amount FROM invheader")); ?> Like Maciek mentioned, if this

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
2013/9/18 Camilo Sperberg > > On Sep 18, 2013, at 14:26, Haluk Karamete wrote: > > >> I recommend OPCache, which is already included in PHP 5.5. > > > > Camilo, > > I'm just curious about the disadvantageous aspects of OPcache. > > > > My logic says there must be some issues with it otherwise it

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
On Sep 18, 2013, at 14:26, Haluk Karamete wrote: >> I recommend OPCache, which is already included in PHP 5.5. > > Camilo, > I'm just curious about the disadvantageous aspects of OPcache. > > My logic says there must be some issues with it otherwise it would have come > already enabled.

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
I am a little bit curious: Do you _really_ have 1000 requests/second, or do you just throw some numbers in? ;) Sebastian, supposedly_asking_to_get_some_pre_evaluation :) Even in times, where there is not that much traffix? Automatic backup at 3:00 in the morning for example? 3:00 morning in one

Re: [PHP] high traffic websites

2013-09-18 Thread Stuart Dallas
On 18 Sep 2013, at 12:50, Negin Nickparsa wrote: > to be more in details,suppose the website has 80,000 users and each page > takes 200 ms to be rendered and you have thousand hits in a second so we > want to reduce the time of rendering. is there any way to reduce the > rendering time? > > othe

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
2013/9/18 Negin Nickparsa > Thank you Camilo > > to be more in details,suppose the website has 80,000 users and each page > takes 200 ms to be rendered and you have thousand hits in a second so we > want to reduce the time of rendering. is there any way to reduce the > rendering time? > Read abo

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
Thank you Camilo to be more in details,suppose the website has 80,000 users and each page takes 200 ms to be rendered and you have thousand hits in a second so we want to reduce the time of rendering. is there any way to reduce the rendering time? other thing is suppose they want to upload files

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
On Sep 18, 2013, at 09:38, Negin Nickparsa wrote: > Thank you Sebastian..actually I will already have one if qualified for the > job. Yes, and I may fail to handle it that's why I asked for guidance. > I wanted some tidbits to start over. I have searched through yslow, > HTTtrack and others. > I

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
Thank you Sebastian..actually I will already have one if qualified for the job. Yes, and I may fail to handle it that's why I asked for guidance. I wanted some tidbits to start over. I have searched through yslow, HTTtrack and others. I have searched through php list in my email too before asking t

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
2013/9/18 Negin Nickparsa > In general, what are the best ways to handle high traffic websites? > > VPS(clouds)? > web analyzers? > dedicated servers? > distributed memory cache? > Yes :) But seriously: That is a topic most of us spent much time to get into it. You can explain it with a bunch o

Re: [PHP] Resolving a PHP Notice Error

2013-09-17 Thread Sebastian Krebs
2013/9/17 Ron Piggott > > I am wanting to establish a default sort by preference when the user > hasn’t specified one. I setup to test this with: > > > if ( !is_set( $sort_by_preference ) ) { > > $sort_by_preference = "government_wording"; > > } > > ?> > > But I am receiving a Notice error:

Re: [PHP] Resolving a PHP Notice Error

2013-09-17 Thread Daniel Brown
On Tue, Sep 17, 2013 at 3:38 PM, Ron Piggott wrote: > > I am wanting to establish a default sort by preference when the user hasn’t > specified one. I setup to test this with: > > > if ( !is_set( $sort_by_preference ) ) { Did you create a function is_set(), or did you mean to use the const

Re: [PHP] PHP Dependency Injector

2013-09-15 Thread ma...@behnke.biz
Hey Juan, before sharing your work, you should spend some time on class and method documentation and putting stuff into the readme ;) This can be very helpful for others. Regards, Marco > Juan Sebastian Scatularo hat am 5. September > 2013 um 22:30 geschrieben: > > > Sorry guys if disturbed. >

Re: [PHP] Ini files for CLI only on non Win32 platform

2013-09-14 Thread Richard Quadling
On 13 September 2013 20:06, Kevin Kinsey wrote: > Date: Fri, 13 Sep 2013 11:40:27 +0100 > From: Richard Quadling > To: PHP General list > Subject: [PHP] Ini files for CLI only on non Win32 platform. > > >I've got an instance of PHP that is looking for additional ini files in > >/etc/php.d > > >

Re: [PHP] Ini files for CLI only on non Win32 platform

2013-09-13 Thread Kevin Kinsey
Date: Fri, 13 Sep 2013 11:40:27 +0100 From: Richard Quadling To: PHP General list Subject: [PHP] Ini files for CLI only on non Win32 platform. >I've got an instance of PHP that is looking for additional ini files in >/etc/php.d > >This seems to work well. > >I now need to make one of the ini fil

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Stuart Dallas
On 11 Sep 2013, at 17:37, Alain Williams wrote: > Hi, > > I am running a PHP script at the command line and piping the output through > less: > >./myScript | less > > Since less is an interactive program it puts the terminal into 'raw' mode so > that it can read characters one at a time.

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
On Wed, Sep 11, 2013 at 05:45:45PM +0100, Stuart Dallas wrote: > On 11 Sep 2013, at 17:37, Alain Williams wrote: > Make sure output buffering is off by putting this at the top of your script: > > while(ob_end_clean()); Sorry, that does not fix the problem - but thanks for trying. -- Alain Wil

Re: [PHP] Hey, I have a full time PHP developer position in Chicago!

2013-09-10 Thread Matt Giddings
Sorry I can't relocate at the time. Thanks for sending me the notification though. : ) Matt On Tue, Sep 10, 2013 at 10:41 AM, Steve Gadlin wrote: > Howdy. My name is Steve, and I run the web department for Weigel > Broadcasting in Chicago. We're looking for a senior-level PHP developer to >

Re: [PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
Hi, Alessandro Would it be worth noting somewhere, that these two implementations of ISO8601 differ? Because I needed the DateTime::ATOM way to save the timezone ... Even so the other one was also about ISO 8601 ... My system is working towards a search-engine called ElasticSearch. This one makes

Re: [PHP] char set ?

2013-09-07 Thread Ashley Sheridan
On Sat, 2013-09-07 at 18:21 +0200, georg chambert wrote: > This Q is possibly rather HTML (is there a good list for that...) > > anyways; > Im in Sweden, and have done som pages with Swedish text, however our special > (weird) characters åäö > comes out wrong when displayd in browser, would be

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-06 Thread Jan Ehrhardt
Grant in php.general (Thu, 5 Sep 2013 03:47:55 -0700): >>> I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >>> opcache is disabled. Someone filed a piwik bug but was told it's a >>> php bug: >>> >>> http://dev.piwik.org/trac/ticket/4093 >>> >> Is this a known issue? > >Is th

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
On 13-09-05 02:27 PM, Micky Hulse wrote: On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings wrote: I'll second Rodrigo's opinion, but would like to comment that the name of the class is misleading since it's called "Singleton". The singleton pattern is used when you only ever want one instantiati

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Paul M Foster
On Thu, Sep 05, 2013 at 04:19:18PM -0400, Bastien Koert wrote: > Jee, that should have been a friday comment..."how does your dic standout" Don't send emails like that to the list when I've got a mouthful of water! It all came out my nose! ;-} Paul -- Paul M. Foster http://noferblatz.com http:

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Thanks Sorin, I will do that and I will have more care the next time. Regards 2013/9/5 Sorin Badea > Juan, the problem with this list is that that there are too damn many dumb > questions. You did something nice but it doesn't stand out. You can check > Symfony2 DiC. You can use it as a stand

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
Juan, the problem with this list is that that there are too damn many dumb questions. You did something nice but it doesn't stand out. You can check Symfony2 DiC. You can use it as a stand alone component. On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo < sebastianscatul...@gmail.com> w

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
There are few tutorials about home made dic. How does your dic stand out from the crowd ? Regards. On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo < sebastianscatul...@gmail.com> wrote: > Hello people, I want to share with you a simple and small Dependency > Injector made for me. > > h

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread David Harkness
On Thu, Sep 5, 2013 at 1:40 PM, Juan Sebastian Scatularo < sebastianscatul...@gmail.com> wrote: > Thanks Sorin, I will do that and I will have more care the next time. You can also check out Pimple [1] by the creator of the Symfony Framework. Peace, David [1] http://pimple.sensiolabs.org/

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Marc Guay
> Thanks Sorin, I will do that and I will have more care the next time. You have no reason to apologize. You shared a project you made by yourself, way to go. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Sorry guys if disturbed. 2013/9/5 Bastien Koert > Jee, that should have been a friday comment..."how does your dic standout" > > > On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea wrote: > >> There are few tutorials about home made dic. How does your dic stand out >> from the crowd ? >> >> Regards.

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Bastien Koert
Jee, that should have been a friday comment..."how does your dic standout" On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea wrote: > There are few tutorials about home made dic. How does your dic stand out > from the crowd ? > > Regards. > > On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
On Thu, Sep 5, 2013 at 12:15 PM, Robert Cummings wrote: > Probably sufficient (and easier for typing) to just call it Utility since it > follows the pattern but isn't the pattern itself :) Good call! Updated the example code. Thanks again! I really appreciate the help. :) Cheers, Micky -- PHP

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings wrote: > I'll second Rodrigo's opinion, but would like to comment that the name of > the class is misleading since it's called "Singleton". The singleton pattern > is used when you only ever want one instantiation of a class. In your case > you are

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-05 Thread Grant
>> I've tried php-5.5.2 and 5.5.3 but both segfault with piwik unless the >> opcache is disabled. Someone filed a piwik bug but was told it's a >> php bug: >> >> http://dev.piwik.org/trac/ticket/4093 >> >> - Grant > > Is this a known issue? > > - Grant Is there anything I can do? - Grant -- PH

Re: [PHP] Static utility class?

2013-09-04 Thread Robert Cummings
On 13-09-04 09:06 PM, Micky Hulse wrote: Hi Rodrigo, thanks for the help, I really appreciate it! On Wed, Sep 4, 2013 at 5:55 PM, Rodrigo Santos wrote: Hi, first, sorry for the bad English. Not bad at all! Very clear and well written reply (heck, it's better than my native English writing),

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Hi Rodrigo, thanks for the help, I really appreciate it! On Wed, Sep 4, 2013 at 5:55 PM, Rodrigo Santos wrote: > Hi, first, sorry for the bad English. Not bad at all! Very clear and well written reply (heck, it's better than my native English writing), so thank you! :) > Yes, at least, as far a

Re: [PHP] Static utility class?

2013-09-04 Thread Rodrigo Santos
Hi, first, sorry for the bad English. Yes, at least, as far as I know, this is the perfect way to do what you want to do. Think like this: when you instanciate a class, you are allocating memory. If you don't need any information stored, then you don't need to allocate memory, right? So, it's is l

Re: [PHP] message to user after complete POST

2013-09-04 Thread iccsi
Thanks a million for the information and help, yes, I will use jQuery to have my success function call in jQuery.ajax. Thanks again, Regards, Iccsi, "Rodrigo Santos" wrote in message news:caombckqonakxoc4tnhcpn2ycdpy8503xttc7sosjywhtd5x...@mail.gmail.com... hey, if you are just trying to g

<    1   2   3   4   5   6   7   8   9   10   >