Jump to content


  • Posts

  • Joined

  • Last visited

About nadeemshafi9

  • Birthday 01/16/1985

Contact Methods

  • MSN

Profile Information

  • Gender
  • Location

nadeemshafi9's Achievements

Advanced Member

Advanced Member (4/5)



  1. Well, I think it boils down to habit more than anything else. Sticking with ereg relfex habits will come back to haunt you sooner or later (as sooner or later [most likely the latter], hosting providers will ditch PHP 5.x in favor of 6, once 5.x is old enough and falls out of favor [much like what's happening with PHP 4]). By future proofing your code now (getting into PCRE habits), you won't have to worry about the day your code breaks in the event your hosting provider switches to 6 and doesn't happen to include POSIX's extention. Or rephrased another way, sticking with PCRE, you can't go wrong.. but sticking with POSIX, something can go wrong down the line. Ultimately, it's your call.. just trying to encourage going the safer route is all. most of the systems i developed are large scale so they are sitting on in house custom built servers made just for them and they have there personal interface to the internet eg there own lines, they will be kept as legacy systems and code. i completely understand what your saying thogh, good practice is good practice.
  2. when u log in make the cookie, and add to databse a hashed random number and on every page check they are both the same. its easier to write it yourself if you are learning, just break down what i said take it step by step and find a solution once step at a time.
  3. yes i know that and i am trying my best to use preg but by reflex i use ereg, the thing is that i dont think the app will port into php 6 anyways so whats the point, but yes i do use preg instead now.
  4. try $name = $_SESSION['post']['name']; $content=<<<EOF <div id="main-container"> <div id="form-container"> <h1>Contact Form</h1> <h2>Why not drop us a line and we will get back to you!</h2> <form id="contact-form" name="contact-form" method="post" action="submit.php"> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td width="15%"><label for="name">Name</label></td> <td width="70%"><input type="text" class="validate[required,custom[onlyLetter]]" name="name" id="name" value="$name" /></td> OR <td width="70%"><input type="text" class="validate[required,custom[onlyLetter]]" name="name" id="name" value="{$name}" /></td> <td width="15%" id="errOffset"> </td> </tr> <tr> <td><label for="email">Email</label></td> <td><input type="text" class="validate[required,custom[email]]" name="email" id="email" value="<?=$_SESSION['post']['email']?>" /></td> <td> </td>
  5. why not ? scuuuurd ? $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); http://docs.jquery.com/Ajax/jQuery.ajax#options
  6. http://docs.jquery.com/Ajax/jQuery.ajax#options $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } });
  7. Advanced JavaScript with Internet Explorer: Retrieving Networking Configuration Information - How to retrieve MAC address and other extended network information using JavaScript (Page 2 of 6 ) Now, let us try to extend the previous sample by showing further information about the network adapters. The entire code for the sample is as follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas. microsoft.com/intellisense/ie5"> <script id="clientEventHandlersJS" language="javascript"> <!-- function Button1_onclick() { var locator = new ActiveXObject "WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration"); var e = new Enumerator (properties); document.write("<table border=1>"); dispHeading(); for (;!e.atEnd();e.moveNext ()) { var p = e.item (); document.write("<tr>"); document.write("<td>" + p.Caption + "</td>"); document.write("<td>" + p.IPFilterSecurityEnabled + "</td>"); document.write("<td>" + p.IPPortSecurityEnabled + "</td>"); document.write("<td>" + p.IPXAddress + "</td>"); document.write("<td>" + p.IPXEnabled + "</td>"); document.write("<td>" + p.IPXNetworkNumber + "</td>"); document.write("<td>" + p.MACAddress + "</td>"); document.write("<td>" + p.WINSPrimaryServer + "</td>"); document.write("<td>" + p.WINSSecondaryServer + "</td>"); document.write("</tr>"); } document.write("</table>"); } function dispHeading() { document.write("<thead>"); document.write("<td>Caption</td>"); document.write("<td>IPFilterSecurityEnabled</td>"); document.write("<td>IPPortSecurityEnabled</td>"); document.write("<td>IPXAddress</td>"); document.write("<td>IPXEnabled</td>"); document.write("<td>IPXNetworkNumber</td>"); document.write("<td>MACAddress</td>"); document.write("<td>WINSPrimaryServer</td>"); document.write("<td>WINSSecondaryServer</td>"); document.write("</thead>"); } //--> </script> </head> <body> <INPUT id="Button1" type="button" value="Button" name="Button1" language="javascript" onclick="return Button1_onclick()"> </body> </html>
  8. var strComputer = "."; var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\cimv2"); var e = new Enumerator(objWMIService.ExecQuery("Select * from Win32_NetworkAdapter","WQL",48)); for (;!e.atEnd();e.moveNext()) { objItem = e.item(); WScript.Echo ("MACAddress: " + objItem.MACAddress) }
  9. if javascript can some how capture it or is passed it, you may be able to ajax it over
  10. dont use sha1 it does not check against passwords, use crypt its better and more suited
  • 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.