Re: [PHP] php site, parse error

2001-02-15 Thread Martin A. Marques
it. - Martn Marqus email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- PHP

[PHP] Standard-Output

2001-02-18 Thread Martin Thoma
Hello ! Which is the name for the standard-output on Linux ? The background: I want to use PGP (2.6.3.) to put the encrypted file out on standard-output. Regards Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] Using Pipes / PGP

2001-02-18 Thread Martin Thoma
available on the disc for some time. The pgp-doc says, that you could use the -f paramter with pipes to avoid this. But: How is it done exactly ? I didn't get anything to work. (Using PGP 2.6.3. and Linux) Regards Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] Check Client BPS

2001-02-19 Thread Martin Marconcini
in advance, Martin Marconcini. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Help!! IP functions!!!

2001-02-19 Thread Martin A. Marques
Mensaje citado por: Bruno Freire [EMAIL PROTECTED]: Hi!! My name is Bruno, From Brazil!!! I need to know how can i discovery the ip address when somebody access my home page What function can I use Bruno, check the phpinfo() function, which will give you lots of information

Re: [PHP] Libraries

2001-02-19 Thread Martin A. Marques
Mensaje citado por: Kath [EMAIL PROTECTED]: Why do a lot of people use libraries like PHPLib? I find it a lot better to write my own basic functions. Is it just the attitude "Someone else coded it already, why should I?" Like some said to me "Don't re-invent the wheel" Saludos... :-)

Re: [PHP] sessions and data missing browser message

2001-02-19 Thread Martin A. Marques
data to recreate the document by pressing the reload button. Whta does the error file say (error_log in apache)? I am having this message since I include session handling in the code. Change the expire time? Is there any way to avoid this? Martin Marques -- PHP General Mailing List (http

Re: [PHP] Parsing a string

2001-02-23 Thread Martin A. Marques
told I had to do it. - Martn Marqus email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar

Re: AW: [PHP] How to pipe a command output into another command

2001-02-23 Thread Martin Kong
Thanks! After upgrading to the latest PHP, it's working now. Sebastian Stadtlich wrote: this one uses pipe $command=`find $verzeichnis. -iname $DateiPattern |sort -f`; $verzeichnisliste = explode ("\n",$command); sebastian -Ursprungliche Nachricht----- Von: M

[PHP-CVS] cvs: php4 /pear/Benchmark Iterate.php

2001-03-02 Thread Martin Jansen
mj Fri Mar 2 10:24:00 2001 EDT Modified files: /php4/pear/BenchmarkIterate.php Log: - added check for existing bcmath extensions to Benchmark/Iterate.php - did some cosmetic changes to Benchmark/Iterate.php Index:

[PHP] mystery line

2001-04-05 Thread Martin Skjldebrand
It's not first of April today is it? In: ? if ($id != "") { print "center"; print "pTID detail view - Document #b?php echo $id; ?/b/p"; $sql="select * from tid_tbl where id=" . $id; $result1=mysql_query($sql, $mysql_link); $row = mysql_fetch_array($result1); echo 'table border="1"';

RE: [PHP] mystery line

2001-04-05 Thread Martin Skjldebrand
and yet ... oh well ... a bug in the carbon based part of the system I suppose. Thanks, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] X509

2001-04-07 Thread Martin Thoma
Hello ! I want to write a small script to decrypt/encrypt/sign emails with the X509-protocoll. Does anybody know, where to get information about this protocoll ? Does anybody has some examples how to use it in php ? Any ready-to-go-code ? Any help is welcome ! Martin -- PHP General

[PHP-CVS] cvs: php4 /pear/DB common.php

2001-04-10 Thread Martin Jansen
mj Tue Apr 10 01:03:47 2001 EDT Modified files: /php4/pear/DB common.php Log: fixed typo in inline docs Index: php4/pear/DB/common.php diff -u php4/pear/DB/common.php:1.42 php4/pear/DB/common.php:1.43 --- php4/pear/DB/common.php:1.42Mon

