473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to convert wma files to mp3 at runtime in my website that builts by php, mysql

2
HI,

I am also facing this problem. I have XAMPP runing on Windows system and i have php 5.0 installed and GD library too.

I have got the ffmpeg_new.rar from a weblink (http://sourceforge.net/project/downl...e_mirror=jaist ) got from this thread. And i have also the same content in that folder.

In common folder

1) avcodec.dll
2) avformat.dll

In php5 folder

1) php_ffmpeg_20050618_nogif.dll
6) php_ffmpeg.dll

i followed and copied the avcodec.dll and
avformat.dll files to system32 folder.and i copied ffmpeg file into php\ext folder.Then i added tha extension = php_ffmpeg in php.ini file extension. And restarted XAMPP services.

I also tried keeping this php code in a file under this folder : ../xampp/htdocs/myprojectdir/ffmpeg/test.php

Expand|Select|Wrap|Line Numbers
  1. $extension = "ffmpeg";
  2. $extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
  3. $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;
  4.  
  5. # // load extension
  6. if(!extension_loaded($extension)) {
  7. dl($extension_soname) or die("Can't load extension $extension_fullname\n");
  8. }

When i run this page from the Browser i got this warning:

Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=ffmpeg.dll in your php.ini in D:\xampp\htdocs\myband\ffmpeg\ffmpeg.php on line 9
Can't load extension C:\php5/ffmpeg.dll
Any help/suggestion is greatly appreciated.

Cheers,
pranoy
Feb 18 '10 #1
2 2101
Dormilich
8,658 Expert Mod 8TB
well, try what the error message suggests.
Feb 18 '10 #2
Atli
5,058 Expert 4TB
Hey.

You can't (shouldn't) use the dl() function on a web-server. It only works in CGI and CLI. - If you need to add modules, you should do it via the configuration.

If a extension_loaded call indicates that your extension is not loaded, there is something wrong with the configuration. You can't fix that at run-time; it needs to be fixed in the php.ini file.
Feb 18 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: william | last post by:
I have an application that was developed in Clipper. 70 dbf files and aroud 100 ntx , I plan to move the data to Access and Mysql *.frm *.MYD and *.MYI, But I don't know how to convert the .dbf...
0
by: _thedebugger | last post by:
Dear All, I have created Multilingual website using asp.net Framework 1.1. It is in German, and English and later will be in chinese. I am using simple ..resx files to store language strings....
5
by: moondaddy | last post by:
I have a website that currently has all static htm pages and nothing will be dynamic for quite some time. This site is made up of a bunch of htm pages. is there any advantage or disadvantage of...
2
by: AAJ | last post by:
Hi all I have a few questions about file locations with VS2005, localhost WidowsXP and remotehost Server2003, and I wonder if anyone can help me get started 1) If I build a web site on my...
3
by: Ben Holness | last post by:
Hi all, I have a php/mysql website where people can upload their own graphics for the buttons and background of pages on the website. This used to run on one server, but I have now been asked...
6
by: Justin | last post by:
Hi all, i need some help over here... i found the solution to export file from mysql db into *.csv. but is there anyway to convert the contents into *.doc and save in my webserver and providing a...
1
by: sadf | last post by:
I am new to mysql. I have .dbf files in foxpro and i want to convert them into mysql. Please tell me the best way to convert .dbf file into mysql.
7
by: Rick | last post by:
I have a web service that I converted from VS 2003 Framework 1.1. to VS 2005 Framework 2.0. I tried to use the same IIS web site to run the web service. I deleted the Framework 1.1 files published...
1
by: lds | last post by:
I have Visual Studio 2005 Professional Edition installed with Service Pack 1. I have several solutions and projects that I have migrated from Visual Studio 2003 to 2005. In most cases the changes...
3
by: sethia.prashant | last post by:
Dear programmers/Developers, I'm developing a website of e-Learning, I have finished approx 50% of my project, now I'm getting problem. My website will be accessed by three type of users. 1....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.