Jump to content

yhbae

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Posts posted by yhbae

  1. Just out of trial and error, I tried XDebug instead and that one worked! Now I can do the typical debug stuff on this. Yeah.  :D

     

    What is the difference between Zend and XDebug? Why would one choose to use one over the other?

     

  2. Ok, so I figured out that the executable they mean is the php.exe so I pointed that field to where this binary exist. Still, I am not getting past that point, because now I see the message "The debug session could not be started. Please make sure that the debugger is properly configured as php.ini directive."

     

    Not sure what to do next but I found an article that says even this all-in-1 package does not include the Zend debugger, so through Eclipse, I tried installing Zend Debugger from their site. This failed on me as well and gave me an error with all kind of unsatisfactory dependencies.

     

    What should I do next? I can't believe I spent 5 hours trying to get a debugger working...  :(

  3. Hi guys,

     

    I am relatively new to this environment.

     

    I have been doing some PHP coding using XAMPP and Eclipse IDE. I seem to have installed pdt-2.0.0GA_debugger-5.2.15.v20081217-all-in-one-win32.zip which should include some kind of debugger but I'm not sure how to enable it for use.

     

    So far, I have been ok with 'echo' method which is unacceptable as the code became more complex.

     

    Could someone kindly give me some direction on how to go about getting the debugger to work? When I try to do "Debug As PHP Script" within Eclipse, it says "The current debugger does not have any defined PHP executables. Please define a PHP executable location before continuing." but I'm not even sure what this executable is about...

     

    Much appreciated!

     

  4. Hi guys,

     

    I have encountered a problem while coding in PHP.

     

    Here's the problem:

     

    I've used an associative array throughout my code and in some cases, the key of the array contains space. I do realize that if you surround your keys with " this should work fine. Except - I cannot do this because I use variables instead.

     

    Here's an example:

     

    $fish1 = "Pseudotropheus Acei";

    $fish2 = "Pseudotropheus Demasoni";

     

    $size[$fish1] = 5;

    $size[$fish2] = 6;

     

    The problem is that 'size' array will not distinguish between the keys $fish1 and $fish2. It _appears_ to only take the first word "Pseudotropheus" hence presumably mapping both into the same space.

     

    Does anyone have any ideas?

     

    I tried so far:

     

    $size["$fish1"] = 5;

    $size['$fish1'] = 5;

    $size["'"$fish1"'"] = 5;

    $size["\""$fish1"\""] = 5;

     

    None of the above works. Other than replacing the space with say '_' (which isn't ideal), I am running out of ideas.

     

    Appreciate some feedback. :)

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.