Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2003-12-06, 01:06 PM   #1
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
Help, what's this?

I'm trying to fix a broken click counter using my severly limited knowledge of programming. I'm trying to read a file, but when I open it, I get jibberish, like squares and y's with dots over them and other wired characters. The file has a .pl extension, so I thought it would be a perl file. All I need to do is determine where it's looking for some other files, so I can put them there.

Thanks,
SS
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2003-12-07, 05:11 AM   #2
Woff
Rock stars ... is there anything they don't know?
 
Join Date: Aug 2003
Posts: 10
Try opening the file in WordPad, the gibberish you see is newlines etc., which dont always display in .pl in notepad.

Woff is offline   Reply With Quote
Old 2003-12-07, 07:11 AM   #3
urb
All the way from Room 101
 
urb's Avatar
 
Join Date: Aug 2003
Posts: 3,557
Send a message via ICQ to urb
Notepad sometimes does strange things.

Here's a free download of Textpad which is the best (IMO) text editor and will not mess up your code.

It also has great search and replace and spell checker + a load of other useful stuff for programming in php etc...
__________________
urb is offline   Reply With Quote
Old 2003-12-07, 08:03 PM   #4
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
Well, I tried Textpad, and no joy. Cool editor though. I think I'll keep it.

Could this stuff be a programming language that needs a special editor to read. It's not just a few strange characters, it's most of them, with a few plain english words tossed in. I thought it may be the way I was downloading, so I tried different modes, and even using vi on the server. Nothing but hieroglyphics.
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2003-12-08, 05:03 AM   #5
urb
All the way from Room 101
 
urb's Avatar
 
Join Date: Aug 2003
Posts: 3,557
Send a message via ICQ to urb
Is this a perl file you are trying to edit? If it is, then have you saved it in notepad? Coz that sometimes messes up the code.

If there's a version untouched on the server download it in ASCII mode (depending on how your FTP client is set).

If that doesn't work, then maybe you could PM the file to me.
__________________
urb is offline   Reply With Quote
Old 2003-12-08, 09:10 AM   #6
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
Hey Urb,

I assume it's a perl file, but only because of the .pl extenstion. I don't know how it was originally created and saved, but notepad is a good bet. I tried downloading it in ascii mode, but still got the same thing.
I don't see any way to attatch it to a pm. I can just send the contents of the file, but I don't think that would help. You'd just get this kind of goop.
WVS‰Òu‹^ü|ž‰=*œ…Û~)ƒ}
The more I look at this, the more it feels like I'm just trying to read a file using an editor that's not compatible with the one it was created in.
Is there another way I can send it to you, email, ICQ?
Thanks for the help

SS
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2003-12-08, 09:18 AM   #7
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Looks like you are trying to edit a binary that has been compiled which you can't do.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-12-08, 09:57 AM   #8
urb
All the way from Room 101
 
urb's Avatar
 
Join Date: Aug 2003
Posts: 3,557
Send a message via ICQ to urb
As Cleo said, it looks compiled, so your best bet is to contact the programmer who installed it on the server.
__________________
urb is offline   Reply With Quote
Old 2003-12-08, 10:13 AM   #9
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
Yeah, that's probably best.

One last question. If it's a compiled binary, then it could have been uploaded to any folder on the server, and then compiled to the folder it's in now. Is this correct? Should there be, somewhere, a file that I can read or edit, and then recompile if necessary.

OK, that's two questions.

Thanks guys.
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2003-12-08, 10:19 AM   #10
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
No that just means that it was put through a compiler before it was given to you.

A compiler is an application that a programer uses after they write the software that, errr, well it compiles it.

Open up something like Photoshop in a text editor and you will see a big screen a gobblerly goop, that is a compiled application.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-12-08, 11:06 AM   #11
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
OK, thanks Cleo.
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Old 2003-12-09, 06:46 PM   #12
venturi
No offence Apu, but when they were handing out religions you must have been out taking a whizz
 
Join Date: Apr 2003
Location: An Oasis atop a High Desert Mesa
Posts: 282
Send a message via ICQ to venturi
I agree, it's probably been compiled or encrypted. If you have SSH/telnet access on your server you can find out what it is by typing (in the directory where it resides) "file thisfile.pl" without the quotes and the system will tell you what kind of file it thinks it is.
venturi is offline   Reply With Quote
Old 2003-12-09, 08:03 PM   #13
spacemanspiff
Where there's a will, I want to be in it.
 
spacemanspiff's Avatar
 
Join Date: Aug 2003
Location: Looz-e-anna
Posts: 1,015
Send a message via ICQ to spacemanspiff
It is a compiled program. The tech guy at our host figured it out. He even got the program working by executing the program from the command line and looking for what wasn't working. Apparently it was a module that wasn't compatible with apache 2.

Mystery solved. Many, many hours of work narrowly averted.

Thanks to all who kindly offered assistance.

SS
__________________
Submit your free sites to Free Sex Pics
spacemanspiff is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:07 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
İ Greenguy Marketing Inc