Page 1 of 1

Can't see include files

PostPosted: 16. June 2006 12:31
by dormston
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?

PostPosted: 19. June 2006 20:40
by Kristian Marcroft
Hi,

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


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

Regards,
Kristian Marcroft

PostPosted: 22. June 2006 15:31
by dormston
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]

PostPosted: 22. June 2006 15:56
by Kristian Marcroft
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

PostPosted: 22. June 2006 19:11
by Wiedmann
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"?

PostPosted: 23. June 2006 09:21
by dormston
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

PostPosted: 23. June 2006 12:56
by Wiedmann
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

PostPosted: 23. June 2006 16:33
by dormston
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

PostPosted: 23. June 2006 16:42
by Wiedmann
and I manage it remotely using an .htaccess file.

The do the same with XAMPP...

PostPosted: 26. June 2006 12:47
by dormston
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