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: Cannot
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
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
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 information
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:
?php
$arr = array('a'=1,'b'=2,'c'=3,'d'=4);
$arr_keys = array_keys($arr);
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 pair, you do:
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 ?
Reason
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 that acts like
PDT - PHP Eclipse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 15 Feb 2007, Ashish Rizal wrote:
?php
session_start();
require_once 'functions.php';
$UserName = $_POST['UserName'];
$Password = $_POST['Password'];
$error = login_check($_POST);
$adminAddress = getAbsolutePath().'adminlogin.php';
$userAddress = getAbsolutePath().'userlogin.php';
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:
?php
$arr = array('a'=1,'b'=2,'c'=3,'d'=4);
$arr_keys =
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.
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 problem
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
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 the
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
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
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
I am using the easynav class. I include it like this
?php include('../classes/easynav.php');? 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
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
20 matches
Mail list logo