spy_charly
Apr 2 2006, 06:20 AM
hello guys, it's been a couple of days that i dont know where this script must be placed and in which format...i know it is from perl but what format should i use .pl or .cgi, yep i am a newbie i also saw that there is a folder in my directory called cgi-bin, do i have tu put it there? QUOTE #!/usr/bin/perl
$recipient = "me@somemail.com"; # watch out for backslash $mail = "/usr/sbin/sendmail";
if($ENV{REQUEST_METHOD} eq 'POST') { read STDIN, $buffer, $ENV{CONTENT_LENGTH}; } else { $buffer = $ENV{QUERY_STRING}; } foreach $pair (split /&/, $buffer) { ($key, $value) = split /=/, $pair, 2; $value =~tr/+/ /; $value =~ s/%([0-9a-fA-F]{2})/chr(hex($1))/eg; $FORM{$key} = $value; } ## special treatment for the comments field $FORM{comments} =~s/rn?/n/sg; ## here comes your form open MAIL, "|$mail $recipient"; print MAIL <<END; From: webserver@yoursite.com Subject: Contact Form
Contact form filled by $FORM{name} $FORM{address} phone: $FORM{phone} fax: $FORM{fax}
Comments: $FORM{comments} END if(!close MAIL) { print "(anti-spam-content-type:) text/htmlnn"; print "status=fail&error=Your+mail+could+not+be+sent"; } else { print "(anti-spam-content-type:) text/htmlnn"; print "status=ok"; }
Reply
BuffaloHELP
Apr 2 2006, 06:33 AM
Simply the answer is yes. It makes calling your script easier. However, if I'm not mistaken you're trying to send information over the email using form? There's built-in script called cgimail and you can find a short tutorial here: How To Use Trap17 Cgi Formmail
Reply
spy_charly
Apr 3 2006, 02:57 AM
thanx boss, actually i was trying to send the Receipent from flash and i thought that using another script it could be possible... But what you provided seems to be very helpful, btw i set a serach on the forum for that topic but i didnt find anything, i guess i will have to be very careful next time... and if i get it working i will show it to you EDITED: i got it working boss, but when it arrives at the mail it arrives like "myname@gamma.xisto.com" is there anyway i can solv this? replacing the account name with my name?
Reply
BuffaloHELP
Apr 3 2006, 05:28 AM
QUOTE(spy_charly @ Apr 2 2006, 10:57 PM)  but when it arrives at the mail it arrives like "myname@gamma.xisto.com" is there anyway i can solv this?
Well that's better than myname@someusinversity.department.edu before...  If you are the only recipient to submitted email then I guess it really does not matter. However, since the mail service is through gamma.xisto.com and our hosting server's name is gamma, I personally do not have the control over that. I would suggest you contact OpaQue or send queries to Helpdesk (xisto.com/helpdesk) and see if there's a way of doing it.
Reply
gaea
Apr 3 2006, 07:00 AM
QUOTE(spy_charly @ Apr 3 2006, 02:57 AM)  EDITED: i got it working boss, but when it arrives at the mail it arrives like "myname@gamma.xisto.com" is there anyway i can solv this? replacing the account name with my name? The is the default mailserver. If you it's displaying as that the "from" field in your script is probably misformatted.
Reply
tuddy
Apr 3 2006, 10:18 AM
Following on from gaea, I have my own question, is it possible to have a code line in there where you can tell the form, which mail server to use and what the email it should be replyed to and if you can put a name instead of an email address? I know you can do it in PHP, but is cgimail that flexible?
Reply
spy_charly
Apr 3 2006, 08:57 PM
hi tudy!, i dont think you can do it, since it is already done by the cgi script, i tried downloading it but notepad and nor Dreamweaver could open it... my suggestion anyway would be to download the script manually and set the preferences manually as well...the problem is that i dont know about cgi and that makes more the things more difficult...
Reply
Similar Topics
Keywords : cgi files script belong- Phpizabi Social Network Script
- (1)
- Could Someone Make A Php Script For Me?
- Script to manage clans and players (3)
Does someone know a script where you can 1. Add clans to a roster 2. Edit clans on a roster 3. Add
players too a clan 4. Edit players 5. Schedule matches 6. Add clan Leaders to manage their own clan
+ members 7. Add members to edit their own information And maybe some sort of scoreboard integrated
where you can put Wins, Draws and loses and that automaticly puts best clans on the top? If there
isnt such a script could someone create 1 for me? (its for a league ^^)...
Guestbook (cgi-script) Problems
- Do u know much bout chmod and cgi-cripts? (1)
Hi! I'd like to make a guestbook with a cgi-script I found at Lissa Explains it All .
There were instruction bout how to install this gbook: click here QUOTE Active Guestbook
Unzip the file, you'll find 4 separate files: guestbook.cgi mail.gif url.gif readme.txt 1.
Open guestbook.cgi in a plain text editor like notepad. Find out your path to perl from your Web
host, and change the first line to reflect that. The default setting, #!/usr/bin/perl, usually
works for most servers. If not, you can try #!/usr/local/bin/perl. Save your changes. ...
Css Problem On Website
- I've uploaded the html/css files but the css isn't working/ (8)
Help? I've uploaded all of the html files and css files into the public_html folder , but the
css isn't taking effect. I've checked both the css and te html files , nothing wrong with
them. Halp me? www.genesis.trap17.com/home.html /sad.gif" style="vertical-align:middle" emoid=":("
border="0" alt="sad.gif" />...
Where Do I Upload My Ftp Files? [resolved]
- As in, which directory? (1)
I recently got approved for hosting. I have an account right now, but I don't know which
directory to post my FTP stuff in. (I don't know if this is in support or not; the search
results didn't return anything.) I remember with my last host that had CPanel that you had to
upload it into the "public_html" folder. So I do that, or do I just upload it into the root
directory? Thanks in advance! (EDIT: Oh, never mind, it is /public_html.)...
Upload Script To Transfer Files From Laptop To Desktop
- (3)
Would it be allowed to have an upload script to transfer text files (homework) from laptop to
desktop? Because my printer is set up from my desktop, and most of my homework is done on my laptop.
So would this be allowed? Thanks....
Have There Been Any Changes?
- PHP script not working anymore. (1)
Hi, I was wondering if any changes have been made to the PHP and/or MySQL section at trap 17. All of
a sudden a PHP script is beginneng to give errors where it never did before. I have a greeting card
system on my website, and all of a sudden, when I try to add a card I get a load of errors, while I
have not changed any code. These ar erthe errors i am getting: CODE Warning:
imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions
in /home/mrdee/public_html/kaart/admin/classes/class_images.inc.php on line 200 Warning&...
Transferring Files From One Host To Another
- Take my site to trap17 (8)
As I said, I had to move my web site away from Trap17 temporarily because I had ran out of disk
space. Now, when my upgrade is finalised, I would like to ask for a little assistance. The provider
I will be moving my site from, back to Trap17 also uses Cpanel, and the admin let me know to do a
backup and that backup could be simply transferred via FTP to my new provider. The backup includes
all my files and MySQL data, in other words, the whole web site. It is in a .tar.gz format. How do I
get all this across? Do I 'unzip' the file and then transfer them bit by bi...
Ftp Trap17 Account Help Please
- cPanel issues and can't upload files (14)
A few days ago I tried to log into cPanel on my site ( www.liamssite.trap17.com ) and it didnt work.
Also, whenever I try to upload a file (I use filezilla) I get this: QUOTE Status: Resolving
IP-Address for liamssite.trap17.com Status: Connecting to 64.69.46.210:21... Status: Connection
established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd ----------
Response: 220-You are user number 2 of 50 allowed. Response: 220-Local time is now 11:31. Server
port: 21. Response: 220-This is a private system - No anonymous login Response: 220-...
Uploading Files And Connecting To Ftp
- using WsFtppro (27)
The fastest, most reliable way to upload or download files is through FTP. If you don't already
have your own Web page, read our reviews of over 80 free Webhost. If you don't have an FTP
client, Download WS_FTP Pro now. Step 1 - Connect your computer to the Internet. Step 2 - Launch
WS_FTP Pro by clicking on the WS_FTP Pro icon that's on your desktop. If you do not have a
WS_FTP Pro icon on your desktop, click on the Start button and then select Programs, then WS_FTP,
and then WS_FTP Pro. Step 3 - Connecting to an FTP site: When you open WS_FTP Pro, you...
Request For Coders (lots To Do)
- Assisting on the Development of a Forum Script (1)
I recently got involved in a Forum software script which is being developed and thought I should let
everyone know that they need some assistance in the PHP, MySql, Html, and CSS areas. Also, some
Visual Designers would be quite useful. AEF Forum Software is the name of the project. It is
presently in version 1.0.3, and have some pretty cool features already, but in order to advance in
its standings against such Boards as IPB, phpbb, Yabb, etc, more features and Themes are required.
Good bunch of people working hard, but just not enough of us to do everything. Come h...
Can't Find My Fantastico Installation!
- Where is the files I installed (2)
Before anyone points it out, I searched this forum for similar topics and couldn't find any, I
checked the FAQ's and couldn't find any one of them that addresses my problem: I just
installed joomla in a sub directory (public_html/Joomla) and I wanted to change some stuff so I went
into my FTP program and connected to my account, I checked, doubled checked and triple checked all
the public html/FTP/WWW folders and I couldn't find the joomla installation, the site come up
fine in browser but I can't seem to find the directory of where it is located, t...
Help! I Deleted All My Files!
- (5)
Hi guys, i got hosted yesterday and i loged on to my file manager and deleted all the files in there
i replaced them with my site including the index.htm page and now when i try to view it it says no
page found!!! i dont no why this is as with my site when i payed for hosting from
one.net it was as simple as using the run program and typing in mt ftp:\\ account copy the
index.htm file and i was up and running! Can anyone help with what i have done wrong please
thank you. /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sa...
Different Log In Script...
- (6)
Ok well i picked out a new log in script..
http://evolt.org/PHP-Login-System-with-Adm...tures#authorbio And now I get errors, like i had
before I guess, but I still get errors. I installed everything properly, and idk why I get these
errors.. on login screen: QUOTE Warning: session_start() : Cannot send session cache limiter
- headers already sent (output started at /home/enrit/public_html/include/constants.php:94) in
/home/enrit/public_html/include/session.php on line 46 and on registering screen: QUOTE
Warning: session_start() : Cannot send session...
Need Help Installing Smf
- It's not finding the files I upload. (5)
I downloaded the zip version of the SMF, from www.simplemachines.org I am using SmartFTP, to upload
the files. I created a folder, named Forum, and uploaded all the SMF files there. On the
simplemachines site, it tells me to type my site url followed by /forum/install.php, or whatever the
directory I installed it on is called. I tried that, and I come up with this on the page. Not
Found The requested URL /forum/smf1.1/install.php was not found on this server. Additionally, a 404
Not Found error was encountered while trying to use an ErrorDocument to handle the re...
Accidentally Deleted Pre-set Files
- (3)
I made a bo-bo lol I've accidentally deleted those pre-set files that are in the file manager
when you first register, you know those _vti thingy magiggers, well i accidentally deleted them, so
i was wondering if an admin can re-insert them for me /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> or re-set my hosting whatever you have to do.... thanks
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />...
Problems With Deleting Files In My Account
- blendergalactica.com (3)
Suddenly all my file permission aren't writable in the Joomla directory. Furthermore, when I go
to delete old files or overwrite them, I get a varity of errors both in my FTP programs and using
the Cpanel flie manager. When I checked the needed directories file permission they read 777
(which is needed for installing components) yet when I got to access them they are unwritable. This
has just happened in the last day or so and the not being able to delete files mannual in the past
week. I get this error on changing file permissions: QUOTE FTP Error: Could ...
I Need Help Uploading The Install Files
- (3)
QUOTE Obtaining SMF You can download the latest beta from the download page on the
official Simple Machines website. There are a number of packages available, as this guide covers
fresh installs, you should download one of the "install" packages as these contain all the files
needed to get up and running. We suggest you download the zip option as this is most common and
therefore you are more likely to have the tools required to unzip it already installed on your
computer. Unzip the package, ensuring you keep the directory structure, if you are using Windows ...
Help With Running A Cgi Script
- (2)
i am having a problem running a cgi script written in perl in my site , the path to perl and file
permissions and anyother thing that may cause a problem i have checked and found none , the response
i get is 500 , internal server error ,i am pretty new to perl but i am sure it's nothin wrong
with the code , so if anybody can throw me a light on what may be wrong i will be most grateful
,thanks in anticipation...
Making The Files In File Manager Invisible
- (8)
i was wondering if there was a way, any way in the world, to make the files that were allready in
the file manager when we first signed up meaning these QUOTE _private _vti_bin _vti_cnf _vti_log
_vti_pvt _vti_txt cgi-bin dissaper.... because on my site, we made a sitemap
(http://hogwartsmagic.net/map/ezmap.php) and it shows those folders, and to make it less cluttered
we want to get rid of them, or make them invisible to the public.. is this possible? Topic closed
as requested ...
Question About Uploading Files
- im sorry if someone already has a thread on this (3)
I have been using Frontpage 2003 to make a website, it is basically complete but I need to know how
to upload the files. I have been playing around with the file manager and it seems like I have the
site there but in a very inefficient manner. Is there any way I can just use Frontpage to upload
the files and type in my password and username in Frontpage? If so, can you lead me to a thread that
explains it or tell me? If not, is there an easier way to upload files into the File Manager
other than picking them one-by-one? Thank you very much for your time.... I f...
Unzipping (untar) Tar Files
- (5)
How do I unzip TAR files on the server? Is there a specific program that does this? I don't want
to upload the little "module" packages one by one to the server because that will consume more
bandwidth. If there is a program that does this and it is freeware, please tell me where to get it
and what it generally does. I use ZipGenius 6 to open most of my compressed files, including TAR
files. If there is a better way to do this, tell me how to. Thanks...
Fantastic Script
- How ? (2)
Hi all iam sorry posting here but i think here admins read my post i write some script like famp3 ,
fanewsletter , famail and .... and i submit my script at hotscripts i want to know how can send my
script in Fantastic at cpanel for example phpbb it show in Fantastic or wordpress it show at
Fantastic and users can install script by 1 click i want my script locate at Fantastic with cpanel ?
cpanel admin or developers must add my script or server admin can add my script in Fantastic !
thanks...
Script Error With Domain Name Changing
- (8)
I am trying to change my domain name... and it is not working for me... CODE Warning:
mysql_real_escape_string(): Access denied for user: 'nobody@localhost'
(Using password: NO) in /home/trap17/public_html/process/changedomain.php on line 71
Warning: mysql_real_escape_string(): A link to the server could not be established
in /home/trap17/public_html/process/changedomain.php on line 71 Warning:
mysql_real_escape_string(): Access denied for user: 'nobody@localhost'
(Using passwo...
What Do 1st Files In Ftp Do?
- Is this right place to ask? (1)
Hello, Im new to this "creating a web site" thing... And I just got hosted by trap17... My
question is, is it possible to reset the ftp? I mean the ftp came with somethings in it; such as
public_html. To return the way it came to me... I dont have a problem right now, but Im just
curious. And by the way, the files that are existed at first place... What do they do? Rather then
providing intro page... Or those files are codes of cPanel ? *edited* thank you BuffaloHELP...
Problems With Ftp
- Can't upload files with ftp protocol (10)
I have a big problem uploading my website with the ftp protocol. I usually don't allow my ftp
client to act as a server, and most importantly, i don't let my ftp client to act as a server to
receive connections from the internet. But when i try to upload my files to my trap17 ftp account,
part of my free hosting account, my firewall is allways asking me if i want to allow my ftp client
to act as a server and if i allow it to receive connections from the internet. I don't think
that is normal, i use other free hosting servers and none of them ask to turn my...
Coppermine Photo Gallery - Security Alert
- For members using this script (1)
As reported: QUOTE TITLE: Coppermine Photo Gallery Multiple File Extensions Vulnerability
SECUNIA ADVISORY ID: SA20211 VERIFY ADVISORY: http://secunia.com/advisories/20211/ CRITICAL:
Moderately critical IMPACT: System access WHERE: From remote SOFTWARE: Coppermine Photo Gallery
1.x http://secunia.com/product/1427/ DESCRIPTION: A vulnerability has been reported in Coppermine
Photo Gallery, which can be exploited by malicious users to compromise a vulnerable system. The
vulnerability is caused due to an error in the handling of file uploads where a filenam...
Help In A Php Script
- (1)
i am having phpnuke in my site and one very important thing i need to have in my site is a
user's page where his profile and all his friends profiles will be appearing and he can add ,
delete or accept friends , i know php basics only so if i try to write the script myself ( i mean i
think i can do if i try ,like i have enabled images to be uploaded in sig for my phbb forum which by
default as you will be knowing only has text to be dispalyed as sig , and took me whole three days
to complete it , i also searched the net and downloaded some mods but none of them seeme...
Problem With Opening And Reading Files In Php
- access denied error using fopen etc... (4)
Hi all I'm having a problem when using php to read from a text file the error is this: CODE
failed to open stream: Permission denied in /home/shadyx/public_html/index.php And this
obviously stops fread and fwrite from working. the code i used for this is... CODE $handle
= fopen("ipstuffs/iplog.htm", "a"); fwrite($handle, "date:
$date <BR> $ip <BR>Referrer:
$refer_url<BR><HR><BR>"); fclose($handle); It
runs nicely on my x...
Adress Book Importer Script
- Required free (4)
can some one tell me where i can find a script in php , which imports the email adresses from adress
books and send them mail ?? for example in many community websites , there is an option that , if
some one gives his/her email and password..then they import the email adresses from that persons
adress book or tell that it was wrong password etc.....
Looking for cgi, files, script, belong
|
|
Searching Video's for cgi, files, script, belong
|
advertisement
|
|