Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-14-2007, 09:56 AM Is it legal script?
Skilled Talker

Posts: 84
Location: Brussels, Belgium
Trades: 0
I'm just starting with php. And I made a simple mail script.

I'm just wondering if it's legal? You can e-mail from each e-mail adres you want to another!

What can the 'internet police' do against you if you put this script online?
Can they judge you for that?
Why has php no security around these things, they allow you to create fraud?


sendmail.php:

<?
$sender = $_REQUEST['sender'] ;
$receiver = $_REQUEST['receiver'] ;
$subj = $_REQUEST['subj'] ;
$message = $_REQUEST['message'] ;

mail( "$receiver", "$onderwerp",
$message, "From: $sender" );
?>


and the html file:

<html>
<head>
<title>
</title>
</head>
<body>
<form method="post" action="sendmail.php">
From (email): <input name="sender" type="text"><br>
To (email): <input name="receiver" type="text"><br>
Subject: <input name="subj" type="text"><br>

Message:<br>
<textarea name="message" rows="15" cols="40">
</textarea><br>
<input type="submit">
</form>
</body>
</html>
__________________

Please login or register to view this content. Registration is FREE

Last edited by Bulevardi; 08-14-2007 at 10:05 AM..
Bulevardi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-14-2007, 10:08 AM Re: Is it legal script?
Ultra Talker

Posts: 483
Trades: 0
It allows you to do that because some people need to be able to do that. Just because you can't see a legal reason to do it doesn't mean there isn't one and besides, why should a programming language set up artificial constraints purely for legal reasons?

Other than that... this is not a PHP thing. You've been able to fake mails for years through various options (hell, I believe my mail client can do it all through the GUI). The 'sender' value on an email has NEVER been secure or reliable (there's a reason spam is so hard to stop...).

Finally, saying 'the internet police' is just stupid and makes you sound naive. No-one will really care if you put the script on your server except for the hosting company (it's probably against their TOS)...
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 08-14-2007, 10:20 AM Re: Is it legal script?
Skilled Talker

Posts: 84
Location: Brussels, Belgium
Trades: 0
Well, thanks anyway for your information.
I'm just a n00b in php, trying things out (what you guys already did years ago).
But for me it's new, and I was just wondering if someone can put you responsible for putting bad scripts online.
__________________

Please login or register to view this content. Registration is FREE
Bulevardi is offline
Reply With Quote
View Public Profile
 
Old 08-16-2007, 01:03 AM Re: Is it legal script?
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
You can not make a set of given instructions illegal and if they did make it illegal it would do no good.
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Reply     « Reply to Is it legal script?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14424 seconds with 12 queries