Re: [PHP] Question about session_id() and session_start()

2013-05-21 Thread Tim Schofield
On 20/05/2013, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 20-5-2013 22:14, Tim Schofield wrote: Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell

Re: [PHP] Question about session_id() and session_start()

2013-05-21 Thread 孟远涛
thank you. I read the source code and it helps a lot, now I know the behavior of the code is consistent with the NOTE. I think the reason is that If the 'new' session_id we want to set already exists on the server, but does not exist on the client's cookie, the server must send a set-cookie header

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
On Mon, May 20, 2013 at 5:33 AM, 孟远涛 yuantao.m...@gmail.com wrote: I find the Note in PHP document. http://www.php.net/manual/en/function.session-id.php Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called,

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Tim Schofield
Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell them the answer? Thanks Tim Course View Towers, Plot 21 Yusuf Lule Road, Kampala T +256 (0) 312 314 418 M +256 (0)

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread David OBrien
On Mon, May 20, 2013 at 4:14 PM, Tim Schofield t...@weberpafrica.com wrote: Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell them the answer? Thanks Tim

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Maciek Sokolewicz
On 20-5-2013 22:14, Tim Schofield wrote: Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell them the answer? Thanks Tim Course View Towers, Plot 21 Yusuf Lule

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
On Mon, May 20, 2013 at 10:46 PM, David OBrien dgobr...@gmail.com wrote: On Mon, May 20, 2013 at 4:14 PM, Tim Schofield t...@weberpafrica.com wrote: Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread David OBrien
On May 20, 2013 8:45 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, May 20, 2013 at 10:46 PM, David OBrien dgobr...@gmail.com wrote: On Mon, May 20, 2013 at 4:14 PM, Tim Schofield t...@weberpafrica.com wrote: Matijn There are well over half a million lines of source code in PHP. It

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Matijn Woudt
Op 21 mei 2013 03:59 schreef David OBrien dgobr...@gmail.com het volgende: On May 20, 2013 8:45 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, May 20, 2013 at 10:46 PM, David OBrien dgobr...@gmail.com wrote: On Mon, May 20, 2013 at 4:14 PM, Tim Schofield t...@weberpafrica.com

[PHP] Question about session_id() and session_start()

2013-05-19 Thread 孟远涛
I find the Note in PHP document. http://www.php.net/manual/en/function.session-id.php Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless if the current session id is identical to the one being set. I feel

[PHP] Question about PHP-CGI, mysqld and sudden spiking average load readings on Linux Virtual Dedicated Server running CentOS 6.3

2013-02-11 Thread Gary Lebowitz
I have noticed when doing a top via SSH on my GoDaddy virtual dedicated server that every time a user logs in in the COMMAND column I see the PHP-CGI process start to run, followed by mysqld. Often when these two processes run I start to see a spike in average load, and sometimes this spike spins

Re: [PHP] Question

2012-11-03 Thread Marco Behnke
Am 03.11.12 01:30, schrieb Silvio Siefke: Hello, i have compile PHP 5.4.8 on my Debian System. I have before Version 5.4.7. I delete before all old Files from PHP and then run the commands: ./configure --sysconfdir=/usr/local/etc --with-pear --enable-bcmath --with-bz2=/usr

[PHP] Question

2012-11-02 Thread Silvio Siefke
Hello, i have compile PHP 5.4.8 on my Debian System. I have before Version 5.4.7. I delete before all old Files from PHP and then run the commands: ./configure --sysconfdir=/usr/local/etc --with-pear --enable-bcmath --with-bz2=/usr --disable-calendar --enable-ctype --without-curl

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread Matijn Woudt
Op 17 jul. 2012 05:23 schreef James Newman james.new...@primalmedia.co.nz het volgende: I'm having a few authentication issues and I'm not sure if it's my code or the web service I'm connecting to. The code below shows what I'm working with not sire if I'm going about it the right way. This

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread Curtis Maurand
That's not a helpful answer.  I'd be curious at a real answer for this, too.  I'm sure that there is something going on with session management on the client side as authentication has probably already happened, but the author doesn't know how to handle the response to the authentication

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread James Newman
I agree with your response, the payment gateway insists that the authentication I have been given is correct. My question was more around was I using the function correctly. It says authentication failed but I've followed he documentation to the letter. Is there a way I can output what the

Re: [PHP] SOAP and Php question about authentication

2012-07-17 Thread Matijn Woudt
Op 17 jul. 2012 22:44 schreef James Newman james.new...@primalmedia.co.nz het volgende: I agree with your response, the payment gateway insists that the authentication I have been given is correct. My question was more around was I using the function correctly. It says authentication failed

[PHP] SOAP and Php question about authentication

2012-07-16 Thread James Newman
I'm having a few authentication issues and I'm not sure if it's my code or the web service I'm connecting to. The code below shows what I'm working with not sire if I'm going about it the right way. This is the error I get! Fatal error: Uncaught SoapFault exception: [soap:Client]

Re: [PHP] Question about date calculations

2012-01-01 Thread Matijn Woudt
On Fri, Dec 30, 2011 at 5:33 PM, Eric Lommatsch er...@pivotaldata.net wrote: When I try this method: $interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); I get the following error when I run the page: Fatal error : Call to undefined method DateTime::diff() in

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
Ext 23 Fax 888-282-9927   www.pivotaldata.com   er...@pivotaldata.com       -Original message- From: Frank Arensmeier farensme...@gmail.com Sent: Thu 29-12-2011 15:25 To: Eric Lommatsch er...@pivotaldata.net; CC: php-general@lists.php.net; Subject: Re: [PHP] Question about date

RE: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
; 'Frank Arensmeier' farensme...@gmail.com; CC: 'Eric Lommatsch' er...@pivotaldata.net; php-general@lists.php.net; Subject: RE: [PHP] Question about date calculations -Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Thursday, December 29, 2011 5:10 PM To: Frank

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
...@gmail.com; 'Eric Lommatsch' er...@pivotaldata.net; php-general@lists.php.net; Subject: Re: [PHP] Question about date calculations On 12/30/2011 12:19 AM, ad...@buskirkgraphics.com wrote: -Original Message- From: Fatih P. [ mailto:fatihpirist...@gmail.com ] Sent: Thursday, December

Re: [PHP] Question about date calculations

2011-12-30 Thread Jim Lucas
On 12/29/2011 01:22 PM, Eric Lommatsch wrote: Hello List, I am using PHP version 5.2.6. I am using PHP V5.3.3 In my setup, the following lines give me errors stating that PHP cannot convert the DateTime object to a string. I was able to get around the error by changing your code to the

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread admin
-Original Message- From: Eric Lommatsch [mailto:er...@pivotaldata.com] On Behalf Of Eric Lommatsch Sent: Friday, December 30, 2011 12:31 PM To: Fatih P.; ad...@buskirkgraphics.com Cc: 'Frank Arensmeier'; 'Eric Lommatsch'; php-general@lists.php.net Subject: RE: Re: [PHP] Question

[PHP] Question about date calculations

2011-12-29 Thread Eric Lommatsch
Hello List, I am using PHP version 5.2.6. I have a page I am trying to create where I am comparing the values of two MySQL date fields with the current date. One of the MySQL Date fields is a class start date, the other is the class end date. First I need to calculate the number of

Re: [PHP] Question about date calculations

2011-12-29 Thread Frank Arensmeier
29 dec 2011 kl. 22.22 skrev Eric Lommatsch: So far in looking at the functions that are available at http://www.php.net/manual/en/ref.datetime.php I have not been able to figure out how to do what I need to do. Below is a snippet showing approximately what I am trying to do. On the same

Re: [PHP] Question about date calculations

2011-12-29 Thread Fatih P.
On Thu, Dec 29, 2011 at 11:40 PM, Frank Arensmeier farensme...@gmail.comwrote: 29 dec 2011 kl. 22.22 skrev Eric Lommatsch: So far in looking at the functions that are available at http://www.php.net/manual/en/ref.datetime.php I have not been able to figure out how to do what I need to

