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
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
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
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
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
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
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
-
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
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.
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);
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
PDT - PHP Eclipse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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 ?
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
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
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
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
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
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
20 matches
Mail list logo