Then perpahps it would be better to approach this problem from an alternative angle.
Thanks for the advice....
User Profile
Collapse
-
Lol, yes I realise that the index in $class_name,
but this is only as far as the example is concerned.
What I want to know is if its possible to programatically determine exactly which array solt the object sitting in?
In the real problem class, the structure is more like :
So I would need to find out the set reference in...Code:$object_store[$set_reference][$class_name] = Object of $class_name;
Leave a comment:
-
Thanks for the reply,
yes I need to find the location in the array where the object is stored.
Do you recommend that interfaces will still solve the problem?...Leave a comment:
-
Locating an object
Hi everybody,
I would like to find out the location in the array where I have store an object.
I have the following code as example:
...Code:<?php class test{ public static $object_store = array(); public function start_object($class_name){ self::$object_store[$class_name] = new $class_name; return self::$object_store[$class_name]; -
Funny you should mention debugging, because the idea was to introduce a facade pattern for better debugging from the built-in debugger.
The current workaround I have is a bit messy and doesnt do this debugger too many favours.
I've done some research and it seems the only clean way of doing this is to do a chain extend (a extends b, c extends b etc).
But this approach seems very ineffictive as I would also like to reduce...Leave a comment:
-
Replicating class functions
Hi guys,
I would like to create a class that "assimilate s" functions from other classes and uses these function as if were defined within itself.
The objective of this little excersise is that I would be able to "extend" multiple classes and would be able to call functions from a single object.
Anyone have any ideas? -
Php is the program that interprets your code and sends the output to the Http server, in your case, Apache, in in-turns sends it to the browser for display.
Here is a good tutorial about how to install and configure PHP and Apache on Windows:
http://www.thesitewizard.com/php/ins...-windows.shtml...Leave a comment:
-
I've used custom attributes in some pages, thanks to HTMLs forgiving nature and they've proven invaluable in many places.
If you use jQuery for example, the HTML elements can be fetched by custom attributes, making the code very clean and flexible :)Leave a comment:
-
Normally the file would be sent to the server via a POST method, which you can retrieve using a server side language such as PHP.
See this post on how to process uploadsLeave a comment:
-
I don't know of any other options than to use either a standard or static propertyLeave a comment:
-
Hi, this looks like a problem with your http server set up, not the actual php code.
First and foremost, I need to ask:
1) do you actually have php installed on your computer?
2) do you have a Http server such as Apach or IIS installed on your computer?
3) if so, is the Http server configured properly so that it handles php pages correctly?Leave a comment:
-
-
Retrieve HTML array created from a list box
Hey folks, I was expecting an array to be returned with the following code for a multi-select dropdown list but I get single values. Can anyone help?
...Code:<?php if(isset($_POST['submit'])){ print_r($_POST); } ?> <form method='post' > <select name="time" size=3 multiple> -
Thanks for the insight ACODER. I have modified the code so that instead of creating an INPUT element, we create a DIV element. Then we just write the INPUT code in the innerHTML of the DIV element and append to child node array of the container element. That way we can solve the issue of IE7 not being able to set onChange attribute as well as the name attribute.
Thanks for your help
New code:
...Code:<script type="text/javascript"
Leave a comment:
-
IE7 does not create additional fields
The code below adds a file field only if no other file field is empty.
The code works as expected in FF and Opera. However in IE7, it will only create one additional field.
Can anyone explain why IE7 refuses to create any more fields?
...Code:<script type="text/javascript" language="javascript"> //initialises the container function init() { -
Disabling mouse-over text
I would like to disbale the link address showing when mouse is pointed over a URL link.
Is this possible? -
Try enclosing the sub-variable in squigly brackets:
[code=php]echo($$var_data _name."<br />"); // prints: {nothing}[/code]
becomes
[PHP]echo(${$var_dat a_name}."<br />"); [/PHP]Leave a comment:
-
Searching blob
is it possible to search through blob data similar to full text searches? -
Yes, that was evident from your first post but what I'm trying to find out is why you want to count the hits. Perhaps there are alternative solutions to your problem than counting hits?...Leave a comment:
-
To my knowledge, its not possible with any server side languages. However, you may be able to find a solution using Javascripts.
RegardsLeave a comment:
No activity results to display
Show More
Leave a comment: