How can I modify exif data of an image with PHP [duplicate] - php

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How do I add exif data to an image?
I want to modify some information in exif data with PHP. I've googled around but no hope. There's function in PHP, exif_read_data. But it only reads not writes. Anybody knows how or walkaround?

Looks fairly old but may be something for you: http://pel.sourceforge.net/
This gets also mentioned in the linked article from Calvin L.

http://pel.sourceforge.net/
A php extension that can write exif data, with installation instructions using PEAR. It requires that you can control which extensions are being installed on the machine that runs your PHP, which is not the case in many virtual hosting environments.

Related

Checking if Chrome Extension is installed or not [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Check whether user has my chrome extension installed
is there any easy way to display a div for users that have an chrome extension installed and different div for users that dont have, something like this:
<div>X Chrome Extension is installed</div>
<div>X Chrome Extension is not isntalled</div>
php or javascript something.
That's not possible. You can't get a simple list via JavaScript.
You could only check for things which specific extensions introduce (e.g. new DOM elements, etc.).
You cannot accomplish any client-side checks with PHP because it is interpreted and run on the server side.

Read .properties files using PHP [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Does PHP allow *.properties file as in Java?
How to read/parse .properties file using PHP?
.properties files are usually used in Java platform. Its counterpart in PHP is .ini files. .ini files can be parsed natively by PHP using parse_ini_file(). See this stackoverflow question: Does PHP allow *.properties file as in Java?.
Still, if you would like to read and parse .properties files, you have to do that manually. A quick search on Google take me to the following result:
reading java-style properties file in PHP - Github repository
Hope this helps :)

PHP image trace function [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Sourcecode to convert JPG (bitmap) to SVG (vector)?
Is there an existing php library that can do an image trace function? If not, how would this be accomplish-able? Is there an existing library that could be easily ported to php?
You can use OpenCV's feature detection functionality to detect and trace edges. OpenCV is very good at these type of image processing and is widely used and developed.
There is also a PHP library to interface with OpenCV.
Just found this, which is a tutorial on tracing a bitmap in Inkscape. You might have to dig about in the internals of the program to be able to interface it in PHP, but perhaps that might get you started?
Edit: this uses Potrace internally, which I suspect works at the command line. Image in, SVG/PDF out - easily interfaced in PHP.

Why can't I compile PHP code? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Can you “compile” PHP code?
After I write an application in PHP, why can't I compile it into machine language? I know that it's possible to make a byte-code version of the file, which (as I understand it) is basically a file that has already been parsed into tokens.
But that's not what I want. Clearly it can't work in a general sense, since compiled code will be platform-specific, but let's say I have chosen a given platform. Why can't I create a binary file that would be the same code that PHP would run when given my .php file?
You can, facebook released a project which is currently being updated for php 5.3 (supports everything lower iirc) called HipHop, you can find it here: https://github.com/facebook/hiphop-php
There are a few compilers out there like facebook's, mentioned by #Howard, or http://www.roadsend.com/home/index.php?pageID=compiler. I've never tried them though.

Is There a PHP SVN Server [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
PHP Source Control Server
Hello,
I know there is a SVN Extension for php before some one comments on that.
I'm asking for a php SVN Server as i would like to read how SVN's save the changes as i want to do the same ting but use mysql Database instead for my content allso i would like to see how it's formed when the latest Repo is downloaded so i could do with project.
I dont mind other scripting langs just no compiled application posting please
EDIT
Ok what im looking for is the method svn uses to detect and save changes.
And the method used to construct the end result file when downloading a repo
THIS is not for me to build on SVN its for me to build a System that replicates the 2 parts mentioned above
Awnser ----------------------------
http://pear.php.net/manual/en/package.text.text-diff.intro.renderers.php
If your interested in looking into the data format they use, do you know SVN has a Berkeley DB backend?
http://svnbook.red-bean.com/en/1.5/svn.reposadmin.create.html
svnadmin create --fs-type bdb /var/svn/repos

Categories