Help, My Script Is not Doing work!
May 29th, 2008Here a listing of gratuities and fast one to confer with at two a.m. when youre nerve to lay your site to hump and that d*mn script merely habit work.
1. Get a short letter of the error message, and type it in Google. Go forth extinct your unequalled paths and file name calling. Individual else has held the like problem, and some decent person will have sent a resolution.
2. If it’s a server error, ingeminate what made the error. Go apace to the error log on your entanglement hosting control panel. Any clues there?
3. Say the README file. Have it open on-screen when you’re scene up the script.
4. Use a text editor like Wordpad or Notepad to redact scripts. Just place, your editor should not change anything beyond the bare text that you type on screen. Microsoft News will change your data formatting, with dysphoric issues.
5. Ward off wrap line of reasoning. Check that your editor is not set to do this.
6. Forefend putt fictional character like ” , ‘ ; in if you do not cognize what you’re making.
The server may say these as scheduling code. Apostrophes and early non-alphabet fictional character can be ‘escaped’ extinct of a script by putt a backward slash in front end of them.
7. Get the paths to requisite data files correct in the script itself and in the hypertext mark files mired. Telnet to your site, and use the pwd command: pwd somename (without the apostrophes) to bump where directories and programs are on your server.
8. Windows (DOS) may insert coach returns that cause faults in UNIX operating system. In Perl, You need to have a logical argument break after #!/usr/bin/perl. It seems to be there, but you may have to introduce it manually via Telnet. Otherwise you may get an error.
9. Licenses: Set permissions of books to 705 (e.g. ‘CHMOD 705 yourscript.cgi’ in a telnet academic session). CHMOD 606 for text files the script may need to say or compose to. CHMOD 707 any file or sub-directory the script author enquires you to. The remainder can ordinarily be went forth at the nonpayment 644.
(The exercise of 0 here in permissions is to halt citizenry in the like grouping as you glinting at your files).
10. Upload scripts in American Standard Code for Information Interchange mode only, or you’ll get mistakes in them (the text will be switched about if you upload in Binary).
FTP files with the propagations .tar.gz, .zip, and mental image files, in BINARY mode only.
11. Check whether you’ve laid a tracking forwardslash / where you’re not alleged to, or not infixed one when you’re called to!
12. Email addresses in a script may need a backwardslash earlier the @ to do work.
13. Do not change to a fault lots of thing at one time. Do the out minimum to get the script doing work, then change one matter at a clip.
Your ISP may as well be exploitation its cache of your entanglement page. Seek linking via some other ISP, or use a placeholder divine service like http://www.Anonymouse.ws to see your page.
15. The error ‘document comprises no data’ in your web browser unremarkably way a way or a data file name is incorrect. It can as well mean the data file you’re vocation is 0 bytes in size.
16. Do not assay scene scripts up when you’re hackneyed. If you’ve been doing work for 60 minutes, use up an interruption, or go to do it!
17. It’s a fact that, after all this, your script could have a glitch. Check any discourse board at the vendor’s site, or general webmaster assemblies, to realise if this is a mutual problem. Report just what jobs you’re having, and your server launch, to the software engineers. It’s improbable you’re the first person to have it.