Python Forum
Help Needed For Online Survey Portal
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Needed For Online Survey Portal
#1
We have created online Survey Portal : [LINK REMOVED]
It is based on PHP CodeIgniter and MySQL.
With the advancement of AI, we want to integrate ChatGPT 3.5 or 4.0 API on our survey portal for creating online surveys.
Is the integration of Python and PHP CodeIgniter possible? How?
Please guide me in detail. I am not the coder, but I am helping the coder.
buran write Nov-06-2023, 10:02 AM:
LINK REMOVED
Reply
#2
Quote:We have created online Survey Portal : [LINK REMOVED]
It is based on PHP CodeIgniter and MySQL.
With the advancement of AI, we want to integrate ChatGPT 3.5 or 4.0 API on our survey portal for creating online surveys.
Is the integration of Python and PHP CodeIgniter possible? How?
Please guide me in detail. I am not the coder, but I am helping the coder.
There are a number of Python libraries that can be used to communicate with PHP applications. One such library is PyCurl.

To use PyCurl to integrate Python and PHP CodeIgniter, you would first need to install the PyCurl library. Once the library is installed, you can use it to make HTTP requests to your PHP CodeIgniter application.

The following code shows how to use PyCurl to make a HTTP request to a PHP CodeIgniter application:
import pycurl

curl = pycurl.Curl()

# Set the URL of the PHP CodeIgniter application
curl.setopt(pycurl.URL, 'http://localhost/codeigniter/')

# Set the HTTP method
curl.setopt(pycurl.HTTPGET, True)

# Make the HTTP request
curl.perform()

# Get the response from the PHP CodeIgniter application
response = curl.getinfo(pycurl.CONTENT_TYPE)

# Close the curl session
curl.close()
Once you have the response from the PHP CodeIgniter application, you can parse it and use the data in your Python application.
buran write Nov-06-2023, 10:03 AM:
[LINK REMOVED]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating portal for xwindows application abby007 0 2,783 Jan-30-2018, 07:00 PM
Last Post: abby007

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020