Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,307 members, 7,808,041 topics. Date: Thursday, 25 April 2024 at 05:28 AM |
Nairaland Forum / Science/Technology / Webmasters / I Need Urgent Help!!! PHP DATE Is Giving Me Issues (670 Views)
Need Help PHP OOP / Glo Is Giving Me Headache / Need Help! Php Login Script Fails Doesn't Work For Opera Mini Mobile (2) (3) (4)
I Need Urgent Help!!! PHP DATE Is Giving Me Issues by IkpemhiTG(m): 11:31am On May 25, 2016 |
I just lunched a site and the date on my comment section happens to be different from what I had when using wamp server.What do I do? I have tried putting date_default_timezone to Africa/Lagos but no changes occur I have tried inserting this -setEnv TZ Africa/Lagos in my .htaccess file all to no avail. so what next my fellow developer? |
Re: I Need Urgent Help!!! PHP DATE Is Giving Me Issues by webdeveloperqx: 1:36pm On May 25, 2016 |
IkpemhiTG: you don't set default timezone in a ".htaccess file" . you do in a "php.ini" file . look for the php.ini file and paste the code : date_default_timezone("Africa/Lagos" . if a php.ini file does not exist in your root directiory of your website, simply create a new file and save it as php.ini then paste the code. i hope this solves your headache. happy coding ! contact: webdevloperqx@gmail.com |
Re: I Need Urgent Help!!! PHP DATE Is Giving Me Issues by IkpemhiTG(m): 3:15pm On May 25, 2016 |
webdeveloperqx:ait boss I will try that buh I taught php.ini is not available for shared hosting like I did o.leme still giv it a try shaa |
Re: I Need Urgent Help!!! PHP DATE Is Giving Me Issues by ps3o(m): 5:43pm On May 25, 2016 |
IkpemhiTG: if it's a shared hosting, forget about editing php.ini try this <?php date_default_timezone_set("Africa/Lagos"echo date_default_timezone_get();?> |
Re: I Need Urgent Help!!! PHP DATE Is Giving Me Issues by 4ward(m): 11:05am On May 26, 2016 |
IkpemhiTG: Lets Talk: Mobile/Whatsapp: 07038641600 BBM: 7B663F3A www.africanwebservice.com admin@africanwebservice.com An expert in *Blog Design,content management systems (CMS) such as Webpagemaker,Frontpage, wordpress, joomla, drupal, ecommerce platforms such as opencart, magento, Abante cart,WHMCS, prestashop. *SEO,Responsive&Mobile Friendly Site Expert *Blogs:Ghost,serendipity,eggblog *Forums:SMF,Vanilla,phpBB, *Polls and Survey Sites:Limesurvey,littlepoll,piwik *Open Source website Development & Customization / CMS Integration (joomla, Drupal, wordpress, etc) *E-commerce website Development (magento, opencart, OS Commerce, Zen Cart integration etc) *SEO (Get Your website Top Ranking in Google. *Mobile Application (iOS & Android) *An expert in CCTV,CAR Tracker&Biometric Services 1 Like |
(1) (Reply)
Adsense Guruz Pls Enter Here / Adsense Sent Me This After I Applied / My Conversation With A Developer
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 15 |