Debugging, cookies, post data and more.. |
Site Admin
|
Probably, you need to read books on how it all works. I mean html, php, cookies, posts etc.
Briefly, yes you can change values of variables, including $_COOKIE, $_POST etc, but even if you change the values it does not mean that cookies themselves will be changed. It's because you are changing them on the server where php runs, while cookies are stored and maintained by the client browser, regardless embedded into the IDE or external ones. If you favorite browser does not let you change cookie values (mine does not too), PhpED IDE has nothing to do with it too. On the other hand, why don't you run 5th page directly with necessary POST/COOKIE values specified on Run->Parameters?
Run->Parameters NOTE: Cookie and Post values are working only for embedded browser only. Get values are always working.
Cookies are issued by server (by setcookie() in your php script, for example) and are stored and maintained by browser and only. |
||||||||||||||||
|
|
Thanks for your answers. The reason I am asking some of my qustions is that I am trying to understand a complex PHP application's scripts (typo3) and I am also new to PHP and want to see if PHPED will help me with this. Few more questions:
Is the embedded browser the system's default browser or IE?
Right, I guess it depends on whether the embedded browser is IE or if I could change it.
Because sometimes I can tell what a script/class/function in typo3 is trying to do but I am not sure how it is used in the application, where it might be called from or what cookie/post data it might need to function correctly. So, I want to be able to set a break point in that script/class/function and then use the browser to login and brows until that break point it hit, at that point I can use the call stack and the variables window to understand what happened and where the script was called from. I know that what I am trying to do might not make sense to an experienced programmer but it does help me learn the application faster. Shahim |
||||||||||||||||
|
Site Admin
|
IE
No. It's not browser dependant. Cookies are sent to the client with setcookie() function or using header() or some other ways but are never sent magically/automatically from $_COOKIE[] array.
I don't see what could prevent you from doing it and get what you want |
||||||||||||||||||
|
|
Right, I was referring to changing the cookie values in the embedded browser before the next request is sent by clicking on a link or a form button. If I could change the embedded browser, to FireFox for example, I can change the values. It seems that it is better to use an external browser to do this and to check the output in that browser at the same time. Thank you for all these answers. Great product and even better support. Shahim |
||||||||||||||
|
Site Admin
|
you're welcome
|
||||||||||||
|
Debugging, cookies, post data and more.. |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by