[PHP] Multiple browser instances - is it possible to determine which browser?

2002-03-04 Thread Neil Kimber
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

RE: [PHP] Multiple browser instances - is it possible to determine which browser?

2002-03-04 Thread Neil Kimber
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

RE: [PHP] Multiple browser instances - is it possible to determine which browser

2002-03-04 Thread Neil Kimber
: 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

RE: [PHP] Re: How to get a stacktrace? (was how to get a function backtrace)

2002-01-14 Thread Neil Kimber
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

RE: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Neil Kimber
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

RE: [PHP] Variable definitions...

2001-11-13 Thread Neil Kimber
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

RE: [PHP] Protecting variables and functions? Like C#

2001-09-19 Thread Neil Kimber
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

RE: [PHP] I need everyones opinon!

2001-08-09 Thread Neil Kimber
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:

RE: [PHP] oop thingie

2001-07-20 Thread Neil Kimber
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

RE: [PHP] How is the management of memory by PHP?

2001-07-18 Thread Neil Kimber
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

RE: [PHP] Export to Excel

2001-07-13 Thread Neil Kimber
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.

RE: [PHP] Excel

2001-05-24 Thread Neil Kimber
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

RE: [PHP] Little question

2001-05-09 Thread Neil Kimber
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

RE: [PHP] class inheritance question

2001-05-08 Thread Neil Kimber
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,

RE: [PHP] print_r style array content

2001-04-18 Thread Neil Kimber
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:

RE: [PHP] Release of PHP 4.05

2001-04-05 Thread Neil Kimber
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

RE: [PHP] New buzz SOAP?

2001-04-03 Thread Neil Kimber
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

RE: [PHP] New buzz SOAP?

2001-04-03 Thread Neil Kimber
]] 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

RE: [PHP] Passing by reference deprecated?

2001-03-30 Thread Neil Kimber
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

RE: [PHP] Arrays : Key in Array, True/False

2001-03-30 Thread Neil Kimber
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:

RE: [PHP] Passing by reference deprecated?

2001-03-29 Thread Neil Kimber
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 ++; }

RE: [PHP] Is there way how to get line number from which function was called ???

2001-03-28 Thread Neil Kimber
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.

RE: [PHP] Dynamic constant names

2001-03-27 Thread Neil Kimber
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

RE: [PHP] Creating tree using table?

2001-03-23 Thread Neil Kimber
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

RE: [PHP] Editing Variables from another script.

2001-03-20 Thread Neil Kimber
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

RE: [PHP] Editing Variables from another script.

2001-03-20 Thread Neil Kimber
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

RE: [PHP] Easy Object Reading

2001-03-20 Thread Neil Kimber
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 //

RE: [PHP] Editing Variables from another script.

2001-03-20 Thread Neil Kimber
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

RE: [PHP] Objectclass

2001-03-20 Thread Neil Kimber
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

RE: [PHP] Can PHP for Oracle randomly access rows in a result set?

2001-03-19 Thread Neil Kimber
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

RE: [PHP] sending SMS messages via PHP

2001-03-07 Thread Neil Kimber
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

[PHP] Is it possible to get call stack information?

2001-03-05 Thread Neil Kimber
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

RE: [PHP] Caller's __LINE__

2001-02-28 Thread Neil Kimber
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

RE: [PHP] redefine constants

2001-02-28 Thread Neil Kimber
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__

[PHP] Zend debugger running across virtual servers

2001-02-19 Thread Neil Kimber
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

[PHP] Problems getting Zend IDE to run.

2001-02-01 Thread Neil Kimber
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.

RE: [PHP] when using die(), how can i get the line number that errored?

2001-01-30 Thread Neil Kimber
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 . " " .

RE: [PHP] passing arrays via forms ..

2001-01-23 Thread Neil Kimber
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