[PHP] cutting up a string

2002-08-13 Thread Hans
hello :-) I have a string of 50 characters in length, including numbers and letters. I want to cut of the first 20 characters. Can anyone help me as to how I can achieve this? Thank you, regards Hans -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] posting variables to parent frame

2007-04-17 Thread Hans
Hi there, I'm trying to post variables to a parent frame, I'm working from a page that is in an iFrame. However, I don't know how to accomplish this. I tried target='top' to include in the form tag ( target="top">) but this didn't succeed. Can y

[PHP] PHP at LinuxWorld Expo 2003

2003-01-19 Thread Hans Zaunere
e and functionality. Learn More You'll find NYPHP's projects, mailing lists, announcements, job opportunities, and up-to-the-minute information about meetings, news and events at http://nyphp.org. Thank you, and see you at the Expo! = Hans Zaunere President, New York PHP http:/

[PHP] database selection

2003-02-16 Thread Hans Prins
Hello, Im trying to select only one row in a mysql database (in this case a poll with the smallest pollID)... Each row has a field called "pollID" which is the primary key and is auto incremented when a new row is inserted. I could possible do the following but I think its a bit extensive

[PHP] Re: database selection

2003-02-16 Thread Hans Prins
thank you, that did the trick :) "Thomas Seifert" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 16 Feb 2003 12:51:58 +0100 [EMAIL PROTECTED] (Hans Prins) wrote: > > > Hello, > > > > Im trying to selec

[PHP] Re: database selection

2003-02-17 Thread Hans Prins
One more question about this: If I wanted to select the last row, would I use this code? $query = "SELECT * FROM polls ORDER BY pollID DESC LIMIT 0,1"; "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &

[PHP] DB row selection

2003-02-19 Thread Hans Prins
select the bottom row? Would I have to do an extra query to count the rows and then select it with LIMIT? Or is there a way to do this without an extra query? thx, Hans -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DB row selection

2003-02-19 Thread Hans Prins
That's weird.. that was the first thing I tried (DESC), but it gave me a syntax error at runtime.. however, when I tried it now, it worked.. I probably had another error that confused me. Thx a bunch :-) "Ernest E Vogelsinger" <[EMAIL PROTECTED]> schreef in bericht [EMAIL

Re: [PHP] DB row selection

2003-02-19 Thread Hans Prins
Thanks a lot guys, the feedback so far has been most usefull Hans "Joel Colombo" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > same thing > > $query = "SELECT * FROM polls ORDER BY pollID DESC LIMIT 1"; > &

Re: [PHP] Javascript function

2003-02-19 Thread Hans Prins
There are a lot of other handlers that can call your function: onChange, onFocus, onBlur, onMouseOver, onKeyDown, etc.. gl :) "Van Andel" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] m... Try this. void function MyExampleFunction(theelement) { theelement.focus() } The v

[PHP] Re: Redirect without header or javascipt

2003-02-19 Thread Hans Prins
I'd say no.. but if this is about limitations of for example the header() function (where it needs to be called before anything should be output to the browser) then you could buffer your output with: ob_start() and ob_end_flush() Hans "Daniel Guerrier" <[EMAIL PROT

[PHP] server side including

2003-02-20 Thread Hans Prins
n included Anyone have any ideas? hans -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: server side including

2003-02-20 Thread Hans Prins
$HTTP_SERVER_VARS['REQUEST_URI'] did the trick "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Im have a "script.php" which needs to be able to tell if it has been > included in an .shtml file or

[PHP] including in shtml

2003-02-21 Thread Hans Prins
in shtml. I have also considered a session variable but since a session needs to initiated or continued before anything is output to the browser that wont work (I think). does anyone have a solution to get this to work? thanks, Hans -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: selection in form-field

2003-02-21 Thread Hans Prins
I think javascript would be your best option Michiel. "Michiel Van Heusden" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i have quite an easy question: > > is there a way in PHP to trace the selection in a certain form-field? > i need this for building a si

[PHP] Re: session expiration

2003-02-21 Thread Hans Prins
can you show us the PHP code that you use to manage your session? "Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm using sessions for authentication in a content management system and > experiencing rare but occasional problems with the sess

