Jump to content


Photo

RN!? WHAT THE HECK?


  • Please log in to reply
35 replies to this topic

#21 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 02:13 PM

I checked my .htaccess file, and those aren't even an option, then again .htaccess doesn't even take an entire page up, it's pretty much small, and contains no more than 4-5 different options to change, would you like me to paste that here?

#22 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 September 2006 - 02:21 PM

You add them into the htaccess file.

#23 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 02:34 PM

Ok, exactly what you typed before I put in there?

#24 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 02:40 PM

Hmmn, I put that in there, but now I'm getting a 500 Internal Server Error.

#25 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 September 2006 - 02:41 PM

You just add the following:
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag magic_quotes_sybase Off
Into the htaccess file. Just copyu and paste in to the htaccess file Save. What this does is changed PHP configuration if magoc quotes is enabled.

#26 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 02:44 PM

Yeah I did but it gives me the 500 Internal Server Error.

#27 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 02:57 PM

Is there any significant portion I have to put that into, in the htaccess file?

#28 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 20 September 2006 - 03:00 PM

Small example of formatting

<?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>


Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#29 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 03:19 PM

Would you like me to copy and paste what's in the htaccess?

#30 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 20 September 2006 - 03:26 PM

maybe you should post the htacces for overs i suck at htaccess but someone should be able to help.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#31 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 05:48 PM

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.feudalage.com
AuthUserFile /home/sierobin/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/sierobin/public_html/_vti_pvt/service.grp

That's what's in htaccess.

#32 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 06:04 PM

Ok I kinda figured it out after a google search lol. Apparently, I need this to not get the server error.

<ifmodule mod_php4.c>
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag magic_quotes_sybase Off
</ifmodule>

Although this does nothing, uhhh maybe there's something else?

#33 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 20 September 2006 - 06:48 PM

I'm really sure what is going on really. However try this simple script:
<?php

if(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>
Do you get the same result as you do with your forum?

#34 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 07:01 PM

It's basically outputted by a textarea.. whenever you hit enter, it enters "rn" instead of "\n".

#35 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 20 September 2006 - 11:29 PM

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.

#36 SieRobin

SieRobin
  • Members
  • PipPipPip
  • Advanced Member
  • 212 posts
  • LocationNew Jersey

Posted 21 September 2006 - 02:44 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users