Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Script that will autopost links?
Old 03-19-2009, 07:26 PM Script that will autopost links?
Junior Talker

Posts: 1
Trades: 0
I have an html website and here is what I am trying to accomplish, I want to find a script which will post the newly added pages on my site to a specific page.

For example: I have a directory named "resources" I add a new file in it called "conf_03_18_2009.html" or "notes.pdf" the script would then recognize the new file and add a link to it on a specified page called "conferences.html" or "highlights.html" or something similar. It would also be nice if the script could do this for several different directories. I add anywhere between 30-40 new pages a day to the site and not having to go and update a page with all of these new links manually would be a very big help to me.

Any help would be appreciated
LostSoul is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-19-2009, 07:58 PM Re: Script that will autopost links?
Defies a Status

Posts: 1,605
Trades: 0
Not going to find an html version.

A database and html pages parsed as php you might be able to do. But even then the pages or at least the titles and teaser is going to need to be in a database.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 03-19-2009, 09:07 PM Re: Script that will autopost links?
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Check phpresources or cgiresources directories, you might find a script there to suit you needs
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 03-20-2009, 02:33 AM Re: Script that will autopost links?
Skilled Talker

Posts: 84
Trades: 0
I would suggest search in sourceforge.net and phpclasses.net
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Old 03-20-2009, 05:48 PM Re: Script that will autopost links?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
You could use some PHP like this:

PHP Code:
<?php
$path 
".";
$dir_handle = @opendir($path) or die("");
while (
$file readdir($dir_handle)) {
    
$tags = @get_meta_tags($file);
    if(
preg_match("/.php/"$file)) {
        echo 
"<a href='$file'>".$tags['title']."</a><br />";  
    } else { 
            echo 
""
        }
    }    
}
closedir($dir_handle);
?>
This is a modified version of the readdir() function, so it will list all the .php files, inside the specified directory, take out the meta content that is inside the file, and then display it. So to list the 'special' name of the page, put in the html page:

HTML Code:
<meta name="title" content="Special Title" />
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-22-2009, 01:50 PM Re: Script that will autopost links?
Average Talker

Posts: 22
Name: adoc fish
Trades: 0
You can get away without having a database if you are happy to recreate the directory page from scratch when you do an update. This would then overwrite the previous version.

Try looking for scripts that generate site maps as this is probably very close to what you want.


Good luck
_coda_ is offline
Reply With Quote
View Public Profile
 
Old 03-22-2009, 01:52 PM Re: Script that will autopost links?
Average Talker

Posts: 22
Name: adoc fish
Trades: 0
To add to the previous. This assumes that you have inserted links to these articles somewhere in your pages.

If you want these links to be the first links to the new pages, then you will probably need a bespoke script.
_coda_ is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Script that will autopost links?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24915 seconds with 12 queries