Re: [PHP-CVS] cvs: CVSROOT / loginfo

2001-04-10 Thread Martin Jansen
On Tue, 10 Apr 2001 16:31:01 -, Rasmus Lerdorf wrote: -pearweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} +pearweb $CVSROOT/CVSROOT/loginfo.pl [EMAIL PROTECTED] $USER %{sVv} Wouldn't it be better to send the commit messages to [EMAIL PROTECTED] or [EMAIL PROTECTED]? -Martin

[PHP] MIME email = Content-ID in CSS not supported

2007-10-31 Thread Martin Zvarík
IMG tag? Thank you, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing php_pgsql.dll to Apache - this is unreal

2007-11-05 Thread Martin Zvarík
Hi, I am trying now for almost 2 hours to get this working: I had Apache and PHP with modules installed as CGI (also tryed as module). Now I added extension (in php.ini) php_pgsql.dll and also installed postgreSQL. And it shows me error when starting apache: module could not be found. The

[PHP] A workaround for type hinting native types (and a little of self-advertising)

2007-11-06 Thread Martin Alterisio
PROTECTED]', ...); EXAMPLE; echo Regards, \n Martin Alterisio;

Re: [PHP] Regular Expressions

2007-11-06 Thread Martin Alterisio
2007/11/6, Alberto García Gómez [EMAIL PROTECTED]: I'm a mess in regular expressions and I make this code: $link = ereg_replace('ntilde;','n',$link); $link = ereg_replace('aacute;','a',$link); $link = ereg_replace('eacute;','e',$link); $link = ereg_replace('iacute;','i',$link); $link =

Re: [PHP] image galleries

2007-11-22 Thread Martin Marques
Lisa A escribió: Does anyone know of an image gallery I can use on multiple pages of a website. I'd like to be able to click on the thumbnails and see a larger image. Hopefully something simple and easy to install. gallery2 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Code Critique Please :)

2007-11-26 Thread Martin Alterisio
2007/11/21, Simeon F. Willbanks [EMAIL PROTECTED]: Hello, I am trying to increase my knowledge and understanding of OO and OO Design Patterns. I'd like to request a critique of a program that extracts MySQL table information and translates it into XML. In the program, I tried to

Re: [PHP] sprintf() oddness

2007-12-02 Thread Martin Alterisio
2007/12/1, Christoph Boget [EMAIL PROTECTED]: Why does sprintf( '%.03f', 0.1525 ) return 0.152 while sprintf( '%.03f', 0.1575 ) return 0.158? Welcome to the world of f floating point numbers. Discrete mathematics, leave all hope, ye that enter. It's the way floating point

Re: [PHP] Structured Code vs. Performance

2007-12-02 Thread Martin Alterisio
2007/12/2, tedd [EMAIL PROTECTED]: To me, good structure starts at the function level. Like the lattice of a crystal, coding grows and reflects the most basic element. Keep that element consistent and you'll find that it will be reflected in everything you do. How's that for philosophical?

Re: [PHP] Structured Code vs. Performance

2007-12-03 Thread Martin Alterisio
2007/12/2, tedd [EMAIL PROTECTED]: Oh yes, it's very much like fractals, but the term fractalism is usually reserved for art forms based on fractals. However, one could conclude that all crystalline forms are a real-world examples of fractals. In similar vein, all repetitive processes

Re: [PHP] // ?

2007-12-04 Thread Martin Alterisio
2007/12/4, Kevin Schmeichel [EMAIL PROTECTED]: Here's some unexpected behavior: ?php // ? what? ? This will output what? - I expected no output, as is the case if the inline comment was a /* */ comment. Is this a bug? Expected behavior. Read the manual:

Re: [PHP] Try{} Catch()

2007-12-23 Thread Martin Alterisio
It's not supposed to be practical, it's just a way to handle errors. You shouldn't rely on try/catch for algorithm implementation. You create exceptions for errors and unexpected behavior. Then in some other part of the system you use try/catch to prevent the code from terminating abruptly. You

