RE: [PHP] send a file or stream

2006-08-30 Thread Peter Lauri
(); -Original Message- From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 1:25 AM To: Peter Lauri Cc: php-general Subject: Re: [PHP] send a file or stream I can download it, but when I see the file I downloaded has 0 bytes, and I have readfile(stations.zip); On 8/30/06

RE: [PHP] php generated javascript

2006-08-30 Thread Peter Lauri
:) And if that is the case you can join the [EMAIL PROTECTED] list for that purpose. /Peter -Original Message- From: Shu Hung (Koala) [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 10:41 AM To: PHP General Users Subject: [PHP] php generated javascript Hello, I'm writing a script

[PHP] Extream OT

2006-08-31 Thread Peter Lauri
this. /Peter

[PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
fine, but as soon as the field todotext is empty the $html seam to break, but the value of $html until the $this-getDesc() is still being returned by the function (can see half of the table). Is this a bug, or am I just stupid? If I just insert some blank spaces it works, hrm. /Peter -- PHP General

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Just figured out that it seams to happen when the request is done via AJAX. But it does not make any sense to me that there should be any difference. /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 1:53 PM To: php-general

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
fields, but the description should be able to be empty :) /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Just thought one thing. I did do a alert() on the http.responseText, and that breaks in on the td too, so the response that is sent back probably just ends there... weird... /Peter -Original Message- From: Alex Turner [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 11:31 PM

[PHP] Is this unsecure?

2006-09-05 Thread Peter Lauri
the $authstring? Maybe someone have experience with this? Or just a comment? Best regards, Peter Lauri www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site

RE: [PHP] Is this unsecure?

2006-09-05 Thread Peter Lauri
Isn't that just to send a username and password with the request? Or is the username and password protected somehow in that process? -Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 4:08 PM To: Peter Lauri Cc: php-general@lists.php.net

RE: [PHP] Re: Is this unsecure?

2006-09-05 Thread Peter Lauri
[snip] This seems the easiest for me: - Determine IP address of Server A. - At Server B: ?php if ($_SERVER['REMOTE_ADDR'] != SERVER_A_IP) { die('Get lost, will you.'); } rest of code ... How's that? You could, of course, still add the md5 check, which sounds pretty good. HTH Ivo

[PHP] Mirror url

2006-09-12 Thread Peter Lauri
, and I am curious of how difficult it would be to create a dynamic system for this. When the affiliate signs up they can choose their subfolder and the system will automatically create necessary files and copy them. Am I clear of what I want to accomplish? Best regards, Peter Lauri

RE: [PHP] Mirror url

2006-09-12 Thread Peter Lauri
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:11 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Mirror url Peter Lauri wrote: My client wants an affiliate system developed. I already have an affiliate system that works

RE: [PHP] mail() help

2006-09-12 Thread Peter Lauri
What are you doing on this line: $headers .= 'From: MyADTV asureshkumar_1983'@yahoo.co.in' . \r\n; Should it not be: $headers .= 'From: MyADTV [EMAIL PROTECTED]' . \r\n; ? /Peter www.lauri.se - personal web site www.dwsasia.com - company web site -Original Message- From: suresh

[PHP] Affiliate system

2006-09-12 Thread Peter Lauri
onto every url that they pass, but that would not be a beautiful solution. Maybe I can also create a SESSION that stores the affiliate information so that it at least get registered if the purchase is completed within the session? What do you think is the best way? Best regards, Peter Lauri

RE: [PHP] Affiliate system

2006-09-13 Thread Peter Lauri
this problem by saving information in 2 places (in cookies and in database). So when saving data once I saved in the cookie then into database. When I wanted to read the information I first check if cookie exist and if it doesn't I read from database. Andy Peter Lauri wrote: Hi guys, I am

RE: [PHP] PHP and mySQL dates

2006-09-13 Thread Peter Lauri
[month]- $_SESSION[day] Just some thoughts. /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and mySQL dates

2006-09-13 Thread Peter Lauri
No problem, now I will go and make my girlfriend happy :) -Original Message- From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 6:27 PM To: Peter Lauri Cc: PHP General Subject: Re: [PHP] PHP and mySQL dates Thanks. I have been so up close and personal

[PHP] preg_replace (again)

2006-09-19 Thread Peter Lauri
=pinkcolored text/font that I want to transfer Anyone who see a simple solution to this? Right now I have created an ugly script that do the same thing, but I want to start to learn and use preg_match. Thanks. /Peter www.lauri.se http://www.lauri.se/ - Personal web site

RE: [PHP] preg_replace (again) [solved]

2006-09-19 Thread Peter Lauri
Just to share my solution: preg_replace('/_color:(.*?)_(.*?)_color_/i', 'font color=$1$2/font', $html); /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 9:42 AM To: 'PHP General' Subject: [PHP] preg_replace (again) Hi group

RE: [PHP] preg_replace (again) [solved]

2006-09-20 Thread Peter Lauri
). This is a private system, so I do not worry so much :) /Peter -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 2:13 PM To: Peter Lauri Cc: 'PHP General' Subject: RE: [PHP] preg_replace (again) [solved] On Wed, 2006-09-20 at 11:45 +0700

[PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
and then convert it to windows-874 and then send it to the SMS gateway? Best regards, Peter Lauri www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site

RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
of my attempts... Anyone with a hint of how to work out this problem? /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 5:10 PM To: 'PHP General' Subject: [PHP] Convert UTF-8 to windows-874? Hi group, I am having a site all

RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
Hi, I was on the right track. However, the mbstring does not seam to support windows-874 (ISO-8859-11). What is the next step I could take? One not the good is to convert the whole system to Windows-874 and use that, but that is not so fun. Please help me :) Best regards, Peter Lauri

RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
Iconv did it for me, a great thanks!!! /Peter -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 11:12 PM To: Peter Lauri Cc: 'PHP General' Subject: RE: [PHP] Convert UTF-8 to windows-874? I think that the iconv function/package may have

RE: [PHP] Rapid application development

2006-09-29 Thread Peter Lauri
Why don't you reuse the basic code from your old projects? Then you don't need to worry about this :) (OOP) -Original Message- From: Ahmad Al-Twaijiry [mailto:[EMAIL PROTECTED] Sent: Saturday, September 30, 2006 12:45 PM To: PHP Subject: [PHP] Rapid application development Hi Everyone,

[PHP] WebMail client

2006-10-02 Thread Peter Lauri
Hi, Do you have any suggestion on WebMail clients written in PHP that is good and easy to install? Horde IMP and SquirrelMail is two that I found. Are there any AJAX supporting client? /Peter

RE: [PHP] a function for retuned vatiable

2006-10-02 Thread Peter Lauri
Not actually sure what you want, but this might do it :) $j = 0; While($Row = mysql_fetch_array($Result)) { $email[$j] = $Row['email']; ... ... $j++; } -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: Monday, October 02, 2006 7:09 PM To:

[PHP] Template system

2006-10-05 Thread Peter Lauri
to build more complicated pages structures. Best regards, Peter Lauri www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site

RE: [PHP] Template system

2006-10-05 Thread Peter Lauri
I haven't even read all replies, but the first one caught my love :-) /Peter www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site _ From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 5

[PHP] $_SERVER['HTTP_REFERER']

2006-10-08 Thread Peter Lauri
. I assume some of the links are not from a traditional a/a link. Is there any other way to do this? Best regards, Peter Lauri www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site

RE: [PHP] Seperate HTML from PHP

2006-10-10 Thread Peter Lauri
Have you tried Smarty (smarty.php.net)? -Original Message- From: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 3:43 PM To: php-general@lists.php.net Subject: [PHP] Seperate HTML from PHP Hi there, following words are my ideas about that HTML PHP parting. I hope

[PHP] PHP Mailer and SMTP = SPAM?

2006-10-10 Thread Peter Lauri
millions of emails per day here, maybe a few thousands. What are the risks of ending up being a spam marked ip? Best regards, Peter Lauri www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site

RE: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-11 Thread Peter Lauri
. is mostly irrelevant. an smtp server simply needs to be configured so it is not an open relay. that is generally the default configuration (of any MTA that's worth using), and is achievable without smtp auth. [/snip] Best regards, Peter Lauri www.lauri.se - personal website www.dwsasia.com - company

[PHP] readfile() problem

2006-10-12 Thread Peter Lauri
-stream); header(Content-Disposition: attachment; filename=$Row[filename]); header(Content-Transfer-Encoding: binary); $filesize = filesize($filelocation); header(Content-Length: $filesize); readfile($filelocation); Best regards, Peter Lauri www.lauri.se - personal website www.dwsasia.com

RE: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-12 Thread Peter Lauri
Thanks for your answer. I better think about this one more time, read some more about it, and then execute :) I will let you know if it flops... -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 11:24 PM To: Peter Lauri Cc: php-general

[PHP] Internet Explorer - and File Download dialog box

2006-10-12 Thread Peter Lauri
Hi, Is there any way to set so that the IE File Download dialog box can understand UTF-8? I have some Thai named files that just end up like nonsense :-) /Peter www.lauri.se http://www.lauri.se/ - personal website www.dwsasia.com http://www.dwsasia.com/ - company website

RE: [PHP] readfile() problem

2006-10-12 Thread Peter Lauri
Hi, It did help, but not perfectly. Sometimes I have to refresh a few times before it will be pushed. Best regards, Peter -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 12:52 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re

RE: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-12 Thread Peter Lauri
Thanks, that was very clear :) -Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 6:32 AM To: Richard Lynch Cc: Peter Lauri; php-general@lists.php.net Subject: Re: [PHP] PHP Mailer and SMTP = SPAM? # [EMAIL PROTECTED] / 2006-10-12 11:23:52

RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
Hi, I am trying to do this, but now I cannot set values with ini_set. I do the following and it outputs could not set. I have also tried 0, 0, but that doesn't help. if(ini_set(output_buffering, off)) echo could set; else echo could NOT set; /Peter -Original Message- From: Richard

RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
You are correct. I might love you :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 2:27 PM To: Peter Lauri Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] readfile() problem On Fri, 2006-10-13 at 13:28 +0700, Peter

RE: [PHP] GD, and GD JPEG

2006-11-26 Thread Peter Lauri
I don't know what environment you are on, because I have been absent from this list a long while. If you are on a Linux distribution you might be able to do this via the command line: yum install php-gd.i386 service httpd restart That might install GD and then restart the web server. /Peter

RE: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Peter Lauri
Except the check for \n and \r? I mean any class that you think is good doing this? Is PHP Mailer doing any check of its variables? /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 11:10 PM To: php-general@lists.php.net Subject

[PHP] preg_match to preg_replace

2006-12-11 Thread Peter Lauri
Hi guys, I have a sample string [hp-ex][log]peter[hall o] that I need to process. I need to remove the [] and separate the sections with a space. If there are more then one [] part the first part should be bold (add b/b around it). I have a solution that is working very well, but am thinking

RE: [PHP] Cookies page refresh

2006-12-12 Thread Peter Lauri
Hi, I think it says somewhere in the documentation that the cookie values will not be available until next request/response... /Peter -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 5:28 PM To: php-general@lists.php.net Subject: [PHP

RE: [PHP] calling a function in the same page

2006-12-25 Thread Peter Lauri
library that you can do AJAX requests with and then do what you want with by DOM. /Peter -Original Message- From: Jahangir [mailto:[EMAIL PROTECTED] Sent: Sunday, December 24, 2006 5:34 PM To: php-general@lists.php.net Subject: [PHP] calling a function in the same page I am trying to call

RE: [PHP] calling a function in the same page

2006-12-26 Thread Peter Lauri
whatever you want with the //$_POST['mysql'] variable and output the results //the you want to be shown in the div with id resultsdiv } -- Best regards, Peter Lauri -Original Message- From: Aras [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 26, 2006 11:50 AM

RE: [PHP] pattern containing single quote in IF statement

2006-12-26 Thread Peter Lauri
Quote: here is the code: if($_GET['query']==new) { filter($query);} elseif($_GET['query']==some'u'all) { filter($query);} elseif($_GET['query']==all'u'ppl) { filter($query);} Did you forget about around the strings? /Peter www.dwsasia.com - company web site www.lauri.se

RE: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Peter Lauri
Hi, imagecopyresampled might help you... I use that and it works without problems. /Peter -Original Message- From: Steven Macintyre [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:17 AM To: php-general@lists.php.net Subject: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation

RE: [PHP] PDFlib problem

2006-12-27 Thread Peter Lauri
Try this one: http://pecl.php.net/bugs/bug.php?id=9491edit=1 /Peter www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Rosen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 2:58 PM

RE: [PHP] Re: PDFlib problem

2006-12-27 Thread Peter Lauri
http://www.pdflib.com/download/pdflib-family/pdflib-6/ Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Rosen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 4

RE: [PHP] Simple PDF manipulation

2006-12-27 Thread Peter Lauri
FPDF might do the same thing, won't it? Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 11

[PHP] Chocked

2006-12-28 Thread Peter Lauri
, but this time I get an open dir error. Is this something that is new to PHP5 for this, or do I just need to config the server to accept this sloppy including of files? Best regards, Peter Lauri http://www.dwsasia.com/ www.dwsasia.com - company web site http://www.lauri.se/ www.lauri.se - personal

RE: [PHP] Re: Chocked

2006-12-29 Thread Peter Lauri
Hi, I got it working before the post, but I was just curious if there were any change from php4 to php5 as I have been using that method for a while now. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

RE: [PHP] help with \n\r in strings

2006-12-29 Thread Peter Lauri
Try: $string_as_array = explode(\n, $string); echo pre; print_r($string_as_array); echo /pre; The array that you get will contain segments of the string that is separated with \n. Let me know if that helps. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se

RE: [PHP] Javascript detection

2007-01-01 Thread Peter Lauri
I do have javascript enabled, but it does not detect it... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Monday, January 01, 2007

RE: [PHP] Please help me

2007-01-02 Thread Peter Lauri
I also use PHPmailer to send emails. However it is good to do it the 'hard' way once to learn about mailing headers etc. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From

RE: [PHP] How to read cookies set by php?

2007-01-02 Thread Peter Lauri
just: echo pre; print_r($_COOKIE); echo /pre; Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 4:17 PM

RE: [PHP] Concerning SSL

2007-01-02 Thread Peter Lauri
Make the src ABSOULUTE and it will work. When you are using relative links as you are right now the web server will look in the https://www.mywebsite.com/images Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become

RE: [PHP] Pushing a file to the browser

2007-01-03 Thread Peter Lauri
file_get_contents($path.$filelocation); You could also use fread() or similar if the file is larger. Let me know if it helped. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message

RE: [PHP] File reading code2

2007-01-06 Thread Peter Lauri
, because in the end we will not do this kind of things if it already is in the manual. http://th.php.net/manual/en/function.file-get-contents.php http://th.php.net/file Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become

RE: [PHP] Re: Search script problem

2007-01-06 Thread Peter Lauri
get matches there your code should be fine. $Result = mysql_query($Query); ... ... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Wikus Moller [mailto:[EMAIL PROTECTED

RE: [PHP] Domain Search

2007-01-09 Thread Peter Lauri
Most domain wholesale sites have it. www.onlinenic.com has it, I am sure that godaddy.com has it as well. Joker.com has it. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From

RE: [PHP] most powerful php editor

2007-01-21 Thread Peter Lauri
I would put my vote on Eclipse. It has great support for cvs and also for general coding autofilling etc. The downside is that it is resource demanding... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

[PHP] Re: fwrite/fclose troubles

2008-03-20 Thread Peter Ford
using the $this-variable structure in a string like that. An alternative syntax is to escape the variables with braces: $fileName = {$this-path}/{$this-logfile}; -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

[PHP] Re: Pattern etc to reduce duplicated validation?

2008-03-27 Thread Peter Ford
'); } } } // = Script = $var = $_POST['var']; $foo = new foo(); try { $foo-setBar($var); } catch (Exception $e) { echo 'An error occurred: ',$e-getMessage(),\n; } Take a look at http://www.php.net/manual/en/language.exceptions.php -- Peter Ford phone: 01580 89

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Peter Ford
(or attribute) but it's in this list somewhere... Cheers -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Peter Ford
Eric Butera wrote: On Thu, Mar 27, 2008 at 12:41 PM, Peter Ford [EMAIL PROTECTED] wrote: Jason Pruim wrote: On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's

[PHP] Re: putting variables in a variable

2008-03-28 Thread Peter Ford
(') around the src attribute to avoid those ugly backslashes ... $body .= table tr tdimg src='$myimage1'/td /tr /table ; Might be better in this case to use heredoc syntax ... $body .EndOfChunk table tr tdimg src=$myimage1/td /tr /table EndOfChunk; -- Peter Ford

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Peter Ford
your page actually looks like after the JS has run... 2. Check that the TD you are loading with content is actually inside the FORM tags - otherwise the inputs won't be included in the request/post variables... Cheers Pete -- Peter Ford phone: 01580 89

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Peter Ford
Peter Ford wrote: Mark Weaver wrote: Ryan S wrote: Hey everyone, A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or just me. (My money is on the last one :p ) Here's what I am trying to do: In a form I have a listbox with the values 1-5, and under

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Peter Ford
the original form tag with an empty form. Your Javascript code also adds a spurious tr tag (line 17 of dynamic_no_of_recipients2.js) This is not really anything to do with PHP, of course... :) -- Peter Ford, Developer phone: 01580 89 fax: 01580 893399 Justcroft International Ltd

Re: [PHP] Quarters -- ERRORS --

2008-04-14 Thread Peter Ford
that document.getElementById(id) is actually returning something - if it fails it returns null. Maybe you have given your checkbox a name and not an id, although that should fail with FF (and Safari) too... It's fine on IE7 - anything older than IE7 is too broken to be usable, really. :) -- Peter Ford

[PHP] Re: File Upload Security

2008-04-14 Thread Peter Ford
numbers file that returns mime types (they're easier to parse than regular magic number responses). Probably something like /usr/share/misc/magic.mime, but that depends on the system. -- Peter Ford phone: 01580 89 Developer fax

[PHP] Re: newbie with another HTML/navigation question

2008-04-29 Thread Peter Ford
Generated Source function which extracts the source from the DOM model the browser used to render the page. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General

[PHP] Re: problem with for loop

2008-05-02 Thread Peter Ford
explicitly say the the message number is one-based, and most real programming languages these days use zero-based arrays... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent

[PHP] Re: A Little Something.

2008-05-12 Thread Peter Ford
sandboxes) /pet-peeve 'course, there are many sites that make the same call to urchinTracker(), and many many worse errors... Cheers Pete -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst

Re: [PHP] Re: A Little Something.

2008-05-12 Thread Peter Ford
Stut wrote: On 12 May 2008, at 09:39, Peter Ford wrote: tedd wrote: Hi gang: This is what I did this morning: http://webbytedd.com/bb/tribute/ It speaks for itself. Cheers, tedd tedd, Nothing to do with the subject matter, but I noticed because it is one of your more simple pages: I get

Re: [PHP] Re: A Little Something.

2008-05-13 Thread Peter Ford
) and tend to choose what products I buy based on my own research, rather than what a marketing droid thinks I need to buy. Anyway, this is waaay off-topic: it was right from the start - sorry everyone :( I'll keep my pet peeves private from now on ... Cheers Pete -- Peter Ford

[PHP] Re: Scripts slowing down?

2008-05-13 Thread Peter Ford
script runs. Don't always assume that it is your code that is wrong (that's what managers are for) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

[PHP] Choosing PHP or ? for building an automatic photo web.

2008-06-08 Thread Peter Sorensen
amount of hours? Is PHP the choice? Do I need to use mySQL for this? What features must the webhotel suport and do you know if Surftown does? Is there anywhere I get template source code for this, free or at a low price? best regards Peter Sørensen -- PHP General Mailing List (http

Re: [PHP] Choosing PHP or ? for building an automatic photo web.

2008-06-09 Thread Peter Sorensen
Message - From: Stut [EMAIL PROTECTED] Newsgroups: php.general To: Peter Sorensen [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Sunday, June 08, 2008 11:27 PM Subject: Re: [PHP] Choosing PHP or ? for building an automatic photo web. On 8 Jun 2008, at 21:44, Peter Sorensen wrote: I want

Re: [PHP] substr?

2008-06-18 Thread Peter Ford
command can help here. Not perfect, but still... You could also Virus-scan the file before accepting it. All depends on whether your customer is prepared to wait while you clear his upload. Cheers Pete -- Peter Ford phone: 01580 89 Developer

Re: [PHP] substr?

2008-06-19 Thread Peter Ford
Jim Lucas wrote: Peter Ford wrote: Frank Arensmeier wrote: 17 jun 2008 kl. 22.14 skrev Jim Lucas: Jason Pruim wrote: Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip

[PHP] odbc msaccess php5

2008-07-05 Thread Peter Jackson
? (eg select * from myquery). Just thinking that may fix one of my problems (Caps and spaces in table/column names aaarrgghh) Peter Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Trying to keep a dropdown selection sticky

2008-07-05 Thread Peter Jackson
$value /option\n; Peter Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odbc msaccess php5

2008-07-05 Thread Peter Jackson
Bastien Koert wrote: On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert [EMAIL PROTECTED] wrote: On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson [EMAIL PROTECTED] wrote: $conn=odbc_connect(Database,,); works $a = abcd; (this value exists in db) $stat = Select * FROM . 'Table Name'; $qry

Re: [PHP] odbc msaccess php5 [Giving Up]

2008-07-06 Thread Peter Jackson
Peter Jackson wrote: well thats it Ive come to the conclusion that its a driver/lib issue. From what I can see mdbtools lib only reads and only does basic select. (eg Select * from table where col =thistext But not tex* % or date. Also looks like the project has died (think the last release

Re: [PHP] how to create a slide show using PHP5

2008-07-08 Thread Peter Ford
image was a background image, which was being copied up to the foreground... and I had caching disabled (I was on my development system and hacking some annoying IE/JS problems) so the copying-up was forcing a reload from source... Not broken after all. Faith restored. All is well. -- Peter

[PHP] Re: What font/size do you use for programming?

2008-07-10 Thread Peter Ford
raining horizontally at the moment and my keyboard hates being wet. I'm using Lucida Sans for code these days - I finally figured that it didn't really have to be a fixed-width font, since I couldn't find one that wasn't ugly. -- Peter Ford phone: 01580 89

[PHP] Re: Logic sought

2008-07-10 Thread Peter Ford
if Apache can do such a thing? In a Java environment, I used a session object which cleaned up such folders when it was garbage-collected... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
code has the /usr/local/apache/htdocs path hard-coded, when your web files are actually in /var/something... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford

[PHP] Re: Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7

2008-07-17 Thread Peter Ford
message about that. What I can't understand is why is might work with one browser and not another... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

Re: [PHP] Trailing Spaces Problem

2008-07-18 Thread Peter Ford
: . $data[1] . 3: . $data[2] . 4: . $data[3] . 5: . $data[4] ? Does that work for you? -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Code beautifier

2008-07-28 Thread Peter Ford
. It's arguably more correct in this case to use ellipsis: But ... I could be wrong :) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-08-01 Thread Peter Ford
...'; compared with $foo = You need to pay \$dollars...; Again, it depends on you view of backslashes. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

[PHP] Re: RSS Feed using PHP/MySQL errors

2008-08-07 Thread Peter Ford
'); die('ERROR--CANNOT CONNECT TO SERVER'); // English is a very powerful language!! and similar for the other message... There may be other errors in your code, but that's all you were asking about. -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Re: php File upload

2008-08-08 Thread Peter Ford
such) and the actual size of the data sent in the request is therefore likely to be some fraction bigger than the file itself (like 33% bigger for base-64 encoding) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

<    2   3   4   5   6   7   8   9   10   11   >