User Profile
Collapse
-
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. -
fopen() returns false. I guess it has something to do with permissions. I'm running Linux, CentOS with Apache.
Any ideas? -
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... -
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... -
I've found the solution...just add &%{QUERY_STRING } at the end of the rewrtie ruleLeave a comment:
-
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... -
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... -
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? -
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
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...Leave a comment:
-
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... -
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!...Leave a comment:
-
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
-
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? -
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. -
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... -
Hi!
I think this is your problem.
Code:global $firstname, $lastname, $address, $city, $state, $zipcode, $phono, $altphono, $email, $objective, $education, $certnsems, $workexp;
Code:VALUES('$firstname', '$lastname', '$address', '$city',
Leave a comment:
-
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) ...
-
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? -
No activity results to display
Show More
Leave a comment: