Connect AWS database to files in VScode - amazon-web-services

I have already made front end pages using html css and js and I wanted to use the aws rds mysql database in it. The db is connected to the databse in vs code but how do I access it in the php file?

With your short explanation and screenshot's what I have understood is that you are developing an app with a front end (html, css, js) and you want to connect this app to a database through the php file.
So in order to connect and access your database in the php file you need to download the php client for Mysql, the name is mysqli and you can find many videos in YouTube. The purpose of this library is to talk to your database, is the only reasonable way to do it.
Second you need to get the credentials from the rds service. So far you have expressed that you where able to connect visual studio to the db, so you already have the credentials.
When you start to see the basic tutorials on how to use mysqli everything will come to sense
Good luck!

Related

Stuck in transition between BlueHost and AWS

I cant seem to figure out how to query database information from mysql through a php file uploaded to a server back to a xamarin application after something like a http post call.
I am relatively new to database development, however I had used bluehost for php storage and querying of my app information for about a year yet cant seem to do the same with AWS. I have a relatively decent scope of what S3, EC2, and RDS do for you, however none of them seem to do what I want. In essence I want to be able to say have someone click a button on my xamarin app that creates an event for a club. Then after they click said button, it will make an http post request to an aws site that contains a php file. In that php file it will change or grab the contents of a mysql database. The only place that seems to be able to upload files is S3 but you cant seem to directly utilize php files in the JSON format that I want. Am I completely off with why you would use AWS at all, am I close but not using the right tools, or is it something else? Please give a pretty extensive description on all that I would need to do as I have been struggling to find anything at all on this topic surprisingly.
So after some digging this video here walks through it a bit with phpstorm as your way to connect to the database and add webpages or api php files. Its pretty long but very helpful.

Website using Python Oracle and Javascript

I have a HTA tool that connects to oracle database. It's created using HTML,Javascript and oracle as backend.
Javascript connects to oracle database using OLEDB drive. It pulls data and create dynamic rows.
Tool is working but now am planning to convert it as Web Application.
Being a DBA , am not that much familiar with Java and i thought i will explore options in Python.
I have recently done a automation using Python and Selenium. So yes , i know bit of Python. But i have no idea about website using python.
I also don't want to change lot of code. I want javascript to do all the dynamic front-end stuffs.
All i need is interface that can connect to oracle database and pull the information and pass it to javascript function.
Can someone please guide to how to start with.
Thanks.
I don't know Python but if you don't want to change a lot of code, you may consider PHP. It's made to generate HTML code dynamicaly.
It is dangerous to connect to your DB directly by using javascript. Every user can read the JS code in the page and event modify it(sending every value they want).
PHP is executed on the server, it mean that you can check and validate the received value before risking to corupt your DB.
That's why a PHP page between the JS and the DB is better. Python should be secure too but I think it's easier to use PHP because it's open source and well documented.
I wish you a good continuation!

Is possible deploy c++ web server on OpenShift3?

I am trying to deploy a c++ Http web server on OepnShift3 then I referred this.
The problem is:
Shall I put the source code on OpenShift or compile it first then put the executable file on OpenShift?
Is possible to access the OpenShift3 server via Xshell or Ftp?
Any way to get the OepnShift2 account?
It is no longer possible to get accounts on OpenShift 2.
For OpenShift 3, if you wanted to use a custom HTTP server you would need to be able to build a Docker image which includes it and any other files you need. If you can get the Docker image built, then you can deploy it to OpenShift 3.
Although you can get an interactive terminal in the container which runs your application, it doesn't work like traditional web hosting. That is, it isn't a shell access account where you would upload files using FTP or some other means.
Can you explain more about what it is you want to host? Depending on what you are doing there may be builder images already supported by OpenShift which can pull down files from a Git repository and build an image for you.
If OpenShift is new to you, I would suggest you try out:
https://learn.openshift.com
so you understand some of what it can do and how you interact with it.
Also grab down the free eBook and read it:
https://www.openshift.com/promotions/for-developers.html

How to locate the WSDL file in Azure web site?

I've created a web application that runs a web service (WCF). The source code is long gone but I just checked that the app itself is still up and running. Given that I have the address to the service (something.azurewebsites.com) and the name of one of the methods exposed (parameterless Ping), how can I learn the location of the WSDL file?
As far I recall, I've exposed it the most common way, the publish file fetched from the suggestion on Azure portal. I'd like to just call the method Ping to verify something, so rebuilding a whole new service seems a bit overkill.
Suggestions on what the exact URL might be? Alternatively, suggestions on a tool to sniff that up?
Go to the Azure portal and find the FTP address for your "something.azurewebsite.net". Then use an FTP program to connect to the server and browse the files. This way you might be able to find the ".svc" file. For that matter, you might be able to download all of your code and use a tool like Reflector to view the .Net compiled code.

Push OO or xslt doc to google drive from django

I use pod to generate reports from django. A very smart solution, I enjoy it.
But pod solution required an Open Office (or LibreOffice) installation on client desktop (or server side).
To avoid Open Office software I will hope to send report to google drive as a new (or existing) doc from a django app (or python ...).
Someone would to share expertise with this kind of issue? Else, What would be the steps to publish a google doc from django app?
If your Python app can produce a csv file, you can upload it to Google Docs using the Documents List API and convert it into a Spreadsheet:
https://developers.google.com/google-apps/documents-list/#creating_or_uploading_spreadsheets
Many other file formats can be imported, please check the docs for more details.