SA-MP Forums Archive
[Tool/Web/Other] [PHP, MySQL] Music stream uploader - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] [PHP, MySQL] Music stream uploader (/showthread.php?tid=381895)

Pages: 1 2


Please delete - Jakku - 01.10.2012

Delete


Re: [PHP, MySQL] Music stream uploader - Lordzy - 01.10.2012

Looks good.
Nice work Jakku.


Re : [PHP, MySQL] Music stream uploader - R@f - 01.10.2012

Nice idea but you forgot to include the database structure. And your application is vulnerable to blind SQL injections and XSS. Also, it would be better if you include the config file with the MySQL credentials, it would avoid to change them in 3 different files. And storing error messages in sessions is not a good coding practice.

If you need some development tips, you can send me a PM


Re: Re : [PHP, MySQL] Music stream uploader - Jakku - 01.10.2012

Quote:
Originally Posted by R@f
Посмотреть сообщение
Nice idea but you forgot to include the database structure. And your application is vulnerable to blind SQL injections and XSS. Also, it would be better if you include the config file with the MySQL credentials, it would avoid to change them in 3 different files. And storing error messages in sessions is not a good coding practice.

If you need some development tips, you can send me a PM
Yes, I am quite new to PHP, and I did not mean to include the database information.


Re: [PHP, MySQL] Music stream uploader - Danyal - 01.10.2012

nice work gona test it right now


Re: [PHP, MySQL] Music stream uploader - Coder_ - 09.10.2012

Omg Nice work!


Re: [PHP, MySQL] Music stream uploader - Swimor - 09.10.2012

kiwi6.com - amazing mp3 hosting!


Re: [PHP, MySQL] Music stream uploader - Jakku - 09.10.2012

Quote:
Originally Posted by Swimor
Посмотреть сообщение
kiwi6.com - amazing mp3 hosting!
Use it then


Re: [PHP, MySQL] Music stream uploader - nGen.SoNNy - 14.10.2012

NiiiiiCE


Re: [PHP, MySQL] Music stream uploader - Jakku - 14.10.2012

Just a tip, please do not call this nice if you didn't even try to upload anything - That's called post hunting


Re: [PHP, MySQL] Music stream uploader - Ghost_Boii - 14.10.2012

Nice Work


Re: [PHP, MySQL] Music stream uploader - Youarex - 15.10.2012

Quote:
Originally Posted by Ghost_Boii
Посмотреть сообщение
Nice Work
Have you even tested reliability?

Gives me a message: "Error was encountered while handling an ErrorDocument."


Re: [PHP, MySQL] Music stream uploader - Jakku - 15.10.2012

Quote:
Originally Posted by Youarex
Посмотреть сообщение
Have you even tested reliability?

Gives me a message: "Error was encountered while handling an ErrorDocument."
While uploading a file or when? In which format was your file and what's the size of it? I would not wonder a second if it was a host issue


Re: [PHP, MySQL] Music stream uploader - Youarex - 15.10.2012

Yes, while uploading an .mp3 file (6,51 MB), upload is interrupted at around 50 percent.

I'll give it another try later on.


Re: [PHP, MySQL] Music stream uploader - Youarex - 16.10.2012

After dozen more tries I've finally managed to upload a file which is 33.1 kb in size. When uploading files larger than (at least) 3 MB, connection is being interrupted and not only does this makes sense, occasionally it gives the message "The system encountered a problem with your file: You did not input your username!".


Re: [PHP, MySQL] Music stream uploader - Jakku - 18.10.2012

The code blocks you from uploading large files, that's why you're getting the interruption error. It's meant for uploading playlist files, not music.


Re: [PHP, MySQL] Music stream uploader - Youarex - 19.10.2012

Well, in that case you could have been more informative about file size limit. It says that supported file formats are m3u, mp3 and pls, no size limit. Also, mp3 is an audio file format, not a playlist. I may be wrong but who really cares...


Re: [PHP, MySQL] Music stream uploader - Jakku - 20.10.2012

If you don't know things well, don't post them. Radio stations often use .mp3 for their online streams


Re: [PHP, MySQL] Music stream uploader - Youarex - 20.10.2012

You're not giving good advice, friend. Wise would be to say; If you don't know how to, speak with us about it and you will learn. If I've said something wrong, then correct me. You may know some things that I don't but that's okay. When there's no equality, unless ego disappears, nobody can be friends. My advice to you is to be more friendly, there's no single obstacle preventing you from that


Re: [PHP, MySQL] Music stream uploader - Stylock - 20.10.2012

Quote:
Originally Posted by Jakku
Посмотреть сообщение
Yes, I am quite new to PHP.
Quote:
Originally Posted by Jakku
Посмотреть сообщение
If you don't know things well, don't post them.
I'm sorry, but you are contradicting yourself.