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
3 answers

Yet another 'Call to a member function on a non-object' problem

I have a html page that calls a php object to get some data back from the database. It works fine, but the script was getting unwieldy so I decided to break some of it out into a bunch of functions. So I have the following files: //…
graham.reeds
  • 16,230
  • 17
  • 74
  • 137
0
votes
1 answer

Storing every new PHP object in array on instantiation

I'm pretty new to OOP, but I have a class, and with each object created, I'm pushing them into an array (I don't think there's a way to iterate over every object in a class). My client is still on PHP4, so I was having some trouble. Since version 4…
user1807782
  • 451
  • 1
  • 4
  • 17
0
votes
1 answer

PHP Is there a PHP4 alternative to curl_multi_select

Is there a PHP4 alternative to the function curl_multi_select()
somejkuser
  • 8,856
  • 20
  • 64
  • 130
0
votes
1 answer

converting php4 class to php5: help replacing "var $thisvar;" to php5 equivilant

i found a user login script online which i later foundd out had been written in PHP4, and i am in the process of updating it to PHP5 and learning OOP at the same time :) a snippet of my user class is
user2886669
  • 251
  • 1
  • 2
  • 12
0
votes
4 answers

Is there an output difference between php 4 and 5?

I noticed the other day that a new script I wrote for php 5 began outputting html that was viewable before the php script had actually finished. Did this happen with 4? For instance, I have a long loop that echos something out with each iteration.…
Citizen
  • 12,430
  • 26
  • 76
  • 117
0
votes
1 answer

php4 escape input with postgres options

I have a server that only has php4 and postgresql. As far as I can tell PDO and pg_query_params don't exist in php4. What alternatives are there? Or is raw escaping the only option?
user2073343
  • 473
  • 1
  • 5
  • 13
0
votes
2 answers

How to get compatible with php4 in a framework developed with php5

How to get compatible with php4 in a framework developed with php5? Thanks
Sarfraz
  • 377,238
  • 77
  • 533
  • 578
0
votes
1 answer

Storing null value in session variable

I have two PHP files, in which i'd like to store a session variable id like this if(authentification($login,$mdp) == 0) {?>
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
0
votes
2 answers

PHP4 problems with include() within a file created by fwrite()

I have a file called generator.php that uses fwrite() to create a result.php on the server (Apache, PHP4). One of the lines in result.php is a PHP include() statement. So, in generator.php: if (!is_file($fname)){ $resultfile =…
Pranab
  • 2,207
  • 5
  • 30
  • 50
0
votes
3 answers

alternate to simplexml_load_string() in php4

Im using this function simplexml_load_string() in my file which is doing search lucene based. But its not working in php4. please suggest me a function similar to this one so that i dont have to change my coding much. this is the sample of my code…
developer
  • 2,042
  • 10
  • 40
  • 59
0
votes
1 answer

Calling extension function in zend_eval_string

When i try use zend_eval_string (i make mini php extension), there are no extensions functions avaliable. There are also no errors reporting (if php code have fatal error program exit). What i must do to enable extension and show errors when it…
0
votes
2 answers

How can I redeclare, overwrite or rename a function in PHP4?

I am looking for a way to redeclare, overwrite or rename a function in PHP4, in order to perform a unittest on a class that makes a call to another function. I want this function to be a test function instead. I have several constraints: It has…
Alex
  • 41,580
  • 88
  • 260
  • 469
0
votes
3 answers

PHP Framework support for legacy PHP4?

I know that PHP4 is "dead", however there are about two dozen or so of our clients that still are located on servers where PHP4 is used, and we won't get any server upgrades until around a year or two. I'm just about to start working on refactoring…
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
0
votes
1 answer

PHP 4 class autoloader

I'm working in PHP 4 with classes but there's not __autoload function, so I have problems to load my classes because they are intertwined. I have a class Ship and a class Movement. The class Ship contains an Movement object and the class Movement…
Sergio
  • 19
  • 1
  • 6
0
votes
1 answer

PHP 5 function to PHP 4

I must convert a web application from php 5 to php 4, but I'm having some problems, especially with objects. I'm getting a error in a setter function with array arg (parse error, unexpected '=', expecting '(' on line 20). The code: class Fecha…
Sergio
  • 19
  • 1
  • 6