I have been having some issues, i am using THIS oauth library and at first I thought it had an error on it since i could get my tokens correctly but when consuming the tokens i got a 401 error, after some experimentation i found out that it has…
I am trying to deploy a simple PHP website to the Swisscom Application Cloud, based on cloud foundry.
My website is working fine locally, served by Apache.
I have followed the tutorial, but I am not clear on some aspects.
In the tutorial, the way…
Everything started when I was trying to improve the loading times of thumbnail pictures in a gallery of sort i have. the paths of all images come from a JSON file/string/response along with several details about them, in order to build the UI.
My…
I am using built in php webserver and here is code i have written in my php file but not working.
exec("php -S localhost:8000 -t /home/test/");
Is there anything wrong?
Thanks
I need to redirect my php built in server log file into a file.
i try :
php -S adress:port -t . > logs.txt
the problem is it's just putting inside the launch text.
and logs.txt 2>&1
but it's make my page php look like my error
PHP…
I using Zend Framework 2 and PHP built-in server.
Zend documentation says:
Optionally, when using Apache, you can use the APPLICATION_ENV setting
in your VirtualHost to let PHP output all its errors to the browser.
This can be useful during…
With the default config, PHP's built-in server treats .phtml files as static resources. Is there any way to make it process them as regular .php scripts?
I have been trying to get the php built-in webserver to read sub directories. My file structure is website --> html, css, php. I set the website folder as the root using php -S localhost:8000. The php built-in webserver cannot read past this…
I'm using the php built-in server (v 7.3.6).
Everything work perfectly. But when I add gd extension on the php.ini file (by removing the ";") nothing answer.
Commands like :
"php -S localhost:8000" and "php -v"
no longer answer.
Can I add…
I am generating a unique token and saving it in a session variable on every request (in a typical CSRF protection fashion). Token is refreshed after checking it for validation with the POSTED token value.
Here is my code (index.php):
[edited on 19th june] The question is not regarding the content of the logs, but why logs doesn't not appear in my symfony profiler
My symfony profiler doesn't display any error log but my php built-in-server seems to catch them and display them in…
I have a PHP application with Doctrine 2 ORM. I call getter on an entity object. It works, but PHP shows fatal error saying I am calling a method on null, but is_null function called with the same object as parameter (one line above the error)…
I have scripts that use the $_SERVER["LOGON_USER"] which is obtained on my servers through IIS authentication settings. I want this same variable to contain my domain\username when running locally, or at least to have a way to set it when I fire up…