Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by ETbyrne

  1. ETbyrne

    Uploading problem

    Thanks, that was what I needed! And by distorted I meant that it uploaded the file and it was the right hight and width, but the image was screwed up, like three times as bad as if you saved a .bmp with tons of detail as a .gif. x_x _______________________________________ You don't know me.
  2. ETbyrne

    Uploading problem

    Hi, I'm having a problem uploading a file using perl. I can get the file uploaded but it becomes distorted. Here's the uploading part of the script. open(OUT,">./mywebs/ETbyrne/youth/album/images/$random.jpg") or &error("Can not open outfile for writing: $!"); flock(OUT,LOCK_EX); my $file_len...
  3. ETbyrne

    Un-helpfull Error

    Also note: I think it might have something to do with the one of the subroutines but I'm not sure. _______________________________________ You don't know me.
  4. ETbyrne

    Un-helpfull Error

    Hi, I'm getting a pretty un-helpfull error from my a registration script I made. Here's the error: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Error 1 Here's the script: #!/usr/bin/perl -w use strict...
  5. ETbyrne

    Opening External Files With Perl

    Thanks everyone, it works now. :) _______________________________________ You don't know me.
  6. ETbyrne

    Opening External Files With Perl

    So how would I go threw the file and read it? The only way I know is looping, which requires the opening. open(FILE, "$feed") or die ("Can not open rss feed: $!"); seek(FILE,0,0); my @file = <FILE>; close FILE; foreach (@file) { print "$_"; } NOTE: I don't just want to print the file to...
  7. ETbyrne

    Opening External Files With Perl

    I tried this but I am getting an error. Here is my script: #!/usr/bin/perl -w use strict; use CGI qw(:standard); use Fcntl qw(:flock :seek); use LWP::Simple; use lib qq*./tylermenezes/lib/*; my $feedpath = param('feed') or die ('You have to select a feed!'); my $feed = get "$feedpath"; my...
  8. ETbyrne

    Opening External Files With Perl

    I have a script that takes a url that someone enters in it and then the script is then supposed to open the file that the url points to and read it. The problem is I am not sure how to do this because to use perls open command you have to enter the machine path to the file. Is there a way to...
  9. ETbyrne

    Pattern Matching

    I found out what it was. It was that I had to change open(FILE, ">>feed.rss"); to open(FILE, "+<feed.rss") _______________________________________ You don't know me.
  10. ETbyrne

    Pattern Matching

    Ok, I used both of them (that is the last two ones you posted) but it won't match <item>test</item> or anything else like that. _______________________________________ You don't know me.
  11. ETbyrne

    Pattern Matching

    Hi, I want to go threw a file until a line matches a pattern. It then prints that line and exits. The pattern I want to match is: <item>anything</item> Her is my script so far. #!/usr/bin/perl -w use strict; use CGI qw(:standard); use Fcntl qw(:flock :seek); open(FILE, ">>feed.rss") or die...
  12. ETbyrne

    Problem with grabing last ten lines.

    Thanks, it works now, but I kept one of the locks in so that the file newmaps.txt doesn't get corrupted when two people run the script at once. _______________________________________ You don't know me.
  13. ETbyrne

    Problem with grabing last ten lines.

    I'm having trouble printing the last ten lines from a text file to another text file. It works until it gets to the line 20 and I get this error... Use of uninitialized value in string at e:\0\74\38\237038\user\240783\htdocs\mywebs\ETbyrne\cgi-bin\redalert\ten_newest_maps.pl line 20. here's my...
  14. ETbyrne

    Odd Error

    I'm still getting that error. I've checked many times to make sure that the dir http://www.mywebsfree.com/ETbyrne/portal/portals does exist. I've tried a number of formats for finding the dir. Here they are. chdir "portals"; chdir ">>./mywebs/ETbyrne/portal/portals"; chdir...
  15. ETbyrne

    Odd Error

    Thanks for the heads up Kirsle. I have a section in my book about .htaccess. It is a little bit hard to follow though... I checked to see if it was a typo before I posted here, so that wasn't the problem. So you're saying is I put it in let's say ./home/random/dirs/$author/password.txt and...

Part and Inventory Search

Back
Top