Search found 5 matches
- Mon Aug 27, 2007 7:43 pm
- Forum: PHP - Code
- Topic: PHP dynamics
- Replies: 8
- Views: 429
- 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.
- Mon Aug 27, 2007 7:18 pm
- Forum: PHP - Code
- Topic: PHP dynamics
- Replies: 8
- Views: 429
- 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?
- 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" /> ...