Questions tagged [php4]

For issues relating to development using PHP, version 4.

PHP is a widely-used, general-purpose scripting language designed specifically for web development, though it has since been extended to other applications too. PHP is the most popular language for web development, powering over 20 million websites.

Useful Third-party Code and Tools

In addition to the vast functionality provided in the PHP Core and through PEAR and PECL, there are a number of noteworthy 3rd party contributions to the PHP world, some of which are listed below.

Related tags

323 questions
0
votes
1 answer

malformed XML returned by curl command line

I'm sending a string of XML tags and data in PHP to an API on another server that is expecting XML. we are sending the string via command line like this exec("curl http://addressToAPI.com/index.php?xml=$xml", $response); $xml is the string of…
azzy81
  • 2,261
  • 2
  • 26
  • 37
0
votes
2 answers

Does php 4.4.8 support mysqli (object-oriented style)?

Does PHP 4.4.8 version support mysqli object-oriented style? I have made ready this project on PHP5 and when I got online hosting, I came to know that the online version is 4.4.8. How can I make my mysqli project work on this domain?
Parag
  • 4,754
  • 9
  • 33
  • 50
0
votes
3 answers

php4 vs php5 support

Hello I'm developing an open source software and it requires PHP5.I made a version for PHP4.I want to know which is better to make the official release for php4 or to continue with the php5 support only and post a php4 version (as alternative). The…
Alex Emilov
  • 1,243
  • 4
  • 19
  • 25
0
votes
2 answers

PHP 4 and PHP 5 both running on IIS7

I have a server that hosts a bunch of sites in PHP5. I have an old site that was designed for PHP4 that I also need on the server. Originally, I was just going to port the code to PHP5, but have discovered that process is more intense that I have…
Ryan Smith
  • 8,344
  • 22
  • 76
  • 103
0
votes
3 answers

Python efficient mass replacing unknown characterers

PHP4+mySQL4 based project post to Django 1.1 project and it mixes up some letters. What is the best way (most efficient) to replace in this fashion? The problem for me is that i cannot get values for those letters. Is there an online tool to do…
JackLeo
  • 4,579
  • 9
  • 40
  • 66
0
votes
1 answer

How to use xml2array get the xml date from a foreach?

I am now studying xml2array, How to use xml2array get the xml date from a foreach? I can print the data, but can not read anything from the foreach. Thanks. index.php
cj333
  • 2,547
  • 20
  • 67
  • 110
0
votes
1 answer

Replaced $HTTP_GET_VARS with $_GET, but not working

I have the following code, which is not working for me. I used to have $HTTP_GET_VARS instead of $_GET, but then updated to PHP 5, and now things are broken. Any thoughts on what I'm doing wrong here?
GoNorthWest
  • 83
  • 1
  • 3
  • 11
0
votes
1 answer

Mixing PHP4 and PHP5 within a single app

I maintain for someone code of an old PHP4 app. Since certain new features could make good use of ZEND framework, I wonder, if I could mix PHP4 and PHP5 within a single app. To be more specific, I'd like to call PHP5 code from within PHP4 code. A…
SteAp
  • 11,853
  • 10
  • 53
  • 88
0
votes
1 answer

How can I make these loops faster?

I'm using PHP4 for a project I'm working on. I had to expand this code (which works fast enough for the data at hand): for ($i = 1; $i <= count($arr); $i++) { $a = $arr[$i]['date']; for ($y = 1; $y <= 10000000; $y++) { $c =…
Mandy
  • 107
  • 1
  • 2
  • 9
0
votes
1 answer

php4 to php5 migration

We got project, its migration site from php4 to php5, What are the thing first i should do, In which parts i should concentrate, Is there any procedure , Give top high 15 point for php4 to php5 migration, Guess client using the Informix , ut not…
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
0
votes
1 answer

How can I use MySQL 5.x with PHP 4.x?

I am requested to support a legacy system. I needed to install PHP4 on my computer for that and also MySQL 4.x. I couldn't find a MySQL 4.x version that installs on my computer so I thought I'd upgrade the system to MySQL 5.x. The problem is, PHP4…
shwartz
  • 631
  • 3
  • 13
  • 29
0
votes
0 answers

Use of deprecated PHP4 style class constructor is not supported since PHP 7 while using construct

I have several lines of code in my widgets.php that are showing an error. This is a sample of the code I found at the given location and error: function asp_testimonail_rotator_widget() { parent::__construct( false, 'ASP: Random Testimonial'…
0
votes
2 answers

php4 multi-level inheritance

Does this kind of inheritance work for php4? class A { var $string; function A () { $this->string = "Hello"; } } class B extends A { function B () { $this->string = "World"; } } class C extends B { …
lugte098
  • 2,271
  • 5
  • 21
  • 30
0
votes
0 answers

Php\Ubuntu virtual links

I have latest Ubuntu 18, also Apache2, php 7.2, mysql. I have rather old simple php application, written on php4 (at least not older than php5). I have a task to run this application in this environment, to install php4 is not a variant. Possibly…
NataM
  • 1
0
votes
2 answers

PHP 4 Compliance Checker

Is there a tool that checks your code and can feedback any PHP4 compliance issues? I've just developed a Widget for WordPress and haven't used any PHP5.3 features but have used PHP5 features. I didn't realise the WordPress PHP version requirement…
Ben Waine
  • 1,650
  • 3
  • 21
  • 34