[PHP] Re: session expiration

2003-02-21 Thread Hans Prins
I am asking because if you are using: session_set_cookie_params(), the effect of this function only lasts for the duration of the script. "Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm using sessions for authentication in a content managem

[PHP] Re: how to get the array

2003-02-21 Thread Hans Prins
$globalArray = $_POST['yourPostArray']; $arrayCount = count($globalArray); // this loops and prints all array values for the amount // of values found with the count function above for ($count = 0; $count < $arrayCount; $count++) { print $globalArray[$count]; } goodluck :) "Pei_world" <[EMA

Re: [PHP] Re: session expiration

2003-02-21 Thread Hans Prins
I think a database session would be of more use to you since you would have more control over the lifetime of the session etc "Lowell Allen" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > From: "Hans Prins"

[PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
did you try: print mysql_error(); "Ml" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Currently I have some php code that displays a message if a connect to my > database fails. Is there anyway I > can get a more descriptive error message? So I can see exactl

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Hans Prins
sage generated by > the expression will be saved in the global variable $php_errormsg. This > variable will be overwritten on each error, so check early if you want > to use it. > > Hope that clears things up a bit. > > Regards, > Jason k Larson > > > > Hans Pri

[PHP] Re: including in shtml

2003-02-21 Thread Hans Prins
anyone? "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hello, > > I have a problem with including a "test.php" into a "test.shtml" and passing > a variable to the "test.shtml" which should be processed

[PHP] ssi problem

2003-02-21 Thread Hans Prins
ethod but I got an error stating that post is not a valid method in shtml. I have also considered a session variable but since a session needs to initiated or continued before anything is output to the browser that wont work (I think). does anyone have a solution to get this to work? thanks,

[PHP] Re: including in shtml

2003-02-21 Thread Hans Prins
Im trying to write a poll script that is easy to intergrate into other documents of a site and thought that since shtml is a much used method, I want to make it available. "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hello, > > I have a

Re: [PHP] Re: including in shtml

2003-02-22 Thread Hans Prins
P> documents of a site and thought that since shtml is a much used method, I > HP> want to make it available. > > HP> "Hans Prins" <[EMAIL PROTECTED]> schreef in bericht > HP> news:[EMAIL PROTECTED] > >> Hello, > >> > >> I ha

[PHP] Re: Question about str_replace()

2003-02-22 Thread Hans Prins
Assuming that you do want to replace "[p]" with "", the code you posted worked for me. The following printed: "leadingtexttrailingtext" to the screen '); $text = "leadingtext[p]trailingtext"; $words = str_replace ($find, $replace, $text); print $words; ?> "Al" <[EMAIL PROTECTED]> schreef in b

Re: [PHP] table width problems

2003-02-23 Thread Hans Prins
If your html table is too wide that is useually due to a pixel size or a percentage which is too large. You could try playing around with those values and calculate how much columns you have and maybe how much of a percentage size they should have relative to the screen width tables can be a bi

[PHP] Re: Image Resize

2003-02-23 Thread Hans Prins
You will need the GD library of image functions for this to work. You can find more information at the following page: http://www.php.net/manual/en/ref.image.php gl "Randum Ian" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi guys, > > Is it possible to resize an uploaded file

Re: [PHP] ICQ # validation

2003-03-04 Thread Hans Prins
Also, don't forget to escape the $ character in your expression, since it is reserved for variable declaration. "Ales KrajníK" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Well ... > > - the {7,9} means that the previous char/group should repeat 7 to 9 times > ... > - ^ means t

[PHP] cookie secure argument?

2003-03-04 Thread Hans Prins
Can anyone tell me what the secure argument in the setcookie() function does? setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookie secure argument?

2003-03-04 Thread Hans Prins
thank you :) "Rasmus Lerdorf" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Means the cookie will only be sent over an HTTPS connection. > > On Wed, 5 Mar 2003, Hans Prins wrote: > > > Can anyone tell me what the secure argument in

Re: [PHP] Best template class

2002-07-24 Thread Hans Lellelid
I would recommend Smarty (http://smarty.php.net). Smarty is unique (?) in that it compiles templates into PHP code -- making it one of the faster templating engines out there. I use Smarty & love it. Cheers, Hans On Wed, 2002-07-24 at 15:02, Remy Dufour wrote: > Hi, > Im current

[PHP] form variables

2002-09-09 Thread Hans Prins
Hello, I have a form field of the type "scrolling text box" it lets users input a multiline string. I then pass this string as a variable to a php document that prints this string to the screen: print "$mailingAddress"; however. this outputs it all in one line. Does anyone have an idea as t

Re: [PHP] form variables

2002-09-09 Thread Hans Prins
thank you very much :-) "Chris Shiflett" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am guessing you mean the input is a textarea. > > At any rate, I believe what you want is nl2br() > > Happy hacking. >

[PHP] Binary Safety and Sockets

2002-09-20 Thread Hans Zaunere
inary safe? How can I tell? When will they be? And, while we're on the subject, in general, are PHP functions binary safe? Should I assume functions aren't binary safe unless noted otherwise - or should I assume the inverse? If anyone could shed some light on this, I&#x

Re: [PHP] Binary Safety and Sockets

2002-09-20 Thread Hans Zaunere
Hrmm... Well the base64_* bit would work for the payload, but I'm working with raw sockets (ICMP at the moment) and of course the header needs to be really binary. Are the socket_*() planned on being binary safe in the near future? Anyone do traceroute/ping in PHP yet? Hans ---

[PHP] session_start() --> no more output

2002-09-22 Thread Hans Wilmer
Hi, the following PHP script causes me trouble: This is just a simple example. The problem is that the script produces no output at all when called with the browser. I could use instead, but I won't get any output either. Everything works as expected when session_start() or session_reg

Re: [PHP] session_start() --> no more output

2002-09-23 Thread Hans Wilmer
On Sun, Sep 22, 2002 at 06:03:50PM -0500, Michael Sims wrote: > > >session_register("bunt"); > >phpinfo(); > >?> > > > >This is just a simple example. The problem is that the script produces > >no output at all when called with the browser. > > Is it possible that display_errors is set to "Off" i

[PHP] CVS tutorials

2002-10-08 Thread Hans Himmel
ly deeper knowledge of it later on. Thanks, Hans _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP caching ideas?

2002-10-12 Thread Hans Himmel
r are there any other good ideas to solve PHP caching problems? Thanks, Hans _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] 4.0.4pl1 still reports version as 4.0.3pl1

2001-01-17 Thread Hans Lehmann
I had 4.0.3pl1 running on a Windows98 system. After I upgraded to 4.0.4pl1, calling phpinfo() still reports the version as being 4.0.3pl1. I deleted the original c:/php/ directory completely before installing the newer version, so I don't *think* i left behind any old files. The php4ts.dll file

[PHP] Session Freakiness. Losing Session.

2002-04-05 Thread Hans Petersson
ctory containing the sessionfiles, while a tester browsed the site, and watched the session disappear from the directory before timeout has elapsed. It is an intermittent problem, and seem to happen randomly... Any ideas what's going on here? Any hints would be greatly appreciated! Reg

RE: [PHP] Re:

2009-02-16 Thread Hans Zaunere
nk good fit. Has this been listed as coming at the same time as short tags go away (or preferably, before...)? --- Hans Zaunere / Managing Member / New York PHP www.nyphp.org / www.nyphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re:

2009-02-16 Thread Hans Zaunere
> As long as we're taking votes... Most of my template code looks like > this: > escape($this->var) ?> > > I'd be happy to never see any variation of bottleneck of my productivity. I can appreciate that, but PHP *is* a templating language that is meant to embed dynamic strings into static strin

[PHP] "use strict" or similar in PHP?

2009-02-26 Thread Hans Schultz
mething like PHPDBC similar to JDBC? TIA, Hans -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "use strict" or similar in PHP?

2009-02-26 Thread Hans Schultz
separately with database doing necessary escaping and everything).. Is there something like PHPDBC similar to JDBC? You can use  sprintf("select * from `user` where `username`=%s",$user); Also you can look into the great frameworks of PHP like  ZendFramework, CodeIgniter, CakePHP etc.

Re: [PHP] "use strict" or similar in PHP?

2009-02-26 Thread Hans Schultz
Oh, I didn't mentioned that I tried that, I was thinking  something like failing at compile time (like perl with "use strict" in programs)Thanks for reply, Hans --- On Thu, 2/26/09, Lewis Wright wrote: From: Lewis Wright Subject: Re: [PHP] "use strict" or similar in PH

Re: [PHP] "use strict" or similar in PHP?

2009-02-26 Thread Hans Schultz
top piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- On Fri, Feb 27, 2009 at 3:13 AM, Hans Schultz wrote: Oh, I didn't mentioned that I tried that,

Re: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Hans Schultz
On Thu, 26 Feb 2009 22:38:13 +0100, Shawn McKenzie wrote: There is no "compile" time. PHP is interpreted so it is compiled and then executed. If you always want error reporting, then set it in php.ini. It is compiled in no time, so there is no compile time? LOL -- Using Opera's revolut

Re: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Hans Schultz
On Fri, Feb 27, 2009 at 3:08 PM, Hans Schultz wrote: On Thu, 26 Feb 2009 22:38:13 +0100, Shawn McKenzie wrote: There is no "compile" time. PHP is interpreted so it is compiled and then executed. If you always want error reporting, then set it in php.in

Re: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Hans Schultz
Hahahah,I was thinking the same thing :D --- On Fri, 2/27/09, Ashley Sheridan wrote: From: Ashley Sheridan Subject: Re: [PHP] "use strict" or similar in PHP? To: "Hans Schultz" Cc: php-general@lists.php.net, "9el" Date: Friday, February 27, 2009, 1:11 PM On

RE: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Hans Schultz
hp-general@lists.php.net, "9el" Date: Friday, February 27, 2009, 1:43 PM From: Hans Schultz > > Hahahah,I was thinking the same thing :D > > --- On Fri, 2/27/09, Ashley Sheridan wrote: > From: Ashley Sheridan > Subject: Re: [PHP] "use strict" or similar in PHP? >

[PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Hans Schultz
Thanks, this is the most useful answer I got. I will try to use that IDE and to see if it works for me. Regarding databases I was hopping for some abstraction layer like dbx only better (to allow parameters). Regards, Hans On Fri, 27 Feb 2009 15:41:55 +0100, Peter Ford wrote: Hans

[PHP] Conclusion of "use strict"...

2009-03-04 Thread Hans Schultz
ilar in PHP? To: "Hans Schultz" Cc: php-general@lists.php.net Date: Thursday, February 26, 2009, 9:14 PM Hans Schultz wrote: > Hello, > I am beginner with PHP and prior to PHP I have worked with java for some time > and with perl for very short period. I can't help

Re: [PHP] Conclusion of "use strict"...

2009-03-04 Thread Hans Schultz
hout any cost. Visit : www.ubuntu.com -- On Wed, Mar 4, 2009 at 4:03 PM, Hans Schultz wrote: Concluding,  and one idea...I think I received satisfying advices on everything but first question (Detection of typos and other simple mi

Re: [PHP] Conclusion of "use strict"...

2009-03-06 Thread Hans Schultz
Hehe,I don't agree with either :-) But I am still searching for some solution, and when (and if) I find it I will be happy to share with you (btw, obviously nobody shared experiences about that compiler) Hans is the OP, the one you thought "got it all wrong.", you're act

Re: [PHP] Calendar/Date

2009-03-18 Thread Hans Åhlin
hen its in week nr 01 else if equal to 4 (Friday) its week 53 else its week 52 http://threesides.kronan-net.com/2008/08/04/date-calculation-algorithm/ -- MvH / Hans Åhlin - www.kronan-net.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Conclusion of "use strict"...

2009-03-19 Thread Hans Schultz
experience :) On Wed, 04 Mar 2009 11:03:04 +0100, Hans Schultz wrote: Concluding,  and one idea...I think I received satisfying advices on everything but first question (Detection of typos and other simple mistakes). And we were talking also about being able to catch them at compile time, then

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread Hans Schultz
include expressions). Still I think every serious PHP developer should consider using something like this. Cheers --- On Thu, 3/19/09, Hans Schultz  wrote: If someone is still interested in problem I found litle tool that is pretty close to detecting errors in PHP at compile time (compile time

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Hans Schultz
me. ( http://www.netbeans.org/kb/55/flash.html) On Fri, Mar 20, 2009 at 5:07 PM, Hans Schultz wrote: On Fri, 20 Mar 2009 15:45:09 +0100, Virgilio Quilario < virgilio.quila...@gmail.com> wrote: On Fri, Mar 20, 2009 at 6:47 PM, Pierre Lilliman wrote: I have been using same program for some (no

Re: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Hans Schultz
Hi Virgilio, Thanks for that last link, I just know need to figure out why my Netbeans doesn't work like that (although I am using latest version) On Sat, 21 Mar 2009 10:56:46 +0100, Virgilio Quilario wrote: Hi Hans, Is this what you are looking for? Debug PHP code using Xdebug

[PHP] Re: PHP checkstyle

2009-03-24 Thread Hans Schultz
Hello Dipen, I recently found Codenizer (http://www.softwarehood.com/Codenizer/) to do similar (only code syntax & semantics analysis - no formatting) thing for PHP. However I couldn't find out how to use it with eclipse, so I switched to Netbeans for now. Regards On Mon, 23 Mar 2009 11:0

Re: [PHP] Hash function

2009-11-10 Thread Hans Åhlin
gt; i want to create a function that mix together this request code with user > name that user entered and create new serial number. > What implications i have to satisfy to create such hash function in php? > Thanks for any suggestion > -- MvH / Hans Åhlin Tel: +46761488019 http//

Re: [PHP] Recognizing double clicks

2009-11-21 Thread Hans Åhlin
nesis, raise my hand. >  -- Kurt Vonnegut > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- MvH / Hans Åhlin Tel: +46761488019 http//www.kronan-net.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Hans Åhlin
created a poll here too: > http://www.rapidpoll.net/awp1ocy > > Past polls are below: > http://www.rapidpoll.net/8opnt1e > http://www.rapidpoll.net/arc1opy (although someone hacked this poll and > loaded up the 76 votes like a little cheater) > > > -- > PHP General Mailin

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Hans Åhlin
th > business right?  If the company started small and want to use > available open source solutions, then grow quickly because of their > unique and quality products and services, and become enterprise level > with-in a few years, what then?  Slow down business growth just so > that IT can migrate everything to another language? Of all the > enterprise applications I've seen, they used threads. > Same answer as above. > Regards, > Tommy > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- MvH / Hans Åhlin Tel: +46761488019 http//www.kronan-net.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recommended Books on Object Oriented Programming

2010-03-24 Thread Hans Åhlin
ects, Patterns, and Practice ISBN10: 1-59059-380-4 ** Design Patterns: Elements of Reusable Object-Oriented Software ISBN 0-201-63361-2 ** -- MvH / Hans Åhlin Tel: +46761488019 http//www.kronan-net.com/ -- PHP Gen

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Hans Åhlin
uage. C++/C programmer sometimes must use assembler, in asp/dot.net have to switch between VB,C# and so on. nothing new. thats why languages now days are mainly based on C/C++ to make it easier to jump between languages. (PHP, Perl, Java, JavaScript is based on C/C++ aso) -- MvH / Hans Åhlin T

Re: [PHP] Re: Will PHP ever "grow up" and have threading?

2010-03-24 Thread Hans Åhlin
ative support for threading I would use it. But I don´t want the support for threading if it slowdown the performance. MvH / Hans Åhlin Tel: +46761488019 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin 2010/3/25 Tommy Pham : > On Wed, Mar 24, 2010 at 7:53 PM, Michelle

Re: [PHP] Re: Will PHP ever "grow up" and have threading?

2010-03-25 Thread Hans Åhlin
MvH / Hans Åhlin Tel: +46761488019 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin 2010/3/25 Rene Veerman : > On Thu, Mar 25, 2010 at 6:13 AM, Hans Åhlin wrote: >>I admit that if there were native support for threading I >> would use it. But I don´t want

Re: [PHP] Howto send command over ssh using sockets

2010-04-04 Thread Hans Åhlin
Instead of ssh, you could use telnet to connect to the Cisco router (which incidentally runs on port 23, but is likely to be disabled on the cisco router, unless you have a pre-SSH capable IOS running on it (like my old cisco crap :( ) ), because i strongly doubt you have written or are willing to

Re: [PHP] Sort two coupled arrays

2010-04-07 Thread Hans Åhlin
Try this insted array( [0]=>array( [0]=>75, [1] => Personal Email) [1]=>array( [0]=>31, [1] => Personal Phone) [2]=>array( [0]=>31, [1] => Web site) [3]=>array( [0]=>31, [1] => Text Message) [4]=>array( [0]=>40, [1] => USPS mail) MvH / Hans Åhlin Tel

Re: [PHP] Does PHP support multi-thread ?

2010-04-18 Thread Hans Åhlin
PHP ever "grow up" and have threading?". it got 257+ replys ;) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ** Hans Åhlin Tel: +46761488019 http

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Hans Åhlin
Why change the way that has been around for years and adopted by multiple e-mail lists? It feels like it's more problem to change the way for thousands of users just to satisfy a couple of few. ****** Hans Åhlin Tel: +46761488019 http://www.k

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Hans Åhlin
2010/4/21 David McGlone : > On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote: >> On 21 April 2010 14:38, Hans Åhlin wrote: >> > Why change the way that has been around for years and adopted by >> > multiple e-mail lists? >> > It feels like it's more p

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Hans Åhlin
2010/4/21 David McGlone : > On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote: >> On 21 April 2010 14:38, Hans Åhlin wrote: >> > Why change the way that has been around for years and adopted by >> > multiple e-mail lists? >> > It feels like it's more p

Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-22 Thread Hans Åhlin
Is this the new "threading support" thread?!?! Why don't nuke everything then its nothing to use or complain about... ** Hans Åhlin Tel: +46761488019 http://www.kronan-net.com/ irc://irc.freenode.net

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Hans Åhlin
Lineage II Comanche 4 Unreal Tournament Blood Rayne 1 and 2 Battlefield 2, 2142 Warhammer 40k Fallout 1, 2 and 3 My game list at CheatHappens.com http://www.cheathappens.com/show_user.asp?userID=553587 ** Hans Åhlin Tel: +46761488019 http

Re: [PHP] Re: wondering how to catch notice errors properly

2010-05-02 Thread Hans Åhlin
Thanks for that, it saved me some thinking when I reach the error handling class with in my project. ** Hans Åhlin Tel: +46761488019 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin

Re: [PHP] CakePHP, alternatives?

2010-06-04 Thread Hans Åhlin
The thing I did beside the stuff already mentioned is, I took stuff from real life and I tried to define them and then write a program that handled/simulated it. ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc

Re: [PHP] Website content question

2010-06-21 Thread Hans Åhlin
Did you include the necessary php code? ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ** 2010/6/21 Ernie Kemp > This is no

Re: [PHP] Re: Is this a bug with date() ?

2010-06-30 Thread Hans Åhlin
A year can have 52 or 53 weeks and it can begin with week nr 1, 52 or 53 check this algorithm http://www.threesides.se/blogg/2010/04/15/date-calculation-algorithm/ ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Hans Åhlin
#x27;,'".$field[3]."','".$field[4]."','".$field[5]."','".$field[6]."');"); ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin **

Re: [PHP] What's wrong in this function? Does not work for me.

2010-07-03 Thread Hans Åhlin
7;Error, try again'; } ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ** 2010/7/3 Carlos Sura : > > > Hello, this function does not work for me... And

Re: [PHP] interface name file

2010-07-07 Thread Hans Åhlin
*.api Application Programming Interface http://en.wikipedia.org/wiki/Application_Programming_Interface ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin

Re: [PHP] Retaining scroll position after asynchronous refresh

2010-07-23 Thread Hans Åhlin
<http://www.eggheadcafe.com/community/aspnet/3/10002280/scroll-positions.aspx> http://www.daniweb.com/forums/thread60189.html ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:666

Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-30 Thread Hans Åhlin
** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ** 2010/7/30 Pete Ford > On 29/07/10 19:10, tedd wrote: > >> At 9:5

Re: [PHP] generate animated gifs

2010-08-02 Thread Hans Åhlin
/www.ashleysheridan.co.uk > > I thought that GIF was patented or copyrighted or something - didn't know > if it was possible to create GIFs with ImageMagick/PHP. Did I pull that from > left field > > ~Philip > > http://lonestarlightandsound.com/ > > > -

Re: [PHP] generate animated gifs

2010-08-02 Thread Hans Åhlin
sorry for the empty mail, my web-browser crashed) ~Philip > > http://lonestarlightandsound.com/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin **

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread Hans Åhlin
the system uses the mksk that the the admin who create the user uses. This has the advantage that you can re-encrypt the ssn table and the only key you have to change is the master key. ** Hans Åhlin Tel: +46761488019 icq: 275232967 http

[PHP] How to protect the source code.

2010-11-19 Thread Hans Åhlin
Hi Does any one know if there is any way for me to protect my source code without the requirement of a extension being installed on the server? i.e encryption, obfusicator, script library, compile the code. Any idea is appreciated. Thanks / Hans

Re: [PHP] How to protect the source code.

2010-11-19 Thread Hans Åhlin
2010/11/19 Daniel P. Brown > > On Fri, Nov 19, 2010 at 17:07, Tamara Temple wrote: > > > > Perhaps it's just me, but I'm completely missing the point of this. How is > > someone going to get your code off of a server? > >    It's more likely that he's interested in learning how to protect > code

Re: [PHP] exec to launch putty.exe for telnet

2012-07-10 Thread Hans Åhlin
exec call and it will chop of the string after it. $securecrt = "\"C:\\Documents and Settings\\user\\Desktop\\putty.exe telnet:// 10.3.215.15/\""; -- ** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin **

Re: [PHP] Re: echo?

2011-03-24 Thread Hans Åhlin
ne is going to be interpreted as #101/#102/#103 aso (that i figured when you wrote that putting a space in the beginning of the echo solved the problem. >    else        echo " \r\n"; >    } -- **  Hans Åhlin    Tel: +4676148

Re: [PHP] Permission Denied

2011-03-27 Thread Hans Åhlin
-- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- **  Hans Åhlin    Tel: +46761488019    icq: 275232967    http://www.kronan-net.com/    irc://irc.freenode.net:6667 - Th

Re: [PHP] is there any syntax to save a file in mysql?

2011-03-27 Thread Hans Åhlin
blob.html -- ******  Hans Åhlin    Tel: +46761488019    icq: 275232967    http://www.kronan-net.com/    irc://irc.freenode.net:6667 - TheCoin ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Hans Åhlin
> > You could try http://forums.mysql.com/ or have a look around Yahoo > groups (e.g. php_my...@yahoogroups.com). > > HTH, > > -- > Geoff > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] Re: File Upload Problem

2011-04-11 Thread Hans Åhlin
> (Yes, all possible file paths have been investigated) > > Nor, can I copy the file by: > > $result = copy($_FILES['userfile']['tmp_name'], $path . '/' . > $_FILES['userfile']['name']); > > The only difference I see is the

Re: [PHP] PHP intreprets trailing slashes incorrectly?

2011-05-19 Thread Hans Åhlin
ks because of Apaches support for mod_rewrite. ie, http://www.example.com/virtual_dir/script/option/?Foo=bar --> /my_script.php?Foo=bar -- **  Hans Åhlin    Tel: +46761488019    icq: 275232967    http://w

Re: [PHP] notices nightmare - looking for a regex solution

2011-06-01 Thread Hans Åhlin
in the same way $Pos = strpos($Line, '[', $Pos2) $Pos2 = strpos($Line, ']' , $Pos) if($Pos == false || $Pos2 == false){ $Ctrl = false } }else{ copy the whole line to $NewFile } add \r\n to $NewFile }

  1   2   >