sapien Posted February 12, 2014 Share Posted February 12, 2014 (edited) Hello everyone, I need some help running a PHP script within an HTML document (index.html) Important Information: This is what I'm using: FormCraft: Premium PHP Form Builder My website is an HTML 5 template purchased from Themeforest.com. Now, the issue is that when I try to place a form within my page it doesnt show up (blank space) and everything after the php code is blank (in the browser). Here is the PHP that was inserted: <?phprequire_once('../formcraft/function.php');formcraft(1);?> Also, the text at the forefront of my parallax background is missing. I tried adding this to my .htaccess file (taken from my host's php wiki) in order to treat all pages as php: AddHandler fcgid-script .htmlFCGIWrapper "/dh/cgi-system/php53.cgi" .html The permissions of all important folders is set to 755. All folder paths are correct. I've contacted the author of the script but he isn't being very helpful. So! Any help with this seemingly disastrous issue would be greatly appreciated. Thanks! Edited February 12, 2014 by sapien Quote Link to comment Share on other sites More sharing options...
requinix Posted February 12, 2014 Share Posted February 12, 2014 Have you checked your server error logs? What you've described sounds like PHP stopped executing in the middle of the code, which could mean a syntax error or that there's something the form builder requires that you don't have set up yet. Quote Link to comment Share on other sites More sharing options...
sapien Posted February 12, 2014 Author Share Posted February 12, 2014 Have you checked your server error logs? What you've described sounds like PHP stopped executing in the middle of the code, which could mean a syntax error or that there's something the form builder requires that you don't have set up yet. Ok, I checked my error logs and its saying: [error] [client] File does not exist: /home/usr/website.com/category/assets, referer: http://www.website.com/category/index.php However, the appropriate folders DO exist. Quote Link to comment Share on other sites More sharing options...
requinix Posted February 13, 2014 Share Posted February 13, 2014 Your PHP errors are probably being written somewhere else then. DreamHost? Don't use that AddHandler/FCGIWrapper thing and just name your file with .php instead. Then try your script and, assuming it fails again, check your error log once more. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.