UPHP music manager

Any duscussion regarding softwares can be carried out here.
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

UPHP music manager

Post by stb136 »

UPHP music manager

--------------------------------------------------------------------------------

uPHP audio manager is a free PHP system that makes your music collection available as a streaming website (media server and music database). You manage audio and access your music (ogg, mp3, wav, wma, etc.) via a web based interface where you can stream music, upload, make playlists, share, search and download your music from anywhere and everywhere by just using a webbrowser.

http://undoweb.frih.net/


stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

c++ to php

Post by stb136 »

c++ to php

--------------------------------------------------------------------------------

A little tutorial on moving over to php from C++
http://www.oracle.com/technology/pub...pp-to-php.html
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

POST or GET: Which Method to Use?

Post by stb136 »

POST or GET: Which Method to Use?

--------------------------------------------------------------------------------

Okay so u have a form and a preprocessor(i mean PHP). Now you're wondering what method to use to process the form....

GET or POST
First of all let's see the difference. In GET, the contents of the Form are sent in the url
eg. If you are using a file process.php which accepts the fields name, email, class, etc and does something with them. Then on submitting the form, the browser will open this URL:
http://someurl.com/process.php?name=...ail=someemail& class=XYZ

but in case of post, it sends an intrinsic array, which is not visible to the user(like get is).


So you should use Post when either the data is too complicated...Imagine a 3 line paragraph in your browser url
or you need security....
Why POST is secure?
Obviously because the information is sent intrinsically. However this doesn't mean that it is secure from pro-hackers etc. Its secure compared to GET.....
Another reason is that you don't quite require a Form to be filled up when using get
A simple img tag is enough to send the data
In the previous case, the script can be provoked using
<img src="http://someurl.com/process.php?name=Som ... =someemail& class=XYZ"/>
This will not show any image but will do the job anyways. But in post this is not possible,
The problem with get becomes significant if you have a big thing

