![]() |
Script tutorials
Hi
I don't know a damn thing about scripting. Does anyone know of a good resource for beginners, that has tutorials? |
Quote:
|
... and what kind of scripting - which language?
JavaScript? BASH Script? Powershell Script? Even PHP is a scripting language... |
Quote:
http://c.learncodethehardway.org/boo...rd-waypa1.html |
Thanks for your replies. What I am after is how to use scripts, written in any scripting language. The instructions I have seen so far, appear to be written for people who know what they are doing.
Sorry, I didn't explain myself very well. |
Quote:
Are you trying to just execute it or configure it to a specific purpose? |
I just want to know how to execute a script
|
Quote:
Some more complicated scripts require a slight programming knowledge but, as has already been posted, we need to know what language they are in. Asking for instructions for all programming languages is like asking a chef to give you a recipe that will make all types of food! However if you have some specific instruction that you do not understand, post it here and someone will probably be able to explain it for you. |
Okay thanks, your reply has answered a couple of things. I will re read the script and come back.
Many thanks |
Okay, so I am trying to install rstgp script which is supposed to be very basic. I use Core FTP
The instructions are as follows : Step 1. Set permissions on your ROOT(public_html) directory to "0777" and upload file "rstgp_install.php" on your ROOT directory. I do not have a public_html file, so I made one. (Go Daddy) when I checked my FTP for info on setting permissions, it had "comming soon" written under it. I looked at the permissions on my hosting, and they just say the file is viewable to the public. So I don't know what to do next? Could anyone please explain? Searching on google did not help me. |
PHP is not a language I know much about (I use Perl as it runs faster, so I never really learnt more than the most basic PHP) however WRT "permissions":
Quote:
Quote:
This varies as to what FTP client you use (I'll say further down why I'm assuming it won't be Core FTP). On the FTP clients I have used you select the directory folder, then select "change permissions" either from a menu, from a button on the software window, or by right clicking on the directory name - if you don't have the instruction file for your FTP client, simply try all these and look for an option that says "change permissions" or "set permissions" or similar. Once you have found this you may be lucky and your FTP client may simply allow you to set it to 777, but it may be called something else. It may say "allow all", or you may have to set three different things, which will be labelled; owner, group, and other to 7 (which is basically what 777 means "owner=7, group=7, other=7), or, if you are really unlucky, each of owner, group, and other may have an option of "read, write, and execute for each of owner, group, and other, all 9 of which you will have to set to "allow" or "yes" or "OK" or whatever terminology your FTP client uses. Sorry I am not being very clear on this part, but it depends on which FTP client you use. So if you cannot see how to set permissions to 777, you will have to read the help file on your FTP client, to see how that program expects you to do it. Quote:
Quote:
Quote:
Sorry I'm being more negative than helpful, but if I am reading your post correctly your problem is not that you do not understand how to use scripts, but that you don't have the right tools to use them. So any attempt you make will fail. This is not only bad because it means the site won't work, but because it will confuse you when you do the right thing and everything fails, you will probably assume the fault is with your knowledge and give up. So the first two things you need to do are: 1) Get a FTP client (FTP software) that can change permissions. 2) Get a proper host, NOT GoDaddy. |
Addenda to my last post:
I just downloaded the free version of the script to try it for you. I did not get very far (see point 2 for the reason) but trying it did tell me three things: 1) Don't worry too much about my comment "I'd never set any folder to 777" because this appears to be only while you set it up, afterwards it tells you to reset directory permissions to a more common (and safer) setting. However, for God's sake don't forget to reset it when they say so, if you leave it at 777 the site will probably still work, but your domain will be open for hackers!. 2) When you get a new FTP client (FTP software), don't just check it allows you to change permissions, make sure it allows you to do this to DIRECTORIES (FOLDERS). I'm using my old XP box at the moment, which only has a very old free FTP client on it, and trying to run your script I found out that it only allows me to change permissions on files and not on directories (folders), that will be no good to you. You need one that allows you to change the permissions on directories (folders). 3) When you do finally get the permissions thing worked out, I think you are home and dry. I could not create a site, because I cannot change permissions on directories on this computer, and I don't have time to fire up my Vista box at the moment, but I got as far as starting the set up, and it looks like a really easy script to use, probably great for beginners. |
Thanks very much for your reply.
I will take your advice about the FTP and Go Daddy, whom have never been helpful when it comes to support. I started using them on the advice of a webmaster when I first thought of trying Adult! Thanks for the tip! I have tried installing the script, and have not got it working, so will make the changes you suggest and try again. Thanks for your time and knowledge, appreciated.|thumb |
Hi ecchi
I have changed my hosting provider, found out how to change permissions on my FTP. The script I was trying out, I do not need - I was using it to practise with as it is supposed to be simple. I have a fetish site, and after reading the "something different "(your sig) I want to use your script in perl. Perl and SSI are enabled on my new hosting. The path to perl is the same as you used. I have triple checked and re done everything and it is not appearing on my page, so a few questions : 1. I have set the executable permissions on the script. Must I also set the permissions on CGI? 2. I made a new page for this script to run on (blush - I use Front Page 2002!) Do I insert the code for call to SSI in the body? 3. When I save the script to a text file, what encoding should I use? I have windows vista and my choices are ANSI, unicode, unicode big endian and UTF-8. 4. In your script, where I put in my own ID code, I take it I put in the full URL with my code in it? I have checked your reasons as to why the script is not working, and feel my error may be caused by one of the above. Thanks |
Quote:
Quote:
Quote:
Quote:
Quote:
Code:
$a1id = "ecchi"; |
Hi
Quote:
Thanks for your reply. You cleared up a few things for me. I eventually contacted my hosting provider with a screen shot, and got this reply : It appears that the rule was not listed in the .htaccess file to enable the SSI. We have added the file for you. The URL does resolve to a black page, However, the file that is being referenced does not exist. Please review your scripting of the testing.shtml file. The rule they added to .htaccess is : addhandler x-httpd-php5-cgi .shtml When I pull up my testing.shtml page it is blank. I have read and re read your instructions, and cannot see what I have missed. I will give it a break today, and try again from scratch tomorrow. |
Try uploading the following as your testing.shtml page:
Code:
If you get a message "an error has occurred executing this directive" or similar, the problem is with the script file. If you get a blank page, take a look at the source code in your browser (on IE, simply select "source" from the "view" menu") and let me know what you get. |
I uploaded that as my testing page and am still receiving a blank page. The source I am getting is :
That was using the insert button Front page has, I also typed it in exactly as your sample code and got a blank page. |
Quote:
Code:
|
Many thanks, I have contacted my hosting company and am waiting for a reply. They had assured me after a previous e mail that the SSI and CGI bin was enabled. Hopefully a different person will receive my latest e mail
|
Below is the reply I received from my hosting company :-
I understand you are inquiring about SSI and CGI for fetishfiends.com. The script mentioned references "/cgi-bin", which is incorrect. Your current directory is named as "/cgi". I do show both SSI and CGI are enabled. Server-side scripts and executables can be uploaded to any directory on your site and are not restricted to run only in the cgi directory. These scripts and executables are any files with the following extensions: .cgi, .pl, and .py. So it looks like I will need a slightly different script. I tried making a directory called cgi-bin, and uploaded the script to that, but it didn't work. |
Quote:
Quote:
Code:
Code:
Note that practically every script you get will assume your host will be calling the folder where scripts are stored as "CGI-BIN" so you will always have to remember to change the call from "CGI-BIN" to "cgi" Quote:
Quote:
Quote:
If you are running test.shtml in the root directory (or whatever your host calls the other folder) and you are still not getting either the blog appearing or an error message, then let me know and I'll tell you what to say to your host to get things fixed at their end. |
Quote:
|