Hello PHP gurus, I am the owner of a simple music search engine site listenmymp3.com I have brought this script from websitescripts.org and I am facing some issues! These issues are with some sources like 4shared,lyrics . I am getting this message if I try to play the music: You don't have permission to access /play.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.listenmymp3.com Port 80 Code (markup): Also getting error when anyone tries to register. It always says "registration failed". I am not having any knowledge of this! Can anybody fix this? Regards, Adwait
I would suggest you first to check the servers error log, if you are using CPanel then Login to CPanel and search for error logs. it will show you the problem. if you are unable to understand it then just post it here.
oky! thanks guys! I got it fixed by host! But having an issue! maybe it's with script! whenever anyone tries to register the system shows "Registration failed" error! If he refresh the page then automatically registration form comeup! then if anyone fills the form and press "join now" it gives some forehech() error! Can anybody help me? here is the source: http://listenmymp3.com/register.php
Try searching a log in script on google (because there are all the same) and compare the php code with your and I think you will find the source of your problem try comparing the 220 line to the one that works
means? I am noob at these!! please tell me what do you mean exactly? okay I found the error. it says: Warning: Invalid argument supplied for foreach() in /.............../register.php on line 187 Warning: Invalid argument supplied for foreach() in /.............../register.php on line 229 Code (markup): From line 183 to 194 the code is: <? if($form->num_errors > 0){ // echo " <font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font> "; $i=0; foreach($form->errors as $cur){ if($cur==""){}else{$i++; echo"";} } } unset($HTTP_SESSION_VARS['regsuccess']); ?> Code (markup): And from line 225 to 234 the code is: <? if($form->num_errors > 0){ $i=0; foreach($form->errors as $cur){ if($cur==""){}else{$i++; echo"<font size=\"2\" color=\"#ff0000\">".$cur."</font><br> ";} } echo "<br> <font size=\"2\" color=\"#ff0000\">".$i." error(s) found</font></center> "; //print_r($form->errors[$field]); } ?> Code (markup): So can anyone tell me what's wrong with it?? On