Jump to content

Existing PHP files not found?


kiona

Recommended Posts

Iv spend the last 2 days trying to make this script work (Iv never tried anything php before!).  Iv installed the script, and everything seemed to finally be working w/mysql, but PHP files are not being found - and i know they're there!!

 

Uhmm, if youd wanna take a look the url is http://www.kionamails.com/paidmail -try and register your email adress on the signup link, the error says:

 

Not Found

The requested URL /home/kionam00/public_html/paidmails/site/send_email.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

but that directory list is correct, and the file is there!

 

help? ='(

Link to comment
Share on other sites

Sorry for the longless =/  Uhm, is it a problem with the php file?  IM SO NOOB ASDLFNASDF ='(

 

Code for email_req.php

   include ("../includes/global.php");

   links();

   if($email && $ps)
   {
        $out_message= <<<MSG
<b>You are already signed up.</b>
<META HTTP-EQUIV=REFRESH CONTENT="1; URL=$site_url/member_area.php?email=$email&ps=$ps">
MSG;
        //function to display message
        out_message($out_message,$color_feedback_bad);
   }

   $contents=file_reader("$site_html_path/email_req.html");
   $contents=str_replace("[site_url]",$site_url,$contents);
   $contents=str_replace("[refid]",$refid,$contents);
   print $contents;

   print "$html_footer";
?>

 

 

 

 

code for send_email.php

<?
include ("../includes/global.php");

print "<center>";
links();
print "</center><br><br>";

//connecting DB
$link=dbconnect();

print "<html><body>";

//This query will give the count of email id which is duplicated ie if it occours more than once
$sql = "SELECT count(*) FROM member_details where email_id='$email' ";

if($res = mysql_query ($sql))
{
    $mail = mysql_fetch_array($res);
    //This condition will check for wheather the email id given already present in the DB or not.
    if($mail[0] > 0)
    {
         $out_message= "
<br><center><b>The email address that you entered is already in use. 
<br><br>Please login with your email address and password.</font>";
         //function to display message
         out_message($out_message,$color_feedback_bad);
    }
    else
    {
         //If not present this part will execute
         $query = "SELECT count(*),max(mem_id) FROM member_details";
         if($result = mysql_query ($query))
         {
              $id = mysql_fetch_array($result);
              if($id[0] == 0) { $memid = 1; }
              else { $memid = $id[1] +1; }
         }
        $msg= "
<p>This is your sign up confirmation email!</p>
<table><tr><th>Click the link below to continue with the registration</th></tr><tr><th>
<a href=\"$site_url/member_regn.php?memid=$memid&email=$email&refid=$refid\" target=\"new\">$site_url/member_regn.php?memid=$memid&email=$email&refid=$refid</a>
</th></tr><tr><td></td></tr>
</table>";

         //function to send a mail to the subscriber as a confirmation for sign up
         if(send_mail($email,$admin_mail_id,$email_signup_subject,$msg))
         {
             $out_message= "
<h4>A confirmation email has been sent to your email address.<br> 
You must follow the instructions in that confirmation email<br>
in order to finish signing up.</h4>   
Your Email Address is :  $email<BR><BR>";
              //function to display message
              out_message($out_message,$color_feedback_good);
          }
          else
          {
               $out_message= "
<b>Error in your mail id or wrong mail id /n <br><br>
If you want to continue further provide a valid email id.</b>";
                //function to display message
                out_message($out_message,$color_feedback_bad);
          }
     }
}
dbclose($link);
print "<br><br><br><br>$html_footer";
?>

Link to comment
Share on other sites

Ok.. Im a retard, I misunderstood Physical and Virtual paths... and mixed the two up hahaha!

 

Well, Im sorry if I've wasted you're time... Though, Ill probably screw something up and be back for more help lol!

 

Thanks for trying to help me jesirose!  Im a dumb blond like everyone says -_-

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.