SnippetMaster Support Forums
Return to main website
 
May 14, 2006, 02:26:17 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 14, 2006, 02:26:17 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: preview not working completely « previous next »
Pages: [1] Print
Author Topic: preview not working completely  (Read 17 times)
kmillar

Posts: 4


[-] preview not working completely
« on: May 10, 2006, 01:24:59 PM »

Now that I have purchased the Pro version and tried the preview, I see it has a few problems.

1. The stylesheet is not recognized.
2. The include files PHP are not being found either.

It finds the images but not the stylesheet or php include files.

Can you help?
Karene
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1430

SnippetMaster Author


WWW
[-] Re: preview not working completely
« Reply #1 on: May 10, 2006, 01:37:58 PM »

If you are "including" files, then that might be the problem.

For example, the preview window is not actually "called" from the same file location as the actual file.  (because the file isn't actually saved since it's just a preview.)

So let's say you have something like this in the file that you're editing:

<?php php include("path/to/some/include.html") ?>

Now.. the problem is that IF your file is located in some subdirectory.. then this include command is going to be "relative" to the actual file location where it is called.

But since the preview is located in a different folder... the included file won't be found.

I think that is the problem.

The solution is to use an absolute path when including your file.  Like this:

<?php php include("/home/account/full/path/to/some/include.html") ?>

Let me know how that goes.

Smile
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: preview not working completely « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.7.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!