Search found 5 matches

by devinmcmanus
Mon Aug 27, 2007 7:43 pm
Forum: PHP - Code
Topic: PHP dynamics
Replies: 8
Views: 429

Can you give an example please?
by devinmcmanus
Mon Aug 27, 2007 7:25 pm
Forum: PHP - Code
Topic: PHP dynamics
Replies: 8
Views: 429

I want to make sure that I don't break anything like http://www.myhost.com/mysite/index.php. Also, I'm using a header.php file in http://www.myhost.com/mysite/includes/header.php. Hope this helps.
by devinmcmanus
Mon Aug 27, 2007 7:18 pm
Forum: PHP - Code
Topic: PHP dynamics
Replies: 8
Views: 429

So basically you're saying I should switch everything to use relative paths?
by devinmcmanus
Mon Aug 27, 2007 7:01 pm
Forum: PHP - Code
Topic: PHP dynamics
Replies: 8
Views: 429

OK cool feyd. Assuming $siteRoot is in an include file (ex: http://www.myhost.com/mysite/include/php_data.php) is there any way to set this up to work if I have a page like http://www.myhost.com/mysite/about/about.php and a CSS file in http://www.myhost.com/mysite/css/layout.css?
by devinmcmanus
Mon Aug 27, 2007 6:49 pm
Forum: PHP - Code
Topic: PHP dynamics
Replies: 8
Views: 429

PHP dynamics

Hi I have a PHP site that currently has a production environment only. I am thinking about adding a staging environment. Here's a sample piece of code: <?php $siteRoot = "http://www.myhost.com/mysite"; ?> <html> <body> <img src="<?php echo $siteRoot; ?>/_img/misc/myimage.jpg" /> ...