Suppose the file sendmessage is used by the user to send message a friend(in a social networking environment)
it works with friendid and messageas parameter(http://somesite.com/sendmessage.php?...120&message=hi)
but now an unscrupulous site puts up an image on its site
<img src="http://somesite.com/sendmessage.php?fri ... You%20bloo dy%20*****%20Get%20Lost>
Theuser while logged on into ur site also visits this site.
He will unintentionally send a message to this user....
so this is where u need post..

Should you always use post....?
No not quite. Depends on you requirement. If the action performed is something that doesn't make much of a difference in the site or user's life,
go on
A profile page will have to use get
[noparse](http://someurl.com/profile.php?user=..)
Otherwise users cannot give out their profile links....
or even a refferal url(http://someurl.com/?ref=idsadas)
which is again given out by people
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

PHP Search Page

Post by stb136 »

PHP Search Page

--------------------------------------------------------------------------------

OK This tutorial will show you how to make a search page.

Firstly we make a form. I am going to use this

Code:
<form method="post" action="searchpage.php">
<p>Please enter keyword.</p>
<p>
<input name="word" type="text" size=25 maxlength=25>
</p>
<p>
<input type="Submit" name="Submit" value="Submit">
</p>
</form



This is the form where we will enter the keywords. Now the next step is to make the searchpage.php.

It will look like this

<?php
// connect to db
$db = mysql_connect("localhostt", "username", "pfriendlyword");
mysql_select_db("dbname",$db);

//check something is sent
if ($_POST['word']) {
$word= $_POST["word"];
// search query
$result = mysql_query("SELECT * FROM `table` WHERE `field` LIKE '%$word%'");
$postword = $_POST['word'];
echo "Search Results for: <strong> $postword </strong>
";
echo"<p> </p>";
echo"<p> </p>";
echo"<p> </p>";
echo"<p> </p>";
//get results
while($get=mysql_fetch_array($result))
{


$date = $get['date'];
$name = $get['name'];
$title= $get['title'];

//show results
echo("<strong>$title</strong> was added on <strong>$date</strong> by <strong>$name</strong>");

echo"<p></p>";
echo"<p></p>";
}
// if nothing is sent
}else {
die ("No search word specified");
}

?>
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

PHP Designer 2007

Post by stb136 »

I want share with you the best PHP Integrated development enviroment.

PHP Designer 2007

PHP Designer 2007 - Professional 5.2.2 [02.26.2007]

PHP Designer 2007 - Professional is a PHP Editor / PHP IDE (Integrated Development Environment) for both beginners and professional developers.
Designed to boost your productivity and enhance the process of editing, debugging, **** and publishing applications and websites powered by PHP and other web-languages.
PHP Designer 2007 - Professional is designed to makes the learning curve as easy and short as possible.
The strength in PHP lies in the ability to embed it into- and together with other web-languages and technologies.

This is why PHP Designer 2007 does not only support PHP but also other web-languages as HTML, MySQL, XML, CSS, JavaScript, VBScript, Java, C#, Perl, Python and Ruby!

The professional edition is ideal for WAMP/LAMP and AJAX developers, with features such as the Intelligent Highlighter that automatically switches between syntax highlighters for PHP, HTML, CSS, XML and JavaScript each (dependant on your position in the ****) and dims the rest of the code; and the large built-in code-libraries.

The familiar, fully customizable and intuitive development environment makes it the perfect IDE for beginners with intelligent code suggestion on the fly and contextual help with access to more then 3000 functions on the fly!

The professional edition is for any commercial, business, educational, institutional or governmental purpose!
The personal edition is a free simplified version that contains a very small selection of features found in the professional edition (personal edition is a free )

link:
http://www.mpsoftware.dk/phpdesigner.php

- Edited by Funkadelic as link was not working
Attachments
img_phpdesigner2007_01.jpg
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

Vbb 365 with 20 mod hacked

Post by stb136 »

Vbb 365 with 20 mod hacked

--------------------------------------------------------------------------------

Source Vbb 365 null by Mafiascript
2 Skin M&M và Teen
'vBShout v2.1
Viettyping
Cyb - Advanced Forum Statistics 4.5
ajaxcheckreg
NVE_Level_Pro
'vbadvanced_cmps_2_2_1
countryflag
12congiap
ncodeimageresizer_3.6_1.0rc2
plugin-youtube_gvideo
Who-has-visited today
casinoshop2.4
ibProArcade v2.6.1+
gender_in_postbit_104
NVE_Wishboard_v1.0
ColorGroup
BBcode Music, Video, FLV
...
http://www.z3rol0ve.org/4rum.zip
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

Post by stb136 »

Online Editor

--------------------------------------------------------------------------------

we are starting off with the beginning of the tut with the selector page - drop down menu:

// I have added security so only admin's can use the script

Code:
<?php # Script 13.5 - editor.php
// Editor - Lee Stevens
// Date & Time - 26/04/06 | 22:40

if ($_SESSION['atype'] == "Administrator") {
// 'atype' = Account Type in short.
?>

<form action="editor.php?plugin=editor" method="post">
<select name="editor_file">
<option value="test1.php">Test1</option>
<option value="test2.php">Test2</option>
<option value="test3.php">Test3</option>
<option value="includes/layout.css">Style</option>
</select>
<input type="submit" name="editor" value="Edit"/>
</form>
?>
Ok now we have got the drop down menu with files you would like to edit while online.

Now when you **** edit we wont the text area to appear, with the content you would like to edit:

Code:
<?
if ($_POST['editor'] == "Edit") {
?>

<form action="editor.php?plugin=editor" method="post">

<? echo "<small><b>Loaded File:</b> {$_POST['editor_file']}</small>";

$loadcontent = "{$_POST['editor_file']}";

$fp = @fopen($loadcontent, "r");
�� $loadcontent = fread($fp, filesize($loadcontent));
�� $loadcontent = htmlspecialchars($loadcontent);
�� fclose($fp);

?>




<textarea name="file_content" cols="72" rows="12">
<?=$loadcontent?>
</textarea>


<input type="submit" name="editor" value="Save"/>
<input type="submit" name="editor" value="Cancel"/>
<input type="hidden" name="editor_file" value="<? echo $_POST['editor_file'] ?>"/>
</form>

<?
}
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

I want my site to be fast...

Post by stb136 »

I want my site to be fast...

--------------------------------------------------------------------------------

hey,

have you ever wondered how Google or GMail somehow manage to have such a fast interface? Often at times, programmers wonder How do they do that? It must me some google genius... lol no, it is not.

Google utilizes a programming language called Ajax.

Ajax is different. When you load a website up it first connects to the server and then gets all the required information and displays it on the users browser. When using ajax however, the page loads up, and whenever a user **** a specific link; instead of the page refreshing all over again Ajax connects directly to the server, gets the information, and replaces. Without refreshing the users browser. This method saves the users time, and decreases server load.

AJAX has been known to be the internets most in-demand language. It was introduced by Microsoft (fashionable yes, to deem them credit for anything but ). Ajax most of the time does not produce any "Security" or "ActiveX" alerts. Ajax is kind of an add-on to JavaScript.

Ajax was made popular by Google Suggest. Notice how it automatically gets the information and displays it in the drop down menu?

hundreds of applications such as most Google Products, Live Mail, and Yahoo Mail have all switched towards Ajax. start learning today!
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

Post by stb136 »

Shoutout Box script

--------------------------------------------------------------------------------

Well, first we will start with the shoutbox, after you have all of the codes up, we will break it up and show you how to customize it

Shoutbox:

PHP Code:

Code: Select all

<style type="text/css"> 
<!-- 
#contentbox { 
background: #E5E5E5; 
padding: 5px; 
width: 195px; 
height: 200px; 
overflow: auto; } 
ul#shoutboxmessage { 
margin: 0; 
padding: 0; 
list-style-type: none; 
color: #000000; 
font: normal 10px verdana,tahoma,arial; } 
--> 
</style> 
<?php 
require_once("config.php"); 
$name = $_POST['name']; 
$message = $_POST['message']; 
$ip = $_POST['ip']; 
$mlen = strlen($message); 
$maxlength = 150; 
$date = date("M jS Y"); 
if ($_POST['submit']) { 
if ($name == "") { 
echo "<strong>Error: Please enter your nickname.</strong>"; 
} 
else if ($message == "") { 
echo "<strong>Error: No message to be sent.</strong>"; 
} 
else if ($mlen > $maxlength) { 
echo "<strong>Error: Message too long.</strong>"; 
} 
else { 
$db = mysql_connect($dbhost,$dbuser,$dbpass); 
mysql_select_db($dbname) or die(mysql_error()); 
mysql_query("INSERT INTO shoutbox(name,message,date,ip) VALUES('$name','$message','$date','$ip')"); 
} 
} 
$db = mysql_connect($dbhost,$dbuser,$dbpass); 
mysql_select_db($dbname) or die(mysql_error()); 
$query = "SELECT * FROM shoutbox ORDER BY id DESC LIMIT 20"; 
$result = mysql_query($query); 
echo "<div id=\"contentbox\">\n"; 
echo "<ul id=\"shoutboxmessage\">\n"; 
while($r = mysql_fetch_array($result)) { 
$name = $r['name']; 
$name = strip_tags($name); 
$message = $r['message']; 
$message = strip_tags($message); 
echo "<li><strong>>$name</strong>: $message</li>\n"; 
} 
echo "</ul>\n"; 
echo "</div>\n"; 
mysql_close($db); 
?> 
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> 
<strong>Nickname:</strong>
 
<input type="text" name="name" maxlength="20"><
 
<strong>Message:</strong>
 
<textarea name="message"></textarea>
 
<input type="submit" name="submit" value="Shout It!"> 
<input type="hidden" name="ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>"> 
</form> 
</div> 
?> 
Save this as shoutbox.php
stb136
Posts: 10
Joined: Wed Jun 06, 2007 6:09 am

Avoid using Javascript for form validation

Post by stb136 »

Avoid using Javascript for form validation

--------------------------------------------------------------------------------

Programmers Alert:
Okay not exactly avoid but use a server side language to validate as well....
Here's what i mean.

You have a form with the following fields, say
Name:
Age:
email:

And you write a javascript that runs when submit is **** so as to check that email is a valid email address. So far so good....
When the user enters an invalid email address, you alert him and the form is not submitted.
BUT as many of us know, many browsers allow the user to disable javascript.
Under such ****, the form will not be checked and an invalid email address may be entered.....

So it is always advised to cross check the form data entered in PHP or ASP etc for valid data.

Because it is next to impossible to stop PHP on the client side.....
Locked