Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   PHP an keywords? (http://www.greenguysboard.com/board/showthread.php?t=23476)

juggernaut 2005-08-28 07:07 PM

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

pornoTGB 2005-08-28 08:48 PM

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 where $keywords is the string of keywords...

juggernaut 2005-08-29 03:52 AM

Cool thank you..

Halfdeck 2005-08-29 10:40 AM

I'm about to fall asleep here, so I don't want to read that tutorial..:D 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.

today:

) instead of doing something like $page->print_content();

juggernaut 2005-08-29 04:03 PM

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

mudsnake 2005-08-29 04:16 PM

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

MadMax 2005-08-29 06:39 PM

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 :)

Halfdeck 2005-08-30 03:51 AM

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?


All times are GMT -4. The time now is 06:48 PM.

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