This question already has answers here:
Make namespaces backwards compatible in PHP
(4 answers)
Closed 9 years ago.
I really would like to adopt namespaces into my workflow. As i understand it PHP 5.3.0+ supports this. Is there a way to replicate PHP namespace for older versions of PHP?
No there isn't, There's no such thing as forward compatibility.
Upgrading to a more recent version of PHP is your only sensible solution.
Related
This question already has answers here:
Where does phpinfo() get its info?
(5 answers)
Closed 2 years ago.
I just started with programing in PHP
And i have a problem:
I'm just experimenting and discovering the language. I tried compressing a string and display the output. I get an some zlib error. I am just wondering if there is a function that returns information about extensions?
You should use
phpinfo();
to display the PHP configuration.
This question already has answers here:
How to know which version of Symfony I have?
(13 answers)
Closed 8 years ago.
Can I somehow detect inside the code which version of symfony is currently used? I have a bundle which uses a symfony function that has changed in version 2.4 so I need to detect on which version I am running, so that the function which is adequate for the used symfony version will be called
The symfony version constant will help you.
You find it in Symfony/Component/HttpKernel/Kernel - constant VERSION.
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Kernel.php#L62
This question already has answers here:
How to install php_id3 on wamp?
(4 answers)
Closed 9 years ago.
using this code:
$mp3_tags= id3_get_tag($mp3_file);
printr($mp3_tags);
but there is an error of calling undefined function did a search and found out that i had to enable the ID3 extension for PHP and im stuck doing it on windows.
The manual shows how to install and this extension (and all other standard ones too).
Unfortunately, it is not available as a compiled DLL on Windows. You can compile it if you wish.
This question already has answers here:
Best solution to protect PHP code without encryption
(11 answers)
Can you "compile" PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?
(14 answers)
Closed 9 years ago.
Not sure if this has been discussed before.
I was looking for a solution that can protect the PHP code.
So even if I put the code on my client's server if they decide to put another developer on it or try to resell my code they should not be able to do so.
Is that even remotely possible?
The .exe versions of desktop application thingy is something I am looking for, but for PHP.
There are options to "compile" code like phpcompiler also read another thread about this on stackoverflow
This question already has answers here:
How to change include directory of Zend Framework
(5 answers)
Closed 9 years ago.
I previously posted this question (Reading Google docs spreadsheet) and got a good answer that instructed me to use the Zend Framework. I've never used it before, and I'm fairly certain I'm setting it up wrong. It says to "Simply download the framework,
extract it to the folder you would like to keep it in, and add the library directory
to your PHP include_path."
I'm doing it like this:
<?php
ini_set("include_path", ".:/PortableApps/xampp/htdocs/zend/library");
?>
...which is probably most certaintly wrong. Can someone help me?
Look at this question. It will answer yours.