How to change .php and .html extension to .mp3, .3gp, .mp4, .jpg etc
How to change .php and .html extension PHP code can be embedded in HTML code, or it can be used in combination with a different system web templates, web content management systems and web frames. PHP code is normally processed by the PHP interpreter is implemented as a module in web server or as a Common Gateway Interface (CGI) executables. web server combines the results of PHP code is interpreted and applied, which can be any type of data, including images, with the resulting web page. PHP code can be run with a command line interface (CLI) and can be used to implement a standalone graphical applications.
HTML is the standard markup language used to create web pages. In addition to CSS and JavaScript, HTML is the basic technologies used to create web pages, and user interfaces for mobile and web applications. Browsers can read HTML files and make them visible or audible in a web page. HTML describes the semantic structure of the site and, before the advent of Cascading Style Sheets (CSS), including guidelines for the presentation or appearance of the document (Web page), making it a markup language, not a programming language.
Perl language borrows elements from other programming languages Including C, shell scripting (sh), AWK and sed. They offer a powerful text processing facilities without data is random length limits of many contemporary Unix command line tool, facilitating easy manipulation of text files. Perl 5 gained great popularity in the late 1990s as a CGI scripting language, partly Because The expression and string parsing capabilities unmatched regularly.
How to change .php and .html extension to .mp3, .3gp, .mp4, .jpg etc ?
1. You must already have a script html / php that will convert
example script html :
example script html :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| <! DOCTYPE html> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html >< head > < meta charset = "utf-8" > < title >=[ Free Instagram Likers ]=</ title > < meta charset = "utf-8" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1" > < meta name = "Description" content = "=[ Free Instagram Likers ]=" > < meta name = "Keywords" content = "=[ Free Instagram Likers ]=, Free Instagram Liker, Instagram Likers, Liker IG, IG Likers, Instgaram Followers, InstaLike" > < meta name = 'robots' content = "index, follow" > < link rel = "icon" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" sizes = "32x32" /> < link rel = "icon" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" sizes = "192x192" /> < link rel = "apple-touch-icon-precomposed" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" /> < meta name = "msapplication-TileImage" content = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" /> < style type = "text/css" > </ style > < style type = "text/css" > body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { position:absolute; left: 0; right: 0; bottom: 0; top: 0px; } </ style > </ head > < body > < center >example</ center > </ body > </ html > |
How to change .php and .html extension
If you are going to convert .php, you could use an iframe / frame in html
example iframe .php in html
example iframe .php in html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| <! DOCTYPE html> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html >< head > < meta charset = "utf-8" > < title >=[ Free Instagram Likers ]=</ title > < meta charset = "utf-8" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1" > < meta name = "Description" content = "=[ Free Instagram Likers ]=" > < meta name = "Keywords" content = "=[ Free Instagram Likers ]=, Free Instagram Liker, Instagram Likers, Liker IG, IG Likers, Instgaram Followers, InstaLike" > < meta name = 'robots' content = "index, follow" > < link rel = "icon" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" sizes = "32x32" /> < link rel = "icon" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" sizes = "192x192" /> < link rel = "apple-touch-icon-precomposed" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" /> < meta name = "msapplication-TileImage" content = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" /> < style type = "text/css" > </ style > < style type = "text/css" > body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { position:absolute; left: 0; right: 0; bottom: 0; top: 0px; } </ style > </ head > < body > < div id = "content" > </ div > </ body > </ html > |
How to change .php and .html extension
If you want to convert php, do not use the iframe / frame, please coding manual again
you can learning here : http://www.cs.wcupa.edu/rkline/perl2php/
you can learning here : http://www.cs.wcupa.edu/rkline/perl2php/
2. Copy and convert your script here : http://ult-tex.net/tools/ultra/html_convert.pl
and convert it !
example :
and convert it !
example :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| #!/usr/bin/perl -w # Script Name: You Name It # Written By: You@your-domain.com # © Date: 06-16-16 # Display script errors. use CGI::Carp qw(fatalsToBrowser); # Begin the page. print "Content-type: text/html\n\n"; print qq~<! DOCTYPE html> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html >< head > < meta charset = "utf-8" > < title >=[ Free Instagram Likers ]=</ title > < meta charset = "utf-8" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1" > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" > < meta name = "viewport" content = "width=device-width, initial-scale=1" > < meta name = "Description" content = "=[ Free Instagram Likers ]=" > < meta name = "Keywords" content = "=[ Free Instagram Likers ]=, Free Instagram Liker, Instagram Likers, Liker IG, IG Likers, Instgaram Followers, InstaLike" > < meta name = 'robots' content = "index, follow" > < link rel = "icon" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" sizes = "32x32" /> < link rel = "icon" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" sizes = "192x192" /> < link rel = "apple-touch-icon-precomposed" href = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" /> < meta name = "msapplication-TileImage" content = "http://www.bytux.com/wp-content/uploads/2016/06/favicon.gif" /> < style type = "text/css" > </ style > < style type = "text/css" > body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; } #content { position:absolute; left: 0; right: 0; bottom: 0; top: 0px; } </ style > </ head > < body > < div id = "content" > </ div > </ body > </ html >~; # End of script. |
How to change .php and .html extension
3. After you have a perl script, you can save them with the extension that you want, such as: script.3gp, script.mp3, script.mp4, script.jpg
4. Open your website controlpanel
– Create folder “testing”
– Go into the folder and create a .htaccess file containing :
“.htaccess”
– Create folder “testing”
– Go into the folder and create a .htaccess file containing :
“.htaccess”
1
2
3
4
5
| Options FollowSymLinks MultiViews Indexes ExecCGI AddType application/x-httpd-cgi .3gp AddHandler cgi-script .3gp AddHandler cgi-script .3gp |
– create a php.ini file containing :
“php.ini”
“php.ini”
1
2
3
| AddHandler server-parsed .php safe_mode = off disable_functions = NONE |
– Upload your script in the same folder
5. Change the permission (chmod) script.3gp / script.mp3 / script.mp4 / script.jpg to 755
6. Open url in new tab .. example http://localhost/apa.3gp
thank hopefully useful 

Tutorial in video :
Leave a Comment