Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 9 months ago. Improve this question i’m having trouble trying to get the exact ping value in ms from the server and storing it. I’m trying to make a website that
Tag: python
PHP file upload works with HTTP form but not with Python script
I’m currently achieving a python project in which I need to have a text file uploaded through HTTP to my server. At first I was using for convenience an HTTP form and the upload has been working fine. But now, I want it so I don’t have to manually select the file and just have my Python script sending the
I can’t find the code of a Ruby web application
I’m super new to web development, but not new to programming as a whole. I’m extremely confused by this application which I was pulled into fixing because the person who normally does it can’t anymore. This may be a silly question, but I can’t find the code or any HTML that contains the actual web pages. In the main folder,
Sending User input from python to php
This is my python file: This is my PHP Script: Problem my python file is not sending userdata to php script. Any help would be appreciated Thank you. Answer The problem is you are sending post data but in PHP script, you are capturing GET data. We can re-write both files like this to send POST data and capture POST
The best way to to handle large databases in python/flask projects
Recently i started to use flask and I liked pretty much. In the past I had a system in PHP with a lot of databases like marketing, HR, finance and so on. Each of this databases had their own tables like HR used to have employers, companies and so on. Each of this tables was a class in PHP, we
How to pass a variable in PHP from a Python file?
I’m trying to call a Python script in a PHP file and pass a variable value from that script after pressing the submit button. I have it: index.php test.py Both files are in the same folder. Why is it not working? I’d like to do this without Flask / Django. Answer You can’t declare a variable in Python and use
Pi RGB controler with Python over the web using PHP and SSH. It is good idea?
Iam made Python script that can control my BLE RGB strip, also I made web page with php that connect to Pi via ssh and run Python script. My question is, is there a better way ? I will mark my favorite answer in few days. I hope someone will see this and get same inspiration like me. Thanks for
Python call to PHP – malformed header from script Bad header: Array
Very strange – I’ve been using a python script that scrapes data and then passes it to a php-script – Worked like charm for weeks, until today something happened. I got the following message from apache2 errorlog: So it seems to be derived from this python script, the php-script is called but there is a server 500 error and the
Difference between PHP and python post request?
i tried to connect to API. All auth I have good done, results are right. But response always take error code 2009 -> request is empty. PHP that works $login = ‘tester’; $wpass = ‘fdsaasdf’; $auth = …
For loop conversion problem from python to PHP
I try to convert the following Python function: into a PHP function: And when I test it: I get the error: for the line And I don’t know how to solve it, do you have any ideas? Answer Python’s range(n) returns an array from 0 to n-1 while PHP’s range($n, $m) returns an array from $n to $m, so you