PHP Classes

Using

Recommend this page to a friend!

      PHP Backwards Compatibility Library  >  All threads  >  Using  >  (Un) Subscribe thread alerts  
Subject:Using
Summary:how to use
Messages:7
Author:Terry Woody
Date:2023-07-07 09:16:07
 

  1. Using   Reply   Report abuse  
Picture of Terry Woody Terry Woody - 2023-07-07 09:16:07
Do you have example of usage?

Where and how to include in existing code?

Thanks.

  2. Re: Using   Reply   Report abuse  
Picture of ASCOOS CMS ASCOOS CMS - 2023-07-08 07:51:07 - In reply to message 1 from Terry Woody
I have uploaded some example files. they are in the test folder

  3. Re: Using   Reply   Report abuse  
Picture of ASCOOS CMS ASCOOS CMS - 2023-07-08 07:56:35 - In reply to message 1 from Terry Woody
All examples were tested in Ascoos Web Studio on PHP 5.6 and run fine.

  4. Re: Using   Reply   Report abuse  
Picture of ASCOOS CMS ASCOOS CMS - 2023-07-10 12:45:00 - In reply to message 1 from Terry Woody
I hope the examples I included in the new version helped you

  5. Re: Using   Reply   Report abuse  
Picture of Terry Woody Terry Woody - 2023-07-13 20:00:39 - In reply to message 4 from ASCOOS CMS
Sorry for late / lack of reply. School out for summer so family vacation time:)

I will take a look at new files.

Thank you much!

  6. Re: Using   Reply   Report abuse  
Picture of Terry Woody Terry Woody - 2023-07-13 20:22:53 - In reply to message 4 from ASCOOS CMS
Maybe I totally misunderstood. Is this package only for ALEXSOFT cms?

Or can it be used with any PHP files by setting this to false:

define('ALEXSOFT_RUN_CMS', false);

  7. Re: Using   Reply   Report abuse  
Picture of ASCOOS CMS ASCOOS CMS - 2023-07-14 09:00:37 - In reply to message 6 from Terry Woody
If you leave it as "true", you can embed it in any project you want, as long as you include this statement.

If you change it to false, you'll need to go through each file and put [ // ] in front of each below statement to make it a comment:


// Run on ASCOOS CMS only. Marked as comment if you want run this script with other cms.
//defined ("ALEXSOFT_RUN_CMS") or die("Prohibition of Access.");


That's why it's better to have "true".

In the next version I will remove this control constant.