RE: [PHP] create a file

2002-02-28 Thread Niklas Lampén
fopen("file", "w") -Original Message- From: Thomas Franz [mailto:[EMAIL PROTECTED]] Sent: 1. maaliskuuta 2002 9:55 To: [EMAIL PROTECTED] Subject: [PHP] create a file good morning, i want to create a new file and save it in the current dir. I look in the manual but only i found how to

RE: [PHP] stripslashes in web forms

2002-03-04 Thread Niklas Lampén
This should do it: Niklas -Original Message- From: Claudiu [mailto:[EMAIL PROTECTED]] Sent: 4. maaliskuuta 2002 11:56 To: [EMAIL PROTECTED] Subject: [PHP] stripslashes in web forms Here is the ideea.. i have a string variable $test that contains let's say : 17" No

RE: [PHP] keeping the dot

2002-03-04 Thread Niklas Lampén
Don't don't don't me.. ehehehehee... %P Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 4. maaliskuuta 2002 12:20 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] keeping the dot Don't don't me. Regards,

RE: [PHP] case insenstive

2002-03-04 Thread Niklas Lampén
if (eregi("^a", $author)) { print "blah!"; } Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 8:08 To: [EMAIL PROTECTED] Subject: [PHP] case insenstive I need to make this case insensitive. This seems

RE: [PHP] How to get the local date formated like this: 2002-03-15 Y2K Problem

2002-03-05 Thread Niklas Lampén
date("Y-m-d"); Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 9:59 To: [EMAIL PROTECTED] Subject: [PHP] How to get the local date formated like this: 2002-03-15 Y2K Problem Hi there, I am trying to find out how to get the local

RE: [PHP] exists?

2002-03-05 Thread Niklas Lampén
Do you have manual at all? Download it from www.php.net. The function ereg() is your answer. Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 10:29 To: [EMAIL PROTECTED] Subject: [PHP] exists? It's late, I'm tired. I wan

RE: [PHP] File Upload.

2002-03-05 Thread Niklas Lampén
I've solved this kind of problems with three pages: 1. Form 2. Insert / Update data 3. Information about insert / update Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 15:34 To: [EMAIL PROTECTED] Subject: [PHP] File Upload.

RE: [PHP] Re: A stupid question...

2002-03-11 Thread Niklas Lampén
An option too: SELECT * FROM table WHERE SURNAME LIKE 'a%' ORDER BY surname ASC Niklas -Original Message- From: liljim [mailto:[EMAIL PROTECTED]] Sent: 11. maaliskuuta 2002 11:09 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: A stupid question... Hi chuck, use left() ass

RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Niklas Lampén
Do you want to do this in mySQL or PHP? Niklas -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 12. maaliskuuta 2002 12:30 To: 'Php-General' Subject: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/ HH:MM AM or PM in

RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Niklas Lampén
You have to parse your dates in anyway you like best to pieces, then use mktime() and then date() function. :) Niklas -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: 12. maaliskuuta 2002 12:35 To: [EMAIL PROTECTED]; 'Php-General' Subject: RE: [PHP]

RE: [PHP] rand()

2002-03-13 Thread Niklas Lampén
Use two rand()'s. $foo = rand(2); if ($foo == 0) rand(first_set); else rand(second_set); Niklas -Original Message- From: Jeff Sittler [mailto:[EMAIL PROTECTED]] Sent: 14. maaliskuuta 2002 7:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] rand() the min and max

RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén
First of all, take that 'I want to know when you received my e-mail' -thingie away. It's anoying. But to the solution: if ((x < A || x > B) && (y < A || x > B)) { do something.. } Niklas -Original Message- From: Balaji Ankem [mailto:[EMAIL

RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén
Last X should be Y. Niklas -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 14. maaliskuuta 2002 14:05 To: Php-General Subject: RE: [PHP] Hi some logic help is required! First of all, take that 'I want to know when you received my e-mail' -th

RE: [PHP] array within an array

2002-03-15 Thread Niklas Lampén
$array[0][1] is how you access multi-dimensional arrays. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: 15. maaliskuuta 2002 15:18 To: [EMAIL PROTECTED] Subject: [PHP] array within an array I have an sql query which calls * rows from a table

RE: [PHP] array within an array (one more query)

2002-03-15 Thread Niklas Lampén
Yes. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: 15. maaliskuuta 2002 15:35 To: Php-General Subject: RE: [PHP] array within an array (one more query) can you therefore have $array[0][9][2][3] if you had an array within an array within an array

RE: [PHP] Timing PHP

2002-03-18 Thread Niklas Lampén
microtime() function's manual entry tells you exactly what you want to do. :) Niklas -Original Message- From: Stig Kronback [mailto:[EMAIL PROTECTED]] Sent: 18. maaliskuuta 2002 12:00 To: [EMAIL PROTECTED] Subject: [PHP] Timing PHP Dear ? I need to see how long it takes for m

RE: [PHP] how to pass values to PHP by clicking on imagemap

2002-03-19 Thread Niklas Lampén
Just declare the link to have variable to be a number depending on point where user clicks: www.server.com/mypage.php?number=1 Now the variable $number is set to '1'. Niklas -Original Message- From: Simon De Deyne [mailto:[EMAIL PROTECTED]] Sent: 19. maaliskuuta 200

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Niklas Lampén
AFAK it's not possible since PHP is server-side and I guess your JavaScript is client-side. Niklas -Original Message- From: Marcel Besancon [mailto:[EMAIL PROTECTED]] Sent: 19. maaliskuuta 2002 14:05 To: [EMAIL PROTECTED] Subject: [PHP] Calling Javascript-function from php-s

RE: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Niklas Lampén
Then you need to do it like this: alert("DOH!"); But you can not make PHP call javascript functions directly. Niklas -Original Message- From: Marcel Besancon [mailto:[EMAIL PROTECTED]] Sent: 19. maaliskuuta 2002 14:20 To: [EMAIL PROTECTED] Subject: Re: [PHP] Calling

RE: [PHP] Is there any Possible Way to get data from Excel File?

2002-03-19 Thread Niklas Lampén
I think that the smartest way to insert data from Excel to mySQL is saving Excel file as CSV and then inserting the whole file. This is ofcourse only if you wan't to insert the whole file. Niklas -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: 20. maaliskuuta 2002

RE: [PHP] Returning mutliple matches of a regex with preg_match()

2002-03-20 Thread Niklas Lampén
preg_match_all(); Niklas -Original Message- From: Stefen Lars [mailto:[EMAIL PROTECTED]] Sent: 21. maaliskuuta 2002 7:28 To: [EMAIL PROTECTED] Subject: [PHP] Returning mutliple matches of a regex with preg_match() Hello all I have been scratching my head for the last two days about

RE: [PHP] Soring an array

2002-04-09 Thread Niklas Lampén
You could use these two functions: array_unique(); and sort(); Niklas -Original Message- From: Vasoczki Ferenc [mailto:[EMAIL PROTECTED]] Sent: 9. huhtikuuta 2002 11:26 To: Php Mailing List (E-mail) Subject: [PHP] Soring an array Hi! I am new on this list, so i welcome everybody

[PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampén
What causes this: I have a page getting variable $BackLink with string "http://www.domain.com/my_page.php4";. I accidentaly wrote and what I got out was "—‹‹ÅÐЈˆˆÑ™–‘“ž‘›š‡‹ŒÑœ’А™™š šŽŠšŒ‹ ™‘‹Ñ—Ë". What causes this? What does that ~ sign do before a var

RE: [PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampén
F... read it and got it! ;) I had no idea what to look for.. Niklas P.S. Thanks -Original Message- From: Tomy Wagner [mailto:[EMAIL PROTECTED]] Sent: 22. lokakuuta 2001 15:16 To: Niklas Lampén; Php-General Subject: Re: [PHP] Funny thing with variables rtfm :o http

RE: [PHP] Update Query - Urgent

2001-10-23 Thread Niklas Lampén
How about some code to see? Niklas -Original Message- From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] Sent: 23. lokakuuta 2001 15:22 To: [EMAIL PROTECTED] Subject: [PHP] Update Query - Urgent Hi I have a php script generate a sql update statement. when i query the database

RE: [PHP] mail() question

2001-10-23 Thread Niklas Lampén
e=Form"); }; Hope this helps. Niklas -Original Message- From: Jeff Kryvicky @ Collider [mailto:[EMAIL PROTECTED]] Sent: 24. lokakuuta 2001 0:33 To: [EMAIL PROTECTED] Subject: [PHP] mail() question Hi all, I've got a question that I'm sure can be answered, but I'm a l

RE: [PHP] Using A Query Results Multiple Times

2001-10-24 Thread Niklas Lampén
mysql_data_seek(); Niklas -Original Message- From: Adam Douglas [mailto:[EMAIL PROTECTED]] Sent: 23. lokakuuta 2001 21:48 To: PHP-DB (mailing list) (E-mail); PHP-General (mailing list) (E-mail) Subject: [PHP-DB] Using A Query Results Multiple Times I have an instance where I

RE: [PHP] problem with a while loop

2001-10-26 Thread Niklas Lampén
What happens there is this: $email = "1. row"; $email = "2. row"; $email = "3. row"; echo $email; You really need to put echo $email inside the loop or use '.=' to set up values to $email. Niklas -Original Message- From: Richard Kurth [mailto

RE: [PHP] year 2002 strtotime problem

2001-11-01 Thread Niklas Lampén
Funny, I quickly tried this: "; print $date2.""; print date("Y-m-d", strtotime($date1)).""; print date("Y-m-d", strtotime($date2)).""; ?> And the result was this: " Wed Dec 12 2001 Sat Mar 1 2003 2001-12-12 2003-03-01 "

RE: [PHP] year 2002 strtotime problem

2001-11-01 Thread Niklas Lampén
Great. :) I've got PHP 4.0.6 on linux. You? I think you should break the dates manually, it would be the most sure way to do it. Niklas -Original Message- From: John Clarke [mailto:[EMAIL PROTECTED]] Sent: 2. marraskuuta 2001 9:11 To: [EMAIL PROTECTED] Subject: Re: [PHP] year

[PHP] mySQL problem

2001-11-01 Thread Niklas Lampén
works great when I run it in shell. What could cause this? Niklas

RE: [PHP] mySQL problem

2001-11-02 Thread Niklas Lampén
"SELECT UCASE(Company) AS Company" works great, thanks! Niklas -Original Message- From: Dimitris Kossikidis [mailto:[EMAIL PROTECTED]] Sent: 2. marraskuuta 2001 11:11 To: 'Niklas Lamp¨¦n' Cc: PHP General Subject: RE: [PHP] mySQL problem Try this $Query = &

[PHP] Very non-PHP (this is Java)

2001-11-13 Thread Niklas Lampén
This time VERY non-php, but I trust you guys! ;) Are Java applets stored automatically to cache? Can I prevent it somehow? Niklas

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
= 4) { $test = "ereg_replace"; while(list($k, $v) = each($strtr_rep)) { $data = ereg_replace($k, $v, $data); } } } print $timer->getElapsed() . " seconds with $test"; ?> /* ---8<- END SOURCE -8<--8<- */ -- Best Regards Niklas

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
{ $test = "ereg_replace"; while(list($k, $v) = each($strtr_rep)) { $data = ereg_replace($k, $v, $data); } } } print $timer->getElapsed() . " seconds with $test"; ?> /* ---8<- END SOURCE -8<--8<- */ -- Best Regards Niklas Fondber

RE: [PHP] php in free()

2001-12-17 Thread Niklas Lampén
Your code runs more than 30 seconds. Try using set_time_limit(n) function. Niklas -Original Message- From: Rick [mailto:[EMAIL PROTECTED]] Sent: 18. joulukuuta 2001 2:46 To: [EMAIL PROTECTED] Subject: [PHP] php in free() I'm running a script that times out durring a certian a

[PHP] Session variables and register_global

2001-04-04 Thread Niklas Neumann
Hello, is it meant that session_register("test"); $GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!'; does not work properly (session variable test is not initialized with the value 'Hello World!') if register_globals is turned on,

RE: [PHP] How to resume session by id?

2001-08-16 Thread Niklas Lampen
}; Hopefully this helps you out. Niklas Lampen -Original Message- From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]] Sent: 16. elokuuta 2001 16:51 To: [EMAIL PROTECTED] Subject: [PHP] How to resume session by id? I'm getting session id neither from cookie, nor from GET/PO

RE: [PHP] How to resume session by id?

2001-08-16 Thread Niklas Lampen
Did you start the session like this: $Session = array( /* values to array */ ); session_start(); session_register("Session"); -Original Message- From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]] Sent: 16. elokuuta 2001 18:14 To: Niklas Lampen Cc: [EMAIL PROTECTED] S

RE: [PHP] php query for mysql table

2001-08-20 Thread Niklas Lampén
% works as a wildcard in mySQL. Example: "SELECT * FROM table WHERE Question LIKE '%life%'" would return all rows with field Question containing string "life". Niklas -Original Message- From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]] Sent: 20. eloku

RE: Re[2]: [PHP] php query for mysql table

2001-08-20 Thread Niklas Lampén
This can be solved by building a function to split users entry to pieces so that the query will be like "SELECT * FROM table WHERE Question LIKE '%word1%' || Question LIKE '%word2%' || Question." if only one of the words have to match the Question field. Niklas

[PHP] Creating images on the fly

2001-08-20 Thread Niklas Lampen
Is it possible to create images on the fly, if my phpinfo says nothing about GD? What I know is that ImageCreateFromPNG() says it's undefined. If not, what do I need to install to php to make it possible? Niklas Lampén -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] mySQL Query - comparing multiple values with one field

2001-08-21 Thread Niklas Lampén
field LIKE ('%value1%' || '%value2%')"? Niklas Lampén

RE: [PHP] How can I insert the data into the begining of a text file

2001-08-22 Thread Niklas Lampén
Use $fp = fopen($file, "r+"); PHP Manual would have told you this. Niklas -Original Message- From: Zenith [mailto:[EMAIL PROTECTED]] Sent: 22. elokuuta 2001 12:39 To: [EMAIL PROTECTED] Subject: [PHP] How can I insert the data into the begining of a text file I orgi

[PHP] Removing files from a directory

2001-08-23 Thread Niklas Lampén
file = readdir($Handle)) { if (substr($file, 0, 3) == "md_") { $split = explode("_", $file); if ((time() - $split[1]) > 300) { unlink($file); }; }; }; What this does is return a Internal Server Error! If add do unlink("map/".$file); it returns file not found. What to do? What is wrong? Niklas Lampén

RE: [PHP] Removing files from a directory

2001-08-23 Thread Niklas Lampén
Solved it by myself. :) unlink($file); needs to be *exact* address to the file to be unlinked like "/www/dir/map/$file". Just in case if someone else meets this problem! Niklas -Original Message----- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 23. elokuuta 2001 15:

[PHP] Reading files from a directory

2001-08-23 Thread Niklas Lampén
ernal Server Error (500). What can cause this? Is there a solution? Niklas

RE: [PHP] Re: send mail to mailing list using mail() or smtp?

2001-08-25 Thread Niklas Lampen
I'm sending a huge amount of mails with php. How can I send mail directly to the smtp server? Right now I'm using pipe to send each mail to sendmail. Works fine with about 35 000 mails, but it takes ages to run. What would be the smartest way? Thanks! -Original Message- From: Richard

RE: [PHP] Web fetching script

2001-08-27 Thread Niklas Lampén
You could do this if your $GrabStart and $GrabStop are ALLWAYS the same (Like: ###START### 10pm Blah ###STOP### ###START### 12pm Blahblah ###STOP### ) $file = file("url.txt"); $str = join("\n", $file); // You can use whatever to join the rows $GrabStart = "###START###"; $GrabEnd = "###STOP###";

RE: [PHP] Web fetching script

2001-08-27 Thread Niklas Lampén
That file doesn't exist. Put it there again so I can take a look at it. And pls notify me when it's there. :) Niklas -Original Message- From: Ben Quinn [mailto:[EMAIL PROTECTED]] Sent: 27. elokuuta 2001 11:41 To: Php-General Cc: Niklas Lampén; [EMAIL PROTECTED] Subject: Re:

[PHP] MySQL query length

2001-08-27 Thread Niklas Lampén
tion, so I don't know the exact length but it is VERY long. I also have to compare several words to one field so I've done many of those "Field LIKE '%blah%'" for those too. Is there any smarter way to do this? Niklas Lampén Internet Developer PubliCo Oy Ruoholahdenk

[PHP] What does PHP stand for?

2001-08-28 Thread Niklas Lampén
It just crossed my mind: I don't know what PHP stands for...so anyone? :) Niklas

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Niklas Lampén
Funny that there is no meanin for the first P. Niklas -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 13:57 To: 'Niklas Lampén'; Php-General Subject: RE: [PHP] What does PHP stand for? PHP Hypertext Preprocessor (yes, it's recu

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Niklas Lampén
So PHP stands for "Personal Home Pages Hypertext Preprocessor". What a nice name! :) Niklas -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 14:04 To: Niklas Lampén; Php-General Subject: RE: [PHP] What does PHP stand for? Well I guess

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampén
You can do this: $i = 0; $fp = fopen("list.txt", "r"); while (!feof($fp) && $i < 10) { $i++; $Text = fgets($fp, 4096); // Reads first 4096 characters from a row. print "$Text\n"; }; Niklas -Original Message- From: T

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampén
Oops.. Forgot to close the file. Put as last line: fclose($fp); Niklas -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 15:29 To: Tauntz; Php-General Subject: RE: [PHP] How do I read the first n lines from a file? You can do this: $i = 0; $fp

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampén
the lines in order last, last-1, last-2 Niklas -Original Message- From: Tauntz [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 15:00 To: php Subject: Re: [PHP] How do I read the first n lines from a file? hey.. thank you.. but is it possible to read the last lets say 10 lines

[PHP] If-statement

2001-08-29 Thread Niklas Lampén
Is it possible to write this shorter: if ($Var != "No1" && $Var != "No2" && $Var != "No3") { code }; Niklas

[PHP] Text area's width in NS

2001-09-04 Thread Niklas Lampén
This helped me out (at least made my site look nicer :), but is there a way set text area's width like this? Doesn't seem to work with same code. IE however works great. Why the hell there can not be just ONE standard?!? Niklas -Original Message- From: * R&zE: [mailto:[E

RE: [PHP] Another script doesnt work!

2001-09-04 Thread Niklas Lampén
If line 22 is '$message = blah!!' it should be '$message = "blah!!";' or then you're missing a ';' from the end of previous line. Niklas -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: 4. syyskuuta 2001 23:19 To: [E

[PHP] Mailing, which is faster

2001-09-05 Thread Niklas Lampén
Which is faster (and/or smarter), using function mail() or doing it by popen("/blah/sendmail")? Niklas

RE: [PHP] extending array

2001-09-07 Thread Niklas Lampén
If you wish $shoplist[$pid] have $price in it with $units, you have to make $shoplist a multidimensional array which is simpple: Try that out, it should give you the idea. You can make it even more multidimensional if you need to. Niklas -Original Message- From: Kristofer Thorssell

[PHP] Sessions getting broken

2001-09-10 Thread Niklas Lampén
with me in same room and we have lost the session at the very same time couple of times). Niklas

[PHP] Sessions Getting Broken

2001-09-11 Thread Niklas Lampén
rwise my sessions work great. :) Niklas

RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén
Hmm.. How do I know how fast they timeout? And it seems that all of my users drop at the same time, not sure about it thou. session.cache_expire is set to 180. session.cookie_lifetime is 0. Maybe those do tell you something and you tell me more! :) Niklas -Original Message- From

RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén
ve user to the login page with an error code. Niklas -Original Message- From: _lallous [mailto:[EMAIL PROTECTED]] Sent: 11. syyskuuta 2001 14:35 To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: Sessions Getting Broken Can't tell like that No more ideasmaybe somecode wou

[PHP] problem with form values

2001-09-12 Thread Niklas Lampén
If a user enters a quota ( " ) to a form field and sends it, the page trying to process values gets only a backslash ( \ ). No matter if I use GET or POST. How to get the right kind of a value? Niklas

RE: [PHP] Re: problem with form values

2001-09-12 Thread Niklas Lampén
t I need to get quotas to the keyword-field, so I can create better search engine. How to do that? Niklas -Original Message- From: Adam [mailto:[EMAIL PROTECTED]] Sent: 12. syyskuuta 2001 11:24 To: [EMAIL PROTECTED] Subject: [PHP] Re: problem with form values show us a snippet so we can

[PHP] RE: problem with form values

2001-09-12 Thread Niklas Lampén
How to do anything to the strings in php BEFORE the form is sent? Niklas -Original Message- From: James Holloway [mailto:[EMAIL PROTECTED]] Sent: 12. syyskuuta 2001 11:28 To: Niklas lampén Subject: Re: problem with form values Hi Niklas, use htmlentities() or htmlspecialchars() on

RE: [PHP] Re: problem with form values

2001-09-12 Thread Niklas Lampén
like onSubmit="blah()". Niklas -Original Message- From: James Holloway [mailto:[EMAIL PROTECTED]] Sent: 12. syyskuuta 2001 12:01 To: Niklas Lampén Cc: [EMAIL PROTECTED] Subject: [PHP] Re: problem with form values Sorry, I didn't mean it quite like that. After the user

RE: [PHP] syntax?

2001-09-13 Thread Niklas Lampen
In second example you can define which fields to insert, very usefull if you have a lot of fields. Niklas -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: 13. syyskuuta 2001 10:59 To: [EMAIL PROTECTED] Subject: [PHP] syntax? HI, I am new to this PHP thing. I was

RE: [PHP] cookies

2001-09-13 Thread Niklas Lampén
Heh, sure not related to PHP but one search engine in finland sends a variable "e" with value "mc2". :) Niklas -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: 14. syyskuuta 2001 8:59 To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subjec

RE: [PHP] R: File Uploads

2001-09-14 Thread Niklas Lampén
I'd use preg_match(). Something like should do the trick: if ($file != ".htaccess" && $file != "." && $file != ".."&& !preg_match("/(.*)\.php/i", $file)) Niklas -Original Message- From: --- [mailto:[EMAIL PRO

RE: [PHP] another easy cookie question

2001-09-14 Thread Niklas Lampén
First of all, before header() or setcookie() can't be any outputing code (like html). And here if you do: mailto:[EMAIL PROTECTED]] Sent: 14. syyskuuta 2001 12:47 To: [EMAIL PROTECTED] Subject: [PHP] another easy cookie question Hi all, This is what I have at the top of my php page (php-4.0.6

RE: [PHP] Can I use Microsoft Access as a database?

2001-09-16 Thread Niklas Lampén
I think that ODBC is your solution. Niklas -Original Message- From: A. op de Weegh [mailto:[EMAIL PROTECTED]] Sent: 15. syyskuuta 2001 13:05 To: [EMAIL PROTECTED] Subject: [PHP] Can I use Microsoft Access as a database? Hi all, for testing purposes in a school environment, I would

[PHP] MySQL query error

2001-09-17 Thread Niklas Lampén
Code: That results "You have an error in your SQL syntax near 'Constructor='2001-09-17', Enertec='2001-09-17', Seatec='2001-09-17'' at line 1". What's wrong? I don't see anything that can be wrong! Am I blind once again? Niklas

RE: [PHP] Re: MySQL query error

2001-09-17 Thread Niklas Lampén
:) It just started to work. World's a strange place. Maybe someone was doing something to the server/php/mysql, dunno. Niklas -Original Message- From: _lallous [mailto:[EMAIL PROTECTED]] Sent: 17. syyskuuta 2001 15:03 To: [EMAIL PROTECTED] Subject: [PHP] Re: MySQL query

