Welcome to WebmasterWorld Guest from 18.104.22.168
I'm fairly new with PHP, especially when it's on a paid hosting site, as I have no control. I have quite a few books and plenty of places to get help, but my main problem is that I've tried very simple things, such PHPINFO(), just to see if anything from PHP is working, but have had no luck. I'm not getting ANY support from the hosting provider, I will not mention any names, as they've been very rude and pretty much worthless. Unfortunately, I've paid and my time isn't up with them until this September, at which time I will not be renewing and will be moving to a different provider.
Anyhow, does anyone have any advise for things that I can try to get PHP working on the site? I'm totally at a loss, as nothing works, no matter how simple, so something must be set incorrectly, in my opinion.
Thanks in advance.
You might have already tried it but put the following lines on test.php and upload it to see if you have it in your system.
...and Welcome to WebmasterWorld.
Thanks for your reply.
Actually, the server isn't mine, but one that I'm paying to use. I tried the exact statement that you presented and saved the file with the .php extension. Here's the file contents so that you may see what I entered:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I'm told that PHP is running on the site and within the cpanel console, it shows me the PHP Configuration section, which has various information. There is a PHP folder in my root area. Regarding results, I received a 500 Internal Server Error message.
Thanks again for the helpful welcome! :)
If your php installation is OK this will show a correct php information page (which includes all the html)
Thanks for your reply.
I think the php file has to be inside of the public_html folder and/or one of its sub-folders before it can be accessed from the web.
Unfortunately, I cannot get the administrator to respond to any of my support requests. I sent another new support request about an hour ago, so we'll see if I get a response. They're claiming to have 24/7/365 Support, but so far I've received NONE and had to go through their free hosting areas message boards to get any kind of responses. They promptly removed my messages, which I've been very polite, from the boards and then gave me an email response which didn't help at all and were very rude, like I was bothering them. Their price is great, especially since the sites that I'm hosting are for personal use only, which is around $54/year and gives Perl, PHP, MySQL, CPanel and Fantastico with decent enough bandwidth and space. I'm primarily using it to host my daughters pictures for the family and testing with Perl/PHP code to get a better grasp of it, from a web perspective.
I don't know if this is against the rules of this forum, but do you or anyone else have any suggestions of another site, closely priced, that offers the same features? I have one in mind that's comparable, but I'm waiting until closer to September, when renewal is due, before I'm switching.
joined:Nov 12, 2005
This will bring up php's credits. If this works, php is working on the server. If not, then the directive is turned off or php isn't configured correctly. In either case, you are going to have to work this out with your host.
If I were you, I'd find another host asap, however, discussion of hosting providers is not allowed on these forums.
Thanks so much for the great advise! I'm going to give your suggestions a try, but am definitely going to be switching providers. I've used up all of my "benefits of the doubts" with them.
BTW, This site is great! I can't believe I didn't run across it before.
joined:Nov 12, 2005
Just out of curiosity, you did replace example.com with your domain name, right? I'm sorry if you did, it's just that it sounds like you could have done either.
If php doesn't work in any file, the credits don't show up (even though this could be expected behavior) and you are getting internal server errors however have no .htaccess files, then the problem lies with the server somewhere.
I did replace the URL and it brought up the page, but without the credits. I tried the string with the host's free pages forum URL, which did bring up the credits. They must have something configured incorrectly on my account. The page name, on the top bar of the browser does say "phpinfo()".
I can't get any response from them after trying their "various" support contact methods, so I'm not for sure what to think. I'm very bummed over this, as I can't try anything new and am not getting the support that they supposedly offer. I should have took care of this problem when I first signed up, but that's when my daughter was first born and the site wasn't on a high priority. I'm not nearly as sleep deprived as I was then, so things are a bit different now.
I think that I'll try calling their support number to see if I'll luck out again and get someone on the phone.
Thanks again for your help and letting me rant! :)