User Profile

Collapse

Profile Sidebar

Collapse
luttkens
luttkens
Last Activity: Oct 28 '10, 07:49 PM
Joined: Jul 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • luttkens
    started a topic iPhone - monitor running apps

    iPhone - monitor running apps

    Is there a way to create an app that can access what apps that are currently running on the device? I just want be able to list what other apps that are currently running, that's it.
    See more | Go to post

  • fopen() returns false. I guess it has something to do with permissions. I'm running Linux, CentOS with Apache.

    Any ideas?
    See more | Go to post

    Leave a comment:


  • Get reason for false-return when using file_put_contents?

    All of a sudden I have discovered that it is no longer possible to create files on my server by running php scripts. When I call the function file_put_conten ts() it returns false.

    It worked before, but not now. I try to find the reason for this, but since it doesn't throw any error I can't find it in the error_logs, in order figure out why this is happening...

    Is there anyway to find the reason for why a false-value...
    See more | Go to post

  • luttkens
    started a topic How do I specify charset and line breaks in files?
    in PHP

    How do I specify charset and line breaks in files?

    I have an annoying problem that should be easy to solve.

    I need to create a file in ASCII-format (ISO-8859-1) with windows-line breaks <CRLF> and send it via FTP. I'm using PHP on a Linux server and the FTP-transfer is not a problem... The script files are encoded with UTF-8 .

    As I understand it the FTP-software might affect (change) the line breaks when transferring. Perhaps also the charset?

    Can...
    See more | Go to post

  • I've found the solution...just add &%{QUERY_STRING } at the end of the rewrtie rule
    See more | Go to post

    Leave a comment:


  • luttkens
    started a topic ModRewrite; Sortable list with nice-looking urls

    ModRewrite; Sortable list with nice-looking urls

    I'm using mod_rewrtie to have nice look urls.
    One of my rules are:
    RewriteRule ^category/([^/\.]+)/?$ /tidskrifter_lis ta.php?category =$1

    ..which turns www/category/misc into www/tidskrifter_lis ta.php?category =misc. This page shows all items in that category in a list. Since I want the user to be able to sort the list by different columns I need to be able to add parameters to the url.

    usually I would do...
    See more | Go to post

  • luttkens
    started a topic Function for making url-friendly strings

    Function for making url-friendly strings

    I'm using MySql on a web server. Iv''e got at table with diffrent catgories, where some of the category has non-url-supported charcters such as &, : åäö, etc.

    I'd like function that turns all non-url-supported-characters into a '-'. For instance: Me & My Friends -> me-my-friends.

    I know that I can make another table with "url-name" but that's not a good solution for med. I would also like to avoid...
    See more | Go to post

  • luttkens
    started a topic Using Views Is Slower Than Execute the Same SQL

    Using Views Is Slower Than Execute the Same SQL

    I've noticed that if I create a view from of a SQL-query, the view is executed more slowly compared to execute the very same SQL. Why is this? And is there a way to avoid this?
    See more | Go to post

  • luttkens
    replied to Fetch only Date and Month from Date
    Take a look at the DATE_FORMAT function. In your case it would be something like

    Code:
    SELECT DATE_FORMAT(DateField, '%Y-%m-%d') FROM table
    See more | Go to post

    Leave a comment:


  • Since I include the file from different locations, I can't do it the same way I do with the include...All paths are realative.

    I could use a constant, but that's trouble when I'm uploading the site - and I do that quite often to fix bugs...
    See more | Go to post

    Leave a comment:


  • luttkens
    started a topic Save file at the same place as an included script
    in PHP

    Save file at the same place as an included script

    I've got a script to access my database called mysql.class.php. So from every other script that is talking to the database, this file i included, like this for instance:

    [PHP]<?php
    include("../classes/mysql.class.php ");
    //Code using the included file goes here
    ?>[/PHP]

    Now I want the file mysql.class.php to save a log-info for every query in a file that is placed in the same folder...
    See more | Go to post

  • luttkens
    replied to Help with MySQL Group function (I think)
    Thanks for your answers!

    Well I need it to be dynamic so I used the group_concat function and combined it with a PHP-script.

    It works very nice!...
    See more | Go to post

    Leave a comment:


  • luttkens
    started a topic Help with MySQL Group function (I think)

    Help with MySQL Group function (I think)

    I have a table salary, and when I select it, it looks like this

    Code:
    Name          Year   Income
    -------------------------------
    James Smith   2008   33000
    James Smith   2007   32000
    James Smith   2006   31300
    James Smith   2005   30100
    James Smith   2004   28000
    Oliver M.     2008   19700
    Oliver M.     2006   18000
    Oliver M.     2005   16000
    How can I make the...
    See more | Go to post

  • luttkens
    started a topic Enter life-time rule for rows in a table

    Enter life-time rule for rows in a table

    I'm gonna keep track of all uniqe visitor on a web page and therefore I need to store all visitors IP-number. Each IP-number is only counted as a visit if its on diffrent days. So the IPs will be saved for 24 hours.

    Is there a way to automaticly delete rows after 24 hours in a table?
    See more | Go to post

  • How to set textbox size to fit a number of characters and lines

    I want i textbox to fit a specic amount of chars and lines. I'm using font Courier New, where all the letter has the same width. Since different DPI-setting changes the font-size I want to set the textbox width to fit a specific amount of characters when the textbox is loaded.

    Any suggestions?

    I've tried to use MeasureSstring but thats not wokring 100% correct for diffrent number of charcters.
    See more | Go to post

  • Run DLL with regsvr32 works on XP but not on Vista

    I want to register a DLL (fastreport3.dl l (version 4.4, size 2 400 kB)) on Windows Vista using regsvr32. It works on Windows XP, but not on Vista. I have tried to do it as administrator and I have tried to turn on/off UAC.
    Evereytime I got a message which says that the DllRegisterServ er encounterd a problem and will be shut down.

    If I create the register keys manually, everything works fine.

    Why can't regsvr32...
    See more | Go to post

  • Hi!

    I think this is your problem.

    Code:
    global
    $firstname, $lastname, $address, $city, $state, $zipcode, $phono, $altphono, $email, $objective, $education, $certnsems, $workexp;
    As far as I understand you think that $firstname will contain the value from the textbox 'firstname'. It doesn't work like this. Change the following code

    Code:
    VALUES('$firstname', '$lastname', '$address', '$city',
    ...
    See more | Go to post

    Leave a comment:


  • luttkens
    started a topic Indexes

    Indexes

    I've never really understood how to use Indexes, but I know it's good for performance. And know I've got a performance issue, which I think can be solved by uding index or sometihng alike. Here's my problem.

    I have a field which cointains an array of values. To extract the value I want to show, I do like this:

    Code:
    SELECT CAST(charsplit(s.bgdRumSpecifikation,';',65) As SIGNED) ...
    When selecting many records...
    See more | Go to post

  • luttkens
    started a topic Deploying MySQL ODBC with .NET application

    Deploying MySQL ODBC with .NET application

    Hi

    I've made an application in .Net which connects to a MySQL database via remote access. It all works fine - if the user has installed the MySql ODBC Driver on it's machine.

    My question is how I can include the MySQL ODBC Driver in the MSI-file (created in Visual Studio)? I want the driver to be installed automatically if the users doesn't have it.

    How do I do it?
    See more | Go to post

  • luttkens
    replied to All IF-statement returns "Syntax error"
    Thanks for helping me! Problem solved!
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...