chriscrowe43
New Member
- Messages
- 23
- Reaction score
- 0
- Points
- 0
Ok so I have ran into an issue with codeing when it comes to php and my subdomain.
my php code works in my main domain ie. it sends out an activation email to the user after registering for join my community. But when I began setting up my subdomain and tired to use the same code(which is automaticly set up with a configure page.php) It's not sending the activation email. My php register page (for the subdomain) is set to use my subdomains email for an auto mailer. That is what is not working in my sub but does when i set it up for my main. So i was wondering if in the subdomain sinse the code is in a subdomain and not at the "top level" like the main domain if I need to altar the codes link names. such as
here in the include once statement: i placed the file structure of my sever at the bottom.
session_start();
if (!$_SESSION['id']) {
$msgToUser = '<br /><br /><font color="#FF0000">Only site members can do that</font><p><a href="register.php">Join Here</a></p>';
include_once 'msgToUser.php';
exit();
}
//////////////////////////////////////////////// End member Log in check ///////////////////////////////////////////////////
$id = $_SESSION['id'];
////////////
to something like 'peacemakers/msgToUser.php';
or include_once "scripts/connect_to_mysql.php"; to
include_once "peacemakers/scripts/connect_to_mysql.php";
and situations like
include_once 'msgToUser.php'; to
include_once 'peacemakers/msgToUser.php'; and
<table width="600" align="center" cellpadding="5">
<form action="register.php" method="post" enctype="multipart/form-data">
<tr>
to
<table width="600" align="center" cellpadding="5">
<form action="peacemakers/register.php" method="post" enctype="multipart/form-data">
<tr>
here is what my server looks like (at least the important part of it. )
my php code works in my main domain ie. it sends out an activation email to the user after registering for join my community. But when I began setting up my subdomain and tired to use the same code(which is automaticly set up with a configure page.php) It's not sending the activation email. My php register page (for the subdomain) is set to use my subdomains email for an auto mailer. That is what is not working in my sub but does when i set it up for my main. So i was wondering if in the subdomain sinse the code is in a subdomain and not at the "top level" like the main domain if I need to altar the codes link names. such as
here in the include once statement: i placed the file structure of my sever at the bottom.
session_start();
if (!$_SESSION['id']) {
$msgToUser = '<br /><br /><font color="#FF0000">Only site members can do that</font><p><a href="register.php">Join Here</a></p>';
include_once 'msgToUser.php';
exit();
}
//////////////////////////////////////////////// End member Log in check ///////////////////////////////////////////////////
$id = $_SESSION['id'];
////////////
to something like 'peacemakers/msgToUser.php';
or include_once "scripts/connect_to_mysql.php"; to
include_once "peacemakers/scripts/connect_to_mysql.php";
and situations like
include_once 'msgToUser.php'; to
include_once 'peacemakers/msgToUser.php'; and
<table width="600" align="center" cellpadding="5">
<form action="register.php" method="post" enctype="multipart/form-data">
<tr>
to
<table width="600" align="center" cellpadding="5">
<form action="peacemakers/register.php" method="post" enctype="multipart/form-data">
<tr>
here is what my server looks like (at least the important part of it. )
Last edited: