[PHP] ZEND Certification

2005-05-20 Thread Martin Zvarik
Hi, anyone has taken ZEND PHP Certification Exam??? Please can you give me some information about it? Thank you, Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ZEND Certification

2005-05-21 Thread Martin Zvarik
. I have looked at yellow pages, seems like you're not there either, Rory Browne... If many people here have taken it, can someone please answer my questions above? Thank you! Martin -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 1:31 PM

RE: [PHP] Re: Strange comparison behaviour

2005-05-21 Thread Martin Zvarik
String "info" is converted to integer, which is 0... a) if("info" == "0") b) if("info" === 0) c) if("info" == (string)0) Or use strcmp() Cya... Read a book "PHP for beginners" -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 5:13 AM To

[PHP] Regexp hyperlink

2004-04-18 Thread Martin Visser
I can't figure out how to do this. I've four different methods for changing a piece of text into a hyperlink. the text: [link=www.hotmail.com]hotmail[/link] [link=http://www.hotmail.com]hotmail[/link] www.hotmail.com http://www.hotmail.com what it should become (offcourse in HTML it will change

Re: [PHP] Regexp hyperlink

2004-04-19 Thread Martin Visser
Thanks alot! It's indeed an ingenious way of doing it! Martin Richard Harb schreef: A while ago I've been looking at some piece of code of the tikiwiki project to see how they did some of their magic... Basically they run through the whole text and if they found something that was

[PHP] PHP5 - instanceof

2004-05-12 Thread Martin Towell
without instantiating it? Thanks Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP5 - instanceof [SOLVED]

2004-05-12 Thread Martin Towell
ah yes, of course "instanceof" means you're working with an instance of an class - Pity there's no equivalent for classes :( oh well, I'll just have instantiate the class first then do the checking. Thanks Martin > -Original Message- > From: Travis Low [

[PHP] Re: GET and POST variables name

2004-05-15 Thread Martin Visser
You also could use: print_r($_GET); and print_r($_POST); an Array will be printed with key and value Martin Dino Costantini schreef: i know it could be a stupid problem, but i need a help and i hope u could be generous with me :). this is my code, it writes the list of POST and GET variables

RE: [PHP] why i could not use DB.php?

2004-05-18 Thread Martin Towell
I had a similar error before before. I think php was thinking that the path was '.;d:\php\PEAR' and not two seperate paths (??) What's the include_path line in you php.ini look like? Could there be something to do with that? Martin > > David wrote: > > hi >

[PHP] bg execution

2004-05-22 Thread Martin Helie
Hello, I need to start a php-based socket server that doesn't die if the client closes their browser window. Is there another (maybe cleaner) method to accomplish this, other than exec('bash -c "exec nohup setsid php server.php > /dev/null 2>&1 &"'); ? Thanks -- PHP General Mailing List (htt

[PHP] Re: bg execution

2004-05-22 Thread Martin Geisler
[EMAIL PROTECTED] (Martin Helie) writes: > Hello, > > I need to start a php-based socket server that doesn't die if the client > closes their browser window. > > Is there another (maybe cleaner) method to accomplish this, other than > > exec('bash -c "exec

[PHP] Re: Newbie error with cookies and headers already declared

2004-05-22 Thread Martin Geisler
and 'time' is set. The session variables can be set and updated at any time because this only associates data with the session on the server side. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather

[PHP] Re: Random Record Retrieval

2004-05-23 Thread Martin Geisler
/dev.mysql.com/doc/mysql/en/Mathematical_functions.html#IDX1363 for a description of RAND() in MySQL. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/| http://phpweather.net/ | http://gi

Re: [PHP] sessions

2004-05-23 Thread Martin Geisler
tant foo...' message when I run it with PHP5: 'bar'); echo $array[foo] . "\n"; error_reporting(E_ALL); echo $array[foo] . "\n"; ?> -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather |

[PHP] Re: DOM XML output whitespace

2004-05-24 Thread Martin Geisler
sk for: formatted output. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/| http://phpweather.net/ | http://gimpster.com/ Read/write EXIF data | Show current weather| A shell in a browser

[PHP] Re: Problem with number_format

2004-05-25 Thread Martin Geisler
e reason behind rounding half the values down and the other half up is to avoid the classical banking problem where if you always rounded down you would be stealing money from your customers, or if you always rounded up you would end up over time losing money. By averaging it out thr

[PHP] Re: Simplistic PHP tutorial

2004-05-25 Thread Martin Geisler
tten a long time ago so it doesn't include the newer PHP4 stuff. -- Martin Geisler My GnuPG Key: 0xF7F6B57B PHP EXIF Library | PhpWeather | PhpShell http://pel.sf.net/| http://phpweather.net/ | http://gimpster.com/ Read/write EXIF da

[PHP] Re: Problem with number_format

2004-05-25 Thread Martin Geisler
[EMAIL PROTECTED] (Curt Zirzow) writes: > * Thus wrote Martin Geisler ([EMAIL PROTECTED]): >> >> Caution >> >> When rounding on exact halves round() rounds down on evens and up >> on odds. [...] > > This is a documentation error. And is not on the

[PHP] Re: Error Downloading files using FOpen

2004-06-05 Thread Chris Martin
ur script, but expect your files to be readable with applications such as notepad. You should use the 'b' in all other cases. Hope that helps. Sorry if I misunderstood your problem. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ --

[PHP] Re: Possible to Google search the news.php.net past post with keywords???

2004-06-09 Thread Chris Martin
and many others) through Gmane. http://news.gmane.org/index.php?prefix=gmane.comp.php -- Chris Martin - Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Testing for cookie?

2004-06-21 Thread Martin Schneider
. So how is it done? I was not able to set and test a cookie on the same page. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Testing if cookies are enabled

2004-06-21 Thread Martin Schneider
ext a cookie on the same page! How is it done? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Check if cookies are enabled on one page

2004-06-21 Thread Martin Schneider
ow is it done? I seem not to be able to set and check a cookie on the same page (or am I wrong?) Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Martin Schneider
accessed ON THE NEXT PAGE." But I have seen pages on which it seems they set und check if the cookie has been set ON THE SAME PAGE. So I want to know how they do that (perhaps with a 302-header or something like that?). Martin Aidan Lister schrieb: If you can't work it out, and have actua

[PHP] Obtain NT Logon

2004-07-03 Thread Martin Wilmore
Hi all, I have a web form with a field for username, this is a corporate site so will be the users NT logon. Would it be possible using PHP to obtain this information directly from the client pc? Thank you in advance. Martin

[PHP] Running php scripts stored in mysql

2004-07-08 Thread Martin Bálint
Hello, is this possible? I have a script stored in mysql database. For simplicity let's say: is stored in db. Is it somehow possible to include this script to a running php process for execution? Some analogy to include(file); but for a mysql stored script? Thanks Martin -- PHP Ge

[PHP] How to handle cookies?

2004-07-09 Thread Martin Schneider
Hello! I want to use php to gather some informations on a website. You have to login to this website. In a brwoser, a cookie is set at login and identifies you. How can I handle this cookie when using php? Is there an easy way? It would be best just to use fopen("http://...";). Mar

[PHP] Re: Money format

2004-07-20 Thread Kevin Martin
Lukáš moravec - ptv servis wrote: Hi to all, is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? Regards Lukas Sure, see http://php.net/number_format . I love it when it's as easy as saying "RTFM" -- PHP

[PHP] Re: exec/system question..

2004-07-21 Thread Kevin Martin
Bruce wrote: hey... looking at initiating a perl app from inside a php web app. basically, the user will hit a button/start the app...the perl script will take awhile to complete, so i'd like to run the app and then continue on with the php process... so my question boils down to what's the best ap

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, 9:

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 nex

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 er

Re: [PHP] Reload page after form submit

2007-08-30 Thread Martin Marques
Stut wrote: Wagner Garcia Campagner wrote: 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, 0.18 --

Re: [PHP] strange reference behavior

2007-09-01 Thread Martin Ellingham
ot;, but prints "1" Could anyone please clarify why this happens? Regards, 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 doe

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 some

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 the

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 doe

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 cons

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 nextFileI

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 contac

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

2007-10-06 Thread Martin Zvarík
l calls to mail() 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: http://magedb.mageprojects.com/videos/MageDB%202nd%

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

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, b

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

2007-10-31 Thread Martin Zvarík
? 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
$me->apologizeFor($this->isSelfAdvertising()); if ($you->lookingFor($php->workaround(TYPE_HINT_FOR_NATIVE_TYPES)) { check('http://www.phpclasses.org/browse/package/4195.html'); } $package = new Package('http://www.phpclasses.org/browse/package/4195.html' ); $package->usageExample = <

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('ñ','n',$link); > $link = ereg_replace('á','a',$link); > $link = ereg_replace('é','e',$link); > $link = ereg_replace('í','i',$link); > $link = ereg_replace('ó','

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 unsubscr

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 a

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 fl

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 philo

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 > pro

Re: [PHP] // ?>

2007-12-04 Thread Martin Alterisio
2007/12/4, Kevin Schmeichel <[EMAIL PROTECTED]>: > > Here's some unexpected behavior: > > // ?> 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: http://php.net/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 ca

[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

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

2007-12-28 Thread Martin Alterisio
"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
he future (... ok, that was kind of The > Godfather's script, lol). > > Enjoy your holidays, > > Rob > We'll see... for now I'll follow the stupid decision of finally doing what I intended when I began this whole dance of software development. I hoping with all my heart that this will go well and I'll never have to work in web development again. If not, well, I'll come back to whatever it's that's being used in that specific moment, be it PHP or whatever may come. Just know that I'm not leaving for some petty reason. And I 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.

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

[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 ""|php5 08:04 What can my problem be? BTW, I di

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

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

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 si

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 versi

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
pt 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: http://www.php.net/unsub.php

Re: [PHP] Ajax?

2007-05-09 Thread Martin Marques
Greg Donald escribió: On 5/9/07, bruce <[EMAIL PROTECTED]> wrote: from my reading.. i thought yahoo's user interface (yui) components where for interfacing with yahoo am i missing something here?? Yes. :) The Yahoo! User Interface (YUI) Library is a set of utilities and controls, written

Re: [PHP] Bounty, NOW!

2007-05-15 Thread Martin Marques
Brad Sumrall wrote: I got 5 IP breaking Federal Regulations. Hehehehe Do you think you are not being logged? Yeah, and I bet those IP are from Kathmandu. :-D -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 - L

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

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?

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

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. Is

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

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 PH

Re: [PHP] If statement question

2006-06-26 Thread Martin Marques
On Mon, 26 Jun 2006 19:10:59 +0100, Alex Major <[EMAIL PROTECTED]> wrote: > Hi list. > Basically, I'm still learning new things about php and I was wondering if > things inside an if statement get 'looked at' by a script if the condition > is false. > For example, would this mysql query get execut

Re: [PHP] working on a template system...

2006-06-27 Thread Martin Marques
Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. On Tue, 27 Jun 2006 10:22:42 +0300, sempsteen <[EMAIL PROTECTED]> wrote: > hi, i'm working on a template system. Basically i'm building raw > contents in arrays and then put them in templates by som

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Marques
On Wed, 28 Jun 2006, Ligaya Turmelle wrote: Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. Or just use PHP... Because it's a mess. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Alterisio
2006/6/28, Robert Cummings <[EMAIL PROTECTED]>: On Wed, 2006-06-28 at 07:32, Martin Marques wrote: > On Wed, 28 Jun 2006, Ligaya Turmelle wrote: > > > Martin Marques wrote: > >> Why not try to use one of the template systems that already exist? > >> HTML_T

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Marques
On Wed, 28 Jun 2006 12:28:43 -0400, tedd <[EMAIL PROTECTED]> wrote: > At 8:32 AM -0300 6/28/06, Martin Marques wrote: >> >>Because it's a mess. >> > > That's because it got out of hand. Now, practice the 3R's, regroup, > rethink, and

Re: [PHP] working on a template system...

2006-06-28 Thread Martin Alterisio
essy... /* The Smarty way */ $smarty->assign('display_variable',$display_variable); ... {* template *} {foreach key=key item=var from=$display_variable} {$key}{$var} {/foreach} /* The PHP way */ $var) { ?> Is it really *that* bad? jon Martin Alterisio wrote: >

[PHP] Re: Sad PHP Poem

2006-06-30 Thread Martin Alterisio
2006/6/26, Martin Alterisio <[EMAIL PROTECTED]>: A sad poem of an algorithm where solitude brought excessive use of cpu cycles and memory allocation for redundant data (it copied over and over again the same image till all memory was filled w

Re: [PHP] working on a template system...

2006-07-01 Thread Martin Marques
On Thu, 29 Jun 2006, Charlene Wroblewski wrote: *joining the fray a little late* What is the difference between this, Smarty and template.inc? I have found Smarty to be unusable in my situation where a graphic designer needs to be able to edit the html and is easily confused by non-html. So

Re: [PHP] Templates, PHP Frameworks, and DB Abstraction?

2006-07-01 Thread Martin Marques
On Fri, 30 Jun 2006, Jay Paulson wrote: I'd like to get some feedback on what the list thinks is a good template engine other than smarty. PEARs HTML_Template_IT... or mix it with other HTML_Template* I'd also like to do some quick prototyping using a PHP framework does anyone have any recom

RE: [PHP] Templates, PHP Frameworks, and DB Abstraction?

2006-07-01 Thread Martin Marques
On Fri, 30 Jun 2006, KermodeBear wrote: http://pear.php.net/package/DB/ This one has no more development, besides bug fixes. It was merged to create the one below. http://pear.php.net/package/MDB2/ -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18 -

[PHP] WebDav via PHP

2006-07-01 Thread Martin Staiger
Dear group, Apache's WebDav-features do not fulfill our requirements concerning file-management since we have to manage complex access-rights to files by our own logic. HOW can we create our own WebDav-Server with PHP ? Are there any alternatives? I couldn't find any examples so far ... Thankf

Re: [PHP] Re: Sad PHP Poem

2006-07-01 Thread Martin Marques
On Sat, 1 Jul 2006 07:03:54 -0700 (PDT), Ryan A <[EMAIL PROTECTED]> wrote: > >> Soccer... what's that? >> >> tedd > > Its a mis-spelling of two words taken out of context, > its actually "sock her" and meant for Hillary Clinton Actually, Hillary wasn't the one "sucking". ;-) -- ---

[PHP] Drag 'n Drop - File Upload

2006-07-03 Thread Martin Staiger
Dear group, we would like to have the possibility to upload files not via HTML-form but via Drag 'n Drop of files. WebDav seem to offer potentials ... but HOW? Are there any examples existing? Are there alternatives existing? Thanks, Marc -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] WebDav via PHP

2006-07-04 Thread Martin Staiger
on" in the popup menu? > > Did you find "WebDAV" in this page: > > http://us3.php.net/manual/en/ini.core.php > > You now know as much about this PHP/WebDAV thingie a I do... :-) > > On Sat, July 1, 2006 1:10 pm, Martin Staiger wrote: >> Dear group, &g

Re: [PHP] WebDav via PHP

2006-07-04 Thread Martin Staiger
on" in the popup menu? > > Did you find "WebDAV" in this page: > > http://us3.php.net/manual/en/ini.core.php > > You now know as much about this PHP/WebDAV thingie a I do... :-) > > On Sat, July 1, 2006 1:10 pm, Martin Staiger wrote: >> Dear group, &g

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-06 Thread Martin Marques
On Thu, 6 Jul 2006, Juanjo Pascual wrote: Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica

Re: [PHP] require_once and E_WARNING?

2006-07-06 Thread Martin Marques
On Wed, 5 Jul 2006, [EMAIL PROTECTED] wrote: Hello all, According to the PHP Manual, when require or require_once failes, an E_ERROR is triggered: "require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fata

Re: [PHP] require_once and E_WARNING?

2006-07-06 Thread Martin Marques
On Thu, 6 Jul 2006, chris smith wrote: Have you tried this handler with something more fatal, like a missing semi-colon or a } missmatch? That will cause a parse error and the script won't even run. You're right. My wrong. :-( -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0

[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... --- Love Letter acquaintances)) { ?> Dear name?>, I really enjoy your company and I would love to meet you again. I had a lot of fun last time 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 in

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??? -- ---

<    11   12   13   14   15   16   17   18   19   20   >