Re: HTML Template, PHP, Javascript & PATH_INFO
| From: | John W. Holmes | Date: | Fri, 05 Sep 2003 01:51:05 +0000 |
| Subject: | Re: HTML Template, PHP, Javascript & PATH_INFO | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161712@lists.php.net to get a copy of this message | ||
Richard A. DeVenezia wrote:
[snip]
I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for not finding js1.js - 2. for not finding js2.js - 3. for not finding content1.js - 4. for not finding helloFromContent1() functionI think you're confusing HTML. While the server understands slick.php/content1.html, HTML probably doesn't and is looking for slick.php/content1.html/js1.js (and the other files).
I don't want to change my SRC references to be site absolute, I want them relative.Well, I'm glad that's what you want, but how about using it anyhow because it'll work. Like Chris said, you can use a function/variable to get the complete path so it's really no extra work for you. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com