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

Does there exist Amazon EC2 AMI preconfigured with PHP4?

I'm having a very difficult time setting up a PHP4 LAMP stack on an EC2 instance. Does anyone know of any pre-configured AMI which supports PHP4? For the record, I do not have the option to develop in PHP5
rocketas
  • 1,679
  • 3
  • 18
  • 30
0
votes
2 answers

Deprecated warning only in some php5 environments?

We're moving from php4 to php5, and we get this warning on one of our developers machines, but not in our php5 test setup: Deprecated: Call-time pass-by-reference has been deprecated in C:\Workspace\Prelive\www\includes\filename etc.. The code seems…
Maarten
  • 4,643
  • 7
  • 37
  • 51
0
votes
1 answer

PHP 4 Variable losing value on scope change

echo $uid; // RETURNS INTEGER VALUE if (isset ( $_POST ['cashpaid'] )) { $queryfinal = "select * from " . $db_prefix . "customer_det where `id` = '$uid'"; // UID RETURNS NULL .... I've tried everything and every combination of…
smada
  • 227
  • 1
  • 7
  • 17
0
votes
2 answers

Getting error database not selected

code:
jason dancks
  • 1,152
  • 3
  • 9
  • 29
0
votes
1 answer

xml parsing in php4

I know that this might be way too much to ask, but I have been reading about xml parsing and I just do not understand it! I did not realize that my client had PHP 4 until I was done programming (a lesson well learned), but I need this to work in…
luv2code
  • 1,216
  • 6
  • 22
  • 42
0
votes
1 answer

Convert captcha generator from PHP4 to PHP5

I have an old image captcha generator written in PHP4 that i need to convert to PHP5 Any suggestions for what I need to change to get it to start working? The main error I'm getting reads "Resource interpreted as Image but transferred with MIME type…
J Grover
  • 1,029
  • 1
  • 9
  • 14
0
votes
4 answers

PHP 4 how to strip a specific variable from the URL

PHP 4 how to strip a specific variable from the URL in this case "?lang=en" /filename.php?lang=en
pwr
  • 11
  • 2
0
votes
2 answers

How to clear garbage in PHP 4

I have written an application. But there is an issue of memory overflowing. Is there a way to clear all garbage values in PHP 4?
lankitha
  • 283
  • 7
  • 15
0
votes
1 answer

php4 to php5 call of another file-php with input type is not working

After a change from PHP4 to PHP5 a problem occurred, I cant find it in the migration FAQ.
0
votes
5 answers

__construct() { issue for PHP4 and PHP5. maybe an another reason

I have weird issue with CodeIgniter, here is a start part of my controller class Home extends Controller { /** * Constructor */ public function __construct() { parent::Controller(); } ... everything is working fine…
designer-trying-coding
  • 5,994
  • 17
  • 70
  • 99
0
votes
4 answers

Comparison failing after PHP upgrade

This code used to work in earlier versions of PHP4 but no longer works on my website now that the hosting server has been upgraded to PHP5. Any easy way to alter this code to make it work again?
codeview
  • 209
  • 5
  • 15
0
votes
2 answers

maked / hashed url param

I have created a quiz app which emails the user the results. I want to include a link in the url that the user can click on and view a breakdown of their results I want the url to look something like…
brndnmg
  • 257
  • 6
  • 21
0
votes
2 answers

Declare one class variable via another

sorry for the vague title... I have a problem with a php4 class that seems hard to put to words. My class has a "possibleValues" array, that holds information on what kind of values are acceptable for certain attributes that can be changed from the…
kontur
  • 4,934
  • 2
  • 36
  • 62
0
votes
0 answers

Captcha script for PHP 4.3.X

I have php 4 installed and I am using recaptcha for captcha, But its not so user friendly, So i am looking for any captcha script that is user friendly, easy to implement and must be compatible with php 4.3.x. OR Is there any way to customize the…
n92
  • 7,424
  • 27
  • 93
  • 129
0
votes
1 answer

Getting empty mails from website

I have php 4.x installed in server, I have a script to send mails, generally 1 Out of 10 mails i receive will have no body but the subject will be there. The mail sending code is below. $headers = "MIME-Version: 1.0 \n"; $headers .=…
n92
  • 7,424
  • 27
  • 93
  • 129