[PHP] Sayonara PHP

2007-12-25 Thread Martin Alterisio
Please let me do a little explanation of the title first. Japanese is an interesting language where context is vital to the meaning of a word. Sayonara usually means a simple good bye, but within a different context can mean we'll probably never meet again. To understand this mail you'll have to

Re: [PHP] Re: [PHP-DEV] Sayonara PHP

2007-12-28 Thread Martin Alterisio
that was much of a rant. The short version is I liked the php development market because it was safe, but now I doubt its safety. That's all. I don't think that rant may be of use to anyone, but at least it felt nice to let go of some steam. Best Regards and Happy New Year, Martin Alterisio

Re: [PHP] Sayonara PHP

2007-12-28 Thread Martin Alterisio
really hope that someone else could find anything sensible in the things I posted in the first mail, and keep on building on top of them. Best Regards and Happy New Year, Martin Alterisio

Re: [PHP] Try{} Catch()

2008-01-01 Thread Martin Alterisio
2007/12/31, Richard Lynch [EMAIL PROTECTED]: On Sun, December 23, 2007 3:50 pm, Martin Alterisio wrote: It's not supposed to be practical, it's just a way to handle errors. You shouldn't rely on try/catch for algorithm implementation. You create exceptions for errors and unexpected

[PHP] Re: foreach questions

2008-01-01 Thread Martin Jerga
Hello, the problem is in this part of code $key - $value This notation means that you are trying to access property $value on the object $key. Just replace it with $key = $value and you will get the result as expected. Martin J jekillen wrote / napísal(a): Hello; I have this section

[PHP] date() and wrong timezone (or time)

2008-02-06 Thread Martin Marques
I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina. The problem is that, even when the system sees the correct time, php keeps giving me the *old* hour. $ date mié feb 6 09:03:57 ARST 2008 $ echo ?php echo date('H:i') . \\n\; ?|php5 08:04 What

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Martin Marques
Nathan Nobbe escribió: On Feb 6, 2008 6:13 AM, Martin Marques [EMAIL PROTECTED] wrote: I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina. The problem is that, even when the system sees the correct time, php keeps giving me the *old* hour. $ date

Re: [PHP] date() and wrong timezone (or time)

2008-02-06 Thread Martin Marques
Nathan Nobbe escribió: On Feb 6, 2008 12:13 PM, Martin Marques [EMAIL PROTECTED] wrote: see what you have as the value for the date.timezone ini setting. I've already checked that, and it's not set. then you should probly set it ;) It has the right TZ set. I checked

Re: [PHP] Progressive answers from a php query?

2008-02-06 Thread Martin Marques
Richard escribió: Hello, I don't know if this is possible with PHP alone but this is what I'm trying to do : My script would check say for example 10 or 20 different http:// site addresses and collect some text from each page. My problem is that it takes quite a long time to query so many

Re: [PHP] date() and wrong timezone (or time)

2008-02-07 Thread Martin Marques
Jochem Maas escribió: Martin Marques schreef: Nathan Nobbe escribió: On Feb 6, 2008 6:13 AM, Martin Marques [EMAIL PROTECTED] wrote: I got an update from tzdata on a Debian server due to a daylight saving change here in Argentina. I doubt that debian stable is pushing newer versions of TZ

Re: [PHP] Uploading PDF

