php-5.4 Questions
10
Solved
How do we set a custom port for test server?
Normally when we do
php artisan serve
the folder gets served as :
localhost:8000
How do could we access one folder as:
localhost:8080
I want ...
2
Solved
At work, I've inherited a web application that has a file upload process. Part of this process occasionally (once every two weeks or so) triggers the following error:
PHP Warning: mkdir(): File ex...
3
Does PHP's built in server not make use of .htaccess? Makes sense, I suppose, as it isn't relying upon Apache(?). Anyway, is it possible to tell the server to make use of these files - can it handl...
7
Solved
How to fix the session_register() deprecated problem in PHP 5.3
Stratocumulus asked 10/9, 2010 at 6:23
5
Solved
There are lots of questions and answers around the subject of valid php syntax from var outputs, what I am looking for is a quick and clean way of getting the output of var_export to use valid php5...
3
I installed sphinx-2.2.11 on my CentOS 7
yum install -y postgresql-libs unixODBC wget
http://sphinxsearch.com/files/sphinx-2.2.11-1.rhel7.x86_64.rpm yum
install sphinx-2.2.11-1.rhel7.x86_64.rpm
...
3
Solved
I've written a PHP CLI script that executes on a Continuous Integration environment. One of the things it does is it runs Protractor tests.
My plan was to get the built-in PHP 5.4's built-in web s...
Rhinestone asked 15/5, 2015 at 19:27
7
Solved
How to find 2nd and 4th Saturday of the month.
I wrote these lines:-
echo "may 2nd sat ".date('d', strtotime('may 2013 second saturday'));
echo '<br/>may 4th sat '.date('d', strtotime('may ...
3
Solved
I have come across a situation where I need XAMPP with PHP 5.4 version. I will install it on windows server 2003.
May I know the repository where I can find all the older versions of xampp f...
11
Solved
I'm having problem with UTF-8 encoding while posting form data as "multipart/form-data", without multipart/form-data everything works well. But since I have to upload files on same post, I need to ...
Motteo asked 11/6, 2013 at 1:59
2
Solved
In PHP 5.4, what is the difference between using E_STRICT and E_ALL ?
Are both the same?
1
Solved
I have this code:
$tierHosts['host'] = isset($host['name']) ? $host['name'] : $host;
It's working fine in PHP 5.5, but in PHP 5.3 the condition returns true while $host contains a string like pj...
2
Solved
I've got an XML feed I've created using XMLWriter. It works flawlessly in dev on a PHP 5.6 vagrant box. On the live server, running PHP 5.4 the feed fails to render with a message:
This page conta...
8
As per title, I created a very simple test phar. I'd like to test it with the built-in webserver(PHP 5.4) but it seems impossible.
php -S localhost:80 /path/to/myphar.php
Result: blank page (in ...
4
Solved
Is there any way to bind $this to a closure that is passed as a parameter?
I read and reread everything I could find in manual or over the internet, but no one mentions this behaviour, except this ...
3
Solved
Is there a way to clean/reset the cached files using Opcache with PHP5.4 or lower?
Here is the opcache_reset() function which just seems to work with PHP5.5
A workaround was to reboot...
Edit: I ...
Unship asked 18/7, 2013 at 6:59
1
Solved
echo crypt('test', "$2a$07$"); produces a long hash in PHP version 5.4.16, but it produces the "failure string" *0 in 5.6.4.
Reading the PHP docs on crypt(), I'm still not quite clear why, though ...
1
Solved
I am trying to send email using php. The mail is returning true. But I am receiving the email. So I am guessing that maybe there is some problem with the server. Is there any tutorial explain...
1
Solved
A simple question motivated by a curiosity, with probably a complex answer: Is it possible to emulate the new PHP 5.5 imagecrop() in earlier versions, like 5.4, by combining other GD functions?
Aw...
1
Solved
class A declared at namespace1.
namesapce namesapce1;
class A
{
public static function fun1()
{
}
}
I want to use fun1() inside class B:
namespace namesapce2;
use ???? as fun1
class B
{
pu...
Probative asked 2/11, 2014 at 13:11
3
How do you use custom DQL functions in partials to hydrate query result.
Looking for a way to use DQL functions in createQuery or any other doctrine way (nativeSql, QueryBuilder) its not necessary...
Grafton asked 17/7, 2014 at 9:40
2
Solved
Simple question but can't seem to find the answer.
If I have a php class, is it possible to register an exception handler for the whole class?
The reason I want to do this is that my class uses o...
2
I'm facing a really strange issue with Zend Frameworks flashMessenger and can't find out what's the cause of the problem, nor how to solve it.
When a requested action takes very long, the flashMes...
Shala asked 28/3, 2014 at 13:37
3
Solved
I use this to check if an object has properties,
function objectHasProperty($input){
return (is_object($input) && (count(get_object_vars($input)) > 0)) ? true : false;
}
But then I ...
1
I am using xampp 1.8.2 on windows xp and bcompiler dll is not present in the ext directory. I installed older xampp(1.7.1) on windows XP and bcompiler dll was included in the ext directory. where c...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.