I want to use the full URL for the location of my css, js, and image files in my header.php file. So that when the header.php file is called from another folder directory, it doesn't break the link.  However, I want the site to be accessible by http and https, set by the user in their profile settings in the web application.  I started to write some code below of the solution but I'm not sure if this is the correct way of handling this.  config.php   &lt;?php // use https $use_https = true; ?&gt;   header.php  &lt;?php if ($use_https == true) {    $proto = "https://"; } else {    $proto = "http://"; } ?&gt;    &lt;a href="&lt;?php print($proto . $_SERVER["SERVER_NAME"]); ?&gt;/some-folder/"&gt;Link&lt;/a&gt;
When I´m in a secure part of a web-site I´m developing (entering a specific page or folder using https), the relative links to the normal pages are automatically converted to https as well. Is there a way to tell an &lt;a&gt; tag to always use the http protocol instead of the https protocol (or the other way around)? I know it´s easy using the complete link ( or ), but I would like it to work with relative links (index.html, ../index.html, etc.).
Evaluate the integral $$\int^{\frac{\pi}{2}}_0 \frac{\sin^3x}{\sin^3x+\cos^3x}\, \mathrm dx.$$  How can i evaluate this one? Didn't find any clever substitute and integration by parts doesn't lead anywhere (I think).  Any guidelines please? How to search for upcoming conferences that will be held in a specific subject How to find distance from the latitude and longitude of two locations? sudo: unable to resolve host   I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name.  But how can I do that if I can't access sudo? It seems to have gone since I updated to 13.10.  I have tried nano, which still doesn't work. I know you can create a rounded-corner rectangle; but, how do you create a triangle with rounded corners in Photoshop?  I am actually interested in making it from scratch, not basing it on a custom shape that is available in Photoshop. Thanks. Find Nearby Accounts migration to Google Maps API v3 Is there a way to set app-specific volume? i have a huuuuge problem.  Created a snapshot and image from my instance...instance has 1000GB of disk.  Now i need to reduce it but everytime i try to create an image or a snapshot from that, i get the same error "Disk need to be at least 1000GB".  There is a way to reduce disk size directly on instance? Some workaround? C programming: How to program for Unicode? Drawing wavy, wiggly lines in QGIS? Is there a QGIS function or plugin to draw wiggly line?   I have used Spline Tool to manually draw some waves, but it is time consuming.  If possible, I would like to draw something like:    Inkscape Function Plotter ( sin(x) curve). ElasticSearch doesn't start after installing 5.6.4 Everybody knows :-) that in Windows plain text files lines are terminated with CR+LF, and in Unix&amp;Linux - with LF only. How can I quickly convert all my source code files from one format to another and back? How to connect to Office Online Server in Office365 I just wondering if we can use existing Office Online Server in Office365 for SP2013 on premise. If yes, how this can be achieve?   In SP2013 we normally run Get-SPWOPIBinding to find out the server binding and to connect to Office web App we normally run  New-SPWOPIBinding -ServerName. Is this the same command if I want to connect to the existing new Office Online Server in Office365?  Thanks I'm working on a project that requires me to get some of the position and rotation values to give to an Arduino via pyserial, but after sifting through the Blender documentation I can't find how to get them through script. Can one of Newton's Laws of motion be derived from other Newton's Laws of motion? Can one derive Newton's  second and third laws from the first law or   first and third laws from the second law or  first and second  laws from the third  law  I think Newton's laws of motions are independent to each other. They can not be derived from one another. Please share the idea. Motivation for spectral graph theory. When should I begin publishing? What is the right first step to take when integrating $1/(2+ \sin x + \cos x)$? I want a hint on this following integral. I don't know the first step, do I do $u$-sub. or do I use trig. sub or something?  $$\int \frac{1}{2+ \sin x + \cos x} ~\mathrm{d}x$$ Keep processes running after SSH session disconnects Can the “while attuned” powers of Solarian stellar revelations be used while attuned to either mode, or only the matching one?