![]() |
|
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| Website Design Discuss web design |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() | page content query
im not sure if this is possible but.... is it possible to a certain keyword on a .php page that when is displayed pulls text from a file and inserts in onthe page. also come to think of it, is this possible with an image also hope that makes sence lol Last edited by SecNam; 27-10-2009 at 03:43:01 PM. |
| |
| | #2 (permalink) |
![]() |
Do you mean something like this? <html><body>This is the text that is in the page but you want a <?php>$insert=file("input_file.txt"); echo $insert; ?> piece of text from the text file in the code to appear before this sentence and on any other pages to put the PHP code in?</body></html> The above would pace the output of the file input_file.txt in any page it was used in, and if you change the file the text is changed on all pages that the php code is in. saying that there are lots of ways of doing the same thing. Ty |
| |
| | #3 (permalink) |
![]() |
not sure - original question is bit vague:- Code: $original_text = "blah blah keyword1 blah";
$keywords = array('keyword1'=>'filename1.txt','keyword2'=>'filename2.txt');
foreach($keywords as $kw=>$file)
{
$original_text = str_replace($kw,file_get_contents($file),$original_text);
} |
| |
| | #4 (permalink) |
![]() |
yes and no ty as im more thinking about it i think it would be better if i can get it so it looks at the url then displays the text or .html/.php so for example i have cars.co.uk (i wish) when someone visits that url the index page looks at url in question then as said above brings on the file associated with that url. |
| |
| | #5 (permalink) |
![]() |
This is one way of doing it. Code: code snippet removed Last edited by retired_member13; 28-10-2009 at 07:37:05 AM. Reason: Syntax error in the code |
| |
| | #7 (permalink) | |
![]() | Quote:
Rgds
__________________ LowPrices.co.uk | My Twitter | KeyphraseDomains.co.uk | Mens Shirts | Hotels in Bath | Money Off Code | |
| |
| | #9 (permalink) |
![]() |
__________________ LowPrices.co.uk | My Twitter | KeyphraseDomains.co.uk | Mens Shirts | Hotels in Bath | Money Off Code |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| Advertising my service: I develop mini sites. | gameboy | Services Wanted | 1 | 27-05-2009 10:13:03 AM |
| Advertising my service: I develop mini sites. | gameboy | Mini Sites | 0 | 23-04-2009 08:49:19 PM |
| Dofollow Links | jj1 | Search Engine Optimisation | 7 | 30-03-2009 12:17:16 PM |