[PHP] Re: confirm subscribe to php-gene...@lists.php.net

2012-10-29 Thread Ivo Engelhardt
-- Ivo Engelhardt engelha...@fastmail.fm Am Di, 30. Okt 2012, um 6:25, schrieb php-general-h...@lists.php.net: > Hi! This is the ezmlm program. I'm managing the > php-general@lists.php.net mailing list. > > I'm working for my owner, who can be reached > at php-ge

[PHP] When is gettimeofday() or microtime() unavailable?

2011-08-04 Thread Ivo F.A.C. Fokkema
timeofday() system call available? Any help is highly appreciated. Thanks, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Job opening in Leiden, Netherlands: PHP/MySQL developer

2008-09-01 Thread Ivo F.A.C. Fokkema
oon as possible since we've already started selecting candidates. Ivo Fokkema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Suggestions of GPL plugin-system?

2007-01-31 Thread Ivo F.A.C. Fokkema
. So I guess, inspired by the Drupal system, I'm going to create a much smaller system that I will implement myself... Thanks again! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Suggestions of GPL plugin-system?

2007-01-29 Thread Ivo F.A.C. Fokkema
, PHP-Nuke, PHPbb, etc, etc.) that you have been working with as a coder. Could any of you suggest a certain GPL application that has a great module setup that I could take a look at? Thanks a lot for your time! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Sending E-mail

2006-12-06 Thread Ivo F.A.C. Fokkema
Also, try to use a local email address first. Possibly it gets sent, but the remote server blocks the email as spam. You can check that by having the email sent to your local user, and check if it arrives there. HTH On Mon, 04 Dec 2006 16:53:19 +0100, Jochem Maas wrote: > Janet Smith wrote: >>

[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Ivo F.A.C. Fokkema
using Pan and it's taking ages for me to connect. It just queues my tasks and then suddenly it connects and executes the tasks. Then after a minute or so of inactivity it closes the connection again. It gets really annoying and I seem to have lost a post of mine as well. Ivo --

Re: FW: [PHP] Re: Please hack my app

2006-12-01 Thread Ivo F.A.C. Fokkema
without an argument) it finds a vulnerability. I will analyze the results more detailed later on. Would you appreciate comments on the service? Thanks again, Ivo On Tue, 28 Nov 2006 14:19:30 +0800, Jordan Forssman wrote: > Hi, > > My name is Jordan Forssman, I am representing a comp

[PHP] Re: Please hack my app

2006-11-27 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 09:57:50 +0100, Ivo F.A.C. Fokkema wrote: > Hi List, > > As this subject may start you wondering what the hell I'm thinking, let me > clearify: > > I've been rewriting an GPL'ed PHP/MySQL app from scratch for the last 12 > months

Re: [PHP] Encoding

2006-11-22 Thread Ivo F.A.C. Fokkema
r is used. > > Kind regards, > >Jens Before outputting the HTML, try this: header('Content-Type: text/html; charset=ISO-8859-1'); Try if that works. HTH Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 13:37:43 +, Edward Kay wrote: >> guys I think we need to relax a bit and not attack the guy so much! >> > I agree. > > Ivo, have you tried Chorizo? http://chorizo-scanner.com/ Thanks Angelo & Edward! Chorizo looks good, especially the Morcil

Re: [PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
dness of someones heart, you might > get an answer from them. :) I know how the list works, thanks :D There are no known problems at the time. Just wanted to check if anyone thought of something I hadn't thought of. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 09:53:00 +, Stut wrote: > Kevin Waterson wrote: >> This one time, at band camp, "Ivo F.A.C. Fokkema" <[EMAIL PROTECTED]> wrote: >> >>> *** THIS IS NOT ABOUT HACKING THE SERVER *** >>> But about getting in the applicat

Re: [PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 20:14:37 +1100, Kevin Waterson wrote: > This one time, at band camp, "Ivo F.A.C. Fokkema" <[EMAIL PROTECTED]> wrote: > >> >> *** THIS IS NOT ABOUT HACKING THE SERVER *** >> But about getting in the application when you're not all

[PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
n details of a curator account. This user is allowed to see non-public data and handle the specific gene, but NOT create new users or the like. If you have any questions, please ask. Thank you in advance for using your expertise for the good cause :) Regards, Ivo -- PHP General Mailing

RE: [PHP] date() function

2006-11-15 Thread Ivo F.A.C. Fokkema
On Tue, 14 Nov 2006 15:11:56 -0500, Brad Fuller wrote: > > > $prevminute = sprintf('%02s', date("i")-1); Or, $prevminute = str_pad(date("i")-1, 2, '0', STR_PAD_LEFT); It's a little more code - don't ask me about the speed :)

[PHP] Re: Call to undefined function

2006-11-14 Thread Ivo F.A.C. Fokkema
contents (...) { // Do it your way! } } Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do you do the ? mark after a filename

2006-11-13 Thread Ivo F.A.C. Fokkema
On Sun, 12 Nov 2006 22:02:51 -0700, Thomas Bonham wrote: > Thank you for that, it was a big help. > > Can I also call function that way? > > Again thank you for your help. > > Thomas Do you mean: /index.php?action=search -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: Spam using email on website

2006-11-07 Thread Ivo F.A.C. Fokkema
orm, but keep on getting it. > > What can i do? I usually find these bastards to enter lots of information in some fields. If I find too much info (or an \r\n) in a regular field, I either stop processing or throw an error. Either way: no mail-sending. Ivo -- PHP General Mailing

Re: [PHP] counting records in db

2006-10-31 Thread Ivo F.A.C. Fokkema
On Mon, 30 Oct 2006 12:28:29 +0100, Robin Vickery wrote: > On 30/10/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: >> On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote: >> > On Fri, October 27, 2006 4:53 pm, Børge Holen wrote: >> >> On Friday 27 Oct

RE: [PHP] Query question

2006-10-30 Thread Ivo F.A.C. Fokkema
se of one additional function and RIGHT() may even be faster than SUBSTRING() because it doesn't need to go through the entire string. But that's just guessing and I think you probably won't even notice this in microseconds :) Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting records in db

2006-10-30 Thread Ivo F.A.C. Fokkema
On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote: > On Fri, October 27, 2006 4:53 pm, Børge Holen wrote: >> On Friday 27 October 2006 19:34, Richard Lynch wrote: >>> And the header("Location: ...") requires a full URL. >> >> No it doesn't. but he's missing an ' at first glance > > Yes, it

Re: [PHP] foreach on a 3d array

2006-10-25 Thread Ivo F.A.C. Fokkema
On Wed, 25 Oct 2006 13:53:47 +0200, Dotan Cohen wrote: > On 25/10/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: >> >> Because that wouldn't work :) >> >> This variable may contain stuff like "nl,en-us;q=0.7,en;q=0.3". You'll &g

Re: [PHP] [php] passing variables doesn't work

2006-10-25 Thread Ivo F.A.C. Fokkema
ion fails, the error will most likely not show up, you'll have an empty select box, we'll get a new question from you etc. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with EXEC and PASSTHRU

2006-10-25 Thread Ivo F.A.C. Fokkema
On Wed, 25 Oct 2006 20:35:29 +1300, Matt Beechey wrote: > I am writing a php website for users to edit a global whitelist for Spam > Assassin - all is going fairly well considering I hadn't ever used php until > a couple of days ago. My problem is I need to restart AMAVISD-NEW after the > user sav

[PHP] Re: strtotime

2006-10-25 Thread Ivo F.A.C. Fokkema
d throughout > November the result to be January 31st 2007 > > Ron My suggestion is: $date = date('Y-m-t', strtotime('+2 months')); $date = date('F jS Y', strtotime($date)); Only two lines of code, only four function calls. As you know, there are many ways t

Re: [PHP] foreach on a 3d array

2006-10-25 Thread Ivo F.A.C. Fokkema
, "Shqipe", "Albania") >> >> That much I knew. Thanks, Chris. >> >> Dotan Cohen >> >> http://essentialinux.com/ >> http://technology-sleuth.com/ > > Why not just do > > if(isset($language[$_HTTP_ACCEPT_LANGUAGE])) { >

Re: [PHP] connectivity weirdness

2006-10-24 Thread Ivo F.A.C. Fokkema
d the mouse cursor. Please restart Windows for the changes to take effect". Win98 particularly sucks with that, but Win/2000 and WinXP are a lot better, but then again never as good as Linux. I only need to reboot after upgrading my kernel :) Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding a visitor's location

2006-10-23 Thread Ivo F.A.C. Fokkema
On Mon, 23 Oct 2006 19:00:08 +1000, Chris wrote: > John Messam wrote: >> Hello, I am trying to find out the country and possibly the city where the >> visitors to my site are coming from. I can capture the IP address but how >> do I translate that to a specific locale. Is there a way to do it

Re: [PHP] Re: Paginating searchs = performance problem

2006-10-23 Thread Ivo F.A.C. Fokkema
On Mon, 23 Oct 2006 04:33:52 -0400, Robert Cummings wrote: > On Mon, 2006-10-23 at 10:13 +0200, Ivo F.A.C. Fokkema wrote: >> On Fri, 20 Oct 2006 12:06:26 -0400, Robert Cummings wrote: >> >> > On Fri, 2006-10-20 at 17:22 +0200, Ivo F.A.C. Fokkema wrote: >> >>

Re: [PHP] User question for PHP

2006-10-23 Thread Ivo F.A.C. Fokkema
On Sat, 21 Oct 2006 14:41:11 +1000, chris smith wrote: > On 10/21/06, Jochem Maas <[EMAIL PROTECTED]> wrote: >> chris smith wrote: >> > On 10/21/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: >> >> On Fri, 20 Oct 2006 23:24:14 +1000, chris smith w

[PHP] Re: One-page password-protected file

2006-10-23 Thread Ivo F.A.C. Fokkema
this solution? Thanks. > > Dotan Cohen Hi Dotan, My approach would be to store the password in the $_SESSION array, but be absolutely sure that cookies are used for session authorization, to prevent session hijacking. The good thing about using $_SESSION is that the password, hashed or not, would *never* be sent to the user. Only the session id. By the way: substr($pre_password[0],0) serves no purpose :) Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Paginating searchs = performance problem

2006-10-23 Thread Ivo F.A.C. Fokkema
On Fri, 20 Oct 2006 12:06:26 -0400, Robert Cummings wrote: > On Fri, 2006-10-20 at 17:22 +0200, Ivo F.A.C. Fokkema wrote: >> On Fri, 20 Oct 2006 17:04:35 +0200, Fourat Zouari wrote: >> >> > I have PHP/PostgreSQL application were i got a search page with some items >>

[PHP] Re: Paginating searchs = performance problem

2006-10-20 Thread Ivo F.A.C. Fokkema
rst query, you don't need to sort your data though, and you might be able to drop a join, depending on whether or not you use the joined table in your WHERE clause. But I think due to caching the database will not take a long time for the second query, since it just recently had (almost) the same

[PHP] Re: Encode text

2006-10-20 Thread Ivo F.A.C. Fokkema
l decode your string to ISO-8859-1. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User question for PHP

