+ 5

[Answered]How can i use a PHP file.

I have hosted a PHP file in Google Drive but I don't know how to link it. I have to use that file in a form's action in HTML. And please anyone can if they debug my code.

9th Jun 2020, 2:53 PM
Krish
Krish - avatar
12 Réponses
+ 4
Follow these steps: https://cloud.google.com/solutions/web-hosting or infinity free .net or 000webhost They facilities PHP hosting
9th Jun 2020, 3:10 PM
Gordon
Gordon - avatar
9th Jun 2020, 4:10 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
Krish the code seems ok.. but on line 67 remove @ symbol and at the top of the php opening tag add these ini_set('display_errors', 'On'); error_reporting(E_ALL); and send me if you get any debug information...
10th Jun 2020, 7:14 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 2
Gordon Prashanth Kumar Ninja Coder Please anyone can debug the code that it's correct or not.
10th Jun 2020, 6:53 AM
Krish
Krish - avatar
+ 2
Please put your code on SoloLearn code playground instead if for reviewing , thanks
10th Jun 2020, 9:36 AM
Gordon
Gordon - avatar
+ 1
Do not use Google Drive for you codes because it is useless for codes. You can save your code in .txt format in Google Drive but cannot use that as .html format. I have tried it. Try to avoid Google Drive for html. Use some other free domain and host.
9th Jun 2020, 3:03 PM
Omkar Kamat
Omkar Kamat - avatar
0
As I know you can directly put the entire code in html document. Put your php code inside body tag. For more information check the PHP course once.
9th Jun 2020, 2:57 PM
Kashyap Kumar
Kashyap Kumar - avatar
0
ok ok actually first you have to change the type of the file from .txt to .html then you save to Google Drive. Then you can easily use you your file in html format.
9th Jun 2020, 3:05 PM
Krish
Krish - avatar
0
Ninja Coder but I tried but it's not connecting
9th Jun 2020, 3:06 PM
Krish
Krish - avatar
0
Ninja Coder can you just check by making your own code
9th Jun 2020, 3:09 PM
Krish
Krish - avatar
0
Krish not working in mobile code editor,try it in desktop. https://code.tutsplus.com/tutorials/how-to-use-php-in-html-code--cms-34378
9th Jun 2020, 3:22 PM
Kashyap Kumar
Kashyap Kumar - avatar
0
Gordon can you please explain it to me in step by step because I am facing little problem while doing it? And thank you for giving me a new information?
9th Jun 2020, 4:08 PM
Omkar Kamat
Omkar Kamat - avatar