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
• 7,060 points
832 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
• 52,350 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,980 points
1,858 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
• 52,350 points
1,562 views
0 votes
1 answer

using custom tools in a Bluemix DevOps pipeline stage

When you create a new job, you ...READ MORE

answered Jul 25, 2018 in DevOps Tools by ajs3033
• 7,300 points
814 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,064 views
+2 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 Oct 14, 2019 in DevOps Tools by Kalgi
• 52,350 points
920 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP