My php site is not working in my server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dildhilip2003
Forum Newbie
Posts: 1
Joined: Wed Feb 03, 2010 11:44 pm

My php site is not working in my server

Post by dildhilip2003 »

Hi All,

Am very new to php, somebody please help me.

i hve a php site and its working fine in my local host (xamp).

But when i hosted my site to my server, user login and new user registration is not working. I hve xamp in my server also.

here is the link : http://212.227.137.184/tim-test_03-02-10/

user id: test1
pass : test1

or else u can try to recreate a new user,

i hve attached my php code for your review.
tim_04-02-10.zip
(6.58 KiB) Downloaded 2 times
i will be very thankfull for your kind help. somebody please help me.

Thanks in advance
shafiq2626
Forum Commoner
Posts: 88
Joined: Wed Mar 04, 2009 1:54 am
Location: Lahore
Contact:

Re: My php site is not working in my server

Post by shafiq2626 »

Hi!
your login module is working
but printing some code on your page i think you should write your code as below

in loginck file

Code: Select all

print "self.location='index.php'"; // Comment this line if you don't want to redirect
          print "</script>";
 
                } 
        }   
    else {
 
        session_unset();
echo "<font face='Verdana' size='2' color='red'>Wrong Login. Use your correct  Userid and Password and Try</font> <br><center><input type='button' value='Retry' onClick='history.go(-1)'></center>";
        
    }
please check
Post Reply