[PHP] Setting paths in PHP

2001-05-10 Thread Johan
where index.php is located? I'm running Linux. Thanks in advance, Johan -- 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]

Re: [PHP] Setting paths in PHP

2001-05-10 Thread Johan
Tnx for your help, Johan -- 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] Re: php_xmldom.dll

2001-12-04 Thread Johan
Antwnhs T. wrote: > I have a problem with this dll, the dll exists on my hd and php does not > load it. > I have win2k pro with iis5, has anyone any kind of solutions ? Do you remeber to include it in your php.ini file? Regards, Johan -- PHP General Mailing List (http://www.php

[PHP] Re: mail function

2001-12-05 Thread Johan
> Is it possible to use php's mail function to send an html formated email > (one of your pages or a newsletter, whatever...)? If so, how? yes... Make a header called etc. Content-type: text/html Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Re: HOW to download PHP files without the use of a FTP client

2001-12-07 Thread Johan
> i hav e big problem i need to download some php files without the use of a > FTP client or other . > > so if you know a solution to my problem please reply Do you have possibility to use the PHP FTP functions? Or do you not havr ftp access?? regards, Johan -- PHP General

[PHP] Re: Remove carriage returns

2001-12-07 Thread Johan
Royw wrote: > I have a "memo" type field in a form and I am looking for the PHP command > to strip the carriage returns from the field before inserting into a > database. addslashes(); htmlentities(); ?? Regards, Johan -- PHP General Mailing List (http://www.php.net/

[PHP] Re: Image problem

2001-12-07 Thread Johan
by make a file with follow content: :o) Regards, Johan -- 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] Inconsistency session ?

2001-01-30 Thread johan
Mandrake distribution. We got no problem (with the same script) at Redhat distribution, after I get first PHPSESSID, I don't got any new PHPSESSID until i close the browser. Any experience with my problem ? Best Regards Johan -- -'- (o o) -ooO

[PHP] mailing with SMTP server requiring authentication

2003-02-02 Thread Johan Köhne
Is it possible and if so, how to send emails through SMTP servers that require authentication (logging in)? Thanks in advance

[PHP] Sort locale problem

2003-06-14 Thread Johan Grönvall
Hi! I'm trying to sort an array with strings containing swedish characters. However, the sort order is wrong. The following code produces "abäåö" while it should be "abåäö". $list = array("ö", "ä", "a","å","b"); setlocale("LC_ALL","se_SE.ISO8859-1"); usort($list, 'strcoll'); for($i=0;$ihttp://w

Re: [PHP] method chaining

2002-11-11 Thread Johan Ohlin
If I have understood correctly what you want to do then this will do fine... $foo->${$foo->get("bar")}->getBaz(); / Johan - Original Message - From: "Terry McBride" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 11, 20

[PHP] [notice] child pid 666 exit signal Segmentation fault (11)

2001-01-13 Thread Johan Björk
init=0x806afec <_init>, fini=0x81af0ec <_fini>, rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbb0c) at ../sysdeps/generic/libc-start.c:111 --- Johan Björk -- 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] Authenication with windows NT

2001-01-22 Thread Johan Andersson
Hi, I wonder if someone have tried to authenticate with the NT user database with PHP and Apache? I know it's very simple with IIS, but is it possible to do the same thing with Apache? R, Mr Johan Andersson Consultant @ Qbranch.se

[PHP] ftp_rawlist doesnt take directories with spaces?

2002-02-01 Thread Johan Köhne
it seems ftp_rawlist doesnt take directories with spaces for me. does anyone have any experience with this? johan kohne -- 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

[PHP] PHP parsing XML from Shoutcast

2002-05-19 Thread Johan Ekström
Anyone that has knowledge about this program, regarding it's XML output and php fetching that info and placing it on a php-page for user's to view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shoutcast

2002-05-19 Thread Johan Ekström
Anyone that has knowledge about this program, regarding it's XML output and php fetching that info and placing it on a php-page for user's to view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installing PHP 4.2.1

2002-05-20 Thread Johan Ekström
This is what you must do. Copy Part ^^ copy php4ts.dll to c:\winnt\system32\ copy php4sapi.dll to c:\winnt\system32\ if you want any extensions, copy them to to c:\winnt\system32\ configuration part ^^^ in php.ini ¨ edit doc_root like : c:/Inetpub/wwwroot ed

[PHP] Re: Installing PHP 4.2.1

2002-05-20 Thread Johan Ekström
This is what you must do. Copy Part ^^ copy php4ts.dll to c:\winnt\system32\ copy php4sapi.dll to c:\winnt\system32\ if you want any extensions, copy them to to c:\winnt\system32\ configuration part ^^^ in php.ini ¨ edit doc_root like : c:/Inetpub/wwwroot ed

[PHP] Problem : track_vars stopped working.

2002-05-22 Thread Johan Ekström
7;t think they would have forgotten this function in that file. Anyone got any idée's??? I kind of need that function to do multipages. johan ekström [EMAIL PROTECTED] http://www.dynamicduo.nu/

[PHP] Re: PHP 4.2.1 install

2002-05-22 Thread Johan Ekström
If you've installed php as a module, set it to "0" if as a cgi, "1" "Ryan Conover" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What do I set cgi_redirect var in the php.ini if I install php 4.2.1 under > win2k/iis5. > > Ryan Conover > [EMAIL PROTECTED] > [E

[PHP] Re: W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Johan Ekström
This is what you must do. Copy Part ^^ copy php4ts.dll to c:\winnt\system32\ copy php4sapi.dll to c:\winnt\system32\ if you want any extensions, copy them to to c:\winnt\system32\ configuration part ^^^ in php.ini ¨ edit doc_root like : c:/Inetpub/wwwroot ed

SV: [PHP] Installing PHP with windows

2001-11-21 Thread Johan Nilsson
no you dont have to install linux, apache works really fine under windows read more at http://httpd.apache.org/docs/windows.html good luck /johan -Ursprungligt meddelande- Från: Rob Bennion [mailto:[EMAIL PROTECTED]] Skickat: Wednesday, November 21, 2001 13:05 Till: [EMAIL PROTECTED

[PHP] Install problem

2001-04-09 Thread Johan Barelds
ns, unable to load in Unknown on line 0 Does anyone has a clue what is causing this problem and more interesting: how to solve it :-) Thanks in advance for your reply! Gretings, Johan Barelds --- -- Met vriendelijke groet, Johan Bareld

RE: [PHP] Splitting Text

2001-08-06 Thread Alfredeen, Johan
string into an array, and use the PHP function to retrieve the substring you want. I prefer the first option however. Good luck, Johan Alfredeen PongWorld.com www.pongworld.com -Original Message- From: Jordan Elver [mailto:[EMAIL PROTECTED]] Sent: Monday, August 06, 2001 3:20 PM To: PHP

RE: [PHP] selecting words

2001-08-07 Thread Alfredeen, Johan
Jamie, There was a post earlier very similar to this. If you have a database, you could use SELECT LEFT(mycolumn, 100) FROM mytable WHERE ... Without a db, you can use the PHP substring function: substr() Hope this helps, Johan Alfredeen www.pongworld.com -Original Message- From

RE: [PHP] Select

2001-08-14 Thread Alfredeen, Johan
so you don't have to hardcode the columns. It's up to you. Johan Alfredeen pongworld.com -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 8:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Select Hi, I'm having a problem with my Selec

RE: [PHP] Looking for link system

2001-08-14 Thread Alfredeen, Johan
Search http://sourceforge.net/ and http://freshmeat.net/ Good luck, Johan Alfredeen PongWorld.com -Original Message- From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 9:20 AM To: PHP List Subject: [PHP] Looking for link system I'm looking for a

RE: [PHP] insertion question

2001-08-15 Thread Alfredeen, Johan
between 2 or more large tables any way. Johan Alfredeen PongWorld.com -Original Message- From: Pétur Björn Thorsteinsson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: [PHP] insertion question I have to store a whole lot of text fi

RE: [PHP] weird array behaviour

2001-08-15 Thread Alfredeen, Johan
cho "$subarray[$j] "; } echo ""; } } else { echo $array; } } Johan -Original Message- From: Nick Davies [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] weird

[PHP] Zend Optimizer

2001-08-16 Thread Alfredeen, Johan
ptimizer? Is it used automatically or do I first need to compile the code into a binary file? If someone knows a great source of info on this (other than www.zend.com), that would be helpful too. Thanks, Johan Alfredeen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

RE: [PHP] MySQL substrings?

2001-08-20 Thread Alfredeen, Johan
This is actually not so difficult. Just download the mySQL documentation (from mysql.org or .com I believe is where I got it) and search the function list. Johan Alfredeen -Original Message- From: Tom Carter [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 19, 2001 8:53 AM To: Chris

RE: [PHP] php query for mysql table

2001-08-20 Thread Alfredeen, Johan
Wolfgang, Use LIKE '%life%' as in SELECT somecolumn FROM mytable WHERE LOWER(mycolumn) LIKE '%life%' Don't forget to compare same case strings. Johan Alfredeen www.pongworld.com >From mySQL manual: mysql> SELECT * FROM tbl_name WHERE set_col LIKE '%va

RE: [PHP] Adding records to a MySql database

2001-08-20 Thread Alfredeen, Johan
... Johan -Original Message- From: Dave.O [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Adding records to a MySql database I am new to MySql but wanting to use PHP to update and maintain a database. I thought I might use MySql. I have

RE: [PHP] Adding records to a MySql database

2001-08-20 Thread Alfredeen, Johan
INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name [(col_name,...)] VALUES (expression,...),(...),... or INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name [(col_name,...)] SELECT ... or INSERT [LOW_PRIORITY | DELAYED] [IGNORE] [INTO] tbl_name

[PHP] PHP Security

2001-08-31 Thread Alfredeen, Johan
taken care of by my webhost. So if you know of a good guide, online or off, please contribute. Thanks, Johan PongWorld.com -- 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 administrato

RE: [PHP] PHP Security

2001-08-31 Thread Alfredeen, Johan
db by checking all the db connections, results, and things, and killing the execution if there was some error. This works well. But I am sure I have not covered every possibility. I am mainly looking for a list of links or textbooks that outlines some of these things. Johan -Original

RE: [PHP] array search

2001-08-31 Thread Alfredeen, Johan
hat uses a btree or some other type of search methodology. Johan -Original Message- From: Papp Gyozo [mailto:[EMAIL PROTECTED]] Sent: Friday, August 31, 2001 10:02 AM To: Joseph Bannon; PHP (E-mail) Subject: Re: [PHP] array search yes, in_array($person, $people)! however, you may t

RE: [PHP] RE: [PHP-WIN] Can PHP and Java work together?

2001-08-31 Thread Alfredeen, Johan
rver again. Johan > > -Original Message- > > From: Jack [mailto:[EMAIL PROTECTED]] > > Sent: August 31, 2001 2:13 AM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: [PHP-WIN] Can PHP and Java work together? > > > > > > Dear all > >

RE: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Alfredeen, Johan
hile ($row = mysql_fetch_array($result)); } Johan Which World? PongWorld www.pongworld.com -Original Message- From: Egan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 04, 2001 3:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Assign multiple variables from mysql_fetch_row() call In

RE: [PHP] Can PHP and Java work together?

2001-08-31 Thread Alfredeen, Johan
: var jstitle = ; Good luck, Johan Which World? www.pongworld.com -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Friday, August 31, 2001 2:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Can PHP and Java work together? Dear all I want to ask if i want to

RE: [PHP] Variable naming

2001-09-25 Thread Alfredeen, Johan
Read this http://www.php.net/manual/en/language.variables.variable.php Johan www.pongworld.com php tt -Original Message- From: Fábio Migliorini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 12:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable naming $id = 1

RE: [PHP] PHP & MySQL

2001-10-02 Thread Alfredeen, Johan
mment if we could see a sample page. Johan -Original Message- From: Brian Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 12:13 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP & MySQL OK, I am working on my first shopping cart using PHP and MySQL and I am having a few

[PHP] MySQL tables are read-only

2001-10-04 Thread Alfredeen, Johan
te or is there a setting to set the whole db instance to write? I am using MySQL 3.23.32 and phpAdmin 2.2.0rc3. I appreciate your help. Johan Alfredeen www.pongworld.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: [PHP] Ide help needed

2007-04-03 Thread Johan Martin
On 4/3/07, clive <[EMAIL PROTECTED]> wrote: > Does anyone knows any IDE for PHP like VisualStudio.net? Second the use of eclipse. Look at easyeclipse.org - they have all the necessary plug-ins and add-ons in easy an easy to install package. Packages available for Linux, Mac and Windows. Incl

Re: [PHP] Re: htmlentities

2011-09-14 Thread Johan Lidström
On 13 September 2011 23:01, Shawn McKenzie wrote: > On 09/13/2011 01:38 PM, Ron Piggott wrote: > > > > Is there a way to only change accented characters and not HTML (Example: > ) > > > > The syntax > > > > echo htmlentities( > stripslashes(mysql_result($whats_new_result,0,"message")) ) . "\r

Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Johan Lidström
On 13 September 2011 21:56, Brad Huskins wrote: > Hello all you php coders out there, > > I'm doing an Open Source text editor (just a hobby) that's designed for PHP > developers and is accessible through the web. This has been stewing for a > while, and has gotten to the point where I can use it

Re: [PHP] lost return value during a static call

2011-09-16 Thread Johan Lidström
On 15 September 2011 15:57, Robert Williams wrote: > > On Sep 15, 2011, at 6:03, "chamila gayan" wrote: > > > when it goes through 2 static methods, at some point it stops returning > > value to the calling method. (please see comments in-line). > > The getArray() method and the 'else' portion o

Re: [PHP] OOP slow -- am I an idiot?

2006-10-10 Thread Johan Martin
out for a while so it may be in the sale section already. The collection class in chapter 5 discusses a programming problem just like yours. Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 http://www.catenare.com http://www.linkedin.com/in/catenare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mac PHP & MySQL

2006-11-02 Thread Johan Martin
resql and mysql support. Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 Phone: (415) 834-9802 Fax: (415) 294-4495 http://www.catenare.com AOL: catenarellc Yahoo: martin_johan GTalk: [EMAIL PROTECTED] FreeWorldDialup :716798 - http://www.freeworlddialup.com/ Gizmo Project: 74

Re: [PHP] CMS for Auto Parts

2006-04-24 Thread Johan Martin
al Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You may want to look into openlaszlo. http://www.openlaszlo.org/ You can use it to provide the Internet front-end and use PHP for the back- end. Also, now has the option for either DHTML or Flash on the client side. Johan Martin Catenare LLC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New install platform

2006-06-25 Thread Johan Martin
php/apache/mysql packages for Windows, Mac OS X and Linux. Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 Mailing Address: 268 Bush Street #2826 San Francisco, Ca. 94104 Phone: (415) 834-9802 Fax: (415) 294-4495 http://www.catenare.com AOL: catenarellc Yahoo

[PHP] Apache crashes on windows XP / PHP & MySQL

2004-02-14 Thread Johan Kok
Johan Kok -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] newbie question ; calling php script with parrameters from html

2005-02-02 Thread Sagaert Johan
can i use this kind of construction in my html code ? Select high if yes , how do i retrieve the passed string in the php code Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] str_replace weird output

2005-06-02 Thread Johan . Barbier
hing ? Thanks a lot :-) Johan

[PHP] code generation

2005-08-03 Thread Johan Grobler
is there a way to limit the time a website is available in php?, if you want to have a database driven website but you would only like it to be active for 6 months for instance, i'm doing a project at univirsity and this is part of the specs, but i cant think of a good way how to do it... --

Re: [PHP] code generation

2005-08-04 Thread Johan Grobler
les exit; } // show the site... > Andrew Darrow > Kronos1 Productions > www.pudlz.com > > > - Original Message - > From: "Johan Grobler" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, August 03, 2005 11:04 PM > Subject: [PHP] code generation > >

[PHP] Problem with Javascript:...submit()

2005-10-12 Thread Johan Grobler
while ($row = mysql_fetch_array($sql_result)) { echo" ".$row['LITERATURE_title']." - ".$row['res_fname']." ".$row['res_lname']." ... Everything works as long as $row['LITERATURE_title'] is one word, see this variable contains the names of books, and if the books name is "Heaven" for instance it

Re: [PHP] Help with mysql_query and INSERT INTO

2006-02-05 Thread Johan Martin
/manual/en/function.mysql-insert-id.php This will give you the record id of the last record inserted (or created). Johan Martin Catenare LLC 534 Pacific Ave San Francisco, CA. 94133 Phone: (415) 834-9802 Fax: (415) 294-4495 http://www.catenare.com AOL: catenarellc Yahoo: martin_johan MSN

Re: [PHP] Newbie needs help

2002-07-24 Thread Johan Holst Nielsen
h f.ex. mysql_select_db() But do NOT use mysql_db_query... Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Find DPI ing image?

2002-09-12 Thread Johan Holst Nielsen
Hi people... Anyone know a class or a solution so I can find the DPI (dot per inch) of an image? getImageSize do not help me? Any other solutions? Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using '/' instead of '?' in url querystring

2002-10-07 Thread Johan Holst Nielsen
exe'. Does anyone know what could cause this error and why the > url isn't working?? Try mod_rewrite to apache... http://httpd.apache.org/docs/mod/mod_rewrite.html Else try http://www.phpbuilder.com/columns/tim2526.php3 Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and Apache2?

2002-07-10 Thread Johan Holst Nielsen
Hi, Anyone know how long the developers is from a finale release that support Apache 2? Please advice! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: cookie ?

2002-07-10 Thread Johan Holst Nielsen
ettings? Do your denied websites to set cookies? mvh Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: cookie ?

2002-07-10 Thread Johan Holst Nielsen
register_globals = off! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: cookie ?

2002-07-10 Thread Johan Holst Nielsen
his case, it could be one of the errors? :) mvh Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: cookie ( still not working )

2002-07-10 Thread Johan Holst Nielsen
please show us the source, or a link to at phps file... And a link to a phpinfo() file? I cant help you without further information! Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newbie Logical opertaor question

2002-07-11 Thread Johan Holst Nielsen
$CheckArr = array("a", "b", "c"); if($var1 == 1 && in_array($CheckArr, $var2)) { . } Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 1 Form, 2 Submit-Buttons

2002-07-11 Thread Johan Holst Nielsen
> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back > & Next). The buttons should be images. How can I make php see, which > button has been pressed? " method="post"> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Re: 1 Form, 2 Submit-Buttons

2002-07-11 Thread Johan Holst Nielsen
Johan Holst Nielsen wrote: >> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back >> & Next). The buttons should be images. How can I make php see, which >> button has been pressed? > > > > if(isset($_POST["submit_back"]

Re: [PHP] mysql error or PHP

2002-07-15 Thread Johan Holst Nielsen
escape-string.php Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Johan Holst Nielsen
x27;; > } > } > } > ?> UPS if(ereg("^[a-zA-Z0-9]+\.$INPUTDATE\.pdf", $file)) The ereg line should look like this :) Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Johan Holst Nielsen
Johan Holst Nielsen wrote: >> > //DATEFORMAT MMDD >> if($dir=@opendir("/yourdirwithpdf")) { >> echo "Found following files:" >> while(($file=readdir($dir))!==false) { >> if(ereg("^[a-z

[PHP] Re: How to Detect File in a Specifc Directory on Window Env?

2002-07-19 Thread Johan Holst Nielsen
But i don't know which php function will perform this task (Check filename > from Right to Left). > > If you have any other suggestion, pls help me! I think I would do something like this: '.$file.'<\n>'; } } } ?> Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question

2001-01-12 Thread Johan Holst Nielsen
>Is there a way in PHP to get the size of a directory? (so I can see how much disk >space my >users are using in their home directory). >Can someone also tell me what the PHP General list is exactly. Is it run by PHP folk >only? Can >I subscribe to this list somewhere and maybe help someone els

Re: [PHP] Question

2001-01-12 Thread Johan Holst Nielsen
> you probably meant $totalfilesize += filesize($files); Offcause. Sorry just think I'm a bit tired ;o). But the rest should work? With Best Regards Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] graphic problem...

2001-01-13 Thread Johan Holst Nielsen
GD library only support PNG 256 color your PNG have more colors! With Best Regards Johan - Original Message - From: "Georg Buschbeck" <[EMAIL PROTECTED]> To: "PHP-Liste (general)" <[EMAIL PROTECTED]> Sent: Saturday, January 13, 2001 7:10 PM Subjec

SV: [PHP] round up number

2001-03-14 Thread Johan Holst Nielsen
>How do I round up a lot of decimal number like 10.232656898 to be 10.23 ? Should I use this? >$num = 10.26564787; >$Rnum = round($num); >What would be the function I am looking for and how? Try: $num = 10.26564787; $Rnum = round($num, 2); /Johan -- PHP General Mailin

SV: [PHP] Linking Libraries ...

2001-03-14 Thread Johan Holst Nielsen
o, you have to compile PHP with the IMAP library! Try to contact your provider an ask if they could install the library! /Johan -- 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

[PHP] Newbie - treestructure

2001-04-19 Thread Johan Evers Petersen
I'm Newbie - sorry if this is the wrong list! I'm trying to print this treestructure I've made, but it doesn't seem to print more than the first level. The subtree array of the children is empty, perhaps because I do not use the correct reference passing? Thank you for helping me out. This

[PHP] Treestructure

2001-04-19 Thread Johan Evers Petersen
I'm Newbie - sorry if this is the wrong list! I'm trying to print this treestructure I've made, but it doesn't seem to print more than the first level. The subtree array of the children is empty, perhaps because I do not use the correct reference passing? Thank you for helping me out. This is t

Re: [PHP] Treestructure

2001-04-20 Thread Johan Evers Petersen
$this->level[$pos] = str_repeat(' ', $padding * 2); $this->_make_tree($category_id[$pos]); } $padding--; } all you need is three fields, the categories id, the categories parent, and the categories name. recusion is tricky stuff :) -- Chris Lee [EMAIL PR

SV: [PHP] PHP Book?

2001-04-27 Thread Johan Holst Nielsen
PHP... and is NOT copied from the manual! :)) > > I am sure most of you in this group have got some sort of a PHP > book... can > you please tell me out of your experience which ones are good for > me to buy? Try "Core PHP Programmning", it's have a lot of good

[PHP] "Incorrect number of arguments"

2001-05-07 Thread Sverre Johan Tøvik
seeing as how this "feature" creates big headeaches for a lot of people (like us), is there any chance we might see an option to turn off this strict checking? Regards, Sverre Johan Toevik -- I speak for myself only! "to be yourself, in a world that tries, night and day, to make y

[PHP] Location Header

2001-05-10 Thread Johan Vikerskog (ECS)
h a PHP script to > > http://adam.artwork.com:9000//user/local/test/test.html > > Anyone got any tips for me on how to do this? > Please help me with this. > > //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

[PHP] Please help me with this.

2001-05-10 Thread Johan Vikerskog (ECS)
wants to know if it is possible. To do it. http://adam.artwork.com:9000//user/local/test/test.html Anyone got any tips for me on how to do this? Please help me with this. //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] Hi!

2001-05-11 Thread Johan Vikerskog (ECS)
with the variable HTTP_REFERER you go to the previous page. That means one page back in time. But how do go two pages back? Anyone have suggestions. Thanks for all the help you can give. //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] Hi!

2001-05-11 Thread Johan Vikerskog (ECS)
:10 To: Johan Vikerskog (ECS); php-general Subject: RE: [PHP] Hi! You can so this with JavaScript: Go back Two Pages -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense o

Re: [PHP] PHP4 and MySQL on Macintosh

2001-05-14 Thread Sverre Johan Tøvik
At 14:44 -0700 14-05-01, Andreas Pucko wrote: > Hi there, > > does anybody know if it is possible to run these applications on MAC 0S? > > Any experiences? PHP4 is part of the commercial Apache-on-UNIX-on-MacOS implementation WebTen (from Tenon), but not MySQL. I'd rather recommend upgrading

[PHP] a slight newbie question

2001-05-18 Thread Johan Vikerskog (ECS)
in this simple script(not for me). What should i do to print out $result? //Johan -- 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

[PHP] Won't save session ids?

2002-04-25 Thread Johan Holst Nielsen
uery!! And this works fine! The mainpage tries to get the sessions. session_start(); echo "Email:".$HTTP_SESSION_VARS["accountemail"]."".$HTTP_SESSION_VARS["accountsession"]; But i just get a "Email:" without any content? Please help me

Re: [PHP] Won't save session ids?

2002-04-26 Thread Johan Holst Nielsen
t;); Oh, sorry... I have just tried so many ways... but this works! Thank you very much :o) Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: array question--help

2002-04-28 Thread Johan Holst Nielsen
le to natsort the > values and display in the selection form box. Well lets try Please reply if this doesn't work? By the way... if you got further problems, please tell us which version of PHP you use. Regards, Johan Holst Nielsen www.weknowthewayout.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Timestamp math and format

2001-10-19 Thread Alfredeen Johan K
Thanks, That was just what I needed, ie: SELECT DATE_FORMAT(DATE_SUB(insert_date, INTERVAL 2 HOUR), '%b %e (%r)') Johan > On 17-Oct-2001 Alfredeen Johan K wrote: > > I store a timestamp in a database of when a record was > inserted. When I pull > > it out,

[PHP] "Database tags" ala Lasso

2001-10-29 Thread Sverre Johan Tøvik
Hi, For the futurists around here: Is there any chance that php will include "database tags" ala Lasso? For those who don't know what I mean, here's an axample (not quite correct Lasso code, but it should get the point across): [db select="somedb"] [db query="sql"] [record]

[PHP] Re: Controlling length of table data

2001-11-14 Thread Johan Holst Nielsen
words and then I'd have to build some > logic to test the length? Use wordwrap() ? Regards, Johan -- 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] Re: Session help

2001-11-14 Thread Johan Holst Nielsen
ter(), and make session_register() again with the new values. Think it will help you :o) Regards, Johan -- 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] Re: mail() function

2001-11-14 Thread Johan Holst Nielsen
but try making it like this: $mailheaders = "FROM: Do Not Reply \nREPLY-TO: "; regards, Johan -- 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] Re: PHP + apache .htaccess

2001-11-14 Thread Johan Holst Nielsen
me each ?? If you want to use .htaccess can you make some links like this, to the customers who is logged in: http://username:[EMAIL PROTECTED]/secretfolder/ Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread Johan Holst Nielsen
0) { header("Content-type: you choose"); header("Content-length: filesize('/home/filename')"); header("Content-Disposotion: inline; filename=filename.tar.gz"); readfile("/home/filename"); } else { echo "you are not allowed t

[PHP] Re: I suck at regular expressions!

2001-11-14 Thread Johan Holst Nielsen
e return "(No Title)"; > } Try: function getTitle($filename) { $fp = fopen($filename, "r"); $filecontent = fread($fp, filesize($filename)); if(eregi("(.+)", $content, $title_arr)) { return addslashes(htmlspecialchars(trim(strip_tags(

  1   2   >