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: Re: Top Posting

2011-07-07 Thread Hans Åhlin
2011/7/7 Daniel Brown : > On Thu, Jul 7, 2011 at 02:18, Hans Åhlin wrote: >> >> I't is useless to argue with this guy, >> I had the same problem with him allot of times and it always ended up >> with him not understanding and insulting me. >> So i put a slas

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Hans Åhlin
y carry. > > I'm not sure why you think I do, but I have no problem with the emails I get > as a result of subscribing to this mailing list - in fact I find them > invaluable. I've found the list invaluable whenever I've had a problem I > can't solve myself, and

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 }

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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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//

[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] 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

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-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

[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] 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

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] 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

[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

[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

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? >

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
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
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-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-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
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.

[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] 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

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

[PHP] Mysqli::prepare + select ... where ... in + array

2008-08-26 Thread Hans Henrik Petersen
tring = "'" . implode("','", $tokensToGet) . "'" and add that instead of the (?). I hope you can help me out in this matter. Thank you in advance. Hans Henrik Petersen System Developer

RE: [PHP] HTTP Server Written entirely in PHP ?

2008-04-18 Thread Hans Zaunere
> I was wondering if there was any HTTP server written entirely in PHP > with the following features: > > 1. HTTP/1.1 compliance > 2. Apache mod_rewrite-like URL rewrite support > 3. Native PHP support ( not through CGI/FastCGI ) > 4. Support PHP 4.2.0 or above > > Nanoweb is an H

[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

Re: [PHP] Re: RADICORE ramework released

2006-04-13 Thread Hans Juergen von Lengerke
> From: Tony Marston <[EMAIL PROTECTED]> > "Hans Juergen von Lengerke" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >> From: Tony Marston <[EMAIL PROTECTED]> > >> > >> Any problems with locale are cased by havi

Re: [PHP] Re: RADICORE ramework released

2006-04-13 Thread Hans Juergen von Lengerke
> From: Tony Marston <[EMAIL PROTECTED]> > > Any problems with locale are cased by having the language > code in your browser set to something which cannot be > matched up with the contents of the server's locale file. > If it cannot find a match my software is supposed to keep > the current defau

Re: [PHP] echo, print and is_callable()/function_exists()

2006-04-07 Thread Hans Juergen von Lengerke
Just wrap it, like Example 1 of the manual shows function my_echo($array, $key) { echo $array[$key]; } array_walk_recursive($array, 'my_echo'); > Date: Fri, 7 Apr 2006 15:42:40 +0100 > From: Chris Boget <[EMAIL PROTECTED]> > To: php-general@lists.php.net > Subject: [PHP] echo, print and is_

Re: [PHP] FQDN of the server thru CLI

2006-04-04 Thread Hans Juergen von Lengerke
I usually do this by forcing the profile to be read before I run the script. Something like * * * * * . /etc/profile && /path/to/script > Date: Tue, 04 Apr 2006 17:43:09 +0530 > From: Venkat Venkataraju <[EMAIL PROTECTED]> > To: php-general@lists.php.net > Subject: [PHP] FQDN of the server th

RE: [PHP] PHP Install with MySQL in 64 bit libraries.

2005-08-08 Thread Hans Zaunere
rently the link fails as it does not find the mysql client > so files. You need to use PHP 5.1 and the --with-libdir configure option, or could can do a symlink. See: http://marc.theaimsgroup.com/?l=php-dev&w=2&r=1&s=with-libdir&q=b --- Hans Zaunere President, Founder New

[PHP] FW: IBM & PHP, Designer Track Training

2005-06-24 Thread Hans Zaunere
FYI - RSVP if you plan on attending. > - > Very Special Meeting: IBM Presents their PHP Strategy to New York PHP > > RSVP Today, seats are limited: > http://www.nyphp.org/rsvp.php > > All Attendees Must RSVP By Monday, June 27

[PHP] FW: [nyphp] IBM's PHP Strategy - New York PHP June Meeting - Designer Training June 27th

2005-06-13 Thread Hans Zaunere
FYI for those in the tri-state area. > -Original Message- > From: Hans Zaunere [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 12, 2005 2:50 PM > To: [EMAIL PROTECTED] > Subject: [nyphp-announce] IBM's PHP Strategy - New York PHP June Meeting > >

[PHP] test

2005-06-07 Thread Hans J.J. Prins
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Nameserver lookup

2005-06-07 Thread Hans J.J. Prins
some reason passthru does not pass back the last line. And that is exactly the line that I need! I also tried exec(), system() and shell_exec() But PHP does not give me that last line. I should mention that I'm on a freeBSD system with Apache 1.3.32 and PHP 4.3.10 Can anyone help me out on

Re: [PHP] Question about fsockopen

2005-04-11 Thread Hans Juergen von Lengerke
> Date: Sun, 10 Apr 2005 08:00:23 - (UTC) > From: [EMAIL PROTECTED] > > I have several IP in one interface (eth0) in my server and I want make > connection to another server (check email, etc) using different ip for > every mail server. I was read the document, and there is no way how to > mak

Re: [PHP] Variable Passing

2005-04-08 Thread Hans Juergen von Lengerke
> Brad Brevet: > > Hi, I am curious how to pass a variable without using something like id=321. > > I have seen sites that have something like > http://www.website.com/something/321 and the variable is passed how exactly > is that done? And is it called something specific so I know how to refer t

RE: [PHP] php 4 & php 5

2005-03-13 Thread Hans Zaunere
lished using two IP addresses if available, instead of two different points. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP > > > > Is there a way to install two version of php on the same machine,

Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash. - SOLVED

2005-03-11 Thread Hans Deragon
otably NFS mounted shares. Thanks to all who attempted to help me solve this problem. Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.bizhttp://facil.qc.ca (Promotion du libre) mailto://[EMAIL PROTECTED

Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash.

2005-03-10 Thread Hans Deragon
PHP `ls --color=never -ld /` and it fails to. ls is not the only command having problems. I tried other commands like `find /lmw -name '*'` and `cd /lmw` and they fail because of bad permissions. Could it be because of SELinux? I wonder. I think that Apache runs under some SEL

Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash.

2005-03-10 Thread Hans Deragon
that the other functions would change anything. `whoami` executed under php returns "apache", as we suspected. Best regards, Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.bizhttp://facil.qc.ca (Promotion

Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash.

2005-03-10 Thread Hans Deragon
my email to the list. I had a problem with my mailer... Best regards. Hans Deragon -- Consultant en informatique/Software Consultant Deragon Informatique inc. Open source: http://www.deragon.bizhttp://facil.qc.ca (Promotion du libre) mailto://[EMAIL PROTECTED] http://autopower

[PHP] `ls -l /` does not reproduce same info than when executed in bash.

2005-03-10 Thread Hans Deragon
-x9 rootroot4760 Mar 8 12:58 dev drwxr-sr-x 30 qhander floppy 4096 Feb 28 16:19 devel lrwxrwxrwx1 rootroot 28 Mar 3 07:25 env -> /afs/sunrise.ericsson.se/env drwxr-xr-x 86 rootroot 12288 Mar 9 16:43 etc drwxr-xr-x2 rootroot4096 Mar 8 17:04 exp

[PHP] `ls -l /` does not reproduce same info than when executed in bash.

2005-03-10 Thread Hans Deragon
-x9 rootroot4760 Mar 8 12:58 dev drwxr-sr-x 30 qhander floppy 4096 Feb 28 16:19 devel lrwxrwxrwx1 rootroot 28 Mar 3 07:25 env -> /afs/sunrise.ericsson.se/env drwxr-xr-x 86 rootroot 12288 Mar 9 16:43 etc drwxr-xr-x2 rootroot4096 Mar 8 17:04 exp

RE: [PHP] php 4 & php 5

2005-03-04 Thread Hans Zaunere
ou will probably be better off just > buying a second machine. Problem solved. If you get another machine, you'll need two domains or subdomains anyway. Just put them on the same box, with two IPs. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Techn

RE: [PHP] MySQL and MySQLi compiling

2005-02-17 Thread Hans Zaunere
> Hi, I've been trying to get these 2 compiled together for a while, and > have had no luck. > > WHere my problem lies, I think, is that I'm not sure what directory > should be specified on the --with-mysql part > > ./configure --with-apxs2=/usr/local/apache/bin/apxs > --with-mysql=/usr/include/

RE: [PHP] cron job style php...

2005-01-16 Thread Hans Zaunere
irst line needs to be the dash-bang that point to your PHP binary. #!/usr/local/php/bin/php /usr/local/php/bin/php -v To keep track of scripts that I run under Apache, versus those that run on the command line, I use the .psh extension on those that run on the command line. --- Hans Zaunere

RE: [PHP] sending multiple headers (session_start() and setcookie() )

2005-01-08 Thread Hans Zaunere
D:\Apache Group\Apache2\htdocs\YC\ycphpfunc.php on line 148 >=20 > My .php file looks like this: >=20 > >=20 > ... Also, be sure there is no whitespace at the end of the ycphpfunc.php = file, or leave off the closing PHP tag completely. --- Hans Zaunere President, Founder N

Re: [PHP] Re: ending a session

2004-11-20 Thread Hans J.J. Prins
Thanks! "Jeffery Fernandez" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Greg Donald wrote: > > >On Sat, 20 Nov 2004 13:52:32 -0800, Jed Smith <[EMAIL PROTECTED]> wrote: > > > > > >>PHP attached to different Apaches can't share sessions, AFAIK. You'll > >>need to make sure it's

[PHP] Re: ending a session

2004-11-20 Thread Hans J.J. Prins
Thx jed, Ik will try and find out more based on what you told me "Jed Smith" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hans J.J. Prins wrote: > >>3. Is it the same copy of PHP? Same php.ini, same PHP SAPI? > > > > I really d

[PHP] Limit to the number of sockets socket_select can supervise?

2004-11-20 Thread Hans-Christian Jehg
Hi Im building a TCP server in PHP 5.0.2 on Windows. It will have to serve a lot of clients (500+) with low traffic. During this I have noticed that socket_select seems unable to supervise more than 64 connections at a time (Not good when I need 500+). It stops with a message that "Socket sele

[PHP] Re: ending a session

2004-11-19 Thread Hans J.J. Prins
nd out? > 5. What's your Listen directive look like, if YES for number 4? Sorry, don't know what you mean by that. > 6. Vhosts? Does that mean virtual hosts? In that case yes "Jed Smith" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > H

[PHP] ending a session

2004-11-19 Thread Hans J.J. Prins
Hello, I started a session at www.mydomain.com:/myscript.php I want to destroy the session at www.mydomain.com/myscript.php I seem to not be able to destroy it though. Does the different port have anything to do with it? Thx, H J.J. P -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Regular expression

2004-10-07 Thread Hans H. Anderson
tabs and newlines differ from $html to the regular expression). So I tried this with success: $html =<<test: 98938 EOB; preg_match_all("/test:<\/B><\/P><\/TD> ([0-9]*)<\/P><\/TD><\/TR>/",$html,$match); print_r($match); Hans On Thu, 7 Oct 200

[PHP] performance: large includes vs small includes with lots of reads

2004-10-07 Thread Hans H. Anderson
it faster/more efficient to read one large file or several smaller ones? It's a RS Linux server with a gig of memory. I'm also looking at PHP Accelerator and such. Do those store only in memory what the script needs, or does it include all that you require or include in, as well? T

Re: [PHP] Get "nice" variables from POST

2004-03-12 Thread Hans Juergen von Lengerke
_POST['email']; $email2= $_POST['email2']; $nickname = $_POST['name']; $city = $POST['city']; $state = $_POST['state']; $country = $_POST['country']; $misc = $_POST['misc']; $country = $_POST['coun

Re: [PHP] Another preg question

2004-02-14 Thread Hans Juergen von Lengerke
> From: Al <[EMAIL PROTECTED]> > > $text= preg_replace("/\n\n+/", "\n\n", $text); > // remove excess This doesn't seem to do anything. Strange, your code works for me: [EMAIL PROTECTED]:~ > cat foo.php [EMAIL PROTECTED]:~ > php ./foo.php before: === foo bar === after: === foo bar ===

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

[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] 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] 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] 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: 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

  1   2   >