Results 1 to 4 of 4
  1. #1
    Newbie
    Join Date
    July 25th, 2005
    Posts
    6
    Static
    Does that same thing need to be done for static stores? ie. the allposters script? Or can you put php right into the template file? Thanks,
    Gavin

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    The allposters.pl script is not a dynamic script. It creates and writes a real file to the server's hard drive for each webpage. So you can put anything including PHP (and SSI) into your allposters.pl templates.

    In allposters.ini, the default configuration is to name the files with ".html" filename ending. For your server to process PHP statements, the filenames need to end with ".php" (unless you've reconfigured your server to recognize PHP in .html files). So edit allposters.ini and set:

    indexfile index.php
    htmlext php

    Note: Do not rename the templates from .html to .php since the template filenames are not seen by the outside world. The templates are just templates. With regards to PHP, the template files themselves are not run; only the created files are run. It is the indexfile and htmlext configuration variables that set the filenames that the user sees.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Newbie
    Join Date
    July 25th, 2005
    Posts
    6
    Search engine spiders
    Thank you, that's just what I needed to know.

    But another question I have is if the search engines spiders will pick up the .php endings in all my files or if I'll get penalized for it. In my template, there is html and it uses css and a little javascript, and also a little php. So when I rename all the files to .php through that allposters.ini file, will the search engines be able to see all of the content correctly?
    Thanks,
    Gavin

  4. #4
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    allposters.pl is basically just a big "mail merge". It takes the product information and merges it into the templates and then writes the output out to server's hard disk. Whatever is in the output is in the output. That simple. If you want the search engine to see something, put it in the template.

    .php is a valid filename ending. Search engines do spider filenames ending with .php

    Search engines ignore JavaScript since they cannot run it. Only web browsers run JavaScript. Thus only a real user will see the output of JavaScript.

    Search engines ignore CSS. CSS relates to formatting.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. need a static ip?
    By Zdig in forum Search Engine Optimization
    Replies: 1
    Last Post: May 18th, 2006, 01:04 AM
  2. static IP
    By robr in forum Rakuten LinkShare - LS
    Replies: 19
    Last Post: August 18th, 2004, 07:52 AM
  3. Dynamic vs Static
    By John Kruger in forum Search Engine Optimization
    Replies: 6
    Last Post: December 18th, 2002, 03:13 PM
  4. Static IP?
    By Ebudae in forum Domains & Hosting
    Replies: 8
    Last Post: April 5th, 2002, 08:23 PM
  5. Static Posts
    By Wayder in forum Midnight Cafe'
    Replies: 2
    Last Post: February 20th, 2002, 06:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •