Questions tagged [php-5.2]

PHP 5.2 (now past End of Life) is the successor to PHP 5.1. It was released on November 2, 2006. Use this tag for version-specific issues relating to specifically to PHP 5.2.

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.

Note that support for PHP 5.2 has been officially discontinued. There are no externally supported versions of 5.2 (i.e. backported security fixes) so it is highly recommended you upgrade to a supported version.

Information

  • If you want to talk about PHP or if you have a question, you can come to Chat Room 11: PHP.
  • For global question on PHP, please use the generic tag:
245 questions
-1
votes
1 answer

Alternative for array_map PHP 5.2

Something is wrong and I suspect it to be my PHP version that's 5.2 on this server; code was running on 5.6 before without any flaws... I have debugged it down to the following code that's breaking. However, I get no error message.. $standard =…
Joelgullander
  • 1,624
  • 2
  • 20
  • 46
-1
votes
1 answer

how to showing the value for 2 months ago

Here i am writing one function,from this code not working properly,$joiningdate value 1 year finished means,it will showing 01 years ago,but suppose 10 months only finished means i want to show 10 months ago,same for days,i think that if condition…
kasthuri S
  • 39
  • 1
  • 7
-1
votes
1 answer

select class in oop mysqli and php 5

Hello this sound easy but something seems to be wrong here, include_once('class.DBconnnection.php');//connects to DB and works fine class execute extends db { private $sqlString; private $selected; private $querySelected; public function…
-1
votes
1 answer

Execute a PHP method one time

I call first time this route where I put in session 0 : public function userCaptcha(){ $_SESSION['isFacebookRegistration'] = 0; } After that I call another method which is executed 2 times by server : public function index() { …
TanGio
  • 766
  • 2
  • 12
  • 34
-1
votes
2 answers

Migrating an app from PHP 5.2 to 5.5

I have an app currently running on a PHP 5.2 server that I need to migrate to a PHP 5.5 (or 5.6) server. What are the things to look at, what issues might I encounter? Thanks in advance
Maurice Perry
  • 32,610
  • 9
  • 70
  • 97
-1
votes
2 answers

Paamayim nekudotayims in PHP 5.2

I can upgrade php 5.2 in my server. I have to make this server work today (the vacation I have planned tomorrow is under question because of this error) with new testlink. I am stuck with following error i.e Paamayim nekudotayims. What changes I…
Subit Das
  • 1
  • 5
-1
votes
1 answer

Query path, php 5.2

Im using Querypath in my PHP. Since my linux is Debian Lenny that doesnt have support anymore, and I have no idea how to update it to debian Squeeze. I cant update its php, since it doesnt exist for Lenny (for what I read). Using Querypath I get…
-1
votes
1 answer

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource on line 21

Ok below is my code and I've tried to debug it with var_dumps .. var_dump($insertion) returns through , which means that the query inserts into the database but for some reason , I'll get the warning message when I wanna see if mysql_num_rows is…
user2041213
  • 29
  • 1
  • 5
-1
votes
1 answer

What is needed to set up a PHP development and production environment?

I have inherited a little database driven PHP site. I am a C# programmer, and have almost zero experience with PHP, although I have great experience with databases and some html / web design. My boss tasked me to create a staging and production…
Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062
-1
votes
1 answer

PHP syntax error: unexpected T_PAAMAYIM_NEKUDOTAYIM on Line 78

I checked all possible answers, but I'm sorry, I couldn't figure this out. I tried making the properties non-static but code pad shows the error on the line: $task = new sfCacheClearTask($sfContext::getInstance()->getEventDispatcher(), new…
Prasad
  • 1,822
  • 3
  • 23
  • 40
-1
votes
1 answer

PHP 5: Is File Downloading with cURL Safe?

I'm working on a project that allow file uploads, the download file then forces the user to download the file. the problem is, I have been using file_get_contents, which works fine, except for when allow_url_fopen is disabled, which is something I…
Eman
  • 1,093
  • 2
  • 26
  • 49
-2
votes
1 answer

mime_mail class not found

My following code is unable to send message text. It is able to send MIME attachments. However, I am unable to send any text messages through this code. I suspect that issue is somewhere with the $message-variable. // MIME EMAIL CODE - ALLOWS…
Haseeb
  • 1
  • 2
-2
votes
2 answers

How to return 0 when the query return NULL

My php query look like:
Blimer
  • 45
  • 9
-2
votes
2 answers

Why I can't get javascript values into my php5 code?

I have this code: