If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Relative and Absolute Addresses

Started by chinmay.sahoo, 12-19-2015, 03:00:43

Previous topic - Next topic

chinmay.sahooTopic starter

In the remainder of this chapter we will describe a number of functions that take relative addresses of fi les and/or directories as arguments. For completeness we should mention that absolute addresses are also permitted. For example we can refer to the fi le main.php in directory 'buildings' as /public_html/buildings/main.php, giving the full address starting at the root directory. However we do not recommend doing this. Using relative addresses such as ../buildings/main.php makes your scripts (and your entire website) far more portable. Should you ever move your website to a new server which uses slightly different standards or should your system administrator decide to  structure the directory structure of the site the absolute address of your home directory might change to say /web or /system/ public_html. This ought to be a minor change but if you have used absolute addresses you will need to search through every one of your PHP scripts and change every absolute address. By contrast if you have relative addresses you should not need to make any changes at all.



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...