title: Issue with relative paths in PHP not working
body: <p>I'm working on testing out a free helpdesk script on my site. I was able to get the script installed after some troubleshooting but it's still not working.</p>
  <p>The error that I receive when I try to submit a new ticket is :</p>
  <blockquote>
  <p>Warning: require(./hesk_settings.inc.php) [function.require]: failed to open stream: No such file or &gt;directory in /home/onesourc/test/hesk/index.php on line 39</p>
  <p>Fatal error: require() [function.require]: Failed opening required './hesk_settings.inc.php' (include_path='.:/usr/local/lib/php:/usr/local/Zend/lib/ZendFramework-1.11.6/library') in /home/onesourc/test/hesk/index.php on line 39</p>
  </blockquote>
  <p>I do have hesk_settings.inc.php in the correct place and the relative paths should be working but they are not.</p>
  <p>Here is a snippet of code out of the php file that's trying to find the relative path :</p>
  <pre><code>define('HESK_PATH','./');
  require(HESK_PATH . 'hesk_settings.inc.php');
  </code></pre>
  <p>The code is coming from <a href="http://www.hesk.com" rel="nofollow noreferrer">http://www.hesk.com</a>. It's a straightforward install and I was able to get it up and running on my local xampp setup.</p>
  <p>Could there be a setting on my Linux server that is causing this issue? A php.ini setting or something else? I thought of asking stackoverflow first since it's a php related question.</p>
  <p>If you require anymore information let me know.
  Thank you for your time!</p>
  <hr />
  <p><strong>Update</strong></p>
  <p>Not sure the best way to answer comments on here.
  I was able to do &quot;ls -la /home/onesourc/test/hesk/&quot;. There are too many subdirectory and files to add the asterisk at the end. It makes such a long list that I'm unsure how to retrieve it easily.</p>
  <blockquote>
  <p>ls -la /home/onesourc/test/hesk/</p>
  </blockquote>
  <pre><code>drwxr-xr-x  9 onesourc onesourc  4096 May 27 18:33 ./ 
  drwxr-xr-x 22 onesourc onesourc  4096 May 27 00:01 ../ 
  drwxr-xr-x  2 onesourc onesourc  4096 May 27 02:06 admin/ 
  drwxrwxrwx  2 onesourc onesourc  4096 May 27 01:43 attachments/
  -rw-r--r--  1 onesourc onesourc  3191 May 27 02:06 change_status.php
  -rw-r--r--  1 onesourc onesourc  3444 May 27 02:06 download_attachment.php
  -rw-r--r--  1 onesourc onesourc     0 May 27 00:07 footer.txt
  -rw-r--r--  1 onesourc onesourc   657 May 27 02:06 gd_test.php
  -rw-r--r--  1 onesourc onesourc     0 May 27 00:07 header.txt 
  drwxr-xr-x  2 onesourc onesourc  4096 May 27 00:08 help_files/
  -rw-r--r--  1 onesourc onesourc  7394 May 27 02:06 hesk_javascript.js
  -rw-rw-rw-  1 onesourc onesourc  5117 May 27 02:09 hesk_settings.inc.php
  -rw-r--r--  1 onesourc onesourc 10791 May 27 02:06 hesk_style.css 
  drwxr-xr-x 3 onesourc onesourc  4096 May 27 00:04 img/ 
  drwxr-xr-x  3 onesourc onesourc  4096 May 27 00:08 inc/
  -rw-r--r--  1 onesourc onesourc 32213 May 27 18:33 index.php
  -rw-r--r--  1 onesourc onesourc 23401 May 27 02:06 knowledgebase.php 
  drwxr-xr-x  3 onesourc onesourc  4096 May 27 00:08 language/
  -rw-r--r--  1 onesourc onesourc  5843 May 27 02:06 print.php
  -rw-r--r--  1 onesourc onesourc  2246 May 27 02:06 print_sec_img.php
  -rw-r--r--  1 onesourc onesourc  3724 May 27 02:06 rate.php
  -rw-r--r--  1 onesourc onesourc 34057 May 27 02:06 readme.html
  -rw-r--r--  1 onesourc onesourc  6158 May 27 02:06 reply_ticket.php
  -rw-r--r--  1 onesourc onesourc  3273 May 27 02:06 secimg.inc.php
  -rw-r--r--  1 onesourc onesourc 12564 May 27 02:06 submit_ticket.php
  -rw-r--r--  1 onesourc onesourc  3270 May 27 02:06 suggest_articles.php
  -rw-r--r--  1 onesourc onesourc 18174 May 27 02:06 ticket.php 
  drwxr-xr-x  2 onesourc onesourc  4096 May 27 02:13 tmp/
  -rw-r--r--  1 onesourc onesourc 22181 May 27 02:06 TreeMenu.js
  </code></pre>