![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Can I create static pages from php reading data out of a mysql db?
Can I have php make a static html page for every entry in a certain field? I have a 'subject' field and I would like it to make a 'subject'.html page for every subject in every row. Can it be done?
I read there was a way to mask a dynamic page to do that but you have to manually make and name each html page for each subject on the server and chmod it to 666. Then you can populate the page with info from the DB. Thats not what I want. I want the page to be made.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
I think you are almost there.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2004
Posts: 1,327
|
yep it can be done..I have a link to a free script w/ tutorial and examples but its on another webmaster forum so cant post it here..gimmie an email and I'll send it on over to ya.
sry no icq |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Sep 2003
Posts: 8,713
|
yes can be done,
Basicly you can have 2 options : 1. Force the php script to connect to the database go all over the topics you got there and create the html pages for you based on a layout.(Dynamic if setup as batch/ static if not) 2. Force the pages to be auto created once a reply is added to the database by running the the same lines just for the recent topic. (Dynamic) if you need help with setup you can hit me up at icq 502189.. ![]()
__________________
![]() TrafficCashGold Paying Webmasters Since 1996! Awesome Conversions! Fast Weekly Payments! Over 125 Tours! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
kard63atyahoocom
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: May 2004
Posts: 1,327
|
email sent
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Thanks man. That script seems to be it but I can't use a script. I have to code it.
Quote:
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Are these the two methods you mentioned adultnet
Generate Static HTML Pages From A Database Create Online - Designing search engine friendly PHP pages
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
Are you sure you need static pages? maybe just some mod_rewrite magic would be good enough?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Dec 2004
Location: NL (Eindhoven), CZ(Prague), FR(Concarneau)
Posts: 3,958
|
I am off to bed but I can program something like this in no time for free. If you dont have any luck today, email me: [email protected]
__________________
[img]http://****************/sig/fhv3_j2_624x80_2.gif[/img] $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content 14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies Join Fetish Hits now! ICQ: 358652230 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Static might not be the word I'm looking for. I want the extension to be html and I want google to be able to tell no difference when it indexes it.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Umm I donut know what that is but is that 1 line really the answer to everything I want?'
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
Quote:
i use it on my sites http://www.fukbag.com/articles/celeb...ed-to-you.html is actually pulling http://www.fukbag.com/index.php?cat=...appened-to-you |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
|
Editted: What they said ^^
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
|
Quote:
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
|
Are you wanting to do this to make the URL's look nicer or are you wanting to do this for performance reasons? For the former, there are numerous ways to go about making dynamic URL's that can be parsed any way you like. For the latter, you simply need some code that goes through the database entries and writes a file for each entry. Both are fairly trivial. Any decent programmer will be able to help you out.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Chafed.
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
|
imho its better to crank out static pages. Easier on the server, cleaner on the SEO, and just as easy.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: Oct 2007
Location: South Florida - "Fuck Bitches and Fight Crime - It's all we do!
Posts: 629
|
Jaysin's right - .htaccess is the easy way
__________________
*** Andrew Love *** Services: (1) Web Design, (2) Graphic Design, (3) E-commerce, (4) Database Development, (5) Web Analytics, (6) Targeted Lead Generation, (7) Marketing and Consulting Mainstream: Successful Website Landing Page Design | ICQ: 360-83-9627 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Oct 2007
Location: South Florida - "Fuck Bitches and Fight Crime - It's all we do!
Posts: 629
|
try adding this to the .htaccess
RewriteEngine on RewriteBase / RewriteRule ^([^/]*)\.html$ $1.php?%{QUERY_STRING} [NC] make sure the mod_rewrite is enabled on the apache config (or ask your hosting company)
__________________
*** Andrew Love *** Services: (1) Web Design, (2) Graphic Design, (3) E-commerce, (4) Database Development, (5) Web Analytics, (6) Targeted Lead Generation, (7) Marketing and Consulting Mainstream: Successful Website Landing Page Design | ICQ: 360-83-9627 |
![]() |
![]() ![]() ![]() ![]() ![]() |