php-general Digest 27 Dec 2011 19:37:34 -0000 Issue 7625

Topics (messages 316108 through 316111):

Re: [php] static html search engine for php static html site
        316108 by: Jim Lucas
        316111 by: Nathan Nobbe

Re: Way to output HTML on professional websites
        316109 by: Paul M Foster
        316110 by: Alain Williams

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 12/26/2011 5:37 PM, Izo duwa wrote:
> the whole site is in php and all content should be searchable. I have tried
> zoom site search [http://www.wrensoft.com/zoom/] but the result was not
> good.   I just need a simple site search functionality that I can install
> on a share hosting. it should be able to serach through the whole site
> files and index it.  Do you know you of any pre-made solutions that works?
> 
> thanks

I wrote a text bases search tool a few years ago because I wanted to be able to
search through my source files quickly and easily.

Form: http://www.cmsws.com/examples/search.php
Source: http://www.cmsws.com/examples/search.phps

Maybe it will give you a little start in the direction of writing your own 
solution.

-- 
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

--- End Message ---
--- Begin Message ---
On Mon, Dec 26, 2011 at 6:17 AM, HELP LINE <izod...@gmail.com> wrote:

> Does any know of a better static search engine that i can integrate to my
> static php html site. it should not be Google or yahoo bing.
>

not sure if it's come up yet, but this might work for you,

http://www.sphider.eu/

it's based on mysql fulltext, not something i would go for, but may be
viable on your shared hosting solution.

-nathan

--- End Message ---
--- Begin Message ---
On Tue, Dec 27, 2011 at 12:46:29AM +0100, Florian Müller wrote:

> 
> Hi guys
> Just a little question: I've programmed some nice little websites up to 
> 25'000 lines of code.
> Now if I see some bigger websites just as facebook and so on, how are they 
> printing their website out?
> Does it work like 
>     <?php    echo "<html><head>...";    ?>
> or do they output it like
>     <?php        if (true) {    ?>        <body>
>         </body>    <?php        } else {     ?>        <head>
>         </head>    <?php        }    ?>
> Or is the code even generated or gotten from a database and evaluated?
> How does the website itself gets printet on really professional websites?
> Thanks for answer!

You're asking for an opinion. In mine, if you have to call fifty files
before printing a byte to screen, you've introduced too much complexity.
I just finished up five weeks at a company where they were calling
probably upwards of 100 files before printing anything on screen.

It ought to be like this:

<body>
<?php if ($condition): ?>
<h1>Some text</h1>
Other stuff<br/>
Much other stuff.<br/>
<?php endif; ?>
</body>
</html>

That said, a lot of CMS-based sites use some sort of templating engine.
Those go like this:

<body>
{{if condition}}
((h1:Some text}}
Other stuff<br/>
Much other stuff.<br/>
{{endif}}
</body>
</html>

... with PHP or some other language decoding the "pseudo-HTML" above and
displaying it. Kind of a waste, in my opinion, though a lot of people
swear by templating systems. Again, my opinion, they're lazy typists.

In any case, I think you'll find that most CMS based site presentations
are based on templating engines, though I could be wrong.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

--- End Message ---
--- Begin Message ---
On Mon, Dec 26, 2011 at 11:39:06PM -0500, Paul M Foster wrote:
> On Tue, Dec 27, 2011 at 12:46:29AM +0100, Florian Müller wrote:
> 
> > 
> > Hi guys
> > Just a little question: I've programmed some nice little websites up to 
> > 25'000 lines of code.
> > Now if I see some bigger websites just as facebook and so on, how are they 
> > printing their website out?
> > Does it work like 
> >     <?php    echo "<html><head>...";    ?>
> > or do they output it like
> >     <?php        if (true) {    ?>        <body>
> >         </body>    <?php        } else {     ?>        <head>
> >         </head>    <?php        }    ?>
> > Or is the code even generated or gotten from a database and evaluated?
> > How does the website itself gets printet on really professional websites?
> > Thanks for answer!
> 
> You're asking for an opinion. In mine, if you have to call fifty files
> before printing a byte to screen, you've introduced too much complexity.
> I just finished up five weeks at a company where they were calling
> probably upwards of 100 files before printing anything on screen.

Have a look at smarty:

        http://www.smarty.net/

I like it a lot ... helps with complicated web sites.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>

--- End Message ---

Reply via email to