php4

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: <?php $wsdl = 'http://blahblah:8081/services/LoginWebService?wsdl'; $client = new SoapClient($wsdl); ...

Failed to validate oauth signature and token

For reasons beyond my control I am using PHP4 to write a twitter client. Requests don't work properly - I am having a tough time seeing what's wrong. Any ideas? I have grabbed the code and banged it in a very simple script here to illustrate essentially what's going on. I've hidden OAuth keys for security purposes. <?php $requestToken...

PHP: How to make "Latest visit" count nicer

Hello. I have "Your latest 5 visits" at the home page of the user when he logs on. It works great without any problem. But then i want to change it. I dont know how i should do this, but someway somehow only count the user 1 time at the time, and not e.g 10 times if he visits/refresh your profile. So should i do this with a time check...

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

Hi there, 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 that to dynamic links I am having trouble getting the 2nd level tag to work pr...

PHP ftp_login() not accepting username and password

We're migrating from PHP 4 to 5 (FINALLY!) I need a php script to connect to an external server over SSL-FTP. Long story short, this works on PHP 4, but not 5. <? $user = "USER"; $pass = "PASS"; $conn_id = ftp_ssl_connect("WEBADDRESS.com",21) or die ("could not connect"); $login_result = ftp_login($conn_id,$user,$pass); ?> On 5 it r...

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 can't change) is still using php 4. Anyone have any other suggestions? I'm not bothered a...

Magento product imports from csv file

hi i want to import magento product from csv file , and my csv file comma saprated, but when i import this csv file i got an error like this ( Skip import row, required field "sku" not defined) but i also define this field in this csv file. if any one idea about that then please guide me. which method i fallow to import my csv produ...

how to dice up the array

I have an array like this (below is the var_dump) array 0 => object(stdClass)[11] public 'VN' => string '571.5' (length=5) public 'color' => string 'GREEN' (length=5) public 'name' => string 'CIRRHOSIS' (length=9) public 'icd9ID' => string '5765' (length=4) public 'ID' => string '46741' (length=5) ...

Copying file uploaded vai PHP's HTTP Get in PHP 4

Hello, I have been working on adding functionality to a site originally written in PHP 4.4.9. It's not in their budget to port the site to PHP5, so don't even suggest it. (Although it needs it badly). The problem I am facing is how to copy binary data from a GET request to a file location on the server. The code that is currently writte...

Compiling PHP4.4 with MySQL 5 support.

I'm trying to support a rickety old system until the new intranet is built. The previous programmer somehow got PHP4 and MySQL 5 to work together by doing option 1 and I need to do the same to make a dev environment so I can stop messing directly with the live server. I currently have a test server running PHP4 and I can't connect to my...

can i open the docx file with the php?

hello, first of all i store the docx file in my php program and that time when user press submit button than it would be display a file content. but i dont know how to open docx file from the database using php? ...