Forum Moderators: coopster

Message Too Old, No Replies

Help keep my sanity

Can anyone help?

         

Essential IT

10:20 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



Can I say first of all a big thank you for this fantastic forum site? I have just recently started learning PHP & MySQL (Dummies) and to say it was going over my head was an understatement.

I found your forum at 16:00 today and have managed to get a template set be it rather primitive none the less it was working, thanks again.

Now I feel I have more confidence to tackle other tasks.

May after all this flattery (Don’t they say it will get you everywhere) as for some help and advice?

You see I have also experimented with the include command and have managed to get this to work independently to the templates, but can not get it to do what I have been trying to do and that is, I sell items on various auction sites and my auction template is quite large and with the contents on some sites exceeds the size limit. Now I have been using iframes but this have to be set height wise to cater for the whole description, which in some cases is as large as 9600px.

I have tried using the include command but as the page is not a PHP (auction page) it will not work.

So after this entire question is there any way of getting data into / onto a page if the page is not php?

My intentions are to build a database of auction stock and have just one template page changing just a few lines, when stock changes.

oilman

10:39 pm on Aug 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you need to tell your server to parse non php pages for the SSI call. You can do it by adding this to your htaccess file:

AddType text/html .html
AddHandler server-parsed .html

or you can name your pages with .shtml extensions - that will tell the server to look for the includes.

welcome to WebmasterWorld - we're glad you're finding what you need :)

henry0

10:43 pm on Aug 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



{edit} Hmmm Oilman shoot faster that I do :) {/edit}

Welcome on Webmaster World

Not sure I read you "Loud and Clear"
but to use PHP scripts within an HTML page you need:
First to be sure that your html doc will parse a PHP script
it will be done through .htacces doc

create a ".htaccess" doc
That will contain:

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html

if you use FTP sometimes .htaccess docs are not visible
you will need to type below MKDir (right col) -a and hit "enter"

Next to include the PHP script in your html do:
<html>
<head></head>
<body>
<h1>
<?php
include "my_php_script";
?>
</h1>
</body>
</html>

keep in mind that you can call the php script from any level using ../../ etc...

Essential IT

11:16 pm on Aug 16, 2004 (gmt 0)

10+ Year Member



Thanks Guys (oilman & henry0)

Your help and comments are very much appreciated, but the problem I have is not loading into a PHP page it’s loading into an auction page?

As you can see I am unable to change the page format, and most of the auction sites prohibit the use of JavaScript, so if I have not fully understood the answers and you did the questions I apologise.

But if you could see your way to possibly break your replies down so as I may understand I would be very grateful.