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

2011-08-04 Thread Ivo F.A.C. Fokkema
Dear list, I've tried Google, php.net and the list's archives, but I can't find what I'm looking for. Maybe it's obvious, or maybe nobody wonders about this... For years, I've used microtime() to get the current time including the microseconds. However, somebody pointed me at a sentence in the

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

2008-09-01 Thread Ivo F.A.C. Fokkema
Dear all, We have an immediate job opening available to work in our team of bio-informaticians on extending the LOVD software (www.LOVD.nl). Even if you're still a beginner with PHP you're welcome to respond. Affinity to biology is a big plus. LOVD (Leiden Open Variation Database) is webbased

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

2007-01-31 Thread Ivo F.A.C. Fokkema
Thanks everyone for the useful input. I've looked around a bit using the various links and info that I got. The Gallery2 documentation on the modules is far from transparent to me, and the idea of having a general module class that needs to get extended by the module doesn't appeal to me either. I

[PHP] Suggestions of GPL plugin-system?

2007-01-29 Thread Ivo F.A.C. Fokkema
Hi guys, I've been developing a GPL PHP/MySQL app for some time now and I would like to extend it with a module/plugin system. The idea would be that people could add a directory in a plugin path that would contain a bunch of PHP files extending the functionality of my application. This directory

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

2006-12-06 Thread Ivo F.A.C. Fokkema
On Wed, 06 Dec 2006 10:49:52 +, Colin Guthrie wrote: Al wrote: Anyone having problems connecting the last few days? Or, is there something wrong on my end. Al other sites are working just fine. Newsgroup? I presume you are using Gmane (as I am). I'm using Pan and it's taking ages

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

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

2006-12-01 Thread Ivo F.A.C. Fokkema
Technologies Tel. +886-2-6616-0100 ext. 201 Cell. +886-938-100-214 Fax. +886-2-6616-1100 Skype: jordan4z [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Ivo F.A.C. Fokkema [mailto:I.F.A.C. [EMAIL PROTECTED] Sent: Monday, November 27, 2006 6:01 PM To: php-general

[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 or so. It facilitates storage of DNA mutations

[PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
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 or so. It facilitates storage of DNA mutations and the corresponding patient data. Because patient data is involved,

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 allowed to! So, basically, you want _us_ to do _your_ bug

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 application when you're not allowed to! So, basically, you want _us_

Re: [PHP] Please hack my app

2006-11-22 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 03:20:16 -0800, Ryan A wrote: Hey there, I dont mean to be a total pri*k about this, but unless you have created something that you are willing to share with others and others can use/modify for their requirements, and you grant them this privilege...I think the norm is

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 Morcilla extension mentioned on the

Re: [PHP] Encoding

2006-11-22 Thread Ivo F.A.C. Fokkema
On Wed, 22 Nov 2006 16:19:54 +0100, Jens Meyer wrote: Hi! Could you check the default encoding of your webserver (in httpd.conf)? I noticed that the charset-information in meta-information is ignored and the default-charset of the webserver is used. Kind regards, Jens Before

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 :) Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Call to undefined function

2006-11-14 Thread Ivo F.A.C. Fokkema
On Tue, 14 Nov 2006 09:36:52 +, Tom Chubb wrote: I have just encountered a fatal error using file_put_contents() on a PHP4 box. After a bit of research I found a simple function within the php.net user comments. I just wanted to know what happens if I then tried to run this script on a

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 if (isset($_GET['action']) $_GET['action'] == 'search') {

[PHP] Re: Spam using email on website

2006-11-07 Thread Ivo F.A.C. Fokkema
On Tue, 07 Nov 2006 08:42:57 +0200, Pieter du Toit wrote: Hi guys I have a website that is being crawled or whatever and i have a submission form for an event. I keep on getting random mail from this form. I have even disabled the submit button on the form, but keep on getting it.

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 October 2006 19:34, Richard Lynch wrote

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

RE: [PHP] Query question

2006-10-30 Thread Ivo F.A.C. Fokkema
On Sun, 29 Oct 2006 23:04:27 -0600, Richard Lynch wrote: On Sun, October 29, 2006 2:06 am, Beauford wrote: LOL, I don't know either. The format is - 01/01/2006. When I first did it I used 7, which should be right, but I ended up getting /2002 /2003, etc. So I went to 8 and all was well.

Re: [PHP] foreach on a 3d array

2006-10-25 Thread Ivo F.A.C. Fokkema
On Tue, 24 Oct 2006 23:55:49 +0200, M.Sokolewicz wrote: Dotan Cohen wrote: On 24/10/06, Chris Boget [EMAIL PROTECTED] wrote: $languages = array( af = array(Afrikaans, Afrikaans, South Africa), sq = array(Albanian, Shqipe, Albania)); foreach ($languages as $language){

[PHP] Re: strtotime

2006-10-25 Thread Ivo F.A.C. Fokkema
On Tue, 24 Oct 2006 20:36:08 -0400, Ron Piggott (PHP) wrote: I have used the strtotime command to calculate a week ago (among other things) with syntax like this: $one_week_ago = strtotime(-7 days); $one_week_ago = date('Y-m-d', $one_week_ago); How would you use this command to figure

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

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

2006-10-25 Thread Ivo F.A.C. Fokkema
On Wed, 25 Oct 2006 10:19:24 +0200, Max Belushkin wrote: Whatever form information you want to pass has to be part of the form. WILLEMS Wim (BMB) wrote: select name=database size=1 In the second script, the value of this will be in $_POST[database]. ... which will contain absolutely

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 need to do something with this variable first to use array_key_exists

Re: [PHP] connectivity weirdness

2006-10-24 Thread Ivo F.A.C. Fokkema
On Mon, 23 Oct 2006 16:52:54 -0500, Richard Lynch wrote: On Fri, October 20, 2006 11:40 am, Richard Lynch wrote: Changing the gateway to the one that NATs fixed things. Good you got things fixed! PS On another fun job this weekend... NOTE TO SELF: Always check to make sure nobody kicked

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 to search, am building the search

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

2006-10-23 Thread Ivo F.A.C. Fokkema
On Sat, 21 Oct 2006 18:16:19 +0200, Dotan Cohen wrote: On 21/10/06, Dotan Cohen [EMAIL PROTECTED] wrote: I'm in the horrible situation where I need a one-page script to hold it's own password and validate itself. I coded this together, I want this lists opinion as to whether or not it holds

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 wrote: On 10/20/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED

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: On Fri, 20 Oct 2006 17:04:35 +0200, Fourat Zouari

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

Re: [PHP] User question for PHP

2006-10-20 Thread Ivo F.A.C. Fokkema
On Fri, 20 Oct 2006 15:49:14 +1000, Chris wrote: Andy Hultgren wrote: To whoever was asking this (sorry didn't see the original email): Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned

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

2006-10-20 Thread Ivo F.A.C. Fokkema
On Fri, 20 Oct 2006 16:04:27 +0900, Dave M G wrote: PHP List, I took a snippet of code right off the php.net site to use trim on all the elements of an array. Theoretically, it should test if the element in an array is in turn another array, and break it down to the next level until it

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 the original email): Is it possible to have a PHP script

[PHP] Re: Encode text

2006-10-20 Thread Ivo F.A.C. Fokkema
On Fri, 20 Oct 2006 16:57:16 +0300, Ahmad Al-Twaijiry wrote: Hi everyone I have a variable with UTF-8 text inside it and I want to convert this text to windows encode, is it possible in very easy way ? Thanks --- Ahmad Hi Ahmad, utf8_decode() will decode your string to ISO-8859-1.

[PHP] Re: Paginating searchs = performance problem

2006-10-20 Thread Ivo F.A.C. Fokkema
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 to search, am building the search query on server side. I need to display a paginated search and for this i need to get the total count of lines matching the

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

2006-10-18 Thread Ivo F.A.C. Fokkema
On Tue, 17 Oct 2006 08:18:47 +0100, Stut wrote: John Taylor-Johnston wrote: This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3

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

2006-10-18 Thread Ivo F.A.C. Fokkema
On Tue, 17 Oct 2006 17:26:42 +0100, Robin Vickery wrote: On 17/10/06, Al [EMAIL PROTECTED] wrote: AYSERVE.NET wrote: Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as a link within that text. I will appreciate any help.

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

2006-10-17 Thread Ivo F.A.C. Fokkema
On Sun, 15 Oct 2006 13:22:02 +0200, Zora wrote: Hi all, (first time I send an email here, so please be forgiving if something doesn't follow expected rules.) My web application allows users to enter time stamps (date and time) given as local times. The time stamp is to be stored as UTC

[PHP] Re: canon jpegs

2006-10-13 Thread Ivo F.A.C. Fokkema
On Fri, 13 Oct 2006 02:35:34 +0200, Emil Edeholt wrote: Hi! I'm trying to make thumbnails of uploaded jpegs via GD. It works fine on most jpegs but doesn't seem to work on canon jpegs (tried both a consumer canon and one of the finer DSLRs). When I resaved the canon jpeg in my imaging

Re: [PHP] need help to build a query

2006-10-11 Thread Ivo F.A.C. Fokkema
On Tue, 10 Oct 2006 14:22:54 -0500, Richard Lynch wrote: On Mon, October 9, 2006 2:58 pm, John Wells wrote: On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: but I know there must be much better solution then this one. You're right: Simply JOIN your queries... SELECT order_id,

Re: [PHP] foreach

2006-10-11 Thread Ivo F.A.C. Fokkema
On Tue, 10 Oct 2006 14:34:54 -0400, John Nichel wrote: Chris Boget wrote: $last = end ( $numbers ); reset ( $numbers ); I thought foreach() already performed a reset()? Why do it again here? Well, corn my fritters, according to TFM, it does this indeed. Maybe an old dog can learn

Re: [PHP] guess documentroot

2006-10-09 Thread Ivo F.A.C. Fokkema
On Thu, 05 Oct 2006 16:35:04 +0200, Javier Ruiz wrote: Perfect! got it using the following: /* 1 - remove the query string just in case it contains a '/' in it 2 - like Clive said, substr() and strrpos() 'clean' the path to provide the directories only */ $aPath =

Re: [PHP] PHP jump to other page

2006-10-05 Thread Ivo F.A.C. Fokkema
On Thu, 05 Oct 2006 09:16:17 +0800, Penthexquadium wrote: On Thu, 5 Oct 2006 01:17:41 +0700, Groundhog [EMAIL PROTECTED] wrote: how can I jump to another page after IF..ELSE statement, for example: IF (statement == TRUE) { stay on this page, index.php } ELSE { jump to index2.php}

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 trying to remove the

[PHP] Re: Strange error in PHP/MySQL

2006-10-04 Thread Ivo F.A.C. Fokkema
On Sun, 01 Oct 2006 19:59:08 +0100, Deckard wrote: Hello, I have this code: // insert new user in mysql user table $sqlInsertUser = INSERT INTO user (Host, User , Password , Select_priv, Insert_priv, Update_priv, Delete_priv) VALUES ('$hostname', '$mysql_username', '$mysql_password',

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

2006-09-29 Thread Ivo F.A.C. Fokkema
On Thu, 28 Sep 2006 14:29:13 -0400, blackwater dev wrote: Yep, I get called to undefined function so I need to somehow re-compile the cli version? How do I give support to just the cli version? I'm going to the docs now. Thanks! I guess it's dependent on your OS, but you might be able to

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 there is none, it will try and create one. That fails now

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

2006-09-28 Thread Ivo F.A.C. Fokkema
On Tue, 26 Sep 2006 21:45:58 +1000, David Tulloh wrote: Google Kreme wrote: On 25 Sep 2006, at 06:11 , Sancar Saran wrote: ... If this is generating hundred of K of HTML, use ' instead of (yes, it's faster). I've seen this stated several times and at first glance it seems to make

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 up a username and

[PHP] Re: mysql_real_escape_string() question

2006-09-28 Thread Ivo F.A.C. Fokkema
On Thu, 28 Sep 2006 11:06:45 -0400, tedd wrote: Hi gang: In one of my snip-its, namely: http://xn--ovg.com/pdf I was generating a pdf document after the user filled in a form. I had been cleaning the user input by using -- $name = mysql_real_escape_string($name); -- even though

[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, if

[PHP] Re: Functions vs html outpuit

2006-09-03 Thread Ivo F.A.C. Fokkema
On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: Dave Goodchild wrote: Hi all, this may seem like a silly question, but I am creating a library of html form element generation function, for example a textarea fucntion that takes rows and cols as parameters, a function that generates a

[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 the 'sort

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 compare these two strings: /folder1/folder2

[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 error:'

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

2006-08-28 Thread Ivo F.A.C. Fokkema
On Mon, 28 Aug 2006 09:47:02 +0100, Stut wrote: Micky Hulse wrote: I am looking for the most secure/efficient way to compare these two strings: /folder1/folder2/folder3/folder4/ /folder1/folder2/folder3/folder4/file.php Basically I am trying to setup as many security features as

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: 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 him to

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 reducing

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

2006-08-21 Thread Ivo F.A.C. Fokkema
On Mon, 21 Aug 2006 13:08:04 +0100, Ross wrote: I want to set a session with a text link, am having problems with the syntax. The link swiches the session to on or off. a href= class=link_textswtich off/a href= class=link_textswtich on/a I want to do this but the syntax is incorrect.

[PHP] Re: Regex

2006-08-21 Thread Ivo F.A.C. Fokkema
On Mon, 21 Aug 2006 13:51:16 +0400, Nadim Attari wrote: Hello, I have some text in a table... the text contains hyperlinks (but not html coded, i.e. plain Some text...http://www.something.com;) When i retrieve these texts from the table, i want the hyperlinks to become clickable, i.e.

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 using

[PHP] Re: simple scrip to stop email injection

2006-08-16 Thread Ivo F.A.C. Fokkema
On Wed, 16 Aug 2006 10:53:30 +0100, 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 using mail() but need to drop in script that checks my

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's true that some browsers on some platforms ignore

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 standards. :-) Sure, but in newer

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 about other distros. Probably

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

2006-08-11 Thread Ivo F.A.C. Fokkema
On Thu, 10 Aug 2006 17:17:23 -0500, Richard Lynch wrote: On Tue, August 8, 2006 3:47 pm, Fokkema, I.F.A.C. \(HKG\) wrote: If the user separates the dates by an enter in the textarea, you need to explode on \r\n. To be able to handle both, you need to use split() or preg_split(). When I

[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. Thanks guys, for all of your suggestions! Ahh

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

2006-08-10 Thread Ivo F.A.C. Fokkema
In case anyone's interested, here's the function I use in the open source project LOVD to undo Magic Quoting on all GPC arrays: function lovd_magicUnquote ($var = '') { if (!$var) { if (count($_GET)) { lovd_magicUnquote( $_GET); } if (count($_POST)) {

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:01:13 +0200, Arno Kuhl wrote: Is there anything in your error log that says why it failed? (whatever error_log points to in php.ini, or maybe what ErrorLog points to in httpd.conf) Arno Hi Arno, thanks for your reply. However, the PHP-cli binary doesn't use the

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 August 2006 08:47, Ivo F.A.C. Fokkema wrote

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

2006-08-08 Thread Ivo F.A.C. Fokkema
Hi guys, I'm really stuck with this error and since my backup scripts are no longer running automatically through cron, I really need to get this fixed soon :) Suddenly my backup scripts die with the error Could not startup.. Only through the cron, it runs fine through the console. I've tried

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 scripts, tried a different PC, asked my

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/2007 15/02/2007 B.

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

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 made the file readable to all, just in case

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: $valuebr /; If the user separates the dates by an enter in

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

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 running the cron have permission to execute the php

[PHP] Re: Regular Expression

2004-11-25 Thread Ing. Ivo F.A.C. Fokkema
On Wed, 24 Nov 2004 13:17:48 -0500, Ankur Os wrote: Hi, This is quite simpal problem that i want to made regular expression which can read this kind of structure... a,b,c not like this 1. ,a,a,a 2. a,,,aa,, 3. a,a,a,,, means simpal structure with comma (a,b,c...) Hi, Try

[PHP] Re: File Handing Windows / Linux

2004-11-17 Thread Ing. Ivo F.A.C. Fokkema
On Sun, 14 Nov 2004 18:21:23 +0100, M. Sokolewicz wrote: Steve Vernon wrote: Hiya! I am trying to make some code which gets a handle to a directory, but has different code for my localhost (Windows) and for online (Linux server). Basically, I want either of the below lines. Say if the

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. HTH, Ivo On Mon, 08

[PHP] in_array not operating as 'expected'

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
Hi guys and gals, I'm not screaming Bug! Bug! but this _does_ look 'illogical' to me. I've searched the archives, but found no earlier conversation. Sorry if I missed it. Consider the following code: var_dump(in_array('test', array(0))); What does this return? I expect bool(false), but it

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

2004-11-09 Thread Ing. Ivo F.A.C. Fokkema
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.net. Cheers, Bogdan Ing. Ivo F.A.C