Re: [PHP] high traffic websites

2013-09-18 Thread Stuart Dallas
; of lock backing up with bulk of data. Your question is impossible to answer efficiently without profiling. You need to know what PHP is doing in those 200ms before you can target your optimisations for maximum effect. I use xdebug to produce trace files. From there I can see exactly what is ta

Re: [PHP] high traffic websites

2013-09-18 Thread Sebastian Krebs
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 this >> > question. it is kind

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

2013-09-18 Thread Domain nikha . org
Hello all, im posting this here, because the bug report system of "php.net" is not right place for my problem. It's not a bug, but a wish - an I found there no "wishlist" option at all. I'm running my own webmail-client, written in PHP. It is stable, fast and pre

Re: [PHP] high traffic websites

2013-09-18 Thread Negin Nickparsa
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 this > > question. it is kind of beneficial for all people and not has been asked > > directly. > > > > > &g

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

2013-09-18 Thread Maciek Sokolewicz
On 18-9-2013 7:33, iccsi wrote: I have following html code to show my input text box and php to connect server and select result from database server. I would like to know how I can I use php to assign the value to my input text. Your help and information is great appreciated, Regards, Hi

Re: [PHP] high traffic websites

2013-09-18 Thread Camilo Sperberg
Ttrack and others. > I have searched through php list in my email too before asking this > question. it is kind of beneficial for all people and not has been asked > directly. > > > Sincerely > Negin Nickparsa > > > On Wed, Sep 18, 2013 at 10:45 AM, Sebastian Krebs wro

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 a

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

[PHP] high traffic websites

2013-09-17 Thread Negin Nickparsa
In general, what are the best ways to handle high traffic websites? VPS(clouds)? web analyzers? dedicated servers? distributed memory cache? Sincerely Negin Nickparsa

[PHP] assign database result to iinput text box

2013-09-17 Thread iccsi
I have following html code to show my input text box and php to connect server and select result from database server. I would like to know how I can I use php to assign the value to my input text. Your help and information is great appreciated, Regards, Iccsi, "; //select a databa

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:

[PHP] Resolving a PHP Notice Error

2013-09-17 Thread 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: But I am receiving a Notice error: Notice: Undefined variable: sort_by_preference in GIFI_codes.php on line 11- Line 11 is “if ( !is_set( $sort_by_preference ) ) {“What is

Re: [PHP] Resolving a PHP Notice Error

2013-09-17 Thread Daniel Brown
ou mean to use the construct isset()? -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Dependency Injector

2013-09-15 Thread ma...@behnke.biz
nSebastianScatularo > >> > Twitter: www.twitter.com/js_scatularo > >> > Web: www.sebastianscatularo.com.ar > >> > > >> > >> > >> > >> -- > >> Sorin Badea - Software Engineer > >> > > > > >

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

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

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

2013-09-13 Thread Richard Quadling
Hi. 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 files only accessible if the SAPI is CGI. So, I renamed the file ... mv /etc/php.d/my.ini /etc/php.d/my-cgi.ini If I do a ... php --ini I

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

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include -- PHP General Mailing List (http://www.

[PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
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. However, when I do the above I find that the commands t

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

2013-09-10 Thread Steve Gadlin
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 add to our team. This is a full time gig with benefits. As it's an in-house thing, we're happy to meet with people outside Chicago if the

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] transferring iis7, php5, mysql project to another server

2013-09-10 Thread Harrison, Roberto
applicationHost.config redirection.config Arachnophilia folder MySQL folder php folder phpdebug folder wwwroot folder Thanks in advance. Roberto Harrison, MLIS Technology Support Librarian Medical College of Wisconsin Libraries Link.Learn.Lead . On 9/3/13 8:31 AM, "Stuart Dallas" wro

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

2013-09-07 Thread Simon Schick
Schick wrote: > >> The method date("c") actually formats a date, fitting to the format >> defined in the constant DateTime::ATOM. >> >> Are both formats (with and without colon) valid for ISO8601, or is the >> documentation for the method date() wrong? >

Re: [PHP] char set ?

2013-09-07 Thread Ashley Sheridan
browser, would be nice if I could tag the > text and keep the file as is rather > than changing the file format of the text (and encode the characters with > some double/prefix notation, > which I guess would be the main stream > anyone ? > > regards > Georg Save PH

[PHP] char set ?

2013-09-07 Thread georg chambert
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 nice if I could tag the text and keep the file as is rather than chan

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

2013-09-07 Thread Alessandro Pellizzari
method date() wrong? Yes: http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators Bye. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Which function returns a correct ISO8601 date?

2013-09-07 Thread Simon Schick
to the format defined in the constant DateTime::ATOM. Are both formats (with and without colon) valid for ISO8601, or is the documentation for the method date() wrong? Bye, Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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.o

[PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Hello people, I want to share with you a simple and small Dependency Injector made for me. https://github.com/abloos/Sofia Regards -- Facebook: www.facebook.com/JuanSebastianScatularo Twitter: www.twitter.com/js_scatularo Web: www.sebastianscatularo.com.ar

Re: [PHP] Static utility class?

2013-09-05 Thread Robert Cummings
-- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing Lis

Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Paul M Foster
p://noferblatz.com http://quillandmouse.com -- 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
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
eers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
helpful. I've updated my gist to reflect the pattern name: <https://gist.github.com/mhulse/6441525> Much appreciated. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

Re: [PHP] Static utility class?

2013-09-04 Thread Robert Cummings
lore the use of static methods/properties/variables/other. A part of me just wants to learn more about PHP OOP, and using static members is something I've not explored much. Seems like a simple functional utility class would be a good time to play and learn more. :D Just be careful to

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
se of static methods/properties/variables/other. A part of me just wants to learn more about PHP OOP, and using static members is something I've not explored much. Seems like a simple functional utility class would be a good time to play and learn more. :D > Just be careful to organize yo

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
ess function that jQuery call after POST. Your help and information is great appreciated, Regards, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] message to user after complete POST

2013-09-04 Thread Rodrigo Santos
ot, it seems that the only solution is jQuery, since it has success > function that jQuery call after POST. > > Your help and information is great appreciated, > > > Regards, > > Iccsi, > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Thanks Stephen! I really appreciate the help! :) In my PHP ventures over the years, I haven't made much use of static variables/methods/properties ... I was thinking they might be useful for this one bit of code, but based on your feedback (and David's) I think I'll be heading d

Re: [PHP] Static utility class?

2013-09-04 Thread Stephen
oncepts of OOP. But as a first step in moving from procedural code to OOP, which is learning the syntax, go for it. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] message to user after complete POST

2013-09-04 Thread iccsi
, since it has success function that jQuery call after POST. Your help and information is great appreciated, Regards, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
pattern before I get too far down the rabbit hole (though, this is for some simple utility functions, so refactoring things should be easy later on). I'll be sure to post real code for any follow up questions. For now, thanks to you guys, I have a ton to work with. Thanks again for the pro

Re: [PHP] Static utility class?

2013-09-04 Thread David Harkness
t; above code? The main problem caused by static methods is testability. Mocking or stubbing a static method requires using a PHP extension and ensuring that the original is reset whether the test passes or fails. As long as your utility methods don't perform actions you want to avoid dur

Re: [PHP] Static utility class?

2013-09-04 Thread Stephen
e standard "require_once" in your various PHP source files so you only deal with loading the library file in the first file in which it is needed. It would not be loaded from other files. Instantiate your static variables in the library file. Again, so that only happens once. -- Stephen --

[PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Hi all! Example code: Goal: I want to have a "utility" class that contain utility methods which should have the option of being called multiple times on a page. I think my main goal is to avoid having to "new" things ... I don't really need to create an

Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-04 Thread Stuart Dallas
On 4 Sep 2013, at 00:03, "Daevid Vincent" wrote: >> -Original Message- >> From: Stuart Dallas [mailto:stu...@3ft9.com] >> Sent: Tuesday, September 03, 2013 2:37 PM >> To: Daevid Vincent >> Cc: php-general@lists.php.net; 'Jim Giner' >&g

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

2013-09-03 Thread Daniel
-- > Lester Caine - G8HFL > - > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http:/

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
> -Original Message- > From: Daevid Vincent [mailto:dae...@daevid.com] > Sent: Tuesday, September 03, 2013 4:03 PM > To: php-general@lists.php.net > Cc: 'Stuart Dallas' > Subject: RE: [PHP] refernces, arrays, and why does it take up so much > memory? [SO

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
> -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > Sent: Tuesday, September 03, 2013 2:37 PM > To: Daevid Vincent > Cc: php-general@lists.php.net; 'Jim Giner' > Subject: Re: [PHP] refernces, arrays, and why does it take up so much > memo

Re: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Stuart Dallas
owever it seems that frustratingly just the simple > act of adding a new hash to the array is causing a significant memory jump. > That really blows! Therefore my solution was to not store the $g as ['g'] -- > which would seem to be the more efficient way of doing this once and re-use &g

RE: [PHP] refernces, arrays, and why does it take up so much memory? [SOLVED]

2013-09-03 Thread Daevid Vincent
EUREKA! > -Original Message- > From: Stuart Dallas [mailto:stu...@3ft9.com] > Sent: Tuesday, September 03, 2013 6:31 AM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] refernces, arrays, and why does it take up so much > memory? > &

Re: [PHP] refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Stuart Dallas
he keys (i.e. the IDs) are correct, but the data in each item matches the data in the last item from the original array, which appears to be what you describe. > unset($this->tmp_results[$k]); Doing this for every loop is likely very inefficient. I don't know how th

Re: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-03 Thread Jim Giner
On 9/3/2013 1:09 AM, Daevid Vincent wrote: -Original Message- From: Jim Giner [mailto:jim.gi...@albanyhandball.com] Sent: Monday, September 02, 2013 8:14 PM To: php-general@lists.php.net Subject: [PHP] Re: refernces, arrays, and why does it take up so much memory? On 9/2/2013 9:30 PM

RE: [PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
> -Original Message- > From: Jim Giner [mailto:jim.gi...@albanyhandball.com] > Sent: Monday, September 02, 2013 8:14 PM > To: php-general@lists.php.net > Subject: [PHP] Re: refernces, arrays, and why does it take up so much > memory? > > On 9/2/2013 9:30

[PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Jim Giner
array_combine: ".number_format(memory_get_usage() - $D_start_mem_usage)." PEAK: (".number_format(memory_get_peak_usage(true)).")\n"; var_dump($tmp_keys, $this->tmp_results); exit; } Just the simple act of adding that 'g' variable ele

[PHP] refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Daevid Vincent
." PEAK: (".number_format(memory_get_peak_usage(true)).")\n"; var_dump($tmp_keys, $this->tmp_results); exit; } Just the simple act of adding that 'g' variable element to the array causes a massive change in memory usage. WHAT THE F!? MEMORY USED BEFORE array_combine: 105,315,264 PEAK: (224,395,264) MEMORY USED FOR array_combine: 106,573,040 PEAK: (224,395,264) And taking out the $this->tmp_results[$k]['g'] = $g; Results in MEMORY USED BEFORE array_combine: 8,050,456 PEAK: (78,118,912) MEMORY USED FOR array_combine: 8,050,376 PEAK: (86,507,520) Just as a wild guess, I also added 'g' to my SQL so that PHP would already have a placeholder variable there in tmp_results, but that made no difference. And still used up nearly double the memory as above. SELECT DISTINCT `id`, sag.`genres`, 'g' FROM.

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

2013-09-02 Thread Lester Caine
ttp://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/)

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

2013-09-02 Thread Jan Ehrhardt
t; >And a extra } at the end. This patch, together with upgrading to the latest OPcache from github solved my segfaults and fatal errors. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2013-09-02 Thread Jan Ehrhardt
Grant in php.general (Sun, 25 Aug 2013 02:31:29 -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 Could you try to add a

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

2013-09-01 Thread Jan Ehrhardt
Grant in php.general (Sun, 1 Sep 2013 02:13:54 -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

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

2013-09-01 Thread Jan Ehrhardt
Lester Caine in php.general (Sun, 01 Sep 2013 12:59:18 +0100): >Grant wrote: >>> >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: >>

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

2013-09-01 Thread Lester Caine
Grant wrote: 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? I'm running my own port of piwik in p

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

2013-09-01 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 -- PHP General Mailin

[PHP] Strange url session behavior after upgrade to 4.3

2013-08-30 Thread Tobiah
n_start(); The session is there! But why isn't php taking the cookie as the id all by itself? Regular pages (not curled) all work as before. All of our websites work fine on the new version, except for this one curl call. I could update 100's of websites to fix them with the added lines, b

[PHP] IMAP Metadata support

2013-08-29 Thread list
Does PHP IMAP have any support for Metadata? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic Auth

2013-08-28 Thread Stuart Dallas
On 27 Aug 2013, at 18:45, Jim Giner wrote: > From your latest missive I gleaned that I needed to have a script on my server One last time: YOU DON'T NEED TO CHANGE ANYTHING ON THE SERVER-SIDE! Ok, I see that you've decided to use another method, which is great; HTTP auth is a pretty antiquated

Re: [PHP] Basic Auth

2013-08-28 Thread Jim Giner
t to be doing a signoff. And yes - I've taken the proper precautions to hash the incoming password value before submission and storing in my db that way. Thanks again. It's help like this that makes this group such a great resource. -- PHP General Mailing List (http://www.php.net/) To

[PHP] RE: php seg faults on creation pdf

2013-08-28 Thread KAs Coenen
Hi, Some more info. I ran gdb on the core file (after reinstalling with debug mode): # /usr/local/gdb/bin/gdb /usr/local/php5/bin/php-cgi /opt/apache/htdocs/wachtlijst/core GNU gdb (GDB) 7.6 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <h

[PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
On 08/27/2013 03:31 PM, Steven Post wrote: On Tue, 2013-08-27 at 13:43 -0400, Ethan Rosenberg wrote: Dear List - I apologize for this "needle in a haystack" but... This was originally posted on the PHP list, but has changed into a Debian question... Tried to run the program, th

Re: [PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
above] How do I extricate myself from the hole into which I have planted myself? TIA Ethan This is in no way a php question, as the same result will happen no matter what you ask apache to serve from that directory. You have the directory permissions set to 776 not 777. -- Cheers David R

Re: [PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
into which I have planted myself? TIA Ethan This is in no way a php question, as the same result will happen no matter what you ask apache to serve from that directory. You have the directory permissions set to 776 not 777. -- Cheers David Robley Steal this tagline and I'll tie-dy

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 12:53 PM, Stuart Dallas wrote: On 27 Aug 2013, at 17:28, Jim Giner wrote: On 8/27/2013 11:56 AM, Stuart Dallas wrote: Oops, sent this message from the wrong email address, so the list rejected it. Begin forwarded message: From: Stuart Dallas Subject: Re: [PHP] Basic Auth

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 17:28, Jim Giner wrote: > On 8/27/2013 11:56 AM, Stuart Dallas wrote: >> Oops, sent this message from the wrong email address, so the list rejected >> it. >> >> Begin forwarded message: >> >>> From: Stuart Dallas >>> Sub

Re: [PHP] exec and system do not work

2013-08-27 Thread Daniel Brown
; This does not - > > if( !file_exists("/var/www/orders.txt")); > { >$out = system("touch /var/www/orders.txt", $ret); >$out2 = system("chmod 766 /var/www/orders.txt", $ret); >echo 'file2'; >echo file_exists("/

[PHP] Re: Basic Auth

2013-08-27 Thread B. Aerts
llo Jim, at the risk of under-estimating your knowledge (and over-estimating mine) of HTTP-requests in PHP - but here it goes. I see two options of bypassing the JavaScript option. The first one is to use the default authorization, and error pages of your HTTP server. (For example, in Apache:

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-27 Thread Daniel Brown
doing a cURL POST request in the background and passing the session ID back to the browser, and having it handle it appropriately (read: session hijack). -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fwd: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 11:56 AM, Stuart Dallas wrote: Oops, sent this message from the wrong email address, so the list rejected it. Begin forwarded message: From: Stuart Dallas Subject: Re: [PHP] Basic Auth Date: 27 August 2013 16:36:27 BST To: jim.gi...@albanyhandball.com Cc: php-general

Re: [PHP] Re: Permissions

2013-08-27 Thread Daniel Brown
e fine regardless. As for the 's' notation, that's either a bitmask of 0400 or 0200, which are for setuid and setgid, respectively. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Off the wall - sub-domain question

2013-08-27 Thread Daniel Brown
On Wed, Aug 21, 2013 at 5:16 PM, Jim Giner wrote: > I have a main domain (of course) and a sub domain. I'm really trying to > steer my personal stuff away from the main one and have focused all of my > php development to the sub-domain. > > Lately I noticed that google ca

Fwd: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
Oops, sent this message from the wrong email address, so the list rejected it. Begin forwarded message: > From: Stuart Dallas > Subject: Re: [PHP] Basic Auth > Date: 27 August 2013 16:36:27 BST > To: jim.gi...@albanyhandball.com > Cc: php-general@lists.php.net > > On 27 Au

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 10:55 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:51, Jim Giner wrote: On 8/27/2013 10:39 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:18, Jim Giner wrote: On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not really confusing so long as you understand how PHP

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 15:51, Jim Giner wrote: > On 8/27/2013 10:39 AM, Stuart Dallas wrote: >> On 27 Aug 2013, at 15:18, Jim Giner wrote: >> >>> On 8/27/2013 10:14 AM, Stuart Dallas wrote: >>>> It's not really confusing so long as you understand how P

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 10:39 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:18, Jim Giner wrote: On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not really confusing so long as you understand how PHP works. Each request is brand new - nothing is retained from previous requests. The two var

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
On 27 Aug 2013, at 15:18, Jim Giner wrote: > On 8/27/2013 10:14 AM, Stuart Dallas wrote: >> It's not really confusing so long as you understand how PHP works. Each >> request is brand new - nothing is retained from previous requests. The two >> variable you're c

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not really confusing so long as you understand how PHP works. Each request is brand new - nothing is retained from previous requests. The two variable you're changing are set by PHP when the request comes in from the browser. The

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
timely response! > > Before I try your suggestion - one question. Since when is a global variable > not changeable? Doesn't the fact that it reflects a modified value when I do > change it tell me it worked? I change the value to 'xxx' and show it having > tha

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
lled again the old value appears. Very confusing! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Basic Auth

2013-08-27 Thread Stuart Dallas
ve your log out link call a Javascript function which sends an XMLHttpRequest with an invalid username and password. The server will return a 401 which you ignore and then take the user to whatever URL you want them to see after they log off. Not pretty, but it works. -Stuart -- Stuart Dalla

[PHP] Basic Auth

2013-08-27 Thread Jim Giner
unsetting the PHP_AUTH_USER and _PW vars. Can someone explain to me why this doesn't suffice? The signon process expects them to be there, so when they are not (after the 'unset'), how come my signon process still detects them and their values? -- PHP General Mailing List (http:

Re: [PHP] exec and system do not work

2013-08-27 Thread Jim Giner
hen you say "does not work", can you show what is actually not working? I believe the exec and system functions are likely working just fine, but that the commands you've passed to them may not be. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Cer

[PHP] How to do PHP build test

2013-08-27 Thread Shahina Rabbani
Hi, Can anybody help me answering my doubt. I wanted to check if there are any errors with the php compilation and build. I have ran "make", "make test". "make test" didnt give any errors to me. Is there any other method or command to run through which we can

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