Please help with cgi

Discussion in 'Programming' started by creditcardbusiness, May 30, 2006.

  1. #1
    :confused:

    I need some help, I have to change a cgi file

    I have to change a file, it says following

    $pathToHTML = '/home/yourdomainpath/public_html/resources';

    Now I can't seem to understand what does 'yourdomainpath' means and what should I place there. I dont understand what actually pathtoHTML means

    I have tried changing yourdomainpath to my ftp username but it didn't work

    What should I do

    please help

    Thanks in advance
     
    creditcardbusiness, May 30, 2006 IP
  2. scoxy

    scoxy Peon

    Messages:
    332
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's wherever your index.html page or whatever is actually stored on the host.

    Ask your host. Yes, it will have your username in, but more than likely it won't be exactly like their example.
     
    scoxy, May 30, 2006 IP
  3. creditcardbusiness

    creditcardbusiness Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks

    I did tried

    root/my ftp username /public_html/folder where i kept the html

    but I still didnt worked

    :(
     
    creditcardbusiness, May 31, 2006 IP
  4. gopher292

    gopher292 Peon

    Messages:
    64
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You should be able to find out just by logging into your ftp account. Just take whatever path you use for your html files and append /resources onto the end.

    If you don't know the exact html path on your server you could try writing a php file with an error in it (e.g. echo $somevar without the ; at the end) and uploading it to your server. When you run it, it'll probably say something like "Error in /home/www/usernamehere/html/badphp.php" and you can just take the /home/www/usernamehere/html (for example) part of it and then add /resources. (I know it's not orthodox, but it works!)
     
    gopher292, May 31, 2006 IP