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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-23-2008, 12:13 AM   #1
Kard63
Confirmed User
 
Kard63's Avatar
 
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.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 12:51 AM   #2
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
I think you are almost there.
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 12:55 AM   #3
Hotrocket
Confirmed User
 
Hotrocket's Avatar
 
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
Hotrocket is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 12:59 AM   #4
Adultnet
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!
Adultnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 01:39 AM   #5
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by Hotrocket View Post
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
kard63atyahoocom
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 02:12 PM   #6
Hotrocket
Confirmed User
 
Hotrocket's Avatar
 
Join Date: May 2004
Posts: 1,327
email sent
Hotrocket is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 04:14 PM   #7
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by Hotrocket View Post
email sent
Thanks man. That script seems to be it but I can't use a script. I have to code it.


Quote:
Originally Posted by Adultnet View Post
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..
Thank you. I'm going to go get a pizza and hit you up!
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 04:15 PM   #8
Kard63
Confirmed User
 
Kard63's Avatar
 
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
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 04:21 PM   #9
woj
<&(©¿©)&>
 
woj's Avatar
 
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
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 04:25 PM   #10
Sam Granger
Confirmed User
 
Sam Granger's Avatar
 
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
Sam Granger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 04:33 PM   #11
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by woj View Post
Are you sure you need static pages? maybe just some mod_rewrite magic would be good enough?
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.
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 05:12 PM   #12
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by Kard63 View Post
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.
RewriteRule ^articles/([^/]+).html$ index.php?article=$1

BLAM!!
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 05:25 PM   #13
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by Jaysin View Post
RewriteRule ^articles/([^/]+).html$ index.php?article=$1

BLAM!!
Umm I donut know what that is but is that 1 line really the answer to everything I want?'
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 05:27 PM   #14
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by Kard63 View Post
Umm I donut know what that is but is that 1 line really the answer to everything I want?'
its htaccess, what it does is it takes yoursite.com/articles/some-title-here.html and the server reads index.php?article=some-title-here

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
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 05:33 PM   #15
ScriptWorkz
Confirmed User
 
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
Editted: What they said ^^

Last edited by ScriptWorkz; 04-23-2008 at 05:34 PM.. Reason: more simply explained above
ScriptWorkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-23-2008, 07:51 PM   #16
Kard63
Confirmed User
 
Kard63's Avatar
 
Join Date: Nov 2003
Location: 237 619 975
Posts: 8,944
Quote:
Originally Posted by Jaysin View Post
its htaccess, what it does is it takes yoursite.com/articles/some-title-here.html and the server reads index.php?article=some-title-here

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
and google is clueless?
__________________
Kard63 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-24-2008, 12:47 AM   #17
brandonstills
Confirmed User
 
brandonstills's Avatar
 
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-24-2008, 11:28 AM   #18
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by Kard63 View Post
and google is clueless?
absolutely!
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-24-2008, 11:34 AM   #19
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
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.
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-24-2008, 05:03 PM   #20
skrinkladoo
Confirmed User
 
skrinkladoo's Avatar
 
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
skrinkladoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-24-2008, 05:09 PM   #21
skrinkladoo
Confirmed User
 
skrinkladoo's Avatar
 
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?&#37;{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

Last edited by skrinkladoo; 04-24-2008 at 05:10 PM.. Reason: typo
skrinkladoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.