Forum Moderators: coopster

Message Too Old, No Replies

wamp and lamp

         

JuicyScript

12:26 pm on Dec 4, 2010 (gmt 0)

10+ Year Member



My project works ok in my windows wamp but when i bring it to linux apache www folder and run it it is not able to work as in wamp. No errors but just doesn't derive any reults

jatar_k

2:39 am on Dec 6, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



somewhat vague

is this moved to another server?

check that display errors is on
check that the error level coincides with what you need
check paths
depends on what the script is doing
add die statements starting at the beginning until you figure out what's causing it to die

we can't tell you what is, maybe just mixed case in something, windows is stupid like that

rocknbil

5:48 pm on Dec 6, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No errors but just doesn't derive any reults


Then you need to add error trapping where you expect results.

function error_trap($err,$db_err=null) {
echo "<p>An error has occurred: $err</p>";
if ($db_err) { echo "<p>Database error: $db_err</p>"; }
exit;
}

$result = mysql_query($query) or error_trap("Could not execute query at 'some process*'", mysql_error());

$fhandle = fopen($template, "r") or error_trap("Cannot open file $template");

Do not add @ before these:

@mysql_query

@fopen

This suppresses errors.

*'some process' = actual function so you can find it, make them all unique. "Attempting to read in product database", etc.