| | |
Having trouble with links on PHP site! Any help would be great!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2004
Posts: 94
Reputation:
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']
![]() |
Similar Threads
- PR6 quality header links for sale on established PHP site (Ad Space for Sale)
- Need help with PHP site and IE - Operation Aborted (PHP)
- Uploading current php site to another site. (PHP)
- links and php (PHP)
- Sitewide links on PR4 site for 4$/month (Ad Space for Sale)
- trouble setting up PHP with apache (PHP)
Other Threads in the PHP Forum
- Previous Thread: phpBB thread archive
- Next Thread: Scanning for links
| Thread Tools | Search this Thread |
.htaccess alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code convert cron curl database date display dynamic echo email encode error explodefunction fcc file files folder form forms function functions google howtowriteathesis href htaccess html image images include insert ip javascript joomla key keywords limit link login mail mail() memberships menu mlm multiple multipletables mysql mysql_real_escape_string network oop open passwords paypal pdf php provider query radio random redirect remote rss script search securephp server sessions smtp source space sql strip_tags syntax system table template tutorial update upload url user validator variable video voteup web youtube





