473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to use http requests (Get function) to get variable value?

5 Nibble
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get the variables values of the webpage and print them in my python terminal. Also the variables values are stored in a database. Would pythons http request run the mysql to update the variables before it retrieves them.


Thank you,

Matthew Wright
May 26 '23 #1

✓ answered by dev7060

Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get the variables values of the webpage and print them in my python terminal. Also the variables values are stored in a database. Would pythons http request run the mysql to update the variables before it retrieves them.
How about an API setup to interact with the database?

It may need authentication. Why 'http request'? Do you want to access the database directly or through the server-side PHP?

2 9101
dev7060
636 Expert 512MB
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get the variables values of the webpage and print them in my python terminal. Also the variables values are stored in a database. Would pythons http request run the mysql to update the variables before it retrieves them.
How about an API setup to interact with the database?

It may need authentication. Why 'http request'? Do you want to access the database directly or through the server-side PHP?
May 28 '23 #2
Matthew3360
5 Nibble
Thank you for your reply. I need to access the databases server side through php as the python app will be public. I can't allow them to have access to any of the database connection details. Thanks, Matthew
May 29 '23 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: noah | last post by:
Does PHP have a feature to associate Cookie sessions with a persistent database connection that will allow a single transaction across multiple HTTP requests? Here is how I imagine my process: I...
3
by: hendedav | last post by:
Hi gang. As with any other post, I am working on a project and have gotten stuck. I am trying to obtain a variable value in the parent webpage from an <iframe>. For instance: Parent Page code...
4
by: tnhoe | last post by:
Hi, if I have both javascript and aspscript, how to get/retrieve the variable value in javascript into asp variable ? regards hoe
8
by: Michel Rouzic | last post by:
I'm sure that it's a dumb problem where i surely did something dumb, but, I got a problem, I got a variable that we'll call var1. in the main() function, this variable var1 (of type unsigned) of a...
1
by: Shapper | last post by:
Hello, In my Global.asax I set a Session variable named "culture" which has the current culture being used in my web site. In my HTML page I need to preload the images for the current culture....
6
by: paul | last post by:
HI! How do we send a variable from an Iframe page back to its parent? I have a script that calculates the iframe's window size but I need to know how to send that value back to its parent so I...
1
by: SolitudeX | last post by:
Hey there, I have just started to learn the programming basics. Python looked like a good starting point! I have run into a little snag that I can't seem to find an answer for that I could use...
5
by: ryanwpenfold | last post by:
Hi, The variable _intBlogID changes from -1 to 0 when the Mode_Get method is called. I don't understand why this happens. I included default property values, and that didn't help. I wrote and...
1
by: Susan Clark | last post by:
I am new to java but not new to programming. I can get everything in my programs to work except for passing the variable. And unless I can resolve this I cannot get any of my programs to run. I...
1
by: pronodeep | last post by:
i m using this code.. function OnSelectionChange(select) { var selectedOption = select.options; alert ("The selected option is " + selectedOption.value); ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.