RE: [PHP] Question about date calculations

2011-12-29 Thread admin
-Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Thursday, December 29, 2011 5:10 PM To: Frank Arensmeier Cc: Eric Lommatsch; php-general@lists.php.net Subject: Re: [PHP] Question about date calculations On Thu, Dec 29, 2011 at 11:40 PM, Frank Arensmeier

Re: [PHP] Question about date calculations

2011-12-29 Thread Fatih P.
On 12/30/2011 12:19 AM, ad...@buskirkgraphics.com wrote: -Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Thursday, December 29, 2011 5:10 PM To: Frank Arensmeier Cc: Eric Lommatsch; php-general@lists.php.net Subject: Re: [PHP] Question about date calculations

Re: [PHP] Question about date calculations

2011-12-29 Thread Lester Caine
Fatih P. wrote: well then look deeper in the question: I have a page I am trying to create where I am comparing the values of two MySQL date fields with the current date. One of the *MySQL Date fields *is a class start date,*the other* is the class end date. all needs to do is modify his

[PHP] Question regarding passwords/security

2011-12-22 Thread Paul M Foster
Not sure how to ask this question... I've always eschewed consulting a database on page loads to determine if a user is logged in, primarily because of latency issues. For example, you could store a nonce like the session ID in a table for a user when they log in. Then each time they arrive at a

Re: [PHP] Question about socket_select

2011-12-14 Thread Mihai Anghel
On Wed, Dec 14, 2011 at 1:25 AM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Dec 14, 2011 at 12:11 AM, Mihai Anghel mihaigrim1...@gmail.com wrote: Hello, It appears to me that something is strange with the socket_select function. From what I understand the value of the fourth parameter,

[PHP] Question about socket_select

2011-12-13 Thread Mihai Anghel
Hello, It appears to me that something is strange with the socket_select function. From what I understand the value of the fourth parameter, tv_sec, should block the execution of the script for that number of seconds. I tried this code : ?php error_reporting(E_ERROR); $serverSocket =

Re: [PHP] Question about socket_select

2011-12-13 Thread Matijn Woudt
On Wed, Dec 14, 2011 at 12:11 AM, Mihai Anghel mihaigrim1...@gmail.com wrote: Hello, It appears to me that something is strange with the socket_select function. From what I understand the value of the fourth parameter, tv_sec, should block the execution of the script for that number of

[PHP] Question about performance between for iteration and extension function

2011-12-09 Thread Lin Yo-An
Hi folks, I am in doubt of this, I thought pure php iteration is slower than calling join or other extension functions. but the result shows: https://gist.github.com/b2a94c94ca66a55814d4 Using Pure PHP for iteration is faster than using join function. why ? because of the php runtime

Re: [PHP] Question about performance between for iteration and extension function

2011-12-09 Thread Matijn Woudt
On Fri, Dec 9, 2011 at 5:04 PM, Lin Yo-An cornelius.h...@gmail.com wrote: Hi folks, I am in doubt of this, I thought pure php iteration is slower than calling join or other extension functions. but the result shows:  https://gist.github.com/b2a94c94ca66a55814d4 Using Pure PHP for iteration

[PHP] Question about PHP FPM and shared memory

2011-11-23 Thread Daniel Betz
Hello list, I am trying to start PHP FPM with 2600 worker pools with ondemand processmanager. Each for one domain. The problem is now, that the php-fpm quits with: ERROR: pid 10937, fpm_shm_alloc(), line 28: unable to allocate 1040 bytes in shared memory: Cannot allocate memory: Cannot allocate

Re: [PHP] Question about PHP FPM and shared memory

2011-11-23 Thread Nilesh Govindarajan
On 11/23/2011 08:25 PM, Daniel Betz wrote: Hello list, I am trying to start PHP FPM with 2600 worker pools with ondemand processmanager. Each for one domain. The problem is now, that the php-fpm quits with: ERROR: pid 10937, fpm_shm_alloc(), line 28: unable to allocate 1040 bytes in

[PHP] question about best practice for coding sql statements

2011-11-12 Thread tamouse mailing lists
I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to view the SQL statement, and also if there's an error,

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread Stephen
On 11-11-12 06:30 AM, tamouse mailing lists wrote: I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread Geoff Shang
On Sat, 12 Nov 2011, tamouse mailing lists wrote: I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 7:01 AM, Stephen stephe...@rogers.com wrote: While I am not a big fan of OOP, I do like PDO, and recommend its use. Right -- I wasn't actually inquiring about how to access a data base, merely the pactice of using a variable for the SQL -- In your example, you are doing

[PHP] Question reading a file

2011-10-27 Thread Tedd Sperling
Hi gang: I have a few questions -- this is my first one. Please review this link: http://webbytedd.com//perms/ This page simply reads the contents of a file of the user's choice and displays the file's data. My first question is with regard to reading a file ( fread() ): If the user

Re: [PHP] Question reading a file

2011-10-27 Thread Ashley Sheridan
On Thu, 2011-10-27 at 15:25 -0400, Tedd Sperling wrote: Hi gang: I have a few questions -- this is my first one. Please review this link: http://webbytedd.com//perms/ This page simply reads the contents of a file of the user's choice and displays the file's data. My first

Re: [PHP] Question reading a file

2011-10-27 Thread Daniel Brown
On Thu, Oct 27, 2011 at 15:25, Tedd Sperling tedd.sperl...@gmail.com wrote: Hi gang: I have a few questions -- this is my first one. Please review this link: http://webbytedd.com//perms/ This page simply reads the contents of a file of the user's choice and displays the file's data.

Re: [PHP] Question reading a file

2011-10-27 Thread Tedd Sperling
On Oct 27, 2011, at 5:14 PM, Daniel Brown wrote: On Thu, Oct 27, 2011 at 15:25, Tedd Sperling tedd.sperl...@gmail.com wrote: -snip my confusion - No need to review the code. The first hunch I had proved correct. PHP opens with a less-than (left carat, or 'less-than') symbol, as do HTML

[PHP] Question about losing port number

2011-09-26 Thread vince chan
Hi: I have a general question about PHP: So basically I have a link, and I want the href to be absolute., so I do 'https://' . $_SERVER['HTTP_HOST'] . '/login' ; this gives me https://127.0.0.1/login on my local; however, what i really want is https://127.0.0.1:9090/login, it is missing :9090. I

Re: [PHP] Question about losing port number

2011-09-26 Thread Tim Streater
On 26 Sep 2011 at 23:45, vince chan rainma...@gmail.com wrote: I have a general question about PHP: So basically I have a link, and I want the href to be absolute., so I do 'https://' . $_SERVER['HTTP_HOST'] . '/login' ; this gives me https://127.0.0.1/login on my local; however, what i

[PHP] question about Pear Auth and Pear MDB2

2011-04-29 Thread Michael Mitchell
Hi, I'm a bit of a newbie at PHP and programming in general. Reading a PHP book by Larry Ullman, I was given instructions to install Pear Auth package and also Pear DB. As the Pear website said that DB has been deprecated in favor of MDB2, I installed this latter package. However, I am getting

[PHP] Question about directory permissions

2011-03-21 Thread Al
I understand dir perms pretty well; but, have a question I can't readily find the answer to. Under a Linux system, scripts can't write, copy, etc. to other dirs unless the perms are set for writable for the script e.g., nobody. But, is there a way a script can write or copy within its own

Re: [PHP] Question about directory permissions

2011-03-21 Thread Andy McKenzie
Sure. The script runs with the permissions of whoever is running it. In general, a PHP script that's a web page in linux will run by a user called something like apache, apache2, www-user, or something similar. If you give that user permissions -- either directly or through their group, often

Re: [PHP] Question about directory permissions

2011-03-21 Thread Curtis Maurand
Al wrote: I understand dir perms pretty well; but, have a question I can't readily find the answer to. Under a Linux system, scripts can't write, copy, etc. to other dirs unless the perms are set for writable for the script e.g., nobody. But, is there a way a script can write or copy

[PHP] question about preventing polling for more than once

2010-11-12 Thread 肖晗
I noticed that some websites such as polldaddyhttp://polldaddy.com/account/home.php has fascinating poll service. And I am just curious about how it prevents user from polling the same poll for more than once. Or more accurately, I am a dynamic IP user. And I found that if I have polled once for a

Re: [PHP] question about preventing polling for more than once

2010-11-12 Thread a...@ashleysheridan.co.uk
Have you checked for any cookies left by that website? Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: 肖晗 xiaohan2...@gmail.com Date: Fri, Nov 12, 2010 15:14 Subject: [PHP] question about preventing polling for more than once To: php-general@lists.php.net I noticed

Re: [PHP] question about preventing polling for more than once

2010-11-12 Thread Andre Polykanine
@lists.php.net php-general@lists.php.net Date: Friday, November 12, 2010, 5:14:49 PM Subject: [PHP] question about preventing polling for more than once I noticed that some websites such as polldaddyhttp://polldaddy.com/account/home.php has fascinating poll service. And I am just curious about how

[PHP] PHP Question

2010-10-28 Thread Paulo Work
Hello my name is Paulo Carvalho and I am struggling with the following: I am building a website with basic CMS functionality. My problem is that in one of the pages I am using Easyslider to display small comments about the clients. These comments are divided in 3 per slide. ex:(li pcomment

Re: [PHP] PHP Question

2010-10-28 Thread Kevin Kinsey
Paulo Work wrote: Hello, Paulo! I am building a website with basic CMS functionality. My problem is that in one of the pages I am using Easyslider to display small comments about the clients. These comments are divided in 3 per slide. ex:(li pcomment 1/p pcomment 1/p pcomment 1/p /li) I am

Re: [PHP] PHP Question

2010-10-28 Thread Jim Lucas
Paulo Work wrote: Hello my name is Paulo Carvalho and I am struggling with the following: I am building a website with basic CMS functionality. My problem is that in one of the pages I am using Easyslider to display small comments about the clients. These comments are divided in 3 per

Re: [PHP] Question about news.php.net

2010-09-15 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that

Re: [PHP] Question about news.php.net

2010-09-14 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Sep 13, 2010 at 18:09, MikeB mpbr...@gmail.com wrote: However, getting access seems to be hit-and-miss, since I more often than not get a message that the connection to news.php.net timed out. Is this an indication that the server is just very busy? I don't get this

Re: [PHP] Question about news.php.net

2010-09-14 Thread Daniel Brown
Good to know there's a workaround. I am thinking of using one (or more) of the old VOOM boxes to mirror the news server for NNTP-only access. Sent from my DROID. Apologies if formatting is off or I'm top-posting on a list. On Sep 14, 2010 8:59 PM, Nathan Rixham nrix...@gmail.com wrote: Daniel

[PHP] Question about news.php.net

2010-09-13 Thread MikeB
If there is a more appropriate place to ask this, I apologize. Please point me in the right direction. I understand that the news server is based on a mailing list, but I can't handle another high-volume source dumping stuff into my email (even if I filter it into a separate folder) so I am

Re: [PHP] Question about news.php.net

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 18:09, MikeB mpbr...@gmail.com wrote: However, getting access seems to be hit-and-miss, since I more often than not get a message that the connection to news.php.net timed out. Is this an indication that the server is just very busy? I don't get this on any other news

Re: [PHP] Question about news.php.net

2010-09-13 Thread MikeB
Daniel Brown wrote: I don't believe that we've been having any issues with the server, no. Are you using NNTP to connect? yes, NNTP. You may want to consider using the HTTP-based RSS and/or RDF feeds if it continues to be an issue. If this persists, I'll look into the alternatives

Re: [PHP] Question about news.php.net

2010-09-13 Thread Daniel Brown
On Mon, Sep 13, 2010 at 19:51, MikeB mpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that it's a priority, but

Re: [PHP] Question about news.php.net

2010-09-13 Thread Shawn McKenzie
On 09/13/2010 06:51 PM, MikeB wrote: Daniel Brown wrote: I don't believe that we've been having any issues with the server, no. Are you using NNTP to connect? yes, NNTP. You may want to consider using the HTTP-based RSS and/or RDF feeds if it continues to be an issue. If this

Re: [PHP] Question about news.php.net

2010-09-13 Thread MikeB
Daniel Brown wrote: On Mon, Sep 13, 2010 at 19:51, MikeBmpbr...@gmail.com wrote: As part of the bug report I included a link to an image of my nntp config. I saw that, thanks. I'll look into creating a mirror of the news server, as well, for NNTP-only access. I won't lie and say that

[PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
I'm working on creating a compiled extension for some code I've written. Mostly it's manipulating a very large multi-demensional array of values. This is some pseudo code for the array. // Imagine this but much much bigger $big_ass_array = array('5' = array('0' = 4, '3' = 6, '8' = 7), '10' =

Re: [PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Jim Lucas
Joshua Kehn wrote: I'm working on creating a compiled extension for some code I've written. Mostly it's manipulating a very large multi-demensional array of values. This is some pseudo code for the array. // Imagine this but much much bigger $big_ass_array = array('5' = array('0' = 4, '3' =

Re: [PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
Jim- Yes, that was a typo. The issues was I didn't cut / paste and instead retyped it. Should be foreach($array as $key1 = $list) { foreach($list as $key2 = $value) I will check those links out, I had the first one not the second. Regards, -Josh

RE: [PHP] question about compiling a portable web server for linux

2010-08-09 Thread Bob McConnell
From: Ashley Sheridan On Sat, 2010-08-07 at 10:43 +0800, lainme wrote: thanks for the reply. I know it is not a PHP problem. And I want to know whether it is possible to make it architecture independent. On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote:

[PHP] question about compiling a portable web server for linux

2010-08-06 Thread lainme
Hi, I recently compiled a portable portable web server for linux, using lighttpd and php. But it seems that php can only run on machine with the same glibc version compiled it. How can I solve the problem?

Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread Ashley Sheridan
On Sat, 2010-08-07 at 10:22 +0800, lainme wrote: Hi, I recently compiled a portable portable web server for linux, using lighttpd and php. But it seems that php can only run on machine with the same glibc version compiled it. How can I solve the problem? It's not a PHP problem. If you

Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread lainme
thanks for the reply. I know it is not a PHP problem. And I want to know whether it is possible to make it architecture independent. On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2010-08-07 at 10:22 +0800, lainme wrote: Hi, I recently compiled a

Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread Ashley Sheridan
On Sat, 2010-08-07 at 10:43 +0800, lainme wrote: thanks for the reply. I know it is not a PHP problem. And I want to know whether it is possible to make it architecture independent. On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2010-08-07 at

RE: [PHP] Question about SQL and Graph nodel trees

2010-07-22 Thread Tommy Pham
-Original Message- From: Tim Gallagher [mailto:tgallag...@danati.com] Sent: Wednesday, July 21, 2010 12:49 PM To: Andrew Ballard Cc: php-general@lists.php.net Subject: RE: [PHP] Question about SQL and Graph nodel trees Thank you for the informaiton. I did see that code

[PHP] Question about SQL and Graph nodel trees

2010-07-21 Thread Tim Gallagher
I cannot be the only one that is having this problem, what are you using for DAG (Direct Acrylic Graph)? I need to have a mesh node edge graph and am having trouble with this? I see that Neo4j has a rest server and I can do this in Java but I want to do it in PHP with a MYSQL or postgresql.

Re: [PHP] Question about SQL and Graph nodel trees

2010-07-21 Thread Andrew Ballard
On Wed, Jul 21, 2010 at 11:04 AM, Tim Gallagher tgallag...@danati.com wrote: I cannot be the only one that is having this problem, what are you using for DAG (Direct Acrylic Graph)?  I need to have a mesh node edge graph and am having trouble with this?  I see that Neo4j has a rest server and

RE: [PHP] Question about SQL and Graph nodel trees

2010-07-21 Thread Tim Gallagher
-general@lists.php.net Subject: Re: [PHP] Question about SQL and Graph nodel trees On Wed, Jul 21, 2010 at 11:04 AM, Tim Gallagher tgallag...@danati.com wrote: I cannot be the only one that is having this problem, what are you using for DAG (Direct Acrylic Graph)? I need to have a mesh node edge

[PHP] Re: PHP question

2010-07-13 Thread Richard Quadling
On 13 July 2010 15:46, Joey Hendricks j.hendrick...@comcast.net wrote: Hi Mr. Quadling,  Thank you for the reply. I still don't understand how to get all the emails into the function. Before I put in the function I had something like this- for($i=0; $i=9; $i++) { if(!empty($_GET[email.$i]))

Re: [PHP] Question about the Board

2010-07-06 Thread Gary .
On 7/5/10, Gary[1] wrote: The last few times I have posted to the board, I recieved an email, which has the subject line of ??? ??? and is written in what appears to be greek Ukrainian or Russian I would guess, looking at the headers. Anyone else have this happen? Yes. Either some

Re: [PHP] Question about the Board

2010-07-06 Thread Ashley Sheridan
On Tue, 2010-07-06 at 11:00 +0200, Gary . wrote: On 7/5/10, Gary[1] wrote: The last few times I have posted to the board, I recieved an email, which has the subject line of ??? ??? and is written in what appears to be greek Ukrainian or Russian I would guess, looking at the

Re: [PHP] Question about the Board

2010-07-06 Thread Gary .
On 7/6/10, Ashley Sheridan wrote: I have had a couple such emails, requesting me to log in somewhere in order to have my address 'validated' as non-spam, but I ignored it and nothing bad has happened to me yet! Not yet. *hides cattle prod behind back* -- PHP General Mailing List

[PHP] Question about the Board

2010-07-05 Thread Gary
The last few times I have posted to the board, I recieved an email, which has the subject line of ??? ??? and is written in what appears to be greek, then english then seemingly some arabic language. It tells me that it has recieved an email from me that it suspects is spam and it has

RE: [PHP] Question about logins and locking

2010-06-23 Thread Tommy Pham
-Original Message- From: James Colannino [mailto:ja...@colannino.org] Sent: Tuesday, June 22, 2010 10:06 PM To: PHP-General List Subject: Re: [PHP] Question about logins and locking Tommy Pham wrote: 1) Set an encrypted (to prevent hijacking and eavesdropping) cookie

Re: [PHP] Question about logins and locking

2010-06-23 Thread Richard Quadling
On 23 June 2010 07:44, Tommy Pham tommy...@gmail.com wrote: -Original Message- From: James Colannino [mailto:ja...@colannino.org] Sent: Tuesday, June 22, 2010 10:06 PM To: PHP-General List Subject: Re: [PHP] Question about logins and locking Tommy Pham wrote: 1) Set an encrypted

[PHP] Question about logins and locking

2010-06-22 Thread James Colannino
Hey everyone, I have a question about logins. Let's say that I want to allow each user account to login only once at a time. I would then need some kind of locking mechanism to make sure that the same user can't login again somewhere else until first logging off. What's a good way to achieve

RE: [PHP] Question about logins and locking

2010-06-22 Thread Tommy Pham
-Original Message- From: James Colannino [mailto:ja...@colannino.org] Sent: Tuesday, June 22, 2010 2:29 PM To: php-general@lists.php.net Subject: [PHP] Question about logins and locking Hey everyone, I have a question about logins. Let's say that I want to allow each user

Re: [PHP] Question about logins and locking

2010-06-22 Thread James Colannino
Tommy Pham wrote: 1) Set an encrypted (to prevent hijacking and eavesdropping) cookie to expire when browser closes 2) Have a table in the DB backend to keep track if the user is logged in or not and when was the last time the validated user access your site (this gets updated when the user

Re: [PHP] Question - foreach.

2010-06-11 Thread tedd
At 3:46 PM -0400 6/10/10, Paul M Foster wrote: On Thu, Jun 10, 2010 at 11:16:08AM -0400, tedd wrote: I spend much of my time thinking Did I do that before? grin I know the feeling. I will say this, though. I have yet to figure out, from your URLs, how your site(s) is/are organized. Maybe a

Re: [PHP] Question - foreach.

2010-06-10 Thread tedd
At 7:19 AM +0530 6/10/10, Shreyas wrote: PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don't need to reset an array before walking through it with foreach.'* *

Re: [PHP] Question - foreach.

2010-06-10 Thread Paul M Foster
On Thu, Jun 10, 2010 at 07:03:28AM -0400, tedd wrote: At 7:19 AM +0530 6/10/10, Shreyas wrote: PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don't need to

Re: [PHP] Question - foreach.

2010-06-10 Thread Shreyas
All, I tried and tested it but wanted a solid confirmation on it. I felt foreach usage is better than manual way of next(), prev() et al. Thanks for the comments. I consider the thread answered and solved unless someone has anything more to add. Regards, Shreyas On Thu, Jun 10, 2010 at 7:02

Re: [PHP] Question - foreach.

2010-06-10 Thread tedd
At 9:32 AM -0400 6/10/10, Paul M Foster wrote: On Thu, Jun 10, 2010 at 07:03:28AM -0400, tedd wrote: This is one of those questions that you can test very easily, just initialize an array and try it. +1 This is Tedd's modus operandi. His website(s) are full of exactly this type of thing.

Re: [PHP] Question - foreach.

2010-06-10 Thread Paul M Foster
On Thu, Jun 10, 2010 at 11:16:08AM -0400, tedd wrote: At 9:32 AM -0400 6/10/10, Paul M Foster wrote: On Thu, Jun 10, 2010 at 07:03:28AM -0400, tedd wrote: This is one of those questions that you can test very easily, just initialize an array and try it. +1 This is Tedd's modus

RE: [PHP] Question - foreach.

2010-06-10 Thread Bob McConnell
From: Paul M Foster On Thu, Jun 10, 2010 at 11:16:08AM -0400, tedd wrote: At 9:32 AM -0400 6/10/10, Paul M Foster wrote: On Thu, Jun 10, 2010 at 07:03:28AM -0400, tedd wrote: Paul: Now, if I could get the old memory to lock in and remember it, it would be great! I spend much of my

Re: [PHP] Question - foreach.

2010-06-10 Thread David McGlone
On Thursday 10 June 2010 11:16:08 tedd wrote: At 9:32 AM -0400 6/10/10, Paul M Foster wrote: On Thu, Jun 10, 2010 at 07:03:28AM -0400, tedd wrote: This is one of those questions that you can test very easily, just initialize an array and try it. +1 This is Tedd's modus operandi.

[PHP] Question - foreach.

2010-06-09 Thread Shreyas
PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don’t need to reset an array before walking through it with foreach.'* * * *Does this mean - * *1) Before I

Re: [PHP] Question - foreach.

2010-06-09 Thread Adam Richardson
On Wed, Jun 9, 2010 at 9:49 PM, Shreyas shreya...@gmail.com wrote: PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don’t need to reset an array before

Re: [PHP] Question - foreach.

2010-06-09 Thread Jim Lucas
Shreyas wrote: PHP'ers, I am reading a PHP book which explains foreach and at the end says : *'When foreach starts walking through an array, it moves the pointer to the beginning of the array. You don’t need to reset an array before walking through it with foreach.'* * * *Does this mean - * *1)

  1   2   3   4   5   6   7   8   9   10   >