Episodes
- My So-Called Life (Pi... - #1 »
- Dancing in the Dark - #2 »
- Guns and Gossip - #3 »
- Father Figures - #4 »
- The Zit - #5 »
- The Substitute - #6 »
- Why Jordan Can't Read - #7 »
- Strangers in the Hous... - #8 »
- Halloween - #9 »
- Other People's Daught... - #10 »
- Life of Brian - #11 »
- Self-Esteem - #12 »
- Pressure - #13 »
- On the Wagon - #14 »
- So-Called Angels - #15 »
- Resolutions - #16 »
- Betrayal - #17 »
- Weekend - #18 »
- In Dreams Begin Respo... - #19 »
Cast
Forum
Geek Time! : PHP coding question.but you acknowledge your status as the unreserved geek king of the forum, right?
![]() 'ahhhh, but it hasn't happen happened, has it? I mean it could will have been going to have happened, but it hasn't actually happen happened, has it?' --------------------------------------------- http://www.urban-hills.blogspot.com ---------------------------------------------
Actually no, I am just a mere runner up according to this thread Me: 42.40631% - Major Geek MGlenn: 68.44181% - Geek God ![]() ![]() Damn it. I forgot about actually checking that thread - but yeah, I'd forgotten about Mglenn and his amazing capacity for all things tiny-and-communication-based.
Sorry Mglenn... ![]() --------------------------------------------- http://www.urban-hills.blogspot.com ---------------------------------------------
Hey, KMA! ![]() ![]() Natasha aka candygirl :: MSCL.com
Look, if this is weird for you, being tutored? I don't mind helping you a little longer. You could have sex with me if you really want to help...I guess that's a "no"?
Marty McFly: So does it run on regular unleaded gasoline? Dr. Emmett Brown: Unfortunately no, it needs something with a little more kick - plutonium. Marty McFly: Plutonium... wait, are you telling me that this sucker is nuclear?! Dr. Emmett Brown: No no no, this sucker's electrical, but it requires a nuclear reaction to generate the 1.21 gigawatts of electricity I need. Marty McFly: Doc, you don't just walk into a store and buy plutonium... did you rip that off?? Dr. Emmett Brown: Shhhhhh!! Of course. From a group of Libyan nationalists. They wanted me to build them a bomb, so I took their plutonium and in turn, gave them a shiny bomb-casing filled with used pinball machine parts! (later, or earlier depending on how you look at it) Dr. Emmett Brown: I'm sure in 1985, plutonium is available at every corner drugstore, but in 1955 it's a little hard to come by! Natasha aka candygirl :: MSCL.com
Look, if this is weird for you, being tutored? I don't mind helping you a little longer. You could have sex with me if you really want to help...I guess that's a "no"?
Thanks for the BTTF quotes. That made my day. I have to go listen to Huey Lewis - "Power of Love" now. ![]() "To come to your senses, you must first go out of your mind." - Alan Watts
No harm! I've already written my Content Management System(CMS) in Java, using XML, JDOM, JDBC and Velocity Template Engine. I'm currently writting the management tools using Swing and AWT. Then theres my mp3 player in my car, cause how many people can say the can compile a linux kernel while they are driving. And which I'm currently trying to get voice recognition to work with (road noise is a bitch, and I don't have enough processor to do realtime phase shift cancelation!) And ofcourse who can forget about AZN, which was my custom cable modem management software I wrote back in 98-99, and then didn't patent...(I'd be rich now damnit!) and the JAS server that lets techtools (I didn't write techtools) connect and get data from our AS400 mainframe....and... gawd I'm a geek!!! ![]() "Any normal person would have stopped at this point, but for better or worse I'm not a normal person! I'm a geek! A geek beyond reason!" "When I disagree with a rational man, I let reality be our final arbiter; if I am right, he will learn; if I am wrong, I will; one of us will win, but both will profit." - Ayn Rand
now for something completely different...Sascha (or anyone else who can answer me),
Ok, I actually didn't end up going with your code ![]() This is what I am including on the wallpapers.php page: Code: Select all
Code: Select all
Code: Select all
Now, three questions, do you think the above code is kosher? It all seems to work fine for me so far. Do you think it will be too much of a load on the server to have to process the safewallpapers.php page each time the page is loading, especially when the list is double or triple its size right now? And, finally, will I run into a problem with using the spaces between the names of the html includes and is it search friendly? Sorry to bombard you but I am just a bit confused at this point lol ![]() Maybe it would be easier to just keep the pages named as shortend versions: "puni.html" instead of "Puni Puni Poemi.html" and figure out an easier way to define the title tag.... maybe an If/Then type deal (if $page='puni' then $title='Puni Puni Poemi') and then echo $title in the title tag? Thanks in advance. I know this isn't as interesting as dating advice threads but bear with me ![]() ![]() Oh yeah you can see it working at: http://www.animeglitch.com/wallpapers.p ... %20Goddess or http://www.animeglitch.com/wallpapers.php?page=Menu (menu links do not work) Re: now for something completely different...Okay, if you're willing to list all allowed pages in your code, then this is a good way to go. But don't use spaces in filenames on a linux machine (or on any webserver). Some browsers don't understand it. I modified your code a little bit:
Code: Select all
Code: Select all
Yes, this is perfectly safe. Absolutely no problem if you're not running a webserver on a 1990'ish 486-PC. This array could hold tenthousands of entries and you would only note a tiny delay (we're talking microseconds here). As mentioned above, yes you'd run into problems. But the new code should work even for searchengines. (at least google crawls the first variable in an url)
Last edited by Sascha on Jul 24th 2003, 10:03 am, edited 1 time in total.
Just thought I should post this considering where this is going:
http://www.pclinuxonline.com/modules.ph ... e&sid=7258 ![]() "When I disagree with a rational man, I let reality be our final arbiter; if I am right, he will learn; if I am wrong, I will; one of us will win, but both will profit." - Ayn Rand
Yeah, PHP is really good stuff and pretty cheap and easy to get here in Europe. I used ASP before, but you had to pay lots of $$$ to experience something at all (and I didn't like their main dealer, "Big Bill"). All my complicated C sh!t became clear after one puff of PHP. Some of my friends are now using XML-RPC and XSL in addition to PHP and feel pretty good (the secret scene code name is "SOAP"). But I tend more to pure PHP-OO recently, with some CSS, RSS and even SSL when I'm up for it. And I heard that the scene is really excited about a new import from Asia, called "rubY", but I haven't tried that myself yet. Who is onlineUsers browsing this forum: No registered users and 7 guests |