Re: [PHP] user access/roles/privs functionality

2008-11-16 Thread Thodoris
ery often then this is probably not the best solution for you but in any other case try to see if it fits your needs. http://gr2.php.net/manual/en/intro.ldap.php -- Thodoris

Re: [PHP] ability to find include files...

2008-11-16 Thread Thodoris
es Andrew This of course shows the included files but if you *really* need to go much deeper (although this is probably an overkill) you could try tracing when the process opens a file using strace along with grep if you are in unix. -- Thodoris

Re: [PHP] while question

2008-11-17 Thread Thodoris
control-structures.while.php -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cannot create statement handler

2008-11-17 Thread Thodoris
roblems using rpm. It seems that if I dump $sthr it returns false. Although if I print the query and use it directly it works fine. Apache 2.2.10 PHP 5.2.6 Linux EL5 I've posted this some days ago but none had any idea about this. Do think this could be a bug? -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Cannot create statement handler

2008-11-17 Thread Thodoris
Thodoris wrote: I was wondering if anyone sees something I am bypassing: I have this sample code that works in another server: query($sql); // die(var_dump($sthr)); $res = $sthr->fetch(PDO::FETCH_ASSOC); return $res['Name']; } try { $dbh = new PDO('mysql:h

Re: [PHP] ability to find include files...

2008-11-17 Thread Thodoris
hi t!! strace is something i would have used.. but unfortunately, strace (at least as far as i can tell) doesn't work with web based apps... thanks -Original Message- From: Thodoris [mailto:[EMAIL PROTECTED] Sent: Sunday, November 16, 2008 11:42 PM To: Andrew Ballard Cc: bruce

Re: [PHP] HowTo use Eclipse PDT and existing mounted directory tree?

2009-01-13 Thread Thodoris
o import the project (I think this is the proper way) by right clicking in PHP explorer and choosing Import menu. Then you should choose "Existing project into Workspace" under the "General" tree. I don't if there is a better way but I usually open the existing projects this way. -- Thodoris

[PHP] iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-13 Thread Thodoris
e the data import. I have tried to filter the data before writing them into the sheet but this behavior persists. Any ideas in what might be wrong? -- Thodoris

Re: [PHP] iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-13 Thread Thodoris
On Tue, 2009-01-13 at 15:51 +0200, Thodoris wrote: Hi gang, I am generating a spreadsheet using the contents of a mysql table. I guess that there is something in the data that causes iconv used in the module's script to generate this error: *Notice*: iconv() [function.

Re: [PHP] iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-13 Thread Thodoris
On Tue, 2009-01-13 at 16:07 +0200, Thodoris wrote: On Tue, 2009-01-13 at 15:51 +0200, Thodoris wrote: Hi gang, I am generating a spreadsheet using the contents of a mysql table. I guess that there is something in the data that causes iconv used in the module's scri

Re: [PHP] iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-13 Thread Thodoris
y and something like a special character or something that Excel doesn't think is right a messing all up. I am really stuck so any help could be very useful... -- Thodoris

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread Thodoris
On Tue, 13 Jan 2009 15:51:01 +0200, Thodoris wrote: Hi gang, I am generating a spreadsheet using the contents of a mysql table. I guess that there is something in the data that causes iconv used in the module's script to generate this error: *Notice*: iconv() [function.

Re: [PHP] php.ini

2009-01-14 Thread Thodoris
etwork to the email server? I am not sure what you mean by that... gishaust -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem using crypt() without a salt

2009-01-14 Thread Thodoris
case a random MD5-compatible salt is generated. http://gr2.php.net/manual/en/function.crypt.php Perhaps your PHP compilation or the package are broken. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-14 Thread Thodoris
erverlatin1 character_set_systemutf8 What's the character set of the column you get the data from? The charset: latin1 and the collation: latin1_swedish_ci. /Nisse -- Thodoris

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-15 Thread Thodoris
On Wed, 14 Jan 2009 13:19:31 +0200, Thodoris wrote: Variable_name Value character_set_clientutf8 character_set_connectionutf8 character_set_database latin1 character_set_filesystembinary character_set_results utf8 character_set_serverlatin1 character_set_system

Re: [PHP] Re: iconv is messing up a spreadsheet generated by the Spreadsheet Excel Writer

2009-01-15 Thread Thodoris
! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Thanks man that did it :-) . What exactly was the problem you've noticed (I am seeing a diff between the two files bu t I am not sure I fully understand)? -- Thodoris

Re: [PHP] Quotes in querys

2009-01-15 Thread Thodoris
will cache the query and that is true. But I think that mysql uses the cache only if the query is the exact same... So it does no good in this case. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] About printing functions

2009-01-21 Thread Thodoris
store the "blah blah blah" somewhere for later use? I can think of many reasons that someone could use this. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About printing functions

2009-01-21 Thread Thodoris
On Jan 21, 2009, at 1:33 PM, Thodoris wrote: Hi gang, Lets say that you have a function that prints something to the output simply like this: function print_str() { print "blah blah blah"; } I was wondering if there is a way to use this output and store it in a var or

Re: [PHP] About printing functions

2009-01-21 Thread Thodoris
you can use Output Buffering : That's a good though thanks. Although I was aware of output buffering I used to ignore that ob_end_clean actually exists... -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] distinguish between null variable and unset variable

2009-01-23 Thread Thodoris
stant to a var is making PHP to pretend like it never existed. Is this not the point? Without this feature I can think many cases that isset or is_null would be useless. You could always assign to something the empty string '' and use empty() to check it as an alternative. BT

Re: [PHP] PHP 5.2.8 fails to find libiconv

2009-01-23 Thread Thodoris
(warn: possibly braindead libc) Any thoughts/suggestions/ideas on how to solve this would be greatly appreciated! Regards, Ro Although this not strictly a PHP question you could try to update first. #yum update Just in case something went wrong -- Thodoris -- PHP General Mailing

[PHP] Mail subject encoding problem

2009-01-30 Thread Thodoris
rubbish. All encodings are in UTF-8 (the php file, the encoding of the mail client etc) so to solve this I have added the mb_encode_mimeheader line. This quite many times although sometimes it works. I have also tried to set quoted-printable mime encoding with similar results. FreeBSD has PH

Re: [PHP] PHP Content Management

2009-01-30 Thread Thodoris
could use this: http://www.joomla.org/ Lame way to think but it works and is rich in features. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Switch statement Question

2009-01-30 Thread Thodoris
;t notice in any case). I think there was a thread in this list for this comparison a few days ago. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] kadm5 Library

2009-01-30 Thread Thodoris
-0.2.3.tgz tar zxf kadm5-0.2.3.tgz cd kadm5-0.2.3 phpize ./configure (you have to make ./configure --help to see how to configure where the library is assuming something like --with-krb5=/path/ or --with-libdir=/path/) make make install You can find the extension here: http://pecl.php.net/package/kadm5 -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Thodoris
Thodoris wrote: I am having a FreeBSD web server for development that is working like a charm when sending mail using something like this: // Define the e-mail content $email = "f...@foo,com"; $subject = "H εργασία: (id: 1868) έκλεισε χωρίς σχόλια."; $message = "

[PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
Hi gang, I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
2009/2/3 Thodoris : I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end at midnight, but there may be some exceptions ;-) Seriously though, not really sure

Re: RES: [PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
Try: echo date("H:i:s", mktime(23-date("H"), 59-date("i"), 59-date("s")); This is I guess how much time we have to reach midnight. But the question is how to calculate the time that sun stops showing its refreshing light. BTW try not to top po

Re: [PHP] calculate the time that day ends

2009-02-03 Thread Thodoris
Shawn McKenzie wrote: Thodoris wrote: 2009/2/3 Thodoris : I was wondering if there is way to find out what is the time that every day ends? I am planning to add this to the first page on an interface I am developing. Most days end at midnight, but there

Re: [PHP] Re: PHP webhosting - USA - conclusion

2009-02-04 Thread Thodoris
http://www.icdsoft.com/ -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function_exists question

2009-02-05 Thread Thodoris
t being developed any more. So by the end of this year (I hope) we will start using a stable PHPv6. IMHO you should consider changing your code (if this is possible) to a more mainstream version. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometime the code works and sometimes doesn't

2009-02-05 Thread Thodoris
r Email Address."; } else { echo "Cannot send password to your e-mail address"; } ?> There must be something that I am doing wrong. Otherwise I could have always gotten the password in my mailbox. Please help. Thanks in advance, Chris -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email configuration

2009-02-05 Thread Thodoris
ulting page or something like that "Path to sendmail". If this is set then everything will work like a charm. -- Thodoris

Re: [PHP] cgi vs php

2009-02-05 Thread Thodoris
development to make some things clear before start asking questions in the lsit. This will improve your understanding and it help us to make suggestions. -- Thodoris

Re: [PHP] Blank page of hell..what to look for

2009-02-05 Thread Thodoris
to do. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] kadm5 Library

2009-02-05 Thread Thodoris
b5-workstation-1.6.1-25.el5_2.2 pam_krb5-2.2.14-1.el5_2.1 krb5-devel-1.6.1-25.el5_2.2 And then I run into this: http://pecl.php.net/bugs/bug.php?id=15196&thanks=3 I have already reported the bug and lets hope it will get fixed. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php rpm

2009-02-05 Thread Thodoris
it is a good one. I don't remember if fedora is truly doing that but if it does that is cool I will check with my laptop (the only piece of hardware that has fedora installed). -- Thodoris

Re: [PHP] Clarity needed

2009-02-05 Thread Thodoris
orary, tables and transactions but you will find it useful because I think it is relevant with your case. http://dev.mysql.com/tech-resources/articles/mysql-db-design-ch5.pdf Why don't you give it a try. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Email configuration

2009-02-06 Thread Thodoris
2009/2/5 Thodoris : I think that the OP mentioned the word fedora somewhere above... Oh sorry, I'm so stupid... Anyways, if you want to send mail to large providers you'll need to use a relay. I found a nice tutorial about how to set it up with google apps. It was for Ubun

Re: [PHP] cgi vs php

2009-02-06 Thread Thodoris
Thodoris napsal(a): Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can

Re: [PHP] Boolean Assignment Operator

2009-02-06 Thread Thodoris
"; $var2 = $var1; $var3 &= $var1; $var1 = "test2"; echo var1; // "test2" echo var2; // "test1" echo var3; // "test2" The manual does describe these as "combined operators" in the assignment operators section. See the last example: http://www.php.net/manual/en/language.operators.assignment.php -- Thodoris

Re: [PHP] Email configuration

2009-02-06 Thread Thodoris
2009/2/6 Thodoris : 2009/2/5 Thodoris : I think that the OP mentioned the word fedora somewhere above... Oh sorry, I'm so stupid... Anyways, if you want to send mail to large providers you'll need to use a relay. I found a nice tutorial about how to set it up with google ap

[PHP] xls to pdf conversion in unix

2009-02-09 Thread Thodoris
probably parse the xls using a reader and then write the data in a pdf with a module (like fpdf or pdflib) but I will get into complications I cannot resolve. So is there another way to do such a transformation. Give me your light... -- Thodoris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP OOP

2009-02-09 Thread Thodoris
at you are right about using a specific language and you should strongly insist on that. Someone needs to see how objects are taking flesh and bones in real life and not just theoretically. You could consider Java as well before taking your final decision. -- Thodoris -- PHP General Mailing

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Thodoris
perhaps there are solutions to this using search engines but you can't know for sure. This is the way it works. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Thodoris
syntax and style but this is the only relation I can find between the two. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache odd behavior

2009-02-16 Thread Thodoris
t least one other MVC framework. What am I doing wrong? Paul I assume that in order for this to work you will have to use mod_rewrite for apache to work properly. Check the framework's installation instructions to see if you configured mod_rewrite correctly for this to work properly

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Thodoris
t are useless. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Guard/Optimizer alternatives?

2009-02-16 Thread Thodoris
ers won't need to do anything special if you encode the PHP projects that you host (in case I am getting this right). But there are no magical solutions to anything. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Full versus relative URLs

2009-02-16 Thread Thodoris
On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote: Here's a question related to my last post. When specifying a link in a HTML file (like to the css or an image file), there are two ways of doing it. One is to simply include the relative path to the file (relative to the doc

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-16 Thread Thodoris
to mention that there is a difference between a framework and an API. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Thodoris
2009/2/16 Thodoris : In addition to this there is an API for C that can be used to code web applications and it is known as CGI (it is provided by many languages) CGI is a protocol not an API and has no specific connection to C. -Stuart I stand corrected on this. But what I

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Thodoris
milar to that of Perl, albeit much more limited, simple, and somewhat inconsistent." Then surely what is described is just a way of abstracting parts of the language to make it "easier" to code. 2009/2/16 Thodoris : I'd personally say that PHP was originally intended to esse

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Thodoris
ch more limited, simple, and somewhat inconsistent." That of course was PHP and you probably have a point. Then surely what is described is just a way of abstracting parts of the language to make it "easier" to code. This was mentioned about a framework not PHP of cour

Re: [PHP] PHP AS an FTP server

2009-02-17 Thread Thodoris
tion (mysql, ldap etc) if you compile the proper module. Thanks. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Thodoris
h is: /etc/php5/apache2/php.ini As far as I can see from you phpinfo page. So that you don't need to set it in every script during runtime as you mentioned. -- Thodoris

[PHP] php cli memory leak error

2009-02-17 Thread Thodoris
ain.c(2015) : Freeing 0x2871F2A8 (43 bytes), script=./bcom.php === Total 1 memory leaks detected === This is hosted on a FreeBSD 7 machine with: PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) Anyone knows what is happening ?? I have to mention that the array is printed as expected. -- Thodoris -- P

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Thodoris
t where something is located and that's the point of the whole conversation. If you hardcode the values then you need to change them while renaming or moving files and directories So what someone should do to accomplish such a behavior? Without being vulnerable to injection attacks of course. -- Thodoris

Re: [PHP] Full versus relative URLs

2009-02-17 Thread Thodoris
perhaps load into the session to avoid overhead. -- Thodoris

Re: [PHP] display_errors and error_reporting not enough?

2009-02-17 Thread Thodoris
Thodoris wrote: When I make something wrong like syntax error; I get blank pages. Because the PHP code is not running (because of the syntax error), and thus not setting the error reporting as desired. You'll need to aither use a .htaccess file (if you're running

Re: [PHP] php cli memory leak error

2009-02-17 Thread Thodoris
Thodoris wrote: Hi gang, I am trying to run a simple PHP script using the cli and I get a weird memory leak error. The script goes like this: #! /usr/local/bin/php The problem is that when I run the script I get this error: Script: './bcom.php' /usr/ports/lang/php5/work

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Thodoris
tless" discussion as you like to call it. Virgil http://www.jampmark.com I prefer calling C and C++ as Framework of Assembly language. Hahaha that was a good one Shawn. I almost fall of the chair :-) . -- Thodoris

Re: [PHP] php cli memory leak error

2009-02-17 Thread Thodoris
memory_limit = 128M and the last one I have just noticed (that is why it reports the leak): report_memleaks = On In case I set this to Off it just stops bugging me. But is there a memory leak? And if yes should I report this as a bug ? -- Thodoris

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Thodoris
u abstract each time and what term you choose to use. An example that comes in mind is about networks. You can say that the http protocol is a framework of underlying tcp protocol although it is comes as an abstraction. -- Thodoris

Re: [PHP] PHP AS an FTP server

2009-02-18 Thread Thodoris
On Tue, 2009-02-17 at 18:54 +0200, Thodoris wrote: Hi, This is probably a bit stupid, but I've been having issues getting any of the good FTP servers running on my Ubuntu 6.06 (LTS) box. I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but the versions availa

Re: [PHP] function array problem

2009-02-18 Thread Thodoris
ot;? You may want to consider these functions: |func_get_args ||func_get_arg| |func_num_args| to make the functions input more loose and have it accept multiple formats as needed like one dimensional, two dimensional or simple parameters the same time. -- Thodoris

Re: [PHP] Accessors

2009-02-19 Thread Thodoris
and it is possible to produce something similar to byte-code. You can some solutions to this and here is one of them (open source): http://www.php.net/manual/en/ref.bcompiler.php http://pecl.php.net/package/bcompiler and there is a script to make "byte-code": http://bencoder.urdada.net/ I have used and it works. -- Thodoris

Re: [PHP] Re: Securing web services

2009-02-22 Thread Thodoris
d my life. it also has very nice scripts for working with wsdl including an automatic wsdl2php and a full WSDL generation API :) Many Regards, Nathan ps: I'm no affiliation :) -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO buffered query problem

2009-02-24 Thread Thodoris
y exceed. So if you use either you may need to fine-tune PHP by increasing the per process memory (memory_limit in php.ini) or MySQL. In case you use unbuffered queries you cannot use transactions as far as I can recall. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] whoami explanation

2009-03-04 Thread Thodoris
ns AFAIK can give you only the ids (uid,gid etc) about a process. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] whoami explanation

2009-03-04 Thread Thodoris
Thodoris wrote: Didn't have the time to read the whole thread. Sorry for being so lame. Obviously, or you would have known that this thread has very little if anything to do with whoami! :-) Indeed nonetheless it will be something useful for the archives (at least I think

[PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
have to mention that the executable flag is set in the file's permissions. Any ideas why is this happening? php -v gives me: PHP 5.1.6 (cli) (built: Nov 12 2008 11:22:34) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies -- Thodoris -

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
which php whereis php The first will tell you which PHP CLI binary is preferred by the current $PATH settings, while the second will tell you where in $PATH 'php' is located. Both commands return the same path. -- Thodoris

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
On Fri, Mar 13, 2009 at 10:23, Thodoris wrote: [snip!] Both commands return the same path. and that path, I'll presume, is the same you have set in the script, right? Please offer as much information as you can with each email to speed up the troubleshooting process.

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
Thodoris wrote: Hi gang, I am trying to run a script from cli which goes like this: #!/usr/bin/php The error I get is this: /usr/bin/php^M: bad interpreter: Permission denied the php binary is indeed in this location and when I run the same script like this: php -f test.php it works

Re: [PHP] assign associative array values to variables?

2009-03-18 Thread Thodoris
works for as many categories as needed. Manipulating each value should not be a problem once it is in a string variable using switch and preg_replace() as each category needs to be stripped of spaces, commas and &s. Perhaps extract() ?? http://www.php.net/manual/en/function.extract.

Re: [PHP] Smarty Tips and Techniques

2009-03-18 Thread Thodoris
which make them faster to process. Nevertheless you need time to get familiar with the smarty way of thinking as with all frameworks and template engines you need to use. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Smarty Tips and Techniques

2009-03-20 Thread Thodoris
P in order to use Smarty. Think it just like a class used for displaying the output (simply put). At least I've been doing this for some time now (the non-OOP part). I have a feeling that someone coming from the procedural way of programming would have problems probably with the templates instead of the development part. -- Thodoris

[PHP] fpdf adding font error

2009-03-27 Thread Thodoris
it doesn't work as expected. The font is not being although I am following the fpdf's directions step-by-step. Does anybody know another way to generate pdf files with greek properly or can help me with the fpdf?? Thanks in advance. -- Thodoris -- PHP General Mailing List (htt

[PHP] pdflib greek problem

2009-03-27 Thread Thodoris
hello sample:\n" . "[" . $e->get_errnum() . "] " . $e->get_apiname() . ": " . $e->get_errmsg() . "\n"); } catch (Exception $e) { die($e); } Although greek are printed normally the characters are overlapping on each other. The script in encoded in UTF-8. Does anybody have any suggestions on this? Please any help would be appreciated. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: fpdf adding font error

2009-03-30 Thread Thodoris
If you want to use UTF-8 fonts with FPDF then switch to TCPDF (www.tcpdf.org) Thanks Tony I think that it will do what I really need. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] alt() - unknown function?

2009-04-15 Thread Thodoris
that you use. You can check the user and internal functions using the get_defined_fumctions(): http://us.php.net/manual/en/function.get-defined-functions.php -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] alt() - unknown function?

2009-04-15 Thread Thodoris
. Finding nothing with those, I'd grep the whole stinkin' drive and go grab a coffee. :) On Wed, Apr 15, 2009 at 10:39 AM, Thodoris wrote: Hi all, I've just started looking at the code of an e-commerce site we are taking over the development of, that another company

Re: [PHP] PDO fetch_obj - question

2009-04-15 Thread Thodoris
e your table's fields . Try to include more info about your system, php version etc in case you reply. It will help us to help you. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bug or expected, mbstring.func_overload not changeable by .htaccess 5.2.8/5.2.9

2009-04-15 Thread Thodoris
es it work? In addition to this heck your apache configuration to see if you allow .htaccess to be parsed. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bug or expected, mbstring.func_overload not changeable by .htaccess 5.2.8/5.2.9

2009-04-23 Thread Thodoris
cess. I don't know if this is an expected behavior though. Can anyone else confirm this?? -- Thodoris

[PHP] Mail subject encoding breaks

2009-05-11 Thread Thodoris
bstring). Has anyone had a similar experience? Is it possible that sendmail (which is the underlying tool) breaks the mail encoding? Please any help would be appreciated because this is really driving me crazy. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail subject encoding breaks

2009-05-11 Thread Thodoris
On 11 May 2009 at 18:25, Thodoris wrote: Hi gang, I am using phpmailer to send some mail notifications in an intranet I've made. This is a sample code: $e->Subject = "This is δφκξγκδφη garbidge κηδφκξγσ"; Hi, I have had success with this in t

Re: [PHP] Re: Mail subject encoding breaks

2009-05-12 Thread Thodoris
Hello, on 05/11/2009 12:25 PM Thodoris said the following: This script seems to work ok in a freebsd development server I have but a linux production machine breaks the subject's encoding for some unexpected reason. The subject has a mix of English and Greek characters that FreeBSD

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Thodoris
ded. You could always run this script from command line being root or whatever user is the owner of the Desktop directory. Read this if you are not aware of how this can be done: http://www.php.net/features.commandline -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Thodoris
} $b = 0; $g++; } $g = 0; $r++; } header("Content-Type: image/png"); imagepng($im); imagedestroy($im); Never used image manipulation with PHP but this is giving me a black image. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Thodoris
Thodoris wrote: hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists("/root/Desktop/conf_files_linux")) echo "yes file is there"; else echo "no none"; It gives me none. If i place conf_fil

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Thodoris
Thodoris wrote: דניאל דנון wrote: I've tried to make a color table, but I am missing something. not in the color-table-code itself, but in somewhere else... I just can't find... untested but try.. // 4096*4096 = 16777216 = FF+1 $im = imagecreate(4096, 409

Re: [PHP] irrational behavior

2009-05-12 Thread Thodoris
emove any existing keys that may have been assigned, rather than just reordering the keys http://www.php.net/manual/en/function.sort.php -- Thodoris

Re: [PHP] irrational behavior

2009-05-12 Thread Thodoris
/ . It will remove any existing keys that may have been assigned, rather than just reordering the keys http://www.php.net/manual/en/function.sort.php Forgot to mention this of course which was my point on the first place: Be careful when sorting arrays with mixed types values because *sort()* can produce unpredictable results. -- Thodoris

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Thodoris
On Tue, 2009-05-12 at 18:05 +0300, Thodoris wrote: Still curious about the right script though (if this is possible of course). Of course it's possible... but you're probably not going to get the results you want since you're taking 3 dimensions and trying to push them

Re: [PHP] fileinfo on RHEL5

2009-05-13 Thread Thodoris
r some reason. Have in mind that you will need the magic_open library for this to work. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >