Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Multiple forms

phpMyEdit General     Multiple forms
Odoslať novú tému   Odpovedať na tému    
 
maz     Založený: 14.02.2004   Príspevky: 4  
Príspevok Zaslal: 2004-02-14 01:01
Návrat hore  Odpovedať s citátom     

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     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-02-14 17:27
Návrat hore  Odpovedať s citátom     

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     Založený: 14.02.2004   Príspevky: 4  
Príspevok Zaslal: 2004-02-15 13:01
Návrat hore  Odpovedať s citátom     

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     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2004-02-15 15:05
Návrat hore  Odpovedať s citátom     

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     Založený: 14.02.2004   Príspevky: 4  
Príspevok Zaslal: 2004-02-15 15:17
Návrat hore  Odpovedať s citátom     

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
Citácia:


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     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-02-22 22:29
Návrat hore  Odpovedať s citátom     

maz Napísal:
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.

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov