[PHP] serialize() function

2006-04-13 Thread Nicholas Couloute
Are there any tutorials and uses for serialize() ? I went to php.net and 
it isn't well documented as I would hope!

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is best way to do handle audio files?

2006-04-09 Thread Nicholas Couloute
Yea, okay looks like I am going to be using mysql cause I want an 
organized site by genre, author etc. I going to need some resources of 
mysql cause I haven't used it before! I have used flatfile for about a 
year now!


On Sun, 9 Apr 2006 12:02 am, Richard Lynch wrote:



If the files are constantly changing, scandir is probably as fast as
it gets...

If you rarely alter the files, do scandir once and store the results
in, say, MySQL and you can search/sort MUCH faster.

On Sat, April 8, 2006 11:01 am, Nicholas Couloute wrote:

 On my website http://www.sidekick2music.com ! I use scandir() [php
 5.0]
 to fetch all the files which are all in subfolders of this one folder.
 like this:
 public_html/amrs/$cat/$author/*.amr

 $cat = different catergoried of music
 $author = Authors of the particular catergory

 This way isn't fast when you have over 5,000+ files.

 I use flatfile for everything on the site!
 site: http://www.sidekick2music.com

 Would it run faster if I used mysql?
 How would this be done?
 Is there another way when dealing with files and organizing them? CMS?

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





--
Like Music?
http://l-i-e.com/artists.htm

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] What is best way to do handle audio files?

2006-04-08 Thread Nicholas Couloute
On my website http://www.sidekick2music.com ! I use scandir() [php 5.0] 
to fetch all the files which are all in subfolders of this one folder. 
like this:

public_html/amrs/$cat/$author/*.amr

$cat = different catergoried of music
$author = Authors of the particular catergory

This way isn't fast when you have over 5,000+ files.

I use flatfile for everything on the site!
site: http://www.sidekick2music.com

Would it run faster if I used mysql?
How would this be done?
Is there another way when dealing with files and organizing them? CMS?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] What is best way to do handle audio files?

2006-04-08 Thread Nicholas Couloute
On my website http://www.sidekick2music.com ! I use scandir() to fetch 
all the files which are all in subfolders of this one folder.

like this:
public_html/amrs/$cat/$author/*.amr

$cat = different catergoried of music
$author = Authors of the particular catergory

This way isn't fast when you have over 5,000+ files.

I use flatfile for everything on the site!
site: http://www.sidekick2music.com

Would it run faster if I used mysql?
How would this be done?
Is there another way when dealing with files and organizing them? CMS?

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Nicholas Couloute
How would I make a flatfile new systen with the ability for users to 
comment on the news selection (no login required)?

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Nicholas Couloute
LOL. I see the point your trying to make! I have made a news script 
before but how would I add coments to each individual new article! How 
would I keep it all together! and also to show only the lastest news 
articles!


On Thu, 23 Feb 2006 3:04 pm, Jay Blanchard wrote:

[snip]

 How would I make a flatfile new systen with the ability for users to
 comment on the news selection (no login required)?


Write the code for it.
{/snip]

Carefully and thoughtfully.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Upload via email?

2006-02-15 Thread Nicholas Couloute
How would u make a script that uploads files to ur server via email? 1. 
user emails the server 2. if there is a audio file (amr) attached then 
add it a folder! Are there any scripts that can do that?

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Flatfile forum?

2006-02-12 Thread Nicholas Couloute
I am interested in creating a flatfile database forum! How would I go 
about doing this. I know it has been done before! I want to make one 
from the ground up!

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
I want a script where it will count all the amrs in a folder and it's 
sub folders like this setup:

amrs 
50 cent  amrs
nitty  amrs
bob  amrs
How would I do this?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
I have used these functions but how would I count them! here is my 
attempt that doesn't work!:

$count = 0;
$dir = /amrs;
$files1 = scandir($dir);
if ($files1 !== '.'  $files1 !== '..') {
foreach ($files1 as $files2){
$dir2 = /amrs/$files2;
$files3 = scandir($dir2);
if ($files3 !== '.'  $files3 !== '..') {
foreach ($files3 as $files4){
$dir3 = /amrs/$files2/$files4;
$files5 = scandir($dir3);
if ($files5 !== '.'  $files5 !== '..') {
foreach ($files5 as $files6){
$count++;
}
}
}
}
}
}
echo $count;

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
here is what I tried but it doesn't work! any advice suggestions or 
something?


$count = 0;
$dir = /amrs;
$files1 = scandir($dir);
if ($files1 !== '.'  $files1 !== '..') {
foreach ($files1 as $files2){
$dir2 = /amrs/$files2;
$files3 = scandir($dir2);
if ($files3 !== '.'  $files3 !== '..') {
foreach ($files3 as $files4){
$dir3 = /amrs/$files2/$files4;
$files5 = scandir($dir3);
if ($files5 !== '.'  $files5 !== '..') {
foreach ($files5 as $files6){
$count++;
}
}
}
}
}
}
echo $count;
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How would u strip the path?

2006-01-24 Thread Nicholas Couloute

how would u strip the path off of a variable? say that:
$bob = /home/s2music/b/bob.mp3;
I want bob just to be bob.mp3!
how would I do that?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP][SOLVED] How would u strip the path?

2006-01-24 Thread Nicholas Couloute

Thanks that is just what I needed!

On Tue, 24 Jan 2006 4:08 am, Paul Scott wrote:

On Tue, 2006-01-24 at 04:01 -0500, Nicholas Couloute wrote:

 how would u strip the path off of a variable? say that:


http://za2.php.net/manual/en/function.basename.php

basename it!

--Paul

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Search files in a directory!

2006-01-23 Thread Nicholas Couloute
I want to setup a search box that will search all the filenames in a 
given directory for the keyword provided by the user and display all the 
files that have that keyword? how would I do this? at least the 
searching part?



~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP][SOLVED] Re: Search files in a directory!

2006-01-23 Thread Nicholas Couloute

thank you barry! function substr_count() does what I need!

On Mon, 23 Jan 2006 9:13 am, Barry Krein wrote:

Nicholas Couloute wrote:

What would I do to the variable each tome to compare it to the query?
~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

use substring count or any other string reading function that helps 
comparing two strings

keyword - Filename

all such functions can be found on php.net

Greets
barry

~Nick Couloute
co-owner/Web Designer
Sidekick2Music.Com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] need help arranging files!

2006-01-17 Thread Nicholas Couloute

Weberdev.com is a nice site!

On Tue, 17 Jan 2006 11:34 am, Richard Correia wrote:

You can locate a good directory reading script at

http://www.weberdev.com/get_example-1456.html

Thanks,

Richard

On 1/17/06, Nicholas Couloute [EMAIL PROTECTED] wrote:


I need to know how to arrange files alphabetically in my directory when
I display it on the browser! I have it display the filename foreach 
that

exist is there a way to arrange by alphabet?
~Nick Couloute
co-owner/web Designer
SiDEkiCk2MuSiC.CoM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




~Nick Couloute
co-owner/web Designer
SiDEkiCk2MuSiC.CoM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
I need to know how to arrange files alphabetically in my directory when 
I display it on the browser! I have it display the filename foreach that 
exist is there a way to arrange by alphabet?

~Nick Couloute
co-owner/web Designer
SiDEkiCk2MuSiC.CoM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute

can any one help me out? plz
~Nick Couloute
co-owner/web Designer
SiDEkiCk2MuSiC.CoM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute

I figured it out! it runs on my pc but not on the web!
$fileroot = amrs/$cat/;
foreach ($author = scandir($fileroot); as $author){
echo $author;
}

???
~Nick Couloute
co-owner/web Designer
SiDEkiCk2MuSiC.CoM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] any good tutorials on how to create an online shop?

2006-01-07 Thread Nicholas Couloute
I need to make an online shop that lets the user select multiply files 
up to 6mbs then they would all send to the users email address! I need 
help with the online shop part! it won't involve money so no need for 
sequirity! ay tutorials?

~Nick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php