Hello to you all,
Just purchased a copy of AppGini version 5.7.2. Created new project. Put it online. Works okay.
Brought many changes via AppGini. Used PHP code generator button. Uploaded via FTP. Result: no change.
Then I emptied content of target directory on my computer. Used Generator button. Saved all files to empty directory.
Emptied target directory on server (except config.php). Uploaded generated files and folders.
Clear history, cache, everything on Google Chrome.
Went to the website and ... same thing. It is as if the code generator was not working.
Tried another browser (Firefox), same thing.
Any idea on what is happening? Freaking behaviour I must say.
How can I check if the generated code reflects the changes I made with AppGini?
I changed "Table group" and width of first table on home page (preferences). No changes on website.
Regards,
rp
PHP code generator - working or not?
Re: PHP code generator - working or not?
Hi,
can you try to add theafter
in the index.php file
and see if it helps.
can you try to add the
Code: Select all
apc_clear_cache();
Code: Select all
error_reporting(E_ERROR | E_WARNING | E_PARSE);
and see if it helps.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: PHP code generator - working or not?
Hello,
Thank you for you suggestion.
I just did it. Then I cleared the history in the browser. Result the same. No change reflected on the website.
Any other thoughts.
Regards,
rp
Thank you for you suggestion.
I just did it. Then I cleared the history in the browser. Result the same. No change reflected on the website.
Any other thoughts.
Regards,
rp
Re: PHP code generator - working or not?
Hi,
can you restart you Web-Server?
Also can you add the following to the index.php, like in my last post
and check if you see the word test on the left side below the home icon.
can you restart you Web-Server?
Also can you add the following to the index.php, like in my last post
Code: Select all
echo ("<br><br><br><br>test");
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: PHP code generator - working or not?
Hello,
I added echo ("<br><br><br><br>TEST"); to the end of the index.php file as you can see below.
Result: The word TEST is not displayed on the screen.
What is wrong here?
Regards,
rp
=====================================
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
apc_clear_cache();
$currDir = dirname(__FILE__);
include("{$currDir}/defaultLang.php");
include("{$currDir}/language.php");
include("{$currDir}/lib.php");
$x = new DataList;
$x->TableTitle = $Translation['homepage'];
$tablesPerRow = 2;
$arrTables = getTableList();
// according to provided GET parameters, either log out, show login form (possibly with a failed login message), or show homepage
if(isset($_GET['signOut'])){
logOutUser();
redirect("index.php?signIn=1");
}elseif(isset($_GET['loginFailed']) || isset($_GET['signIn'])){
if(!headers_sent() && isset($_GET['loginFailed'])) header('HTTP/1.0 403 Forbidden');
include("{$currDir}/login.php");
}else{
include("{$currDir}/home.php");
}
echo ("<br><br><br><br>TEST");
==========================================
I added echo ("<br><br><br><br>TEST"); to the end of the index.php file as you can see below.
Result: The word TEST is not displayed on the screen.
What is wrong here?
Regards,
rp
=====================================
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
apc_clear_cache();
$currDir = dirname(__FILE__);
include("{$currDir}/defaultLang.php");
include("{$currDir}/language.php");
include("{$currDir}/lib.php");
$x = new DataList;
$x->TableTitle = $Translation['homepage'];
$tablesPerRow = 2;
$arrTables = getTableList();
// according to provided GET parameters, either log out, show login form (possibly with a failed login message), or show homepage
if(isset($_GET['signOut'])){
logOutUser();
redirect("index.php?signIn=1");
}elseif(isset($_GET['loginFailed']) || isset($_GET['signIn'])){
if(!headers_sent() && isset($_GET['loginFailed'])) header('HTTP/1.0 403 Forbidden');
include("{$currDir}/login.php");
}else{
include("{$currDir}/home.php");
}
echo ("<br><br><br><br>TEST");
==========================================
Re: PHP code generator - working or not?
Look, I finally quit on this thing. I will start anew.
Thank you.
Thank you.
Re: PHP code generator - working or not?
Hi,
yep, you should have added the line at the top of the script (after the apc_clear_cache(); statement.
Hope your new start will bring the results you are looking for.
The code generator itself is working fine. I'm using it myself.
yep, you should have added the line at the top of the script (after the apc_clear_cache(); statement.
Hope your new start will bring the results you are looking for.
The code generator itself is working fine. I'm using it myself.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.