php-general Digest 14 Aug 2009 05:57:42 -0000 Issue 6284

2009-08-14 Thread php-general-digest-help
php-general Digest 14 Aug 2009 05:57:42 - Issue 6284 Topics (messages 296758 through 296777): Re: Design Patterns 296758 by: Greg Beaver 296759 by: Ralph Deffke 296760 by: Ralph Deffke 296761 by: Ralph Deffke 296762 by: Jay Blanchard 296763

Re: [PHP] session variables - help

2009-08-14 Thread Ralph Deffke
I'm realy sorry for u, but the reason for no answers is ur concept. may be some rules will help u and I recommend u to think to spend the time to rewrite the whole code. Im shure u will solve the problem then: first dont use the global arrays directly. pick the values u need and put them in

Re: [PHP] session variables - help

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote: user often leave forms open for hours and then submit them These users should be taken out and beaten over the head with their keyboards! Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] session variables - help

2009-08-14 Thread Ralph Deffke
well thanks good they are far away then, but the problem is ur client, i didnt find anybody giving me the permission to beat his customers Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1250236989.2344.10.ca...@localhost... On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:

[PHP] Using fopen on a site with popups

2009-08-14 Thread James Colannino
Hey everyone! I have a question. I know that you can use fopen to open not just local files, but also files via HTTP. My question is, assuming you're attempting to open a page that has popups, is there anyway to get at the actual content underneath the popup? Thanks! James -- PHP General

Re: [PHP] session variables - help

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 10:05 +0200, Ralph Deffke wrote: well thanks good they are far away then, but the problem is ur client, i didnt find anybody giving me the permission to beat his customers Ashley Sheridan a...@ashleysheridan.co.uk wrote in message

Re: [PHP] Using fopen on a site with popups

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 01:15 -0700, James Colannino wrote: Hey everyone! I have a question. I know that you can use fopen to open not just local files, but also files via HTTP. My question is, assuming you're attempting to open a page that has popups, is there anyway to get at the actual

[PHP] Re: Using fopen on a site with popups

2009-08-14 Thread Ralph Deffke
have u tried? I did not, but as far as I understand u getting the stream including the html causing the browser to open an popup. so what is ur real problem then? James Colannino ja...@colannino.org wrote in message news:4a851d14.2010...@colannino.org... Hey everyone! I have a question. I

Re: [PHP] Re: Using fopen on a site with popups

2009-08-14 Thread James Colannino
Ralph Deffke wrote: have u tried? I did not, but as far as I understand u getting the stream including the html causing the browser to open an popup. so what is ur real problem then? Yeah, ummm... Sorry for the traffic. That was a really stupid question... It looks like the format of a

Re: [PHP] Re: Using fopen on a site with popups

