Jump to content

just a little script I need.


Birdman203

Recommended Posts

I need a script and do not know how to make it, but it:
1. Searches through a folder and looks for files starting with [b]admin.[/b]
2. After that it reads the file and looks for $title and puts it in an array.

The array should look like so:
[code]
array (
  1 (
    file -> "name of file",
    title -> "$title from the file"
  )
  2 (
    file -> "name of file",
    title -> "$title from the file"
  )
)
[/code]

I hope you understand this
Link to comment
https://forums.phpfreaks.com/topic/12934-just-a-little-script-i-need/
Share on other sites

[!--quoteo(post=388208:date=Jun 26 2006, 04:42 PM:name=Birdman203)--][div class=\'quotetop\']QUOTE(Birdman203 @ Jun 26 2006, 04:42 PM) [snapback]388208[/snapback][/div][div class=\'quotemain\'][!--quotec--]
is anyone looking into this?
[/quote]
Aren't you?

The glob() function - with selector - will give you the .php file names. Throw away all those that don't start with admin and put the rest in an array. That'll get you started.

Archived

This topic is now archived and is 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.