Jump to content

[SOLVED] PHP file is downloading!


ballouta

Recommended Posts

Hello, I installed a gallery template using the 4images 'software'

when the user registers for the first time, as usuall, he presses on "Accept", then inserts his username, password and email address.

After I press on 'submit' button, the resigter.php file downloads to my PC!! WHY? here's the problem

 

http://madeena.org/gallery/register.php

 

Note that the admin is getting an email that a new user is registered!!!

thanks

Link to comment
Share on other sites

Make a file called info.php and put this tag in it without spaces in the php tag:

<?php phpinfo() ?>

Upload it to your server and load it up in your browser. If it doesn't have php build info then you dont have php on your server.

 

For some reason when I add a ; into the code above I get a forums permission error.

Link to comment
Share on other sites

Hi, this is how the php file begins, of course it is long code!

<?php


$main_template = 'register';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');

if ($action == "") {
  $action = "signup";
}

 

Link to comment
Share on other sites

you may need to debug the code personally if its really big.

 

take out pieces of code (CTRL+X), refresh the page and c if it loads, if it doesn't change just paste the code back in there and try another section, once you have found a big section thats the cause try and narrow it down. this is what i do when i really cant find the culprit.

 

try the same filename but with just a simple phpinfo() call, might be restrictive filenames or something.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.