recentpopularlog in

kme : php   394

« earlier  
Automatic App Deployment with "git push" - Benjamin Gleitzman's Blog
When deploying pet projects on remote servers, I dislike the extra step of logging into the remote machine to execute a git pull (and perhaps a server reload) every time I push new code. Sure there’s Jenkins and all sorts of bazooka-like solutions, but this is a knife fight. Poking around an old PHP repo, I found a nifty line of code that will update your app via a URL endpoint.
<code class="language-bash"><?php `git pull`;</code>
Drop that into secret-update-url.php and now all you have to do is visit http://mysite.com/secret-update-url to get the latest version of your code on the site. Going a step further, you can set up a webhook to have Github hit the URL for you.
webdevel  git  php  deployment  automation  python  flask 
9 weeks ago by kme
Users - max file size problem
It fits into 32 bits. If 10G is crammed into 32 bits (unsigned), it ends up as 2G

Viele Grüsse,
-Marcel Waldvogel
(kurz&bündig da mobil)

Am 11.12.2012 um 14:35 schrieb Ivan Polonevich <[hidden email]>:

> How can it help me? o_O
>
> On 11.12.12, 14:26, Marcel Waldvogel wrote:
>> Did you try setting the limit to 3.9G instead?
>>
>> Viele Grüsse,
>> -Marcel Waldvogel
>> (kurz&bündig da mobil)
webmaster  php  owncloud  php.ini  fileuploads  largefiles  troubleshooting  maybesolution 
november 2019 by kme
PHP large file uploads - Hacker's ramblings
As found in the net max_input_time and max_execution_time have nothing to do with the network transfer. Both of those limits affect only server's processing after the bytes are transferred.
webmaster  errormessage  fileupload  bigfiles  php  php.ini  tipsandtricks  maybesolution 
november 2019 by kme
How to Upload Large Files in PHP — SitePoint
<code># in your .htaccess
php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
php_value max_execution_time 300</code>

<code class="language-php"># in your PHP application
ini_set('upload_max_filesize', '10M');
ini_set('post_max_size', '10M');
ini_set('max_input_time', 300);
ini_set('max_execution_time', 300);</code>
php  webmaster  php.ini  fileuploads  bigfiles  reference  tipsandtricks 
november 2019 by kme
kayex/http-codes - Packagist
Small PHP library for easily accessing HTTP Status Codes.
php  library  http  statuscode  webdevel 
may 2019 by kme
GitHub - krowinski/http-status-codes: PHP List of HTTP status codes, messages and description for them.
PHP List of HTTP status codes, messages and description for them. - krowinski/http-status-codes
php  http  webdevel  statuscodes  library 
may 2019 by kme
Installation Problems · Issue #716 · klaussilveira/gitlist | https://github.com/
Hi,
I think that this problem is related to apache virtual host configuration.
Try to find in your apache virtual host configuration something like:
<code style="lang-apache"><Directory ...> AllowOverride None </Directory></code>
Change it to
<code style="lang-apache"><Directory ...> AllowOverride All </Directory></code>
gitlist  php  apache  errormessage  solution 
february 2019 by kme
certificate - How do I solve ldap_start_tls() "Unable to start TLS: Connect error" in PHP? - Stack Overflow | https://stackoverflow.com/
To get a better idea of what's going on, you can enable debug logging by:
<code class="language-php">ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);</code>
mediawiki  php  debugging  errormessage 
june 2018 by kme
php - Removing X-Powered-By - Stack Overflow | https://stackoverflow.com/

I think that is controlled by the expose_php setting in PHP.ini:
<code class="language-php">expose_php = off</code>

Decides whether PHP may expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header). It is no security threat in any way, but it makes it possible to determine whether you use PHP on your server or not.

There is no direct security risk, but as David C notes, exposing an outdated (and possibly vulnerable) version of PHP may be an invitation for people to try and attack it.
php  webdevel  webmaster  security  configfile  configuration  solution  dammitbrain 
may 2018 by kme
Warning: preg_match(): Compilation failed: this version of PCRE is compiled without UTF support - DirectAdmin - Peter Sangkhamanon | https://mzpeter.co.uk/
On CentOS, you'll also need 'pcre-tools' to get the 'pcretest' utility.
same as Warning: preg_replace() [function.preg-replace]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in.
errormessage  php  annoyance  centos  centos7  php56  maybesolution 
may 2018 by kme
yourls_allow_duplicate_longurls where to set it to allow · Issue #2186 · YOURLS/YOURLS · GitHub | https://github.com/
File: user/config-sample.php:49

<code class="language-php">/** Allow multiple short URLs for a same long URL
** Set to true to have only one pair of shortURL/longURL (default YOURLS behavior)
** Set to false to allow multiple short URLs pointing to the same long URL (bit.ly behavior) */
define( 'YOURLS_UNIQUE_URLS', true );</code>

Set it to false in your config file.
php  yourls  configfile  configsetting  solution 
april 2018 by kme
How to extract a file extension in PHP? - Stack Overflow | https://stackoverflow.com/
So this works
<code class="language-php">pathinfo('SNP_sequence.nonref.fa', PATHINFO_EXTENSION)</code>
php  filename  strings  textprocessing  filesystem  webdevel  solution 
october 2017 by kme
Contempt Culture - The Particular Finest
The best advice we give programmers is to leave things better than how they started. We do it with code, why don’t we do it with communities? Why don’t we do it with people, colleagues, friends?

Ask why it’s okay to do these things in your community, and leave things better than when you started.
programming  culture  community  womenintech  php  java  sux 
june 2017 by kme
PHP :: Bug #48614 :: Loading "pdo_sqlite.so" fails: undefined symbol: sqlite3_libversion
I get this error message with the SCL version of PHP 5.4 on CentOS 6:
$ boris
PHP Warning: PHP Startup: Unable to load dynamic library '/opt/rh/php54/root/usr/lib64/php/modules/pdo_sqlite.so' - /opt/rh/php54/root/usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0


Just commenting out the "extension=pdo_sqlite.so" in /opt/rh/php54/root/etc/php.d/pdo_sqlite.ini at least gets rid of the error message.
php  php54  centos  centos6  bug  errormessage  sortof  solution 
may 2017 by kme
Doctrine PEAR channel
This channel is to be used with the PEAR installer.
Registering the channel:

pear channel-discover pear.doctrine-project.org

Listing available packages:

pear remote-list -c doctrine

Installing a package:

pear install doctrine/package_name
centos  centos6  php54  pear  php  packagemanagement  solution 
may 2017 by kme
php 5.3 - PHP Composer behind http proxy - Stack Overflow
Fiddling with HTTP(S)_PROXY_REQUEST_FULLURI environment variables didn't seem to make a difference but this did;

iconoclast's answer did not work for me.

I upgraded my php from 5.3.* (xampp 1.7.4) to 5.5.* (xampp 1.8.3) and the problem was solved.

Try iconoclast's answer first, if it doesn't work then upgrading might solve the problem.
php  compooser  webdevel  errormessage  proxy  solution 
december 2016 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read