Re: [PHP] openssl_encrypt, ecb and IV

2013-02-14 Thread Stephan
ybody have any idea why I am getting these errors ? I can reproduce them using this code: Regards Stephan Because E_WARNING is issued if the optional fourth parameter, Initialization Vector, is NULL. Is that so ? In ext/openssl/openssl.c it looks like php is questioning openssl if the cipher i

Re: [PHP] PHP and HBCI?

2010-10-08 Thread Stephan Ebelt
any specifications for HBCI interfaces? Socket connection, > XML Exchange, DB Access ? If you have C code for such things, it should > be possible to convert this to php code maybe > > Stephan Ebelt schrieb: >> On Fri, Oct 08, 2010 at 01:50:12PM +0100, a...@ashleysheridan.co.uk

Re: [PHP] PHP and HBCI?

2010-10-08 Thread Stephan Ebelt
wikipedia has a good summary: http://en.wikipedia.org/wiki/HBCI#FinTS_4.0 I just learned that its called "FinTS" now. Looking for that didnt bring me closer yet. stephan On Fri, Oct 08, 2010 at 01:50:12PM +0100, a...@ashleysheridan.co.uk wrote: > How do you mean? Did you wa

Re: [PHP] PHP and HBCI?

2010-10-08 Thread Stephan Ebelt
that from PHP code, only C and Java so far. My goal for now would be to access bank account statements in order to show the balances. I am not too eager to issue transactions. thanks, stephan > Thanks, > Ash > http://www.ashleysheridan.co.uk > > - Reply message - &g

[PHP] PHP and HBCI?

2010-10-08 Thread Stephan Ebelt
Hello, is there a way to do HBCI banking with PHP? stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] howto run sql script with php?

2010-06-13 Thread Stephan Ebelt
On Sun, Jun 13, 2010 at 12:52:18PM +0200, Stephan Ebelt wrote: [...] > > Use mysqli - it supports running multiple queries at once. > > sometimes its as easy as that. I'll give it a try. not quite as easy: mysqli->multi_query() works nice with many queries in a string but t

Re: [PHP] howto run sql script with php?

2010-06-13 Thread Stephan Ebelt
On Sun, Jun 13, 2010 at 12:14:53PM +0100, Ashley Sheridan wrote: >On Sun, 2010-06-13 at 12:52 +0200, Stephan Ebelt wrote: > > On Sun, Jun 13, 2010 at 11:29:14AM +0200, Peter Lind wrote: > > On 13 June 2010 11:05, Stephan Ebelt <[1]...@shared-files.de> wrote: > >

Re: [PHP] howto run sql script with php?

2010-06-13 Thread Stephan Ebelt
On Sun, Jun 13, 2010 at 11:29:14AM +0200, Peter Lind wrote: > On 13 June 2010 11:05, Stephan Ebelt wrote: > > Hello, > > > > I am trying to run a .sql script produced with mysql-dump from a php script > > but > > failed to find a rudimentary robust solution ye

[PHP] howto run sql script with php?

2010-06-13 Thread Stephan Ebelt
ps via shell command like 'cat some.dump | mysql' either. stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Stephan Ebelt
ives (note that this site also > > has alternate styles available) > > > > PHP could be used to define the default style sheet on a per > > user/application setting basis... > > > > stephan > > > > > > > > > The only problem rely

Re: [PHP] php selecting multiple stylesheets

2010-02-08 Thread Stephan Ebelt
tives (note that this site also has alternate styles available) PHP could be used to define the default style sheet on a per user/application setting basis... stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do YOU set default function/method params?

2009-10-12 Thread Stephan Ebelt
On Mon, Oct 12, 2009 at 01:44:56PM +0100, David Otton wrote: > 2009/10/12 Stephan Ebelt : > > > as far as I understood/use it: I try to hardcode as many workable defaults > > in > > the vo class as possible (ie. see $subject in the example). Then I create > >

Re: [PHP] How do YOU set default function/method params?

2009-10-12 Thread Stephan Ebelt
On Sun, Oct 11, 2009 at 01:17:00PM -0700, Jim Lucas wrote: > Stephan Ebelt wrote: > > On Mon, Oct 05, 2009 at 05:48:32PM -0700, Jim Lucas wrote: > >> Here is a problem that I have had for years now. I have been trying to > >> come up > >> with the perfect sol

Re: [PHP] How do YOU set default function/method params?

2009-10-11 Thread Stephan Ebelt
c for the input values is required, it can be added easily: class dao_email extends vo_email { ... public function encode_body() { ... } public function sanitize_mail_address() { } ... } sendEmail() would then require a dao_email

[PHP] Re: Error on installing under Windows Vista leads to inability to uninstall5.2.3

2007-07-18 Thread Stephan G
Stephan G wrote: Hello. Please pardon the cross-post - I posted this on the php.install newsgroup a couple of days ago, but there has been no activity on that news group, and I see that other installation issues are posted here. I have tried to install the following on my Windows Vista Home

Re: [PHP] Error on installing under Windows Vista leads to inability to uninstall 5.2.3

2007-07-18 Thread Stephan G
aller claims on the PHP site to be Vista compatible, so I am hoping there is a much less destructive way of dealing with this issue. Anyone else? Many thanks. -stephan Alan Milnes wrote: On 18/07/07, Stephan G <[EMAIL PROTECTED]> wrote: I have tried to install the following on

[PHP] Error on installing under Windows Vista leads to inability to uninstall 5.2.3

2007-07-18 Thread Stephan G
this and remove it from my system? 2. What is error code 2738 and what does it mean? 3. What steps might I take subsequently to install without incurring this error? Thanks in advance for any assistance. -Stephan G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Firefox/IE (sometimes) wants to download .php files from my Apache2 server

2004-12-23 Thread Stephan Fiedler
Hi Rinke, check Mime-Types.. Stephan Rinke Hoekstra wrote: Hi All, I have a rather odd problem. Since a few days, my otherwise perfect SuSe 9.0 Apache2 server started to do some funny stuff. In general, php works fine, and I can do anything I want... after a little while Firefox/IE starts asking

Re: [PHP] Permissions

2004-11-19 Thread Stephan Fiedler
xploitable that much that it can overwrite random system control files. Just an idea. Stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-09-15 Thread Stephan Fiedler
Hi Dirk, dirk wrote: Try it with escaped qutation marks (\") This is completely wrong here, because mysql doesn't understand those marks("). The string delimiter in mysql (in sql in general) is ' (http://dev.mysql.com/doc/mysql/en/index.html) Grusz Stephan -- PHP Genera

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

2004-09-15 Thread Stephan Fiedler
Hi Logan, 1stly My cristall ball tells me it's an unexpected ";" expected was a ")" here. .md5($_POST['password'])."')"); ---^ 2ndly. Please Submit the error you get. 3rdly. check posted values before inserting them into db. Ha

Re: [PHP] Checkbox Question

2004-09-02 Thread Stephan Fiedler
Hi Nick, Nick Wilson wrote: Hi all, [...] so, what is it? a= [...] if a was checked "a=on" is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() on *nix using ssmtp or an external smtp server?

2004-08-16 Thread Stephan Fiedler
Hi Markus, do I get you right, you can't invoke mail() because php can't find the sendmail executable? perhaps this does the trick: function my_mail_inject($mail) { $sendmail = ini_get("sendmail_path"); if(!$sendmail) $sendmail = "/var/qmail/bin/qmail-inject"; $p = popen($sendmail, "w"); if($

Re: [PHP] Template Question

2004-08-13 Thread Stephan Fiedler
Hi Jonathan, Jonathan Hadddad wrote: > [code in a template] Think you're right this IS a problem. Use Templates to seperate code from the ouput 'layer'. If you still have code in your template, maybe it's bad design. why don't you simply add some more variables to your template and tell the templa

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Stephan Fiedler
sure, whether I used setenv or putenv, I'm sure U'll find out. AND: bweare sending spam to ME ;o) Tris... Stephan * The information contained in this e-mail message is intended only for the personal and confidential use

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread Stephan Fiedler
it? or preg_replace it to something machine-readable and for the output use strftime? or even simpler: select unixtimestamp(mytime) and strftime later? Stephan [*] if you want the month leading it is $2-$3-$1... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Browser randomly displays php source instead of supposed output

2003-12-23 Thread Stephan Gloor
27;--with-mysql' '--with-apxs' Linux version Linux 2.4.20. Thanks for any hint Stephan -- Gloor Informatik Zurlindenstr. 215 a 8003 Zürich Tel: 01 461 24 11 Fax: 01 461 22 39 [EMAIL PROTECTED] --

[PHP] Browser displays source of php files instead of supposed output on random basis

2003-12-15 Thread Stephan Gloor
The confixx_vhost.conf contains lots of virtual host configured on a named vhost basis. php is minimally configured with './configure' '--with-mysql' '--with-apxs' Linux version Linux 2.4.20

[PHP] yp_match() from another domain and master ?

2003-09-25 Thread Stephan van Beerschoten
a lot of people (again:google) are having the same or similar problems I have. Just drop me a line if you feel up to the challenge. Thanks! With regards, Stephan -- Stephan van Beerschoten [SVB21-RIPE] [EMAIL PROTECTED] PGP fingerprint: 4557 9761 B212 FB4C 778D 3529 C42A 2D27 "

Re: [PHP] POST Parameters

2003-09-24 Thread Stephan Becker
lient to handle such HTTP issues properly. Well, I am no perl guy (at least not now) and would like to have solved that issue with php ;). If it could not be (what I realy doubt) I will have to dive into perl. Again, any guess will be deeply appreachiated ... Stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POST Parameters

2003-09-22 Thread Stephan Becker
ata ? Any guess out there ? brgds stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5

2003-02-17 Thread Stephan Seidt
Hi, Well, something very important in php5 is ZendEngine2: http://cvs.php.net/co.php/ZendEngine2/ZEND_CHANGES bye Adrian Portsmouth wrote: Hi, I have been checking out the books on Amazon.com and it seems there is a PHP5 book in the works due to be released on March the 4th. Does anyone know w

Re: [PHP] pause_script($int)??

2003-02-01 Thread Stephan Seidt
what about sleep() ? OjMyStEr wrote: Hi, Does anyone know if there is a way for me to produce a function in PHP to pause the processing of the script for 3 seconds for example without eating up the CPU bandwidth. I could do with quite accurate control. Is there a better way that doing it like thi

Re: [PHP] PHP & Apache

2003-01-31 Thread Aaron Stephan William Boeren
> > Maby you could help me on why I get this message when using variables: > > Undefined variable: UN1 in c:\inetpub\wwwroot\sdd\pages\redirection.php > > on line 15 > Because you have an undefined variable. You have a variable that has not > been assigned a value. Assign it a default value or use

[PHP] PHP & Apache

2003-01-30 Thread Aaron Stephan William Boeren
Hi, Maby you could help me on why I get this message when using variables: Undefined variable: UN1 in c:\inetpub\wwwroot\sdd\pages\redirection.php on line 15 I have PWS being used, PHP 4.3.0 & Apache 2.0.34. OS is Windows 2k If you could help that would be great because I need it for testing sc

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Stephan Seidt
ah sorry, mixed some configuration files ;) Jonathan Boles wrote: Do you mean allow_url_fopen? It is set to 'on'. There's no fopen_wrapper setting Reading from http:// using fopen works fine. It's the https:// that doesn't work. - Original Message - From

Re: [PHP] security question regarding including files..

2003-01-21 Thread Stephan Seidt
I guess you use some webserver, let's take apache. Apache's mime.conf has set several extensions, also php extensions. So only .php, .php3, .php4 files will be parsed by php. Chad Day wrote: I want to give my users the ability to submit a URL to a database, then when they pull up their page, the

Re: [PHP] Can't get HTTPS -- driving me mad -- please help

2003-01-21 Thread Stephan Seidt
Is fopen_wrapper in php.ini set to yes ? Jonathan Boles wrote: PHP 4.3.0, Apache, Win32. I'm driving myself mad trying to work out why I can't get HTTPS pages. I understand there are two options, using fopen() with openssl installed, and using curl. I've installed openssl extension, but using fo

Re: [PHP] Text editors

2003-01-07 Thread Stephan Seidt
You wanted advert ;p www.weaverslave.de , has also a good english translation and many other languages. Karl James wrote: Hello guys, Right now im using dreamweaver mx I was wondering if anyone knew of any good free text editors that has line counts And is good for php…. Thanks karl --- Ou

Re: [PHP] time stamp screwing up

2003-01-06 Thread Stephan Seidt
yep i guess that, so NOW() is a mysql function. - [ Paul Ferrie ] - wrote: So Jason what your saying is this $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES (NULL, '$name', '$pass', '$email', '$time')"; Should be $query = "INSERT INTO contacts (id, name, pass, email

Re: [PHP] time stamp screwing up

2003-01-06 Thread Stephan Seidt
What sort of mysql field type did you use for dateAdded ? You need UNIX_TIMESTAMP (or sth like that) for unix timestamp format. - [ Paul Ferrie ] - wrote: hey guys could someone help me I have created a user login register system in flash with PHP and Mysql. Everthing Now works fine aprt from th

Re: [PHP] include directory?

2003-01-06 Thread Stephan Seidt
That depends on where you want to point it at :) In pear we always use something like : require_once 'Package/File.php' It's very usable to add the pear directory to php's include path, but only if you have it ;) Otherwhise, just don't think about that setting. Rad Craig wrote: Where should this

Re: [PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Stephan Seidt
http://www.php.net/phpversion Kenn Murrah wrote: Greetings. My code to upload file is working fine with very small files but not with larger ones Here's what I've tried so far: 1. I've edited my php.ini file to read: upload_max_filesize = 100M 2. I've the following line to my html file

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Stephan Seidt
well ok, if it's : main.php : include 'foo'; foo : include 'bar'; bar : include 'whatever'; ... there will be lots of used file descriptors at once Leon Mergen wrote: "Stephan Seidt" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Stephan Seidt
I guess that PHP will close file 1 before it opens file 2 and so on.. For example : include 'foo'; include 'bar'; When bar is being opened foo is already closed. Leon Mergen wrote: "Radek Zajkowski" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED]... Is there, was there ever issu

Re: [PHP] Re: Connecting binary & php together

2002-12-03 Thread Stephan Seidt
ibrary. It's still > experimental, but it's a step in the right direction. > > J > > > Stephan Seidt wrote: > > > Hi > > > > I'm thinking about the best way to connect a c(++) > > binary with the php interpreter. I thought the bes

[PHP] Connecting binary & php together

2002-12-03 Thread Stephan Seidt
Hi I'm thinking about the best way to connect a c(++) binary with the php interpreter. I thought the best solution is to use a shared library which has been built by php. Is libphp4.so always the same or are the libraries for apache / apache2 / roxen / etc different ? I think the parameter --with-

[PHP] Re: sockets (again)

2002-11-25 Thread Stephan Seidt
Hi, You have to choose a protocol for AF_INET sockets. Try getprotobyname() with tcp and udp to get one. bye On Mon, 25 Nov 2002 10:24:46 -0800 [EMAIL PROTECTED] (Gareth Thomas) wrote: > Hi, > > I really need some help here because I am going to lose my mind otherwise!! > A script that was run

[PHP] Re: php and caching

2002-11-24 Thread Stephan Seidt
Maybe Pear's Cache class could help you.. But I'm not sure, never played around with it in detail. On Sun, 24 Nov 2002 12:47:08 -0500 [EMAIL PROTECTED] (Alex) wrote: > Hi, > > I have a few pages on my site that contains dynamical content that must be > "processed" each time the page is loaded. B

[PHP] Re: How do I Install PHP on Apache 2.0?

2002-11-24 Thread Stephan Seidt
windows, unix ? On Sun, 24 Nov 2002 10:26:21 -0500 [EMAIL PROTECTED] (Tweak2x) wrote: > how do i do that? > > "Stephan Seidt" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > You must build

[PHP] Re: How do I Install PHP on Apache 2.0?

2002-11-24 Thread Stephan Seidt
Hi, You must build a shared library by configuring php with --with-apxs2. On Sun, 24 Nov 2002 09:42:40 -0500 [EMAIL PROTECTED] (Tweak2x) wrote: > can somebody please help me? I cant figure it out. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Secureing PHP.

2002-11-23 Thread Stephan Seidt
hi, you should try to take the php.ini-recommended and edit it a little bit so that it fits your needs. the settings there are very secure but also increase php's performance and coding standard. if some settings won't fit to a single script, you can use ini_set(..., ...). so you'll have to disa

[PHP] Re: Passing Variables

2002-11-23 Thread Stephan Seidt
if you mean something like bla.php?foo=bar, etc and you have register_globas enabled it'll be stored as $_GET['foo'] ($_REQUEST['foo']) On Sat, 23 Nov 2002 11:42:49 -0800 [EMAIL PROTECTED] (Craig Edgmon) wrote: > I am sure this question has been answered, but there is a ton of data to > sift thro

[PHP] Re: foreach, side effect or good behaviour?

2002-09-23 Thread Stephan Seidt
It's good behavoiur because everytime even a reference gets a value, also the target which it is pointing on should get the same value. On Mon, 23 Sep 2002 12:57:56 +0200 (CEST), [EMAIL PROTECTED] (Jean-Pierre arneodo) wrote: > Hi, > > $a=1; > $b=&$a; > foreach(array(2,3) as $b); > echo "a=$a"

[PHP] Re: PHP source code

2002-09-19 Thread Stephan Seidt
secret-file stuff. bye, blizz On Thu, 19 Sep 2002 20:15:06 +0200, [EMAIL PROTECTED] (Oliver Witt) wrote: > Stephan Seidt schrieb: > > > On Thu, 19 Sep 2002 16:50:16 +0200 > > [EMAIL PROTECTED] (Oliver Witt) wrote: > > > > > Hi, > > > Is there any way to rea

[PHP] Re: File Access...

2002-09-19 Thread Stephan Seidt
I guess it is sth. like : http://www.domain.com/index.php'); ?> If it doesnt work try www.php.net/header, there is an example. On Thu, 19 Sep 2002 17:21:15 +0100 [EMAIL PROTECTED] (Brian McGarvie) wrote: > How could you redirect somone from directly accessing a file... > > Meaning... if an en

[PHP] Re: Cannot Redeclare Function

2002-09-19 Thread Stephan Seidt
Looks like you may not redeclare functions generally. Because the function tbl2array can't be any kind of scope, the functions declared inside it will be globally declared. I think the solution is to take the functions like compname() out of tbl2array and declare them "really global". On Thu, 19

[PHP] Re: PHP source code

2002-09-19 Thread Stephan Seidt
On Thu, 19 Sep 2002 16:50:16 +0200 [EMAIL PROTECTED] (Oliver Witt) wrote: > Hi, > Is there any way to read php source code? I didn't think so until I > heard about people you have done that... > Kind regards, > Oliver > Do you mean the source of php.net ? Try http://de.php.net/source.php?url=/i

[PHP] problems with .htaccess - crypt-passwords doesn't mach

2002-06-21 Thread Stephan Huebner
Hi all, I'm new in here and from Germany, so I hope I can make clear what my problem is. I also didn't do too complicated things with php upto now. And the problem I have at the moment is the following: I have done a simple website as a frontend for changing the ".htaccess"- and ".htusers"-files

php-general@lists.php.net

2001-11-20 Thread Stephan Buchholz
probably priority issue. try: if (($One & $Two) == $One) - - in your example this means: ((0100 & ) == 0100) (0100 == 0100) TRUE ...in other case 0100 & ( == 0100) is 0100 & 0 is always 0 hope this helps Buchholz "Fred" wrote > From: "Fred" <[EMAIL PROTEC

[PHP] Variable definitions...

2001-11-13 Thread Stephan
to hear your opinion on this issue since for me very much depends on that (3 years of studying at college). Stephan P.S.: If you agree with me or not can you also send me an email to me? [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] Can't write to file via php, just via ftp...Can anyone help?

2001-07-30 Thread Stephan Hübner
it... (btw, it's a linux or unix server where the pages are on). Thanks for your thoughts. Have a nice day, Stephan Huebner -- 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] New User - Problem with php and pop3-class...

2001-07-23 Thread Stephan Hübner
n in the html-site is written to the screen. It seems that the server is interpreting the php-script, though, as the echo-commands are executed right. But the first line (starting with "->" should be written to the screen, right? Does anyone know what the problem could be? Thanks for any

[PHP] Need some RegEx help

2001-07-19 Thread Stephan Ahonen
Okay, I've been asked to take a bunch of HTML pages and turn them into Excel spreadsheets by running them through a PHP script and outputting a semicolon-delimited text file. The pages are in this format: Name: LAST, FIRST MIDDLE Pilot's Address : ADDRESS LINE 1

Re: [PHP] OT question..

2001-05-08 Thread Stephan Ahonen
#x27;s trying to get crawl into absolute power so we can recognize it and prevent it when it happens. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by e

Re: [PHP] Can php give me row number?

2001-05-06 Thread Stephan Ahonen
y index you find the word in is the line number. To save a couple lines of code, use the file() function, it returns the contents conveniently pre-split into the array. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow f

Re: [PHP] How to limit a WHILE statement?

2001-04-02 Thread Stephan Ahonen
$count = 0; while (($myrow = mysql_fetch_array($result))&&($count<20)) { do stuff $count++; } Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to repl

Re: [PHP] Better way (if...elseif...else)

2001-03-30 Thread Stephan Ahonen
$pstr.="selected"; > $fcol=$fc_arr[$x]; > } > $pstr.=">$ptext_arr[$x]\n"; > } Even better! This looks like to winning entry for our mini-programming contest. =) Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now b

Re: [PHP] Better way (if...elseif...else)

2001-03-29 Thread Stephan Ahonen
;); $val_name = array("High","Medium","Low"); $fcol_name = array("high","med","low"); $count = count($val); for ($counter = 0; $counter < $count; $counter++) { $selected = ""; if ($val[$counter] == $priority) { $selected = "

Re: [PHP] The ubitquitous forum project

2001-03-26 Thread Stephan Ahonen
[Explanation of UBB-style] ...And that's USENET-style. In OE I can expand and contract threads at will, like you mentioned, and I can tell which posts are in reply to which other posts. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clot

Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Stephan Ahonen
> Any advice? USENET style threads. I *really* hate Phorum-style threads, where everything's just tacked onto the end. Though Phorum-style is easier, it really detracts from the conversation when you have to write whose post you're replying to in your replies. Sig for a Day Stepha

Re: [PHP] Decrypt Function?

2001-03-25 Thread Stephan Ahonen
tore them on the server, nobody can see the actual passwords. Now when someone tries to login with one of those passwords, you crypt the password he enters, compare it with the version on the server, and if they match, it's the right password. Sig for a Day Stephan Ahonen, ICQ 491101 "Th

Re: [PHP] How to convert '2001032018' -> '2001 03 20 18' ? (Fomating Date)

2001-03-20 Thread Stephan Ahonen
. Look at the on-line manual (http://www.php.net/manual/en/) under String Functions. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email -- PHP General Mailin

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Stephan Ahonen
> Oh in addition this won't work accurately if $time is greater than about 2 > billion(2147483648 I believe). This shouldn't be a problem unless you're calculating how many hours and minutes a really old guy (>68) has been alive or something. Sig for a Day Stephan Ah

Re: [PHP] update two frames at once?

2001-03-12 Thread Stephan Ahonen
sectionframeset.html Clear as mud? Take a look at http://www.geocities.com/tfc_squad/, my attempt at a web page for an ill-fated TFC clan. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single

Re: [PHP] what does $$ mean?

2001-03-05 Thread Stephan Ahonen
An example of $$variables: Returns: wimpymeat smelly ditto wimpymeat smelly Now, why anyone would want to write a script that returns words like "wimpymeat" is beyond me. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!"

Re: [PHP] date

2001-03-04 Thread Stephan Ahonen
er a big blanket folder for each entry, you put variables (?) for the timestamp, the general contents of the entry, etc. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s&

Re: [PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Stephan Ahonen
http://www.php.net/manual/en/function.strtotime.php No need to code it yourself, just say $timestamp = strtotime($livedate) Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single

Re: [PHP] Way to generate Passwords

2001-03-01 Thread Stephan Ahonen
gt; $pw.= substr($allowed,$pos,1); > $i++; > } > return $pw; > } > > My questions is, if this is a good or bad way? It's a whole lot better than using real words. As long as you encrypt the passwords using a good one-way hash when you store them on the server, you should be f

Re: [PHP] How to wrap output of formatted text

2001-02-26 Thread Stephan Ahonen
There's a PHP function that does this. See: http://www.php.net/wordwrap Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email --

Re: [PHP] contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")

2001-02-01 Thread Stephan Ahonen
How about making a mailing list for job postings, i.e. [EMAIL PROTECTED]? -- 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] Want to learn PHP

2001-02-01 Thread Stephan Ahonen
s. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] VIRUS ON LIST?

2001-02-01 Thread Stephan Ahonen
> You left some attributes off: > > $retaliation = explode("",$badjoke); Either that, or: $joke = str_replace($badjoke,$goodjoke,$joke); Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorro

Re: [PHP] Problem!

2001-01-29 Thread Stephan Ahonen
<<1. $date = "20010101"; How could I output 01 01 2001 (or make it 3 variables, like day, month, year)?>> $year = substr($date,0,4); $month = substr($date,4,2); $day = substr($date,6,2); ...Assuming that the date is stored in mmdd format. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Problem with a regex!

2001-01-29 Thread Stephan Ahonen
> Your not going to find {title} when $var = "TITLE". Everything PHP is case > sensitive. If it absolutely *has* to be case insensitive, you can use eregi instead of ereg. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [PHP] Good Reads

2001-01-27 Thread Stephan Ahonen
As much as reading a book is helpful in getting you started really quick, I was able to do most of my learning by taking a simple "web page on a template" script, studying the syntax, and trying to improve it, keeping the language reference nearby for the stuff I didn't know. After a couple weeks,

Re: [PHP] expressions

2001-01-26 Thread Stephan Ahonen
> if ($co_area != !ereg("([0-9]{3})",$co_area)) > { echo " * Area code must be 3 digital"; } I don't know anything about ereg and regex, so if there's an error in that part I won't be able to help with that, but I can tell you that ($something != !$something_else) is a double negative, it's like

Re: [PHP] Greek PHP mailing list

2001-01-25 Thread Stephan Ahonen
> Ah now, but who would use a HP, when you've got your trusty TI? :-) Yup, especially since all the games are on the TI, though they're pretty scarce for the 89, my personal preference, since they're more expensive, so fewer people have them. The options: Get a graph-link cable (which I can't fi

Re: [PHP] Greek PHP mailing list

2001-01-24 Thread Stephan Ahonen
> Ah, the good ol' days of sitting in college Match classes not understanding > all those letters on the chalkboard. :-) At least you're not sitting in high school calculus and actually understanding everything on the board, but not being able to use any of it because Texas Instruments is the onl

Re: [PHP] News gateway question

2001-01-23 Thread Stephan Ahonen
> Is there any easy way to post to the group instead? I'm reading and posting from the very handy news://news.php.net server they have set up. It's just the coolest! =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] How to count time in php

2001-01-22 Thread Stephan Ahonen
talseconds / 60) . " minutes."); to get the total number of minutes. Use ceil() instead of floor() if you want to round up instead of down, or just echo((int)$totalseconds); to round to the nearest integer. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, n

Re: [PHP] Include statement problems

2001-01-21 Thread Stephan Ahonen
> Any ideas? Work arounds? I am using PHP3. Try: $page = str_replace("?", "&", $page); That'll change: include.html?page=main.html?date=12 into: include.html?page=main.html&date=12 So the variables get passed properly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

Re: [PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Stephan Ahonen
> $i = 1; > foreach ($dirs as $value) { > if ($i == ($numberofelements-1)) $lastdir = $value; > if ($i == $numberofelements) $file = $value; > $i++; > } I don't think the foreach is necessary - Why can't you just say: $lastdir = $dirs[$numberofelements-1]; $file = $dirs[$numberofelements]; T

Re: [PHP] Profanity Filter

2001-01-19 Thread Stephan Ahonen
> I don't like > arrays, because then it requires a programmer to add dirty word... You could probably make an addbadwords.php that loads the filterbadwords.php, does some stupid PHP tricks(tm) to find the line that defines the array, then writes the filterbadwords.php back out with the new words

Re: [PHP] Profanity Filter

2001-01-19 Thread Stephan Ahonen
I'd make it an array: $filter = array(moron, idiot, pratt); foreach($filter as $badword) { if (strstr($name, $badword)) { do this if it contains one of the bad words } else { do this if it doesn't } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] phpwebhosting.com

2001-01-17 Thread Stephan Ahonen
> OC12 > 622 Mb > > Monthly Fee > $550,000 > > Setup Fee > call (prolly between 10k and 20k) Hmm, I think my allowance should be able to cover that. It'll really speed up all the instant messaging I do. Sig for a Day Stephan Ahonen, ICQ 491101 "Don't

Re: [PHP] password()

2001-01-15 Thread Stephan Ahonen
> Im curious to see how other php developers store their passwd's I store it in the "universal include file" as $password["User"] = "Encrypted password"; Then when the user logs in: if (encryption_function($entered_password) == $password[$entered_username]) { Do this stuff } else{ echo("Please

Re: [PHP] hello

2001-01-15 Thread Stephan Ahonen
I don't know about everybody else, but I learned PHP by taking a simple, pre-existing script and upgrading it to my needs by studying the syntax and putting in new code to do what I wanted it to, always keeping the PHP online manual at my side. By just jumping in like that, I've managed to build a