Find Jobs
Hire Freelancers

Convert Perl Coding to PHP

$30-100 USD

In Progress
Posted almost 19 years ago

$30-100 USD

Paid on delivery
I'm using a basic html form with this call: Now, I use a perl tracking script for my referrers that attaches a cookie. Right now, I'm using a program that someone made that works like this. I link to a script say [login to view URL] that has this coding: #!/usr/bin/perl require('/home/[login to view URL]'); $SECUREURL = '[login to view URL]'; $MyCk = CookieGet($CookieID); if ($MyCk eq "1" && $Cookies{$CookieID} ne "") { $Referrer = $Cookies{$CookieID}; $Referrer =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; } elsif ($MyCk eq "1" && $Cookies{$CookieID} eq "") { $Referrer = $DefaultID; } elsif ($MyCk ne "1" && $ENV{'QUERY_STRING'}) { $Referrer = $ENV{'QUERY_STRING'}; } else { $Referrer = $DefaultID; } if ($Referrer eq "") { $Referrer = $DefaultID; } $NEWURL = $SECUREURL . '?' . $Referrer; print "Location: $NEWURLnn"; exit(0); Now, it refers to a file named [login to view URL], which it's code says this: #!/usr/bin/perl require('/home/[login to view URL]'); $ORDERFORM = '/home/[login to view URL]'; print "Content-Type: text/htmlnn"; if ($ENV{'QUERY_STRING'}) { $Referrer = $ENV{'QUERY_STRING'}; $Referrer =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; } elsif (CookieGet($CookieID) && $Cookies{$CookieID} ne "") { $Referrer = $Cookies{$CookieID}; } else { $Referrer = $DefaultID; } if ($Referrer eq "") { $Referrer = $DefaultID; } open(ORDER, "$ORDERFORM") || print "Unable to open Order Form for reading: $!nn"; @File=(); close(ORDER); foreach $line (@File) { if ($line =~ /<FORM/gi) { print $line . "nn"; } else { print $line; } } exit(0); Now, what it does is places this line of coding into the html page, which is what I want as I already have configured my php script to collect it: What I need is that coding to be converted into php and placed into the php script I'm using to send the html form. That way when the page is submitted, part of the scripts job is to collect the cookie code from the customer's computer and paste it into the email along with the rest of the data sent in the form. Can anyone give me a bid? Thanks Curtis
Project ID: 18243

About the project

7 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
You got one!
$75 USD in 1 day
5.0 (53 reviews)
5.8
5.8
7 freelancers are bidding on average $70 USD for this job
User Avatar
hi i can help you to get it done.
$100 USD in 2 days
4.9 (574 reviews)
8.7
8.7
User Avatar
I can make this in 5 days or less. Good luck!
$45 USD in 5 days
5.0 (5 reviews)
3.8
3.8
User Avatar
can be done....No probs
$70 USD in 1 day
4.5 (2 reviews)
3.3
3.3
User Avatar
How long have you wanted to convert this script? When you are ready to convert the script, choose my bid and we can get started. Only when you are ready.
$100 USD in 14 days
2.8 (12 reviews)
4.8
4.8

About the client

Flag of UNITED STATES
Huntsville, United States
5.0
2
Member since May 20, 2005

Client Verification

Other jobs from this client

Http_Referrer PHP Coding
$30-250 USD
Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.