[PHP-DB] RE: [PHP-WIN] Re: Need Help in setting up a server
The IP you cited Is the IP provided by your router or modem, and not one others from "out side" can use to access your server. Now on the other side of that, if you go to the machine that has the WAMP installed and open a browser and point it to "http://what.is.my.ip.com"; you may see the "public IP" for that machine, which can be used for linking to your server, but is not guaranteed to stay with that machine depending on powering up and down of your systems, and your ISP's procedures for assigning IP's. Hope this helps, Warren Vail Vail Systems Technology -Original Message- From: nagendra prasad [mailto:nagendra802...@gmail.com] Sent: Tuesday, June 29, 2010 1:12 PM To: phpexpe...@yahoogroups.com; PHP DB; php mysql; php-wind...@lists.php.net Subject: [PHP-WIN] Re: Need Help in setting up a server Hi all, Thanks everyone. I just tried all of your suggestions and found that WAMP server is working by using the running WAMP server's system IP. I just typed 192.168.1.4 in the address bar and its working now. So, I came to a conclusion that if I have a static IP then I can access it from out side as well right. Correct me if I am wrong ?? So, if I am right is it possible to run a server from home ?? Best, Guru. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Need Help in setting up a server
Hi all, Thanks everyone. I just tried all of your suggestions and found that WAMP server is working by using the running WAMP server's system IP. I just typed 192.168.1.4 in the address bar and its working now. So, I came to a conclusion that if I have a static IP then I can access it from out side as well right. Correct me if I am wrong ?? So, if I am right is it possible to run a server from home ?? Best, Guru.
Re: [PHP-DB] Email validation
On 28 June 2010 15:42, gmail wrote: > Hello to you all! > > I'm facing a problem with a scrip that can validate a form witch accept only > as input email address. > > I have seen many scripts on the net and were very interesting but I'm not > able to implement those scripts on my need. > > I'm explaining myself better! > > I have a form to collect a User Input Email address, > > After a script to check the syntax of the user email is correct. > > Then check the mx record if really exist. > > At the end if the user input (email) meets all my requirements the pass it > (store) in a DB. > > Please I'll be grateful to all your possible solutions > > Thanks. > > > > How much detail do you want? Validating email addresses goes from the mundane to the extreme. The rules on the EXACT format of an email address are significant. Reading http://en.wikipedia.org/wiki/E-mail_address#RFC_specification will give you a lot of detail. There are MANY regular expressions available, again, covering some aspects of a "valid" email address. Some cover more than others. http://www.regular-expressions.info/email.html has a good explanation regarding email address validation using regular expressions (and is part of the RegexBuddy documentation). Note the last line ... "So even when following official standards, there are still trade-offs to be made. Don't blindly copy regular expressions from online libraries or discussion forums. Always test them on your own data and with your own applications." As for the MX part, PHP has the getmxrr() function for this task - http://docs.php.net/manual/en/function.getmxrr.php There are also a lot of user notes covering email address validation. Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Email validation
Hello to you all! I'm facing a problem with a scrip that can validate a form witch accept only as input email address. I have seen many scripts on the net and were very interesting but I'm not able to implement those scripts on my need. I'm explaining myself better! I have a form to collect a User Input Email address, After a script to check the syntax of the user email is correct. Then check the mx record if really exist. At the end if the user input (email) meets all my requirements the pass it (store) in a DB. Please I'll be grateful to all your possible solutions Thanks.
[PHP-DB] Re: pear template revoke problem
The problem resolved because the following line: $tpl = new HTML_Template_IT("./template"); changed to : $tpl = new HTML_Template_IT("."); the .php works fine. All you best What we are struggling for ? The life or the life ? On Tue, Jun 29, 2010 at 2:55 PM, win.a wrote: > Hello,the phpers.i'm recently learn to use the pear HTML_Template_IT, > The following is my test template test.tpl,the source code is : > > > > > > {DATA} > > > > > > > And my php revoke source code is : > require_once "HTML/Template/IT.php"; > > $data = array("Peter","Quagmire","Joe"); > > $tpl = new HTML_Template_IT("./template"); > > if (!$tpl) { > echo "object inital failed!"; > echo ""; > } > else > print "Object initial succeed!"; > > $tpl->loadTemplatefile("test.tpl", true, true) ; > > if (!$tpl) { > echo "template load failed!"; > echo ""; > } > else > print "template load succeed!"; > > foreach ($data as $sd ){ > //echo $sd; > //echo ""; > $tpl->setCurrentBlock("CELL"); > $tpl->setVariable("DATA", $sd); > $tpl->parseCurrentBlock("CELL"); > } > $tpl->show(); > ?> > > When it runs it just result this : > > Object initial succeed! > template load succeed! > > i don't why the array data are not displayed?Any comments are appreciated ! > > All you best > > What we are struggling for ? > The life or the life ? > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php