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

2013-08-04 Thread Farzan Dalaee
On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Farzan Dalaee farzan.dal...@gmail.com wrote: On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when logged out i delete the

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

2013-08-04 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Farzan Dalaee farzan.dal...@gmail.com wrote: On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when

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

2013-08-04 Thread Paul M Foster
On Sun, Aug 04, 2013 at 05:58:53PM +0100, Ashley Sheridan wrote: [snip] I'm not saying the method is bad, but the way Facebook does it isn't great, I'm constantly seeing people online who sign out when I open up a message box. Now that might be genuine, but I'm not *that* unpopular! I'm

Re: [PHP] suhosin and 5.4 onwards

2013-08-03 Thread Daniel
Well I do not use suhosin as I can lock down PHP with things like disable_function, disable_classes along with more advance function such as chroot and mod_security. On 8/3/13, Nick Edwards nick.z.edwa...@gmail.com wrote: Ok, so I know this might start flame wars, but... here goes ;) It seems

Re: [PHP] suhosin and 5.4 onwards

2013-08-03 Thread Lester Caine
Nick Edwards wrote: So, is the general opinion here, from actual factual experience and not because you read the same trashy bloggers as I did, in agreeance? is it genuinely true that suhosin is now irrelevant with 5.4 upwards and php is now much safer on its own? Practical experience is

Re: [PHP] suhosin and 5.4 onwards

2013-08-03 Thread Res
On 03/08/2013 18:50, Lester Caine wrote: Practical experience is that suhosin does not actually work with 5.4? Not without _unofficial_ patch(es) see attached for sessions, if it doesnt go through on list you can find the patch on github I've had to disable it because of problems with

Re: [PHP] Sending headers to server

2013-08-03 Thread Karim Geiger
Am 02.08.13 18:03, schrieb Miguel Guedes: This is strange. I've just found out that the headers are sent correctly if I access the website outside of localhost. I don't understand why. I also don't. I've tried the exactly same code you posted on my localhost as well and it worked all

Re: [PHP] Session Vars not staying active

2013-08-03 Thread Daniel P. Brown
On Aug 3, 2013 3:03 PM, dealTek deal...@gmail.com wrote: Hi all, I am having trouble with session vars. I'm trying to implement the credit card direct pay method outlined here... http://developer.authorize.net/api/dpm/ - Basically, page 1 is my form that goes outside my site to the cc

Re: [PHP] Sending headers to server

2013-08-03 Thread Matijn Woudt
On Sat, Aug 3, 2013 at 11:46 AM, Karim Geiger gei...@b1-systems.de wrote: Am 02.08.13 18:03, schrieb Miguel Guedes: This is strange. I've just found out that the headers are sent correctly if I access the website outside of localhost. I don't understand why. I also don't. I've tried the

Re: [PHP] Sending headers to server

2013-08-02 Thread Miguel Guedes
Hi Karim, On 01/08/13 15:40, Karim Geiger wrote: Works for me. What happens exactly? Do you get a 200? That's exactly right - I always get a 200. How can I diagnose this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2013-08-02 Thread Dušan Novaković
$query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - INTERVAL 3 MONTH AND NOW() On Fri, Aug 2, 2013 at 12:58 PM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date =

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

2013-08-02 Thread Simon Griffiths
Hello, Try something like: $oldDate = new DateTime(); $oldDate-sub(new DateInterval('P3M')); $old_records_to_delete = $oldDate-format('Y-m-d'); Hope this helps, Si Sent from my iPhone On 2 Aug 2013, at 11:58, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again, folks! I wish to

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

2013-08-02 Thread Karl-Arne Gjersøyen
2013/8/2 Dušan Novaković ndu...@gmail.com $query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - INTERVAL 3 MONTH AND NOW() This delete everything from now and 3months backwards. I want to store 3 months from now and delete OLDER than 3 months old records. Karl

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

2013-08-02 Thread Simon Schick
On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/8/2 Dušan Novaković ndu...@gmail.com $query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - INTERVAL 3 MONTH AND NOW() This delete everything from now and 3months backwards. I want to

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

2013-08-02 Thread Dušan Novaković
Yeah, just spelling mistake :-) And yes, it should be: $query = DELETE FROM `__table_name__` WHERE `__date__` = NOW() - INTERVAL 3 MONTH Cheers ;-) On Fri, Aug 2, 2013 at 2:35 PM, Simon Schick simonsimc...@gmail.com wrote: On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen

Re: [PHP] Sending headers to server

2013-08-02 Thread Matijn Woudt
On Thu, Aug 1, 2013 at 4:04 PM, Miguel Guedes miguel.a.gue...@gmail.comwrote: Hello List, I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be able to send headers to the server. Both, header('Status: 500 Internal Server Error'); and, header('HTTP/1.1 500 Internal

Re: [PHP] Sending headers to server

2013-08-02 Thread Miguel Guedes
On 02/08/13 14:10, Matijn Woudt wrote: Did you print some data before using header? No, not at all. I've PHP configured to complain about notices, warnings and errors; would've got a warning about headers already sent, which I don't get. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Sending headers to server

2013-08-02 Thread Karim Geiger
Hi Miguel, On 08/02/2013 10:50 AM, Miguel Guedes wrote: Hi Karim, On 01/08/13 15:40, Karim Geiger wrote: Works for me. What happens exactly? Do you get a 200? That's exactly right - I always get a 200. How can I diagnose this? Try getting the complete header by using curl -v

Re: [PHP] Sending headers to server

2013-08-02 Thread Miguel Guedes
Great tip, Karim! On 02/08/13 15:29, Karim Geiger wrote: Try getting the complete header by using curl -v http://url.com and paste it here. What is your output? Here's my output: $ curl -v http://localhost/header-test.php * About to connect() to localhost port 80 (#0) * Trying

Re: [PHP] Sending headers to server

2013-08-02 Thread Karim Geiger
Hi Miguel, On 08/02/2013 04:34 PM, Miguel Guedes wrote: Here's my output: $ curl -v http://localhost/header-test.php * About to connect() to localhost port 80 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 80 (#0) GET /header-test.php HTTP/1.1 User-Agent:

Re: [PHP] Sending headers to server

2013-08-02 Thread Miguel Guedes
This is strange. I've just found out that the headers are sent correctly if I access the website outside of localhost. I don't understand why. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending headers to server

2013-08-01 Thread Karim Geiger
Hi MiguelOn 08/01/2013 04:04 PM, Miguel Guedes wrote: Hello List, I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be able to send headers to the server. Both, header('Status: 500 Internal Server Error'); and, header('HTTP/1.1 500 Internal Server Error',

Re: [PHP] POST action

2013-08-01 Thread Larry Garfield
On 7/29/13 3:02 PM, Paul M Foster wrote: On Mon, Jul 29, 2013 at 11:50:01AM -0500, Larry Garfield wrote: On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: [snip] Except as noted above. This is all home-grown, using native PHP

Re: [PHP] POST action

2013-08-01 Thread Paul M Foster
On Thu, Aug 01, 2013 at 02:35:04PM -0500, Larry Garfield wrote: [snip] So you're writing your own form tags for each specific time you need a form, or you wrote your own form builder API that is writing the form tags for you? Unless my wife creates the form in Dreamweaver, I write the HTML

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,

Re: [PHP] POST action

2013-08-01 Thread Robert Cummings
On 13-08-01 05:14 PM, Paul M Foster wrote: On Thu, Aug 01, 2013 at 02:35:04PM -0500, Larry Garfield wrote: [snip] So you're writing your own form tags for each specific time you need a form, or you wrote your own form builder API that is writing the form tags for you? Unless my wife

Re: [PHP] php 5.3.15 and exception for disabled_functions

2013-07-30 Thread Bálint Horváth
Hi, Maybe you think for ini_set() http://php.net/manual/en/function.ini-set.php On Tue, Jul 30, 2013 at 9:22 AM, Josef Karliak karl...@ajetaci.cz wrote: Hi there, in the php.ini file I've disabled some functions (exec and similar). In the php script we must use binary execution - so I

Re: [PHP] php 5.3.15 and exception for disabled_functions

2013-07-30 Thread Josef Karliak
Hi, interesting function, but disable_function is configurable only from php.ini file :-/ J.K. Cituji Bálint Horváth hbal...@gmail.com: Hi, Maybe you think for ini_set() http://php.net/manual/en/function.ini-set.php On Tue, Jul 30, 2013 at 9:22 AM, Josef Karliak

Re: [PHP] POST action

2013-07-29 Thread Larry Garfield
On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: On 07/28/2013 12:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: Never write your own form? I'm guilty - oh, so guilty. What exactly is a 'security

Re: [PHP] POST action

2013-07-29 Thread Paul M Foster
On Mon, Jul 29, 2013 at 11:50:01AM -0500, Larry Garfield wrote: On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: [snip] Except as noted above. This is all home-grown, using native PHP functions designed to do these things, and

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I

Re: [PHP] POST action

2013-07-28 Thread Jim Giner
On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to

Re: [PHP] POST action

2013-07-28 Thread Ashley Sheridan
On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the

Re: [PHP] POST action

2013-07-28 Thread Jim Giner
On 7/28/2013 1:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:51 PM, Jim Giner wrote: On 7/28/2013 1:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
On 07/28/2013 12:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: Never write your own form? I'm guilty - oh, so guilty. What exactly is a 'security hardened' form? - All forms need a valid CSRF token to avoid CSRF attacks. This needs to be matched

Re: [PHP] POST action

2013-07-28 Thread Paul M Foster
On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: On 07/28/2013 12:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: Never write your own form? I'm guilty - oh, so guilty. What exactly is a 'security hardened' form? - All forms need a

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Přemysl Fiala
Hello, try - reference foreach($lagret_dato as $dag) or something like this :-) Premek. On Fri, 26 Jul 2013 11:18:03 +0200, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Below is something I try that ofcourse not work because of rsosort. Here is my code: ---

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Karl-Arne Gjersøyen
2013/7/26 Davi Marcondes Moreira davi.marcondes.more...@gmail.com Hi! I suggest you to try this: $foo = DateTime::createFromFormat('d/m/Y'); $newDate = $foo-format('Y-m-d'); Thank you veyr much. With a small modification this work perfec! Karl Em 26/07/2013 09:19, Karl-Arne Gjersøyen

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Jim Giner
I think you should change from using 'rsort' ( a SORT function) to 'array_reverse', a simple reverse function. Your example of what you desire is wrong. 24-7-2013 will give you the 2013-24-7 that you want. Here is my sample code. Try it yourself. ? $dag = array(24/7/2013); echo Began with:

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Jim Giner
On 7/26/2013 10:10 AM, Jim Giner wrote: I think you should change from using 'rsort' ( a SORT function) to 'array_reverse', a simple reverse function. Your example of what you desire is wrong. 24-7-2013 will give you the 2013-24-7 that you want. oops. I meant to say will NOT give you the

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread jomali
On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: Below is something I try that ofcourse not work because of rsosort. Here is my code: --- $lagret_dato = $_POST['lagret_dato']; foreach($lagret_dato as $dag){ $dag = explode(/,

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Robert Cummings
On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: Below is something I try that ofcourse not work because of rsosort. Here is my code: --- $lagret_dato = $_POST['lagret_dato']; foreach($lagret_dato as

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread jomali
On Fri, Jul 26, 2013 at 1:08 PM, Robert Cummings rob...@interjinn.comwrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Below is something I try that ofcourse not work because of rsosort. Here is my code:

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Robert Cummings
On 13-07-26 04:38 PM, jomali wrote: On Fri, Jul 26, 2013 at 1:08 PM, Robert Cummings rob...@interjinn.comwrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Below is something I try that ofcourse not work because of

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Jim Giner
On 7/26/2013 5:29 PM, Robert Cummings wrote: On 13-07-26 04:38 PM, jomali wrote: On Fri, Jul 26, 2013 at 1:08 PM, Robert Cummings rob...@interjinn.comwrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Below is

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Robert Cummings
On 13-07-26 05:33 PM, Jim Giner wrote: On 7/26/2013 5:29 PM, Robert Cummings wrote: And so it follows, that my solution, thus far, is the only solution posted that actually meets the requirements. Why you think my solution does not perform is beyond me since a simple run of the code would

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Tamara Temple
On Jul 26, 2013, at 4:18 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Below is something I try that ofcourse not work because of rsosort. Here is my code: --- $lagret_dato = $_POST['lagret_dato']; foreach($lagret_dato as $dag){ $dag = explode(/, $dag);

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Tamara Temple
augh, apologies; i didn't see all the other replies…. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:19 PM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: 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] Fwd: What wrong am I doing now?

2013-07-24 Thread Sebastian Krebs
Hi, Just want to mention: ext/mysel is deprecated. Use MySQLi, or PDO_MYSQL instead. :) Regards, Sebastian 2013/7/24 Karl-Arne Gjersøyen karlar...@gmail.com http://www.php.net/manual/en/datetime.format.php have the solution. Sorry for asking before I look at php.net!!! Karl --

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

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling rquadl...@gmail.comwrote: PHP 5.5+ is (from news) - Windows XP and 2003 support dropped. Does that mean no longer executes (as is seemingly what I'm seeing) or just no longer supported/developed? Just going to look into getting to the

Re: [PHP] COM - Assigning to method.

2013-07-24 Thread Richard Quadling
On 15 July 2013 16:27, Andrew Ballard aball...@gmail.com wrote: On Mon, Jul 15, 2013 at 4:21 AM, Adam Nicholls inkysp...@gmail.com wrote: Hi Andrew Thanks for this. But I'm still getting errors. I think I need to explain a bit more. Unfortunately there isn't a PHP API for this

Re: [PHP] Quick Q.

2013-07-24 Thread Richard Quadling
On 24 July 2013 21:54, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling rquadl...@gmail.comwrote: PHP 5.5+ is (from news) - Windows XP and 2003 support dropped. Does that mean no longer executes (as is seemingly what I'm seeing) or just no

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:59 PM, Richard Quadling rquadl...@gmail.comwrote: On 24 July 2013 21:54, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling rquadl...@gmail.comwrote: PHP 5.5+ is (from news) - Windows XP and 2003 support dropped.

Re: [PHP] /tmp/directory

2013-07-23 Thread Daniel Brown
On Mon, Jul 22, 2013 at 10:10 PM, Tedd Sperling t...@sperling.com wrote: On Jul 22, 2013, at 4:10 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You

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

2013-07-23 Thread Yoinier Hernandez Nieves
El 22/07/13 15:49, elk dolk escribió: Thank you for the quick response ! What I am trying to do : I have to complete two university projects for my professor ! project One : Make an online shop and must use the following components in it Shopping cart, Catalog of products, payment

Re: [PHP] Foreach and mydql_query problem

2013-07-23 Thread Karl-Arne Gjersøyen
6018369 -Original Message- From: Karl-Arne Gjersøyen [mailto:karlar...@gmail.com javascript:;] Sent: 22 July 2013 12:39 To: PHP Mailinglist Subject: Re: [PHP] Foreach and mydql_query problem 2013/7/22 Tamara Temple tamouse.li...@gmail.com javascript:; On Jul 22, 2013, at 1:19 AM

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

2013-07-23 Thread richard gray
On 23/07/2013 16:54, Yoinier Hernandez Nieves wrote: El 22/07/13 15:49, elk dolk escribió: Thank you for the quick response ! What I am trying to do : I have to complete two university projects for my professor ! project One : Make an online shop and must use the following components in

Re: [PHP] /tmp/directory

2013-07-23 Thread Tedd Sperling
On Jul 23, 2013, at 9:55 AM, Daniel Brown danbr...@php.net wrote: If it's /tmp, it's /tmp. The leading slash indicates that it's in the filesystem root. However, if it's just tmp, then it could - and probably is - under the client's home directory. Unless they're chrooted; then it

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Tamara Temple
On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have this this source code that not work as I want... THe PHP/HTHML form fields is generated by a while loop and looks like this: input type=number name=number_of_items[] size=6 value=?hp echo

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 08:04, Tamara Temple tamouse.li...@gmail.com wrote: On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have this this source code that not work as I want... THe PHP/HTHML form fields is generated by a while loop and looks like

Re: [PHP] PHP and Powershell

2013-07-22 Thread Serge Fonville
the sender by return e-mail. *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 12:16 PM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell Thank you for your clarification. Have you considered placing the whole

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Tamara Temple tamouse.li...@gmail.com On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have this this source code that not work as I want... THe PHP/HTHML form fields is generated by a while loop and looks like this: input

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas stu...@3ft9.com On 22 Jul 2013, at 08:04, Tamara Temple tamouse.li...@gmail.com wrote: On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have this this source code that not work as I want... THe PHP/HTHML form fields

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/22 Stuart Dallas stu...@3ft9.com On 22 Jul 2013, at 08:04, Tamara Temple tamouse.li...@gmail.com wrote: On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote: Hello again. I have

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas stu...@3ft9.com On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/22 Stuart Dallas stu...@3ft9.com On 22 Jul 2013, at 08:04, Tamara Temple tamouse.li...@gmail.com wrote: On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 13:25, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/22 Stuart Dallas stu...@3ft9.com On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/22 Stuart Dallas stu...@3ft9.com On 22 Jul 2013, at 08:04, Tamara Temple

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 11:20 AM, Tedd Sperling t...@sperling.com wrote Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that old php/mysql scripts cannot write to the

Re: [PHP] /tmp/directory

2013-07-22 Thread Ken Robinson
At 11:50 AM 7/22/2013, Tedd Sperling wrote: On Jul 22, 2013, at 11:20 AM, Tedd Sperling t...@sperling.com wrote Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that

Re: [PHP] /tmp/directory

2013-07-22 Thread Larry Martell
On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell la...@software-horizons.com wrote: On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jul 22, 2013, at 11:20 AM, Tedd Sperling t...@sperling.com wrote Hi gang: I should know this, but I don't. Where is the /tmp/

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Jim Giner
Your original code snippet had some errors. It really couldn't have been what you wanted to do. Example: You have a named field of 'number_of_items' and then you try to retreive $_POST['number_of_itemsi']. That won't work. Then you have a var called $number_of_items which we don't see

RE: [PHP] PHP and Powershell

2013-07-22 Thread Alan Loos
@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Thanks for your change. I understand what has happend, from MSDN forums http://social.technet.microsoft.com/Forums/windowsserver/en-US/4b841530-9d8c-4d09-a77c-b89c6e0bafab/how-do-i-capture-data-from-invokecommand http://technet.microsoft.com/en-us

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 12:02 PM, Larry Martell la...@software-horizons.com wrote: On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell la...@software-horizons.com wrote: On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jul 22, 2013, at 11:20 AM, Tedd Sperling

Re: [PHP] /tmp/directory

2013-07-22 Thread Larry Martell
On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jul 22, 2013, at 11:20 AM, Tedd Sperling t...@sperling.com wrote Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Jim Lucas
On 07/22/2013 04:39 AM, Karl-Arne Gjersøyen wrote: Might I suggest that you place your include for ../../tilkobling.php at the very top of this page? It would save you from possibly including it twice. // The acutual source code is below: //

Re: [PHP] /tmp/directory

2013-07-22 Thread Tamara Temple
On Jul 22, 2013, at 10:20 AM, Tedd Sperling t...@sperling.com wrote: Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that old php/mysql scripts cannot write to

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

2013-07-22 Thread Ashley Sheridan
On Mon, 2013-07-22 at 12:18 -0700, elk dolk wrote: Hi all, I want to build a website using Joomla 2.5 . It should have 5 pages: index.php pageOne.php pageTwo.php ... How can I get the php source code for those pages? I installed joomla 2.5 on my windows box and use XAMPP's

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

2013-07-22 Thread Ashley Sheridan
be grateful if you can give me an advice thank you - Forwarded Message - From: Ashley Sheridan a...@ashleysheridan.co.uk To: elk dolk elkd...@yahoo.com Cc: php-general@lists.php.net php-general@lists.php.net Sent: Monday, July 22, 2013 11:45 PM Subject: Re: [PHP] How to extract

Re: [PHP] /tmp/directory

2013-07-22 Thread Matijn Woudt
On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that old php/mysql scripts cannot write to

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

2013-07-22 Thread Ashley Sheridan
On Mon, 2013-07-22 at 13:10 -0700, elk dolk wrote: I am allowed to use tools or code by hand , it does not matter ,the professor wants to have the source code. You say tools, but would he consider a full-blown complex CMS as merely a tool, or not? At

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 4:10 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/

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

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 3:49 PM, elk dolk elkd...@yahoo.com wrote: Thank you for the quick response ! What I am trying to do : I have to complete two university projects for my professor ! project One : Make an online shop and must use the following components in it Shopping cart,

Re: [PHP] query order issue

2013-07-21 Thread Jim Lucas
On 7/20/2013 9:21 AM, 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

Re: [PHP] strip_tags

2013-07-21 Thread Matijn Woudt
Op 21 jul. 2013 02:53 schreef Tedd Sperling t...@sperling.com het volgende: On Jul 20, 2013, at 5:34 PM, Frank Arensmeier farensme...@gmail.com wrote: 20 jul 2013 kl. 18:25 skrev Tedd Sperling t...@sperling.com: Hi gang: I've been using $str = strip_tags($str, $allowable)

Re: [PHP] strip_tags

2013-07-20 Thread Frank Arensmeier
20 jul 2013 kl. 18:25 skrev Tedd Sperling t...@sperling.com: Hi gang: I've been using $str = strip_tags($str, $allowable) as it is described via the manuals: http://php.net/manual/en/function.strip-tags.php The problem I've found is the tags br and br / are not stripped. How

Re: [PHP] strip_tags

2013-07-20 Thread Tedd Sperling
On Jul 20, 2013, at 5:34 PM, Frank Arensmeier farensme...@gmail.com wrote: 20 jul 2013 kl. 18:25 skrev Tedd Sperling t...@sperling.com: Hi gang: I've been using $str = strip_tags($str, $allowable) as it is described via the manuals:

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-19 Thread Tamara Temple
On Jul 18, 2013, at 12:28 PM, Daniel Brown danbr...@php.net wrote: On Thu, Jul 18, 2013 at 3:08 PM, php colos phpco...@gmail.com wrote: Hello world! I'm trying to learn PHP ( first programming language that I learn) and I feel kinda lost. I've read PHP programming 3rd edition( O'reilly),

Re: [PHP] pass parameter from client to server

2013-07-19 Thread Tamara Temple
On Jul 18, 2013, at 6:53 PM, Joshua Kehn j...@kehn.us wrote: Could also use jquery instead True, but it's good to see the bare javascript as well in a demo. Best, -Josh ___ http://byjakt.com Currently mobile On Jul 19, 2013, at 4:08, Tedd Sperling

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object to get only certain object properties. To better answer your question: First, why do you specify ComputerName as 127.0.0.1 if the credential is already

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
[mailto:serge.fonvi...@gmail.com] Sent: Friday, July 19, 2013 3:05 AM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through Select-Object

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
have received this e-mail in error, please immediately notify the sender by return e-mail. ** ** *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 3:05 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell How have you determined that invoke-command requires -computername? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
by return e-mail. ** ** *From:* Serge Fonville [mailto:serge.fonvi...@gmail.com] *Sent:* Friday, July 19, 2013 11:13 AM *To:* Alan Loos *Cc:* php-general@lists.php.net *Subject:* Re: [PHP] PHP and Powershell ** ** How have you determined that invoke-command requires -computername

Re: [PHP] PHP and Powershell

2013-07-19 Thread Tedd Sperling
To all: Sorry for top posting and sorry for sounding like the list-police, but you need to trim the excess from your post. Hitting reply without considering that other have to read through a bunch of old add-on email is not good. So, please just trim your post to what is important. Cheers,

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
:16 PM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [PHP] PHP and Powershell Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test

Re: [PHP] Split/Group date together.

2013-07-18 Thread Bastien Koert
Normally, what I do here is handle that in the loop to display the records ... so start by adding an order by clause to keep the dates together SELECT * FROM transportdokument WHERE dato = '16/7/2013' AND dato = '18/7/2013' order by dato $prior_date = ; $sHTML = table; while($rows =

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