Jump to content

xenophobia

Members
  • Posts

    299
  • Joined

  • Last visited

About xenophobia

  • Birthday 09/18/1987

Contact Methods

  • MSN
    xenophobia87@hotmail.com

Profile Information

  • Gender
    Male
  • Location
    Malaysia

xenophobia's Achievements

Member

Member (2/5)

0

Reputation

  1. I am seeking for advise on setting up the SMTP for my websites. I have two servers. One is mail server and another one is web server. I have more than one website in the web server. All email accounts are stored in the mail server. On my website, I have many enquiry forms. Some on the same domain some on different, but same server. These forms will send an email to the site owner once user submit the form. My questions: 1) Should I configure my script to use the mail server as a relay to send out email via SMTP? Because as I know, if I use the sendmail program in the web server, email that goes out will categorized as spam. 2) If Q1) is YES, should I create one account for each domain? Because I have multiple domain hosted on both server. So each website will use the assigned account to relay email. 3) Is it possible to configure my mail server to whiltelist my webserver so that it allowed it to connect via SMTP without authentication and allowed to set the sender's email differently? If possible, which setting I should look into? EG: SPF. This is a conceptual question. So no hardware or software restriction. I just need some guide on where I should look into it. Thank you for reading!
  2. Errmm there are many ways to do it. 1st: Two queries. First query is to store all country's ID and loop it. Then from the country ids, you yield the cities name based on the country's ID. 2nd: Loop the result set you have, store them into a multidimension array. Eg: [ "uk" : [ "liverpool", "london" ], "germany" : [ "..." ] ] Tips: you can use the "isset" function to check whether the array key is exists. From the array list, then you can print them in the desired order.
  3. Your onclick event code doesn't look like having any problem. I believe it was your php code. Try load the page and view the source, look for the line. Because sometime if PHP throw an error inside the HTML tag, you can't view it on your page. Verify the PHP code before troubleshooting your javascript =)
  4. Hi, I've been searching on this scripts or plugin for website. I have no idea what you call it. I can only explain how it's look like. Here we go: Just like <map> in HTML, user can click or react with an image on certain position or shape. When a user mouse over a certain part of the image, I want another picture with few wording popsup. Eg: A world map picture is displayed on a web page, when a user mouse over a country, the entire land will be highlighted, and a small image box will come out and show the country's flag with the name of the country. This is just a simple scenario, i am looking a framework that can actually implement on many purpose. Wonder if there is anyone know about this kind of framework? Thank you!
  5. Just to make sure your $this->_template object has instantiated in your constructor method. I am not sure about the framework you used, usually PHP framework don't encourage overriding the default constructor method. Check your manual or simply echo a string in your constructor to see if the processor run that method. =]
  6. If you are outputing the value from database to your HTML document, use htmlentities(). $result = mysql_fetch_row($qry); echo htmlentities($result['col_name']); =)
  7. try echo $sql then copy the sql string and make a query in your database. See if you get 5 result as expected. =)
  8. What do you mean by include web.config file in my project ? As I mentioned, I am running Joomla! CMS on my IIS 7.5 server. The web.config file is basically used for my URL Rewrite which produce a search engine friendly URL (SEF URL).
  9. Try to be more specify. Which part doesn't work. Instead of post your js script here and expect ppl to try out for you =)
  10. Hi, I having a strange problem where out of sudden, my sub-pages was not running and shows up error 404, page not found. Note, it only happened on my sub-pages but not homepage. Meaning www.domain.com/site1 no problem, but www.domain.com/site1/subfolder will cause the error. How I fix it is very weird. I just go to C:\Inetpub\www\site1, rename the web.config to web1.config. Then rename it back to web.config, then my subpages works back. It doesn't matter what you rename, as long you did some changes on the web.config, it will work fine. How is that possible ? FYI, IIS 7.5 Joomla 1.5 MySQL 5 PHP 5.2 So my web.config is to enable the SEF URL for Joomla. So far I can't find any pattern that trigger this incident. Just wonder if there are anyone facing the same problem with me?
  11. As I said, there is no way to get external source page's height. What you can do is, create a PHP file as a proxy to the external source. Eg: http://www.yourdomain.com/load_external_source.php In your code: <?php if (isset($_GET['url'])) { $url = urldecode($_GET['url']); $html = file_get_contents($url); echo $html; } ?> So you can query external source using local domain: http://www.yourdomain.com/load_external_source.php?url=http://abc.com/navigation/74550.cms With that, the page will be loaded and now your javascript can get the height of the content. Please try out, cheers
  12. Correct me if I'am wrong, you wanted the iframe to automatically adjust the height based on the content inside. Please refer to this tutorial: http://www.mattcutts.com/blog/iframe-height-scrollbar-example/ Please note, if the source (src) of the iframe is out of the domain, your auto height adjust will not work as the script could't get the height of the content due to the security restrict of the client browser.
  13. ehh, i know not much about program signal. But I've tried pcntl_signal() on Windows and it was not working.
  14. Maybe you are looking at this? www.jsrs.org
×
×
  • 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.