Jump to content

vineld

Members
  • Posts

    286
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

vineld's Achievements

Member

Member (2/5)

0

Reputation

  1. Is it possible to retrieve a visitor's iPhone device id? If so, how? If it's not possible, do all iPhones accept cookies?
  2. That's not entirely true. You CAN use PHP in CSS as you generate it (meaning you don't have a static .css file) but it does not sound like that is what you want to do in this case. I suppose all you want to do is toggle the display depending on what the user does? Then you should simply use javascript.
  3. If they're not too many you could store the information in a javascript array for example. If they're too many (then maybe your solutions isn't that good anyway) you could simply store the current database id and then just select the previous or next entry upon the user's action.
  4. What exactly is it that you want to do? Set the class in the html code instead would be my suggestion and then toggle it using javascript if that is what you want to do.
  5. Problem solved. Our soap client apparently didn't use UTF-8 as default...
  6. I am experiencing some character encoding problems. Our system is built in ISO-8859-1 for various reasons. Our database text fields are in our local version of latin-1. So far so good. However, when communicating with other servers we obviously need to send xml data in utf-8 which is where the problems start. What happens is this: 1. We have a page saved in ANSI 2. I fetch text from the database 3. I use utf8_encode(TEXT) 4. The above is sent via xml However, on the other side the receiver views the message with characters like 'ö' instead of the correct utf8 string. Where am I going wrong here?
  7. vineld

    crontab issues

    Good question, it seems to have something to do with /bin/bash. It is the correct path but it still complains (no such file or directory, bad interpreter). I have chosen the simple solution for now, just adding the cron job directly into crontab. That works but I still would like to know what causes the problems.
  8. vineld

    crontab issues

    Oh, and when I run crontab -l it does list all of my cron jobs in the first file.
  9. vineld

    crontab issues

    I am used to the control panels web hosting companies and therefore I rarely use crontab close to the source. Now I have no clue as to what I am doing wrong. In /home/DIR/ I have a file called crontab which contains the following: Then, MY_FILE (no file extension) contains the following lines: I have no clue where things are going wrong... When I run the final line via SSH it works just fine.
  10. The problem does not seem to be NuSOAP related at all. File_get_contents and curl between the two servers are also slow which means that the problem lies with our server. Does anyone have a clue what could be wrong? NuSOAP and the web service in questions works just fine when I try it at a web host of my own.
  11. I am experiencing some difficulties using the NuSoap classes to connect to a .NET based web service. We run PHP4 on our server for various reasons so we are not able to use the built-in SOAP functionality of PHP5. I am able to connect to the web service and retrieve a result from a method. However, it takes forever. Every single request takes EXACTLY 20 seconds. No less, no more at any time. When I check the debugger, it appears as if it is our server that takes forever to connect. Here is where all time is spent: 2010-02-27 20:31:21.387007 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host [REMOTE SERVER OF WEB SERVICE], port 80 2010-02-27 20:31:21.387090 soap_transport_http: calling fsockopen with host [REMOTE SERVER OF WEB SERVICE] connection_timeout 0 2010-02-27 20:31:41.403328 soap_transport_http: set response timeout to 30 2010-02-27 20:31:41.403415 soap_transport_http: socket connected Every other part of the process goes well it seems. Does anyone have any clue as to what the problem could be? Any tips or hints would be highly appreciated.
  12. Oh, there is an __EVENTVALIDATION field as well which is nothing until you search for a county. Is this value important to send? What I do now is simply request the page once, fetch __VIEWSTATE and _REQUESTDIGEST and then I use these values for the subsequent requests which does not seem to work well...
  13. I am trying to scan a form search page driven by Microsoft SharePoint using PHP and cURL functions. However, I am only able to fetch the page using no search arguments at all, thereby returning all search results. As soon as I add a county variable it returns an error page without any usable message. __VIEWSTATE is usually not an obstacle but could it have something to do with the __REQUESTDIGEST field? Is this impossible or am I missing something?
  14. Could it have to do with permissions on the target side? The request reaches the target files and it produces an output although the cron file does not seem to be able to retrieve the content for some reason.
  15. Yeah, they are and they work just fine.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.