RE: [PHP] Can I use Microsoft Access as a database?

2001-09-18 Thread Niklas Lampén
Try: $odbcId = odbc_connect("phpodbc.dsn", "admin", ""); Niklas -Original Message- From: A. op de Weegh [mailto:[EMAIL PROTECTED]] Sent: 18. syyskuuta 2001 10:57 To: [EMAIL PROTECTED] Subject: Re: [PHP] Can I use Microsoft Access as a data

[PHP] Speeding up program

2001-09-18 Thread Niklas Lampén
How big difference does it make in speed in these: or So actually I'm asking how much more/less it takes time to do the comparing against mysql_num_rows() insted of comparing against a variable. Niklas

RE: [PHP] PHP Email Handler

2001-09-19 Thread Niklas Lampen
A very good point. Niklas -Original Message- From: Anton Stroganov [mailto:[EMAIL PROTECTED]] Sent: 19. syyskuuta 2001 21:00 To: Wee Chua Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Email Handler My friend. I'm not quite sure I understand you correctly. Are you asking _us_

RE: [PHP] Quickie

2001-09-21 Thread Niklas Lampén
If nothing is beeing sent to output on the page then use header() else you need to use javascript. Niklas -Original Message- From: Daniel Alsén [mailto:[EMAIL PROTECTED]] Sent: 21. syyskuuta 2001 15:51 To: php Subject: [PHP] Quickie How do i send the user on to another page at the

RE: [PHP] file problem

2001-09-22 Thread Niklas Lampen
You might mean \n. Line: $str = "This\nis a\nsample" would output: This is a sample Did it help? Niklas -Original Message- From: Nikola Weber [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 0:35 To: php forum Subject: [PHP] file problem Hi ! Thanks for the quick

RE: [PHP] Quickie

2001-09-22 Thread Niklas Lampen
Read chapter: LXXVIII. Session handling functions Niklas -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 8:19 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Quickie Hi, I am trying to redirect the user to another page after user

RE: [PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Niklas Lampen
Output has started at variables.php on line 321. Niklas -Original Message- From: Tom Nickels [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 13:20 To: [EMAIL PROTECTED] Subject: [PHP] Cannot add header information - headers already sent by Hi everybody! I installed php 4.06 on

RE: [PHP] Parsing a CSV file

2001-10-03 Thread Niklas Lampén
That won't do if the list is 'R001,23,"2,5"'. I'd break that to parts with preg_match_all(). Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 3. lokakuuta 2001 15:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject

[PHP] Re: prob parsing Url

2004-09-14 Thread Niklas Lampén
Urlencode() and urldecode() should help you out. Niklas Sagar C Nannapaneni wrote: Hi folks.. I'm using a form to send data from one page to another. one of the input fields in the form has a quotation mark Ex.: samsung 15" monitor in the next page i cant get the text after the "

[PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Niklas Lampén
First of all, I'd use something like this: -- CODE -- . Foo -- END -- But the actual error is in the echo. You're having quotation marks inside it. You need to do it my way, or write the form like echo "..."; ?> Niklas Logan Moore wrote: I am cur

[PHP] Re: Submitting info from a form to a db

2004-09-15 Thread Niklas Lampén
First: Post the error code when you get one. Second: Split the code into pieces/rows to find errors. -- CODE -- -- END -- Easier to spot the error? md5() tag is not closed. Niklas Logan Moore wrote: heres the code, but im getting an error This time I dont have a clue whats happening -- PHP

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Niklas Lampén
I vote for the first option. xD Niklas Jason Wong wrote: On Monday 20 September 2004 10:11, Afan Pasalic wrote: I have right now on my server php 4.3.4 without GD2 support. Actually, doesn't have GD support at all (nothing on phpinfo(); ). How can I "turn it on"? :) You can tr

[PHP] Re: md arrays

2004-09-21 Thread Niklas Lampén
is in the cart allready. Niklas Justin French wrote: I have an array that looks something like this: $cart => Array ( [0] => Array ( [id] => LT4697 [qty] => 1

[PHP] Re: Does PHP need another mailing list???

2004-09-22 Thread Niklas Lampén
is no need for a new list. Spread the word of OO coding and the world will be a better place. :) Niklas Gerard Samuel wrote: Just wondering. With the advent of php5 with its OO capabilities, is php-general too *general* for advanced php5 users? For me, I've learned quite a lot from

[PHP] Re: open_basedir restriction and local value for php.ini

2004-09-22 Thread Niklas Lampén
s file in projects that has to be portable and include that file to every single page of the project. Niklas Bogdan Ribic wrote: Hello all, I am having problems with cleint's webserver and its open_basedir settings. open_basedir is set to folder where all my php files are, but when I i

[PHP] Re: open_basedir restriction and local value for php.ini

2004-09-22 Thread Niklas Lampén
I think my solution will get you rid of the error messages. Alternatively you can use to disable errors. Niklas Bogdan Ribic wrote: Thanx, but the script works fine with this include structure. I just need to get rid of the warnings. Niklas lampén wrote: Is the situation this: /home/a.php

[PHP] PHP Data cache ideas/solutions

2004-09-29 Thread Niklas Ojala
only get the table once per page load but I must be able to filter the table to get the data that I want. I am looking for some similar code to get me started or other ideas on how to make less queries to the database. /Niklas Ojala -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Need sql-editor

2007-01-31 Thread Niklas Karlsson
s database. So, I need a sqlmanger that I cant write and execute sqlcode and don't have the access, and where a can view the result nicely. Hope you understand, my English isn't on top :-) // Niklas

SV: [PHP] Need sql-editor

2007-01-31 Thread Niklas Karlsson
Niklas Karlsson wrote: > Hello everyone > > > > I need a good sql-editor where I can write sqlcode. The problem is that I > don't have rights to list tables, functions and so on. Now I use EMS Sql > Manger 2005, and if I want to write and execute sqlcode I need acc

[PHP] Dates and different time zones

2007-04-10 Thread Niklas Karlsson
"Europe/Stockholm", and all dates that is saved into the database is timestamp with time zone (using PostgreSQL). So a wonder who to handle different time zones? Have any of your experience of this? Cheers Niklas Karlsson

RE: [PHP] Dates and different time zones

2007-04-10 Thread Niklas Karlsson
Thanks for good answers. Okay, so I should set the default time zone to central GMT time, and then save GMT offset for every user. This sounds realistic, because I don't think that I need to correct the time for users that doesn't login. So, if I now have the GMT offset for every user, how do I di

[PHP] Function by reference?

2001-01-30 Thread Niklas Saers
into urlencode() I was thinking somewhere along the lines $func=&urlencode; $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"$func(\\1)\"",$this->dataToBeParsed); Cheers Niklas Saers -- PHP General Mailing List (http://www.php.net/)

[PHP] Function by reference

2001-01-31 Thread Niklas Saers
into urlencode() I was thinking somewhere along the lines $func=&urlencode; $tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"$func(\\1)\"",$this->dataToBeParsed); Cheers Niklas Saers -- PHP General Mailing List (http://www.php.net/)

<    1   2   3   >