Project / Support Center
Welcome, Guest. Please login or register. November 25, 2020, 03:23: PM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Recent Posts
Pages: [1] 2 3 4 5 6 ... 10

 1 
 on: Yesterday at 08:48 PM 
Started by admin - Last post by admin
my server was 5 hours ahead and I needed to store the fixed local time ( meaning no other time zones would be needed)

<?php $hour= date('g'); ?>

<?php $time= $hour-5 ?>

Bold is the hour - $time takes the hour and subtracts 5 hours - change this to what ever you need to to match your correct time.

this is the value used in a text field

 value="<?php echo date('F') ?> <?php echo date('d') ?> <?php echo date('Y') ?>  - <?php echo $time ?>:<?php echo date('i') ?> <?php echo date('a') ?>"


This will insert into a text field in this format (we use this to show when someone last updated a record).

November 24, 2020 - 3:24 pm

 2 
 on: October 21, 2020, 07:31: PM 
Started by admin - Last post by admin
http://www.nux.ro/oldblog/archive/2012/10/Instant_image_gallery_with_Apache_s_mod_autoindex_and_fancybox.html

This will show a Lightbox pop up window for a ll photos or video listed in a apache server directory

 3 
 on: September 21, 2020, 11:20: PM 
Started by admin - Last post by admin
When you use it as a dynamic variable it will be entered into your script or email as {SERVER.HTTP_HOST}

$_SERVER['REQUEST_URI']
It returns the URL in to access the page which is executing the script.
If you need to type http://www.example.com/product.php?id=5 to access the page then $_SERVER['REQUEST_URI'] returns /product.php?id=5″.

$_SERVER['DOCUMENT_ROOT']
Returns the root directory of the server which is specified in the configuration file of server.
This variable usually returns the path like /usr/yoursite/www in Linux and D:/xamps/xampp/htdocs in windows.

$_SERVER['HTTP_HOST']
Returns the host’s name as found in the http header.
This variable usually returns the path like example.com when you find http://example.com in browsers address-bar and return www.example.com when you see http://www.example.com in the address bar.

This is quite useful when you've to preserve session while making an online payment using PHP since session stored for http://example.com is not same as for the http://www.example.com.

$_SERVER['HTTP_USER_AGENT']
Returns the user agents (browser) detail accessing the web page.
We can use strpos($_SERVER["HTTP_USER_AGENT"],MSIE) to detect Microsoft Internet explorer or you can use strpos($_SERVER["HTTP_USER_AGENT"], Firefox) to detect firefox browser in PHP.

$_SERVER['PHP_SELF']
Returns the file-name of the currently executing script.
Let’s suppose that you’re accessing the URL http://www.example.com/product.php?id=5 then $_SERVER['PHP_SELF'] returns /product.php in your script.

$_SERVER['QUERY_STRING']
Returns the query string if query string is used to access the script currently executing.
Query strings are those string which is available after the ? sign. If you use $_SERVER['QUERY_STRING'] in the script executing the following URL http://www.example.com/index.php?id=5&page=product then it returns id=5&page=product in your script.

$_SERVER['REMOTE_ADDR']
Returns the IP address of remote machine accessing the current page.
But you can’t relie on $_SERVER['REMOTE_ADDR'] to get the real IP address of client’s machine.

$_SERVER['SCRIPT_FILENAME']
Returns the absolute path of the file which is currently executing.
It returns path like var/example.com/www/product.php in Linux and path like D:/xampp/xampp/htdocs/test/example.php in windows.

 4 
 on: August 17, 2020, 09:57: PM 
