Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 2
I want to make a cgi that stores lines into a text file.

the lines should look like this

Filename##Uploadersname##discription here with
tags enabled##1 the links##

These lines must be stores in a file called: applist.sw.

I need a form for this so members can fill in their uploaders and post them directally on the board.

I managed to create a cgi script.. watch it here: http://www.l4sh3r.net/~uf/apps/ddl.cgi
This cgi reads the files from applist.sw and prints them on the screen. So far so good. I must edit the files manualy because I can't seem to create a form thats stores lines like

12

into the lines like the one above.
I am not experienced with this writing to file stuff. Can someone write an example for me thats writes lines like the my first example line?

Any help would be appreciated.

DL

ps. Maybe this is usefull, I tried to edit this speedywarez ddl script that stores it in almost the same way as I want. But it just won't work for me (rookie me):


Quote
quote:
This message has been edited by DeathLoad on October 18, 2000 at 05:19 AM

Sponsored Links
Joined: Jan 2000
Posts: 825
Member / CodeFixer
Member / CodeFixer
Offline
Joined: Jan 2000
Posts: 825
I don't think anyone is going to help you write a script for a warez site.

------------------
Peace Out,
DJLunacy
www.mp3.com/voi

Joined: Oct 2000
Posts: 2
Junior Member
Junior Member
Offline
Joined: Oct 2000
Posts: 2
Doesn't matter, I learned some new stuf now, and was able to fix the script. I used perlbuilder to create a new form and everything went fine. I can't seem to fix one thing

When I display a list like this:

============================================
foreach $line(@dbfile) {

($appname,$upname,$urls) =split(/##/, $line);
print <





$appname $urls $upname

EOF

##
}#
##
=======================================

how can I make the files sort themselves alphabetically? so the program checks appname, and then sort the list?
thats my little problem.

Thanks for any suggestions.

DeathLoad

This message has been edited by DeathLoad on October 23, 2000 at 11:06 AM


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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)