|
|
Joined: Jan 2001
Posts: 2
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 2 |
I know I have done this in the past, but I can't seem to get it right this time. What I want to do is open up a .html file and wherever it says it will print a new line on top of the others.
|
|
|
|
Joined: Aug 2000
Posts: 37
Member
|
Member
Joined: Aug 2000
Posts: 37 |
ummm... i dont really know what you mean... maybe you could elaborate a little more ------------------ check out my site at http://www.ultimategamers2000.com
|
|
|
|
Joined: Jan 2001
Posts: 2
Junior Member
|
Junior Member
Joined: Jan 2001
Posts: 2 |
Alright. I have my index.html file. Int hat file I have the code " ". What I want to do it create a cgi script that will open up teh index file, and print text below the "" line. I still don't know if I am making perfect since but hopefully that cleared some things up.
|
|
|
|
Joined: Sep 2000
Posts: 138
Member
|
Member
Joined: Sep 2000
Posts: 138 |
open(INDEX,"index.html")or die $!; @lines = ; foreach $line (@lines) { if($line =~ //) { print INDEX "$newupdate"; } } close(INDEX)or die $!;
I think...
------------------

This message has been edited by Em8 on January 12, 2001 at 04:52 PM
|
|
|
|
Joined: Sep 2000
Posts: 138
Member
|
Member
Joined: Sep 2000
Posts: 138 |
Wait thats going to replace that line. Try: ------------------ This message has been edited by Em8 on January 12, 2001 at 08:19 PM
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|