Forum: PHP Oct 18th, 2009 |
| Replies: 3 Views: 835 Is it possible to get a PHP page to popup in a new page after a form post? Then, return information from the popup page to the parent page? Right now when I post my data, the browser window... |
Forum: PHP Oct 16th, 2009 |
| Replies: 4 Views: 944 Thanks for your help. This should work. The problem is that there are two php files being used. When I click on the upload button on my first PHP page, the new PHP page loads, executes the upload,... |
Forum: PHP Oct 15th, 2009 |
| Replies: 4 Views: 944 Hi there,
I have some code which quite nicely uploads PDF files to the server:
if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) {
//Check if the file is... |
Forum: PHP Oct 2nd, 2009 |
| Replies: 1 Views: 844 For those of you could not figure this one out, after a few tries I got it:
$users = new DOMDocument();
$users->load("officedata.xml");
$suser = simplexml_load_file("officedata.xml");... |
Forum: PHP Oct 1st, 2009 |
| Replies: 1 Views: 844 Hi there,
I am trying to delete XML nodes using PHP. Here is a sample of my xml file.
<users>
<user>
<fullname>PC1</fullname>
<flooor>4</floor
</user>
<user> |
Forum: PHP Aug 12th, 2009 |
| Replies: 2 Views: 1,084 Thanks for your reply. When I change that line, the XML data is not updated at all. I believe that the simpleXML syntax for updating a node needs to have a certain format. Perhaps I am just... |
Forum: PHP Aug 12th, 2009 |
| Replies: 2 Views: 1,084 I have a very simple script that basically searches an xml file for a node based on the id of another node. I then update the node I found with a new value. For some reason my code is not performing... |
Forum: PHP Aug 11th, 2009 |
| Replies: 2 Views: 494 I have taken a brief look into SimpleXML and have created the following. I just can't get the XML to update:
$file = 'officedata.xml';
$xml = simplexml_load_file($file);
$lastname =... |
Forum: PHP Aug 11th, 2009 |
| Replies: 2 Views: 494 Hi there,
I am trying to update a node in an XML file using PHP.
Here is the XML:
<users>
<user>
<id>1</id>
<firstname>Bob</firstname> |
Forum: PHP Jan 26th, 2009 |
| Replies: 5 Views: 438 Thanks...
Lets see....This will work for the last case, that is, there is a layer1 and layer2 defined, but no layer3:
$query resolves to "Layer1,Layer2"
However, if you define layer2, and... |
Forum: PHP Jan 26th, 2009 |
| Replies: 5 Views: 438 I have a simple problem and I do not want to write 24 if statements.
I am creating a URL string which requires precise formatting to work. This URL is getting created on the fly based on... |