PHP PEAR Validate Package - Fatal error: Class 'Validate' not found -
This is what I am getting the error:
Fatal error: class 'valid' No C: \ xampp \ htdocs \ end_project \ validate.php found on line 5
And here is my PHP code:
I do not know what I'm missing. I have installed the option for the installed package, and the path in the peer is also correct. Validate_CA is not giving me any errors, but it is not properly valid either.
PHP parses in sequence, priority means that when a relative path ,,,, Or if PHP is passed then the first directory will start appearing. If the file is found then it is included if not, then it will continue and repeat the process.
The routes included in the following:
include_path = ".: / Php / include: / php / pear"
and The following PHP scripts:
& lt ;? Php is required ('MyFile.php'); PHP will look for MyFile.php
in the following order: -
./ MyFile.php
(Current directory) -
/php/includes/MyFile.php
-
/php/pear/MyFile.php
< / Li>
You can not load valid.php
, the reason is that you already have validate.php
There is a file named (Remember, the paths on Windows are not case-sensors but are on Unix) in your current directory. Therefore, PHP includes your file instead of a file related to PAR :: valid
, because the peer is found before the include_path
preference order.
Just do your file more than validate.php
to fix your problem. If it still does not work, try to resonate the return value to make sure it's actually set correctly.
Comments
Post a Comment