Trying to make a PHP code work in bluemix

+1 vote

I've been working on a project that involves creating a PHP service, make it work locally with Vertrigo, and then upload it to IBM Bluemix.

The code seems to work just fine in local, but when trying to figure out the code in Bluemix, it starts failing.

can someone help me?

Jul 6, 2018 in DevOps Tools by Nilesh
• 6,900 points
23 views

2 answers to this question.

0 votes

Well, in your HTML variable you have a few tags, but for PHP to interpret it as text you should double/single quote it. Otherwise it's going to interpret as PHP methods and functions, and those don't exist. I suggest you change this and try again, if it doesn't work, open the developer tools on your browser and see if anything is rendered at all (e.g. page HTML structure).

answered Jul 6, 2018 by Kalgi
• 37,320 points
0 votes

example to @Nilesh's explanation:

$html = '<html>
            <head></head>
            <title>...</title>
            <body bgcolor = "#9d1fc6" text = "black"><center><img src = "/images/2.jpg"></center><br><br>
            <center><b>$resultado<br><br><a href="index.html" style="color: #ffffff">INICIO</a></b></center>
            </body>
            </html>';

        echo $html;
answered Oct 25, 2018 by akaash

Related Questions In DevOps Tools

0 votes
1 answer

Want a command to be executed in Salt only if a directory is empty

You should consider using this inside your ...READ MORE

answered Jun 12, 2018 in DevOps Tools by Damon Salvatore
• 5,490 points
32 views
0 votes
1 answer

how to fix the build with maven in bluemix

As per Bluemix Status Page today DevOps Delivery Pipeline ...READ MORE

answered Jul 6, 2018 in DevOps Tools by Kalgi
• 37,320 points
57 views
0 votes
1 answer
0 votes
3 answers
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers