Index
» Projects
» phpMyEdit
» Forum
» Move File to Sub Directory |
|
guardian46
Joined: 31 May 2005
Posts: 34
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)
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
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)
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
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
|
|
|
|