RE: [PHP] Quick organizational question...

2007-02-16 Thread Peter Lauri
Hi, No matter the size of a project using includes and config files are always a good way to go. In the include file I would (as it states) include all main files that are common for all pages. Such as a DB class (if common), template classes, etc. In the config file (or you can call it define f

[PHP] easynav breaks my page

2007-02-16 Thread Ross
I am using the easynav class. I include it like this without it in my page validates 0 errors 0 warnings and dispalys fine, however when I stick it in I get a few missing div errors and the page breaks. It would be a shame not to use it as it is a great script. Does the script add any div t

[PHP] Unable to compile php 5.2.1 on Intel Macbook

2007-02-16 Thread Tim Visher
Hello all, I can't compile php 5.2.1. I don't exactly know where the error starts or begins so I'm just going to post the whole thing: gcc -I/usr/include -g -O2 -L/usr/local/mysql/lib -L/usr/local/mysql/lib ext/libxml/libxml.o ext/pcre/pcrelib/pcre_chartables.o ext/pcre/pcrelib/pcre_ucp_searc

[PHP] Quick organizational question...

2007-02-16 Thread Mike Shanley
Hi! Question: For a website that will have a database driven store, articles, an rss feed, and a few other things... not an enormous site, but one with growth potential, does it makes sense to organize the whole thing as includes through a single main page? It seems like a fun way to do thing

[PHP] reverse http authentication

2007-02-16 Thread Chris W
I want to read a page that is protected with http authentication. How do I pass the user name and password to be authenticated with my php code? -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; Gift Givi

Re: [PHP] Session problems with 4.4.5?

2007-02-16 Thread Jochem Maas
Ken Williams wrote: > Is anyone else having problems with session in 4.4.5? I'm under apache > 1.3.27 in linux 2.4.34 and all my web sites break under 4.4.5. As soon as a > page tries to register a session variable with session_register apache will > segfault. Has worked perfectly fine for th

Re: [PHP] plugging gmmktime value into gmdate yields incorrect date

2007-02-16 Thread Terra Frost
Jim Lucas wrote: Brad Fuller wrote: -Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 3:48 PM To: 'Terra Frost'; 'Peter Lauri' Cc: php-general@lists.php.net Subject: RE: [PHP] plugging gmmktime value into gmdate yields incorrect date -

[PHP] Re: Session Problem

2007-02-16 Thread datsclark
Also, make sure the session's are being saved properly. I had this same problem when PHP wasn't able to write to the temp directory. You can set up your own sessions dir with session.save_path in php.ini ""LoneWolf"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am having a p

[PHP] Re: array_pop() with key-value pair ???

2007-02-16 Thread Eli
Mikey wrote: I guess you have tried foreach? foreach ($array as $key => $value) { ... } No.. loop should not be necessary when you want to take only the first or the last element in the array. Better using array_pop() array_shift() reset() end() and each() functions for better run times.

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Eli
Robin Vickery wrote: On 16/02/07, Eli <[EMAIL PROTECTED]> wrote: Hi, Why isn't there a function that acts like array_pop() returns a pair of key-value rather than the value only ? Reason is, that in order to pop the key-value pair, you do: 1,'b'=>2,'c'=>3,'d'=>4); $arr_keys = array_keys($arr);

Re: [PHP] Problem Directing the Page with header

2007-02-16 Thread Martin Marques
On Thu, 15 Feb 2007, Ashish Rizal wrote: You need to put a session_commit(); here, so session gets writen. header("Location: $adminAddress"); exit(); } -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. M

Re: [PHP] Text Editor for Windows?

2007-02-16 Thread Sady Marcos
PDT - PHP Eclipse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Németh Zoltán
2007. 02. 16, péntek keltezéssel 10.47-kor Robin Vickery ezt írta: > On 16/02/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: > > 2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta: > > > On 16/02/07, Eli <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > > > Why isn't there a function

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Robin Vickery
On 16/02/07, Németh Zoltán <[EMAIL PROTECTED]> wrote: 2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta: > On 16/02/07, Eli <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Why isn't there a function that acts like array_pop() returns a pair of > > key-value rather than the value only ?

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Németh Zoltán
2007. 02. 16, péntek keltezéssel 10.23-kor Robin Vickery ezt írta: > On 16/02/07, Eli <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Why isn't there a function that acts like array_pop() returns a pair of > > key-value rather than the value only ? > > > > Reason is, that in order to pop the key-value p

Re: [PHP] array_pop() with key-value pair ???

2007-02-16 Thread Robin Vickery
On 16/02/07, Eli <[EMAIL PROTECTED]> wrote: Hi, Why isn't there a function that acts like array_pop() returns a pair of key-value rather than the value only ? Reason is, that in order to pop the key-value pair, you do: 1,'b'=>2,'c'=>3,'d'=>4); $arr_keys = array_keys($arr); $key = array_pop($arr

Re: [PHP] Problem with Redirect

2007-02-16 Thread David Blanco
Hi! Ashish Rizal escribió: > Hi friends, I am having problem with following code. > I have actually made the whole code on same page (login.php) and > the functions that i used in > this code are in functions.php. Now this time it is showing the > warning : > Warning: Cannot modify header informa

[PHP] Re: array_pop() with key-value pair ???

2007-02-16 Thread Mikey
I guess you have tried foreach? foreach ($array as $key => $value) { ... } Mikey Eli wrote: More over.. PHP seems to be quiet slow when dealing with array_shift() array_unshift(), but it is much faster with array_pop() array_push(). I am not familiar with the PHP internals, but why n

[PHP] Detecting user_abort when using ob_start().

2007-02-16 Thread Mathijs
Hello there, I have a script which is called using ajax. This script can take a while executing. Now it sometimes happens that a user aborts a connection, like stop the ajax request. This won't stop the php script from executing. Now i need some way to detect if the user has stoped/aborted th

Re: [PHP] Problem Directing the Page with header

2007-02-16 Thread Németh Zoltán
2007. 02. 15, csütörtök keltezéssel 18.41-kor Ashish Rizal ezt írta: > Hey Jim, > Thanks for the quick response. I have actually made the whole > code on same page (login.php) and the functions that i used in > this code are in functions.php. Now this time it is showing the > warning : > Warning: C