Posts: 41
Name: Jabis Sevon
Location: Tampere, Finland
|
Quote:
Originally Posted by ChillyWilly
Could you explain how you wrote it in the text file as I am not getting output also the text file is like this its not just one domain its several
|
PHP Code:
dyna.pumppumedia.com_title= Test Title dyna.pumppumedia.com_description= Test Description dyna.pumppumedia.com_content= Test Content
------------------------------------------------------
sample1.com_title= Test Title sample1.com_description= Test Description sample1.com_content= Test Content
----------------------------------------------------------------------------
sample2.com_title= Test Title sample2.com_description= Test Description sample2.com_content= Test Content
You'd need to change sample.com,sample1.com or sample2.com to match your.domain.name to see the title assigned to it,...
you're assigning $domain_name to $_HTTP['server_host']; which you're referring to in the code... so the above modified content worked for my test platform without modifying one line in your code, just the first batch in the txt file. So if you'd want the text associated to sample1.com sample2.com etc, you'd need to have access to them, and upload the code TO sample1.com, sample2.com and so on, OR they need to point to the same place...
hope this wasn't too complicated of an answer, but cheers, just change the domain to match your's and you'll see content :>
Last edited by jabis; 11-17-2008 at 10:11 AM..
Reason: got confused and rewrote a small part, lol
|