Accessing A Document's Properties/metadata


Sep 6, 2006

Is it possible (and if it is how?) to have php display the details of a
word/excel/pdf document's properties/metadata?

I can go into MS Word...File...Properties and assign things like Title,
Subject, Author, Comments, etc... What I need to do now is put thse
files on a server and have php display some of those properties for me.

(Is that the same as metadata?)

Is that possible and if it is how do I go about getting started?

View 3 Replies


ADVERTISEMENT

Accessing Properties In An Array?

I have an array of objects as so

[Code]...

I would like to know how I can access the name and urls in this array.

View 2 Replies

Accessing MS Word Doument Properties

Is it possibe that we can access the MS word Doucment properties in PHP and store the captured information into a database record.

View 1 Replies

Accessing SOAP Object Properties?

I have .NET web service that I'm accessing through PHP. This web service is passed an ID and returns four properties from my DB2 server to the PHP object - code is as follows.

PHP Code:
$client = new soapclient(SOAP_ADDRESS);
$objectresult = $client->GetDataByID(array('PeopleVendorsID'=> 'N21248'));

GetDataByID is my .NET web service function. PeopleVendorsID is the parameter that I passed it, a person's unique ID at our organization. SOAP_ADDRESS is a constant with my WSDL address - all of this is fine. PHP is hitting the database and returning data to $objectresult because when I do a var_dump I get this in the browser:

[Code]...

$objectresult obviously has all of the data inside of it but for some reason I'm blocked from calling the results out of the object? I also tried assigning $objectresult to a new property and that didn't work either.

View 1 Replies

Accessing A Child's Private Properties In Parent?

I have a parent object that I use for general CRUD in my applications - it has basic save & retrieve methods so I can don't have to reinclude them them in all my objects. Most of my child objects extend this base object. This has worked fine, but I'm finding a problem with retrieving a serialized child object. I use a "retrieve" method in the parent object that creates an instance of the child, then populates itself from the properties of the unserialized child - this means is can "self unserialize" the object.

Only problem is - if the child object has a protected or private property, the parent object can't read it, so it doesn't get picked up during retrieval. So I'm looking either for a better way to "self unserialize" or a way to allow a parent object to "see" the protected properties - but only during the retrieval process.

Example of the code:

BaseObject {
protected $someparentProperty;
public function retrieve() {
$serialized = file_get_contents(SOME_FILENAME);
$temp = unserialize($serialized);
foreach($temp as $propertyName => $propertyValue) {
$this->$propertyName = $propertyValue;

[Code]...

EDITED: Should have said "Private" not protected child properties.

View 3 Replies

Oop - Accessing Parent Properties And Overridden Methods?

I have parent and child classes as follows:

abstract class ParentObj {
private $data;
public function __construct(){
$this->data = array(1,2,3);
var_dump($this->data);
$this->method();

[Code]...

The problem is, the child object cannot access the data property and the parent refuses to call the overridden method in the child.

EDIT: I should clarify that I am instantiating a ChildObj as $child = new ChildObj()

View 2 Replies

Parsing A Xml File Using Simplexml And Accessing Properties?

I am trying to parse a xml file which has this structure:

<?xml version="1.0" encoding="UTF-8" ?>
- <uclassify xmlns="http://api.uclassify.com/1/ResponseSchema" version="1.00">
<status success="true" statusCode="2000" />[code]....

I am trying to access the properties className and p in class.This is the code that I have so far:

$resXml = simplexml_load_file($requestUrl); //$requestUrl is where the xml file is located
$children = $resXml->children('http://api.uclassify.com/1/ResponseSchema');
foreach ($children->readCalls->classify->classification->class as $d) {[code]....

Been trying different things for a while and cannot figure this out.

View 1 Replies

Storing And Accessing $_GET And $_POST Properties?

Is this an effective way of accessing the $_GET and $_POST properties?

I can see that the native $_GET function has been looped through so that $varName would be for example "username" and $value would be "Jeremy". Then they are both stored into an array called $getVars?

foreach($_GET as $varName=>$value)
$getVars[$varName]=trim(clean($value, 100));
foreach($_POST as $varName=>$value)
$postVars[$varName]=trim(clean($value, 100));[/php]

View 1 Replies

Maintain The Metadata Or Re-apply Metadata After Imagejpeg Gets Called?

I have php script that creates a temporary watermark image for users that are not logged in. The original image contains IPTC (metadata) information that I would like to retain, however, when the watermark is applied and imagejpeg is called, all metadata is removed. how I can maintain the metadata or re-apply metadata after imagejpeg gets called?

View 1 Replies

Accessing Object Properties Of Type Array Dynamically?

I am building a Language class for internationalization, and I would like to access the properties dynamically (giving the string name), but I don't know how to do it when dealing with arrays (this is just an example):

class Language {

public static $languages_cache = array();
public $index_header_title;
public $index = array(
"header" => array(

[Code]....

So, outputting members:

echo _('index_header_title', "en"); //works
echo _('index["header"]["title"]', "en"); //does not work

I would need a way for accessing arrays dynamically.. for public and private via __set() function.

View 1 Replies

Oop - Accessing Private/protected Properties Of An Object In Anonymous Function?

I'm trying to dump elements of an object's private property through an anonymous function - of course I could achieve this in any number of other ways, but this highlights a PHP conundrum I can't solve off the top of my head, short of $foo = $this and using $foo - but THAT won't give me the private stuff, so...

Sample code:

class MyClass
{
private $payload = Array( 'a' => 'A element', 'b' => 'B element');
static $csvOrder = Array('b','a');

[code]....

View 3 Replies

Parent Class Accessing Properties Of A Child Class?

What's the proper way for a parent class to access properties of a child class? Should I pass the object in as a function argument? Then access it that way? I can't really think of any better way that? This method wouldn't break encapsulation, would it?

Example of what I'm asking:

<?php
class A
{
function testIt($class)
{
if ( $class->getTest() == 1 )

[Code]....

View 11 Replies

Show Microsoft Documents, (PPT, DOC) And PDF Documents Online?

Is there any pre-made API or SDK available in PHP from which I can show these documents online? Please suggest me any perfect solution even if it is paid, I will gonna buy it.

View 1 Replies

NetBeans. Code Completion - Properties Should Not Be Listed In View Php As Properties?

I use something like this:

index.php(entryPoint)
<?php
include 'view.php'[code]...

I know that something like this are allowed in ZendFramework plugin Maybe I can add it with my framework?

some other html */

UPD:
I want to see properties which I used in index.php in code completion in index.tpl Properties should not be listed in view php as properties

View 1 Replies

Assigning Values To Properties In The Controller And Copy Properties?

Given a Controller class and a View class, the controller to directly assign values to view properties or, is it better to assigning values to properties in the controller and then copy those properties to the view when ready to display it?

Code:class Model
{
public $propertyA;
public $propertyB;

[code]...

View 2 Replies

JPEG Metadata

Does anyone aware of any program/apps/scripts that has the ability to modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG,
etc. Question for the experts, is it wise to store information in the image file
instead of the database?

View 1 Replies

Metadata + Variables

I am building a custom CMS solution with PHP and mysql.

I really have myh work cut out for me because my customer does not want to spend the $$ on a comercial solution.. dont even get me started!

The problem i am havin is that that I am trying to add custom metadata to the page. IE:

<meta name="if.classification" content="unclassfied">
<meta name="if.postdata" content="01232004">

I have like 35 of these. Code:

View 1 Replies

Add Metadata To An Image?

Where does one insert meta data into and image file and what it the mark up to do so? i want to do this with php.

View 1 Replies

Adding Metadata To PDF?

I need to augment a PDF with a custom metadata field on download in PHP (5.3).

I have been looking at the pdftk library, but I can't get my head around how I would get PHP to interface with it on our (Ubuntu) web server. The deprecated PDFInfo library seems like a dead end.

View 1 Replies

Modifying MP3 ID3 MetaData

I run a php web site that allows administrators to upload MP3 files. The form asks for the artist, title, and date as input along with the file to upload. I would like to modify the metadata attributes of the mp3 file that is uploaded. (I want to change the song title, artist name, year, genre of the mp3 file.) I am wondering how I could do this using php?

I do not want to install pear modules or anything like that, I would like to do it using just straight php code. Can't I load the file into a binary stream and then some how modify the metadata in the binary stream and save it to a new file?

View 6 Replies

Extracting Metadata

Is there anyway to extract the metadata i.e. title, artist, album, from audio files using PHP?

View 7 Replies

Extracting Image Metadata

Right-click on a jpeg in XP click "summary" tab and there are metadata fields. My questions are. How can I extract this data for each jpeg? Is this exif data is it some proprietary MS format? I see it in my text editor. If I have hundreds of images is it possible to "program" this ie. loop and put data in a flat text file?

View 1 Replies

Read PNG Metadata From Mysql?

This is what I have so far:

<?php
$file = "18201010338AM16390621000846.png";
$test = file_get_contents($file, FILE_BINARY);
[code]....

View 3 Replies

Metadata - Read XMP Data From A JPG?

PHP has built in support for reading EXIF and IPTC metadata, but I can't find any way to read XMP?

View 4 Replies

Editing WMV Metadata Using Python?

Is there library to edit WMV metadata using Python or PHP? I tried editing with ffmpeg but it just creates a new video file(with edited tags) rather than just editing the tags.

View 1 Replies

Retrieving Shoutcast MetaData?

php newbie here..Can you explain how can i use this stuff in php?[URL]..I found a phyton script:[URL]..and Java code (i guess):[URL]..But i didn't found any php solution for this problem anywhere

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved