Related Articles
PHP Server Common Codes To Get Values
$_SERVER[“DOCUMENT_ROOT”] === /home/user/www$_SERVER[“SERVER_ADDR”] === 143.34.112.23$_SERVER[‘HTTP_HOST’] === example.com (or with WWW)$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123__FILE__ === /home/user/www/folder1/folder2/yourfile.php —>//p.s. ON WINDOWS SERVERS, instead of / is basename(__FILE__) === yourfile.php__DIR__ === /home/user/www/folder1/folder2 [same: dirname(__FILE__)]$_SERVER[“QUERY_STRING”] === var=blabla#123$_SERVER[“REQUEST_URI”] === /folder1/folder2/yourfile.php?var=blabla#123 parse_url($_SERVER[“REQUEST_URI”], PHP_URL_PATH) === /folder1/folder2/yourfile.php $_SERVER[“PHP_SELF”] === /folder1/folder2/yourfile.php//if “parentfile.php” includes this “yourfile.php”(and inside it are the codes written), and “parentfile.php?a=123” is opened, then$_SERVER[“PHP_SELF”] […]
How to Create document using VB Script
To create a document using VB script you need a text editor and use the below code. VB script must be ended by using .vbs VB script runs only on Internet Explorer browser. <script type=”text/vbscript”>Set word = CreateObject(“Word.Application”)Set ActiveDocument = word.Documents.Add()ActiveDocument.TypeText “My first document”ActiveDocument.TypeParagraph()ActiveDocument.SaveAs(“c:sample.doc”)</body></script>
Simple PHP Program that checks data between two dates using jquery and returns result
Below is the PHP script for returning the result using from and two dates with jquery, using mysql as db. It pulls all the data present in between teh mentioned from and to dates. The jquery UI user datepicker it has functionalities like default date and onload show current date. From to