Jump to content

Some Technical Questions

- - - - -

  • Please log in to reply
2 replies to this topic

#1
sachinsharma1507

sachinsharma1507

    Newbie

  • Members
  • Pip
  • 8 posts
Hi frz, hello everyone here.

I have some questions regarding web development. These are -

Q 1. Plz tell me how can we send email to someone or get email from our website visitors in real time by using php mail() function. I know mail() function is used to send mail directly from our script. But all we know that this mail() fun doesn't work if some requirements are not fullfilled. I know we can install our own mail server to send email or we can also use remote smtp server of an ISP to send emails. I use html mailto to send email through Outlook Express. I can configure Outlook Express for sending emails very easily. For this, I use Gmail SMTP service which is free of cost. So come to the point, should I install my own mail server or use remove SMTP server? If I have to install my own mail server then plz tell me which is good, free and easy to install and configure. And otherwise if we go to second option - using remote server then how can i configure that. Also what changes will be made in php.ini file to implement the job. Plz tell in detail and simple words with example. I'll be very thankful to you.



Q 2. I am developing my website. Plz tell me which links should i use in my site. Should it be absolute or relative. For example which one is used -
www.mydomain.com/tutorials/html.php
or
simply ../html.php
I heard if we have to change the domain for some reason then it will be very painful to us to change entire links of website. But whereas I look other professional sites, they all use absolute paths for links. Also in each page, i want to put a link to my homepage, so tell me it should be www.mydomain.com or simply index.php?

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200
1), Configuring your own mail server may be extremely difficult compared to using an existing one if you do not have any knowledge in that area of systems administration. You can set PHP to speak to gmail's servers directly with the mail() function by configuring sendmail on the command line (may require following some steps online), you will have to ask your hosting provider to do the changes if you are on shared hosting, otherwise you may not need to configure anything just to send (what were your lack of requirements?)

2) You've a third option, by referencing the root of the domain, rather than the domain itself:
<a href="[B]/[/B]tutorials/html.php">...</a>

This will reference <current domain>/tutorials/html.php no matter where you are in the directory structure.

Alexander.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
sachinsharma1507

sachinsharma1507

    Newbie

  • Members
  • Pip
  • 8 posts
thanx dude




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users