Page 1 of 1

NEWBIE QUESTION

Posted: Fri Dec 05, 2008 9:38 am
by billywjf
Hi folks,
I am completely new to php and am a complete ant utter novice, i am trying to figure out a problem and hope someone here can help me.
Here is the scenario
I have a website with vb scripting and an asp page that does the following.
Every time the page loads it
1: retrieves a single filename from a folder, (the file extension is already known and there is always only one file in the folder).
2: changes the filename using a randomly generated name
3: assigns that filename to a variable
4: assigns the variable to part of a href link

I have this working with asp but would not know where to begin in PHP any pointers would be greatly appreciated.

Thanks in Advance

Billy

Re: NEWBIE QUESTION

Posted: Fri Dec 05, 2008 9:48 pm
by josh
Did you read the key landmarks in the PHP manual @ php.net?

Re: NEWBIE QUESTION

Posted: Fri Dec 05, 2008 11:34 pm
by JAB Creations
Hi Billy,

Some of us here may have varying amounts of ASP experience (Bring out yer dead!) so I would advise revising the thread's title so that it asks what the equivalent PHP code is to what you already have working in ASP. Other wise your vague thread title won't get many views when it grows old and goes archive. Plus...if the thread is appropriately named someone is much more likely to say, 'Oh hey that's super easy!' and answer your thread a whole lot quicker than you may have expected.