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,880 points
32 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
• 41,460 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,510 points
39 views
0 votes
2 answers
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
• 41,460 points
83 views
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
175 views
0 votes
1 answer
+1 vote
1 answer

i have a pyhton code in my git/git repository how to build that code in jenkins

Follow these steps @Bhaskar: Step 1: Open the Jenkins ...READ MORE

answered 1 day ago in DevOps Tools by Kalgi
• 41,460 points
10 views
0 votes
1 answer