mah-skeet Posted October 18, 2008 Share Posted October 18, 2008 Hi Everyone, I am brand new to php. I've adopted a website that is mostly php with some asp. I copied the code to my local machine. I go to run the website and all of my raw text is there, but none of the stylesheets/images load. Is there a way to see where I am in the website (as far as the path)? What I mean is, the root of my website exists in C:\Website\root. The default page is index.php. Index.php references several other php pages and finally displays the page (main.php) that the user sees. Main.php is located in C:\Website\root\source. Like I said, I know absolutly nothing about php. If anyone cares to help, I would greatly appreciate it. I can provide source code...whatever you need. FYI...I'm using PHP5. Many Thanks, Mark Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/ Share on other sites More sharing options...
ratcateme Posted October 18, 2008 Share Posted October 18, 2008 by "raw text" do you mean it shows everything in side the <?php ?> tags? caus that say you are not using PHP to phrase the files. Scott. Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/#findComment-668437 Share on other sites More sharing options...
R4nk3d Posted October 18, 2008 Share Posted October 18, 2008 This doesnt exactly have to do with PHP more HTML, but i am not exactly sure how to do it. Look at the $_SERVER variables i think is ur best bet. Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/#findComment-668443 Share on other sites More sharing options...
ratcateme Posted October 18, 2008 Share Posted October 18, 2008 and why is this a poll? Scott. Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/#findComment-668501 Share on other sites More sharing options...
konti Posted October 19, 2008 Share Posted October 19, 2008 try putting somewhere in your page: echo $_SERVER[sCRIPT_FILENAME]; To see what enveronment variables you have you can take a look at phpinfo() or check out Eclipse. Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/#findComment-668935 Share on other sites More sharing options...
mah-skeet Posted October 21, 2008 Author Share Posted October 21, 2008 thanks for the help Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/#findComment-670952 Share on other sites More sharing options...
mah-skeet Posted October 21, 2008 Author Share Posted October 21, 2008 sorry..the poll part was a mistake Link to comment https://forums.phpfreaks.com/topic/128927-find-current-path-in-website/#findComment-670987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.