s are problematic, leaving us with POSTs only. But
> POSTING to every page is a pain.
>
> Is there any other way?
>
>
> >-Original Message-
> >From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> >Sent: 04 March 2002 15:28
> >To: Neil Kimber; [EMAIL PROTECTED
s are problematic, leaving us with POSTs only. But
POSTING to every page is a pain.
Is there any other way?
> -Original Message-
> From: Dennis Moore [mailto:[EMAIL PROTECTED]]
> Sent: 04 March 2002 15:28
> To: Neil Kimber; [EMAIL PROTECTED]
> Subject: Re: [PHP] Multiple brows
We have an application framework that tidies up application session
variables as you traverse from page to page. It works really nicely - until
a user opens up 2 instances of a browser. Our code cannot distinguish
between different browser instances, so browser instance 2 causes our
application se
There is no native PHP function for getting a stack trace. This has been
discussed many times on the PHP-DEV mailing list. It has always been
discarded due to an unacceptable overhead that would be introduced into the
parsing process.
I'm not sure if any decision has been made with respect to the
You should probably consider ASP.NET. Visual Studio .NET is out in early Feb
and ASP.NET makes an enormous leap in functionality. It should almost be
considered a new web development environment.
It allows development in any CLR compliant language (straight VB.NET, C#,
managed C++ etc..)
It cleanl
BTW, the official explanation is wrong.
"local part this variable is destroyed and declared again"
is incorrect. The global variable is not destroyed. The local namespace
pushes the variable name onto the stack and gives it a value for the
duration of the function. Every time you try and access
Private variables will be included in Zend 2.0 (99% likely)
>From what I've seen private functions will not be included.
Protected (ala Java/C#) variables and functions aren't being considered yet.
> -Original Message-
> From: Jason Stechschulte [mailto:[EMAIL PROTECTED]]
> Sent: 19 Sept
No! This won't work. There are two ways in which you can get an overridden
method to call the method in its super-class, these are by using the
following constructs:
1) parent::
2) ::
So, you could do the following:
1)
class B extends A {
function something() {
/
Not sure I fully understand you. I'm assuming that you mean that you prefix
each member method with a particular string that relates to the class.
By doing this you lose a key strength of OOP. Namely the ability to write
polymorphic code.
In effect, you would not be able to do the following:
cla
Not sure about your code, but what you describe is perfectly faesible in
PHP.
If you are setting values in one part of your code and cannot see these
values in another part of your code then I would suggest that you have
reference problem somewhere. The code you provided looks fine, maybe the
prob
Reference counting works in the following way.
Normally, if you assign an identifier to the value of an instantiated object
then the parser will create a copy of that object. That is, the parser will
allocate a physical chunk of memory of the relevant size and copy the memory
contents of the origi
We've built a framework that gets around this, without using HIDDEN form
fields. It's quite complex so I'll give a high level description, it should
give you some ideas. Our framework works on the basis that every page
consists of a single form that submits to itself (same URL). All page/form
elem
Dump to file as comma separated and then load into Excel. Excel reads comma
separated files. In the file open dialog you can select file type to be .txt
(csv).
If you want to be really sick then you can set up an ODBC connection to a
comma separated file and then use MSQuery inside Excel.
Anothe
Probably not exactly the answer that you're looking for, but you can do the
following. Output your data in PHP to a webpage that consists of purely a
table of your data. Open Excel, go to :
Data->Get External Data->New Web Query
Type in the URL for the page with your data.
Select which t
A good approach to prevent this is to always put your constants on the
lefthand side of the condition. This causes a parser error if you accidently
try and assign instead of compare. It takes a bit of getting used to, but
once you get into the swing of it you'll find it a useful tool in your
arsen
yes, as will:
Class C extends B{
function cc(){
$this->bb();// Will this work ? <-- YES
$this->aa();
}
}
-Original Message-
From: py [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 14:02
To: [EMAIL PROTECTED]
Subject: [PHP] class inheritance question
Hello,
Try:
function getStringFromObj($prmObjIn)
{
ob_start();
var_dump($prmObjIn);
$output = ob_get_contents();
ob_end_clean();
return $output;
}
I grabbed this from user comments somewhere on php.net. It works a treat.
-Original Message-
From: Chi
Heard whispers that it could be next week. Testing isn't over. They're on
the 6th release candidate.
-Original Message-
From: Dominique Paquin [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 19:54
To: [EMAIL PROTECTED]
Subject: [PHP] Release of PHP 4.05
Greetings!
Anyone knows when PHP
From: David VanHorn [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2001 17:59
To: Neil Kimber; Paulson, Joseph V. "Jay"; 'Stewart Taylor'; 'Brandon
Orther'; [EMAIL PROTECTED]
Subject: RE: [PHP] New buzz SOAP?
>
>This is going to be big because it is a very large
SOAP stands for Simple Object Access Protocol.
It's the XML version of RPC/RMI. It's actually a specification that
describes how interfaces from different systems can communicate with each
other. It's called an IDL (Interface Definition Language).
This is going to be big because it is a very larg
You need a 2 step approach.
1. extract the keys from your array into another array using array_keys()
2. check the result using in_array() to see if you key exists.
-Original Message-
From: Knut H. Hassel Nielsen [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2001 10:56
To: [EM
s by
reference makes script execution a little slower under PHP4.
--
Yasuo Ohgaki
""Neil Kimber"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Pass by reference itself is not deprecated, just call-time
> pass-by-refer
Pass by reference itself is not deprecated, just call-time
pass-by-reference.
I believe this means your calling line of code being prevented from
specifying that it should be invoked as pass-by-reference.
So,
function NormalPassByRefence(&$prmValue)
{
$prmValue ++;
}
$n
No.
You could pass the constant __LINE__ to your function, but I assume that you
want this feature to be generically available within all functions. If you
really want to be able to track your call-stack then you'd be better off
using a development environment like the Zend IDE and debugger.
Alter
You need another level of indirection. Try:
$constant_value = $$constant_name ;
-Original Message-
From: Geoff Caplan [mailto:[EMAIL PROTECTED]]
Sent: 27 March 2001 14:19
To: PHP General List
Subject: [PHP] Dynamic constant names
Hi folks
I am trying to create a constant name dynamic
Yep, you're right. But this actually makes sense. Parse errors mean that
your code is just plain wrong and cannot/will not run with any level of
error-reporting.
>From a technical stand-point it also makes a lot of sense. Imagine if the
parser fails 1/2 way through parsing code before it gets to
This is a big topic. I'll be brief.
This all depends upon your data structure. There are a couple of ways that
you can store information like this.
The classic (purist) method would be to have a table of the following type:
table_Tree
Node ID | Parent ID | Node Data
Alternatively, you can use the approach below. There are different benefits
from each approach. The following approach is particularly useful if you
want an unlimited number of parameters (like elipses in C).
function print_this ($value1, $value2)
{
if (3==func_num_args())
see
http://www.php.net/manual/en/function.get-class.php
-Original Message-
From: Thorsten Viel [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 17:33
To: [EMAIL PROTECTED]
Subject: [PHP] Objectclass
Hi,
first thanks for your help on my last thread.
Another question.
Is there a functio
lues of the $dbhost, $dbuser, $dbpass in the database.inc with just a
form.
Kinda tough eh ?
- Original Message -
From: "Neil Kimber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Stewart Taylor"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tu
If you don't want to dump this to the screen but would prefer to have this
in a string (to send to a log file etc..) then use the following function:
function getStringFromObject($prmAryIn)
{
// Following code was ripped from
http://www.php.net/manual/en/function.var-dump.php
// i
want to build a parser and
use some kind of templating system.
Neil
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 14:08
To: Neil Kimber; Stewart Taylor; [EMAIL PROTECTED]
Subject: Re: [PHP] Editing Variables from another script.
What other ways
Do you mean that you want to alter the physical contents of 'database.inc'?
This would require you parsing the existing file yourself, writing a new
version of the file, altering the relevant line of code, removing the
original file and renaming your new file to the original filename.
This isn't
Nothing unusual. Very robust and stable.
-Original Message-
From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2001 23:18
To: [EMAIL PROTECTED]
Subject: [PHP] PHP w/ Oracle OCI8 - how stable?
I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interface - is
The OCIFetchStatement() function returns a resultset to PHP that is actually
a multi-dimensional array. You can randomly access this array however you
like.
-Original Message-
From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]]
Sent: 19 March 2001 10:43
To: Andrew Halliday
Cc: [EMAIL PROTEC
Errrm, no easy solution. You should either find an SMS gateway connection that can
receive formatted emails, convert them and post them (at a charge to you), or go the
whole hog and get yourself a connection to an SMSC via http. I would suggest you
pursue the first approach as the second is onl
Is there anyway within PHP to get a complete dump of the call-stack? I can't
use the Zend debugger for technical reasons (awaiting bug fix before it will
work in our environment). I'd love to have a call that would return an array
of call stack info. to the current line.
Thanks,
Neil
--
define() gives you a literal copy of the value of the second parameter. In
this case your second parameter is __LINE__. The value of __LINE__
represents the current line number of the define statement. Once defined the
value assigned remains constant, irrespective of whether or not __LINE__
change
Better still - use the set_error_handler() to define an error handler that
will output your debug statement and create your dbug message using
trigger_error(). Your registered error_handler will automatically receive
line number, file name and some other useful parameters.
-Original Message-
I've got the Zend IDE and debugger up and running. But, the debugger isn't
picking up my 'Local Value' for the include path. It only seems to have the
'Master Value'.
Has anyone else experienced this? And more importantly, how do I get around
this problem.
--
PHP General Mailing List (http://w
I'm running on Windows 2000.
I've installed the JRE 1.3.
I've installed the IDE
I run the IDE
I get:
"Could not find the main class. Program will exit!"
As far as I can tell the following appear to be true:
There are no other installations of Java installed on the machine.
Rather than use die() why not use trigger_error() and have an error_handler
registered with the parser.
Firstly, create an error handler and register it - I use something like the
following:
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
$locStrMessage = $errfile . " " .
serialise it using serialize() - see under chapter 12 of the PHP manual
'Miscellaneous functions'
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 23 January 2001 12:42
To: PHP list
Subject: [PHP] passing arrays via forms ..
howdy again :)
does anybody knwo h
Two of the greatest benefits of OO design is polymorphism.
Polymorphism allows you to build complex systems in a simple manner. A
simple example that is easy to visualise would be considering a system that
draws different objects to a screen. Each object could be a vector image
(i.e. a list of po
44 matches
Mail list logo