How do you open an MS Word file with php? [duplicate] - php

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Create Word Document using PHP in Linux
I am trying to open Word files and edit them on linux based operating system.
is there any PHP API that enables me to open and edit word file?
I want to read and edit these files and view the images and the text formating.

We used COM objects to open up MATLAB using PHP on a Windows machine. We were able to control it pretty decently, pass scripts and such. You might want to take a look at that.

Related

Trouble running my PHP files [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Question about php and dreamweaver?
I am having alot of trouble running my php file. I downloaded XAMPP and have both Apache and MySQL running. Do I need to save the file in a certain place, and what does Dreamweaver mean when it says:
To preview pages containing server-side code, you need a testing server. Would you like to specify one now?
I have good enough knowledge in HTML and CSS, and have gotten websites running, but I can't seem to get PHP to work. When I just run the code from google chrome plainly it looks like this:
"Hello World"
"; phpinfo(); ?>
You can put your PHP-files into the xampp/htdocs folder, e.g. xampp/htdocs/hello.php and then open it in your browser at http://localhost/hello.php.
The URL must say localhost or whatever you set it to in order to render a PHP page. You also need to make sure PHP handlers are working and correctly parsing PHP files.

How run an enrypted php file in a local server? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Code obfuscator for php?
Can I encrypt PHP source or compile it so others can’t see it? and how?
How is it possible to protect PHP code?
I want to encrypt PHP code so that others should not modify and cannot view the code. If I run that encrypted PHP file in the browser its functionality should work.
I have used few codes and some software like PHP Bambalam PHP EXE Compiler/Embedder ,phc-win,zzee php etc., with those I am able to encrypt PHP code but failed to run in the server. It was showing Php encrypted code instead of its functionality.
Can any one suggest me a way to encrypt a file which should be free and run that encrypted code in the server?
For ionCube (which I use), you also need the loaders installed on your server:
http://www.ioncube.com/loaders.php
Something must decrypt the file.
You don't need to do this. PHP code is run on the server, the browser never downloads it.

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 :)

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.

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

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.

Categories