doesn't like extension in include

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

doesn't like extension in include

Jeremy Reynolds-2
I'm trying to include a page from an external URL.  It doesn't seem
to complain if the extension is .html but it gives me errors if the
the include contains .php

Shoud I use a different tag besides include?

Jeremy

--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: doesn't like extension in include

Fletcher Sandbeck
On 5/26/05 at 11:40 AM by [hidden email] (Jeremy Reynolds):

>I'm trying to include a page from an external URL.  It doesn't seem
>to complain if the extension is .html but it gives me errors if the
>the include contains .php
>
>Shoud I use a different tag besides include?

If you [Include] the .php file then Lasso will attempt to execute the code contained within.  This is not usually what you want since Lasso will have a hard time with PHP code.

You can use [Include_Raw] if you just want to display the .php file in another file.  

However, if you want the code inside the file to be executed by PHP and for the results to be displayed in Lasso, you would need to use [Include_URL: 'http:/.../file.php'] to include the file through your Web server.

Also, to use [Include] or [Include_Raw] you will probably need to add the .php extension to the appropriate list in the Setup > Site > File Extensions section of Site Admin.  We don't include that extension by default :)

[fletcher]
--
Fletcher Sandbeck                         [hidden email]
Lasso Product Specialist              [hidden email]
OmniPilot, Software Inc.                http://www.omnipilot.com

--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage