UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 19th February 2003, 12:02 PM   #1 (permalink)
craig
Registered User
 
Join Date: Feb 2003
Location: barcelona
Posts: 4
help with perl

someone offered to help with perl sometime back before xmas and i can't find their post...

a friend developed a simple perlscript for me that parses a form, sends the content by email and adds the content to a flatfile(.txt) for later addition into a database.

it works a dream, is very clean and has the advantage of keeping email addresses off the html page.

when i started using ukhosting i had problems getting this to work, before i had the script in the cgi-bin and with uk it must be in the perl directory. (thanks simon)

my friend no longer talks to me (well really he now has a full-time job-thanks adam) and i'm not confident it is working properly or is as secure as it should be.

i'm a commercial website developer and aren't up to this, can some perlwiz out their lend me a hand?

ps i'm happy to share this script with anyone with UKH.
__________________
the rain in spain falls mainly when i'm walking the kids to school
craig is offline   Reply With Quote
Old 19th February 2003, 02:49 PM   #2 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:help with perl

Who is UKHosting?

Personally I dont have a clue about Perl and favour PHP everytime, but i will ask a few people if they can help you.
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 19th February 2003, 04:11 PM   #3 (permalink)
craig
Registered User
 
Join Date: Feb 2003
Location: barcelona
Posts: 4
Re:help with perl

UK hosting is this great hosting company i found at webhostingtalk.com

they also go by the name of unitedhosting.co.uk
__________________
the rain in spain falls mainly when i'm walking the kids to school
craig is offline   Reply With Quote
Old 19th February 2003, 04:13 PM   #4 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:help with perl

oh, so its us
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 19th February 2003, 04:44 PM   #5 (permalink)
evo4ever
Registered User
 
Join Date: Jan 2003
Location: Liverpool, UK
Posts: 95
Re:help with perl

I can create you a PHP Mailer if you want. Give me your specs and ill work on it righ away.
__________________
::Programming Guru::
->Services<-
evo4ever is offline   Reply With Quote
Old 19th February 2003, 04:45 PM   #6 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:help with perl

pfft! Where is our IP manager first!
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 19th February 2003, 04:55 PM   #7 (permalink)
craig
Registered User
 
Join Date: Feb 2003
Location: barcelona
Posts: 4
Re:help with perl

thanks evo4ever, i appreciate the offer.

i've had a quick look at some basic PHP tutorials and the disadvantage of using PHP here is that the recipient's email address is embedded in the HTML page.

is there a way around this (to avoid spiderbots)?
__________________
the rain in spain falls mainly when i'm walking the kids to school
craig is offline   Reply With Quote
Old 19th February 2003, 05:04 PM   #8 (permalink)
UH-Matt
Administrator
 
UH-Matt's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 8,135
Re:help with perl

Store the email address in a MySQL table
__________________
.
Matt
UnitedHosting Staff

For official support please use our helpdesk at UnitedSupport.co.uk

UnitedHosting proudly hosting more than 20,000 sites since 1998.
UH-Matt is offline   Reply With Quote
Old 19th February 2003, 06:18 PM   #9 (permalink)
craig
Registered User
 
Join Date: Feb 2003
Location: barcelona
Posts: 4
Re:help with perl

[quote author=evo4ever link=board=7;threadid=407;start=0#msg2502 date=1045673072]
I can create you a PHP Mailer if you want. Give me your specs and ill work on it righ away.
[/quote]

evo4ever,
i just emailed you and it bounced ??
__________________
the rain in spain falls mainly when i'm walking the kids to school
craig is offline   Reply With Quote
Old 19th February 2003, 06:41 PM   #10 (permalink)
Euge
Registered User
 
Euge's Avatar
 
Join Date: Feb 2003
Location: Lost in confusion
Posts: 700
Re:help with perl

[quote author=craig link=board=7;threadid=407;start=0#msg2506 date=1045673711]
i've had a quick look at some basic PHP tutorials and the disadvantage of using PHP here is that the recipient's email address is embedded in the HTML page.

is there a way around this (to avoid spiderbots)?
[/quote]
Just because its in the php code doesn't mean its in the html. php is server-side so anything inside &lt;?php ?&gt; is not sent to the client. For example, replace your email address in the below code, run it, then view the source. The email address is never received by the browser and will never be found by spiders.

Code:
&lt;?php
$sendAddr = 'your@emailaddress.com';
$subject = 'Mailed from PHP script';
$message = 'This is a test message.';
$fromAddr = 'nobody@yourdomain.com';
mail($sendAddr, $subject, $message, &quot;From: $fromAddr&quot;);
?&gt;
&lt;!-- Notice no code is sent above this line --&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Test Email&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
Email sent
&lt;/body&gt;
&lt;/html&gt;
Euge is offline   Reply With Quote
Old 19th February 2003, 10:39 PM   #11 (permalink)
evo4ever
Registered User
 
Join Date: Jan 2003
Location: Liverpool, UK
Posts: 95
Re:help with perl

[quote author=craig link=board=7;threadid=407;start=0#msg2510 date=1045678736]
[quote author=evo4ever link=board=7;threadid=407;start=0#msg2502 date=1045673072]
I can create you a PHP Mailer if you want. Give me your specs and ill work on it righ away.
[/quote]

evo4ever,
i just emailed you and it bounced ??
[/quote]

My email addr is evo4ever@phpevo.com it isnt tyrannus_eminence@btopenworld.com anymore
__________________
::Programming Guru::
->Services<-
evo4ever is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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


All times are GMT. The time now is 08:29 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309