Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2006-11-21, 01:17 PM   #8
atariFu
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Join Date: Aug 2005
Posts: 25
Send a message via ICQ to atariFu
oast has a good idea about setting the UserDir.

It sounds like you have multiple files (possibly hundreds or more) that need to include this file.

What I would do is have a main include file that all scripts call regardless of what they are doing, this is handy for overriding anything at any point or passing variables between scripts.

In this global script just create a variable with your usual include file for the rest of your possibly hundreds of pages, eg:

<? // global php script
$standard_include_path = "C:\apache\htdocs\blah\etc\";
?>

<? // other page
include("global_script.php");
include($standard_include_path);
?>

This way when you are working at home you only have to change your include path in one place and when you upload everything to the server just change it there too, or you might not even have to since you may not even need to edit the global script.

Also note how I addressed the include path: C:\apache etc..

I believe this is the right way to include files in windows if you want to start at the root.

If you want to edit in a real live environment though why not go get a junker pc, put linux on there and run it on your subnet, way easier. Windows has other incompatibilities that you may need to write hacks for in your code.
__________________
Atari
www.turbothumbz.com
Porn Search Engine [-_\]

Last edited by atariFu; 2006-11-21 at 01:20 PM..
atariFu is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:48 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc