Jump to content

Random File Generator


JetJagger

Recommended Posts

I'm searching for a pre-written script that I found online a while back.  I accidentally erased it months ago, and now that I need it....well....you know.

 

Anyway, it was a Random File Generator script that simply included <?php include.....?> files.  The includes files themselves are actually for images.  For example:  copyPanelAd.php contains '<img src="images/panelAd.jpg" border="0">

 

The small library of PHP RFG scripts that I have either work only with exact image file names with image extensions, or they only randomize comments and text.  I need that elusive script that will randomize .php files containing image sources.  I hope I explained that correctly.

 

As I explained, the script already exists somewhere, but it's dang hard to find again.  I appreciate any help anyone can provide.

Link to comment
Share on other sites

You could always just make your own.  Doesn't sound like it would be that hard.  Look into glob and array_rand

 

The problem I'm running into there is that either I have to define an image by path and extension, or I can only include text.  If I try to replace text with a <?php include...?> reference wherein the included file contains an image path, I see only ASCII characters.  In short, I have no idea what the heck I'm doing.  Thus, I would simply love to find that script.

Link to comment
Share on other sites

Dunno what to tell you, man.  I doubt anybody here is going to recognize this random obscure script of yours.  Nor do I think anybody is gonna really be interested in being your personal google researcher. 

 

Realistically, your options include writing a new one yourself, or else hiring someone else to do it for you. 

Link to comment
Share on other sites

Nor do I think anybody is gonna really be interested in being your personal google researcher.

 

I didn't ask anyone to.  If this is a forum designed to "help" people, then I asked for help as I am encouraged to.  I didn't ask for a smart-ass remark.  If you can't help, then you can't help.  Don't provoke.

 

 

Realistically, your options include writing a new one yourself, or else hiring someone else to do it for you. 

 

I just wrote it, and it works just fine.  I would have hired someone to write me a better version, but AS USUAL, replies here end up being condescending.  Some of you "experts" need to learn to ask simple questions like, "Would you mind if I write the script you need for a fee?"  I was prepared to pay $50 for this script when I logged on.  Whatever folks.  As useful as this forum has been in the past, it is suffering from egomania.

 

 

 

Link to comment
Share on other sites

Dude, whatever.  I offered you an alternative and even pointed some functions at you to get you started,  and you responded with more whining about how you just wanted to find the script.  I then responded by giving you an unbiased assessment of your situation.  If you really did bust out a new script during this time, more than likely it's based off of the very functions I pointed you at, so don't give me this crap about being condescending and unhelpful.  Next time, try just saying thank you.

Link to comment
Share on other sites

Dude, whatever.  I offered you an alternative and even pointed some functions at you to get you started,  and you responded with more whining about how you just wanted to find the script.  I then responded by giving you an unbiased assessment of your situation.  If you really did bust out a new script during this time, more than likely it's based off of the very functions I pointed you at, so don't give me this crap about being condescending and unhelpful.  Next time, try just saying thank you.

 

Whining?  Did I just mention that you "experts" are condescending butt holes at times?  I explained to you what my challenge was, the solution I was seeking, and you call it WHINING.  Hmmm.

 

You probably also need to learn some social skills.  "Unbiased assessments" don't usually include condescension....unless it's YOU leaving the remarks I suppose.  By the way, I don't recall asking for an "unbiased assessment of [my] situation"....DO YOU?  As I said, if you can't help, then you can't help.  You don't need to show your ass because I really don't know you well enough for you to have to prove anything to me.

 

As for hammering out the script, I rigged a script that I had in my library that I forgot was there.  The rig worked.  I didn't use your suggestion.  So, now you're calling me a liar, too?  I suppose we can add "arrogant" to your list of online character traits.  Oh...and here's the very simply fix I used.....

 

<?

$num = Rand (1,3);

switch ($num)

{

case 1:

echo "<?php include('...'); ?>";

break;

case 2:

echo "<?php include('...'); ?>";

break;

case 3:

echo "<?php include('...'); ?>";

}

?>

 

 

Tell you what.  Leave well enough alone.  Perhaps instead of me telling you "thank you" for treating me like crap, you should just tell me, "I apologize" and we'll call it even.

Link to comment
Share on other sites

Dude seriously, you started this thread saying you were looking for a script you lost.  And you asked for help.  I pointed you at some functions that might help you.  You brushed it off.  You clearly wanted people to help you look for this script you lost.  You're being an ass.  And apparently this isn't the first time.  I'm closing this thread, just like your last one was closed.  I'm starting to see a pattern here.  I hope you are, as well.  When you're pointing your 1 finger at everybody else, and everybody else is pointing all their fingers at you, chances are very high that you are the one responding inappropriately. 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.