I am using Rapid PHP 2008.
Does anyone know if it is possible to view preview the html code produced by PHP when it runs the script rather than what the preview pane is giving - the result of viewing the html code in a browser.
I am working my way through various examples on the web and PHP code that produces a new line (\n) only produces a new line in the html. I have to add a <br /> to get a new line in the preview on Rapid PHP if you see what I mean. What I am after is a preview at an intermediate stage to help me understand where I have gone wrong in the PHP.
I can view the html produced but I have to open the file in Firefox and do a ctrl U to get it.
Can I do this directly in Rapid PHP? If not, would it be an idea to add a 'preview html' tab in the work area of the application?
Andy
Viewing HTML code produced by PHP
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
- Karlis
- Site Admin
- Posts: 3605
- Joined: Mon Jul 15, 2002 5:24 pm
- Location: Riga, Latvia, Europe
- Contact:
Re: Viewing HTML code produced by PHP
This is only possible if you run the PHP through the debugger. So you can configure the debugger's run feature so that it returns HTML code. There is no other way and the easiest way is to use View Source of a web browser indeed.
Re: Viewing HTML code produced by PHP
Thanks for this.
I have installed the debugger and yes it does what I was after. I didn't know that was there.
Many thanks
I have installed the debugger and yes it does what I was after. I didn't know that was there.
Many thanks