User Profile

Collapse

Profile Sidebar

Collapse
aktar
aktar
Last Activity: Jul 28 '10, 01:36 PM
Joined: Jul 25 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aktar
    replied to Locating an object
    in PHP
    Then perpahps it would be better to approach this problem from an alternative angle.

    Thanks for the advice....
    See more | Go to post

    Leave a comment:


  • aktar
    replied to Locating an object
    in PHP
    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 :

    Code:
    $object_store[$set_reference][$class_name] = Object of $class_name;
    So I would need to find out the set reference in...
    See more | Go to post
    Last edited by aktar; Jul 28 '10, 01:27 PM. Reason: missed detail

    Leave a comment:


  • aktar
    replied to Locating an object
    in PHP
    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?...
    See more | Go to post

    Leave a comment:


  • aktar
    started a topic Locating an object
    in PHP

    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];
    ...
    See more | Go to post

  • aktar
    replied to Replicating class functions
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • aktar
    started a topic Replicating class functions
    in PHP

    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?
    See more | Go to post

  • aktar
    replied to PHP is not displaying any results in the browser
    in PHP
    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...
    See more | Go to post

    Leave a comment:


  • aktar
    replied to about using <label>
    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 :)
    See more | Go to post

    Leave a comment:


  • aktar
    replied to How Upload button works??
    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 uploads
    See more | Go to post

    Leave a comment:


  • aktar
    replied to array as “class constant”
    in PHP
    I don't know of any other options than to use either a standard or static property
    See more | Go to post

    Leave a comment:


  • aktar
    replied to PHP is not displaying any results in the browser
    in PHP
    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?
    See more | Go to post

    Leave a comment:


  • aktar
    replied to Retrieve HTML array created from a list box
    in PHP
    Aha! thank you very much. Great help
    See more | Go to post

    Leave a comment:


  • aktar
    started a topic Retrieve HTML array created from a list box
    in PHP

    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>
    ...
    See more | Go to post
    Last edited by Frinavale; Jan 18 '10, 06:36 PM. Reason: Moved from HTML to PHP.

  • aktar
    replied to IE7 does not create additional fields
    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"
    ...
    See more | Go to post

    Leave a comment:


  • aktar
    started a topic IE7 does not create additional fields

    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() {
    ...
    See more | Go to post

  • aktar
    started a topic Disabling mouse-over text

    Disabling mouse-over text

    I would like to disbale the link address showing when mouse is pointed over a URL link.

    Is this possible?
    See more | Go to post

  • aktar
    replied to Variables Variable Question
    in PHP
    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]
    See more | Go to post

    Leave a comment:


  • aktar
    started a topic Searching blob

    Searching blob

    is it possible to search through blob data similar to full text searches?
    See more | Go to post

  • aktar
    replied to Hit Counter on a button
    in PHP
    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?...
    See more | Go to post

    Leave a comment:


  • aktar
    replied to Website section grabber
    in PHP
    To my knowledge, its not possible with any server side languages. However, you may be able to find a solution using Javascripts.

    Regards
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...