How can I debug my php code?

Let’s learn how can I debug my php code. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

how do I debug my PHP code in Netbeans?

I am just beginning my journey into PHP world and I chose Netbeans editor. I am using the latest one i.e V7.0.1 and setup WAMP. However, I don't quiet understand how will I debug my PHP code? My breakpoints don't get hit in Netbeans. Any help would be useful. Thanks.

Answer:

I would recommend using Xdebug. Read about Xdebug Remote Debugging, this integrates with NetBeans.

Read more

Jaggu at Stack Overflow Mark as irrelevant Undo

Other solutions

How do developers who use VIM or Textmate debug their Python/Ruby/PHP code, both in command line mode and when running through a local Web Server such as Apache?

I am in the proces of migrating from IDEs to lighter editors. I have already found a comfortable way to debug my C++ code through CGDB, I was wondering how to go about it with my script languages both in command line (I found pdb for Python, but I was...

Answer:

When i'm developing a ruby or rails app i always put the ruby-debug gem in my Gemfile so that i can...

Read more

Adam Schepis at Quora Mark as irrelevant Undo

Answer:

Output is TestBecause $x is 4 and the echo statement prints value from the variable which begins with...

Read more

Anonymous at Blurtit.com Mark as irrelevant Undo

PHP question.

Ok, another PHP question... this one less stupid than my last one (hopefully). XML/XSLT.... [mi] I have some generated XML (from a php script that builds from a directory and contents)... I used and modified some code to do a transform: /** * * A class...

Answer:

xslt_process() is a bit touchy and tries to guess whether you're submitting a string of xml or a path...

Read more

pissfactory at Ask.Metafilter.Com Mark as irrelevant Undo

Debugging PHP code in Cobalt RAQ4

Cobalt RAQ4 comes with Apache/PHP4.1.2 pre-packaged. How do we debug PHP code in this system? The PHP is compiled with --dable-debug flag. My situation is that, I have some PHP scripts that runs just fine, but some others just simply gives Segmentation...

Answer:

Hi srinivas, According to the php.net site, PHP 3 includes support for a network-based debugger. PHP...

Read more

bsrinivas-ga at Google Answers Mark as irrelevant Undo

How do I create a PHP project with Eclipse?

I want to use eclipse to code and debug my php project, but how to create a php project at first. I need you help.

Answer:

I am assuming that your using Eclipse along with the PDT (PHP development toolkit) plugin. If not then...

Read more

Royston Olivera at Quora Mark as irrelevant Undo

Remotely coding PHP without FTP

I like to code my PHP scripts on my Windows machine in TextPad, then upload them to the server to test/debug them. But constantly FTPing files while debugging is the pits. What's the answer? Install PHP locally? Break down and learn to use vi? What's...

Answer:

learn vi. Admiteddly, its difficult at first, but a breeze once you get the hang of it.

Read more

vraxoin at Ask.Metafilter.Com Mark as irrelevant Undo

I really need help with this PHP code that is not working , What is wrong with this PHP code ?

Ok ... I have created just one form that enters a code and depending on the specific area codes , it will display the price per weight of what you want to be shipped .. but wen I click on the SUBMIT BUTTON , NOTHING gets displayed on the PHP form .....

Answer:

you left off a dollar sign on one of your "switchcase" where it says switchcase = 3. Also...

Read more

none at Yahoo! Answers Mark as irrelevant Undo

How to Execute php code using a company server?

Hi all I have doubts in executing a php code.I use apache server at home.The .php file to be executed is placed in http docs folder of the apache and in the web browser we type http://localhost/.php in order to execute the php code. But If i am working...

Answer:

If the company's server is configured with php, you simply save a file out there with the .php extension...

Read more

Lekha at Yahoo! Answers Mark as irrelevant Undo

How can I load dynamic pagecontent from MySQL containing PHP and have that code be evaluated?

Hello - I just recently learned PHP and MySQL. I am now in the process of putting together my first page utilizing both of these languages. Currently I have one page, index.php, which takes a page passed by GET and loads the contents of that page from...

Answer:

Look at http://us3.php.net/eval Say that the variable that has the PHP value in it is $str. Use this...

Read more

Evan K at Yahoo! Answers Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.