Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
PHP includes vs SSI ?

 

 


MEKAEEL
User

Nov 7, 2006, 8:12 PM

Post #1 of 7 (1039 views)
Shortcut
PHP includes vs SSI ? Can't Post

Hello again Smile,

I wasn wondering about the PHP includes if they have any advantages over the SSI. Personally I like them better since I worked with them more, but that's all and I do not know if they will make publishing different? faster? smaller files?

should I change my publishing into includes?

any ideas?


Ginslinger
User

Nov 7, 2006, 8:38 PM

Post #2 of 7 (1037 views)
Shortcut
Re: [MEKAEEL] PHP includes vs SSI ? [In reply to] Can't Post

It has been said that PHP is faster. That I am not sure of as I personally think the CGI runs very good with version 2.0.

There are advantages and dis-advantages.


MEKAEEL
User

Nov 7, 2006, 8:41 PM

Post #3 of 7 (1035 views)
Shortcut
Re: [Ginslinger] PHP includes vs SSI ? [In reply to] Can't Post

I was also thinking that maybe PHP includes will help more in using add-ons on AM2, it integrates scripts better I think, is this correct?


Ginslinger
User

Nov 7, 2006, 8:45 PM

Post #4 of 7 (1034 views)
Shortcut
Re: [MEKAEEL] PHP includes vs SSI ? [In reply to] Can't Post

Well there are more PHP scripts that is for sure. I always use I frame if I need to include a PHP program within my sites.


Dave
Staff / Moderator


Nov 8, 2006, 1:08 PM

Post #5 of 7 (1016 views)
Shortcut
Re: [MEKAEEL] PHP includes vs SSI ? [In reply to] Can't Post

I don't know that it would make much of a difference in speed. I would guess that SSIs would be faster than includes because they're parsed by the web server and an additional library (php) doesn't need to be loaded. I'm thinking the difference would be milliseconds and not noticeable, though.

In any case, we added a feature to 2.02 that replaces our default SSIs with PHP includes. It might not recognize all of your SSIs if you've added your own, but you could give it a try. To switch to PHP includes try this:

Under: "Admin > General Settings" set "Dynamic SSI Parsing" to "Server Resolved". This will make the search engine display PHP includes and code even though it's a cgi.

Under: "Admin > Publishing" set "Default File Extension" to "PHP" and save.

Under: "Admin > Publishing > Advanced Commands (pulldown on bottom left)" select "Templates: Convert SSIs to PHP includes".

Then republish (or republish a few rules) and test everything out.

Dave Edis - Senior Developer
interactivetools.com
 


MEKAEEL
User

Nov 8, 2006, 2:05 PM

Post #6 of 7 (1011 views)
Shortcut
Re: [Dave] PHP includes vs SSI ? [In reply to] Can't Post

Thanks Dave!

and how about integrating scripts into AM? I used to work a lot scripts with php includes and the process was so smooth, is it the same with SSI? I really have minimal experience with it so far.

thanks


Donna
Staff / Moderator


Nov 8, 2006, 4:24 PM

Post #7 of 7 (1002 views)
Shortcut
Re: [MEKAEEL] PHP includes vs SSI ? [In reply to] Can't Post

Hi Mekaeel,

Since Artman is publishing static HTML pages, as far as the web server is concerned, there's no difference between a PHP script being included in an Article Manager page as one that you'd made by hand. So, as long as you've set the file extension to be .php, you'll have no problem running a PHP script as you would on any other page. :)

Donna

--
support@interactivetools.com