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

PHP parse error in rss parse function

I have a client who needs a website urgently, but I have no access to information such as the control panel. PHP Version is 4.4 Which is a pain as I'm used to 5. The first problem is I keep getting: Parse error: parse error, unexpected…
Stefan P
  • 1,013
  • 2
  • 18
  • 34
0
votes
1 answer

Porting PHP5 to legacy PHP4, DOMDocument quibbles

I'm trying to make some of my php5 code work on a legacy server, which unfortunately cannot be upgraded (client's machine). if (!isset($docRoot)) { $docRoot = $_SERVER['DOCUMENT_ROOT']; } // generic storage class for the words/phrases $t = new…
danp
  • 14,876
  • 6
  • 42
  • 48
0
votes
2 answers

php4 with json data

Can someone help me to setup php4 for using json? Thanks!
Chameron
  • 2,734
  • 8
  • 34
  • 46
0
votes
0 answers

Adding multiple rows in database table from fetched result through a loop

i have table named subscribers in my database and i am fetching it through while loop in a form and i have given some options like how much copies are to be sent, how the copies will be sent. I want to insert the data of the form in table name…
0
votes
3 answers

Get

and
tags positions in HTML

I have to get

and
tags positions in whole html code. If I use strpos function, I get only first tag position. Does it possible to make this function greedy or something ? Or maybe there is any other solution(function) ? Your help would be…

Bounce
  • 2,066
  • 6
  • 34
  • 65
0
votes
1 answer

PHP Image Upload Problem

Getting Undefined index: filename error in the below image upload php code. Is there any problem in the below code?
method="post"> …
Saravanan I M
  • 1,115
  • 2
  • 19
  • 29
0
votes
1 answer

php + mysql : find data by time end & time start

event table have two fields start and end and all in datetime format This is query SELECT e.* FROM jos_events e WHERE 1=1 AND e.start >= 2006-07-10 AND e.end <= 2015-10-21 ORDER BY e.id DESC i want to find events between time start and time…
Chameron
  • 2,734
  • 8
  • 34
  • 46
0
votes
4 answers

how to find Page id inwordpress

i need to get page ID in wordpress throught php?
leonyx
  • 849
  • 7
  • 15
  • 23
0
votes
4 answers

What are the differences between php 4 and php 5?

I have some code that gets a wordpress rss feed and displays the news articles on my own website. This code works fine on my development server that is running php 5.3.1 but when I upload it to my live website that only has php 4.4.9 I am getting…
Simon Foster
  • 646
  • 3
  • 11
  • 26
0
votes
1 answer

How can I generate a list of pay-period-ending dates in PHP4?

I see that all of the good date/time functions are PHP5 only, which sort of makes this hard. I need to generate a list of all pay-period-ending dates starting with 52 weeks back and going to one pay period in the future, with bi-weekly periods. So,…
Chris R
  • 17,546
  • 23
  • 105
  • 172
0
votes
2 answers

Importing Variables from PHP 4 into Flash

I'm trying to get variable importing from a PHP script before I implement it into a larger project. So far all I've gotten is headaches. // this is all thats in test.php other than the open and close brackets. // Normally I'd have it doing a…
Glenn
  • 1
  • 2
0
votes
0 answers

php4 on a php5 server - How to solve "Undefined index: HTTP_CLIENT_IP"

I have migrated a 10 year old home-made forum written in php4 to a new Shared Hosting server running php5. I have found 3 errors, and I will be eternally grateful if you experts could help me solve them. They are the following: 1) Notice: Undefined…
FrK
  • 129
  • 4
0
votes
0 answers

PHP 4 Send email through SMTP

I have a PHP 4 code that needs to be modified to send emails through SMTP and I have already installed the Pear mail package on the server. It is Sevrer 2008 R2 64 bit. The problem is that it does not send any emails! what am I missing here?The…
user3314399
  • 317
  • 4
  • 9
  • 23
0
votes
1 answer

how to resolve error in php during excel file upload

I am getting error The filename C:\xampp\tmp\php308F.tmp is not readable. How to resolve this issue? . why this error is coming?. App::import('Vendor','excel_reader2'); public function upload(){ if($this->request->is('post')){ $data = new…
Akhila Prakash
  • 481
  • 4
  • 17
0
votes
1 answer

Formatting date/time in php 4

I'm working (or learning) on server with old php4 installed and most of the conventional methods from php5 for date/time formatting doesn't work in php4. I have time string in this format: 2003-07-23 10:15:00 Now whats the easiest way to get date…
Axel Stone
  • 1,521
  • 4
  • 23
  • 43