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

Change all values in a column mysql php 4.4.9

I have seen multiple posts saying that to update all rows in a column you use UPDATE Table SET Column= 'New Value', but it doesn't seem to work for me. Here is my code:
marsnebulasoup
  • 2,530
  • 2
  • 16
  • 37
0
votes
2 answers

PHP: Parse url from css property

I have a string from css (background property): $sStr = 'url(http://www.ser.com/styles/../img/big-logo.gif) 10px 0 no-repeat'; Now I need the url of the image file like this: 'http://www.server.de/styles/../media/visuals/big-logo.gif' Thanks for…
Ilyssis
  • 4,849
  • 7
  • 24
  • 30
0
votes
0 answers

Turn off Pear Error Handling

Apologies if this question is already answered somewhere else but I cannot find the answer and I've looked at a few of the PEAR error handling questions. I have a situation with a legacy site which is still in PHP4 (I know, it is old). Our server…
0
votes
3 answers

PHP replace string with alternating srings

I have a text something like this: $sText = "www.domain.com www.domain.com www.domain.com www.domain.com www.domain.com ..."; Now I want to spread the domains to subdomains (e.g. 3 sub-domains), so the result…
Ilyssis
  • 4,849
  • 7
  • 24
  • 30
0
votes
2 answers

Run PHP4 on Wamp5

how to install php4 on wamp5 1.7.4, any ideas? BTW, I know how to install php4 addon on WampServer 2.
Nick Binnet
  • 1,910
  • 7
  • 33
  • 49
0
votes
1 answer

Configuring Oracle connection in PHP 4.4.8

Issue is regarding PHP 4.4.8, having trouble in configuring oracle connection (server is IIS8). I tried using php data objects(PDO) it didn't work. I also tried using extension php_oci8.dll function getConnection() { return…
Hitesh Basera
  • 33
  • 1
  • 3
0
votes
2 answers

PHP 4 try catch alternative?

Could someone help me translate this code to PHP 4? try { $picture = PDF_open_image_file($PDF, "jpeg", $imgFile, "", 0); // This is the original statement, this works on PHP4 } catch(Exception $ex) { $msg = "Error opening $imgFile for Product…
Aximili
  • 28,626
  • 56
  • 157
  • 216
0
votes
1 answer

how can i get single value at next page from multiple values in another page using php

there are 3 JavaScript functions and each function contain a single table name in one page and i am calling any one function at single time.. how can i get that table name in another page using php ?? page1.php session_start(); …
0
votes
2 answers

exporting a mysql query in php version 4 to a csv

Edit on my original post. I found the answer!!!! with help:) I now have this working by using the below code with thanks for the advice on this in the comments:
0
votes
0 answers

Handle ftp_put warnings in PHP 4

In an ideal world I would use a try/catch block to handle warnings from ftp_put, but sadly I have to use PHP 4 for legacy reasons, which does not have this. I am handling the basic true/false with an IF as below. Does anyone know how to handle…
James Dewes
  • 387
  • 4
  • 22
0
votes
1 answer

Post JSON Data to API with credentials PHP 4

I have an issue and I am in need of some help. I have PHP version 4.4.7 and I want to POST data in API which uses MVC pattern and json data. I tried with get_file_contents method but i get 405 Error. I want to pass three variable in the link…
jim
  • 33
  • 4
0
votes
1 answer

Magento product imports from csv file

I want to import Magento products from my csv file, but when I import this csv file I get an error like this ( Skip import row, required field "sku" not defined) However, I had this field defined in my csv file. If any one has any idea about that…
aazi
  • 19
  • 8
0
votes
1 answer

TikiWiki or similar with php 4

I'm looking for content management system/framework to build a website which has some (more or less) static pages, an events calendar and a wiki section, possible adding a forum at some point. The best I've found is TikiWiki, but my host (which I…
Mike
  • 325
  • 1
  • 8
  • 16
0
votes
1 answer

Getting Superfish jQuery plugin to work dynamically with several loops in PHP

Hopefully some clever lad or ladette can help me figure out the logic for the follwoing code. I have started to use superfish jquery plugin for my navigation and have got the code working fine and easily with static links, but when I try to change…
zealisreal
  • 495
  • 2
  • 8
  • 20
0
votes
1 answer

web service call in php4

I did this code for my own server in php5, but when I tried to deploy it, I found that the test and production server are php4 (my fault!). So I need to now who to convert this to run it in php4. The following code works OK on php5:
BlogueroConnor
  • 1,893
  • 4
  • 17
  • 18