Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-26-2010, 08:29 AM Directory Control
Average Talker

Posts: 24
Trades: 0
All,

I have a script I wrote that works off a local machine directory, scans it for .html files and uploads those to the server. This works fine in test on my machine with WAMP installed and running localhost, but the activities are for reading/posting the files into my WordPress website and when I move the script to the host, the directory listings are now always the directory on the host machine and I have not figured out how to transfer the directory control back to the local machine.

I captured the local directory setting into a 'tools' table I installed into the host MySQL DB. I have searched online for a good example of how to do this, both in the PHP libraries and the JavaScript libraries and have not found a good solution yet.

I'm sure there is an example out there, but sure I just do not have the right keywords to find it, so would appreciate a link from anyone who has knowledge on where such a resource might be.

Thanks!

OMR
OldManRiver is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-27-2010, 09:33 AM Re: Directory Control
reli4nt's Avatar
Extreme Talker

Posts: 168
Location: New York
Trades: 0
I don't think that it is possible to scan a client computer with php and upload the files found if that is what you are trying.
__________________

Please login or register to view this content. Registration is FREE

Designing the world we live in.
Defining the terms we live by.
reli4nt is offline
Reply With Quote
View Public Profile Visit reli4nt's homepage!
 
Old 10-28-2010, 08:30 AM Semi Solution
Average Talker

Posts: 24
Trades: 0
All,

I solved my problem, more or less. Since the ISP would not let me use an IP address or URL to access the MySQL DB and since trying to resolve that by putting the code on the ISP hosted site, would not let me get local drive control, I found the XML-RPC tool set, downloaded the 'IXR_Library.php' from:

http://scripts.incutio.com/xmlrpc/

and wrote code to run locally and get my files to the web through XML.

I got the sample with simple code to work, then got it to work with uploading my .html file as a page to WordPress but now getting an error.

But I quess my forum rules I need to open a separate thread on that, so I quess I close this one.

Thanks!
OldManRiver is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Directory Control
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54581 seconds with 12 queries