•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 425,929 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,706 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2028 | Replies: 1
![]() |
| |
•
•
Join Date: Mar 2004
Location: In a house
Posts: 94
Reputation:
Rep Power: 5
Solved Threads: 0
if you URLs are like that in your source code you will need to do something like this:
[php]<?php
$url = preg_replace("#[(.+?)]#i","$urlbits['\\1']",$url)
?>[/php]
All you need to do the is create an array (for example $urlbits) and place all the replaces in for example [site_url] would be $urlbits['siteurl']
[php]<?php
$url = preg_replace("#[(.+?)]#i","$urlbits['\\1']",$url)
?>[/php]
All you need to do the is create an array (for example $urlbits) and place all the replaces in for example [site_url] would be $urlbits['siteurl']
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- links and php (Search Engine Optimization)
- Please review my PHP-site (Website Reviews)
- pasting adsense code in php site (Pay-Per-Click Advertising)
- Uploading current php site to another site. (PHP)
- links and php (PHP)
- Sitewide links on PR4 site for 4$/month (Ad Space for Sale)
Other Threads in the PHP Forum
- Previous Thread: phpBB thread archive
- Next Thread: Scanning for links


Hybrid Mode