Hello users!
I am trying to set up a viral marketing contacts-importer and I keep coming up with a couple PHP errors.
You can see the page in question at:
http://1dollar1day.org/import/index.php
Feel free to try it yourself to see what I'm talking about, but when I enter my information for contacts to be imported, I get these errors:
Warning: require() [function.require]: URL file-access is disabled in the server configuration in /home/a9272438/public_html/import/importer.php on line 55
Warning: require(http://1dollar1day.org/import/importer/gmail.php?username=myEmailHere&password=MyPasswordHere) [function.require]: failed to open stream: no suitable wrapper could be found in /home/a9272438/public_html/import/importer.php on line 55
*actual "myEmailHere" & password removed for obvious reasons.
Fatal error: require() [function.require]: Failed opening required 'http://1dollar1day.org/import/importer/gmail.php?username=user&password=pass' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9272438/public_html/import/importer.php on line 55
NOTE: Line 55 is relative to the GMAIL importing option, that number will vary depending on the email option selected. Regardless, the coding is the same for each email importing process.
Below is the importer.php code. Line 55 has been bolded red for easy finding.
<?php
include("include/session.php");
define("WEB_URL",get_web_root_url());
if (isset($_GET['type']))
{
$type = $_GET['type'];
}
if (isset($_GET['username']))
{
$username = $_GET['username'];
}
if (isset($_GET['password']))
{
$password = $_GET['password'];
}
?>
<form name='arrayForm' id='arrayForm' method='post' action='sendemail.php'>
<table border="0" width="80%" cellpadding="0" style="border-collapse: collapse" height="105" id="table1">
<tr>
<td height="25" colspan="2" bgcolor="#000000"> <p align="center" class="white"><font color="#FFFFFF"><b>
send email to your friends</b></font></p>
</td>
<td bgcolor="#000000" height="25"><div align="right"><A href="#send"><p align="right" class="white">send</p></a></div></td>
</tr>
<tr>
<td bgcolor="#Ffffff" height="1" colspan="3"></td>
</tr>
<tr>
<td width="25%" bgcolor="#F3F3F3" height="25"> <p align="left" class="Black"><input type=checkbox name=all1 id=all1 value=1 onclick=checkMessages(this)><b>Select/DeSelect All</b></p></td>
<td width="40%" bgcolor="#F3F3F3"><p align="center" class="Black"><b>Email Address</b></p></td>
<td width="35%" bgcolor="#F3F3F3" height="12" class="Black"><p align="center" class="Black"><b>Name</b></p></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" height="1" colspan="3"></td>
</tr>
<?php
switch($type):
case 'yahoo':
?>
<?php require(WEB_URL."importer/yahoo.php?username=".$username."&password=".$password); ?>
<?php
break;
case 'hotmail':
?>
<?php require(WEB_URL."importer/hotmail.php?username=".$username."&password=".$password); ?>
<?php
break;
case 'gmail':
?>
<?php require(WEB_URL."importer/gmail.php?username=".$username."&password=".$password); ?>
<?php
break;
case 'aol':
?>
<?php require(WEB_URL."importer/aol.php?username=".$username."&password=".$password); ?>
<?php
break;
case 'msn':
?>
<?php require(WEB_URL."importer/msn.php?username=".$username."&password=".$password); ?>
<?php
break;
endswitch;
?>
<tr>
<td width="211" bgcolor="#F3F3F3" height="25"> <p align="left" class="Black"><input type=checkbox name=all2 id=all2 value=1 onclick=checkMessages(this)><b>Select/DeSelect All</b></p></td>
<td width="207" bgcolor="#F3F3F3"> </td>
<td width="368" bgcolor="#F3F3F3" height="12" class="Black"> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF" height="1" colspan="3"></td>
</tr>
<tr>
<td width="211" bgcolor="#F3F3F3" height="25"> <p align="left" class="Black">Subject</p></td>
<td width="207" bgcolor="#F3F3F3" colspan="2"><input type="text" name="subject" id="subject" value="" size="50"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" height="1" colspan="3"></td>
</tr>
<tr>
<td width="211" bgcolor="#F3F3F3" height="25" valign="top"> <p align="left" class="Black">
Email Body
</p></td>
<td width="207" bgcolor="#F3F3F3" colspan="2">
<textarea name="emailbody" id="emailbody" cols="50" rows="15"></textarea>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" height="1" colspan="3"></td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="25" colspan="3"> <p align="center">
<input type='button' name='bsendemail' value='Send Email' onclick='javascript:sendemail();'>
<input name="Submit2" type="reset" id="Submit2" value="Reset">
<a name="send"></a>
</td>
</tr>
</table>
</form>
<?php
function show() {
return "";
}
// server side function call
include_once("include/agent.php");
?>
Thanks in advance for any help,
Good day!