Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-08-28, 07:07 PM   #1
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
PHP an keywords?

Can someone tell me if this is possible? I'm reading a tut on it and it claims it is possible with using class structure. Has anyone ever tried this or got this right? It would be nice to be able to add some keywords to my php pages. I'm not skilled at writing php or any code for that matter, but before I send this link to my programmer would like to make sure I'm not wasting his time. Thanks Jugg.
http://www.php-editors.com/articles/...hp_classes.php
juggernaut is offline   Reply With Quote
Old 2005-08-28, 08:48 PM   #2
pornoTGB
Shut up brain, or I'll stab you with a Q-tip!
 
pornoTGB's Avatar
 
Join Date: Jun 2005
Location: Austria
Posts: 118
Send a message via ICQ to pornoTGB
ofcourse you can add keywords dynamicly.. I for instace add words from gallery title to each gallery forwarder...
just the usual meta tag put where the keywords are <? print($keywords); ?> where $keywords is the string of keywords...
pornoTGB is offline   Reply With Quote
Old 2005-08-29, 03:52 AM   #3
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
Cool thank you..
juggernaut is offline   Reply With Quote
Old 2005-08-29, 10:40 AM   #4
Halfdeck
You can now put whatever you want in this space :)
 
Halfdeck's Avatar
 
Join Date: Oct 2004
Location: New Haven, CT
Posts: 985
Send a message via ICQ to Halfdeck
I'm about to fall asleep here, so I don't want to read that tutorial.. What's the code supposed to do? Parse keywords from referrer info and print it on the html page?

edit: I read the class (title, keyword, page) stuff but from having done it on a fake tgp i built 10 months ago, it's not a very pretty solution. When you want to edit the page in an editor like dreamweaver, you can't, because the page code only says $page->show();. To edit the page layout, you'll have to edit the class function.

It's better imo to replace just parts of the html page with php (e.g.<P> today: <?php date("Y-m-d"); ?></P>) instead of doing something like $page->print_content();
__________________
Success is going from failure to failure without a loss of enthusiasm.
Halfdeck is offline   Reply With Quote
Old 2005-08-29, 04:03 PM   #5
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
Hey Half deck to be honest here I dont know what its supposed to do. I to was reading this and got lost mainly cause its beyond my knoweldge of php which is like 0% well I guess I will just do what I had to do with a ASP site i had. Read all the code and read it some more and then break it and then fix it to learn whats going on. lol. Anyway thanks for the repsonse, if you know of any easy ways of me getting keywords in my page im all ears. Thanks Jugg
juggernaut is offline   Reply With Quote
Old 2005-08-29, 04:16 PM   #6
mudsnake
WHO IS FONZY!?! Don't they teach you anything at school?
 
mudsnake's Avatar
 
Join Date: Jun 2005
Posts: 44
juggernaut I personelly don't know enough about php to tell you a definate answer but the script I use has the option of both, Hardcoding or dynamic. In the admin part of the script I just add the keywords I want or I can get rid of $keyword and hardcode it. To be honest I see no difference right now in it. Not sure if that helps you or not
__________________

Muds Erotic Sluts
mudsnake is offline   Reply With Quote
Old 2005-08-29, 06:39 PM   #7
MadMax
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
 
MadMax's Avatar
 
Join Date: Aug 2004
Location: Motor City, baby, where carjacking was invented! Now GIMME THOSE SHOES!
Posts: 2,385
I don't have time to give that a read, but there are a few ways to do that with PHP. If your programmer doesn't like that method I'm sure he's got one he's comforable with
MadMax is offline   Reply With Quote
Old 2005-08-30, 03:51 AM   #8
Halfdeck
You can now put whatever you want in this space :)
 
Halfdeck's Avatar
 
Join Date: Oct 2004
Location: New Haven, CT
Posts: 985
Send a message via ICQ to Halfdeck
I'm still not sure what exactly you're aiming to do Jugg, but I have enough php pages to say I wouldn't dynamicly generate keywords for them.

Keywords in the meta tag should correspond to the page text, and with dynamicly generated pages how are you going to figure out what keywords to use? Or are you looking to use the same exact set of keywords for multiple php pages?
__________________
Success is going from failure to failure without a loss of enthusiasm.
Halfdeck is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:40 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc