![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
I need a quick php script done......PROGRAMMERS!!!
I have directories with upwards of 2000 files in them
the files all are formatted like this this-is-the-file.php what I need to be able to drop a php script in the directory and output html based on the filenames so if the file name is what I said above, the php script will output <a target="blank" href="this-is-the-file.php">this is the file</a><br> it need to take the words in the file name, remove the dashes, add the href tags in there, and output the html to me I know this is CAKE to do, I just don't have anyone to do it for me right now....how much will someone charge me? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
anyone?
........... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2006
Location: Tampa
Posts: 5,827
|
here is a bump for you
![]()
__________________
Icq 247-742-205 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
sperm tail
Industry Role:
Join Date: May 2004
Location: nj
Posts: 11,019
|
get in touch with WOJ he's reliable and does good work sure he can whip something up for you...
www.wojfun.com
__________________
Got Cam Models? icq: 361-607-616 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
I need it done now |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
sperm tail
Industry Role:
Join Date: May 2004
Location: nj
Posts: 11,019
|
bah that sucks... hope you can find someone
![]()
__________________
Got Cam Models? icq: 361-607-616 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Code:
#/bin/tcsh foreach file (*.php) echo -n "<a href='$file'>"; echo $file|sed -e 's/-/ /g'|xargs echo -n; echo -n "</a>"; end upload it and run it in that dir with ./makelist.csh > outputfile.html |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Sep 2003
Location: p0rn0stars & h0es
Posts: 2,931
|
darksoul - does kon still run adultxspace?
__________________
ICQ#: 153923840 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
i don't do ssh ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
you're missing out
![]() let me try it in php: Code:
<?php if($dir = opendir(".")) { while (($file = readdir($dir) !== false) { if ($file != "." && $file != "..") { $text .= "<a href=\"$file\">.str_replace("-"," ",$file)."</a><br>"; } } } $fd = fopen("outputfile.html",w); fwrite($fd,$text); fclose($fd); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
Quote:
Parse error: syntax error, unexpected '{' in /usr/home/keywords.php on line 3 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
If you want to just drop it in a directoty and browse to that file, call it something like "listfiles.php" and change these 3 lines:
$fd = fopen("outputfile.html",w); fwrite($fd,$text); fclose($fd); to simply echo $text; then in your browser just: http ://www.yourdomain.com/pathto/listfiles.php |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
You silly php peoples...
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
shit, hold up, it is leaving the .php on the end of link
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Here it is
Code:
<?php if($dir = opendir(".")) { while (($file = readdir($dir)) !== false) { if($file != "." && $file != ".." && $file != basename(__file__) && preg_match("/^.*\.php$/",$file)) { $text .= "<a href=\"$file\">"; $text .= str_replace("-"," ",str_replace(".php","",$file)); $text .= "</a><br>\n"; } } } $fd = fopen("outputfile.html","w"); fwrite($fd,$text); fclose($fd); echo "Job done"; ?> also removed the ".php" from the title |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
you all rock so much
anyone who helped me in this thread if you have any links you want across about 50,000 seo'ed pages for the next month or so, let me know not much traffic, but it will help ya gain some se rankings |
![]() |
![]() ![]() ![]() ![]() ![]() |