[PHP] Re: How to download a multi-part file at the server side?

2013-11-02 Thread Ajay Garg
I just came across http://www.w3schools.com/php/php_file_upload.asp, and tested it.. It works fine, when the file is uploaded via a form. It does seem that the client-method might indeed play a role. Here is my Java code for uploading the file ::

Re: [PHP] Re: Sending PHP mail with Authentication

2013-09-29 Thread Paul M Foster
On Fri, Sep 27, 2013 at 12:06:30AM +0200, Maciek Sokolewicz wrote: [snip] I'm sure I'm going to annoy people with this, but I would advise to never use PEAR. It's the biggest load of extremely badly coded PHP you'll ever find. Creating an SMTP client (with the purpose of just sending mail)

[PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/28/2013 10:33 PM, Ethan Rosenberg wrote: Dear List - I have a working program. I made one change in a switch statement, and it does not work. I'm probably missing something fundamental. Here are some code SNIPPETS... [please note that all my debug statements are at the left margin]

[PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
?php session_start(); session_name(STORE); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2); ini_set('error_reporting', 'E_ALL | E_STRICT'); ini_set('html_errors', 'On');

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Ethan Rosenberg
On 09/28/2013 11:59 PM, Jim Giner wrote: ?php session_start(); session_name(STORE); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2); ini_set('error_reporting', 'E_ALL | E_STRICT');

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:29 AM, Ethan Rosenberg wrote: On 09/28/2013 11:59 PM, Jim Giner wrote: ?php session_start(); session_name(STORE); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2);

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:38 AM, Jim Giner wrote: session_start(); session_name(STORE); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2); ini_set('error_reporting', 'E_ALL | E_STRICT');

[PHP] Re: Sending PHP mail with Authentication

2013-09-26 Thread Maciek Sokolewicz
On 25-9-2013 22:11, dealTek wrote: Hi All, Semi newbie email question... I have used the - mail() — Send mail php function to send email from a site. now it seems the server is blocking this for safety because I should be using authentication Q: mail() does not have authentication -

[PHP] Re: Apache

2013-09-23 Thread Tim Streater
On 23 Sep 2013 at 11:37, Domain nikha.org m...@nikha.org wrote: The problem is the weak PHP upload mechanism! I'd have said the problem is weak metadata provision - overloading the filename for other purposes. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Apache

2013-09-23 Thread Domain nikha . org
Tim Streater am Montag, 23. September 2013 - 12:56: On 23 Sep 2013 at 11:37, Domain nikha.org m...@nikha.org wrote: The problem is the weak PHP upload mechanism! I'd have said the problem is weak metadata provision - overloading the filename for other purposes. -- Cheers -- Tim

[PHP] Re: Friday's Question

