Jump to content
Larry Ullman's Book Forums

tomliuwhite

Members
  • Posts

    5
  • Joined

  • Last visited

tomliuwhite's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am working on WindowsXP with wampserver. I am trying to insert the info to the database of forum2, so I copied below data from file: sql_utf8.sql: INSERT INTO languages (lang, lang_eng) VALUES ('English', 'English'), ('Português', 'Portuguese'), ('Français', 'French'), ('Norsk', 'Norwegian'), ('Romanian', 'Romanian'), ('Ελληνικά', 'Greek'), ('Deutsch', 'German'), ('Srpski', 'Serbian'), ('日本語', 'Japanese'), ('Nederlands', 'Dutch'); And I pasted it on the mysql command window, it showed(see below picture): http://hi.baidu.com/tomliuwhite/album/item/b36ca95ef8198618c766d9c94aed2e738ad4e6e4.html# And it did not work. So what is this problem?
  2. For below function: function absolute_url ($page = 'index.php') { // Start defining the URL... // URL is http:// plus the host name plus the current directory: $url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); // Remove any trailing slashes: $url = rtrim($url, '/\\'); // Add the page: $url .= '/' . $page; // Return the URL: return $url; Why not do this way? function absolute_url ($page = 'index.php') { // Start defining the URL... // URL is http:// plus the host name plus the current directory: $url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; // Return the URL: return $url;
  3. Thanks for your suggestion. I followed the tutorial http://www.abyssunderground.co.uk/installing-hmailserver.php. when I run the code script 10.1-email.php, it shows "Thank you for contacting me. I will reply some day." But in my mail box , I did not get the message from "Contact Me" form. I even went to http://www.hmailserver.com/forum/ for help. But the problem still is not solved. So is there any suggestion on other mail servers for windows system?
  4. On chapter 10.1, for php mail(): I am using wampserver on my windowsXP computer. I installed hMailServer. But I do not know how to configure hMailServer to make it work.
×
×
  • Create New...