php-general Digest 14 Oct 2006 06:33:45 - Issue 4400
Topics (messages 243100 through 243122):
Re: Send process to background
243100 by: Richard Lynch
243105 by: Jon Anderson
243114 by: Ed Lazor
Re: Socket communications question
243101 by: Richard Lynch
php-general Digest 14 Oct 2006 20:25:45 - Issue 4401
Topics (messages 243123 through 243147):
Re: OOP slow -- am I an idiot?
243123 by: Tony Marston
243124 by: Tony Marston
243125 by: Tony Marston
243126 by: Tony Marston
Re: Windows ENV['_'] equivalent
On Friday 13 October 2006 20:18, Tony Di Croce wrote:
Is their a slick way of automatically serializing Objects to the session
when a script exit()'s and de-serialize them in session_start()?
It seems to me that object oriented PHP might actually be useful if I could
persist an object across
Stut [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Tony Marston wrote:
Stut [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
My general approach to designing a system is data-centric. I tend to
start by defining the database schema since getting that clear in my
Stut [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ed Lazor wrote:
On Oct 12, 2006, at 4:36 PM, Stut wrote:
If I then go on to create an admin interface for the users, I would
create another completely separate class called UserCollection to handle
more than one user. I may at
Ed Lazor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Oct 13, 2006, at 1:35 AM, Tony Marston wrote:
What a coincidence! That's exactly my approach, but I've taken it one
step
further. I always start with a properly normalised database which I can
then
import into my
Ed Lazor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Oct 13, 2006, at 1:54 AM, Stut wrote:
Youch!! Your implementation seems to be focused on development
efficiency rather than runtime efficience. In all but rare research
projects this is backwards for a web-based system.
Ed Lazor wrote:
On Oct 13, 2006, at 11:53 AM, Richard Lynch wrote:
In windows... There ain't nothing in phpinfo() that matches the
php.exe which I'm running...
How do you handle this?
Not a solution, but an idea... the dos chdir comand. Maybe you can run
it from within your script. It
Hi,
How can i code a class with a function that returns more than one value ?
Any help would be appreciated.
Warm Regards,
Deckard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 2006-10-14 at 11:06 +0100, Deckard wrote:
How can i code a class with a function that returns more than one value ?
1. return array();
2. return stdClass;
--Paul
All Email originating from UWC is covered by disclaimer
I have just run a phpinfo and ignore_user_abort is indeed defaulting to off.
It's a pretty heavy php-MySQL script. I noticed on scripts without the
MySQL interaction, the server can keep up much better with the forced
refreshes.
Are there any other liming settings I can change?
All the
Jon,
Thanks for the reply. Yes, ignore_abort is defaulting to off, as stated
in my other post. We have a Firebox III 1000 firewall on our external,
however this does not have any features like this. I will look into
iptables.
Thanks,
Ryan
--
Ryan Barclay
RBFTP Networks Ltd.
DDI: +44
It hasn't actually been attempted. However, if a couple of a users were
to hold the refresh, the page generation times would go up ridiculously
and clients would be waiting over 20sec for pages. As mentioned, it's a
very heavy php-mysql script with lots of queries.
Ryan
--
Ryan Barclay
# [EMAIL PROTECTED] / 2006-10-13 22:16:18 +0100:
A simple question I imagine, but I am wondering how I would combat DoS
attacks by users holding the REFRESH key on their browsers?
I have reproduced this error on a PHP-MYSQL website and when I hold the
REFRESH key on for a while, page gen
Hello,
Having used php for a while now and am fairly competent I was persuaded by a
collegue to look into asp.net. I decided to download the free trial of
VS2005 and start with a few tutorials.
I am very suprised how easy things like user auhtentication and form
validation is. Literally in
# [EMAIL PROTECTED] / 2006-10-14 13:52:50 +0100:
Having used php for a while now and am fairly competent I was persuaded by a
collegue to look into asp.net. I decided to download the free trial of
VS2005 and start with a few tutorials.
I am very suprised how easy things like user
# [EMAIL PROTECTED] / 2006-10-14 16:53:34 +:
# [EMAIL PROTECTED] / 2006-10-14 13:52:50 +0100:
-What influences your decision when using either ASP, .NET, or PHP
License.
Scratch that, TCO is it. License is a mere contributor to TCO.
--
How many Vietnam vets does it take to
Hello,
Sorry for the newbie question :(
I have this class named returnConfigParams that returns an array
called $values through a function called getMySQLParams().
My question is how to retrieve the values of the array from the file
that calls the class.
I have:
$params_file = New
# [EMAIL PROTECTED] / 2006-10-14 15:55:57 +0100:
Hello,
Sorry for the newbie question :(
I have this class named returnConfigParams that returns an array
called $values through a function called getMySQLParams().
My question is how to retrieve the values of the array from the file
that
Hello,
I have this class named returnConfigParams that returns an array
called $values through a function called getMySQLParams().
My question is how to retrieve the values of the array from the file
that calls the class.
I have:
$params_file = New returnConfigParams;
# [EMAIL PROTECTED] / 2006-10-14 16:28:57 +0100:
Hello,
I have this class named returnConfigParams that returns an array
called $values through a function called getMySQLParams().
My question is how to retrieve the values of the array from the file
that calls the class.
I have:
Hello,
Just like you'd access members of any other array.
$whatever = $params_file-getMySQLParams();
print($whatever[0]);
This is a matter of basic rules of the language. Did you know
most of the grammer is described in the manual?
Sure, i already tried that, but it
# [EMAIL PROTECTED] / 2006-10-14 16:42:37 +0100:
Just like you'd access members of any other array.
$whatever = $params_file-getMySQLParams();
print($whatever[0]);
This is a matter of basic rules of the language. Did you know
most of the grammer is described in
Of course, the cost of serialization and deserialization is non-
trivial for
any data structure that is of interesting size, and you have to
keep in mind
that if you aren't syncing to the database periodically then you
will end up
with stale data objects. (An issue in any case, but the
On Oct 14, 2006, at 2:09 AM, Stut wrote:
Unfortunately there's no guarantee that a) the working directory
will be where the PHP binary is, or b) that the binary is called
php.exe.
Richard: AFAIK there is no way to know this under windows without
writing an extension to tell you.
-Stut
On 10/14/06, Ross [EMAIL PROTECTED] wrote:
Hello,
Having used php for a while now and am fairly competent I was persuaded by
a
collegue to look into asp.net. I decided to download the free trial of
VS2005 and start with a few tutorials.
I am very suprised how easy things like user
On Oct 14, 2006, at 4:05 AM, Ryan Barclay wrote:
It hasn't actually been attempted. However, if a couple of a users
were to hold the refresh, the page generation times would go up
ridiculously and clients would be waiting over 20sec for pages. As
mentioned, it's a very heavy php-mysql
I agree with Roman and Rory's comments, but I figure I might be able
to add something, so here goes...
On Oct 14, 2006, at 5:52 AM, Ross wrote:
I am very suprised how easy things like user auhtentication and form
validation is. Literally in minutes. Even though I have written a
similar
I'm trying to understand these regular expressions, but I can't make them
work...
All I want to do, is to find the first occurrence of some text inside the
HTML tags h1 and /h1.
Example string: pOctober 14, 2006/ph1Welcome to my
homepage/h1pWe're happy to announce.../p
must return:
Welcome to
On Saturday 14 October 2006 11:02, Ed Lazor wrote:
Of course, the cost of serialization and deserialization is non-
trivial for
any data structure that is of interesting size, and you have to
keep in mind
that if you aren't syncing to the database periodically then you
will end up
This one time, at band camp, Roman Neuhauser wrote:
BTW, here is my class:
class returnConfigParams
{
var $a;
var $b;
var $c;
var $d;
function getMySQLParams()
{
include($_SERVER['DOCUMENT_ROOT']./properties.php);
$values = array(0 = $a, 1 = $b, 2 = $c, 3 =
On Oct 14, 2006, at 10:00 AM, Tony Di Croce wrote:
I think that the cost of de-serializing a session stored in files
should be significantly LESS than the cost of doing so through a
database, for the following reasons:
1) The db will need to parse querys. Not an issue for files.
2) The
On Sat, 14 Oct 2006 23:19:13 +0200, Morten Twellmann [EMAIL PROTECTED]
wrote:
I'm trying to understand these regular expressions, but I can't make them
work...
All I want to do, is to find the first occurrence of some text inside the
HTML tags h1 and /h1.
Example string: pOctober 14,
Hello everyone.
Firstly my apology for the off topic.
I'm a PHP professional since 2000's.
In a quite near future i'm interested in have a professional interchange in
a foreign country and i'm here to ask you for any information about it.
Thanks a lot.
--
PHP General Mailing List
Hello,
I've rewritten my class as you told me:
--
class returnConfigParams
{
private static $instance = NULL;
var $a;
var $b;
var $c;
var $d;
private function __construct() {
}
// function that get the database
On Saturday 14 October 2006 19:09, AR wrote:
Hello,
I've rewritten my class as you told me:
--
class returnConfigParams
{
private static $instance = NULL;
var $a;
var $b;
var $c;
var $d;
private function
36 matches
Mail list logo