[NA] PHP server console?

CJones

Final Approach
Joined
Mar 14, 2005
Messages
5,899
Location
Jawjuh
Display Name

Display name:
uHaveNoIdea
I feel bad.. recently, I've been posting more about technical issues than aviation related issues. It's a sure-fire sign that I need to fly more (or ANY at all)!

When I was working with Ruby on Rails, Aptana RadRails had a 'server console' that would display exactly what the server was receiving and returning when an event occured - if you submitted a form, it would show exactly what was being 'posted' from the form, etc.

Is there anything like this for PHP/HTML? I have an HTML form that is POSTing to a PHP page, but for some reason, I'm not getting all of the fields - I can't decide if it isn't getting POSTed correctly, or if I'm not retrieving it correctly. A way to see what the server is seeing would be nice.

I am using Notepad++ for coding (if that matters).

Any ideas?
 
Chris,

I have been doing most of my PHP development with NetBeans (http://www.netbeans.org). It has a good debugger (interface actually) for both PHP and javascript.

I've just started with Eclipse mainly for Android apps but it is the other popular free IDE for PHP.

I can't really say one is better than the other.

Joe
 
Is there a database in the mix somewhere?

-Rich

Yes, but not until later in the process.

I'm using jQuery datepicker in the form on the first page, that might be hosing things up somewhere.
 
I feel bad.. recently, I've been posting more about technical issues than aviation related issues. It's a sure-fire sign that I need to fly more (or ANY at all)!

When I was working with Ruby on Rails, Aptana RadRails had a 'server console' that would display exactly what the server was receiving and returning when an event occured - if you submitted a form, it would show exactly what was being 'posted' from the form, etc.

Is there anything like this for PHP/HTML? I have an HTML form that is POSTing to a PHP page, but for some reason, I'm not getting all of the fields - I can't decide if it isn't getting POSTed correctly, or if I'm not retrieving it correctly. A way to see what the server is seeing would be nice.

I am using Notepad++ for coding (if that matters).

Any ideas?

You're basically wanting a debugger. Some options include Xdebug and the Zend Debugger. There are plugins for both Eclipse and Netbeans to use them.

You can just do this though:
echo("<pre>");
print_r($_POST);
echo("</pre>");

That will print the entire post array in a easy to read format. If it's not in the POST array then PHP isn't getting it.
 
Or Firefox's "Firebug" Extension... You can see the raw HTTP POST request using it on any page... as well as the many other things it can do.
 
Back
Top