GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP Problem (https://gfy.com/showthread.php?t=761700)

LouisianaGuys 08-19-2007 11:29 AM

PHP Problem
 
Hey guys I created a login interface for my site. Now the only problem is I am getting this message from everyone that has tried to register.
"We apologize but there has been a problem sending your email, possibly due to high network congestion. <br><br>Please wait for this page to redirect you to the Login page where you can choose to have your activation details resent. If it does not please use the link provided below."
What could be the possible php problems that are not allowing anyone to register?

I have no support from the host so by going through the php setup I see only one thing that could be the source which is "$cfg['Servers'][$i]['']"

Thing is with the php script I am using there is no config.php.

Anyone that has any idea seriously hit me up icq style.

Serge Litehead 08-19-2007 11:42 AM

better tell what script name in question and maybe you find someone who dealt with this script.

directfiesta 08-19-2007 11:46 AM

could be due to a ' time-out " ... try to see if you can increase that value, if you find it.

As said above, name and url of script could help, as well as your php.ini file

LouisianaGuys 08-19-2007 12:27 PM

well the script is authsuite ....http://www.bespoke-software-solutions.co.uk/

the user management sys

Nookster 08-19-2007 02:00 PM

Have no clue. I could help if I could see some source code.

woj 08-19-2007 02:05 PM

mail settings in the script or on the server are most likely not configured incorrectly... but without seeing the script, it's pretty hard to debug what the problem is...

LouisianaGuys 08-19-2007 05:42 PM

if any of you guys would like to take a look hit me up on icq im on now

LouisianaGuys 08-19-2007 07:25 PM

when looking at the mysql database with my host i get this problem occuring

"PMA Database ... not OK[ Documentation ]
General relation features Disabled"

now when looking at the documentation i see this
" $cfg['Servers'][$i]['pmadb'] string
The name of the database containing the linked-tables infrastructure.

See the Linked-tables infrastructure section in this document to see the benefits of this infrastructure, and for a quick way of creating this database and the needed tables.

If you are the only user of this phpMyAdmin installation, you can use your current database to store those special tables; in this case, just put your current database name in $cfg['Servers'][$i]['pmadb']. For a multi-user installation, set this parameter to the name of your central database containing the linked-tables infrastructure. "

if anyone knows this stuff please help me out and message me on icq

Serge Litehead 08-19-2007 08:29 PM

Linked-tables infrastructure (PMA Database) has nothing to do with your problem. Linked-tables is the feature of phpMyAdmin with which you can leave comments for tables and field columns as well as pull data with foreign keys from several tables for visual disply only through phpmyadmin interface.

problem lays somewhere outside of phpmyadmin scripts, in actual scripts that used for registration, as woj said probably something with mail config in those scripts, but its impossible to tell anything from that error your getting.
this could also be if you're on a shared hosting and local smtp server is out of your reach or simply disabled, again this is just a guess.

LouisianaGuys 08-19-2007 09:04 PM

i appreciate the help so far guys

with all the different php files i dont have a mail or a config php file

just an activate, recoverpword and sndactivate php files that have something to do with mail. but the strings dont show anything for my email to send out anything

there is a string for C_EMAIL which is the customer email address

"$sql = mysql_query("SELECT C_EMAIL, C_USER_NAME, C_MAIL_TYPE FROM customer where C_KEY = '$cookie'", $link);
$num = mysql_num_rows($sql);

if($num != 0)
{
while($row = mysql_fetch_array($sql))
{
$email = ($row["C_EMAIL"]);
$username = ($row["C_USER_NAME"]);
$type = ($row["C_MAIL_TYPE"]);
"

techtony 08-19-2007 09:18 PM

bump dude

4Pics 08-19-2007 09:21 PM

Post the part where it does mail

Also, what host? Dedicated or Virtual?

LouisianaGuys 08-20-2007 11:28 AM

its a dedicated host ...

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: [email protected]' . "\r\n";

$snd = mail($email, $regard, $htmlMail, $headers);

if($snd)
{
setcookie("key:", $cookie, time()-86400);
$msg = ("Your user details have been sent to your email account for future reference. Please ensure you keep these details safe as without them you cannot caccess your account<br><br>This page will automatically redirect you to the Login page in 5 seconds. If it does not please use the link provided below.");
mysql_close($link);
}
else
{
setcookie("key:", $cookie, time()-86400);
$msg = ("We apologize but there has been a problem sending your email, possibly due to high network congestion. Your password has been updated and is <br><b>$pword</b><br><br>Please wait for this page to redirect you to the Login page. If it does not please use the link provided below.");
mysql_close($link);
}
}
else


is one part where mail is mentioned

and

"if($num != 0)
{
while($row = mysql_fetch_array($sql))
{
$email = ($row["C_EMAIL"]);
$username = ($row["C_USER_NAME"]);
$type = ($row["C_MAIL_TYPE"]);


and

else
{
setcookie("key:", $cookie, time()-86400);
$msg = ("We apologize but there has been a problem sending your email, possibly due to high network congestion. <br><br>Please wait for this page to redirect you to the Login page where you can choose to have your activation details resent. If it does not please use the link provided below.");
mysql_close($link);
}
}
else

when anyone tries to register but without the php tags just the we apologize etc etc

but i do not see a line for my email to send from...should there be a line that has $email?

now i did find this on the insert.php script
if(($error == 0) && ($email != $chkEmail)) // error checking

Serge Litehead 08-20-2007 11:51 AM

from original post error is related to this line "$msg = ("We apologize but there has been a problem sending your email...." in you last post
that happens in the Else statement of if($snd)... so something is not working with that variable which represents $snd = mail($email, $regard, $htmlMail, $headers);
as far as we know $headers are there, but have no idea what are $email, $regard and $htmlMail actually are in $snd=mail(...) line

either not everything gets to that mail function or smtp is not configed right, find on the net simple mail() example or even from php manual make a saparate php file and test if that works correctly, if you can actually send an email with mail() function, this way you'll know if its smtp or something with the script... sorry can't provide mail() sample myself right now

good luck!

Baal.PitBull 08-20-2007 11:59 AM

make sure you have imap installed on your server.

jimbona 08-20-2007 12:02 PM

under $snd=
add
Code:

echo "$email<br>$regard<br>$htmlMail<br>$headers";
echo $snd;

see what values are returned, if any are blank then it wont send the mail.
what version of PHP are you using?

LouisianaGuys 08-20-2007 12:14 PM

i dont see imap installed anywhere
how do i go about getting imap installed? and i us godaddy for my hosting and when it comes down to it i cant tell if its 4.1 php or 5.0 php nonetheless i stated i had a dedicated server but its virtual
I HATE GODADDY I just got off the phone with them and they are of no help. just renewed hosting with these fucks and the support i get is horrible.

LouisianaGuys 08-20-2007 12:17 PM

getting the same error

now i just looked at the whole hosting issue and noticed something the rep failed to tell me.

i think i dont even have php because i see cgi-b and mysql 4.1 but nothing about php

the php hosting options have perl

this is fustrating

directfiesta 08-20-2007 04:30 PM

I am sure that GoDaddy has php installed ... Come on ...

to see what librairies are installed, v=create a text file with this:

PHP Code:

<?php phpinfo(); ?>

and name it phpinfo.php

Uplaode it to your server. You should get a page like:

http://www.pdgcash.com/phpinfo.php

The script you use doesn't need any unusual components.

jimbona 08-20-2007 06:00 PM

if you browse to a PHP page and it asks you to save it, you dont have PHp installed. If you can see the page fine to register, you must have PHP installed.

Whether you have a dedicated server or not, (sounds more like you have a VPS) you should have no issues adding the lines above to see what they output so you know what is failing and what the error is as you are putting the mail failure response into a variable.

From what I remember, it is usually a problem with headers with Godaddy.

try changing

Code:

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: [email protected]' . "\r\n";

to
Code:

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: [email protected] <[email protected]>' . "\r\n";

as the header isnt fully valid.

LouisianaGuys 08-20-2007 08:40 PM

changed the $headers but same problem
its unreal
if any of u guys want to take a look just icq me
this is driving me crazy

LouisianaGuys 08-20-2007 08:41 PM

and thanx for the phpinfo.php info
i found out i have php 4.4.1 or such

thanx man

Baal.PitBull 08-21-2007 10:21 AM

unless your running php 5 you need imap installed. if you are running 5 then you need to enable imap. by default it is not installed

raymor 08-21-2007 10:22 AM

It sounds like most likely the PHP settings for sending mail ay be messed up,
but I wouldn't spend much more time on that script anyway.
Anyone can log in through that script and get into your members' area
without signing up with a very simple attack that any script kiddie knows.
They just enter this information and get right in:

user: ' OR 1=1
pass: ' OR 1=1

You might want to go with a real security system like you see succesful
professional webmasters using, such as Strongbox.

LouisianaGuys 08-21-2007 06:21 PM

where do i get imap from?

and strongbox....man that costs money. If i get sponsors that donate to the website then i can think about spending money

other than that it will have to work and simple people that like to browse photos arent thinking of php scripting and how to breach security

directfiesta 08-21-2007 06:36 PM

Quote:

Originally Posted by LouisianaGuys (Post 12967326)
where do i get imap from?

and strongbox....man that costs money. If i get sponsors that donate to the website then i can think about spending money

other than that it will have to work and simple people that like to browse photos arent thinking of php scripting and how to breach security

Imap is compiled by the host ... All my virtual servers have that ... Ask godaddy if it is active by default.

If not:

- change script to a simple .htaccess file

or

- change host


If you want a free trial of 7 days, hit me up ... on ICQ or email

directfiesta 08-21-2007 06:39 PM

Look at YOUR phpinfo.php ... it should say ...
It does on mine:

http://www.pdgcash.com/phpinfo.php

LouisianaGuys 08-21-2007 07:10 PM

great no IMAP is even on the info.php

just great

i would switch but I just spent money renewing with godaddy and that is alot of stuff to move over

LouisianaGuys 08-21-2007 07:11 PM

this does not make me a happy camper

directfiesta 08-21-2007 07:17 PM

Quote:

Originally Posted by LouisianaGuys (Post 12967532)
great no IMAP is even on the info.php

just great

i wouays, d switch but I just spent money renewing with godaddy and that is aloto f stuff to move over

Time is money... so don't lose your time... Today, you have this problem, tomorrow another ( Imagemagick, zend optimizer, curl, etc ...)

If you want , I will give you a free month. Move your stuff , test it out, make up your mind ... After 30days, you will know what is best for YOU ...

I can help moving your stuff, but I doubt you have SSH or a compatible Control Panel. Then you need to move manually, dumping the databases, re-installing the scripts and so on.

If interested, drop me an email at pierre -AT- pdghosting.com.

But that wont be done tonight...

GeXus 08-21-2007 07:31 PM

add error_reporting(E_ALL); at the top of your page, just below the opening php tag <?php or <?, try to run through it all and see if it displays any different errors

GeXus 08-21-2007 07:33 PM

Also just to add, imap has nothing to do with it... php's mail function uses sendmail

Serge Litehead 08-21-2007 07:42 PM

not sure why some people mention imap here, i wouldn't get puzzled over it.


Quote:

Originally Posted by LouisianaGuys (Post 12955137)
well the script is authsuite ....http://www.bespoke-software-solutions.co.uk/

the user management sys

just to clarify if you followed all of the instructions for the script
Quote:

INSTRUCTIONS FOR USE:
In order for you to use these scripts you must have access to a MySQL dB and have a PHP parser.
-------
1. Use the sql script create_cus_table.sql to create the customer_db and customer table. If you already have a database remove the first two lines of the script as otherwise you create a new dB. If you use your own dB (and not the pre-defined customer_db one) you will have to edit the database name on all scripts which access the database.
-------
2. Edit the database connection string so it contains your dB login details ON ALL PHP PAGES WHICH CONNECT TO THE DATABASE.
-------
3. Copy all files from the 'files' folder to the root directory of your site.
-------
4. Customise the outgoing emails to your taste in the activate.php, recoverpword.php and sndactivate.php files.
-------
5. Update styles / CSS as required.
-------
6. Customise error messages and forms to your tastes
-------
7. On all pages you wish to restrict to member access only, copy the php code from lobby.php and insert it at the top of your document(s). This code checks to make sure the user has the required cookie (issued during login) and resets it for 5 minutes if they do. This means that a user has 5 minutes to perform an action before the cookie and their session expires and they have to log in again. By adding this code to all pages within the 'restricted zone' you will prevent people without the cookie from viewing them as they are instantly redirected to the cookie error page.
since you have phpinfo thingie handy check if SMTP present there, if not it won't send mail, if yes look for "disable_functions" see if mail is in there

also see if display_errors is on or not (thats for debugging useful to see what might be a problem with php code) if its off you might want to put error_reporting(E_ALL); in php code of a file that handles submitted registrations for time being (that's the file that is being called by <form's action attribute)

LouisianaGuys 08-22-2007 08:23 PM

thanks guys
all the help is appreciated

woj 08-22-2007 09:48 PM

Why not just contact the host? If they are any good, they will look into the problem, and at the very least will offer some advice on how to solve it... or perhaps offer a few bucks, and I'm sure some tech person from here would be willing to check it out....

LouisianaGuys 08-24-2007 06:57 PM

well i contacted godaddy and they provide NO SUPPORT at all. I have been working on the script. If i had the change id get someone to do it for me but I am pretty sure I will have it up in a few weeks after doing trial and error troubleshooting. Godaddy does not install IMAP at all according to two techs I talked to. PDG hosting I appreciate the offer but at the moment moving everything I cant risk while I am trying to get sponsors to pick up the website.

I appreciate all the help I have gotten here.

LouisianaGuys 08-24-2007 07:40 PM

I Fucking Got It
I Got It

It Works
Bwaaaaaaaaaahahahahahahaahahahaahahahahahaha


Thanx To You Guys

tg989 08-24-2007 07:47 PM

probably a mail setting on the box if it was never working.

LouisianaGuys 08-24-2007 08:52 PM

nah it was the php.ini


All times are GMT -7. The time now is 11:19 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123