Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4198 > unrolled thread
| Started by | Dianakc <dianakac@gmail.com> |
|---|---|
| First post | 2011-12-30 07:29 -0800 |
| Last post | 2011-12-30 11:07 -0500 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.php
Help with script that retrieve remote files Dianakc <dianakac@gmail.com> - 2011-12-30 07:29 -0800
Re: Help with script that retrieve remote files Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-30 10:47 -0500
Re: Help with script that retrieve remote files richard <member@newsguy.com> - 2011-12-30 11:07 -0500
| From | Dianakc <dianakac@gmail.com> |
|---|---|
| Date | 2011-12-30 07:29 -0800 |
| Subject | Help with script that retrieve remote files |
| Message-ID | <1c9271c2-6cb4-4603-a6ed-f36b8f8d429f@32g2000yqp.googlegroups.com> |
Hello, I know very little about programming, even so I was able to use PHP Simple DOM for open a file and outputs a new xml file. I'm trying to create a WordPress xml import script for a specific local service that doesn't offer any content export. The script must open all remote files (after some service config) and output a new xml file for download. I already have the working script but need help on: * Open all remote .htm files with the prefix 'arch' Right now the script works greatly on parsing a single static/remote local htm file and output a new xml file, but can't figure out how to open prefix-based files. Thanks for any help
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2011-12-30 10:47 -0500 |
| Message-ID | <jdkmep$vu0$1@dont-email.me> |
| In reply to | #4198 |
On 12/30/2011 10:29 AM, Dianakc wrote: > Hello, > > I know very little about programming, even so I was able to use PHP > Simple DOM for open a file and outputs a new xml file. I'm trying to > create a WordPress xml import script for a specific local service that > doesn't offer any content export. The script must open all remote > files (after some service config) and output a new xml file for > download. > > I already have the working script but need help on: > > * Open all remote .htm files with the prefix 'arch' > > Right now the script works greatly on parsing a single static/remote > local htm file and output a new xml file, but can't figure out how to > open prefix-based files. > > Thanks for any help > > You will need a way to list the files, i.e. with (s)ftp. HTTP protocol has no provisions for wildcards in URI names. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | richard <member@newsguy.com> |
|---|---|
| Date | 2011-12-30 11:07 -0500 |
| Message-ID | <1n98o136t0kdc.1mzpjh95hal2u.dlg@40tude.net> |
| In reply to | #4198 |
On Fri, 30 Dec 2011 07:29:14 -0800 (PST), Dianakc wrote: > Hello, > > I know very little about programming, even so I was able to use PHP > Simple DOM for open a file and outputs a new xml file. I'm trying to > create a WordPress xml import script for a specific local service that > doesn't offer any content export. The script must open all remote > files (after some service config) and output a new xml file for > download. > > I already have the working script but need help on: > > * Open all remote .htm files with the prefix 'arch' > > Right now the script works greatly on parsing a single static/remote > local htm file and output a new xml file, but can't figure out how to > open prefix-based files. > > Thanks for any help I trust these files are all on YOUR domain. As there are legal issues for accessing files you are not entitled to. One way might be to read the file directory, parse the filename and see if it contains "arch". e.g. thisdomain.com/folder/folder/archive.html parse to "archive.html". Does filename contain "arch"? if yes then open.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web