quick (and probabily easy) question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
legobear154
Forum Newbie
Posts: 3
Joined: Mon Nov 22, 2010 6:11 pm

quick (and probabily easy) question

Post by legobear154 »

I am new to php. I have a webserver and am currently using PHP-Nuke 8.0. Anytime people signup it is suppose to send a conformation email. The email is never sent. I know this forum is for php and not php-nuke but I thought I had a better chance for an answer here than on their forum. If you need any code i will show you it, but the script I think is the right script has more than 200 lines of code. Thanks for any help you can give me!
s992
Forum Contributor
Posts: 124
Joined: Wed Oct 27, 2010 3:06 pm

Re: quick (and probabily easy) question

Post by s992 »

Without seeing your code, it's pretty difficult to troubleshoot.

Standard e-mail related answer: Are you sure you have a mail server on your webserver?
User avatar
Pazuzu156
Forum Contributor
Posts: 241
Joined: Sat Nov 20, 2010 9:00 pm
Location: GA, USA
Contact:

Re: quick (and probabily easy) question

Post by Pazuzu156 »

I'm pretty new myself, but any time you use php to get people to send an email to your email address for confirmation or something like that, the mail() function is used. I made a post on how to set that up, the link will be below along with a page from the W3Schools website on php email.

My post:
http://forums.devnetwork.net/viewtopic.php?f=1&t=125014&sid=9ef78754e10fa388c24559aae4587584

W3School's PHP E-Mail:
http://www.w3schools.com/php/php_secure_mail.asp

I hope this helps you.
- Kaleb Klein
------------------------------------
Web Developer | Software Developer
https://kalebklein.com
PGP Key: https://keybase.io/pazuzu156
legobear154
Forum Newbie
Posts: 3
Joined: Mon Nov 22, 2010 6:11 pm

Re: quick (and probabily easy) question

Post by legobear154 »

The index.php file which I think has the code that sends the email to the user who signed up who has to activate their account through the email. Here it is http://www.host-a.net/u/legobear154/index.php. It has 1817 lines... I was way off with my first guess :lol: Thanks for any help
User avatar
Pazuzu156
Forum Contributor
Posts: 241
Joined: Sat Nov 20, 2010 9:00 pm
Location: GA, USA
Contact:

Re: quick (and probabily easy) question

Post by Pazuzu156 »

I will say man, I'm not very familiar with phpnuke. In fact I've never messed with it. I'm sure I could figure out, as just looking at codes I can learn pretty quickly.
- Kaleb Klein
------------------------------------
Web Developer | Software Developer
https://kalebklein.com
PGP Key: https://keybase.io/pazuzu156
User avatar
Pazuzu156
Forum Contributor
Posts: 241
Joined: Sat Nov 20, 2010 9:00 pm
Location: GA, USA
Contact:

Re: quick (and probabily easy) question

Post by Pazuzu156 »

Dude, every time i load the page on my server, it says "You can't access this file directly..." Note all i did was save the page and opened it in the browser. Is it suppose to allow me to use the page or just say that?
- Kaleb Klein
------------------------------------
Web Developer | Software Developer
https://kalebklein.com
PGP Key: https://keybase.io/pazuzu156
legobear154
Forum Newbie
Posts: 3
Joined: Mon Nov 22, 2010 6:11 pm

Re: quick (and probabily easy) question

Post by legobear154 »

You won't be able to access it because it is set to my site only and it takes certain things from my server. if you go to byethost33.com and create an account and install phpnuke, you will be able to see the same code there and use it. but you wont be able to use the code I gave you. it does that for security reasons. I was hopping someone would be able to do it with just the code and not using it on a server.
Post Reply