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

2013-08-04 Thread Ashley Sheridan
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 row? So if user close the browser without logout how can i find > user is online or not? > > Sent from my iPhone > > On Aug 4, 2013, at 14:44, Mat

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

2013-08-04 Thread Farzan Dalaee
You mean when user logged in i add new record to table and when logged out i delete the row? So if user close the browser without logout how can i find user is online or not? Sent from my iPhone On Aug 4, 2013, at 14:44, Matijn Woudt wrote: > > > > On Sun, Aug 4, 2013 at 11:02 AM, Farzan D

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

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee wrote: > 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? > > foreach($_SESSIO

Re: [PHP] Sending headers to server

2013-08-03 Thread Matijn Woudt
On Sat, Aug 3, 2013 at 11:46 AM, Karim Geiger 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 exactly sam

Re: [PHP] Session Vars not staying active

2013-08-03 Thread Daniel P. Brown
On Aug 3, 2013 3:03 PM, "dealTek" 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 gatewa

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 proper

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 sess

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 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 wrote: > Ok, so I know this might start flame wars, but... here goes ;) > > It seems suhosin is dead as fa

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-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-Age

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 127.0.0.1.

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

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/) T

Re: [PHP] Sending headers to server

2013-08-02 Thread Matijn Woudt
On Thu, Aug 1, 2013 at 4: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] 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 wrote: > On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen > wrote: > > > > 2013/8/2 Dušan No

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 wrote: > > 2013/8/2 Dušan Novaković > > > $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

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ć > $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 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 wrote: > Hello again, folks! > I wish to delete records in

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 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_re

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] 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 creates

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 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, application

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 H

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 function

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

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 : 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 wrote: Hi there, in the php.

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 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 had to enable f

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, an

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 ha

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 f

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 betwee

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: Your name: Your age: In the PHP tutorial manual, it says that we can ha

Re: [PHP] POST action

2013-07-28 Thread Robert Cummings
On 13-07-28 01:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file, since that we only need have one filebut

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: >> >> Your name: >> Your age: >> >> In the PHP tutorial manual, it says that we can have post >> action to the

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: > >> > >> Your name: > >> Your age: > >> > >> In the PHP tutorial manual, it says that we can have post > >> action to the form itself just like above codi

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: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file,

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
On 07/28/2013 12:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file, since that we only need have one filebut

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] 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 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); > rs

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 output

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 wrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen wrote: Below is something I try that ofcourse not work becaus

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 wrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen 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 jomali
On Fri, Jul 26, 2013 at 1:08 PM, Robert Cummings wrote: > On 13-07-26 11:42 AM, jomali wrote: > >> On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen > >wrote: >> >> Below is something I try that ofcourse not work because of rsosort. >>> Here is my code: >>> --- >>> $lagret_

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 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 =

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 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 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 2013-

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. **"; echo "Try using rsort"; $dagparts =

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

2013-07-26 Thread Karl-Arne Gjersøyen
2013/7/26 Davi Marcondes Moreira > 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" > escreveu: > > Below i

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 wrote: Below is something I try that ofcourse not work because of rsosort. Here is my code: --- $lagret_dato = $_POST['l

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:59 PM, Richard Quadling wrote: > > > > On 24 July 2013 21:54, Matijn Woudt wrote: > >> >> >> >> On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling >> wrote: >> >>> PHP 5.5+ is (from news) >>> >>>- Windows XP and 2003 support dropped. >>> >>> >>> Does that mean no l

Re: [PHP] Quick Q.

2013-07-24 Thread Richard Quadling
On 24 July 2013 21:54, Matijn Woudt wrote: > > > > On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling wrote: > >> 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/

Re: [PHP] COM - Assigning to method.

2013-07-24 Thread Richard Quadling
On 15 July 2013 16:27, Andrew Ballard wrote: > On Mon, Jul 15, 2013 at 4:21 AM, Adam Nicholls > 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 application I'm trying to

Re: [PHP] Quick Q.

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 10:45 PM, Richard Quadling wrote: > 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 bottom of th

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] Re: What wrong am I doing now?

2013-07-24 Thread Matijn Woudt
On Wed, Jul 24, 2013 at 2:45 PM, Jim Giner wrote: > 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_F

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 > http://www.php.net/manual/en/datetime.format.php have the solution. Sorry > for asking before I look at php.net!!! > > Karl > > -- Forwarded messa

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 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] /tmp/directory

2013-07-23 Thread Tedd Sperling
On Jul 23, 2013, at 9:55 AM, Daniel Brown 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 could be dis

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 i

Re: [PHP] Foreach and mydql_query problem

2013-07-23 Thread Karl-Arne Gjersøyen
Liam. > 3Sharp Ltd. > > T: 0845 6018370 > F: 0845 6018369 > > -Original Message- > From: Karl-Arne Gjersøyen [mailto:karlar...@gmail.com ] > Sent: 22 July 2013 12:39 > To: PHP Mailinglist > Subject: Re: [PHP] Foreach and mydql_query problem > > 2013/

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 gateway

Re: [PHP] /tmp/directory

2013-07-23 Thread Daniel Brown
On Mon, Jul 22, 2013 at 10:10 PM, Tedd Sperling wrote: > On Jul 22, 2013, at 4:10 PM, Matijn Woudt wrote: > >> On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling wrote: >> >>> Hi gang: >>> >>> I should know this, but I don't. >>> >>> Where is the /tmp/ directory? >>> >>> You see, I have a client whe

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 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, Catalog o

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 4:10 PM, Matijn Woudt wrote: > On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling 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 permis

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?

Re: [PHP] /tmp/directory

2013-07-22 Thread Matijn Woudt
On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling 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 > /tmp/

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

2013-07-22 Thread Ashley Sheridan
; those projects ! I thought it's > > better to use Joomla I'll be grateful if you can give me an advice > > > thank you > > > - Forwarded Message - > From: Ashley Sheridan > To: elk dolk > Cc: "php-general@lists.php.net&quo

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 XAM

Re: [PHP] /tmp/directory

2013-07-22 Thread Tamara Temple
On Jul 22, 2013, at 10:20 AM, Tedd Sperling 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 > /tm

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 Larry Martell
On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling wrote: > On Jul 22, 2013, at 11:20 AM, Tedd Sperling 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

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 12:02 PM, Larry Martell wrote: > On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell > wrote: >> On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling >> wrote: >>> On Jul 22, 2013, at 11:20 AM, Tedd Sperling wrote I should know this, but I don't. Where is the /tm

RE: [PHP] PHP and Powershell

2013-07-22 Thread Alan Loos
...@gmail.com] Sent: Monday, July 22, 2013 4:09 AM To: Alan Loos Cc: php-general@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-b89c6e

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 defi

Re: [PHP] /tmp/directory

2013-07-22 Thread Larry Martell
On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell wrote: > On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling > wrote: >> On Jul 22, 2013, at 11:20 AM, Tedd Sperling wrote >>> Hi gang: >>> >>> I should know this, but I don't. >>> >>> Where is the /tmp/ directory? >>> >>> You see, I have a client where

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 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/my

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 11:20 AM, Tedd Sperling 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 > /tmp/

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 13:25, Karl-Arne Gjersøyen wrote: > 2013/7/22 Stuart Dallas > On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > > > 2013/7/22 Stuart Dallas > > > >> > >> On 22 Jul 2013, at 08:04, Tamara Temple wrote: > >> > >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > >> w

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas > On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > > > 2013/7/22 Stuart Dallas > > > >> > >> On 22 Jul 2013, at 08:04, Tamara Temple > wrote: > >> > >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > >> wrote: > >>> > Hello again. > I have this this

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 12:56, Karl-Arne Gjersøyen wrote: > 2013/7/22 Stuart Dallas > >> >> On 22 Jul 2013, at 08:04, Tamara Temple wrote: >> >>> On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen >> wrote: >>> Hello again. I have this this source code that not work as I want... >

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Stuart Dallas > > On 22 Jul 2013, at 08:04, Tamara Temple wrote: > > > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > 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 look

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Karl-Arne Gjersøyen
2013/7/22 Tamara Temple > > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen > 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: > > > > " required="required"> > > > > > > th

Re: [PHP] PHP and Powershell

2013-07-22 Thread Serge Fonville
f46c9f15-70b4-496c-a9d6... > NotConnected > > [5] => > > [6] => > > ) > > > > End Of Scene > -- > > > > > > *Alan Loos* > > > > CONFIDENTIALITY NOTICE: This e-mail and the attachment(s)

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Stuart Dallas
On 22 Jul 2013, at 08:04, Tamara Temple wrote: > On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen 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: >> >> " required="required">

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 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: > > " required="required"> > > > the php source code look like this: > if(!empty($

Re: [PHP] strip_tags

2013-07-21 Thread Matijn Woudt
Op 21 jul. 2013 02:53 schreef "Tedd Sperling" het volgende: > > > On Jul 20, 2013, at 5:34 PM, Frank Arensmeier wrote: > > > 20 jul 2013 kl. 18:25 skrev Tedd Sperling : > > > >> Hi gang: > >> > >> I've been using > >> > >> $str = strip_tags($str, $allowable) > >> > >> as it is described via the

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-20 Thread Tedd Sperling
On Jul 20, 2013, at 5:34 PM, Frank Arensmeier wrote: > 20 jul 2013 kl. 18:25 skrev Tedd Sperling : > >> 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 prob

Re: [PHP] strip_tags

2013-07-20 Thread Frank Arensmeier
20 jul 2013 kl. 18:25 skrev Tedd Sperling : > 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 "" and "" are not stripped. > > How do you

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
ccompanying attachment(s) is strictly prohibited. If you 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 12:16 PM To: Alan Loos Cc: php-general@lists.php.net Subject: Re: [P

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, te

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
d and intended only for > the addressee(s) hereof. If you are not an intended recipient, you are > hereby notified that any disclosure, copying, distribution or use of this > e-mail and/or the accompanying attachment(s) is strictly prohibited. If you > have received this e-mail in error,

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
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? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.

Re: [PHP] PHP and Powershell

2013-07-19 Thread Serge Fonville
osure, copying, distribution or use of this > e-mail and/or the accompanying attachment(s) is strictly prohibited. If you > have received this e-mail in error, please immediately notify the sender by > return e-mail. > > ** ** > > *From:* Serge Fonville [mailto:serge.fonvi...@g

RE: [PHP] PHP and Powershell

2013-07-19 Thread Alan Loos
il. 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 Hi, Although this is more powershell related than PHP... When Powershell returns an object, you can pipe the output through

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 specif

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tamara Temple
On Jul 18, 2013, at 6:53 PM, Joshua Kehn 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 wrote: >

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

2013-07-18 Thread Tamara Temple
On Jul 18, 2013, at 12:28 PM, Daniel Brown wrote: > On Thu, Jul 18, 2013 at 3:08 PM, php colos 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), >> 'getting good with PHP'

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Joshua Kehn
Could also use jquery instead Best, -Josh ___ http://byjakt.com Currently mobile On Jul 19, 2013, at 4:08, Tedd Sperling wrote: > > One additional comment. > > Please change the javascript onclick to onchange -- that way the demo will > work for Chrome as well as ot

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