245 questions
1
vote
1
answer
187
views
PHP 5.2.x php_value auto_prepend_file in htaccess is not working [closed]
Have a sub directory in a shared server.
So cannot modify php.ini.
php_value auto_prepend_file "config.php"
Want to include config.php but is not working as if it never been executed.
...
0
votes
0
answers
37
views
Fatal error: Uncaught Error: Failed opening required [duplicate]
I upgraded an old PHP application with Zend framework from PHP 5.2 to PHP 8.2 using Rector. Now Its giving me an error as follows,
Fatal error: Uncaught Error: Failed opening required 'D:\projects\...
0
votes
1
answer
380
views
Archive format is not recognised. ZipArchive in PHP not returning a valid format
Thanks in advance for your help
This is happening in a Ubuntu 20.10 machine and a server with apache and php 5.2
Let me paste the code:
$elementsToDownload = array(
'productTableCSV' => $...
0
votes
1
answer
170
views
Migrate mySQL data from php5.2 to php7
We have a really old codebase with php5.2 some of them even in php3 using mysql 5.1 that we are trying to migrate to laravel 7/8. The data stored in the database is Japanese characters stored using ...
-2
votes
2
answers
834
views
How to return 0 when the query return NULL [closed]
My php query look like:
<?php
$raw_results = mysql_query("SELECT Operator, Data_przegladu, IFNULL(COUNT( Operator ),0) AS operator_count
FROM przeglad
...
0
votes
0
answers
678
views
How i can get IMAP Inbox and save it to db in codeigniter?
I have the following code working in PHP 7, i use it to save my mail inbox into my db.
$hostname = '{imap.gmail.com:993/imap/ssl/novalidate-cert}';
$username = '[email protected]'; $password = '...
0
votes
0
answers
1k
views
Run PHP 5.2.6 on windows server 2016
I need to install php 5.2.6 and only this version on Windows Server 2016. I don't find any packager like Windows Platform Installer or Chocolatey. With Windows Platform, the 5.2.6 version is not in ...
1
vote
1
answer
1k
views
oci_connect on PHP 5.2.0-8 not working with Oracle 11g
I was using PHP 5.2.0-8+etch16 / oci_connect to connect to my company's Oracle DB and show information on our website (accessible to external IPs). Ever since we upgraded our DB version (to 11g ...
0
votes
1
answer
1k
views
Error when sending mail with attachment using PHP mailer: Transaction failed: Missing start boundary SMTP code: 554
Im trying to send php mailer email with pdf attachment and its showing this error:
E-mail not sent. Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Transaction ...
0
votes
1
answer
6k
views
Install PHP5.2 on Ubuntu 18.04.1 LTS
For some obscure reason, I have to install php5.2 on my VM (Ubuntu 18.04.1 LTS) , I'm looking for a PPA, or a way to do it.
How do I Install PHP5.2 on Ubuntu 18.04.1 LTS?
-3
votes
1
answer
65
views
Anonymous function in array_walk is throwing error on PHP 5.2
Below is array_walk function which is throwing error on php 5.2.
I have 5.2 version on stage and 5.3 on local and dev. Code works fine on local and dev php version.
foreach($favTracks as $track_id) {
...
1
vote
1
answer
2k
views
Install PHP 5.2 on Plesk Onyx
I have few very old projects build in PHP 5.2. I'd like to install in a Plesk Onyx 17.0.17 server.
CentOS Linux 7
By default, the lower version in this Plesk is 5.4.
Is it possible to install PHP5....
0
votes
2
answers
324
views
client or server is removing umlauts
I am using btoa to encode my string to base64. However, it does not seem to work correctly, any umlauts are removed for whatever reason.
I tried to demonstrate it, but on this page it works:
var ...
0
votes
2
answers
1k
views
PHP 5.2 (win.server) can't connect to Oracle 12c db
I have difficult question.
On win.server i have PHP 5.2 version. I must connect on Oracle 12c db. Procedure that i do is:
download oracle client 12.2
enable php_oci8.dll
insert PATH to
C:\Windows\...
1
vote
3
answers
3k
views
Sum array values excluding value of element with specific key
If I have:
$my_array = array(
"user1" => "100",
"user2" => "200",
"user3" => "300"
);
How can I use array_sum to ...