Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Multiple forms

phpMyEdit General     Multiple forms
Post new topic   Reply to topic    
 
maz     Joined: 14 Feb 2004   Posts: 4  
Post Posted: 2004-02-14 01:01
Back to top  Reply with quote     

Program loads and works perfectly. But I cant see any instructions for creating multiple forms ? Do they all go in same folder or can they be moved elsewhere?
I created the first form and it works perfectly.
Then created a second and when accessing it I get the error:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./phpMyEdit.class.php owned by uid 537 in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/user.php on line 320

Warning: main(phpMyEdit.class.php): failed to open stream: Success in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/user.php on line 320

Fatal error: main(): Failed opening required 'phpMyEdit.class.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/user.php on line 320

Any help would be appreciated. I just need to know where to put multiple forms.

Many Thanks

Maz

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-02-14 17:27
Back to top  Reply with quote     

having two form on the same page is currently impossible (see bug report on variable prefixing)

having two configuration files for two separate forms is possible. if one of them is running, just make sure that the second one is the same (except for name) (same owner, group, permission, directory). see 'instalation' forum for similar problems.

 
maz     Joined: 14 Feb 2004   Posts: 4  
Post Posted: 2004-02-15 13:01
Back to top  Reply with quote     

Thanks for your reply Michael. Sorry, I did not mean two forms on the same page. I meant two pages each page having its own seperate form. I want to add many form pages. Do I need a complete installation of phpMyEdit for each page I create or can I create multiple pages and access them all from the same phpMyedit folder?

But now the problem seems worse. I deleted the phpMyEdit installation from server. Uploaded a fresh copy of phpMyEdit. Created a new form page 'test1ad.php' . Went to access it and got:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./phpMyEdit.class.php owned by uid 537 in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/testad1.php on line 368

Warning: main(phpMyEdit.class.php): failed to open stream: Success in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/testad1.php on line 368

Fatal error: main(): Failed opening required 'phpMyEdit.class.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/testad1.php on line 368

Checked permissions they are ok. (cant change permissions on the file test1ad.php I created).

Why cant I reinstall from fressh?? And the original problem - why cant I create and ACCESS more than one page?


Regards

Maz

 
michal     Joined: 17 Jun 2003   Posts: 537   Location: Slovakia
Post Posted: 2004-02-15 15:05
Back to top  Reply with quote     

http://opensource.platon.sk/forum/projects/viewtopic.php?t=174

make sure that the calling script(s) and pme class are of the same owner. this can be achieved via chown(8) or by creating calling script with pme-setup.php

 
maz     Joined: 14 Feb 2004   Posts: 4  
Post Posted: 2004-02-15 15:17
Back to top  Reply with quote     

Problem sorted. When a php page is created by phpMyEdit on the server, sometimes it cannot be accessed. It's 'ownership' is linked to the server (uid) and hence the error:

[quote] Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./phpMyEdit.class.php owned by uid 537 in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/testad1.php on line 368

Warning: main(phpMyEdit.class.php): failed to open stream: Success in /home/virtual/site27/fst/var/www/html/phpMyEdit-5.3/testad1.php on line 368
Quote:


Solution: Delete the file created on the server.
Then use the 'code' created by phpMyEdit. Copy this code to a new php page in say dreamweaver, save it and upload it. Then access this new page and everything should work.

Hope this helps anyone else with same problem.
[/code]

 
hbernard     Joined: 23 Mar 2003   Posts: 159   Location: FRANCE
Post Posted: 2004-02-22 22:29
Back to top  Reply with quote     

maz wrote:
Solution: Delete the file created on the server.
Then use the 'code' created by phpMyEdit. Copy this code to a new php page in say dreamweaver, save it and upload it. Then access this new page and everything should work.

Or simply use 'chown' to change the owner of the file to whatever is running your web server.

The access rights and ownership on the parent repertory are certainly not well set.

 
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