大约有 38,000 项符合查询结果(耗时:0.0195秒) [XML]
Get the current script file name
If I have PHP script, how can I get the filename from inside that script?
16 Answers
1...
How to get body of a POST in php?
I submit as POST to a php page the following:
8 Answers
8
...
How to find the php.ini file used by the command line?
I need to enable pdo_mysql in my EasyPhp environment, so I went to php.ini file and uncommented the following line:
14 Answ...
PHP json_encode encoding numbers as strings
I am having one problem with the PHP json_encode function. It encodes numbers as strings, e.g.
17 Answers
...
What is phtml, and when should I use a .phtml extension rather than .php?
I'm wondering what the difference between .phtml and .php files is, and when to use one over the other.
6 Answers
...
PHP Get name of current directory
I have a php page inside a folder on my website.
7 Answers
7
...
Parsing a string into a boolean value in PHP
Today I was playing with PHP, and I discovered that the string values "true" and "false" are not correctly parsed to boolean in a condition, for example considering the following function:
...
PHP Function Comments
Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is unknown to me:
4 ...
nginx showing blank PHP pages
I have setup an nginx server with php5-fpm. When I try to load the site I get a blank page with no errors. Html pages are served fine but not php. I tried turning on display_errors in php.ini but no luck. php5-fpm.log is not producing any errors and neither is nginx.
...
Disabling Strict Standards in PHP 5.4
I'm currently running a site on php 5.4, prior to this I was running my site on 5.3.8. Unfortunately, php 5.4 combines E_ALL and E_STRICT , which means that my previous setting for error_reporting does not work now. My previous value was E_ALL & ~E_NOTICE & ~E_STRICT Should I just ena...
