|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
So this is a second hand site* and routinely throughout it* the programmer made functions that generate various useful links* but he did it in such a way that the domain for the site was hard coded into these function. This is causing problems for myself and other developers running local installs and testing on staging servers.
As such* I would like to know if there's a standard and safe phpws way to get the current hostname* or whatever the hostname is configured to be for the site* and use that in my url helpers? So instead of: return "http://www.mysite.com/index.php?mod=mymod&tab=mytab"* I can do: return getSiteRoot() . '/index.php?mod=etc..'; ? __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
المواضيع المتشابهه | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Forum Retrieve remote file and reference locally? Please Explain | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 06-25-2010 01:20 AM |
Forum Template edit for "Retrieve remote file and reference locally" | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 04-04-2010 07:30 AM |
Forum How to retrieve {vb:raw thread.title} value on Forum PHP widget? | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 03-06-2010 07:50 PM |
Forum Answered how to disable "Retrieve remote file and reference locally" | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 02-23-2010 12:00 PM |
Quick question: Is it possible for an admin to access the database to retrieve a PM? | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 01-21-2010 11:40 PM |