

behnampmdg3
New Members-
Content Count
7 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout behnampmdg3
-
Rank
Newbie
-
Hi; I have a number like 1525183200, which is a result of strtotime. How can I convert it to days * hours * minutes * seconds so I can add it to the js code? I want to load data for a javascript timer using php. I need to feed it like var deadline = new Date(Date.parse(new Date()) + days * hours * minutes * seconds * 1000); Thank you
-
Can I access $_GET['id'] if the page is HTML? How does this code do it!!? The get some id in the URL and use it to load content on the page. Apparently, this code can be embedded anywhere. How do they do it with Javascript? <!-- Deadline Funnel --> <script type="text/javascript" data-cfasync="false"> function base64_encode(e) { var r, t, c, a, h, n, o, A, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", d = 0, l = 0, s = "", u = []; if (!e) return e; do r = e.charCodeAt(d++), t = e.charCodeAt(d++), c = e.charCodeAt(d++), A = r << 16 | t << 8 | c, a = A >> 18 & 63, h = A >> 12 & 63, n = A >> 6 & 63, o = 63 & A, u[l++] = i.charAt(a) + i.charAt(h) + i.charAt(n) + i.charAt(o); while (d < e.length); s = u.join(""); var C = e.length % 3; var decoded = (C ? s.slice(0, C - 3) : s) + "===".slice(C || 3); decoded = decoded.replace("+", "-"); decoded = decoded.replace("/", "_"); return decoded; } var url = base64_encode(location.href); var parentUrl = (parent !== window) ? ('/' + base64_encode(document.referrer)) : ''; (function() { var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.setAttribute("data-scriptid", "dfunifiedcode"); s.src = "https://df.com/runified/eyJpdiI6IisxXC9PODljVXRubjZQU3JyZGFp9ITEE9PSIsIm1hYyI6Ijk0N2NlNTdmNTY2NmQ2ODQ2OTM3YjlhYzEzODI2OThkMTNhMDBmM2RhMDIzMTFhNDM4ZTIwZmU1OWUxNzE4NDUifQ==/" + url + parentUrl; var s2 = document.getElementsByTagName('script')[0]; s2.parentNode.insertBefore(s, s2); })(); </script> Thanks
-
Allowing square brackets in URL Codeigniter
behnampmdg3 replied to behnampmdg3's topic in PHP Coding Help
Do you mean $config['permitted_uri_chars'] = 'a-z 0-9~%.:_()@&\-!\[\]'; ? Seems to work. Thank you -
Hi; I need to be able to access local.site.com/e-evergreen/36/ I get I did this but I still get the same error. $config['permitted_uri_chars'] = 'a-z 0-9~%.:_()@&\-![]'; How can I fix it? Thanks
-
Hello I have simple math formula I wanna convert to PHP, but for some weird reason I can't! (X*X)*(3X)=1200 Its should be easy to calculate it on paper but how can I convert this to PHP? Maybe it's too simple and my retardness has poped! Maybe something like? pow($y, 3)= 1200/3 Still not sure how to get thew reply from that. Thanks