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

How can I make the deprecated functions to work in PHP's latest version?

How can I make the deprecated functions to work in PHP's latest version? I don't want to change the alternate function of it in each and every page, it's highly impossible in the maintenance project which I have. So please let me know if there is a…
gvm
  • 1,153
  • 3
  • 12
  • 19
0
votes
2 answers

php session and path setting

I would like to separate my source folders into two: The folders that contain the code that you type into the address bar and those that make up parts of the page (tiles) and other code (classes, etc). So at the start of every php file I…
graham.reeds
  • 16,230
  • 17
  • 74
  • 137
0
votes
1 answer

how to enabled SOAP on PHP 4.3.8

Current PHP version 4.3.8 Quick question: just wondering if i can enable the soap file under php.ini. Because currently it throw me this error message: Fatal error: Cannot instantiate non-existent class: soapclient in /var/www/html/xxx on line 78 I…
Bill
  • 17,872
  • 19
  • 83
  • 131
0
votes
2 answers

PHP Weight Algorithm

I'm wondering if this is a sufficient algorithm for finding the best value with a weighted system. Is there anything I could add to make it better? in this example I would like the probability of $object->get() returning test4 to be 4 times greater…
Petrogad
  • 4,405
  • 5
  • 38
  • 77
0
votes
4 answers

Stripos issues in php4

Please i have the following function for a contact form, but it shows the following error "Fatal error: Call to undefined function: stripos() in" how can i fix it function checkEmail($vEmail) { $invalidChars ="/:,;" ; …
0
votes
1 answer

PHP 4 to PHP 5 - isset checks on boolean if statements

Scenario: We are in the process of converting an application from PHP 4 to PHP 5. The application needs to be able to work on PHP 4 for a little while, which means no PHP 5 specific elements can be used, yet. We are simply trying to make sure the…
teynon
  • 7,540
  • 10
  • 63
  • 106
0
votes
5 answers

securely send data from one site to another?

I am going to post some data from one website to another website. I need a way for the receiving website to be sure that the data was sent from the sending website and not sent by some other malicious user. I am using PHP4. How can I do…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
0
votes
2 answers

NuSOAP on XAMPP with PHP5: failed to open stream

Hey guys, I have a problem (again). This time I am trying to use NuSoap w/ XAMPP 1.7.1 which includes PHP5 and MySQL ... I wrote a soap-client:
doro
  • 785
  • 3
  • 11
  • 23
-1
votes
1 answer

CakePHP Model Associations

Here's the deal, i have 2 models: Rus and Audios. I want to use records from Audios in Rus controller, so i go and type in associations like this: and
Tonie Kimo
  • 11
  • 1
-1
votes
1 answer

Put a variable SESSION in an other variable, delete SESSION content variable

I've an application in PHP 4.3.9 and I've a problem with SESSION. When I put a variable SESSION in an other variable, like this : $tempInsInscription = $_SESSION['ins_inscription']; $_SESSION['ins_inscription'] content is removed. I don't…
LynxWeb
  • 69
  • 1
  • 9
-1
votes
1 answer

Dates in PHP 4.4

I am working for this association in my school and I am migrating web applications since, as of today, they are still running in PHP 4.4... But, I would like to quickly implement some fixes before changing to a newer PHP version. One of these…
C. Miranda
  • 75
  • 1
  • 6
-1
votes
1 answer

Can you check the existence of a variable by if ($var) in PHP 4?

I'm upgrading an old code from PHP 4 to PHP 5 and what I often see is: if (!$variable) { // for example... $variable = "test"; } To understand the code I need to know if it was possible earlier in PHP 4 times to check the existence of a…
Cutaraca
  • 2,069
  • 3
  • 14
  • 21
-1
votes
1 answer

Variabls not working between (2) PHP Scripts

I have (2) PHP scripts: one written in PHP 4.0 and the second one written in PHP 5.6 (my ISP upgraded the servers and they only run PHP 5.6 now so I had to convert the 4.0 script to 5.6) However when I use the PHP 4.0 script everything worked…
-1
votes
2 answers

How do I upgrade my PHP 4.0 login script to PHP 5.6?

my script below worked perfect on PHP 4.0 but my ISP upgraded to PHP 5.6 and now there seems to be something wrong (it does not connect to mySQL, etc), any help is appreciated Many…
-1
votes
1 answer

Creating New Function - MySQL 1-M - Return M in PHP

I'm creating a function to help me return 1-M (One to Many relationship) results from my database. What I want to achieve: I have a form with a Location dropdown. I want a function that will take the Column name (in this case "Location") and The…
TolMera
  • 452
  • 10
  • 25
1 2 3
21
22