Jump to content

ev5unleash

Members
  • Posts

    181
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.ev5unleash.com

Profile Information

  • Gender
    Not Telling

ev5unleash's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi All, I'm in the process of learning PHP and I don't know everything so please bare with me. I'm trying to have a simple e-mail script which will send a nice e-mails with variables from a previous form. I don't want to use my PHP servers predefined e-mail settings but define them myself. I plan on using G-Mail's SSL SMTP protocol. Upon looking up scripts for e-mailing I'm always coming across require_once "Mail.php"; in the code with no explanation on where that file is located. I'm currently using this code for to see if it works: <?php require_once "Mail.php"; $from = "Sandra Sender <sender@example.com>"; $to = "Ramona Recipient <recipient@example.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>Message successfully sent!</p>"); } But I get the error Fatal error: Class 'Mail' not found in C:\wamp\www\Quiz\sendmail.php on line 16 If anyone could be so kind to give me an explanation and assist me in understanding, that'd be great. Thanks, Evan
  2. Hi all, I'm slowly developing a system and I've just finished the login system. I was wondering if there are any hackers out there that can give me advice on my sites security... Is hacking it possible? If you are able to compromise it, please tell me how and ideas on how to prevent it. If makes the testing any easier, an account named: evan present. My PHPFreaks validation text document is at: http://codenamestratus.com/phpfreaks.txt The Login page I wished to be tested is at http://codenamestratus.com/login/login.php Thanks,
  3. Alright thanks, I guess that'll help a little. I will probably understand it more when I start coding?
  4. Hey guys, I'm new to PHP and I'm currently teaching myself. I'm looking over some code and I'm confused when to use "." inside of code. Can someone please explain to me? Here's some example code I read from a book: <?php $counter = 1; while ($counter <= 12) { echo $counter." times 2 is ".($counter * 2). "<br />" $counter++; } ?> Thanks!
  5. Thanks everyone for the help! I've done what I needed to do. But since I really only know includes and such I'm just using the same code for each section of the login (ex. user if test > test.php if pass is test > testpriv (drop down box option) include certain page. Anyone have better idea. I'm reading a book on PHP and MySQL but I'm only 1/10 through it if anyone could recommend me to something that can help me construct a login system with PHP and MySQL that'd be great!
  6. Hi Everyone, I'm a newbie and teaching myself PHP. I'm creating a Mangagement System and I'm trying to create a login system with just PHP until I learn more about PHP and MySQL. Could someone take a look at this code and tell me what I'm doing wrong? What I want this script to do is if index.php is called it will direct to fail.php, if user=(anything other than what is a case) then redirect to fail.php and if index.php?user=test is called, redirect to templogin/test.php. <?php if( !isset($_GET['user']) ) { $xid = 'default'; } elseif { $xid = 'default'; } else { $xid = strtolower($_GET['user']); switch($xid) { case 'test': include('templogin/test.php'); break; case 'default': include('fail.php'); break; } ?>
  7. Thanks so much, that helped out a lot. Stupid WAMP, I don't know why they enable those basic configurations in it's build.
  8. Thanks for the quick response. 1. I know the PHP is running because I get PHP error scripts when I do something wrong. I tried scripts like this: <? //define the path as relative $path = "/home/yoursite/public_html/whatever"; //using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo "Directory Listing of $path<br/>"; //running the while loop while ($file = readdir($dir_handle)) { echo "<a href='$file'>$file</a><br/>"; } //closing the directory closedir($dir_handle); ?> But it doesn't respond with anything on the page. Just blank.
  9. Hey Guys, I need help, I tried a ton of directory listing scripts and they all don't work. Althogh the normal Apache Directory Indexing does work when you visit. The URL is http://ev5unleash.dnsalias.org. The PHP directory listing is http://ev5unleash.dnsalias.org/test.php I'm currently running Wamp 2.0 (Apache/PHP/MySQL). Need a fix asap.
  10. Hey Guys, I need help, I tried a ton of directory listing scripts and they all don't work. Althogh the normal Apache Directory Indexing does work when you visit. The URL is http://ev5unleash.dnsalias.org. The PHP directory listing is http://ev5unleash.dnsalias.org/test.php I'm currently running Wamp 2.0 (Apache/PHP/MySQL). Need a fix asap.
  11. Haha, I only have knowledge in HTML and CSS. From what I understand I need to use Dynamic HTML which has JavaScript in it. The problem is, I don't have any JavaScript experience
  12. Hey Guys, I'm trying to make a one page website. The only problem I'm having is the navigation. I have buttons and layers on the page (each one dedicated as a page), I just don't wanna have a simple Show/Hide Layer change. I know on Dreamweaver has a fade function to fade layers in and out. Although, it doesn't seem to work and when I use that method, all links become unclickable on the layers which I don't want. I've been looking around on the internet for what I need and didn't have any luck finding anything. Any ideas? Thanks, Evan
  13. Well, my client hasn't really given many images of his work. He said he is finishing one up this week so I'll be able to come in and get some pictures relating more to his work. Thanks for the 2-column advice I'll try that out. Now, I know my site looks good in terms of code, but if someone could take a look at it, I have tables within tables and it looks ugly to me. What would be a better way to code other then me using tables all the time?
  14. Okay, We'll I've been asked to make a website for a contractor with basic information and such. I just need some website design suggestions. Please provide not only what's wrong with it but how it can be improved. Thanks! Site URL: http://ev5unleash.dnsalias.org:1212/websites/Charles%20Construction/index.html
×
×
  • 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.