Jump to content

C32

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by C32

  1. C32

    send email from localhost

    I used the similar code as SFB did, most basic thing. I tried it online on a free host and there was no error, but the email never arrived.. I checked the junkmail too.<?php$to = "myname@hotmail.com";$subject = "Test mail";$message = "Hello! This is a simple text message.";$from = "myname@hotmail.com";$headers = "From: $from";mail($to,$subject,$message,$headers);echo "Mail Sent.";?>
  2. can I send a genuine email to a nonlocal adress? I use XAMPP and I could send an email to newuser@localhost (btw: where can I find the email back?) but when I try to send it to an existing email of myself online, I got an error.I also have uploaded that php form to test it online, but the email never arrive in my inboxwhat is the problem?
  3. I think I understand a little what you are saying.. You can test your pages like it's already online? And you can use MySQL via a browser? but I am using XAMPP now and I am accessing phpMyAdmin via a browser.. so is that the same?maybe I don't need to know all of this (yet) and see into it later 1 more question though: where can I find that php.ini file in XAMPP? it says it's in the directory: xampp\apache\bin but I don't see it? and is it a normal php file so I can change some settings? boy I got alot to learn
  4. thx for the tip! can u also explain what the benefits are for installing those things seperatly instead of using XAMPP?
  5. I'll try to figure that out, making an account..but what do you recommend to use as PHP software/tools? What shall I use? I think easyphp is not that good, because it's different and the support of it is minimal..what do you use? what are popular software/tools/editors?
  6. how do u flush? I am only trying to connect, I have done nothing with sql yet.. I tried the restart of the server though.. nothinglike i said before.. somehow the change in the config.inc.php file have no effect on anything! i dont know why that is..
  7. when I use the default settings username="root"; password=""; it works. when i changed the config.inc.php file it doesnt seem to have effect.. so probably it's the wrong file :S? because with the config.inc.php file changed, and i am still using username=root etc. it works like nothing is changed at all..but when i change my login, i get error which is saying that i have no acces
  8. hi scripters,I'm currently learning PHP and I'm having a problem with changing the default for connecting with my_sql for a custom username and password <?php$con = mysql_connect("localhost","root","");if (!$con) { die('Could not connect: ' . mysql_error());}else{ echo "connection!";}// some code?> this is the default which works, but when I change "root" with my own username and set a new password it won't work anymore.I am supposed to change some settings in the php.ini file or somethingI am using Easy PHP and I can't find that file, but I found "config.inc" file where I can change the username and password, like i said before it didnt work.anyone here know what my problem is?
×
×
  • Create New...