Jump to content

C32

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by C32

  1. You would need to post your code to help with the online thing.Locally, you probably will not have any success sending email out on your own server, most residential ISPs block the outgoing mail port.

    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. One benefit would be that your test setup would match a web server.  Web servers don't use things like EasyPHP or XAMPP, the server admin downloads, installs, and configures PHP manually, or with a Linux package installation tool.  Also, since we shouldn't have to deal with command lines anymore, you can use phpMyAdmin to administer your MySQL server through a browser, makes it much easier..

    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. 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?

  5. 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..

  6. I've never used EasyPHP, but if you have the MySQL server running, you will need to make sure there is a user and password set up in there.  PHP will authenticate with the MySQL server, but it could be doing something else with EasyPHP.  Is the error that the username and password are not valid?

    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
  7. 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...