Does not work with the name Classes

Recommend this page to a friend!

      PHP Ghost Crypt  >  All threads  >  Does not work with the name Classes  >  (Un) Subscribe thread alerts  
Subject:Does not work with the name Classes
Summary:Does not work with the name Classes
Messages:12
Author:jose carlos
Date:2015-11-13 18:54:33
 
  1 - 10   11 - 12  

  1. Does not work with the name Classes   Reply   Report abuse  
Picture of jose carlos jose carlos - 2015-11-13 18:54:33
Hello,

First say you've done a great job,

But I have a problem, when you encrypt php classes, she does not recognize them.

What happen?

  2. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of Nick Daniels Nick Daniels - 2015-11-13 19:15:24 - In reply to message 1 from jose carlos
Hello Jose,

How do you mean, could you give an example of a Class, because I've tested with the following below and it seems to work well for me.


<?php

new Test;

class Test
{
public function __construct()
{
echo "Test";
}
}

  3. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of jose carlos jose carlos - 2015-11-13 19:56:19 - In reply to message 2 from Nick Daniels
Hello Nick,

This is my Class:

codepaste.net/7nifqv

This is the error when called class from another file ;

---Fatal error: Class 'Video_Pro' not found in /video-pro.php on line 70-----

by the way, you can download the old version of "Ghost Php Crypt" classes?

I want to prove to the previous version if it works.



  4. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of Nick Daniels Nick Daniels - 2015-11-13 20:16:42 - In reply to message 3 from jose carlos
Jose are you accounting for the file names? As you may have noticed they're filename".enc.php".

Have you correctly changed the includes/requires, etc or either renamed the files by removing filename.enc.php for filename.php

I will try best to see if I can do the functionality you speak of, tho I think you may have missed something.

  5. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of Nick Daniels Nick Daniels - 2015-11-13 20:21:42 - In reply to message 3 from jose carlos
Also, what is in the file in the error at the line number shown?

So in video-pro.php at line 70.

---Fatal error: Class 'Video_Pro' not found in /video-pro.php on line 70-----

  6. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of Nick Daniels Nick Daniels - 2015-11-13 20:23:35 - In reply to message 5 from Nick Daniels
Keep posting too soon,

Also let me know about the requires or includes. Just wondering if it's a problem in general with the code you have, somewhere something simple will pop out.

  7. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of jose carlos jose carlos - 2015-11-13 20:32:32 - In reply to message 6 from Nick Daniels
I just edit the library, so I keep it without .enc.

In the line 70;
function run_video_pro () {

--->line70--> $Video_Pro plugin = new ();
$plugin-> run ();

}
run_video_pro ();

  8. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of jose carlos jose carlos - 2015-11-13 20:36:36 - In reply to message 7 from jose carlos
Sorry:
$plugin = new Video_Pro();

  9. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of Nick Daniels Nick Daniels - 2015-11-13 20:39:41 - In reply to message 7 from jose carlos
Are you sure this Line 70 is correct?

Line 70:
$Video_Pro plugin = new ();

Shouldn't it not be

Line 70:
$plugin = new Video_Pro();


I'm not sure if it's just me, but the 2nd seems to be how it should be I'd hope?

  10. Re: Does not work with the name Classes   Reply   Report abuse  
Picture of Nick Daniels Nick Daniels - 2015-11-13 20:40:35 - In reply to message 8 from jose carlos
Is it still not working that way?

or was that not the problem?

 
  1 - 10   11 - 12  

For more information send a message to info at phpclasses dot org.