Working with PHP and RSD
I'm new to RSD and loving it! The power and convenience it a great mix.
I'm looking for a workflow that goes from RSD to live site with as little extra work as possible. I've added an .htaccess entry to process my HTML files for PHP. So, no need to do renames afterwards. I've also moved most of my functionality into the <head> block so that I can paste my main functionality as one block.
Next challenge is using PHP variables in styled paragraphs. For example, I would have some text in a paragraph link, "Hello, <?php echo $FNAME; ?>, how are you?"
When I export the project as HTML, the brackets are escaped as < and >. This means I need to to into an external editor and find each of the occurrences and replace then EVERY TIME I make a change and reexport.
Hoping there is a way to tell RSD NOT to escape the symbols. Any thoughts?
I'm looking for a workflow that goes from RSD to live site with as little extra work as possible. I've added an .htaccess entry to process my HTML files for PHP. So, no need to do renames afterwards. I've also moved most of my functionality into the <head> block so that I can paste my main functionality as one block.
Next challenge is using PHP variables in styled paragraphs. For example, I would have some text in a paragraph link, "Hello, <?php echo $FNAME; ?>, how are you?"
When I export the project as HTML, the brackets are escaped as < and >. This means I need to to into an external editor and find each of the occurrences and replace then EVERY TIME I make a change and reexport.
Hoping there is a way to tell RSD NOT to escape the symbols. Any thoughts?
I asked a question recently about adding php files to the resources, and that was not possible. My hunch is, that you won't be able to add inline php either, but I might be wrong.
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger wrote:
I asked a question recently about adding php files to the resources, and that was not possible. My hunch is, that you won't be able to add inline php either, but I might be wrong.
I asked a question recently about adding php files to the resources, and that was not possible. My hunch is, that you won't be able to add inline php either, but I might be wrong.
You can add inline PHP using an HTML Element.
OK, so I was wrong then.

Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
or just rename index.html to index.php and then your php code. worked for me. at least so far it has been working with no issue.
Is generating .php , managing http://www.......com/blbla.php internal url and previewing with local installed web server, a big deal ?
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.