I keep getting this error on a new server i have recently starting using.
At home on my home server it works fine, at my workplace my site also works fine on their server but on this server everytime i try to go from one .php document to another .php document and run the code it comes up with this error.
Please help i cannot understand it, i have tried all sorts, ive used different code, no code, checked if jumping to a html doc works and its does it just doesnt seem to like what I'm doing and ive never seen anything like this before.
This is the link to go to the php document to destroy the session:
<div class="logoutDiv">Or <a href="lib/html/destroy.php">Goooodbyyyee!</a></div>
This is the code inside that php document:
<?php session_start(); session_de开发者_如何学编程stroy(); header('Location: ../../index.php'); ?>
Here's the error page: unihub.itsyoureasel.com/lib/html/destroy.php
The problem is most likely in your .htaccess file or in /etc/httpd/conf/httpd.conf file . Check what errors logs say in /var/log/httpd folder .
I'm using Apache. I've just figured out the error.
It's an odd one but seems to be something to do with creating .php files using Aptana. My original files I created without Aptana and uploaded, work. I just copied my original file (index.php) to another location renamed it and changed to code to what i desired and hey presto it works now.
Strange but I'm guessing it is something to do with the way Aptana creates the meta data etc. to the file as you actually type the extension you wish for it to be where as in plain eclipse for php dev's you choose a php file type from a list.
精彩评论