User Profile

Collapse

Profile Sidebar

Collapse
Matthew3360
Matthew3360
Last Activity: May 31 '23, 03:58 PM
Joined: May 26 '23
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Matthew3360
    started a topic PHP Curl Not wanting to connect to localhost.
    in PHP

    PHP Curl Not wanting to connect to localhost.

    Hi,
    I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a 404 error when i try and connect. How could i fix this.
    Code:
     $concurl = curl_init();
       curl_setopt($concurl, CURLOPT_URL, "http://localhost/user-validation.php?somevalue=userid");
       curl_setopt($concurl,CURLOPT_RETURNTRANSFER,
    ...
    See more | Go to post

  • 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
    See more | Go to post

    Leave a comment:


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

    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,...
    See more | Go to post

  • PHP does share some similarities to other languages but has some features that other languages don't. I think the closed language would be C.
    See more | Go to post

    Leave a comment:


  • How to layout php header location with a variable as the location?

    Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
    Here is my code.
    Code:
     header("Location:".$urlback);
    Is this the right layout the redirect. I keep finding it is not redirecting and is just ignoring the request.




    Kind regards Matthew
    See more | Go to post
No activity results to display
Show More
Working...