Skip to content
Advertisement

Tag: python

Getting the exact ping in ms from the server [closed]

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

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

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

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

Advertisement