Forums

PHP

This topic is locked

Advanced HTML Editor 3 -- upload.php: wrong include path to incPureUpload.php

Posted 24 Sep 2012 12:03:13
1
has voted
24 Sep 2012 12:03:13 Bernd Schmitt posted:
In line 9 of the last version of upload.php is a wrong include path:

<?php require_once('/ScriptLibrary/incPureUpload.php'); ?>

This cannot work, require and include uses the server path, not the browse path.

Right would be a relative path:

require_once('../../incPureUpload.php');

or a constant for the html server root, which must be previously defined, for example, BASEPATH:

require_once(BASEPATH.'/ScriptLibrary/incPureUpload.php');

Reply to this topic