2013-09-22 Thread Jonesy
On Fri, 20 Sep 2013 12:51:49 -0400, Tedd Sperling wrote: Do you use a Mousepad? Age: 70 Mousepad: No. Been using trackballs since 1993... (No room for a mousepad on _my_ desktop!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 t...@sperling.com Subject: Friday's Question Date: September 20, 2013

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
On 20 Sep 2013 at 17:51, Tedd Sperling t...@sperling.com wrote: Age: Fast approaching doddering old fossil stage Mousepad: Yes. I use an Apple Mighty Mouse so that I can scroll my Excel spreadsheet in two directions at once while moving the mouse pointer across the screen. The optics works

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
On 20 Sep 2013 at 18:20, Jen Rasmussen j...@cetaceasound.com wrote: -Original Message- From: Tedd Sperling [mailto:t...@sperling.com] 70Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag Bomb, Fixodent LOL. What in the heck is a Bag Bomb? I have no idea what

[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] Re: assign database result to iinput text box

2013-09-18 Thread ITN Network
?php $username = root; $password = myPassword; $hostname = localhost; //connection to the database $dbhandle = mysql_connect($hostname, $username, $password) or die(Unable to connect to MySQL); echo Connected to MySQLbr; //select a database to work with $selected =

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

2013-09-07 Thread Alessandro Pellizzari
On Sat, 07 Sep 2013 14:47:00 +0200, Simon 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? Yes:

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

[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 there anything I can

[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 -- PHP General Mailing

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: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-03 Thread Daniel
Just so that you know, I've posted in the forum topic as well: http://forum.piwik.org/read.php?2,105879 Regards, Daniel Fenn On Tue, Sep 3, 2013 at 12:42 AM, Lester Caine les...@lsces.co.uk wrote: Jan Ehrhardt wrote: Could you try to add a function_exists check to

[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 function_exists check to

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

2013-09-02 Thread Jan Ehrhardt
Jan Ehrhardt in php.general (Mon, 02 Sep 2013 10:57:14 +0200): Could you try to add a function_exists check to libs/upgradephp/upgrade.php? This at the function declaration of _json_encode: if (!function_exists('_json_encode')) { function _json_encode($var, ... And a extra } at the end. This

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

2013-09-02 Thread Lester Caine
Jan Ehrhardt wrote: Could you try to add a function_exists check to libs/upgradephp/upgrade.php? This at the function declaration of _json_encode: if (!function_exists('_json_encode')) { function _json_encode($var, ... And a extra } at the end. This patch, together with upgrading to the

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

2013-09-02 Thread Jim Giner
On 9/2/2013 9:30 PM, Daevid Vincent wrote: I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the id of the result set row. This is the basic gist of it: private function

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 PM, Daevid Vincent wrote: I'm confused

[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 Mailing List (http://www.php.net/) To

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 production with eaccelerator on

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: http://dev.piwik.org/trac/ticket/4093 Is this a known issue?

[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 Is this a known issue? I changed the PHP on my

[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

[PHP] Re: Permissions

2013-08-27 Thread David Robley
Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26 StoreInventory.php rosenberg:/var# ls -ld www drwxrwxrw- 37 ethan ethan 20480

Re: [PHP] Re: Permissions

2013-08-27 Thread Ashley Sheridan
On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26

Re: [PHP] Re: Permissions

2013-08-27 Thread David Robley
Ashley Sheridan wrote: On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php -rwxrwxrw- 1 ethan ethan 4188 Aug

Re: [PHP] Re: Permissions

2013-08-27 Thread Daniel Brown
On Tue, Aug 27, 2013 at 3:07 AM, David Robley robl...@zoho.com wrote: I beg to differ here. If the x bit isn't set on a directory, that will prevent scanning of the directory; in this case apache will be prevented from scanning the directory and will return a 403. Well, that's partially

[PHP] Re: Basic Auth

2013-08-27 Thread B. Aerts
On 27/08/13 15:37, Jim Giner wrote: Im using basic auth for a few of my pages that I want to limit access to - nothing of a sensitive nature, but simply want to limit access to. Want to implement a signoff process, but can't figure it out. From the comments in the manual I take it one can't

Re: [PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
On 08/27/2013 03:07 AM, David Robley wrote: Ashley Sheridan wrote: On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php

Re: [PHP] Re: Permissions

2013-08-27 Thread Ethan Rosenberg
On 08/27/2013 01:52 PM, Ethan Rosenberg wrote: On 08/27/2013 03:07 AM, David Robley wrote: Ashley Sheridan wrote: On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error.

[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, that we have

[PHP] Re: exec and system do not work

2013-08-26 Thread Tim Streater
On 26 Aug 2013 at 22:01, PhD Ethan Rosenberg erosenb...@hygeiabiomedical.com wrote: if( !file_exists(/var/www/orders.txt)); ^ | What's the semicolon doing there ---+ { echo system(touch

[PHP] Re: windows files and folders permission

2013-08-23 Thread Carlos Medina
Hola Emiliano, i think you should to redefine your question because i can not understand what you want. Please post parts of the code, examples, errors, etc. regards Carlos Medina Am 23.08.2013 06:28, schrieb Emiliano Boragina: Night everyone, I did a upload page and when upload a JPG file

Re: [PHP] Re: PHP vs JAVA

2013-08-22 Thread Sebastian Krebs
2013/8/22 David Harkness davi...@highgearmedia.com On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand cur...@maurand.comwrote: Sebastian Krebs wrote: Actually the problem is, that the dot . is already in use. With $foo.bar() you cannot tell, if you want to call the method bar() on the

Re: [PHP] Re: PHP vs JAVA

2013-08-22 Thread David Harkness
On Thu, Aug 22, 2013 at 12:29 AM, Sebastian Krebs krebs@gmail.comwrote: Actually I think .. is quite error-prone, because it is hard to distinguish from . or _ on the _first_ glance, which makes the get quickly through the code. [1] I surround all operators except member access (. and -)

[PHP] Re: PHP vs JAVA

2013-08-21 Thread Tim Streater
On 20 Aug 2013 at 23:59, PHP List phpl...@arashidigital.com wrote: While I don't have any references to back it up - my guess would be that Java may be seen as more versatile in general programming terms. A staggering number of enterprise level web applications are built with Java, add to

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread georg chambert
georg - Original Message - From: Tim Streater t...@clothears.org.uk To: PHP List phpl...@arashidigital.com; php-general@lists.php.net Sent: Wednesday, August 21, 2013 1:59 PM Subject: [PHP] Re: PHP vs JAVA On 20 Aug 2013 at 23:59, PHP List phpl...@arashidigital.com wrote: While I don't

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
around with ? Any think, should I change to 5 ? ehm ... serious? http://php.net/eol.php BR georg - Original Message - From: Tim Streater t...@clothears.org.uk To: PHP List phpl...@arashidigital.com; php-general@lists.php.net Sent: Wednesday, August 21, 2013 1:59 PM Subject: [PHP] Re

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Stuart Dallas
On 21 Aug 2013, at 15:01, georg chambert georg.chamb...@telia.com wrote: my I shake the subject a little; Ive been doing some PHP and found it ok to work with not so much fuss, but that was PHP4, what about PHP5 ? Dont really checked the difference but made a short-scan and found that it

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Curtis Maurand
Sorry in advance for the top post. Use the right tool for the Job.  I've use Java, C# and PHP. 1.  I hate the Perl-like object calls in PHP.  I'd rather use . notation in C# and Java.  It saves a lot of wear and tear on my left pinky finger. 2.  Java and C# are both typed languages.  Say what

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Sebastian Krebs
2013/8/21 Curtis Maurand cur...@maurand.com Sorry in advance for the top post. Use the right tool for the Job. I've use Java, C# and PHP. 1. I hate the Perl-like object calls in PHP. I'd rather use . notation in C# and Java. It saves a lot of wear and tear on my left pinky finger.

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread Curtis Maurand
Sebastian Krebs wrote: 2013/8/21 Curtis Maurand cur...@maurand.com Sorry in advance for the top post. Use the right tool for the Job. I've use Java, C# and PHP. 1. I hate the Perl-like object calls in PHP. I'd rather use . notation in C# and Java. It saves a lot of wear and

Re: [PHP] Re: PHP vs JAVA

2013-08-21 Thread David Harkness
On Wed, Aug 21, 2013 at 7:56 PM, Curtis Maurand cur...@maurand.com wrote: Sebastian Krebs wrote: Actually the problem is, that the dot . is already in use. With $foo.bar() you cannot tell, if you want to call the method bar() on the object $foo, or if you want to concatenate the value of

[PHP] Re: Output to File Instead of Browser

2013-08-20 Thread Jim Giner
On 8/20/2013 12:38 PM, Floyd Resler wrote: I have a php file that generates a form. Of course, this displays in the browser. How can I have the form generated from my script but either saved to a file or the output returned to another script? Thanks! Floyd Store your generated web page

[PHP] Re: Why the difference in email transit times?

2013-08-13 Thread Ian
On 13/08/2013 16:20, Tedd Sperling wrote: Hi gang: I'm using the class.phpmailer.php code to send email -- it works neat -- very classy (no pun intended). I can send an email from my sperling.com domain and it arrives almost immediately. However, when I use the exact same code

[PHP] Re: gibberish output when using the loadHTMLFile() function.

2013-08-12 Thread Maciek Sokolewicz
On 12-8-2013 2:54, atar wrote: Hi there!! When I'm trying to load an external html document with the loadHTMLFile() function and then I use the saveHTML() function to output its content, some text in the external html document which is written in hebrew is displayed in a gibberish format. is

[PHP] Re: How to upstream code changes to php community

2013-08-12 Thread David Robley
Shahina Rabbani wrote: Hi, I have done some modifications to the php source code and i tested it with php bench and I observed some improvement. I wanted to upstream these code changes to PHP community. I searched the wed but i didnt find proper guide to upstream the code to php.

[PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_pa_valgt_lager; result: *Fatal error*: Unsupported operand types in * /Users/karl/Sites/kasen/io/kp/index.php* on line *2970 *I have also tried this: $kg_pa_lager +=

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_**pa_valgt_lager; result: *Fatal error*: Unsupported operand types in * /Users/karl/Sites/kasen/io/kp/**index.php*

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_**pa_valgt_lager; result: *Fatal error*: Unsupported operand types in

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager +

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager

Re: [PHP] Re: Operand error...

2013-08-08 Thread Karl-Arne Gjersøyen
2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 2:11 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner jim.gi...@albanyhandball.com On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner

[PHP] Re: Stripe Connect in the UK + PHP Integration.

2013-08-06 Thread Richard Quadling
On 19 July 2013 16:22, Richard Quadling rquadl...@gmail.com wrote: Hi. Simple question. Has anyone got Stripe Connect, Stripe.js and Stripe PHP SDK operational in the UK. I'm struggling getting the UK Beta to accept a new account/customer set for a UK business or individual, accepting

[PHP] Re: how to see all sessions sets in server

2013-08-05 Thread Alessandro Pellizzari
Il Sun, 04 Aug 2013 20:47:37 +0430, Farzan Dalaee ha scritto: Please use better quoting. So best way is use a script(javascript) to send ajax to server every 5 second to check users is logged in or not? Is that okey? It depends. I want to write chat module like facebook and i need a

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Alessandro Pellizzari
Il Sun, 04 Aug 2013 13:32:55 +0430, Farzan Dalaee ha scritto: hi i want to write online user module for my site and i want to check $_SESSION['userID'] to find all users id who loged in but when i echo this code its return only current user detail how i can see all sessions? You can't. or

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Tim Streater
On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Like Matijn said, unless you're using some kind of client-side method to continually poll the server, you can't know if they've just closed their browser. There are Javascript events for exiting a page, but they don't

Re: [PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote: On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Like Matijn said, unless you're using some kind of client-side method to continually poll the server, you can't know if they've just closed their browser.

[PHP] Re: What the hell is Begacom?

2013-08-04 Thread Jonesy
On Sun, 4 Aug 2013 14:02:07 +0200, Camilo Sperberg wrote: Sent from my iPhone 6 Beta [Confidential use only] You need not apologize. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to delete 3 months old records in my database?

2013-08-02 Thread Jim Giner
On 8/2/2013 6:58 AM, Karl-Arne Gjersøyen wrote: Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date = date('Y-m-d'); $old_records_to_delete = ??? if($old_records_to_delete){ include(connect.php); $sql = DELETE FROM table WHERE date =

[PHP] Re: SELECT data base on a upper level SELECT

2013-08-01 Thread Jim Giner
On 7/31/2013 9:37 PM, iccsi wrote: I have 5 SELECT for Department, Manager, supervisor, Group Leader and Employees I want to every SELECT list narrow down for an upper SELECT. For example, once user select Department then all Manager, Supervisor, Group Leader and Employee list will be narrow

[PHP] Re: SELECT data base on a upper level SELECT

2013-08-01 Thread iccsi
Thanks for the information and help, The query can solve server side, but client side, user might select any one dropdown, for example, user might select manager from drop down without choose Department dropdown. For this case, application needs inject data for supervisor and lower level,

Re: [PHP] Re: SELECT data base on a upper level SELECT

2013-08-01 Thread jomali
On Thu, Aug 1, 2013 at 6:33 PM, iccsi inu...@gmail.com wrote: Thanks for the information and help, The query can solve server side, but client side, user might select any one dropdown, for example, user might select manager from drop down without choose Department dropdown. For this case,

[PHP] Re: OPcache Instead of APC Now?

2013-07-30 Thread Jan Ehrhardt
Timmy Turner in php.general (Tue, 30 Jul 2013 19:02:43 +0200): I was looking through the changelog for PHP 5.5 and noticed the Zend OPcache. Will this be replacing APC? (Is APC still being maintained?) The reason I'm asking is because I use APC's data caching feature heavily, which Zend's OPcache

[PHP] Re: What wrong am I doing now?

2013-07-24 Thread Jim Giner
On 7/24/2013 8:19 AM, Karl-Arne Gjersøyen wrote: mysql SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE dato = '2013-07-20' AND dato = '2013-07-24' GROUP BY dato DESC; +---+ | DATE_FORMAT(dato, '%e-%c-%Y') | +---+ |

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:45 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 7/24/2013 8:19 AM, Karl-Arne Gjersøyen wrote: mysql SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE dato = '2013-07-20' AND dato = '2013-07-24' GROUP BY dato DESC;

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Jim Giner
Jim, He already has that... - Matijn oops -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to extract php source code from joomla

2013-07-23 Thread Tedd Sperling
On Jul 23, 2013, at 12:15 AM, elk dolk elkd...@yahoo.com wrote: I study for MSc degree at university. Are you in an advanced class? Ok, congratulations -- you are studying for an MSc -- but that didn't answer the question. So, let me repeat the question: [1] Are you in an advanced PHP

[PHP] Re: Foreach and mydql_query problem

2013-07-22 Thread Tim Streater
On 22 Jul 2013 at 12:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Yes, i know that only one a singe row is updated and that is the problem. What can I do to update several rows at the same time? Which several rows? The row that will be updated is that (or those) that match your WHERE

[PHP] Re: Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Tim Streater t...@clothears.org.uk On 22 Jul 2013 at 12:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Yes, i know that only one a singe row is updated and that is the problem. What can I do to update several rows at the same time? Which several rows? The row that will be

[PHP] Re: query order issue

2013-07-20 Thread Jim Giner
On 7/20/2013 12:21 PM, dealTek wrote: Hi all, I have a page that starts with several mysql sql query searches and displays data below... then I added a form (with hidden line do-update value UPDATE) on the same page with action to same page... then above other sql queries - I put... if

[PHP] Re: query order issue

2013-07-20 Thread Jim Giner
On 7/20/2013 12:21 PM, dealTek wrote: Hi all, I have a page that starts with several mysql sql query searches and displays data below... then I added a form (with hidden line do-update value UPDATE) on the same page with action to same page... then above other sql queries - I put... if

[PHP] Re: zend framework getIdentity

2013-07-19 Thread Dan Joseph
On Wed, Jul 17, 2013 at 5:54 PM, Dan Joseph dmjos...@gmail.com wrote: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - /product/Messenger-dev/Messenger/library/Zend/Session.php(Line:480): Error #2 Class __PHP_Incomplete_Class has no unserializer

[PHP] Re: Premature end of script

2013-07-17 Thread Jim Giner
On 7/17/2013 11:22 AM, R B wrote: Hello, 5 years ago, y developed a php system and was working fine. But 20 days ago, when y try to access to some pages (not all the pages), in the log appears this message and the page is not displayed: == /usr/local/apache/logs/error_log == [Wed Jul 3

[PHP] Re: Error checking ON

2013-07-17 Thread Jim Giner
On 7/17/2013 11:49 AM, Tedd Sperling wrote: Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Since you state that you haven't made any changes to the system (in general), I'm going to guess that you modified an 'included' file and it has an

[PHP] Re: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 8:30 AM, Karl-Arne Gjersøyen wrote: I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase the number and weight. I can move products between different storehouses I can also transfer products from store and onto a truck

[PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase the number and weight. I can move products between

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Jim Giner jim.gi...@albanyhandball.com On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get incorrect direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 9:07 AM, Karl-Arne Gjersøyen wrote: 2013/7/10 Jim Giner jim.gi...@albanyhandball.com On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Lester Caine
Karl-Arne Gjersøyen wrote: // start the table $total = 0; echo table border=1; echo trthProduct/thth**Amount/th/tr; // loop thru each item found while ($results = $qrslts-fetch(PDO::FETCH_**ASSOC)) { echo trtd.$results['product_**name']./tdtd.$results['** product_amt']./td/tr; $total

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Karl-Arne Gjersøyen
2013/7/10 Lester Caine les...@lsces.co.uk Karl-Arne Gjersøyen wrote: // start the table $total = 0; echo table border=1; echo trthProduct/ththAmount/th/tr; // loop thru each item found while ($results = $qrslts-fetch(PDO::FETCH_ASSOC)) { echo

[PHP] Re: Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 1:21 PM, Ajay Garg wrote: Hi all. I have a requirement, wherein I need to allow vanilla uploads of files to a HTTPD server. Any client can upload any number of files (one at a time). Also, there is just one directory, where the files get stored finally (that is, after being copied

[PHP] Re: htaccess

2013-07-08 Thread Tim Streater
On 07 Jul 2013 at 21:22, Tedd Sperling t...@sperling.com wrote: Confirmed. Those two lines cause the problem. However, commenting out those lines causes other problems. Are there similar statements to these: AddType application/x-httpd-php .php .htm .html This one tells apache to

[PHP] Re: mongo usage

2013-07-06 Thread Tim Streater
On 06 Jul 2013 at 23:27, Tim Dunphy bluethu...@gmail.com wrote: | You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o. Still no change. $connection = new Mongo(); $db = $connection-jfdb; //$collection = $db-addresses; $adresses =

Re: [PHP] Re: mongo usage

2013-07-06 Thread Tim Dunphy
Thanks. Sorry to bug you guys with this. That did it. sigh On Sat, Jul 6, 2013 at 6:49 PM, Tim Streater t...@clothears.org.uk wrote: On 06 Jul 2013 at 23:27, Tim Dunphy bluethu...@gmail.com wrote: | You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o.

[PHP] Re: Web dev, DB and proper db design.

2013-07-04 Thread Tony Marston
Richard Quadling wrote in message news:CAKUjMCWJ4wiUO904OvYkS53Fsg4PPXa=qbokcvhwfemcpkp...@mail.gmail.com... Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was told I've never worked on a web application where foreign keys were used in the database. As

[PHP] Re: Web dev, DB and proper db design.

2013-07-04 Thread Jim Giner
On 7/4/2013 6:42 AM, Richard Quadling wrote: Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was told I've never worked on a web application where foreign keys were used in the database. As someone who has spent 25 years working on accounting/epos systems on

[PHP] Re: Thread-Hijacking (was: Re: [PHP] Fwd: Is it possible???)

2013-06-25 Thread Maciek Sokolewicz
On 25 June 2013 10:02, Tamara Temple tamouse.li...@gmail.com wrote: Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Please please please please don't do this! Please Please Please Do Not Hijack Threads. Hijacking would be starting a completely different discussion in the same thread.

[PHP] Re: Some Advice

2013-06-25 Thread Jonesy
On Tue, 25 Jun 2013 09:40:04 -0300, Samuel Lopes Grigolato wrote: --047d7b2e430e0b34d004dff9d47c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Just be cautious if going to check IP, because: 1) The two users could be in the same house or

[PHP] Re: Problem with variables

2013-06-25 Thread Jim Giner
On 6/25/2013 5:46 PM, Fernando A wrote: Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd

  1   2   3   4   5   6   7   8   9   10   >