2006-10-20 Thread Ivo F.A.C. Fokkema
On Fri, 20 Oct 2006 23:24:14 +1000, chris smith wrote: > On 10/20/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: >> On Fri, 20 Oct 2006 15:49:14 +1000, Chris wrote: >> >> > Andy Hultgren wrote: >> >> To whoever was asking this (sorry didn't see th

[PHP] Re: array_walk, or array_map, or foreach?

2006-10-20 Thread Ivo F.A.C. Fokkema
walk() doc page. Functions have their own variable scope. If those words mean nothing to you: http://www.php.net/manual/en/language.variables.scope.php http://www.php.net/manual/en/language.references.pass.php Bottom line: the values get changed within the function, but when the function ends, the value changes are 'lost'. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] User question for PHP

2006-10-20 Thread Ivo F.A.C. Fokkema
le either by default. Using suPHP, it is. You can argue that it can only do this to the PHP files owned by the same user, and therefor probably limiting the damage to one specific website, however we're still having a security problem. Both situations seem dangerous to me, both in different ways. Wouldn't you say that the user must know what the hell he's doing in both situations? Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to recognise url in a block of text

2006-10-18 Thread Ivo F.A.C. Fokkema
[-0-9a-z]*[0-9a-z]\.)+[a-z]{2,4})\/?[%&=#0-9a-z\/._+-]*\??.*$/i to match an full URL with domain name or IP address, and: /((ht|f)tps?:\/\/([0-9]{1,3}(\.[0-9]{1,3}){3}|([0-9a-z][-0-9a-z]*[0-9a-z]\.)+[a-z]{2,4})\/?[%&=#0-9a-z\/._+-]*\??[^[:space:]]+)/i to replace an space delimited URL with preg_replace. It has worked fine for me, but I just can't read your regexp, so I can't see why it's better. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us

2006-10-18 Thread Ivo F.A.C. Fokkema
the string using ',', and analyze the given array in the right order: // Available languages & user preferences. $aLang = array('fr' => 'french.htm', 'en' => 'english.htm'); $aSett = explode(',', $_SERVER['HTTP_ACCEPT_LANGUA

[PHP] Re: mktime()'s is_dst deprecated, but needed?

2006-10-17 Thread Ivo F.A.C. Fokkema
an also feed the mktime the incremented hour, cause it will calculate the time correctly even with values that are out of range (such as 25 hours, 75 minutes, etc). Hope this helps, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: canon jpegs

2006-10-13 Thread Ivo F.A.C. Fokkema
d the canon > jpeg in my imaging application GD could handle it. > > Any ideas of how to solve this? I'm in a bit of a panic. > > Emil Not a solution, but possibly a workaround: use ImageMagick, have your script run the `convert` command in stead of having to worry about the i

Re: [PHP] foreach

2006-10-11 Thread Ivo F.A.C. Fokkema
st element... } else { // Not the last element... } } Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help to build a query

2006-10-11 Thread Ivo F.A.C. Fokkema
e, eh? To fetch all uploaded filenames in one result row, and solving the limit problem all at once, see group_concat(). Mind you, works only with MySQL 4.1... Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] guess documentroot

2006-10-09 Thread Ivo F.A.C. Fokkema
> the directories only */ > > $aPath = str_replace($_REQUEST['QUERY_STRING'], '', > $_SERVER['SCRIPT_NAME']); > $aPath = substr($aRuta, 0, (strrpos($aRuta, '/') + 1)); > > Thanks a lot guys :) Why make your life harder than it needs to be:

Re: [PHP] quick question about preg_replace

2006-10-05 Thread Ivo F.A.C. Fokkema
On Thu, 05 Oct 2006 09:29:46 +0800, Penthexquadium wrote: > On Wed, 4 Oct 2006 23:19:58 +0200, "Martin Bach Nielsen" <[EMAIL PROTECTED]> > wrote: > >> Hi all. >> >> >> >> I have written a guestbook (I know, there's a ton out there), which until >> recently did not get any spam, so now I'm tr

Re: [PHP] PHP jump to other page

2006-10-05 Thread Ivo F.A.C. Fokkema
f (!statement) { > header('Location: index2.php'); > exit; > } > // other codes... It's recommended (HTTP/1.1 standard requirement) to use a full absolute path. header('Location: http://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/') . '/index2.php'); Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Strange error in PHP/MySQL

2006-10-04 Thread Ivo F.A.C. Fokkema
rror: ' . mysql_error(); > $result = mysql_query($sqlInsertUser); > > that gives me the error: > "Error: Duplicate entry 'localhost-' for key 1" > > I can't see nothing wrong with it and if i run it in MySQL's prompt > everything's fine

Re: [PHP] Re: mysql_real_escape_string() question

2006-09-29 Thread Ivo F.A.C. Fokkema
On Thu, 28 Sep 2006 11:33:06 -0400, Eric Butera wrote: > On 9/28/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: >> >> Hi Tedd, >> >> According to >> http://nl3.php.net/mysql_real_escape_string >> >> The function requires a MySQL connection. If

Re: [PHP] strange errors from command line vs. web

2006-09-29 Thread Ivo F.A.C. Fokkema
stro, such as Debian, Ubuntu, Fedora, Suse or the like? Or are you compiling stuff like on Gentoo? Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql_real_escape_string() question

2006-09-28 Thread Ivo F.A.C. Fokkema
ng() require a password? > > What's up with that? Any ideas as to what happened? > > tedd Hi Tedd, According to http://nl3.php.net/mysql_real_escape_string The function requires a MySQL connection. If there is none, it will try and create one. That fails now. Possibly you c

Re: [PHP] strange errors from command line vs. web

2006-09-28 Thread Ivo F.A.C. Fokkema
Hi, (sorry for top-posting) This is the great way PHP-cli lets you know it hasn't got any MySQL support :) Enable that, and you're good to go. Mind you, PHP-cli has a separate php.ini file. Ivo On Thu, 28 Sep 2006 08:26:13 -0400, blackwater dev wrote: > Ok, I've set

Re: [PHP] Print or Echo takes lots of time

2006-09-28 Thread Ivo F.A.C. Fokkema
ng incl. a variable (concat)' Time : 3.58s - 3.79s Case 2 : 'Setting a var with a 100-character double quoted string incl. a variable' Time : 4.12s - 5.24s Performance : Anywhere between Decreased 14.9% - Decreased 38.4% Same with using double quoted strings only... Hey! It's coffee break already! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is this unsecure?

2006-09-05 Thread Ivo F.A.C. Fokkema
On Tue, 05 Sep 2006 16:04:07 +0700, Peter Lauri wrote: > Hi, > > > > I have bumped into a problem. I need to use a web service that is located on > server B from server A. The server B will execute a script when the web > service is accessed and an email is sent as an parameter. The problem is

[PHP] Re: Organizing php functions

2006-09-03 Thread Ivo F.A.C. Fokkema
On Fri, 01 Sep 2006 21:35:32 -0600, The Doctor wrote: > The question comes up because: > > Sort file in the path interfere with one another > > which leads to > > web page malfunction. > > Question: should all php programmes such as drupal be placed > under /usr/local/lib ? I'm not getting th

[PHP] Re: Functions vs html outpuit

2006-09-03 Thread Ivo F.A.C. Fokkema
7;s faster for the server if you just write the HTML, but this is much easier for me to create, edit and re-use in other projects... Just my 2 cts. Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: help - outputting a jpeg

2006-08-29 Thread Ivo F.A.C. Fokkema
On Tue, 29 Aug 2006 09:52:20 +0100, Ross wrote: > I just get all the binary data output > > include("includes/config.php"); > $link = mysql_connect($host, $user, $password) or die ('somethng went > wrong:' .mysql_error() ); > mysql_select_db($dbname, $link) or die ('somethng went wrong, DB er

Re: [PHP] Comparing strings... need advice. :)

2006-08-29 Thread Ivo F.A.C. Fokkema
On Mon, 28 Aug 2006 19:39:49 -0400, Robert Cummings wrote: > On Mon, 2006-08-28 at 16:50 +0200, Ivo F.A.C. Fokkema wrote: >> On Mon, 28 Aug 2006 09:47:02 +0100, Stut wrote: >> > Micky Hulse wrote: >> >> I am looking for the most secure/efficient way to c

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Ivo F.A.C. Fokkema
str($haystack, 0, strlen($needle))) == 0); > Personally, this seems simpler to me: $valid = (dirname($haystack) == $needle); But the way the above folders are presented, it should become $valid = (dirname($haystack) == rtrim($needle, '/')); less simple already... Possibly, this is not the best solution for some reason I don't know. If so, I would like to know :) Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Why small > big?

2006-08-25 Thread Ivo F.A.C. Fokkema
> [SNIP] > Considering in this thread where I left the quality at 100% and > reduced the image to less 40 percent of the original, and the end > result was that I actually made a larger file. So, I belive that at > least this example shows that 100% is not a good quality value > setting for red

[PHP] Re: How to deal with errors in forms

2006-08-25 Thread Ivo F.A.C. Fokkema
On Thu, 24 Aug 2006 11:40:17 +0200, Merlin wrote: > Hi there, > > I do have a form where there is also a field with max 2000 characters > the user can put in. > > Now before processing the data with php, I do a checkin the script for > certain criterias if something lookes wrong I do redirect

Re: [PHP] Re: Why small > big?

2006-08-25 Thread Ivo F.A.C. Fokkema
> [SNIP] > As for PNG: As far as I know, the only issue with any realistic browser > (other than very old ones like IE2 or something) is that the alpha > channel is not supported. As there is no alpha channel in JPEG, so > there is no difference. Though I do not profess to be absolutely sure

[PHP] Re: Regex

2006-08-21 Thread Ivo F.A.C. Fokkema
ri How's this: $1", $s); ?> This is very non strict. Anything starting with http:// until the next whitespace (\s) is clickable. You might want to put a more strict rule in there, but it depends on the text your searching in. Note that above code does not work when an url is at the end

[PHP] Re: setting a session with a text link?

2006-08-21 Thread Ivo F.A.C. Fokkema
h, as requested. $_SESSION['switch'] = ($_GET['switch'] == 'on'? 1 : 0); } ?> Hope this helps anything... Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple scrip to stop email injection

2006-08-17 Thread Ivo F.A.C. Fokkema
On Wed, 16 Aug 2006 15:54:32 -0500, Richard Lynch wrote: > On Wed, August 16, 2006 4:53 am, Ross wrote: >> >> Been having loads of problems with this and have solved it using the >> phpmailer. The only problem is I cannot get the class working on the >> remote >> host I am working on. I am back to

[PHP] Re: simple scrip to stop email injection

2006-08-16 Thread Ivo F.A.C. Fokkema
that checks my fields $fname, $sname, $email, $subject, $message. Couldn't you do a preg_match on \n, \r or \r\n for the $fname, $sname, $email and $subject? Checking $message would not be necessary, as it would probably contain linebreaks and it's not included in the message header anyw

RE: [PHP] break up variable and put each element in an array

2006-08-15 Thread Ivo F.A.C. Fokkema
On Mon, 14 Aug 2006 19:14:42 -0500, Richard Lynch wrote: > On Mon, August 14, 2006 2:41 am, Ivo F.A.C. Fokkema wrote: >> On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote: >>> On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote: >>>> Well, if it

RE: [PHP] break up variable and put each element in an array

2006-08-14 Thread Ivo F.A.C. Fokkema
On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote: > On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote: >> Well, if it's true that some browsers on some platforms ignore the W3C >> standard, I guess we could use: > > Or perhaps these browsers pre-date W3C

RE: [PHP] break up variable and put each element in an array

2006-08-11 Thread Ivo F.A.C. Fokkema
I did some extensive searching, and I found this in the W3C specifications: "Line breaks, as in multi-line text field values, are represented as "CR LF" pairs, i.e., `%0D%0A'." (http://www.w3.org/TR/WD-html40-970917/interact/forms.html) > Better safe than sorry, and I *know* I ran into this with some Mac users. > > Plus I hate trying to edit the text chunks in vi with those icky \r > thingies that turn into ^M :-) Well, if it's true that some browsers on some platforms ignore the W3C standard, I guess we could use: $datelist = str_replace(array("\r\n","\n","\r"),'',$_POST['datelist']); Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-11 Thread Ivo F.A.C. Fokkema
On Thu, 10 Aug 2006 16:41:38 -0500, Richard Lynch wrote: > On Wed, August 9, 2006 3:14 am, Ivo F.A.C. Fokkema wrote: >> SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the >> PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure >> a

Re: [PHP] problem with quotes (single and double) in forms

2006-08-10 Thread Ivo F.A.C. Fokkema
// for compatibility regardless of the settings: if (get_magic_quotes_gpc()) { lovd_magicUnquote(); } Typically, I make sure my values are quoted and unquote them when needed, but I guess that's a matter of preference. Ivo On Thu, 10 Aug 2006 13:08:21 +0800, J R wrote: > here&

[PHP] Re: Cron running 'Hello world' script dies with "Could not startup."

2006-08-10 Thread Ivo F.A.C. Fokkema
On Wed, 09 Aug 2006 11:14:11 +0100, Colin Guthrie wrote: > Ivo F.A.C. Fokkema wrote: >> SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the >> PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure about >> other distros. >> >

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 17:07:29 +0200, Ivo F.A.C. Fokkema wrote: > On Tue, 08 Aug 2006 10:01:41 -0500, Ray Hauge wrote: > >> On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: >>> On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: >>> > On Tuesday 08 Augu

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-09 Thread Ivo F.A.C. Fokkema
doesn't use the Apache error logs to dump error information. I have tracked this problem down to the PHP-cli's php.ini (see other post). Thanks for thinking with me! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 10:01:41 -0500, Ray Hauge wrote: > On Tuesday 08 August 2006 09:01, Ivo F.A.C. Fokkema wrote: >> On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: >> > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: >> >> > Does the user ru

RE: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 07:28:43 -0600, Jef Sullivan wrote: > Here is the cron command that we use. I've modified the path to the file for > security purposes. > > */5 * * 1-6 lynx -dump http://fully.qualified.path/cron_test.php > -auth=usr:pwd > > Jef Thanks for the reply. However, your example

RE: [PHP] break up variable and put each element in an array

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 2006-08-08 at 16:06 +0200, Reinhart Viane wrote: > > try this: > > > > $string = "3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006 1/01/2007 > > 15/02/2007"; > > $array = explode(' ', $string); > > foreach ($array as $value) echo "Date: $value"; > > If the user separates the dates by

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 09:01:42 -0500, Ray Hauge wrote: > On Tuesday 08 August 2006 08:47, Ivo F.A.C. Fokkema wrote: >> > Does the user running the cron have permission to execute the php binary? >> >> Yes, the file's owner is me and it's my crontab. Also, I've

[PHP] Re: Incrementing a page link, refresh problem

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 14:54:08 +0100, Ross wrote: > I write a session to determine what module a user is on > > > $_SESSION['module_no']==1; > > when they get to the end of the module I want to create a dynamic link to > the next module > > $increment = $_SESSION['module_no']++; > $link= "../mo

Re: [PHP] break up variable and put each element in an array

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 14:50:53 +0100, Dave Goodchild wrote: > On 08/08/06, Reinhart Viane <[EMAIL PROTECTED]> wrote: >> >> A. I have a page on which people can supply dates in a text area. Dates >> are >> entered like this: >> 3/01/2005 >> 29/12/2005 >> 2/01/2006 >> 20/02/2006 >> 28/12/2006 >> 1/01/

Re: [PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
On Tue, 08 Aug 2006 09:10:53 -0400, John Nichel wrote: > Ivo F.A.C. Fokkema wrote: >> Suddenly my backup scripts die with the error "Could not startup.". Only >> through the cron, it runs fine through the console. I've tried all kinds >> of tests with other PHP

[PHP] Cron running 'Hello world' script dies with "Could not startup."

2006-08-08 Thread Ivo F.A.C. Fokkema
Dapper install, same result. - PHP version: 4.4.2-1build1 - Yes, I've verified that I'm using the PHP-cli executable. Thanks for any input! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular Expression

2004-11-25 Thread Ing. Ivo F.A.C. Fokkema
; means simpal structure with comma (a,b,c...) Hi, Try this (untested) : preg_match('/^([a-c],)*[a-c]$/', $input); this will match characters a-c separated by commas. Replace 'a-c' by any range of characters you like. HTH, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Handing Windows / Linux

2004-11-17 Thread Ing. Ivo F.A.C. Fokkema
ter to check the constant PHP_OS for the current OS or check the current $_SERVER['HTTP_HOST'] to find out whether you are on your local windows server or the linux server. So (not tested) if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { @ $handle = opendir("c:/websites/mywebsite/extra/photos/".$_GET['page']."/"); } else { @ $handle = opendir("/home/mywebsite/public_html/extra/photos/".$_GET['page']."/"); } HTH, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
in if statements, resulting in my confusion. Thanks again, Ivo On Tue, 09 Nov 2004 12:42:51 +0200, Bogdan Stancescu wrote: > Apart from Marek's reply, you should probably check the in_array() > documentation (look at the third, optional parameter) and search for type > casting on

[PHP] in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
== 0); also returns bool(true). But my logic tells me, that if 'test' == 0, then : if (0) { ... } should do the same as if ('test') { ... } but it doesn't! The first if-statement is _not_ executed, the latter is. In my opinion, this is not correct. Any thoughts o

Re: [PHP] Meta refresh best answer ??

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi Michael, I always use header('Refresh: 2; url=' . $_SERVER['PHP_SELF']); to reload the current page every 2 seconds. You may want to pass $_GET variables, depending on your needs. Also make sure you call this function _before_ any other output has gone to the browser. HT

RE: [PHP] Download Script

2004-08-27 Thread Ivo Pletikosic
> I am > wondering if this is my headers that are doing this, but I > really dont know. I think its an IE or Windows behavior and what causes it is the multiple dots in the filename. I resorted to naming our downloads "filename-v1_0_2_1.exe" > -Original Message- > From: Aaron Todd [mail

RE: [PHP] view outputed headers?

2004-01-12 Thread Ivo Pletikosic
I've been using mozilla firebird as a test browser with the 'Live HTTP Headers' extension. I've found it most useful. http://texturizer.net/firebird/extensions/#livehttpheaders > -Original Message- > From: Scott Taylor [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 11, 2004 9:34 PM >

RE: [PHP] Verifying a url

2004-01-06 Thread Ivo Pletikosic
It did not work for me but since I have only one http port and one https port on my server i use instead if( $_SERVER['SERVER_PORT'] == "80" ) echo 'http'; C. > -Original Message- > From: Richard Davey [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 06, 2004 6:56 PM > To: Thomas And

[PHP] Strong typed or Weak typed? (was: if("NANC" < 0) - always evaluates TRUE...)

2004-01-06 Thread Ivo Pletikosic
> -Original Message- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > > From: "Kelly Hallman" <[EMAIL PROTECTED]> > > > On Tue, 6 Jan 2004, Ivo Pletikosic wrote: > > > $data = 'NANC'; > > > if(is_numeric($data) &am

RE: [PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Ivo Pletikosic
s: $data = 'NANC'; if(is_numeric($data) && $data < 0) { die('Not OK'); } print('OK'); Where do I file this for developers with some time on their hands to look at? Thanks, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] if("NANC" < 0) - always evaluates TRUE...

2004-01-06 Thread Ivo Pletikosic
...no matter what follows the NANC...seems like a bug. if("NA" < 0) { print("err 1\n"); } if("NAN" < 0) { print("err 2\n"); } if("NANC" < 0) { print("err 3\n"); } if("NANCY" < 0) { print("err 4\n"); } // output err 3 err 4 -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] HTTP request contents

2003-10-24 Thread Hanuska Ivo
Hi everyone, I need to know, if there is a possibility to read full contents of HTTP request. I know, the response can be sent by header() function. But can I get the request of the client for server? Thank you, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Pictures stored in database and IE

2003-10-20 Thread Hanuska Ivo
I have to send on the end after data are transmitted? Or, do I have to send just headers and data and nothing else. But anyway I think, problem is on PHP(?)/mine site, not on IEs side. Looking forward for your ideas, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Validating Subdomain E-mail Addresses Using Regular Expressions

2003-09-10 Thread Ivo Fokkema
]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*(\.[a-z]{2,3})$"; > > if(eregi($empatt, $email)) >{ > //do stuff >} > > -- End Code -- Try this pattern (which I use): "[EMAIL PROTECTED],4}$" HTH, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-09 Thread Ivo Fokkema
k.com/utils_obfuscate.php Phrozen http://sourceforge.net/projects/phrozen/ POBS http://pobs.mywalhalla.net/ Anyone have any recommendations or experience with any? -- Ivo "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Take a look at Turck MMCache (fre

Re: [PHP] -f function ???

2003-09-09 Thread Ivo Fokkema
is set to safe_mode. HTH, Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: accessing $GLOBALS values

2003-09-02 Thread Ivo Fokkema
d to problems when you use the name of a constant as a key. I hope this is clear, more info can be found at http://www.php.net/manual/en/language.types.array.php and scroll down to 'Array do's and don'ts' -> 'Why is $foo[bar] wrong?' HTH, Ivo Fokkema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Interview questions

2003-08-27 Thread Ivo Fokkema
"Gabriel Guzman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote: > > > PHP is server side, so it obviously cannot control light bulbs. Use > > javascript. > > maybe the lightbulbs are connected to the server :) as seems to be the

  1   2   >