[PHP] "What date/time was it 7 hours ago"?

2002-04-15 Thread Torkil Johnsen
"What date/time was it 7 hours ago"? I'm just trying to make a log using mysql/php This log is kinda supposed to show the time, local to the user. So I store datetime on the format -MM-DD HH:MM:SS in a datetime field. Using the php date function to get the date. This will store the time tha

[PHP] Session problem

2002-04-15 Thread Torkil Johnsen
I get this errormessage when trying to make my logon work: Warning: Cannot send session cache limiter - headers already sent (output started at /path/to/my/little/session.inc:9) in /path/to/my/little/session.inc on line 10 line 10 contains: session_start(); It does however seem like I am "logg

[PHP] Php/Mysql

2002-04-12 Thread Torkil Johnsen
Just a noob php/mysql question... (I suppose) When I try just putting php code in my insert queries, it goes like this: insert into mytable values('') select * from mytable, returns: Some string So the insert-query inserts both the code AND the string that the code echoes... Any help would be

[PHP] Problem with backslashes disappearing

2002-03-06 Thread Torkil Johnsen
Hello! I have a simple form taking in some user text input and storing it in a mysql database. My problem is that PHP strips off any backslashes in the text. I realize that backspace is used as an escape character in PHP, but sometimes i DO want it in there!! Is there a way to do this so that I

[PHP] Text editor for linux

2002-02-16 Thread Torkil Johnsen
Anyone know of a good text editor for linux, WITH syntax highlighting for php/html + other languages? - TOrkil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date & time

2002-01-29 Thread Torkil Johnsen
Hello... I have a field in my mysql database containing date&time on the format -MM-DD HH:MM:SS (24-hour format) Now. I want to output this as follows: DD.MM.YY at HH:MM:SS Currently I do this by this function: function convert_datetime($in){ $return = substr($in,8,2) . "." . substr

[PHP] Building my site... again

2002-01-25 Thread Torkil Johnsen
I started my HTML career back in the days when the newest MS Word-version came with a "save as html"-function. I saved as HTML, read the code, and learned by myself bit by bit. By the time I got my hands on HTML for dummies, I realized I was no dummy after all :) But now, asking this, I feel kinda

[PHP] Changing form look without reloading

2002-01-17 Thread Torkil Johnsen
Hello... I am wondering: Would it be possible to: 1) Select an option in a selectbox 2) Have a list of checkboxes pop up underneath the selectbox, based on what you selected 3) Without reloading the page... Show/hide layers I can figure out myself... I dont want to have X hidden layers with X ti

[PHP] To you know-it-all's out there...

2002-01-05 Thread Torkil Johnsen
Yeah this is a BIT of topic... I have this code: '); ?> http://www.w3.org/TR/2000/03/WD-SVG-2303/DTD/svg-2303-stylable.dtd"; > Using styles See for yourself at: http://www.torkiljohnsen.com/xperiment/index.psvg This produces an error message (which you ca

[PHP] How to compute time to load page...

2001-12-08 Thread Torkil Johnsen
g, to compare different designs and improve loading time for my "viewers". Anyone? - Torkil Johnsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] How do I check GD version?

2001-12-08 Thread Torkil Johnsen
Cheers all... This mail got rather long, so here are my 3 questions in a short version: 1) What is GD? (fore use with imagecopyresampled function) 2) How can I run a function that will tell me what version of GD is installed on my server, if any version at all? 3) Anyone know of some good hosts o

[PHP] Searching when using language specific characters

2001-12-04 Thread Torkil Johnsen
Note to Kurt Lieber: Stop whining about topics that have been discussed already. If this topic has been up before, just don't open it eh? Anyways: I have a register with lots of names in it, names which in some cases contain characters that can not be found in the ordinary english aphabet. Norweg

[PHP] Drawing line onto an image

2001-11-10 Thread Torkil Johnsen
this line to be displayed on top of the map. So I want to make a php-generated line that is drawn upon a gif. Maybe it is possible to draw this line inside a layer that is placed upon the webpage with a higher z-index that that of the map gif? ... any clever minds out there? Thanks in advance, T