SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 Yeah I did but it gives me the 500 Internal Server Error. Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95372 Share on other sites More sharing options...
SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 Is there any significant portion I have to put that into, in the htaccess file? Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95377 Share on other sites More sharing options...
redarrow Posted September 20, 2006 Share Posted September 20, 2006 Small example of formatting [code]<?php$mess="hi there iam redarrow and i like php ";//see only words from 0 - 14$mess=substr($mess,0,21);//wordwrap add <br> letter afther word 14$mess=wordwrap($mess,14,"<br>",1);echo "<br>$mess<br>";//when ever hit the enter key put a <br> aftherwards.$message=nl2br($message);echo"<font color='red'>$message<br></font>";?><form method="post" action=""><br>please enter message<br><textarea name="message" col"20" rows="10"></textarea><br><input type="submit" name="submit" value="send message"><br></form>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95380 Share on other sites More sharing options...
SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 Would you like me to copy and paste what's in the htaccess? Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95401 Share on other sites More sharing options...
redarrow Posted September 20, 2006 Share Posted September 20, 2006 maybe you should post the htacces for overs i suck at htaccess but someone should be able to help. Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95410 Share on other sites More sharing options...
SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 [code]# -FrontPage-IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*<Limit GET POST>order deny,allowdeny from allallow from all</Limit><Limit PUT DELETE>order deny,allowdeny from all</Limit>AuthName www.feudalage.comAuthUserFile /home/sierobin/public_html/_vti_pvt/service.pwdAuthGroupFile /home/sierobin/public_html/_vti_pvt/service.grp[/code]That's what's in htaccess. Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95563 Share on other sites More sharing options...
SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 Ok I kinda figured it out after a google search lol. Apparently, I need this to not get the server error.[code]<ifmodule mod_php4.c>php_flag magic_quotes_gpc Offphp_flag magic_quotes_runtime Offphp_flag magic_quotes_sybase Off</ifmodule>[/code]Although this does nothing, uhhh maybe there's something else? Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95576 Share on other sites More sharing options...
wildteen88 Posted September 20, 2006 Share Posted September 20, 2006 I'm really sure what is going on really. However try this simple script:[code]<?phpif(isset($_POST['submit'])){ echo "<b>The Message:</b><br />\n" . nl2br($_POST['msg']) . "<hr />\n";}?><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <textarea name="msg">Enter your message</textarea><br /> <input type="submit" name="submit" value="Post Message" /></form>[/code]Do you get the same result as you do with your forum? Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95610 Share on other sites More sharing options...
SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 It's basically outputted by a textarea.. whenever you hit enter, it enters "rn" instead of "\n". Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95616 Share on other sites More sharing options...
SieRobin Posted September 20, 2006 Author Share Posted September 20, 2006 The answer to your question is no wildteen, it works PERFECTLY with the script you posted.. why mine doesn't work.. well you got me lol. Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95736 Share on other sites More sharing options...
SieRobin Posted September 21, 2006 Author Share Posted September 21, 2006 Ahha! Me and a friend solved the problem! My connect.php naturally is an include, and it contained escapes that were messed with the output of it. So we got rid of them! Works great now :D Quote Link to comment https://forums.phpfreaks.com/topic/21298-rn-what-the-heck/page/2/#findComment-95825 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.