![]() |
|
It's time to learn me stuff |
23yrold3yrold
Member #1,134
March 2001
![]() |
Yeah, but that's annoying. Anyway, yeah. My PHP scripts are working now, albeit only from the one directory. Time to formally try MySQL ... -- |
ReyBrujo
Moderator
January 2001
![]() |
You defined your DocumentRoot variables? -- |
23yrold3yrold
Member #1,134
March 2001
![]() |
My who what? -- |
X-G
Member #856
December 2000
![]() |
Your Apache configuration (httpd.conf). Look for a line that says "DocumentRoot". Change it. Restart Apache. -- |
23yrold3yrold
Member #1,134
March 2001
![]() |
I only get the one directory? Bah! I'll play with that ... -- |
ReyBrujo
Moderator
January 2001
![]() |
Yep -- |
Kanzure
Member #3,669
July 2003
![]() |
Quote: Yeah, but that's annoying. Why can't I just double-click my .php file to open it?
Well, you can associate notepad with it or something to edit it. And, if you want to just click on it, and have it popup the parsed page, you could make it a link to http://localhost/thefile.php...Because php.exe parses the php files when apache says so, and opening the file would have no call to php.exe (and also no way of enviorement variables! Somebody can probably offer a better explanation |
23yrold3yrold
Member #1,134
March 2001
![]() |
I know; I figured that much out on my own. -- |
ReyBrujo
Moderator
January 2001
![]() |
Maybe you can setup your text editor to call for php.exe before opening it. Or maybe you can even create a bat file with something like php.exe %1 > %TEMP%\temp.html iexplore %TEMP\temp.html and add it to your Send To menu (code not tested!!!). -- |
Jakub Wasilewski
Member #3,653
June 2003
![]() |
Rey: I believe SciTE does something like that implicitly for PHP files, when you use the "Go" command from the menu. Not sure if 23 is using SciTE, though --------------------------- |
Thomas Fjellstrom
Member #476
June 2000
![]() |
23: apache also lets you create aliases to any file/folder on your computer, or heck, you can redirect a file/folder to an external address. Or you can create Virtual Hosts, and have more than just "localhost" work, you can have "my1337game" and/or "23yrold3yrold.com" point at the same or different document roots. Apache is really nice, if a bit bloated. -- |
23yrold3yrold
Member #1,134
March 2001
![]() |
This thread again? Yes, I use SciTE. -- |
|
|