Script Testing 2 lol

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

8 replies · 419 views · started 17 years ago · 1 min read

4 participants
djdevil89 Senior · 287 posts #1

Hi guys,

Lol again i made a script this time its my first try in flatfile so here is the link Wapzone Please tell me what you think

-----Edit----- I recoded it to an community now does anyone know a community which is done with text files? if so can you please link me to the script? i got some minor trouble with the forum thats why i am asking

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Mysterio Lead · 630 posts #3

well its good. is it in txt files, not a database?

mysterio.al - programming is a functional art

djdevil89 Senior · 287 posts #4

yes its a community working with txt files i got bored of mysql so i decided to give txt a try

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
djdevil89 Senior · 287 posts #7

i was thinking of using .htaccess to secure the folders where the txt files are stored

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
Mysterio Lead · 630 posts #8

Before some months, i tried to make a community sity like you, which worked with txt files. There where usr.txt and pwd.txt files, where the usernames and passwords with be stored. Jets think that 5th username is in the 5th row of the usr.txt and the 5th password in the 5th row. when trying to register a new user, by writing two words in two lines into the username input box. So, after this, the new user's username in the 8th line will had to match with the 7th line where his password is stored. I fixed a lot from those bugs, till i desided to use a single txt file for all users details (username,password,age,sex,location,ect). And so for the messages and forum and chat. But still, with a small and accurate trick, an entire txt file could be ****ed up and make a mess up in all forum. Then i was bored, and shift+delete everything. I just want to say that it could be easy to damage the site. Anyway, wish your best.

mysterio.al - programming is a functional art

djdevil89 Senior · 287 posts #9

well i am using htmlspecialchars and an other function to make the input in the text secure for example this

$user = $_REQUEST['user'];
$pass = $_REQUEST['pass'];
$new_user = ereg_replace("[^A-Za-z0-9]", "", $user);
$new_pass = ereg_replace("[^A-Za-z0-9]", "", $pass);
                                    $new_user = htmlspecialchars($new_user);
                                    $new_pass = htmlspecialchars($new_pass);
foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close