Problem with script on virtual host

Last post 09-02-2011, 8:28 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  09-02-2011, 7:59 AM 69919

    Problem with script on virtual host

    When I run the demo on my development system everything is wonderful. When I move the working script to my webhost the calculated location of the script is wring, below is the firebug output after clicking the upload button. The direct path on the server to my home directory is /home/users/web/b596/dh.etalentamerica .   The script is called as http://www.XXXXXXXXX.com/uploads/test.html
     
    Any thoughts on correcting this, I would love to purchase your upload class.
     
     
    <script src="ermes/web03/b596/dh.etalentamerica/uploads/phpuploader/ajaxuploaderresource.php?type=script" type="text/javascript">
    1<head>
    2
    3<title>Page Not Found</title>
    4</head>
    5
    6<body>
    7<h1>Page not found</h1>
    8<h2>
    9The page you are looking for might have been removed,<br/> had its name changed, or is temporarily unavailable.
    10</h2>
    11<hr/>
    12Please try the following:
    13<p/>
    14If you typed the page address in the Address bar, make sure that it is spelled correctly.
    15<p/>
    16- Click the Back button in your browser to try another link. <br/>
    17- Use a search engine like <a href='http://www.google.com'>Google</a> to look for information on the Internet.
    18
    19
    20<hr/>
    21HTTP 404 - File not found
     
  •  09-02-2011, 8:28 AM 69920 in reply to 69919

    Re: Problem with script on virtual host

    Hi etalent,
     
    Please try the way below
     
    1.        Open file ”phpuploader\include_phpuploader.php”

    2.        Find section below

    $cd=dirname($this->GetWebPath(__FILE__));

    3.        Change to (change the red part to the location on your end)

    $cd="http://mysite.com/phpuploader";
    Regards,
     
    Ken
View as RSS news feed in XML