[PHP] Php exec

2007-12-23 Thread mattias
If i use courier-mta Can i create a php script wich create mailboxes? And users Hope any understand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

SV: [PHP] Re: Php exec

2007-12-23 Thread mattias
? mattias schreef: If i use courier-mta Can i create a php script wich create mailboxes? And users Hope any understand -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Mail system

2007-12-30 Thread mattias
If i run coureir and postfix I want to have a signup script How should the code be written? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

SV: [PHP] Mail system

2007-12-30 Thread mattias
First of all If you have a bad day don't send to the list -Ursprungligt meddelande- Från: Stut [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2007 21:46 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: [PHP] Mail system mattias wrote: If i run coureir and postfix I want

SV: SV: [PHP] Mail system

2007-12-30 Thread mattias
Yes but i are newbie in php I think i should use php exec but i dont know no more -Ursprungligt meddelande- Från: Stut [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2007 22:01 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: SV: [PHP] Mail system mattias wrote: First

[PHP] Sql support

2008-01-24 Thread mattias
I try to add php-support to my php installation on windows 2000 server Can someone check my phpinfo.php? http://mjw.se/phpinfo.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

SV: [PHP] Sql support

2008-01-24 Thread mattias
oops sorry i meen sql -Ursprungligt meddelande- Från: Chris [mailto:[EMAIL PROTECTED] Skickat: den 25 januari 2008 00:06 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: [PHP] Sql support mattias wrote: I try to add php-support to my php installation on windows 2000 server Eh

SV: SV: [PHP] Sql support

2008-01-24 Thread mattias
yes but if you check my phpinfo.php http://mjw.se/phpinfo.php i can't reed out if sql support are enabled -Ursprungligt meddelande- Från: Chris [mailto:[EMAIL PROTECTED] Skickat: den 25 januari 2008 01:18 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: SV: [PHP] Sql support

SV: SV: SV: [PHP] Sql support

2008-01-25 Thread mattias
hereis my php.ini i think this file are correct [PHP] ;;; ; About php.ini ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path

[PHP] Php error

2009-01-24 Thread mattias
ERR_DB_NO_DB_PASS What will this meen? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] verification of mail success

2006-02-23 Thread mattias
returned success... Running mailq at the command prompt gives me: (Host or domain name not found. Name service error for name=activeagenda.org type=MX: Host not found, try again) Basically, I'd like my PHP script to know of issues like these. TIA for any suggestions. Mattias Thorslund -- PHP

Re: [PHP] web database template

2006-02-14 Thread mattias
CREATE TABLE table_name; The second of these will give you a CREATE TABLE sql statement which would create that table. Best, Mattias Thorslund, http://www.activeagenda.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Array find a element

2003-02-05 Thread mattias
You can use in_array (http://www.php.net/function.in_array) for this. -- Mattias --|-Original Message- --|From: Narciso Miguel Rodrigues --|[mailto:[EMAIL PROTECTED]] --|Sent: Wednesday, February 05, 2003 02:03 --|To: [EMAIL PROTECTED] --|Subject: [PHP] Array find a element

RE: [PHP] Best way to include multi-lingual support in an application.

2003-02-05 Thread mattias
There is gettext support in php for this. Haven't used it myself, but check it out at http://www.php.net/ref.gettext -- Mattias --|-Original Message- --|From: JJ Harrison [mailto:[EMAIL PROTECTED]] --|Sent: Wednesday, February 05, 2003 06:56 --|To: [EMAIL PROTECTED] --|Subject: [PHP

[PHP] multi-threading within php?

2002-01-24 Thread Mattias Andersson
it, then downloads those pages, extract their links, until all pages on a site has been downloaded and archived. Is there any way to do it in several threads so that it handles several connections simultaneously? If it would dynamically allocate threads that would be even better. Regards, Mattias

SV: [PHP] multi-threading within php?

2002-01-24 Thread Mattias Andersson
-threading though, it might just be me that doesn't know about it. Is there any way to execute several functions simultaneously? Mvh, Mattias Andersson Mjukvaruutvecklare, humany AB Direkt: 08-4540701 Mobil: 0704-526685 -Ursprungligt meddelande- Från: bvr [mailto:[EMAIL PROTECTED]] Skickat

RE: [PHP] mysql_real_escape_string() ?

2002-06-18 Thread Mattias Eriksson
Does mysql_real_escape_string exist? I've seen it in the manual pages, and to my understanding, it is the proper function to call on strings to escape them before inserting them into a database... mysql_real_escape_string() is only available in CVS version. _ Mattias Eriksson

RE: [PHP] SNMP - LOG

2002-07-15 Thread Mattias Eriksson
Here is a example using snmprealwalk() to make a simple dump to a textfile. The script filters out some things that atleast I don't need. To get more verbose output comment out $walk = snmp_nice_array($walk); and/or change snmp_set_quick_print(1); to snmp_set_quick_print(0);. Example with most

RE: [PHP] Code Red Catcher

2001-09-10 Thread Mattias Segerdahl
Why invent the wheel twice, this has been around since the first day code red was discovered.. See code-red.php -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 10 september 2001 16:22 To: [EMAIL PROTECTED] Subject: [PHP] Code Red Catcher Hi All! I had

RE: [PHP] Code Red Catcher

2001-09-10 Thread Mattias Segerdahl
Hey, Don't bitch about my grammar, I was in a hurry when writing this script... Bad2da / efnet #php -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: den 10 september 2001 17:50 To: [EMAIL PROTECTED] Subject: [PHP] Code Red Catcher Hi again, Everyone: I

[PHP] IMAP/POP3/OUTLOOK Question

2001-05-14 Thread Mattias Segerdahl
with over 20,000 emails in it, and outlook goes through these in less than a few seconds, so, could anyone explain to me how this is done. // Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary

2001-05-14 Thread Mattias Segerdahl
with over 20,000 emails in it, and outlook goes through these in less than a few seconds, so, could anyone explain to me how this is done. NEW PART: This is if I've set the outlook client not to delete the email from the pop server, or I've choosen to leave the message for x number of days.. // Mattias

[PHP] imap_uid()

2001-05-14 Thread Mattias Segerdahl
number, starting from 1, instead of numbers I want, like, 3afffb530001, etc. etc. Does anybody know why? // Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

[PHP] imap_compose_mail attachment filename, disponition

2001-05-17 Thread Mattias Segerdahl
Hi, Here I am again, having problems with the c-client and the wrap around it, this time with the imap_mail_compose()... To start out with, the imap functions really need more documentation, I've been working with the imap functions for about two weeks, and for almost each and every function,

SV: [PHP] Re: Lists are back up

2001-06-19 Thread Mattias Segerdahl
For all those that's seeking support for php, there are two options, zend.com sells SOS, you could also join #php on efnet for help.. // bad2da -Ursprungligt meddelande- Fran: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Skickat: den 19 juni 2001 05:31 Till: Miles Thompson Kopia: [EMAIL

[PHP] [PHP-WIN] Problems running php from samba network shares...

2001-06-25 Thread Mattias Segerdahl
Hello all, I have a slight problem that someone out there might be able to help me with. I recently installed Windows 2000 with Internet Information Server 5.0 and php 4.0.7-dev. When configuring the IIS 5.0 default webserver, I did the following = Properties = Directory Security = Edit =

SV: [PHP] [PHP-WIN] Problems running php from samba network shares...

2001-06-27 Thread Mattias Segerdahl
Ofcourse not! I'm accessing the files from the webbserver, not a network share. Which if I was would display the source. Mattias -Ursprungligt meddelande- Från: Jason Murray [mailto:[EMAIL PROTECTED]] Skickat: den 26 juni 2001 08:35 Till: 'Mattias Segerdahl'; php general Ämne: RE: [PHP

SV: [PHP] [PHP-WIN] Problems running php from samba network shares...

2001-06-28 Thread Mattias Segerdahl
There arn't any permission problems, since we're already getting php to run, could it be that php 4.0.6 under windows dosn't support UNC paths.. Iow, \\server\share\name paths!? -Ursprungligt meddelande- Från: Richard Lynch [mailto:[EMAIL PROTECTED]] Skickat: den 27 juni 2001 07:12 Till:

[PHP] What can cause session_destroy to fail?

2007-06-11 Thread Mattias Thorslund
Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for any suggestions. Mattias -- PHP General Mailing List (http

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for any suggestions

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: Mattias Thorslund wrote: Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy

Re: [PHP] What can cause session_destroy to fail? -- thanks!

2007-06-12 Thread Mattias Thorslund
Richard Lynch wrote: On Mon, June 11, 2007 8:36 pm, Mattias Thorslund wrote: One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false

[PHP] Web Service with PHP4 suggestions wanted.

2007-08-16 Thread Mattias Hakansson
they are not any longer maintaining the source ? since the last update was 2 years ago. Thanks very much for your time, Mattias Hakansson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mnoGoSearch and similar

2008-05-21 Thread Mattias Thorslund
consider first? Thanks, Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mnoGoSearch and similar

2008-05-21 Thread Mattias Thorslund
Dmitri wrote: Mattias Thorslund wrote: Hi, I'm looking at possibly implementing mnoGoSearch (for indexing and search of uploaded documents on the server) into my application, but noticed it has been moved into PECL since PHP 5.1. Does this mean mnoGoSearch has been deprecated

[PHP] PHP-CLI and the less command (kubuntu)

2008-07-01 Thread Mattias Thorslund
100){ echo This is line number $count\n; $count++; } ? Execute like so: $ php test.php | less First time might work without problem, but subsequent times not. Thanks for any feedback and observations. Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP-CLI and the less command (kubuntu)

2008-07-02 Thread Mattias Thorslund
Stut wrote: On 2 Jul 2008, at 02:58, Mattias Thorslund wrote: Hi everyone, I have a CLI application that produces lots of output to the terminal, so I like to send the output along to the less command. This has always worked very nicely. Moving to the top or bottom of the output used

Re: [PHP] Using MDB2 outside the PEAR framework?

2008-12-26 Thread Mattias Thorslund
As far as I recall, having done this, all that is required for a basic MDB2 is the PEAR base class and the driver classes for the platforms you want to support. Murray wrote: Hi All, I'm wondering if it's possible or practical to implement MDB2 in my web application, but without requiring a

Re: [PHP] Re: hello - thread on topic or not?

2009-01-08 Thread Mattias Thorslund
I thought this was the PHP list, not the OS vs. OS list? Is this type of discussion now considered OK here? I recall people getting flamed for borderline off-topic posts even, just a few years ago. Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] About printing functions

2009-01-21 Thread Mattias Thorslund
? And store the blah blah blah somewhere for later use? I can think of many reasons that someone could use this. Perhaps you are looking for what the output buffering functions do? http://us3.php.net/manual/en/book.outcontrol.php Cheers, Mattias -- PHP General Mailing List (http

Re: [PHP] Re: Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Mattias Thorslund
to be. Cheers, Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: verification of mail success

2006-02-23 Thread Mattias Thorslund
SMTP approach to deliver messages. /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Mattias Thorslund
, you could temporarily change your code to: td align=center ?=(!empty($info['Employee']['dob'])) ? $datetime-time2str($info['Employee']['dob']) : it's empty!!? /td HTH, Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Mattias Thorslund
/ref.xml.php] contain an example class that parses an XML file into an associative array. I'm using something similar myself, as it seems to be a pretty straightforward way to get an easy-to-use structure in PHP 4 without dom_xml, which isn't always available. Mattias -- PHP General Mailing List

SV: [PHP] PHP programmers from hyderabad

2005-12-18 Thread Mattias Segerdahl
Hyderabd, India? Would you stop flaming the list with these requests? Looking at your website, not a single experienced programmer would even consider applying to the job mentioned. Not only does the website look like it's made by someone with the know-how of a thirteen year old kid but the

[PHP] Reverse destruction

2006-01-02 Thread Mattias Segerdahl
Is it possible to reverse class __destruct() instead of following the class initiations? It makes more sence to me to close objects in last start first close. ?php class Class1 { function __construct() { echo 'Constructing ' . __CLASS__ . \n; } Function

SV: [PHP] Upload with process meter

2006-01-02 Thread Mattias Segerdahl
Martin, There is no native support in php for this today. That said, it's not impossible to do. There are two different approaches you can take. The easy one, is to use PDoru's patch at http://pdoru.from.ro/ The second one, which I experimented with the other week, is to set the wrong enctype,

SV: [PHP] Filesystem security

2001-04-26 Thread Mattias Segerdahl
10x? That a CD Player speed or something!? Quit the kiddie talk, use english! -Ursprungligt meddelande- Från: Anton G. Popov [mailto:[EMAIL PROTECTED]] Skickat: den 26 april 2001 10:45 Till: [EMAIL PROTECTED] Ämne: [PHP] Filesystem security Hi I have to set up a site for free web

[PHP] Reading mime attachments into a rdbms

2001-05-03 Thread Mattias Segerdahl
look for #$message .= (Content-Disposition: attachment; filename=) in some way, but I don't know how, or where to go from there. Thanks in advance, // Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Download files extracted from db using Internet Exploded

2001-05-07 Thread Mattias Segerdahl
Internet Explorer really wants me to click open once before actually choosing either to open or save it.. Does anyone know how to solve this problem, I don't want the users to have to figure out this workaround by themselves... // Mattias -- PHP General Mailing List (http://www.php.net

SV: [PHP] Cant add new Header

2001-05-07 Thread Mattias Segerdahl
Make sure you're not sending any output to the browser, not even the body tag, before you send the header(); -Ursprungligt meddelande- Från: elias [mailto:[EMAIL PROTECTED]] Skickat: den 7 maj 2001 22:43 Till: [EMAIL PROTECTED] Ämne: Re: [PHP] Cant add new Header you can always

Re: [PHP] Primer for working with arrays

2005-02-09 Thread Mattias Thorslund
. /Mattias -- More views at http://www.thorslund.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with a query please - unable to error check!

2005-02-16 Thread Mattias Thorslund
Could it be a quote-escaping problem? It would be easier to tell if you could show us the query and the code you're using. /Mattias Shaun wrote: Hi, I have a problem with a query, I get the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your

Re: [PHP] sentence case

2005-02-23 Thread Mattias Thorslund
Chris W. Parker wrote: Leif Gregory mailto:[EMAIL PROTECTED] on Wednesday, February 23, 2005 10:31 AM said: I'm thinking something like: 1. strtolower() the string 2. explode() on the period 3. Loop through the resulting array a. trim() whitespace on each element b. ucfirst() on each

Re: [PHP] sentence case

2005-02-23 Thread Mattias Thorslund
Leif Gregory wrote: Hello Chris, Wednesday, February 23, 2005, 11:49:32 AM, you wrote: C And on top of that he'll need to convert all 'i' to 'I' because of C step 1. You and Mattias both have valid points. The only other thing I can think of is a regexp that is searching for a period and a space

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] 'Insulate' db connection

2005-03-06 Thread Mattias Thorslund
Since you can use fopen, I don't think open_basedir is the problem. Read about open_basedir here: http://us3.php.net/features.safe-mode Maybe the path that you use in the include is wrong? /Mattias Andre Dubuc wrote: Hi, I am trying to 'insulate' my database connection from prying eyes by moving

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Re: Help with dates

2005-03-06 Thread Mattias Thorslund
be too hard to calculate it: 1970 * 365 + 1 day for each leap year. Note the rules for leap year, of course. /Mattias -- More views at http://www.thorslund.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: Help with dates

2005-03-06 Thread Mattias Thorslund
Check out: http://pear.php.net/package/Date According to the description, it lets you compare dates that date pre 1970 and post 2038. /Mattias (If I could only get off ezmlm's suspicious user list. I think there isn't much I can do, it's my ISP rejecting some PHP list postings.) Kevin wrote

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Include file

2005-03-30 Thread Mattias Thorslund
double quotes with single quotes. /Mattias Thorslund -- More views at http://www.thorslund.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Mattias Thorslund
. Actually I wonder how much alcohol you've had by now... :-) /Mattias Jay Blanchard wrote: Let's say I have a form and the action is thus; form name=\managebatch\ action=\ . basename($PHP_SELF) . ?bid=edit\ method=\POST\\n; Note the 'bid' attribute. Now, I have a case statement in which stuff takes

Re: [PHP] Interesting, yet goofy behavior

2005-04-06 Thread Mattias Thorslund
the situation then. Thanks! How about: form name=\managebatch\ action=\ . basename($PHP_SELF) . ?bid= . $_GET['bid'] . \ method=\POST\ If your Form tag appears after your switch/case statement, that is? But, first, do yourself and your project a favor and go grab something to eat. :-) /Mattias

Re: [PHP] SQL ternary thing

2005-04-06 Thread Mattias Thorslund
that's not supported by other DBMS's. Something like: SELECT name, CASE value WHEN 1 THEN name_if_true WHEN 0 THEN name_if_false ELSE 'unknown' END AS result FROM thing; /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] How do I get the first element's key of an array of objects?

2005-04-07 Thread Mattias Thorslund
($object_array); $first_key = reset($keys); /Mattias -- More views at http://www.thorslund.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] How do I get the first element's key of an array of objects?

2005-04-08 Thread Mattias Thorslund
Chris W. Parker wrote: Read www.php.net/array_keys and you shall have your answer. From the php docs: ?php $array = array(0 = 100, color = red); print_r(array_keys($array)); ? Will output. Array ( [0] = 0 [1] = color ) Duh! Yes, I replied a little too fast on that one. /Mattias

Re: [PHP] Date class

2005-04-19 Thread Mattias Thorslund
. Thanks for your time in advance. Devraj Have you looked at the PEAR Date class? http://pear.php.net/package/Date /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Links exchange with http://php-faq.com. OT - SPAM

2005-04-19 Thread Mattias Thorslund
. It would be nice if the above piece of blatant spam were removed from the archives, since the spammer's objective most likely is to improve their Google rank... Possible? /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Unexpected T_IF

2005-04-25 Thread Mattias Thorslund
)) ) (snipped the rest of the code) Check that the line BEFORE the if statement ends with a semicolon (or otherwise ends correctly...). /Mattias -- More views at http://www.thorslund.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Templating engines

2005-04-28 Thread Mattias Thorslund
template language. I haven't used in a production setting yet, and haven't compared its performance with other template systems. /Mattias P.S. Sorry for hijacking this thread, but it's closely related. OK, I wrote that before I read all the off-topic jokes in this thread. I don't feel sorry anymore

Re: [PHP] Templating engines

2005-04-29 Thread Mattias Thorslund
rush wrote: Mattias Thorslund [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] (On the subject of templating engines, again.) I wonder what you folks think of the following: http://www.massassi.com/php/articles/template_engines/ hi! It is nicely written, but actually, I think

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
/template_engines/ Best regards, Mattias -- More views at http://www.thorslund.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Richard Lynch wrote: Who says PHP itself is a template engine? I do. More importantly, Rasmus does. What? My li'l brother does PHP? Or you mean him Lerdorf? Sorry... /Mattias -- More views at http://www.thorslund.us

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Jason Barnett wrote: Mattias Thorslund wrote: ... Who says PHP itself is a template engine? I think nobody. What are the basic template features? Variables / placeholders Looping construct(s) Conditionals A way to apply styles to text / markup So I suppose I'm just confused over what

Re: [PHP] Re: Templating engines

2005-04-29 Thread Mattias Thorslund
Rasmus Lerdorf wrote: Mattias Thorslund wrote: Who says PHP itself is a template engine? I think nobody. I do. It comes down to whether you want the delineation between the template and the business logic enforced by the system or not. PHP is a general-purpose templating system that does

[PHP] Good success with sysvmsg!

2003-02-04 Thread Mattias Nilsson
per second sometimes, and I think good credit should go to the one that wrote the extension(Wez?). -- Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: [PHP] Search MySQL and Match Whole Words]

2004-04-22 Thread Mattias Thorslund
You mean Full-text searches? Read about them here: http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html Only works with certain table types. Not InnoDB tables (transactional) for instance. Best, Mattias (ps new to this list - messed up on replying first time) Original Message

Re: [PHP] Scripting practices

2004-04-23 Thread Mattias Thorslund
I use precisely what you suggest. If you later find out you'd like to wrap a few lines inside a loop, this avoids a potential bug when a variable is not reset to the initial value for each iteration. On Fri, 2004-04-23 at 13:55, Gabe wrote: When scripting in a language (such as PHP) that

Re: [PHP] re-keying an array

2004-04-30 Thread Mattias Thorslund
? In other words, is there anyhing gained by doing: $short_array = array_slice($filenames, 0, 2); foreach($short_array as $filename) { $files[] = path/to/ . $filelname; } /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem when scaling Jpeg images with libgd

2004-05-20 Thread Mattias Jönsson
Hello, I have a problem when im trying to scale an jpeg image with libgd my function lookes like this: function image_resize_jpeg( $img, $w) { $image = imagecreatefromjpeg($img); $img_info = getimagesize ($img); $orig_height = $img_info[1]; //source hieght from $img_info $orig_width =

[PHP] download security

2004-05-22 Thread mattias lundberg
to the website. At least the page that gives the MD5 sums could be secure? Cheers, Mattias Fr alla singlar - singelkryssen lttar ankar igen den 23 oktober. Boka nu! http://www.spray.se/datekryss -- PHP General Mailing List (http

[PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
recent version of PHP (4.3.4). I don't have the php version of the old server but it was on RedHat 9 - now I'm on Mandrake 10. What could be the difference that caused this? /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
Jason Wong wrote: On Tuesday 08 June 2004 03:21, Mattias Thorslund wrote: In order to keep configuration files outside the web root I use: include_once('../config.php'); This used to work also when running php scripts from the command line. Now I have a new server and I get no such file

Re: [PHP] Update problem

2004-06-07 Thread Mattias Thorslund
That will work, but the below is really supposed to work. I use it in my apps. Blake Schroeder wrote: Put a hidden field in your form named id. -Blake Mattias Thorslund wrote: Probably with form method=post action=foo.php?id=123 Blake Schroeder wrote: The form that is being submitted can only

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
to be able to do that from anywhere, though - that's why I passed the full path to the script. So it's got to be some configuration that's different, or that this behavior has changed. /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Update problem

2004-06-07 Thread Mattias Thorslund
if track_vars is off in php.ini? But then, I suppose$_POST['id'] would be empty, too. Anyway, I'd suggest using different names for the GET and POST variables. For instance new_ID for the POST variable. /Mattias /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] include_once changed behavior?

2004-06-07 Thread Mattias Thorslund
. In other words, it's possible to make the CGI version work like the CLI version (using absolute paths only). There seems to be no support for making CLI work like CGI, however. /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] choosing another smtpserver with PHPs mail function

2004-06-10 Thread Mattias Jönsson
Hello everybody :). I having a little problem with PHPs build in function mail(). The mailserver isnt located on the webserver, its on another machine. I have tryed ini_set(SMTP, ipaddress); with no result. The system I'm on runs on an Linux box. Can this be done or must I write an own mail

Re: [PHP] Form Validation

2004-10-13 Thread Mattias Thorslund
the data in your PHP script as you process the form. Oh, and there are several PHP-based list managers available, for instance phplist, so you may not need to program it yourself. /Mattias Huang, Ou wrote: I am currently working on a newsletter mailing list project and developed a form in php. I

Re: [PHP] strange in MySQL Query.

2005-01-15 Thread Mattias Thorslund
... I dont know why .. is this mysql bug ? It's a known bug in MySQL. Since this is a PHP list, I leave it up to you to check what version fixed it. IIRC, it's possible to work around by making sure the first statement has the longest data type. -- More views at http://www.thorslund.us -- PHP

[PHP] Hierarchies and MySQL with PHP

2004-06-27 Thread Mattias Thorslund
successfully used stored procedures that employ temporary tables and while statements and the like. That method is not available in MySQL (yet), so I'll have to do a lot of the manipulation on the web server instead, using PHP. Any suggestions? /Mattias -- PHP General Mailing List (http

Re: [PHP] Hierarchies and MySQL with PHP

2004-06-27 Thread Mattias Thorslund
described above, despite the title: http://www.sitepoint.com/article/hierarchical-data-database/ That method is a bit more complicated but it also allows you to determine the (total) number of child nodes of a node, without an extra SQL query. /Mattias -- PHP General Mailing List (http

Re: [PHP] Hierarchies and MySQL with PHP

2004-06-28 Thread Mattias Thorslund
. /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is there a more efficient query?

2004-08-07 Thread Mattias Jönsson
Well i havent seen anyone been using BETWEEN. Anyway... ?php $SQL = mysql_query(SELECT value FROM table_name WHERE element BETWEEN 48 AND 53); while($row = mysql_fetch_arrray($SQL)) { print($row['value']); } mysql_free_result($SQL); ? From: Jason Davidson [EMAIL PROTECTED] To: Brian Tully

[PHP] SQL Join query

2004-08-07 Thread Mattias Jönsson
I have a problem with my mysql query SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pics, pic_comments WHERE pics.category = 1 AND pics.id = pic_comments.pic_id GROUP BY pic_comments.pic_id; pics table: | id | submitter | time | date | category | pic_comments table: | pic_id |

Re: [PHP] SQL Join query

2004-08-07 Thread Mattias Thorslund
(*) AS num_comments FROM pic_comments GROUP BY pic_id You may want to add an ORDER BY clause to both of these. People often say it's 'good form' to enumerate your fields in the SELECT clause but benefits of that may vary between database platforms. Mattias Thorslund -- PHP General Mailing List (http

Re: [PHP] SQL Join query

2004-08-09 Thread Mattias Thorslund
(Sorry about all the quoting but I thought it makes sense for clarity - Mattias) Curt Zirzow wrote: * Thus wrote Lenar Lhmus: Mattias Thorslund wrote: Though, (regardless of SQL database platform) in a case like this, it MAY be both more straightforward and efficient to use two separate

Re: [PHP] downloading files

2004-08-19 Thread Mattias Thorslund
) /documents (put uploaded documents here) /webroot (web-accessible files here) /img(static images) /js (javascript files) Hope this helps. Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Mattias Thorslund
['photo_check'])){ switch($entry){ case Copy Change: case Banner Change: case Price Change: break; default: //put your code here } } Longer but seems more readable to me. Disclaimer: I have probably left a silly typo somewhere. /Mattias -- http://www.thorslund.us -- PHP General Mailing List (http

Re: [PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Mattias Thorslund
Mattias Thorslund wrote: Disclaimer: I have probably left a silly typo somewhere. Sure did: My old nemesis, end parethesis (either too few or too many). It should be: if( != $row['photo_check']){ switch($entry){ case Copy Change: case Banner Change: case Price Change

Re: [PHP] RE: Correct context

2004-09-20 Thread Mattias Thorslund
Jay Blanchard wrote: Oops Yeah, some of us (including myself) could use a php validator in our mail clients... Maybe a plugin for T-bird? /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Recommendations for php email list managers?

2004-09-21 Thread Mattias Thorslund
supposed to be an announcement-only list, BTW. /Mattias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >