Forum Moderators: coopster
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.
--Ken
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.
<?php
phpinfo();
?>
...and Welcome to WebmasterWorld.
Habtom
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">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
phpinfo();
?>
</body>
</html>
********************
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! :)
--Arcanos
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.
Thanks again.
--Arcanos
http://www.example.com/?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000
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.
good luck
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! :)
--Arcanos