Started by admin - Last post by admin
 <script type=”application/ld+json”>
{
“@context”: “http://schema.org/”,
“@type”: “Review”,
“itemReviewed”: {
“@type”: “Thing”,
“name”: “name of service”
},
“author”: {
“@type”: “Person”,
“name”: “ group or oganization ”,
"reviewBody": "actual review "
},
   "date": "May 2, 2019",
“reviewRating”: {
“@type”: “Rating”,
“ratingValue”: "9.5 ",
“bestRating”: “10”,
 "worstRating": 1
},
"offers":
{
    "@type": "Offer",
    "name": "what are you offering",
    "url": "link to web page with offer",
    "price": "0.00",
    "priceCurrency": "USD"
  },
“publisher”: {
“@type”: “Organization”,
“name”: “group name”
}
}
</script>

 5 
 on: August 10, 2020, 04:54: PM 
Started by admin - Last post by admin
Here is some sample code illustrating how this might be used for a service provider with a local service to provide that we can be introduced on a page without structure data, or appended to a page with existing schema.org structured data:


<script type="application/ld+json">   
           {
   "@context": "http://schema.org",
   "@type": "Service",
   "serviceType": "{Insert Service Here}",
   "provider": {
      "@type": "Organization",
      "name": "{Insert Org Name Here}",
      "@id": "{Insert Org URL Here}"
   },

   "description": "{Insert Description Here}",
        "potentialAction": {
                "@type": "Continue the Conversation",
                "name": "Continue the Conversation"
   "serviceOutput": {
      "@type": "{Insert Output Here}",
      "name": "{Insert Output Here}",
      "@id": "{Insert Defining URL Here}"
   },

        "url": "{Insert URL Here}",
        "@id": "{Insert URL Here}"
}

</script>

 6 
 on: July 16, 2020, 01:55: PM 
Started by admin - Last post by admin
The following rule must be added to the website .htaccess file

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 7 
 on: July 15, 2020, 02:08: PM 
Started by admin - Last post by admin
<script type='application/ld+json'>
{
  "@context": "http://www.schema.org",
  "@type": "category",
  "name": "name",
  "url": "url image",
  "sameAs": [
     "Facebook",
     "pintrest"
  ],
  "logo": "logo url",
  "image": "image url",
  "description": "description",
  "address": {
     "@type": "PostalAddress",
     "streetAddress": "address",
     "addressLocality": "city",
     "addressRegion": "state",
     "postalCode": "zip",
     "addressCountry": "country"
  },
  "hasMap": "googlemap",
   "openingHours": "Mo 01:00-01:00 Tu 01:00-01:00 We 01:00-01:00 Th 01:00-01:00 Fr 01:00-01:00 Sa 01:00-01:00 Su 01:00-01:00",
  "telephone": "800-800-8000"
}
</script>

 8 
 on: June 06, 2020, 01:44: PM 
Started by admin - Last post by admin

Add this in the header

<script src='https://www.google.com/recaptcha/api.js'></script>


Add this the end of the file:

<script type="text/javascript">
   function my_button_click_handler() {

   var recaptcha = $("#g-recaptcha-response").val();
   if (recaptcha === "") {
      alert("Please check the recaptcha");
      return false;
   }
   return true;
};
</script>

Add the Recaptch at bottom of form before the </form>

                    <div  align="right" id="dmxReCaptcha2" class="g-recaptcha" data-sitekey="YOUR SITE KEY HERE"></div>

on form tag : add this 

<form onsubmit="return my_button_click_handler()" method="post"

 9 
 on: June 03, 2020, 08:33: PM 
Started by admin - Last post by admin
 <?php $monitor = substr(str_shuffle("0123456789"), 0, 3);?>

<?php echo number_format($monitor,0,'.',','); ?>  

Red = number of digits

Blue = number of decimals

 10 
 on: June 03, 2020, 03:07: PM 
Started by admin - Last post by admin
mail@example.com

.reverse {
    unicode-bidi: bidi-override;
    direction: rtl;
}
 
the HTML:
 
<p class="reverse">moc.elpmaxe@liam</p>

Pages: [1] 2 3 4 5 6 ... 10
Web Global Net Web Application & Web Development Project Center  |  Recent Posts


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!