Web Hosting Talk







View Full Version : php isnt working :(


redcell1
12-22-2007, 04:26 PM
okay I got this custom made cms for a client and it Works on the coder's hosting but when I use my hosting the script doesnt work :(

the code is all the same so Im thinking different enviorments or what could it be ?

GHDpro
12-22-2007, 05:16 PM
Well we're not psychic, so it would help if you mentioned what kind of errors you are seeing. PHP has tons of modules and configuration options, so based on the info you posted so far the problem could be anything.

PS: if you post the actual error messages, you might want to edit out sensitive info like domain names, IP addresses, usernames, passwords, etc, as long it's still clear what the error is about.

redcell1
12-22-2007, 05:25 PM
see the thing is the install.php page is blank -white

no errors but nothing to the installation at all

activelobby4u
12-22-2007, 09:51 PM
could be something related to the safe_mode , register globals etc . Check those and enable diplay errors. :agree:

ThatScriptGuy
12-22-2007, 10:56 PM
If you're seeing blank pages, then PHP is suppressing the errors. Do as written above and enable display_errors in php.ini

Kevin

fwwebs
12-23-2007, 12:26 AM
If the php.ini isn't working, check your script for the error_reporting function (just search for the text).
http://www.php.net/error_reporting

Also, check the error_log file or your control panel's error log. It may give you/us some insight.

Annex
12-23-2007, 03:58 AM
okay I got this custom made cms for a client and it Works on the coder's hosting but when I use my hosting the script doesnt work :(

the code is all the same so Im thinking different enviorments or what could it be ?

Ok, a few things here I'd like to touch on.

1) The code works on the coder's server not his hosting. Hosting is the act of providing housing for and serving files VIA the internet. Hosting isn't a physical location, when you want to refer to where someone hosts the file you would use the term server. Server is the dedicated server that is providing this hosting to you, your coder, ect. This is a physical location, and it is the correct term.

2) Mind sharing who your host is?

3) Likely this code knew little about what he was doing, and through his lack of knowledge, the script has fallen into a "dependency hell" which means it is extremely reliant on the server configuration that it was developed on, and if anything differs, it will give errors.

4) Installation is a relatively simple task to do without pre-made GUI. You could probably get someone to do it for you for cheap or for free.

5) If you are hosted by a newer company, they probably have very little knowledge about how to secure servers, and turned on/off safe_mode, register globals ect.

redcell1
12-23-2007, 01:32 PM
okay I got it now, the register_globals from php wasnt turned on for security reasons and thats why the php script didnt work, but thanks everyone I do value your time and effort :)

activelobby4u
12-23-2007, 01:50 PM
Great going :)

foobic
12-23-2007, 06:43 PM
okay I got it now, the register_globals from php wasnt turned on for security reasons and thats why the php script didnt work, but thanks everyone I do value your time and effort :)So this "coder" (using the word loosely) has just written a cms that requires register_globals on? For a very old script that might be fairly normal but for anything produced recently it's a sure sign of incompetence. Beware - the web-site will most likely be vulnerable to all kinds of exploits.