How create a mp3 player with php ?


I want to create a mp3 player in php.Is it possible to create a mp3 player with php ?

Yes,It’s possible. check out the bass audio library and winbinder.

U can use Flash/embed to play the music.

U can Make one with Flash/ActionScript/XML

It is impossibile with PHP. That is if you are looking to actually create a standalone MP3 player strictly out of PHP. If you are using some other method such as Flash, or integrating Media player into your script, then yes it is.

How can i do it?

winbinder is a library for creating gui applications with php, like php-gtk, only windows API specific.

thanx tertius, Can we convert it into exe or just php ???

Yes, u can convert it into exe

search engine script


Hello,
Does anyone tell me a good search engine script for my own website.

Use Brian Huisman’s Orca search.You can run the spider on set intervals via CRON or manually.

Use google API, Its great.

PHP Dig or PHP Digger is great.

how create a msgbox with php ?



Is it possible to create a msgbox with php ???

I want to check the matching of two password fields and display a msgbox with “password not match” !!!

Try this in php:

if($pass1 != $pass2){
echo “<script>alert(“The two password did not match.”);</script>”;
}

Yes, you can do it by printing out javascript code. A google search will give you some great examples. javascript:alert(‘text here’);
If you want to do it within the page you can modify the innerHTML of a div or use a text input field set to readonly which displays the alert.

Chosen PHP and MySQL for web development


Dynamic websites are made in order to achieve great success with its best features providing good medium to run better functionality. Best web hosting service package includes database feature which will be integrated into a website. It provides RDBMS. If a user will choose Windows web hosting then it includes MSSQL database while choosing Linux web hosting MySQL database is provided. To make the data retrieval easy and fast the data in the database should be in the tabular format. Some advantages of database driven websites are:

Security:

To store the databases it is essential to protect it from unrestricted users. For example, the details of login are stored in a text file and can be accessed from authenticated script. With databases, entries can be encrypted through hash algorithm and thus providing a secured environment. Therefore, to access database one should specify the login details which is not provided easily by simple text file.

Efficiency:

As per the storage of data in tabular form the retrieval has become more efficient. SQL stores the data to make the smooth functions of website. With database system developers can update, modify and alter the columns and rows to meet the desire requirements. RDBMS has some inbuilt mechanisms which makes it more desirable database system to store the data.

Administrative control:

A database system has some control mechanisms allowing casual administration of database and tables connected with it. To access the database each user is provided with some rights and allows restrictions to protect the data from being altered and modified. Database administrator has full control over database system so that he or she can squeeze the database settings such as connection speed, restricting the flow of data, maximum number of server connections and to perform a specific query allocated hardware resources can be adjusted.

Some benefits with database system to an organization:

  1. Website can be more dynamic.
  2. It make loyalty.
  3. More visitors are encouraged to return on site and it makes growth of audience.
  4. It provides information regarding views about products/services of online users.

User’s business will be automated by a database driven website to earn big profit. It will be available with all hosting packages. To make secure website user has the database administrative control to allow the restrictions.

PHP and MySQL easy to use, fast, free, and powerful


I have found, both PHP and MySQL easy to use, fast, free, and powerful. They have helped in getting my dynamic Web site up quickly, I think, there are no better choices.

The PHP scripting language was built for the Web in which MySQL excels at
tasks common to dynamic Web sites. All the tasks common to Web development can be accomplished in PHP with an absolute minimum of effort.

content-management system or an e-commerce application


What is suggested for creating a content-management system or an e-commerce application.

Well for these applications, MySQL is a great choice for your data storage.

For real-time chat program


For real-time chat program, which one is better Java or PHP?

For real-time chat program, client-side Java is completely unnecessary.
For very sophisticated applications that require more client-side processing or that need to maintain state, a Java applet may be necessary.

For PHP/MySQL applications, which of the UNIX versions are most suitable


For PHP/MySQL applications, which of the UNIX versions are most suitable?

For PHP/MySQL applications Unix vesions, suitable can be Linux, BSD, Irix, Solaris, HP-UX, or one of the
other flavors. Most of the people who created PHP and MySQL are deeply involved with Unix, and most of their development is done on Unix machines, so it’s not surprising that the software they have created works best on Linux, BSD, and other Unix boxes.

round to two decimal places


I need to round a number to two decimal places. What is the code to round to two decimal places?

use this code

Code:

$ctr= round(($row['number_clicks']/$row['impression'])*100, 2) . "%";

turn register globals on and off via the htaccess


Hello.

Is there a way to turn register globals on and off via the htaccess file and what is the code??

Also I need the proper cron code to dump a mailbox.

Plz. help

As about the crontab line, I don’t understand exactly what you want to do, just adjust the command if I’m wrong:

Code:

0 0 * * * rm -rf /home/website/inbox/*

Code:
php_flag register_globals 0

Requires PHP running as an Apache module.
 
 Not so sure about the cron. evoleto, below, has the code for having it run every day at midnight if that's all you wanted.