2009-08-14 Thread Ralph Deffke
well included in a html script tag isn't it! James Colannino ja...@colannino.org wrote in message news:4a8522f6.60...@colannino.org... Ralph Deffke wrote: have u tried? I did not, but as far as I understand u getting the stream including the html causing the browser to open an popup.

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
-Original Message- From: Allen McCabe [mailto:allenmcc...@gmail.com] Sent: 14 August 2009 06:58 My ai with using unset($var) in update_order.php is to set the SESSION variable for an item to ' ' (empty) so that it would not show up on the order summary (because my

[PHP] Problem with memcache - help needed

2009-08-14 Thread Jean Michel Malatray
Hello folk! Currently, we use memcached as caching solution. We provide a link to 3 servers, a server-2x the Memcache daemon is started (2 different ports (depending 4GB) 192.168.0.1:11211 (4 GB) 192.168.0.1:11212 (4 GB) 192.168.0.2:11211 (700 MB) 192.168.0.3:11211 (700 MB) - Php.ini:

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 14 August 2009 11:45 Now, here is the update_order.php code in entirety: [code] ?php session_start(); foreach ($_SESSION as $var = $val) { if ($val == 0) { unset($_SESSION[$var]); } elseif

Re: [PHP] Problem with memcache - help needed

2009-08-14 Thread Eddie Drapkin
On Fri, Aug 14, 2009 at 7:14 AM, Jean Michel Malatrayjm.malat...@schaefer-shop.de wrote: Hello folk! Currently, we use memcached as caching solution. We provide a link to 3 servers, a server-2x the Memcache daemon is started (2 different ports (depending 4GB) 192.168.0.1:11211 (4 GB)

[PHP] PHP Byte Code Compiler

2009-08-14 Thread Ralph Deffke
quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
-Original Message- From: Allen McCabe [mailto:allenmcc...@gmail.com] Sent: 14 August 2009 06:58 Here is some more complete code: [code = order_process.php] ?php session_start(); // POST ALL $_POST VALUES, CREATE AS VARIABLES IN SESSION foreach($_POST as $k=$v) {

Re: [PHP] session variables - help

2009-08-14 Thread Allen McCabe
Thank you all for your responses. Mike. I like the ii option better, mostly because I already have most of that in place (ie. order posts to process, and process has editable fields and hidden fields with the remaining complimentary values). Martin suggested I use the following code for my

Re: [PHP] design pattern

2009-08-14 Thread Eric Butera
On Thu, Aug 13, 2009 at 4:45 PM, Ralph Deffkeralph_def...@yahoo.de wrote: Hi Martin, thanks for ur efforts, this is a lot of good work. for my opinion the start is a bit too much theoretical and valid for all type of application. In simple words, u are too close to the book. I would love

Re: [PHP] session variables - help

2009-08-14 Thread Martin Scotta
On Fri, Aug 14, 2009 at 12:25 PM, Allen McCabe allenmcc...@gmail.comwrote: Thank you all for your responses. Mike. I like the ii option better, mostly because I already have most of that in place (ie. order posts to process, and process has editable fields and hidden fields with the

Re: AW: [PHP] Re: Re: Re: Design Patterns

2009-08-14 Thread tedd
At 3:09 PM -0500 8/13/09, Shawn McKenzie wrote: Ralph Deffke wrote: for those of u not being a physician semiconductors are of pretty big atoms, but this is not the main problem, the problem is that u have to cut out structures off these semiconductors in order to build faster computers

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? There are several: APC, eAccelerator, Zend, PHPAccelerator, and problably more. I think APC and eAccelerator are the most popular.

Re: AW: [PHP] Re: Re: Re: Design Patterns

2009-08-14 Thread Robert Cummings
tedd wrote: At 3:09 PM -0500 8/13/09, Shawn McKenzie wrote: Ralph Deffke wrote: for those of u not being a physician semiconductors are of pretty big atoms, but this is not the main problem, the problem is that u have to cut out structures off these semiconductors in order to build

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Eddie Drapkin
On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummingsrob...@interjinn.com wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? There are several: APC, eAccelerator, Zend,

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummingsrob...@interjinn.com wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no posts, has anybody ever played arround with if? There are several: APC,

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Eddie Drapkin
On Fri, Aug 14, 2009 at 12:24 PM, Robert Cummingsrob...@interjinn.com wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummingsrob...@interjinn.com wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the documentation there are no

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 12:24 PM, Robert Cummingsrob...@interjinn.com wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummingsrob...@interjinn.com wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be used. also in the

Re: [PHP] PHP Byte Code Compiler

2009-08-14 Thread Robert Cummings
Robert Cummings wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 12:24 PM, Robert Cummingsrob...@interjinn.com wrote: Eddie Drapkin wrote: On Fri, Aug 14, 2009 at 11:58 AM, Robert Cummingsrob...@interjinn.com wrote: Ralph Deffke wrote: quite a while I'm thinking for what could that be

[PHP] ini files as config - hidden

2009-08-14 Thread דניאל דנון
I'm building a little framework for my self, The configuration of the framework is done in an ini file, How do you suggest to hide its contents? .htaccess wont be good (or atleast only htaccess) since if its turned off The file contains mysql password and important data. How should I

Re: [PHP] session variables - help

2009-08-14 Thread Ben Dunlap
Thanks all for your patience! I will work on this today and write back with any further questions I can't figure out on my own. And if anyone has any advice I will be checking my email regularly. If you've already tried this with no luck, please ignore -- but you might speed up the whole

[PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
I think a good solution is to put the ini file out of your html folder so only your scripts can read it. ? danondan...@gmail.com escreveu na mensagem news:907722000908141031v5b020fe0m5a3cc8a9dc196...@mail.gmail.com... I'm building a little framework for my self, The configuration of

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ben Dunlap
2009/8/14 João Cândido de Souza Neto j...@consultorweb.cnt.br: I think a good solution is to put the ini file out of your html folder so only your scripts can read it. I agree, and I try to do the same, but I've noticed that most open-source CMSes I've looked at (Drupal, Joomla, Textpattern,

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Martin Scotta
2009/8/14 Ben Dunlap bdun...@agentintellect.com 2009/8/14 João Cândido de Souza Neto j...@consultorweb.cnt.br: I think a good solution is to put the ini file out of your html folder so only your scripts can read it. I agree, and I try to do the same, but I've noticed that most open-source

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
A long time ago I worked in many shared servers, nowadays I´m not working with web sites, only systems, so my customers always has their own server. The question is: 1) The ini file you mentioned has ini extension? if yes, it must be out of the document root because if someone types its

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Jo�o C�ndido de Souza Neto
It´s a cool solution as well. Martin Scotta martinsco...@gmail.com escreveu na mensagem news:6445d94e0908141103l6710c766wcc89f05111a65...@mail.gmail.com... 2009/8/14 Ben Dunlap bdun...@agentintellect.com 2009/8/14 João Cândido de Souza Neto j...@consultorweb.cnt.br: I think a good solution

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ben Dunlap
1) Name your ini files .php so, database.ini will be database.php Actually I was assuming the configuration file to be a PHP script -- as is typical in big open-source CMSes. I took ini file earlier in the thread to be a generic description of any file, whatever the extension, that contains

[PHP] PHP_SAPI

2009-08-14 Thread Martin Scotta
Hi all! I'm making a class for handling different things depending on what web server are you running PHP. Can you tell me the output of this script and your environment? ?php echo PHP_OS, PHP_EOL, PHP_SAPI; ? It'll be useful to me to have different values, especially from Windows or IIS (

[PHP] Making HTML Scripts over PHP Programming

2009-08-14 Thread network
Dear All, I have developed php library for open source community, for making HTML scripts over PHP Programming, HTML Object. It's PHP Object Library for making autogenerated HTML scripts over PHP Programming. Providing the variety of needs to make HTML code automatically, such as HTML Tags,

Re: [PHP] session variables - help RESOLVED

2009-08-14 Thread Allen McCabe
Thanks everyone for your help, I finally got it working. For those that were curious, my writeResultRow() function was not naming the input fields properly, so the SESSION variables could not be updated properly. I had to add an array item for each show, an id, then call the id to name the inputs

Re: [PHP] Re: ini files as config - hidden

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 15:03 -0300, Martin Scotta wrote: 2009/8/14 Ben Dunlap bdun...@agentintellect.com 2009/8/14 João Cândido de Souza Neto j...@consultorweb.cnt.br: I think a good solution is to put the ini file out of your html folder so only your scripts can read it. I agree,

[PHP] FTP: File or directory?

2009-08-14 Thread Clancy
I have just got access to a new server, and am playing with upload/download procedures. I looked in the root directory, and see several objects which I assume to be directories. However I was surprised to find there does not appear to be any command to determine if an object is a file or