Posted: Jul 23rd 2003, 10:08 am
Now just remember guys, I am not the one making the SciFi movie and such references
There's LIFE after death on the 'net
https://www.mscl.com/forum/
Actually no, I am just a mere runner up according to this threadstarbug wrote:but you acknowledge your status as the unreserved geek king of the forum, right?
Hey, KMA!sab wrote:Hm, I don't see how the "Lake Merritt Neighbors Organized for Peace" could be of any help here.Nostradamus wrote: Well, that clears it up! Candygirl was right, you need the LMNOP.
Marty McFly: So does it run on regular unleaded gasoline?Nothingman wrote:Perhaps you just need more fuel for the flux capacitor, or maybe your matter, anitimatter injectors aren't calibrated correctly.
(I know, I'm not helping )
Thanks for the BTTF quotes. That made my day. I have to go listen to Huey Lewis - "Power of Love" now.candygirl wrote: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!
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!!!starbug wrote: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...
Code: Select all
<?php require_once( "safewallpapers.php");?>
<?php
$include = $_GET['page'];
if ( in_array( $page, $acceptable_pages ) )
{
require_once( "wallpapers/$page.html" );
}
else
{
require_once( "wallpapers/error.html" );
}
?>
Code: Select all
<?php
$acceptable_pages = array(
'Menu',
'Ah My Goddess',
'Ai Yori Aoshi',
'Akihabara Dennou Gumi',
'Azumanga Daioh',
'Bakuretsu Hunters',
'Blood',
'Boogiepop Phantom',
'Cardcaptor Sakura',
'Chobits',
'Comic Party',
'Cowboy Bebop',
'Devil Hunter Yohko',
'Di Gi Charat',
'dot hack',
'El Hazard',
'Escaflowne'
);
?>
Code: Select all
<title>animeGlitch > Wallpapers > <?php echo "$page"; ?></title>
Code: Select all
<?php require_once( "safewallpapers.php");
$include = $_GET['page'];
if (array_key_exists($include, $acceptable_pages))
{
require_once( "wallpapers/$include.html" );
}
else
{
require_once( "wallpapers/error.html" );
}
?>
Code: Select all
<?php
$acceptable_pages = array(
'menu' => 'Menu',
'ahmygoddess' => 'Ah My Goddess',
'aiyoriaoshi' => 'Ai Yori Aoshi',
[and so on]
);
?>
<title>animeGlitch > Wallpapers > <?php echo $acceptable_pages[$include]; ?></title>
Yes, this is perfectly safe.Now, three questions, do you think the above code is kosher?
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).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?
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)And, finally, will I run into a problem with using the spaces between the names of the html includes and is it search friendly?
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.mglenn wrote:Just thought I should post this considering where this is going:
http://www.pclinuxonline.com/modules.ph ... e&sid=7258