Can't see include files

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Can't see include files

Postby dormston » 16. June 2006 12:31

Hi

Installed XAMPP and works like a dream, except that I can't see any included files locally (whether SSIs or PHP includes).

I had this working on my old computer local testing setup (by tweaking the Apache httpd.conf file. But I can't seem to make the correct changes on my XAMPP installation.

Can anyone help pls?
dormston
 
Posts: 15
Joined: 07. June 2006 12:52

Postby Kristian Marcroft » 19. June 2006 20:40

Hi,

Code: Select all
<Directory C:/bla/blubb>
Options +Includes
</Directory>


Might help...
Otherwise please supply some log output.

Regards,
Kristian Marcroft
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby dormston » 22. June 2006 15:31

Hi

Thx for the reply.

I have this in my httpd.conf file:

Code: Select all
<Directory "C:/Program Files/xampp/htdocs">
Options Indexes FollowSymLinks +Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

My web site files are in subdirectories of C:/Program Files/xampp/htdocs. But even with this I'm not seeing either SSIs or PHP incudes. I don't get error messages, and there aren't any entries in the error log. It's just that the included files don't show.

Would appreciate any more help you could give.

Debbie
[/quote]
dormston
 
Posts: 15
Joined: 07. June 2006 12:52

Postby Kristian Marcroft » 22. June 2006 15:56

Hi Debbie,

how do you include files?
As you have a "space" in your path you will have to quote the path.

Regards
Kristian Marcroft
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Postby Wiedmann » 22. June 2006 19:11

Installed XAMPP and works like a dream, except that I can't see any included files locally

Not really possible, because the XAMPP demo pages uses includes too.

For PHP:
You are using includes in files with the extension ".php" and open the files with "http://localhost/foo.php"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby dormston » 23. June 2006 09:21

That's mostly how I'm using includes. Except for one site locally that I'm parsing the php in an HTML file.

But now I'm getting this error in some of my php files:

Code: Select all
Warning: file_get_contents(lang.tmp): failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\xampp\index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\xampp\index.php:2) in C:\Program Files\xampp\htdocs\xampp\index.php on line 9


So, is there something wrong with my setup? And how can I correct it.

TIA
Debbie
dormston
 
Posts: 15
Joined: 07. June 2006 12:52

Postby Wiedmann » 23. June 2006 12:56

But now I'm getting this error in some of my php files:

You have a tool installed, that delete tmp and/or 0byte files.

And how can I correct it.

http://localhost/xampp/lang.php?en
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby dormston » 23. June 2006 16:33

Thx for that.

You're right, I do run a tool that gets rid of temp files and 0 size files. I'd rather not have to stop running it. Can I just repair the xampp installation every time I need to by using that link?

And, now I'm all set showing PHP includes in files that are served with the PHP extension.

The only issue I have now is showing PHP includes that are in HTML file. I've been able to do this before on a local testing server and I manage it remotely using an .htaccess file.

Any clues?

TIA
Debbie
dormston
 
Posts: 15
Joined: 07. June 2006 12:52

Postby Wiedmann » 23. June 2006 16:42

and I manage it remotely using an .htaccess file.

The do the same with XAMPP...
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby dormston » 26. June 2006 12:47

Many thx for your patience and help. I thought I'd tried the .htaccess file route and failed ... but I clearly hadn't been paying attention!

All working fine now. XAMPP is a great product and I really appreciate the English language support through this forum.

Thx again
dormston
 
Posts: 15
Joined: 07. June 2006 12:52


Return to XAMPP for Windows

Who is online

Users browsing this forum: Altrea and 55 guests