I am attempting to create an abstract PHP class that will allow some developer to create their own custom server using PHP. I am able to start the server, bind the socket, and start listening. The only issue I have is how to handle multiple connections for reading and writing. From what I...
Hello.
I'm writing a server class in PHP and so far it is working. The is one I would like to implement but I'm not sure how to do it.
What I want to do is fork the process on every incoming connection. This way each connection to the server will spawn a separate process to complete the...
Our company has about 1500 PDFs that are password protected or do not have a password. What I would like to know is if there are any Linux-based applications that will change the password on password protected PDFs to another password and add a password if non is set.
If at all possible I...
Does anyone know of any converters that will converter an XML file to a Word 2000 .doc document? I am more than willing to write a stylsheet if the XML needs to be formatted differently.
After searching Google for an hour or so, I could only find websites providing tools and information on...
At the moment I can set and retrieve array values using the ArrayObject class when overloading my class using __get. However for some reason the __set function isn't triggered when setting a value but the value is set anyway, in the appropriate private property.
<?php
$test = new MyClass (...
(This is not strictly PHP)
I'm developing a set of PHP scripts that will allow developers to expand on the functionality of the scripts but develop their own script by using the functions and classes within this set of scripts.
Which description would best describe this set of scripts?
- PHP...
Hello,
When I use XML::LibXML's replaceNode() method on an element, all of the namespace prefixes are removed from the attributes of the element I used to replace.
Example:
<ext-link xlink:title="My Title" xlink:href="http://www.somedomain.com/">http://www.somedomain.com/</ext-link>
Becomes...
I'm trying to create a schema for a test. The test XML would look something like this:
<document>
<test>
<question>
<content>Some content for the question goes here</content>
<choices>
<choice id="a">This is choice A.</choice>
<choice id="b">This is choice...
I've googled my fingers into oblivion and I couldn't find a simple source code manager that is PHP-based. I know about CVS and SVN (I know they're not written in PHP) but I can't seem to figure it out how to configure my clients. I'm registered with SourceForge. Before you refer me to SF's...
Hello.
I am trying to dynamically create an archive, save it, and output the results so that a browser and download the zip file. At the exact point where I call the close() method, an "Internal Server Error" occurs with nothing in the logs.
Here is the script:
<?php
/**
* Mukei...
I'm trying to create a template that will make inline references look like this:
My sentence.(1) My other sentence. (2, 3)
Using this tempate:
<!-- Match Ref -->
<xsl:template match="ref">
<fo:inline baseline-shift="4" font-size="7.5pt">
<xsl:if test="not( preceding-sibling::ref...
Is there a utility out there that will allow each of my monitors to have their own screensavers?
For example, my right-most monitor has had no activity for about 10 minutes. I would like that monitor to have a screensaver on it while my other monitors that do have activity remain screensaver...
In Perl when I replaceNode() I get an extra xlink namespace added to that particular node. Is there a way to prevent that from happening or to remove it?
- I am not adding ANY attributes.
- The namespace is NOT in the original node.
TNA!
Hi,
I need to be able to begin a table in one template and end it in another.
I would do all of the table stuff in a single template but a special editor called Serna does not handle templates like this very well.
So is having a table (table, row, and cell) broken out into several templates...
FYI, I'm using XSL FO.
I have templates for each element that I will be displaying. What I want to do is prevent all of the elements I do not use (but that do exist in the document) from being displayed.
I tried the following but I get a blank document:
<xsl:template match="*" />
And...
I use an editor for creating XML documents and Serna uses XSLT 1.0 for on-the-fly transformations.
I created a template for a document that we will be working on and it all works fine except that subsequent lists (anything after list1 such as list2, list2red, list3, list3red, etc...) is not...
I spent quite a few hours searching through Google, W3, and other sites and I cannot figure out why my text is being displayed backwards. Everything is backwards except one element called <tt>sectioncontent</tt>.
Here is the XSL FO document:
<?xml version='1.0'?>
<xsl:stylesheet...
Is there a way to batch print HTML pages from an online source? I tried searching Google and Source Forge and nothing relevant came up. I do not want a GUI, just something simple such as a command line program.
Example syntax:
printhtml -d <printername> <list of urls to print>
It would also...
In Firefox, this works:
for ( var key in obj )
alert( key );
It would alert you of all the keys in the object. It fails in IE though and Google results only return object oriented stuff.
Any ideas as to IE equivalent of this type of loop? If not, is there a built-in method in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.