2008-02-16 Thread Martin Marques
Pastor Steve escribió: Greetings, I am getting an error when I am trying to upload a PDF file through a script. When I do a print_r($_FILES) I get the following: Array ( [userfile] = Array ( [name] = document.pdf [type] = [tmp_name] =

[PHP] Windows + php + oracle PL/SQL = ORA-06550

2008-03-13 Thread Martin Jerga
deployed this script onto the production server, running php5 on RH4, it finnished without problems. To be honest, I don't even have an idea where the problem can be. I would be very thankful for any suggestions. thank you Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] file charset: something like file -i

2007-06-14 Thread Martin Marques
Is there something like the UNIX command file -i to know the charset of a file? I don't want to use a system call, so I was wondering if there was some predefined function in PHP. P.D.: I'm using PHP 5.2.0 -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

[PHP] mbstring problems

2007-06-14 Thread Martin Marques
Using PHP 5.2.0 and I get this error: Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3 But mb_list_encodings() works like a charm. What's wrong? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

Re: [PHP] mbstring problems

2007-06-15 Thread Martin Marques
Crayon Shin Chan wrote: On Friday 15 June 2007 04:09, Martin Marques wrote: Using PHP 5.2.0 and I get this error: Fatal error: Call to undefined function mb_list_encodings_alias_names() in /home/martin/prueba.php on line 3 But mb_list_encodings() works like a charm. What's wrong? RTFM

[PHP] Segmentation fault on PHP CLI

2007-08-09 Thread Martin Marques
I have a script which I run from cron. I'm testing it directly from the console: /usr/bin/php -f /path/to/script.php The thing is: Script executes great, and everything it has to do gets done, but it throughs a segmentation fault at the end. Is there anyway to debug PHP CLI? I'm using

Re: [PHP] Segmentation fault on PHP CLI

2007-08-09 Thread Martin Marques
Stut wrote: Martin Marques wrote: I have a script which I run from cron. I'm testing it directly from the console: /usr/bin/php -f /path/to/script.php The thing is: Script executes great, and everything it has to do gets done, but it throughs a segmentation fault at the end

Re: [PHP] function - action

2007-08-10 Thread Martin Alterisio
2007/8/7, Richard Lynch [EMAIL PROTECTED]: On Fri, August 3, 2007 1:38 am, Ralph Kutschera wrote: I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as functions. Is there a chance that PHP can use the word

Re: [PHP] function - action

2007-08-10 Thread Martin Alterisio
2007/8/3, Ken Tozier [EMAIL PROTECTED]: On Aug 3, 2007, at 9:39 AM, Ken Tozier wrote: On Aug 3, 2007, at 2:38 AM, Ralph Kutschera wrote: Hallo! I'm working on a project, where we distinguish between functions and actions in design, although in PHP both are implemented as

Re: [PHP] convert (windows-1250) to (utf-8)

2007-08-16 Thread Martin Marques
Alain Roger wrote: Hi, I import a csv file (which includes characters from windows-1250 charset) to postgreSQL database which is in UTF-8. How can i convert windows-1250 to utf-8 charset ? This is a PostgreSQL question. Check client_encoding and server_encoding. -- 21:50:04 up 2 days,

Re: [PHP] PostgreSQL and select nextval

2007-08-16 Thread Martin Marques
Alain Roger wrote: Hi, I'm getting an error message when i run the following SQL request : $sql = INSERT INTO tmp_importedxls (rec_id, publisher) VALUES (SELECT nextval('tmp_importedxls_rec_id_seq'),'$pb'); Error in SQL query: ERROR: syntax error at or near SELECT LINE 2: VALUES (SELECT

Re: [PHP] PostgreSQL and select nextval

2007-08-16 Thread Martin Marques
Richard Lynch wrote: On Sun, August 12, 2007 2:35 am, Alain Roger wrote: I'm getting an error message when i run the following SQL request : $sql = INSERT INTO tmp_importedxls (rec_id, publisher) VALUES (SELECT nextval('tmp_importedxls_rec_id_seq'),'$pb'); Error in SQL query: ERROR: syntax

Re: [PHP] Reload page after form submit

2007-08-30 Thread Martin Marques
Stut wrote: Wagner Garcia Campagner wrote: META HTTP-EQUIV='refresh' content='0;URL=index.php' header('Location: index.php'); Although technically speaking that should be an absolute URL. AFAIK, they are both equivalent. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,

Re: [PHP] strange reference behavior

2007-09-01 Thread Martin Ellingham
, Robert This is because PHP5 has changed the default behaviour and $a = $b is now call by reference as standard. That's my understanding of it. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Martin Marques
Zbigniew Szalbot wrote: Hi there, No, basically I just use wordpress on this site and that's all. No fancy or advanced scripting, etc. It is family machine for family issues. I can try and go back to v4 but I do think v5 should work just as fine. At least I hope so. Does phpinfo work? What

Re: [PHP] Very Large text file parsing

2007-09-20 Thread Martin Marques
Paul Scott wrote: I have a very large text file that gets dumped into a directoory every now and then. It is typically around 750MB long, at least, and my question is: What is the best method to parse this thing and insert the data into a postgres db? I have tried using file(), fget*() and

Re: [PHP] Very Large text file parsing

2007-09-20 Thread Martin Marques
Robert Cummings wrote: On Thu, 2007-09-20 at 13:55 +0200, Paul Scott wrote: On Thu, 2007-09-20 at 12:50 +0100, Edward Kay wrote: In addition to Martin's good suggestions (and also assuming you're running php-cli via cron), you could use nice to stop it consuming too many resources: This is

Re: [PHP] Very Large text file parsing

2007-09-20 Thread Martin Marques
Paul Scott wrote: On Thu, 2007-09-20 at 08:03 -0400, Robert Cummings wrote: Post some samples of the data you are parsing and a sample of the code you've written to parse them. If you're parsing 750 megs of data then it's quite likely you could squeeze some performance out of the parse routines

Re: [PHP] Classes and access to outside variables

2007-09-29 Thread Martin Alterisio
Refer to the global on the constructor. Anyway, using a global like that is not a good practice. Just pass the variable to the constructor. 2007/9/29, Merlin [EMAIL PROTECTED]: Hi there, I am new to PHP classes and I do want to access a variable outside the class, but somehow that does not

Re: [PHP] Classes and access to outside variables

2007-09-30 Thread Martin Alterisio
That's incorrectly syntactically. Won't run. Ok, let's write some code to show how this can be done: class SearchHelper extends AjaxACApplication { private $dbh; public function __construct() { $this-dbh = $GLOBALS['dbh']; } } Better yet, pass the database host in the

Re: [PHP] counting with leading zeros

2007-10-01 Thread Martin Alterisio
// glob returns an ordered list (rtfm: man glob) // relies on the use of the operator ++ to generate string sequences. function lastFileInSequence($path, $prefix, $first, $suffix) { return array_pop(glob($path . / . $prefix . str_repeat('?', strlen($first)) . $suffix)); } function

Re: [PHP] the opposite of a join?

2007-10-03 Thread Martin Marques
[EMAIL PROTECTED] wrote: I have a company table and a contacts table. In the contacts table, there is a field called companyID which is a link to a row in the company table. What is the easiest way to query the company table for all the company rows whose ID is NOT linked to in the contact

[PHP] Sending lots of emails - 2 choices - choose the best one

2007-10-06 Thread Martin Zvarík
() function with each recipient's emal Thanks for ideas, --Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Something you can do with AJAX + PHP as well

2007-10-09 Thread Martin Zvarík
lame... you can use javascript (which is faster) for this kind of stuff Mark napsal(a): Hey, I've made a nice video where you see ajax in combination with php. and it works really well although really is misspelled realy. Here is the video:

[PHP] redefine contante value

2007-10-18 Thread Martin Marques
I'm redefining constant values and get notices on my log files: [18-Oct-2007 16:01:37] PHP Notice: Constant FPDF_FONTPATH already defined in /usr/share/php/tcpdf/config/tcpdf_config.php on line 50 How can I re-define them without getting notice messages? -- 21:50:04 up 2 days, 9:07, 0

Re: [PHP] This, then that.

2007-10-18 Thread Martin Marques
tedd wrote: Hi gang: I would like to run a php script that creates a web page and AFTER it is finished creating the page, then it runs another php script -- how you do that? CLI or apache2 module? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

Re: [PHP] MySQL connector installation/upgrade problems

2007-10-23 Thread Martin Marques
David Zentgraf escribió: Hi, I'm trying to upgrade a server running CentOS 3 to an up-to-date MySQL 5 installation + PHP4. I installed the MySQL 5 package, server and client, via RPMs and they work fine, the client tells me it's version 5.0.45. I went on to recompile PHP 4.4.7 --with-mysql,

[PHP] PHP Love Letter

2006-07-18 Thread Martin Alterisio
Been quiet too much... *This time, I seriously advise against running this piece of code unless you know what you're doing* Enjoy... --- html head titleLove Letter/title /head body ?php if (in_array($me, $her-acquaintances)) { ? pDear ?=$her-name?,/p pI really enjoy your company and I

[PHP] headers and newline at end of script

2006-07-20 Thread Martin Marques
I'm looking for an opinion on programming style. Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This last one puts all the HTML away from the PHP code, which has made life much easier. Now, sometimes I warning messages like this one: PHP Warning: Cannot modify header

Re: [PHP] headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006 11:30:14 -0400, John Nichel [EMAIL PROTECTED] wrote: Jochem Maas wrote: I never add the final closing '?' in any script for this very reason. 'Cause you're a SLACKER!!! What the hell is a SLACKER??? -- - Lic.

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006 13:06:10 -0400, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2006-07-20 at 12:12, Adam Zey wrote: Martin Marques wrote: Now, my question is: Is it a bad practice to NOT close the script with the PHP closing ?? I mean, just leave the script without a closing PHP

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006, Stephen Lake wrote: As far as getting the header error resolved, try this: http://ca3.php.net/manual/en/function.ob-start.php I'll stick with not closing my scripts, just like Rasmus said. :-) -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18

Re: [PHP] Re: headers and newline at end of script

2006-07-20 Thread Martin Marques
On Thu, 20 Jul 2006, Adam Zey wrote: Jochem Maas wrote: Robert Cummings wrote: I don't understand - the links point to posts by Rasmus saying that's 'beneficial' - seems to me to be a fairly robust endorsement yet you consider leaving off trailing '?' wrong (and use Rasmus' comments to back

Re: [PHP] Re: headers and newline at end of script

2006-07-22 Thread Martin Marques
On Thu, 20 Jul 2006, Robert Cummings wrote: On Thu, 2006-07-20 at 17:09, John Nichel wrote: Adam Zey wrote: snip Note that just because the fact that it works is a feature, doesn't mean it's good coding style. register globals is a feature too, but it isn't exactly a good idea to use it.

[PHP] include defer from cli to apache

2006-07-28 Thread Martin Marques
I' trying to include files from a script which will be executed from CLI via cron. Now, if I execute the script from the command line it works OK, but when it's executed via cron I fails to include a file, which is being included via and include from the script. It looks like when including a

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-03 Thread Martin Alterisio
2006/8/3, Manuel Lemos [EMAIL PROTECTED]: Hello, on 08/01/2006 01:35 PM Gabe said the following: What's the common consensus as to a solid PHP framework to use for application development? There seems to be a number of them out there, but I'm not sure which one's are the most robust,

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-06 Thread Martin Alterisio
2006/8/4, Manuel Lemos [EMAIL PROTECTED]: Hello, on 08/03/2006 05:18 PM Martin Alterisio said the following: Anyway, you may want to read this more in depth reflection of the state of the PHP framework world and recommendations on how to pick what suits best for you: http

Re: [PHP] How to get rid off empty elements of an array?

2006-08-07 Thread Martin Alterisio
2006/8/7, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi to all! I have a form with 6 text fields where visitor has to enter product serial number (same type data). he has to enter AT LEAST ONE. for ($i=0; $i6; $i++) { echo 'input type=text name=PSN['.$i.'] value='.$PSN[$i].' size=25'; } After

Re: [PHP] Mixing sprintf and mysql_real_escape_string

2006-08-07 Thread Martin Alterisio
2006/8/7, Peter Lauri [EMAIL PROTECTED]: I should maybe add that the data actually comes from a form: mysql_query(sprintf(INSERT INTO table (value1, value2) VALUES (1, '%s'), mysql_real_escape_string($_POST['formvalue']))); And when I have ' in the field, it will insert \' into the database

[PHP] file type and recode

2006-08-29 Thread Martin Marques
Simple question: Is there a built-in function in PHP to get the charset of a file, so that I can pass the right parameters to recode_file()? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. Martín Marqués

Re: [PHP] file type and recode

2006-08-31 Thread Martin Marques
On Wed, 30 Aug 2006, Curt Zirzow wrote: On 8/29/06, Martin Marques martin@bugs.unl.edu.ar wrote: Simple question: Is there a built-in function in PHP to get the charset of a file, so that I can pass the right parameters to recode_file()? It depends. If it is a .txt file (nope) a .doc file

Re: [PHP] Error Handling Library?

2006-08-31 Thread Martin Alterisio
I'm curious, what features are you looking for in an error handling library? 2006/8/31, Jay Paulson [EMAIL PROTECTED]: I've been doing some research and was wondering if anyone out there has written a library for error handling? I haven't found anything as of yet but would love to hear

[PHP] problems with clases, methods, HTML_Template_IT, etc.

2006-09-01 Thread Martin Marques
I'm buidling a system in OOP, and I have a main clase which objects in it. One of the objects inside is of type HTML_Template_IT, which I use to handle presentation tier. Now, each time the system gets executed, I get this in my php error log: PHP Fatal error: Call to a member function

Re: [PHP] problems with clases, methods, HTML_Template_I T, etc.

2006-09-01 Thread Martin Marques
On Fri, 01 Sep 2006 18:35:45 -0400, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2006-09-01 at 19:30 -0300, Martin Marques wrote: Now, each time the system gets executed, I get this in my php error log: PHP Fatal error: Call to a member function get() on a non-object in /xxx//

Re: [PHP] Quotes?

2006-09-05 Thread Martin Marques
On Tue, 5 Sep 2006, Gustav Wiberg wrote: I want to save this to a string... script language=javascript var uri = 'http://impse.tradedoubler.com/imp/img/16352388/1122503?' + new String (Math.random()).substring (2, 11); document.write('a

Re: [PHP] Using a variable to call another variable

2006-09-09 Thread Martin Marques
On Sat, 09 Sep 2006 08:55:35 -0500, Christopher Weldon [EMAIL PROTECTED] wrote: class myClass { private var $_001; private var $_002; private var $_003; public function access_var($var) { return $this-$$var; } } $cs = new myClass;

Re: [PHP] security include from remote server

2006-09-14 Thread Martin Marques
On Thu, 14 Sep 2006, Miguel Vaz wrote: I thought about having a simple php local file that would include my files that are hosted someplace else, and therefor be able to access my local database, would that be possible? My first thought would probably be no, but i cant really do any tests

Re: [PHP] Iteration through letter

2006-09-15 Thread Martin Alterisio
2006/9/14, Norbert Wenzel [EMAIL PROTECTED]: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY YZ I don't have any

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Martin Marques
On Thu, 21 Sep 2006 17:13:44 -0400, Anna Barnes [EMAIL PROTECTED] wrote: and the error_log file says [Tue Sep 19 15:53:57 2006] [error] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /websites/ical/functions/ ical_parser.php on line 494 What is there in line 494 of

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Martin Alterisio
2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Martin Alterisio
2006/9/22, Tom Atkinson [EMAIL PROTECTED]: Martin Alterisio wrote: 2006/9/22, Rory Browne [EMAIL PROTECTED]: On 9/22/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note

Re: [PHP] PHP5 object construct

2006-09-22 Thread Martin Marques
On Fri, 22 Sep 2006 20:15:49 -0400, Chris Boget [EMAIL PROTECTED] wrote: http://us2.php.net/class Any particular place on that page I should be looking? I've read it several times and didn't see anything like the above. The closest thing I saw were actual methods called setBob() and

Re: [PHP] array_sum($result)=100

2006-09-25 Thread Martin Alterisio
2006/9/25, Robin Vickery [EMAIL PROTECTED]: On 24/09/06, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: Hi everyone I have array of numbers and I want to get out of it a list of numbers that if I sum them it will be 100, here is my list (for example ) : $list =

Re: [PHP] How do i check if a variable is a reference or a copy?

2006-09-28 Thread Martin Alterisio
2006/9/28, Mathijs [EMAIL PROTECTED]: Hello there, Is there a way to check if a variable is passed by reference or if it is just a copy. With something like is_copy or is_reference? Thx in advance. Is this part of the I don't know if two vars reference the same object in PHP4 dilemma?

[PHP] Changing values in .htaccess

2006-09-28 Thread Martin Marques
I'm trying helplessly to get session.use_trans_sid to true in one directory that needs it. So I put this in an .htaccess file: php_value session.use_trans_sid 1 The thing is, it didn't work. I also tried changing 1 to On with no luck at all. Ideas are welcome. -- 21:50:04 up 2 days,

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Martin Marques
yOn Thu, 28 Sep 2006, Curt Zirzow wrote: On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote: I'm trying helplessly to get session.use_trans_sid to true in one directory that needs it. So I put this in an .htaccess file: php_value session.use_trans_sid 1 The thing is, it didn't work. I

[PHP] OOP Hello World

2006-09-28 Thread Martin Alterisio
What's up folks? I just wanted to tell you about a thread that's going on in the spanish php mailing list. A fellow software developer which had just started with OOP was asking for Hello World examples using OOP. The examples of code he had been doing was not that different from the usual Hello

Re: [PHP] Changing values in .htaccess

2006-09-29 Thread Martin Marques
On Thu, 28 Sep 2006, Curt Zirzow wrote: On 9/28/06, Google Kreme [EMAIL PROTECTED] wrote: On 28 Sep 2006, at 14:30 , Curt Zirzow wrote: If you can, set this on a per directory setting in your virtualhost setting within a Directory or Location, instead of turning on .htaccess. Er... why?

Re: [PHP] class usage

2006-09-29 Thread Martin Alterisio
2006/9/29, benifactor [EMAIL PROTECTED]: ok, about five minutes ago i decided to learn classes and delve into php's oop side. what i came up with was this... //start example code class newsletter { function send ($email,$subject,$message) { if ($email) { echo(the

Re: [PHP] Re: class usage

2006-09-29 Thread Martin Alterisio
2006/9/29, M.Sokolewicz [EMAIL PROTECTED]: Well, you could say that there is no difference really. Classes are mainly used as collections; They're a collection of functions (methods) sharing a common goal/dataset/whatever. That's a module, my friend, not a class:

Re: [PHP] class usage

2006-09-29 Thread Martin Alterisio
2006/9/29, Ray Hauge [EMAIL PROTECTED]: I think people have pretty much hit the nail on the head with OOP. One thing that I would like to point out is that OOP isn't necessarily needed in every case. Actually there's never a need to use OOP. As I said before OOP doesn't provide anything in

Re: [PHP] WebMail client

2006-10-02 Thread Martin Marques
On Mon, 2 Oct 2006, Peter Lauri wrote: Are there any AJAX supporting client? RoundCube webmail, but it's in development still. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. Martín Marqués |

[PHP] PHP 5, PDO in debian

2006-10-02 Thread Martin Marques
Does anyone have an idea on when PDO is going to be available in Debian? -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - Lic. Martín Marqués | SELECT 'mmarques' || Centro de Telemática| '@'

Re: [PHP] PHP 5, PDO in debian

2006-10-02 Thread Martin Marques
On Mon, 2 Oct 2006, David Tulloh wrote: Martin Marques wrote: Does anyone have an idea on when PDO is going to be available in Debian? not a clue... http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348882 Saw that already yesterday, but it's from the begining of this year. It's so

<    5   6   7   8   9   10   11   12   13   14   >