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
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 browser instances
: Dennis Moore [mailto:[EMAIL PROTECTED]]
Sent: 04 March 2002 15:28
To: Neil Kimber; [EMAIL PROTECTED]
Subject: Re: [PHP] Multiple browser instances - is it possible to
determine which browser?
You may consider the use of Javascript to control the parent and child
windows and frames of your
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
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
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:
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
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
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.
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
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
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:
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
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
]]
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 part of the new
Microsoft
.NET strategy. In essence it will enabl
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-reference.
I believe this means you
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:
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 ++;
}
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.
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
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
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
ge-
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 might there be ?
- Original Message -
From: "Neil Kimber" [EMAIL P
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
//
you don't
have to worry about parsing files etc... Just delete the existing
varsdatabase.inc and build a new one from scratch. It's no longer difficult
because it's only 3 lines long.
$dbhost='localhost';
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 20 Ma
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
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
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
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
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
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__
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
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
38 matches
Mail list logo