Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

Php5 error

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.

Signin to Remove this Post

Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #1

Php5 error


First of all, I am sorry if I opened this thread in the wrong section but I didn't knew where else to put it and in my opinion this is some sort of site administration problem.
I tried to install MediaWiki on one of my sites but it gave some sort of wierd php error and now my site can not be accessed by just typing sitename.info or even sitename.info/index.php but only by typing sitename.info/index.php5
Why does it have that 5 at the end?
And how can I make a redirect from my site to the index.php5 page?


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
14-11-2007 07:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #2

RE: Php5 error


Check your script's file names.

Does the files end with the extension .php5? If so, you can simply rectify the error by changing the filename (eliminate the last number, 5). Make sure that your server supported with PHP 5.

You can also rename your requesting URL with the help of .htaccess file if you need so..


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
15-11-2007 04:07 AM
Find all posts by this user Quote this message in a reply
Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #3

RE: Php5 error


Yes, the file ends with 5 but if I'm not mistaken I got an error message that said that my server didn't support php5 but I'm not sure... Didn't pay much attention to it, to be honest.
If so... I guess it won't work by simply eliminating the 5 in the termination, right? Sad


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
15-11-2007 06:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #4

RE: Php5 error


Cedik Wrote:
Yes, the file ends with 5 but if I'm not mistaken I got an error message that said that my server didn't support php5 but I'm not sure... Didn't pay much attention to it, to be honest.
If so... I guess it won't work by simply eliminating the 5 in the termination, right? Sad


Does the page index.php5 gives any error?

If not, then I guess the page will work by renaming the file to index.php. You only need to change the index.php5 file. Keep the link to other pages as same. Make sure that the extension file .php5 executing on your server. If not so, you can force them as php file.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
15-11-2007 06:42 PM
Find all posts by this user Quote this message in a reply
Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #5

RE: Php5 error


No, it doesn't give me any error. The script works fine only that if I access the .info address it won't work. It will show me a blank page. If I access the .info/index.php5 address it works fine. I think I also have an index.php file there but it's blank.


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
16-11-2007 12:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #6

RE: Php5 error


If you want to redirect every "/" request to /index.php5, put the following code on file index.php :-

PHP Code:
<?php

header
("Location: http://yoursite.info/index.php5");

?>


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
16-11-2007 04:23 PM
Find all posts by this user Quote this message in a reply
Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #7

RE: Php5 error


Really? Just that line of code? Wow...
Thanks, Ivenms! I owe you one... again Big Grin
If the site is redirected there I think it's ok to have it with the php5 termination, as long as the site can be accessed by simply typing it's address.


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
16-11-2007 06:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #8

RE: Php5 error


Cedik Wrote:
Really? Just that line of code? Wow...
Thanks, Ivenms! I owe you one... again Big Grin
If the site is redirected there I think it's ok to have it with the php5 termination, as long as the site can be accessed by simply typing it's address.


Even there is another option to rename your script's file. But then the internal linking structure of your script becomes wrong and you need a big repair to change the script's internal navigation.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
17-11-2007 10:28 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 06-09-2008, 01:14 AM


Copyright © 2002-2008 MyBB Group
Powered By MyBB