All Questions
Tagged with file-conversion php
36
questions
0
votes
0
answers
34
views
PHP MP4.to API usage
I am trying to convert an av1 file to mp4, however, i cannot seem to get it to work.
I am using an apache2 webserver to serve the php file.
Here is the documentation link.
Here is my code:
<?php
...
0
votes
1
answer
217
views
Convert an uploaded .PPM file to .PNG in PHP without installing ImageMagic or any other PHP module in Linux
I have a form in which a user is suppose to upload a .ppm file and I am suppose to convert the file to a valid .png file at the time of the upload.
I know how to do so with ImageMagic but in this case ...
0
votes
1
answer
38
views
Php file upload and conversion
How do I convert media file types to their generally accepted type (e.g audio -> mp3) php, I have done so many google searches and can't find anything.
Does doing this remove malicious codes from ...
0
votes
1
answer
416
views
PHP: convert an EBCDIC binary file with compression into ASCII format
I am looking for PHP code that can convert an EBCDIC binary file in to ASCII. This EBCDIC file also has some packed data fields, the code should be able to unpack these fields as well, and present ...
0
votes
3
answers
25k
views
How to change HTML file to PHP
I have an HTML file with HTML code. How can I change from the HTML file to a PHP file?
The following is the HTML code:
<html>
<head>
<title>Instascan – Demo</title&...
0
votes
1
answer
328
views
How to find missing .mp4 files in a directory?
I have files likes this on my server:
aaaa.flv
aaaa.mp4
bbbb.flv
bbbb.mp4
cccc.flv
dddd.flv
dddd.mp4
This code isn't working:
$dir=$_SERVER{'DOCUMENT_ROOT'}."/test/";
foreach(glob($dir . "*.flv") ...
1
vote
1
answer
1k
views
How to make characters safer for PHPWord
I am running the following conversion with the PHPWord library:
$section = $document->addSection();
$output = mb_substr(strip_tags($page['content'][0]['settings']['text']),0,1760);
$section->...
0
votes
1
answer
447
views
convert *.txt content to codepage 850 OEM
I wrote a little php-script to create a txt-file.
Now I have to convert the character set to CP 850 OEM.
Does anyone have a tip , what the syntax has to look like?
1
vote
1
answer
4k
views
How to convert Excel file to text file in php?
I want to convert an excel file to a text file. I have tried this code but it doesn't work:
$destination = 'products.xls';
$section = file_get_contents($destination);
$File = "file.txt";
...
0
votes
1
answer
994
views
Convert text to video (mp4 or mov or flv) in php
I am planning to create a video from a text. Basically each word will be read from the text and create video of that. The output of a video file. Then anyone can play the video.
1
vote
0
answers
680
views
Converting HTML to CSV in PHP
I'm trying to convert HTML to CSV in PHP.
This is the code I'm using.
header('Content-type: application/ms-excel');
header('Content-Disposition: attachment; filename=pkb.csv');
$html = str_get_html(...
0
votes
0
answers
230
views
DOC to PDF conversion PHP library
There are many DOC to PDF conversion libraries out there but all with limitations. Is there any library which does it for free. By free I mean no watermarks, no footer/header. I am not bothered about ...
1
vote
1
answer
655
views
How do I Change a File's Format in PHP?
I have a site with an image gallery (all svgs) and would like the user to be able to download them as pngs (in the future they should have a choice to save as an svg, png, jpg, or pdf, but let's ...
1
vote
1
answer
795
views
Inkscape server command line very slow conversion : 12 seconds for one file
I need to convert ai and eps files to svg to use with a product customization tool.
To do this, I convert from ai or eps to eps (to remove any artboard or white spaces around the file) and then to svg....
4
votes
2
answers
3k
views
How to turn an s3 object string into something useful when using laravel 5.1 filesystem
I'm at a loss. I'm trying to display an object (image.jpg) I successfully have uploaded to my s3 bucket.
I have made sure the file is set to public. I use the Storage::get(); method which the doc ...