Jump to content

Soumikbhat

Members
  • Posts

    12
  • Joined

  • Last visited

Soumikbhat's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. <?php $servername = "localhost"; $username = "user"; $password = "pass"; $dbname = "db_name"; $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { echo "connection problem"; //die("Connection failed: " . $conn->connect_error); } This is the code of this page on my website. Until last week everything seemed to be working fine. But recently I'm getting an error message, What happened suddenly to cause this error? The user exists for the respective database, and all was fine till last week, and I haven't made any changes in my code either. The problem got away on replacing localhost with 127.0.0.1
  2. What is the frequency of cron jobs allowed on free servers? And what is the procedure to set cron jobs? Also are services like easycron allowed to execute scripts hosted on free servers?
  3. Domain name change requested.. Domain name soumikbhat.tk is to be changed to bhat.heliohost.org. Kindly do the honors.
  4. Your account looks fine on our end. You need a new domain. Once you get a new domain, you can change your main domain using the script on our website, or you can post it here and I can change it for you. Can my account be changed to any free domain name that heliohost may offer? Any extension will do, like soumikbhat.<whatever_extension_you_guys_support> ? Thanks for the help.
  5. The domain is already registered. I myself had registered it and had the site running over here since the last 5 months. Suddenly this happened.
  6. Cannot find my website. I get this page on going to my site's URL. Username : soumik I did not even get any email from Heliohost. So don't know why or how this happened. Please resolve the issue,
  7. Suddenly my .py files stopped working. They were working perfectly even minutes ago. My domain name This .py file has the following code: #!/usr/bin/python print "Content-Type: text/html\n\n"; print "Hello"; Kindly resolve the issue. Issue resolved - was a permission issue
  8. &--#60;?php $a="hello world"; $o = passthru("python a.py ".$a); echo $o; ?&--#62; This is my simple php code which I am using to test. My python code is #!/usr/bin/python import sys print "Content-Type: text/html\n\n"; s= "Hello world from python" print s #print sys.argv[1] return s Can you please tweak this so that it becomes a bit clearer what exactly you're saying..? Sorry am a beginner so a bit clueless on this.. As far as I know, GET/POST is used to get the values in php, but I want my python script to work with the variables from the php script. That's where I'm stuck. How do I have my Python file to read those variables? EDIT : Got it to work...thanks
  9. Fine but if I try to execute a simple php script that passes variables to a python script using passthru(), it says the function is disabled for security reasons. In that case is it impossible to pass variables to my python script from my php script? Any alternatives?
  10. Hello, I am using Heliohost's free hosting, I want to know how exactly to deploy python over here..I have never done that in the past. For instance, suppose I have a simple a.py file with a simple print "Hello world" - where do I exactly put it? I tried putting it in cgi-bin and trying <my-domain>/cgi-bin/a.py but got an Internal Server Error. Any help would be appreciated.
×
×
  • Create New...