[PHP] stream_read function for registered wrapper class.

2012-09-19 Thread Rob
? Thanks for any help. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stream_read function for registered wrapper class.

2012-09-19 Thread Rob
Sorry, I just realized my replies were going to email instead of the news group. I'm going to try upgrading to php 5.4 so I have access to this: http://php.net/manual/en/function.stream-set-chunk-size.php And see if that fixes some of my problems. Thanks for the suggestions. -- PHP General

[PHP] Re: stream_read function for registered wrapper class.

2012-09-19 Thread Rob
issues with stream wrappers. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Time

2012-07-02 Thread Rob Weissenburger
Hello everyone, I know php time() gives the current unix time which you can format out to a normal date and time. Is there a way to format a specific date and time back to unix time? Thanks for any help.

RE: [PHP] PHP Time

2012-07-02 Thread Rob Weissenburger
That worked just perfectly. Thank you. -Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown Sent: Monday, July 02, 2012 3:02 PM To: Rob Weissenburger Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Time On Mon, Jul 2, 2012 at 4:00 PM, Rob

[PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-08 Thread Rob Gould
Can anyone tell me what I'm doing wrong here? I'm trying to get the VASTAdTagURI field from the XML data at this url: http://afe.specificclick.net/?l=32259t=xrnd=123456 Here's my code. (below). It works maybe 30% of the time, but most of the time it just returns nothing from that field.

[PHP] Looking for PHP/JS/MySQL gurus in the Northern VA area

2011-12-07 Thread Rob Gould
Can anyone tell me if there are folks on this list in the Northern VA area? I need to find a freelancer who knows PHP, Javascript, and mySQL. My client likes face-to-face meetings on occasion, so I really need someone local. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Slow sessions.

2011-03-30 Thread Rob Adams
. Thanks again Bostjan for the help. I don't think I could have narrowed down the problem without using the strace. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Rob Adams
On 3/26/2011 11:07 AM, Bostjan Skufca wrote: Can you strace it's execution and see where your delay is comming from? If you are using apache, make it create just one child and strace that one when you generate a request. Thanks for the advice. I installed strace on the new server, and it has

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Rob Adams
on it now though. -- Rob On 3/28/2011 12:08 PM, Rob Adams wrote: On 3/26/2011 11:07 AM, Bostjan Skufca wrote: Can you strace it's execution and see where your delay is comming from? If you are using apache, make it create just one child and strace that one when you generate a request. Thanks

Re: [PHP] Re: Slow sessions.

2011-03-28 Thread Rob Adams
From: Bostjan Skufca bost...@a2o.si When you say you installed php 5.3.x and then reverted to 5.2, did you reinstall/upgrade OS and/or kernel too? Yes. The old servers were running some version of FreeBSD. The new server is running CentOS 5.5. -- Rob -- PHP General Mailing List (http

[PHP] Re: Slow sessions.

2011-03-25 Thread Rob Adams
defeat. I'd really like to figure out why this is happening. Any suggestions? Thanks. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Slow sessions.

2011-03-24 Thread Rob Adams
. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Server-side postscript-to-PDF on-the-fly conversion

2010-03-26 Thread Rob Gould
Is there a free solution out there that will enable me to take a PHP-generated postscript output file, and dynamically, on-the-fly convert it to a PDF document and send to the user as a download when the user clients on a link? More description of what I'm trying to do: 1) I've got a web-page

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Rob Gould
that works. Where PHP would be handy is at the very bottom of the script http://www.winecarepro.com/kiosk/fast/shell/barcodemerge.ps.zip On Mar 23, 2010, at 7:48 AM, Richard Quadling wrote: On 23 March 2010 05:48, Jochem Maas joc...@iamjochem.com wrote: Op 3/23/10 3:27 AM, Rob Gould schreef: I

Re: [PHP] PHP to access shell script to print barcodes

2010-03-23 Thread Rob Gould
the browser to download the file. You can also try setting the content-type header('Content-type: application/postscript'); Either of the above might do the trick for you. Regards Peter On 23 March 2010 22:10, Rob Gould gould...@me.com wrote: I love the idea of using PHP to insert data

[PHP] PHP or SQL to do this?

2010-02-23 Thread Rob Gould
I'm not sure if I need to write a PHP for-loop to do this, or if it can all be done in one SQL statement? Basically, I want to copy all the barcodes from one table and put them into another table, but only if the barcode in the first table 0, and only if the wineid's match from table to

[PHP] help with preg_replace pattern

2010-01-26 Thread Rob Gould
It appears that IE renders it's display: none in all caps while Firefox and other browsers pass it back in lowercase. This throws off my php line of code the is supposed to nuke blank bullets from a string of text: $bl = LI style=DISPLAY: none id=bullet_ug2_col5_8/LI LI style=DISPLAY: none

[PHP] Re: UrlRewrite htaccess confusion

2009-10-29 Thread Rob Gould
You are indeed correct! Absolute URLs for everything, images, css, javascript, and links fixed the issue. Took me forever to change every link in the whole site, but it's happy now. Seems like there ought to be an easier way. On Oct 29, 2009, at 10:52 AM, Shawn McKenzie wrote: Rob

[PHP] UrlRewrite htaccess confusion

2009-10-28 Thread Rob Gould
I feel like I'm really close to a solution for the clean-url method in htaccess. I've successfully got it now so that: http://benchwarmersports.com/packages/basketball/2010/nba-all-star-game maps to:

[PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread Rob Gould
I'm trying to follow the RewriteRule docs to make it so that: http://benchwarmersports.com/packages/super-bowl-xliv/1 can be entered into the web-browser, and it transforms into: http://benchwarmersports.com/packages.php?title=super-bowl-xliveventid=1 The good news is that it does transform

Re: [PHP] RewriteRule to hide PHP vars in URL

2009-10-25 Thread Rob Gould
Isn't there a way to tell the Rewrite rule to skip anything found in a js or images subfolder? On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote: On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote: I'm trying to follow the RewriteRule docs to make it so that: http

[PHP] How to take output from an include, and embed it into a variable?

2009-09-07 Thread Rob Gould
I have an invoice table that is drawn on a number of pages, so I have all the logic in an include-file like this: include invoicetable_bottom.php; However, now I'm needing to take the output from that include file and pass it as an email. To do that, I need to somehow take the output

Re: [PHP] use preg_replace to nix and line with display: none

2009-08-09 Thread Rob Gould
I wish I could say this works, but I'm not having success with this pattern. All the lines with display: none are still in the $bl string. On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: li id=bullet_ug1_col2_9 style=display: list-item;Reserved Frontstretch Tower Ticket to the

Re: [PHP] use preg_replace to nix and line with display: none

2009-08-09 Thread Rob Gould
Yay! That worked. Thanks! On Aug 9, 2009, at 1:53 AM, Michael A. Peters wrote: Rob Gould wrote: I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains display: none li id=bullet_ug1_col2_9 style=display: list-item

[PHP] use preg_replace to nix and line with display: none

2009-08-08 Thread Rob Gould
I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains display: none li id=bullet_ug1_col2_9 style=display: list-item;Reserved Frontstretch Tower Ticket to the Camping World 300 on Saturday /li li id=bullet_2_9

[PHP] PHP script for detecting pattern sequences?

2009-07-08 Thread Rob Gould
Can anyone tell me if there's a PHP library out there that will help me determine pattern sequences from a string? Example input: 032258064516129032258064516129032258064516129032258064516129 Sequence = 032258064516129 037037037037037037037037037037037037037037037037037037037037

[PHP] Best way to reinstate radio-button states from database?

2009-06-28 Thread Rob Gould
I have a webpage which allows people to log in and make selections with radio buttons and hit SUBMIT and saves the data from those radio buttons to a mySQL database. However, I'm finding that I also need the ability to allow a user to log back in at a later date (or even on a different

[PHP] PHP/MySQL ISP recommendation that lets one edit ft_min_word_len variable?

2009-04-04 Thread Rob Gould
Can anyone here recommend an ISP that will let me have a dedicated server (not shared), and also allow me to adjust the ft_min_word_len mySQL parameter? I was originally thinking Dreamhost PS, but I recently found out that they do not allow changes to mySQL environmental variables. I really

[PHP] Re: php get rss tag using DOM

2009-02-09 Thread Rob Richards
the url attribute value: foreach ($r AS $elem) { echo $elem-getAttribute(url) . \n; } Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Rob Richards
to it, the underlying XML document structure is only destroyed once all DOMNode objects that are members of the document are destroyed as well. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML Get Value of Node DOMXPath

2008-12-16 Thread Rob Richards
. \n\n; } Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can PHP be used to snatch images cross-domain?

2008-12-16 Thread Rob Gould
If I have a php script on my own server, can it be used to snatch a JPEG image off of another server on a different domain and upload it to my server? For example, could I provide an URL to an image on another server and a path on my own server in which to place it? I know in the world of

Re: [PHP] Can PHP be used to snatch images cross-domain?

2008-12-16 Thread Rob Gould
to pass an URL into it to get and save to a special directory on my server. I like your example better. On Tuesday, December 16, 2008, at 09:41PM, Robert Cummings rob...@interjinn.com wrote: On Tue, 2008-12-16 at 21:29 -0500, Rob Gould wrote: If I have a php script on my own server, can it be used

[PHP] Create unique non-autoincrement key for 700,000 records?

2008-12-15 Thread Rob Gould
I have a mySQL database with 700,000 records in it, which are presently keyed with an auto-increment field. What I'd like to do is create another field with a field where each and every record number has a unique keyvalue. Example: su5e23vlskd for records 1, and 34fdfdsglkdj4 for record 2.

Re: [PHP] Create unique non-autoincrement key for 700,000 records?

2008-12-15 Thread Rob Gould
update mytable set hash_field = md5(AutoIdField + unix_timestamp()) I _think_ I understand that - - - - but what does the AutoldField variable mean? On Monday, December 15, 2008, at 09:37PM, Bastien Koert phps...@gmail.com wrote: On Mon, Dec 15, 2008 at 9:29 PM, Rob Gould gould

[PHP] Query-within-a-query with mySQL/PHP

2008-10-25 Thread Rob Gould
This is somewhat complicated, so I'll try to give examples with real- world data. Basically, I'd like to know how I could take data like this, from mySQL: 2006 Liberty School Central Coast, California, Central Coast, USA Chardonnay 2006 Liberty School Paso Robles, California, Central Coast,

[PHP] PHP/mySQL question using ORDER BY with logic

2008-10-23 Thread Rob Gould
Question about mySQL and PHP, when using the mySQL ORDER BY method... Basically I've got data coming from the database where a wine producer-name is a word like: Château Bahans Haut-Brion or La Chapelle de La Mission Haut-Brion or Le Clarence de

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
/XML/1998/namespace', 'lang'); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
You might want to put a link to a complete example because $page-documentElement-getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang'); is how you access it. Rob [EMAIL PROTECTED] wrote: Thank you, Rob, Unfortunately, that didn't work, either (though I'll keep it in mind

[PHP] Can Safari 3 be forced to cache a large jpeg with PHP headers?

2008-05-13 Thread Rob Gould
I am creating a touch-screen kiosk application, using a full-screen version of Safari 3.1, and was wondering if there's a way I can force Safari to cache a large background image JPEG. What I'm finding is that Safari 3 will sometimes cache my large 1.1 MB background image (1680x1050), and

[PHP] How to determine which column matched

2008-04-11 Thread Rob Gould
I'm trying to figure out a way that SQL can pass a flag to PHP to say which column matched during a query. Let's say for instance that I want to search for the word apple in both column producer, and column designation. I was hoping I could do something like this: Select producer, flag=1

Re: [PHP] Character set problems

2008-04-04 Thread Rob Gould
everywhere I make a SQL call? On Thursday, April 03, 2008, at 11:14PM, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2008-04-03 at 21:56 -0700, Rob Gould wrote: I'm having a hard time figuring out why my character sets and data look when when viewed in phpAdmin when browsing the table

[PHP] Character set problems

2008-04-03 Thread Rob Gould
I'm having a hard time figuring out why my character sets and data look when when viewed in phpAdmin when browsing the table-columns, but then I go to show the data on my web-page with PHP, I get garbage-characters where I should be seeing apostrophs and special foreign-characters. I copied

[PHP] Re: DOM - Question about \0

2008-03-16 Thread Rob Richards
(or some other encoding). The data can then be transmitted in a regular element. Note that it is possible that your blob data can contain the following sequence of characters ]] which would effectively terminate the CDATA block even though there really is more data. Rob -- PHP General Mailing

[PHP] Copying specific fields from table to table

2008-02-24 Thread Rob Gould
I've got 2 tables. One table which contains a series of barcodes assigned to product id #'s, and another table with JUST product id #'s. I need to somehow transfer all the barcodes from the first table into the second table, but only where the id #'s match. Can anyone tell me if this is

[PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-16 Thread Rob Gould
I've got a PHP script that inserts 00012345678 into a record in a mySQL database (it's a barcode). Things work ok unless the number has preceding zeros, and then the zeros get cut off and all I get is 12345678. I have the mySQL database fieldtype set to bigint(14). If the maximum length a

[PHP] question about database field-types and special characters

2008-02-14 Thread Rob Gould
I've got a PHP application that pulls in data from a mySQL database. The data is a series of wine producers, and many of them have special foreign characters over the a's and o's. When I go and view the data from my database using myPHPAdmin, the characters look fine, but when I pull the

[PHP] PHP/mySQL question about groups

2008-02-06 Thread Rob Gould
Let's say I have a PHP-based wine application, and it's taking a set of mySQL data that looks like this: wineidname size 123 Silver Oak 750ML 123

[PHP] Multiple MySQL INSERT into loop

2008-02-06 Thread Rob G
I'm working on this, and am not sure how the variable syntax needs to be here. This is what I have done manually. //BEGIN EXAMPLE mysql_query (INSERT INTO testimonials (id, quote, name) VALUES ('$id_1', '$entry_1', '$name_1')); mysql_query (INSERT INTO testimonials (id,

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Rob
/2000/xmlns/', 'xi'); var_dump($attr); Rob Nathan Per Jessen wrote: Nathan Rixham wrote: but assuming the above file is: ?xml version=1.0 ? chapter xmlns:xi=http://www.w3.org/2001/XInclude; a / /chapter how would one retrieve xmlns:xi=http://www.w3.org/2001/XInclude; When you say

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Rob
Hi Nathan, Nathan Rixham wrote: Cheers Rob, But this is the problem, I don't know what the namespace/prefix is! ie xi and the following doesn't work: $root-getAttributeNS('http://www.w3.org/2000/xmlns/', '*'); further xmlns is ?not? a prefix so this won't work either.. $root-lookupPrefix

[PHP] How to take video embed codes and change all their widths/heights?

2008-01-15 Thread Rob Gould
Can anytime give me some insights on how to write a PHP script that could accept any of the below strings below and edit the strings to change their width and height settings dynamically? For instance, if I want all embedded videos to have a width of 320, and a height of 240, using PHP's

[PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Rob Gould
Let's say I have a PHP script which lists a series of objects for sale at a yard sale, each with a checkbox to the left of the name of the item. If I wanted to have a submit button, and run through the list of items that were checked and act on them, how would I do that? To gain some

[PHP] Re: Compile - libxml2

2007-11-12 Thread Rob Richards
what's defined. --with-libxml-dir=${XML2_DIR} \ That's what your using. Where is XML2_DIR coming from? Your path only shows XML_DIR being defined. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Proposal of DOM boolean property: DOMDocument::omitXMLDeclaration

2007-10-22 Thread Rob
Freyjkell wrote: (bool) DOMDocument::omitXMLDeclaration; Does not need a comment. Implemented in XSLT. // I sent this post to php.xml.dev, but I didn't get reply for long time. parser option LIBXML_NOXMLDECL or if no DTD just save the root element. Rob -- PHP General Mailing List (http

[PHP] Re: Proposal of DOM non-standard method: DOMDocument::loadCharacterEntitiesFromDtd($path)

2007-10-22 Thread Rob
as it is parsed. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 5 soap question

2007-09-28 Thread Rob Richards
__getTypes() and __getFunctions() are your friends. They tell you alot about the functions and structure of parameters and return types. Rob Hurst, Michael S. wrote: I would have to get approval before I can do that. I can probably post a portion of the wsdl but not sure that it would

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Rob
Colin Guthrie wrote: snip / I know I definitely want to do XSLT stuff and for that I need to use DomDocument (I'm sure there are other ways but this works fine for me so far!). Fairly unknown tidbit: you can pass SimpleXML objects to the XSL extension. XSL will use the document from it.

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Rob
Colin Guthrie wrote: Rob wrote: if ($xml instanceof SimpleXMLElement) { /* No copying, just use the existing XML tree directly */ $node = dom_import_simplexml($xml); return $node-ownerDocument; } Yeah I had that initially too but that did not produce a DOMDocument Object

Re: [PHP] opcode question

2007-09-05 Thread Rob Desbois
Hi, I believe this would be a bug - report it at http://bugs.php.net/ with the exact error output and a minimal example script. --rob On 9/5/07, Frank Höger [EMAIL PROTECTED] wrote: Hello, I recently came across an invalid opcode 137/8/8 error. I couldn't find anything on the net regarding

[PHP] Bind function parameters with create_function ('currying')

2007-09-04 Thread Rob Desbois
create a class with the one function, but that seems a wee bit messy to me. Any ideas? -- Rob Desbois Eml: [EMAIL PROTECTED]

[PHP] Outputting a PDF.

2007-08-22 Thread Rob Adams
I have a pdfs saved in a database (created with pdflib). When I output them in firefox, it works just great everytime. But when I try in IE, it doesn't always work. I know, I know, it sounds like a browser issue, but here's the problem. I figured out that when I run session_start(), the pdf

[PHP] Found the problem...

2007-07-26 Thread Rob Adams
Found the problem. The piece of code was outside of a block where $db had been created, so it was a non-object the whole time... Easily fixed, but a hard error to find when I'm assuming it's my brand new class that's the problem. -- Rob Rob Adams [EMAIL PROTECTED] wrote in message news

[PHP] Createing a Test DB Object.

2007-07-26 Thread Rob Adams
I need to test a bunch of code that extensively uses a mysql database (both selects and inserts), and I want to do it without actually writing to the database.. Instead of commenting out all of the $db-query($insert_query) statements and echoing $insert_query, I thought I'd make the following

Re: [PHP] Pokeing functionality

2007-05-22 Thread Rob Desbois
Many ideas, all of them completely dependent on exactly what your requirements are - should a poke be delivered to the target in real-time or when they next load a page? This is an extremely general question, like I want users to be able to view each other's profiles, how?... --rob On 5/22/07

[PHP] Timezone DB update frequency

2007-05-21 Thread Rob Desbois
with PHP will become unsuitable and when / how often. Thanks, --rob

Re: [PHP] Re: using preg_match

2007-05-16 Thread Rob Desbois
[re-sending, forgot to include list :-|] If you're matching a string and not a pattern then it is far more efficient to use strpos: if (strpos($path, '/realtors') !== FALSE) { echo 'Success'; } rob On 5/16/07, Al [EMAIL PROTECTED] wrote: The container, as you called it, are delimiters

[PHP] Timezones

2007-05-15 Thread Rob Desbois
this imply that we might actually be fine to continue using the default installed DB for the foreseeable future? I'd appreciate any guidance on this - TIA. --rob

[PHP] Using timezones

2007-05-04 Thread Rob Desbois
timezone? Thanks! Rob __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email

Re: [PHP] DOMDocument::schemaValidate() - libxml_get_errors()

2007-04-06 Thread Rob Richards
short). This has been brought up before and wont be changing as it would break API/AB compatibility. There really is little you can do here. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Way to XML-parse data with f n=name /f tags?

2007-03-08 Thread Rob Gould
Sorry if this is a duplicate post, I'm new to the listserve and I'm not sure my first message made it through I've been trying to retro-fit sample code found at : http:// www.sitepoint.com/article/php-xml-parsing-rss-1-0 to parse XML coming from a server. I'm sooo close to getting

[PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Rob Gould
off-list. - Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Rob Gould
Ok, well at least I'm honing in on the problems now. I appears that my ISP is only running php 4.4.4. So back in the PHP 4-days, what was the preferred method of doing such things? - Rob On Mar 8, 2007, at 3:13 PM, Ben Ramsey wrote: On 3/8/07 2:59 PM, Rob Gould wrote: 1) Read XML

Re: [PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Rob Gould
in the outside world. - Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SimpleXML libxml options (XInclude)

2007-02-28 Thread Rob
($xml_file, 0, true); $dom = dom_import_simplexml($xml); $dom-ownerDocument-xinclude(); print_r($xml); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SimpleXML libxml options (XInclude)

2007-02-28 Thread Rob Richards
Ben Roberts wrote: Thanks Rob. That works. And it appears to work flawlessly if you subsequently convert it back to a SimpleXML object too: $xml = new SimpleXMLElement($xml_file, 0, true); $dom = dom_import_simplexml($xml); $dom-ownerDocument-xinclude(); $xml = simplexml_import_dom($dom

Re: [PHP] Re: SimpleXML libxml options (XInclude)

2007-02-28 Thread Rob Richards
, it is the smallest piece of code I could write to demonstrate the possibility. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOM Element default ID attribute

2007-02-22 Thread Rob Richards
elem key=peterThis is Peter/elem elem key=samThis is Sam/elem elem key=mikeThis is Mike/elem /doc EOXML; $dom = new DOMDocument(); $dom-loadXML($xml); if ($elem = $dom-getElementByID(sam)) { print $elem-textContent; } else { print Element not found; } Rob

[PHP] Re: Extending DOMNode

2007-02-15 Thread Rob Richards
('DOMText','MyDOMNode'); ... Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Extending DOMNode

2007-02-15 Thread Rob Richards
Eli wrote: Rob Richards wrote: Due to the internals of the DOM extension, you need to register the class types that are actually instantiated and not the underlying base DOMNode class. Unfortunately in your case this means you need to register all of those classes separately. $dom

[PHP] Sending secure mail

2007-02-04 Thread Rob
the connection so I can get to and rcpt to: line and beyond? Thanks, Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Rob Richards
is excluded from this statement) so not sure exactly what you are trying to do here or running into. Are you just trying to serialize a DOMDocument? root / is a perfectly well-formed document (though inclusion of xml declaration is *highly* recommended). Rob -- PHP General Mailing List (http

[PHP] Re: How to prevent DomDocument from adding a !DOCTYPE.

2007-01-17 Thread Rob Richards
would need to use the XML serialization routines, which would most likely change the structure of your document (it would be XHTML compliant now). Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Prevent XSS using DOM Extension and/or SimpleXML

2006-11-14 Thread Rob
); } } } } $root = $dom-documentElement; checkElement($root); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] DomDocument-schemaValidate() in PHP4

2006-11-02 Thread Rob Smith
PHP? Thanks for any advice Rob Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FTP - folders

2006-10-23 Thread Rob Kritzer
Is it possible to FTP a folder and all it's content? I can do a file at a time, but not a folder. Also there is times when I will not know the folder name, so I would like it to just upload everything it finds in the folder I set. Is this possilbe? Thanks

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer
pm, Rob Kritzer wrote: I have a script the use to work: $date = date(mdy); mkdir(Y:/Daily_DisplayAds/todays_ads-$date); But now I get this error: Warning: mkdir() [function.mkdir]: No such file or directory in C:\wamp\www\scripts\ad_finder\display_class.php on line 10 If I change Y to C

Re: [PHP] FTP - folders

2006-10-23 Thread Rob Kritzer
Yes Tedd, This is what I am having trouble with, I can see where you can upload each file, but all I really need it to do is take the contents of a folder and upload everything it finds in the directory. Rob On 10/23/06, tedd [EMAIL PROTECTED] wrote: At 8:42 PM +0100 10/23/06, Stut wrote

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer
For now I am on a PC XP Pro, wish they would give me back my Mac. On 10/23/06, Ed Lazor [EMAIL PROTECTED] wrote: Depends on your operating system. On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote: Yes, the directory on mapped drive Y does exist. I do think that it might have something

[PHP] Mapped Drive issue

2006-10-18 Thread Rob Kritzer
I have a script the use to work: $date = date(mdy); mkdir(Y:/Daily_DisplayAds/todays_ads-$date); But now I get this error: Warning: mkdir() [function.mkdir]: No such file or directory in C:\wamp\www\scripts\ad_finder\display_class.php on line 10 If I change Y to C it works, can anyone please

Re: [PHP] DOMDocument-saveXML()

2006-09-18 Thread Rob
of providing an indication of the encoding) It would be really nice if you could also specify a string value -- the name of the root node. Why? documentElement property works just fine and is much more flexible. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Rob
)...? Do you have your code somewhere? Another thing I realized that I failed to mention before is that using saveXML($element) will serialize the full element, but outputs it in UTF-8 encoding. Have you tried converting the output of that to the encoding of the original HTML page? Rob -- PHP

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Rob
Leonidas Safran wrote: Hello Rob, Do you have your code somewhere? Yes, I paste it below. There are two files, one for HTML output (which I make invisible with style declaration display:none; and the second file is a javascript function which is supposed to output the content... Try

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-15 Thread Rob
How are you getting that output? Remember most of the functionality - other than the saveXML(), saveHTML() functions - output using UTF-8 (which you would need to convert to what ever encoding you need). Rob Leonidas Safran wrote: Hello all, Again a question on the new DOM functions

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-15 Thread Rob
; charset=UTF-8/ If you add the content to a dom node, you do not change the encoding since the functions all work on UTF-8. The document to which the content is being added however, must be set to use the desired encoding. I am assuming you are doing what I previously explained though. Rob Leonidas

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob
[EMAIL PROTECTED] wrote: Satyam, I don't see any innerHTML or outerHTML in relation to PHP DOM. I'm familiar with them from a Javascript standpoint, but no references when it comes to PHP DOM. Regards, Mike Now that you have the element, why not just call: $doc-saveXML($node); Rob

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob Richards
[EMAIL PROTECTED] wrote: Rob, I wasn't aware that that would work. I mean I suppose it should, but basically this is what I'm doing: 1) Create a new DOMDocument 2) DOMDocument-loadHTML() 3) find the elements I want with getElementsByTag() then finding the one with the correct attributes

Re: [PHP] helping people...

2006-06-21 Thread Rob W.
(208.107.101.135):SA:0(-1.9/4.5):. Processed in 3.519899 secs Process 86212) Received: from host-135-101-107-208.midco.net (HELO rob) ([EMAIL PROTECTED]@208.107.101.135) by mail.fiberuplink.com with SMTP; 20 Jun 2006 23:46:52 - Message-ID: [EMAIL PROTECTED] From: Rob W. [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: [PHP] Still trying to figure this out...

2006-06-20 Thread Rob W.
solving this problem as I have been on it for 2 days now and this is the last bit of code for this program that is holding me up. Please read below for more information on what I am doing. - Original Message - From: Rob W. [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday

  1   2   3   4   >