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
Old 07-26-2004, 06:54 PM so frustrated....
Junior Talker

Posts: 1
Trades: 0
ok im using php to read directory and then read the mp3 files in the directory and return the id3 tag info to flash....here is my code

Code:
<?php

require_once('mp3/getid3/getid3.php');

// Initialize getID3 engine
$getID3 = new getID3;

$filepath = 'mp3';

$handle = opendir($filepath);
while (false != ($file = readdir($handle))) {
	if ($file != "." && $file != ".." && $file != ".DS_Store" && $file != "getid3" && $file != "index.htm") 	{
		$ThisFileInfo = $getID3->analyze($filepath.'/'.$file);
		getid3_lib::CopyTagsToComments($ThisFileInfo); 
		if ($output) $output .= "|";
        $output .= implode(', ', $ThisFileInfo['comments']['title']);
		}
}
closedir($handle);
echo "&songs=$output&";
?>
the strange thing is half the time i get a page cannot be displayed error. the other half of the time the code works prefect. the folder doesnt change, the files dont change, nothing changes but for some reason the code doesnt work. im new to php but not new to programming and ive never had code work so strange.

here is the the address
here

please help
bdog01 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-26-2004, 11:04 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
Have you tried putting it on any other hosts to see if maybe your host just sucks?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to so frustrated....
 

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.22167 seconds with 12 queries