I am perfectly OK debugging a script which uses GET data, because the parameters are there on the command line. But how on earth do you use the Zend Development Environment to debug with POST data?
e.g. the wiki uses the file "index.php" which does all the control and it takes POST data I don't see it of course on the URL. I cannot cut-and-paste the URL into the ZDE "Debug URL..." field. If it was all done with GET (which of course it cannot be because of the size of the text) I could just copy the URL into the "Debug URL..." field like this "index.php?action=edit&usertext=somedummytext" and I'd be away.
Sure, I could just hack at the $_POST global variable from an empty index.php call, but does anybody have a better way?
I know this is more of a PHP question than a MediaWiki question, but anyone working on MediaWiki must have a good answer to this since ALL control is done via the POST.
Thanks!
Hugh
Am 10.02.2006 um 19:08 schrieb Hugh Prior:
I am perfectly OK debugging a script which uses GET data, because the parameters are there on the command line.
yeah, something like a "command line"...
I don't know about the Zend Debugger, or why you want to use it anyways. Did you add some functions which are buggy?
The obvious solution is to change the POST forms to GET forms, it's a simple change but won't work with multipart-forms (for upload e.g.).
ciao, tom
-- http://www.tomk32.de - just a geek trying to change the world http://de.wikipedia.org/wiki/Benutzer:TomK32 http://verlag.tomk32.de/c/wrdigest
Moin Hugh,
On Friday 10 February 2006 19:08, Hugh Prior wrote:
I am perfectly OK debugging a script which uses GET data, because the parameters are there on the command line. But how on earth do you use the Zend Development Environment to debug with POST data?
e.g. the wiki uses the file "index.php" which does all the control and it takes POST data I don't see it of course on the URL. I cannot cut-and-paste the URL into the ZDE "Debug URL..." field. If it was all done with GET (which of course it cannot be because of the size of the text) I could just copy the URL into the "Debug URL..." field like this "index.php?action=edit&usertext=somedummytext" and I'd be away.
Sure, I could just hack at the $_POST global variable from an empty index.php call, but does anybody have a better way?
I know this is more of a PHP question than a MediaWiki question, but anyone working on MediaWiki must have a good answer to this since ALL control is done via the POST.
You can download the "web developer toolbar" extension for FireFox, and use it to change POST forms to GET forms. (It has a ton of other usefull things for debuggin web apps, forms, CSS ad HTML and and and).
http://chrispederick.com/work/webdeveloper/
Hope this helps,
Tels
mediawiki-l@lists.wikimedia.org