Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, March 29, 2024
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Move File to Sub Directory

phpMyEdit Configuration     Move File to Sub Directory
Post new topic   Reply to topic    
 
guardian46     Joined: 31 May 2005   Posts: 34  
Post Posted: 2017-04-01 19:27
Back to top  Reply with quote     

I want to move some of the phpMyEditSetup created files (*.php) to a sub directory below my web server's root. When I do this the ADD, CHANGE, VIEW, DELETE, etc., stops working. The error message is 'file not found' and indicates it is still looking in the ./ directory for the file.

Anyone know how to fix this??

Thanks.

 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2017-04-01 19:55
Back to top  Reply with quote     

Move all files and directories (not just the scripts created by the calling program).

 
guardian46     Joined: 31 May 2005   Posts: 34  
Post Posted: 2017-04-01 20:55
Back to top  Reply with quote     

doug wrote:
Move all files and directories (not just the scripts created by the calling program).


Hi Doug,
Thanks for the quick reply.

I did make a copy of my pme dir into the sub dir, but still have the same problem.
My root directory:
    index.html
    authors.php (pme generated script file)
    Code:
    require_once 'pme/phpMyEdit.class.php';
    new phpMyEdit($opts);
    pme/phpMyEdit.class.php
    pme/(all the included dirs - doc, ext, html, images, lang)


My sub dir:

    stories/featured/storylist.php (generated script file)
    Code:
    require_once 'pme/phpMyEdit.class.php';
    new phpMyEdit($opts);
    stories/featured/pme/phpMyEdit.class.php
    stories/featured/pme/(all the included dirs - doc, ext, html, images, lang)


Works in the root directory, but in the sub directory the table is generated but the functions (add, change, delete, etc.) still tries to find the file in the root (./).
I did try this in the sub dir file:
Code:
require_once 'stories/featured/pme/phpMyEdit.class.php';
new phpMyEdit($opts);

(used the stories/featured/pme/phpMyEditSetup.php)

Note: my html header includes this (its a private server):
Code:
<base href="http://192.168.5.4">


 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2017-04-01 23:38
Back to top  Reply with quote     

I don't recall anyone else ever having this issue. Check the server (Apache?) error log, PHP error log file, etc.

I'd start over. Make a new directory, extract files to that directory, make a new calling script, see what happens.

 
guardian46     Joined: 31 May 2005   Posts: 34  
Post Posted: 2017-04-01 23:56
Back to top  Reply with quote     

Do you think the problem may be because I have two PME directories? (one a root level and a second one at the sub level dir)

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy