homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

PHP building html pages on the fly
Achieving optimised directory structure

 12:06 pm on Oct 23, 2002 (gmt 0)

Hi, I'm uploading a mysql extract file from an offline Access database for a sites content and functionality but where do the directory and file names come in when using php on the fly to create html pages for spiders/robots etc to see?

How longs a piece of string, right?




 12:25 pm on Oct 23, 2002 (gmt 0)

How longs a piece of string, right?

Twice the distance from the centre to the ends :) thats what a monkey mate of mine says.

Seriously, if i have you right the PHP produces the data and can spit out the variables in a HTML format a page of may look like this

code to get info from mysql
passing the info to a variable called $x
<?php echo $x;?>

Now this page can be called info.htm or info.php and will still produce the same things.

Is that what you are after?


 1:01 pm on Oct 23, 2002 (gmt 0)

Thanks uk, thats along the lines i think but i also understand the? marks are dangerous for seo which we're trying to work around.

So where do i call the page info.htm?

What we're trying to achieve is an optimised keyword directory structure and filenames for the php built html pages, like follows:

= keyword

= keyword1, keyword2, keyword3

Filenames in subdirectories:
= Keyword1_1.html, keyword1_2.html, Keyword1_3.html (_4 etc for all the different pages)...

But where / when does the php use these names, where does it find them; do I place then in the offline Access database for use in the mysql extract file OR in the php scripting itself? They'll be about 90+ subdirectories and the same amount of filenames.

Thanks and sorry to go on!


 2:56 pm on Oct 23, 2002 (gmt 0)

Sounds like there are some basics you need to get to grips with about what php is.



I think the question you are asking right now is gpoing to give you answers that are going to to cofuse you. Get to grips with basic php. There are some good tutorials out there. Once you know what is gong on a little better I think you will be able ot ask more specific questions that the folks here will be able to answer.

I am not tryign to brush you off, just that your questions is still very vague in that I cannot guage your current knowledge of the language.



 3:20 pm on Oct 23, 2002 (gmt 0)

Thanks uk, your right I know just about nothing about php apart from what i've gleaned is possible from the WebmasterWorld Pub Conference, reading these forums etc, but coding is not my field.

I'm actually writing the skeleton brief for a coder who knows php but not the more in-depth tricks for seo; so i'm trying to get a start on such info for him.

Many thanks for your answers, time and the resource links.



 3:26 pm on Oct 23, 2002 (gmt 0)


If your programmer is worth his mettle you don't need to tell him how to do it. All you should need to do is tell him what the end product should be like and he should make it so.

You tell him that you need it to be generated dynamically with static url's and a directory structure that is keyword oriented. He does it.

just an opinion.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved