Previous Thread
Next Thread
Print Thread
Rate Thread
#102659 05/01/2001 9:10 AM
Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
Hi, sorry if this is a little bit off-topic!

But I have a little cgi-request. I'm the 'designer' of my local soccer club, and need to save 3 variable into an file who are submitted by a form.

The 3 variable are called: $counter, $date & $kind.

They have to be saved like this into 'include.txt'
Code
code:

I need it this way, because I'd like to use 'include.txt' to SSI it into every page of the site.

Could someone help me with this???

Bob Day
[email protected]

Sponsored Links
#102660 05/01/2001 9:55 AM
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
Joined: Sep 2000
Posts: 755
That's a very, very basic operation to perform. Please have a look at this tutorial for an overview of the basics. You'll want to read about opening files and writing to them.

--mark


"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
#102661 05/01/2001 10:38 AM
Joined: Feb 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 2
I know, that's I ask if someone would write it for me, because I have to take very much time for it to learn it first

Thanks anywayz

#102662 05/02/2001 1:23 AM
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
It doesnt take you very long to lean how to read/write to files in perl. Maybe 30 mins if that! Look for some examples on the net and go from there.

basically o open the file, print to it and close it
eg
open (MYFILE, ">>/usr/myfile.me");
print MYFILE "This is a line of text that is written in my file";
close (MYFILE);

How hard is that?


I can't afford a good signature editor frown

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4033
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 24
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)