[PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Catalin Trifu
Hi, I've had a similar problem. The download always stopped at exactly 2.000.000 bytes. You have to work around that with: $fp = fopen($file, 'r'); if($fp) { while(!feof($fp)) { echo fread($fp, 1024768);//see the huge buffer to read into }

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Catalin Trifu
($fp) after the file has been downloaded. So is this a bug in PHP 5 or are they just purposely limiting the abilities of the readfile command? Jordan On Aug 17, 2005, at 3:36 AM, Catalin Trifu wrote: Hi, I've had a similar problem. The download always stopped at exactly

Re: [PHP] Re: PHP 5 limits readfile to 1.9 MB?

2005-08-17 Thread Catalin Trifu
out it's a known bug, fixed in CVS already... haven't tried the PHP 5.1 beta release yet. http://bugs.php.net/bug.php?id=32970 On Aug 17, 2005, at 10:19 AM, Catalin Trifu wrote: Hi, Indeed a fclose($fp) is needed (wrote it as an example :)). 1MB is more than enough as a buffer

[PHP] Re: libCURL help

2005-07-18 Thread Catalin Trifu
hi, Usually the .do files are servlets and the .do stuff you enter is rewritten by the server internally to point to the actual servlet. With a http request you will get whatever the servlet is spitting out the wire. Catalin Jon wrote: is there some way to get a .do file from a

[PHP] Re: PHP from CLI with SAPI

2005-07-18 Thread Catalin Trifu
Hi, Why are you displeased with apache ? After all, the 60% share market of apache must mean something :) Catalin Fredrik Tolf wrote: Hi! I've begun to be more and more displeased with Apache lately, so I've been thinking of writing my own HTTP server instead. I still want PHP

[PHP] Re: Support for Oracle 10g in php 5.0.4

2005-07-06 Thread Catalin Trifu
I am using php 5.0.4 with oracle 10g and i had no problems so far. Catalin Chuck Carson wrote: I'm having problems getting php 5.0.4 working with Oracle 10.1.0.3 and just wanted to check and make sure 10g was supported before wasting any more cycles on it. Thx, CC -- PHP

[PHP] Re: Support for Oracle 10g in php 5.0.4

2005-07-06 Thread Catalin Trifu
I have multiple installations of Oracle 10g - two on linux and one on win32. Apache is on linux and php is compiled with oci8 and without oracle. I connect with php to all oracle servers without problems; one of them is on the same machine as the server. Catalin Chuck Carson wrote:

[PHP] Re: Building sapi_apache2

2005-07-04 Thread Catalin Trifu
I think you are looking for IfModule mod_php5.c or IfModule mod_php4.c These are valid in case you compiled and loaded PHP as an Apache module. Catalin Gaby vanhegan wrote: Hi, I have php 5.0.4 running fine on Fedora Core 2 under Apache 2.0.49. To all intents and purposes, PHP

[PHP] Re: Ouput HTML w/PHP

2005-06-30 Thread Catalin Trifu
Hi, It seems to me you are going the wrong way with embedded PHP; try separating logic from view, tons of mvc frameworks out there and templating engines. Try firefox with web developer extension - Validate Local HTML. Catalin Rick Emery wrote: And now for something completely

[PHP] Re: MMcache question

2005-06-25 Thread Catalin Trifu
The use of mmcache (try eaccelerator btw!) is not visible without some stress on the server. Try building a rahter complex PHP script, which does some crazy iterations but without DB connections and such things which are not related to PHPs abilities and use ab (apache benchmark tool) to issue

Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Catalin Trifu
tests are not always very concludent since they depend on many factors. Catalin Joe Muddah wrote: Thanks a bunch. I have alot of work now ahead of me to decide which framework to use. Any opinions on which one is the best? On 6/24/05, Catalin Trifu [EMAIL PROTECTED] wrote: Hi, You

[PHP] Re: Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Catalin Trifu
was mine to make. I may as well have been wrong in making that decision but for now I am quite happy with it and I don't consider switching to PEAR as a better alternative. Catalin P.S. Please forgive me if my opinion offended you in any way. Matthew Weier O'Phinney wrote: * Catalin Trifu

[PHP] Re: PHP web archeticture

2005-06-24 Thread Catalin Trifu
Hi, You can take a look at phrame.sf.net, phpmvc.net, horder.org, binarycloud.com adodb.sf.net (for fast db abstraction layer). Read around and one of those will surely satisfy your needs. Catalin Joe Muddah wrote: I am trying to design a website archeticture. Does anyone have

[PHP] Re: Showing tables (converting from MySQL to Oracle)

2005-06-23 Thread Catalin Trifu
Hi, the USER_TABLES view shows all tables in oracle. Take a look at adodb.sf.net for a very nice php library for database access. It takes much of the porting burden off your shoulders and is pretty fast. Catalin Shane Presley wrote: Hello, I've recompiled PHP to use Oracle,

[PHP] Re: Sorting with french characters

2005-06-23 Thread Catalin Trifu
Check the manual for sort www.php.net/sort - SORT_LOCALE_STRING You would have to pay attention to the current locale - www.php.net/setlocale before the actual sort. hope this solves it, Catalin Mathieu Dumoulin wrote: I've got a little problem with the ksort and sort functions.

[PHP] Re: Extra (persistant) tier

2005-06-22 Thread Catalin Trifu
Hi, Basically you can take your mind off object persistance in PHP unless you code a C extension yourself which would do such a thing. Besides code accelerators and caching techniques there isn't much to play with; at least none that I know of. Catalin Evert | Rooftop wrote:

Re: [PHP] Re: Extra (persistant) tier

2005-06-22 Thread Catalin Trifu
the object into session. it's the only way with php regards david Le Wed, 22 Jun 2005 14:43:51 +0200, Catalin Trifu [EMAIL PROTECTED] a écrit: Hi, Basically you can take your mind off object persistance in PHP unless you code a C extension yourself which would do such a thing

[PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
Hi, This is a database issue and has to do with the following mysql variables: interactive_timeout wait_timeout By default these variables are set to 28800 and they represent the time for which the server waits on persistent connection. If you have a busy site that

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] Re: MYSQLI, Class not found?

2005-06-21 Thread Catalin Trifu
Can you describe your environment: PHP version, Apache version, MySQL version, linux or win32. Did you run phpinfo() and see the loaded extensions ? Catalin [EMAIL PROTECTED] wrote: Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
Dan Rossi wrote: On 21/06/2005, at 6:06 PM, Catalin Trifu wrote: Hi, This is a database issue and has to do with the following mysql variables: interactive_timeout wait_timeout By default these variables are set to 28800 and they represent the time for which

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Catalin Trifu
One other mysql optimization is to increase the thread_pool. This way mysql spends less time creating threads; which on linux without NPTL is not exactly a cheap operation. Catalin Dan Rossi wrote: On 21/06/2005, at 7:47 PM, Catalin Trifu wrote: I presume you mean whether

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Catalin Trifu
Could you make a var_export($result); before calling free() ? Normally the extension should work fine with MySQL 4.1.12. Does the phpinfo() say against which MySQL version it was compiled. I use mysqli on linux and have no problems with it. php5.1.0b1, apache 2.0.54, mysql

Re: [PHP] MySQLI, Class not found

2005-06-21 Thread Catalin Trifu
Hi, One thing i see is the use of num_rows on mysqli_result class, but num_rows is member or mysqli class and not mysqli_result. Perhaps this call to num_rows corrupts the rest. Other than that everything seems fine. Perhaps you should consider linux :), much better choice

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Class not found?

2005-06-20 Thread Catalin Trifu
Hi, Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this extension requires. Catalin [EMAIL PROTECTED] wrote: Hey guys, I'm doing a tutorial from a book (PHP and MySQL Web Development) and I'm having a problem... when I use the

Re: [PHP] weird thing;downloading from a php script stops at exactly 2.000.000 bytes

2005-06-12 Thread Catalin Trifu
Lynch wrote: I just noticed the eaccelerator bit in this thread. Just disabling eaccelerator isn't the same as not compiling it in in the first place... Try that before reporting a bug to http://bugs.php.net On Thu, June 9, 2005 1:59 am, Catalin Trifu said: Hi, I installed php5

Re: [PHP] [? BUG ?] weird thing;downloading from a php script stops at exactly 2.000.000 bytes

2005-06-11 Thread Catalin Trifu
readfile should be the way to spit a file out the wire. btw: $fp = fopen('somefile'); fpassthru($fp); is also stopping at 2.000.000 bytes, which definetely drives me to think there is a bug somewhere. Catalin Richard Lynch wrote: On Thu, June 9, 2005 4:12 pm, Catalin Trifu said

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-10 Thread Catalin Trifu
that, but taking into account that your method is stretching the resources, fopen/fread may be a better solution. I'd be curious to see the benchmarked differences - but couldn't be bothered at this minute doing the benchmarking atm. On 6/10/05, Catalin Trifu [EMAIL PROTECTED] wrote: Hi

[PHP] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5' '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi' '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets'

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread Catalin Trifu
I also use eaccelrator; However, even if I disable it completely, it still stops at 2.000.000 bytes. Catalin Catalin Trifu wrote: Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5

[PHP] Re: _construct() problem

2005-06-09 Thread Catalin Trifu
Hi, What aout __construct() -thi shoul do the trick (read the manual) Catalin Stphane Bruno wrote: Hello, I designed a player class with the following properties and constructor: class player { private $properties = array('firstname' = NULL, 'lastname' = NULL);

[PHP] Re: weird thing; downloading from a php script stops at exactly 2.000.000bytes

2005-06-09 Thread Catalin Trifu
Hi, Thanks for the answer; the amount of memory configured is 64MB. readfile does no buffering and such things; it simply spits the file on the wire. Other suggestions ? C. rush wrote: Catalin Trifu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi

[PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local/php5' '--with-apxs=/usr/local/apache/bin/apxs' '--disable-cgi' '--with-config-file-path=/etc/php5' '--with-dom' '--with-gd' '--enable-sockets' '--enable-exif'

Re: [PHP] [? BUG ?] weird thing; downloading from a php script stops at exactly 2.000.000 bytes

2005-06-09 Thread Catalin Trifu
this function output_file($filename){ $fp = fopen($filename, r); while(!feof($fp)){ echo fread($fp, 1024000); } } On 6/9/05, Catalin Trifu [EMAIL PROTECTED] wrote: Hi, I installed php5 using the configue below. I tried with apache2 as well and same things. './configure' '--prefix=/usr/local

[PHP] kannel library

2005-05-11 Thread Catalin Trifu
Hi, Has anyone knowledge about a kannel (www.kannel.org) php library to deal with sms and binary content messages such as wap push and nokia smart messages ? Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php SMPP

2005-04-13 Thread Catalin Trifu
Hi, If you are into C programming try kannel (www.kannel.org); they fully implement SMPP protocol into their gateway, so you could take a look at their code. Catalin Kyriacos Sakkas wrote: Hi all, Just wondering if anybody has had experience using SMPP with php. I have

[PHP] php_serializer

2005-02-15 Thread Catalin Trifu
Hi, Is the php5 session serializer php_binary faster than the php one ? Or it's purpose is just to obscure the saved datas ? thanks, catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Dynamic PHP links

2005-02-13 Thread Catalin Trifu
Hi, Check out this http://phpsec.org/ Cheers, Catalin Hi, I'm new to PHP and I'd appreciate your advice a lot. I'm trying to use dynamic PHP links instead of plain HTML and I'm gonna use something like this: File index.php: ? a href=index.php?content=story.htmstory/abr a

[PHP] Re: mail function and qmail

2004-09-26 Thread Catalin Trifu
Php Mysql wrote: mail function in php requires to use 'sendmail'. But I have only 'qmail' on the box. How I can send email in PHP? Thanks Hi, After u installed qmail, there is a qmail compatible sendmail created for you in /var/lib/qmail/bin (i think that's where it should be). As qmail

[PHP] Re: how to post data to java servlet

2004-09-19 Thread Catalin Trifu
Hi, $str = DATA=abcDATA=123DATA=xxx I believe you should encode the string with http://www.php.net/rawurlencode but make sure u don't encode the and = signs. $len = strlen($str); $p = POST /httpsmspp/servlet/sms HTTP/1.0\r\n; $p.= Host: 123.31.228.206\r\n; $p.= Content-type:

[PHP] Re: gettext does not translate

2004-09-11 Thread Catalin Trifu
Hi, I had really bad headaches with gettext some time ago and since then I decided to no longer use it. It's unreliable on heavy loads (mixed english + translated texts), moving the scritps to another machine means more headache, it relies on system calls which are not isolated, which

[PHP] Re: problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Catalin Trifu
Hi, I 2 use winxp pro at home, actually linux + windowoze and i have encountered the same problem with mysql extension. Some extensions, such as iconv, openssl depend on external libraries. btw! it's not a good idea to mess with windows\system32 folder. If you want you can

[PHP] Re: PHP modules

2004-09-10 Thread Catalin Trifu
http://ro.php.net/manual/en/zend.php This might be a good start. Cheers, Catalin Benjamin Bostow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have heard of php modules and to the sound of it it allows me to create php functions that I don't have to have include files to have

[PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Catalin Trifu
Hi, Is this really a bug. I think not. There is no variable $o-a or $a-b in the class OO there is only the variable $elem and $a and $b is a member of that array So ... The fact that PHP5 provides __set and __get magic functions does not mean that the actual variables

Re: [PHP] Re: [PHP5]__get, __set and isset()

2004-08-31 Thread Catalin Trifu
return false and return false effectively, NOT COOL Fred. Catalin Trifu wrote: Hi, Is this really a bug. I think not. There is no variable $o-a or $a-b in the class OO there is only the variable $elem and $a and $b is a member of that array So ... The fact

[PHP] WAP Push

2004-04-21 Thread Catalin Trifu
Hi, Has anyone worked with Simplewire SMS SDK ? If yes, is it possible to send WAP push messages with it and if yes how. If anyone has any info about some PHP + WAP push combination i would be very grateful. Thank you, Catalin P.S. I've googled for it -- PHP General

[PHP] Re: Exceptions and builtin functions in PHP5

2004-04-08 Thread Catalin Trifu
Hi, I think this question is better suited to the devel list. Catalin Tumurbaatar S. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I understand right, PHP5 has an exception handling mechanism but it is only for manual using, i.e. a programmer can use try/catch but

[PHP] Re: Adding a new entry using PHP

2004-04-08 Thread Catalin Trifu
Hi, Check http://php.weblogs.com/adodb Catalin P.S. Welcome to PHP :) Alistair Hayward [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am an ASP user, now learning PHP. When adding a record in ASP, I do this: Recordset.AddNew Field1 = whatever

[PHP] Re: php + lynx + grep

2004-04-07 Thread Catalin Trifu
Hi, I had same problem myself once. Try adding the apache user to sudoers in /etc/sudoers if not already there Cheers, Catalin Brian L. Ollom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v

[PHP] Re: session timeout?

2004-02-24 Thread Catalin Trifu
Hi, You have to make the code yourself, After session_start you should check the session for some variable you use to check if the user is logged in eg: ?php session_start(); if( !isset($_SESSION['logged_in']) || $_SESSION['logged_in'] == 0) {

[PHP] session expired - how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Hi, Here is the problem: The session gc runs and deletes the session data. This is good, but calling session_start in PHP obviously creates a new session. How can I know if the session was created after an old one was deleted because gc has invalidated it or it is a

[PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
will send the session id he got before sleeping. Catalin, Jakes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What do you need this for.? You session is only suppose to last for one browser session Catalin Trifu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED

Re: [PHP] Re: session expired - how to know if the session is new or old

2004-02-24 Thread Catalin Trifu
Thanks for the response. Indeed it seems this is the only way to achieve what I want. It would be nice if the PHP guys would implement such functionality. Catalin Stuart [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Catalin Trifu wrote: I want

Re: [PHP] Re: session expired - how to know if the session is newor old

2004-02-24 Thread Catalin Trifu
['first_session_value'] = session_id(); others pages if($_SESSION['first_session_value'] != session_id()){ echo The session has a new value; } Seba Il mar, 2004-02-24 alle 15:16, Jakes ha scritto: What do you need this for.? You session is only suppose to last for one browser session Catalin Trifu

[PHP] Re: Transfering a file

2004-02-24 Thread Catalin Trifu
Hi, You could ftp to the other server, or even http. From php you can open a connection to the other's ftp ot http services and transfer the file from one server to the other like this Regards, C. Mike Koponick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello

[PHP] GD2 Fonts

2003-11-28 Thread Catalin Trifu
Fonts, I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a windowze machine. It fails without any error message. Now, the font I use is the one from the windows Fonts/ dir. I have also installed the freetype extension. Can anyone tell me how they do it

[PHP] Re: .htaccess authentification problem

2003-11-28 Thread Catalin Trifu
Hi, When using .htaccess files the request does not reach your scripts untill Apache has done his authentication. So, I suggest you take out the .htaccess part for authentication and deal with it only from PHP; for instance with sessions: 1. Ask for user/pass on first page and

[PHP] Re: 2 (simple?) php related questions

2003-11-28 Thread Catalin Trifu
Hi, Whats the advantage of the above and whats the idea? isnt it much easier (and logical) to keep track of pages if you give them a logical name? The idea behind this approach is using MVC (MVC2) architecture which gives much more flexibility to the programmer. Usually index.php

[PHP] ImageMagick + PHP on Win32

2003-11-28 Thread Catalin Trifu
Hi, I have downloaded and installed ImageMagick (5.5.7 Q8) in c:\imagemagick added it to %PATH% I have downloaded the latest php_imagick.dll extension from kromann.info and installed it. PHP says imagick is installed properly. However, when i am trying to run any of the

[PHP] Re: Setting up PHP5 alongside PHP4 on apache

2003-11-04 Thread Catalin Trifu
Luke Van Blerk wrote: Hi everyone I'd like to set up PHP5 to parse php files with a .php5 extension on Apache 1.3.28. Anybody know how to do this? Regards Luke Hi, You can set up virtual hosts on the apache server and load the php module on a per virual host base Cheers, Catalin -- PHP

[PHP] Re: HTTP_REFERER

2003-09-12 Thread Catalin Trifu
Hi, It does support any HTTP information, and since HTTP_REFERER is part of the HTTP spec. it is supported. You can find it in the $_SERVER variable. FYI: The referer is not a reliable information. Cheers, Catalin Louie Miranda [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters)

2003-09-12 Thread Catalin Trifu
Hi, This should go to the php.devel list Cheers, Catalin Ashish Borkar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi , I am writing a php extension module on AIX 4.3.3 RS6000 machine.I have compiled php as CGI.When I test my php extension module function from

[PHP] Re: highlighting multi term search results

2003-09-07 Thread Catalin Trifu
Hi, ? function highlight($src_terms, $src_terms_int, $result) { $i = 0; while ($i $src_terms_int) { $result = preg_replace('/('.$src_terms[$i].')/si', 'b'.$src_terms[$i].'/b', $result); Here the $result is changed to 'bte/bst' on the first search. Obviously on the second

[PHP] Re: sscanf error?

2003-09-07 Thread Catalin Trifu
Hi, sscanf does what it says, that is it reads parameters, which means it expects to find a string like this 33996344 and converts it into an integer; that's why you get the result you get. This code does the job, but it's ugly: :). ?php $db='33996344,33996351,GB,GBR,UNITED

Re: [PHP] Re: sscanf error?

2003-09-07 Thread Catalin Trifu
. And sprintf has %010d in format that says that a var is a number with at least 10 digits, filled with 0's. So I think that sscanf should do the job! Nuno Lopes - Original Message - From: Catalin Trifu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 07, 2003 5:51

[PHP] Re: question about mysqli

2003-09-07 Thread Catalin Trifu
http://de.php.net/mysqli Cheers, Catalin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using PHP 5 on Windows. I have downloaded the lastest from snaps. When I try to use the mysqli functions, I get the error message: undefined function mysqli_connect() I assume this

[PHP] Re: PEAR

2003-09-05 Thread Catalin Trifu
Hi, Let's say you have PEAR installed in /usr/local/php/lib/php To use PEAR related classes, you should add /usr/local/php/lib/php to your include_path; then restart the server ;) or you can use ini_set() on top of your scripts. Cheers, Catalin Richard Baskett [EMAIL

[PHP] gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test code. As you can see I try all sorts of things. ?php echo putenv(LANG=de) . 'br'; echo putenv(LC_ALL=de) . 'br'; echo

[PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
news:[EMAIL PROTECTED] Hello, Try: putenv(LANG=de_DE) . 'br'; putenv(LC_ALL=de_DE) . 'br'; setlocale(LC_ALL, de_DE, german) . 'br'; Desi Catalin Trifu wrote: Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Thank you! putenv(LANG=de_DE); putenv(LANGUAGE=de_DE); // better to be paranoid, works for me ;-) this one did the trick ! putenv(LC_ALL=de_DE); setlocale(LC_ALL, de_DE, german); (see some user comments in php manual) i already read the all before posting here :) Again

[PHP] Re: Creating Images

2003-09-04 Thread Catalin Trifu
Hi, RTFM: http://de.php.net/manual/en/ref.image.php Cheers, Catalin Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been trying to write some image creation scripts, and although I have a version of PHP that includes image support, I keep getting

Re: [PHP] Re: PHP SESSION timeouts

2003-09-03 Thread Catalin Trifu
is passible for garbage, collection (much like java) nothing more. As for the cookie_lifetime, doesn't work either. Cheers, Catalin Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Let me corect you. Catalin Trifu wrote: Hi, No, there is not! You

[PHP] Re: Simple File Error

2003-09-01 Thread Catalin Trifu
Hi, Does the user under wich the Apache server runs (implicitly PHP) has write access to those directories ? Cheers, Catalin Seth Willits [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Warning: imagejpeg(): Unable to open

Re: [PHP] Re: Simple File Error

2003-09-01 Thread Catalin Trifu
) Cheers, Catalin FYI: To find out the user used by apache you can look in httpd.conf and look for the directive User Seth Willits [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sunday, August 31, 2003, at 04:38 PM, Catalin Trifu wrote: Does the user under wich the Apache

[PHP] Re: Unique yet Eerie

2003-09-01 Thread Catalin Trifu
Hi, I have been using PHP for some time now and I, for one, never had such problems. I'm pretty sure the problem is elsewhere. For instance, when creating the HTML form, you have to make sure everything is quoted perfectly: FORM actip=script.php method=POST INPUT

[PHP] Re: parent classes

2003-09-01 Thread Catalin Trifu
Hi, If I'm not mistaking here, you can not find the parent(s) of a class without an instance and it is quite logical. Since PHP is not a compiled language, the parent is available only at runtime. Cheers, Catalin Cristiano Duarte [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: Optionally force refresh in another frame

2003-09-01 Thread Catalin Trifu
Hi, JavaScript reload() function. If you have FRAME name=menu from the content frame do something like this: document.top.menu.reload() (can't remember exactly) Cheers, Catalin Ronald Van Raaphorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I

[PHP] Re: can someone explain...

2003-09-01 Thread Catalin Trifu
Hi, http://de.php.net/manual/en/language.references.php Cheers, Catalin Jswalter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] this difference bewteen A and B below? A)$a = new className(true, 6); B)$a = new className(true, 6); /* missing on the NEW */

[PHP] Re: PHP SESSION timeouts

2003-08-31 Thread Catalin Trifu
Hi, No, there is not! You have to manage yourself the timeout, for instance through a timestamp, which you verify on each request. PHP does not destry sessions by itself. It's up to you to manage the life of a session. snip if($_SESSION['last_seen'] ($_SESSION['last_seen']

[PHP] Re: Help with copy()/uploading a file

2003-08-31 Thread Catalin Trifu
Hi, Take a look here: http://de2.php.net/manual/en/features.safe-mode.php#ini.open-basedir Basically toy have opne_basedir in effect which means you can only access subdirs of the base dir, which in your case is, (I suppose) /home/.paco/campuscb/campuscorkboard.com/ So

[PHP] Re: Error Log

2003-08-31 Thread Catalin Trifu
Hi, Look at the php.ini file. There you can define how and where to store the errors, also the level of errors youn want to show Cheers, Catalin Seth Willits [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This may be obvious, but I even looked in a few books and

Re: [PHP] Re: Error Log

2003-08-31 Thread Catalin Trifu
AM, Catalin Trifu wrote: Look at the php.ini file. There you can define how and where to store the errors, also the level of errors youn want to show This may come as a really big shock, but, I have no php.ini file. I just searched my entire hard drive and it's not there. I'm

Re: [PHP] Re: calculating datetime

2003-08-31 Thread Catalin Trifu
Hi, You have to take into consideration the behaviour of the datetime data type in MySQL. Look at the documentation http://www.mysql.com/doc/en/DATETIME.html I think the field type you need should be TIMESTAMP(14) since you can use some MySQL functions to easily check for expired

[PHP] Re: calculating datetime

2003-08-31 Thread Catalin Trifu
Hi, offset = 1day + 1hour + 10 secs = 24 * 60 * 60 + 60 * 60 + 10 (seconds) time() + offset = the time you need or $now = explode('.', date(d.m.Y.H.i.s, time()); $now is array ( 0 = the day, 1 = the month. aso) add to the elements of the array the values you need

[PHP] Re: post values from HTML to PHP

2003-08-31 Thread Catalin Trifu
Hi, Did you use a FORM action='script.php' method='POST' in HTML ? Notice the POST method. You can also use $_REQUEST, which hold all variable posted, either by POST or GET. Cheers, Catalin Ted Yu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I found that

[PHP] Re: Hello

2003-08-30 Thread Catalin Trifu
Hi, The message is : Warning: Unable to create '/home/sites/site82/web/images/photos_elt/ail.jpg': Permission denied in /home/sites/site82/web/gestion_site/bve_navigation.php on line 73 it's obvious the user under which the apache server runs does not have write permissions on

[PHP] Frameworks

2003-08-30 Thread Catalin Trifu
Hi, Don't know if this is the place to start this, but I'd like to hear some pros and contras for some frameworks out there (MVC mostly). I mean, you have Placebo, Phrame, pehppy, aso. I'm getting a little bit dizzy by how many there are and I'd like to know your oppinions on them.

[PHP] Re: Using PHP to cache a flash movie

2003-08-30 Thread Catalin Trifu
Hello, Does anyone know a method in which I can load a large flash movie in the background and only when it is done, play it. In the mean time, the user should be able to carry on surfing normally. Any ideas? Thank you, - Sid Hi, Simply put you can not! if the user moves from one page to

[PHP] Re: trouble with array_search

2003-08-30 Thread Catalin Trifu
Hi, You don't have to convert to string; PHP does it automatically. Did you check for the $dates array, does it really contain what you think it should. So, try to make a print_r($dates) and see if you have what you expect. FYI: array_search() returns the key of the last found element

[PHP] Re: superglobals?

2003-08-30 Thread Catalin Trifu
Stevie D Peele wrote: What do we call things like this -- $_POST['name'], $_SERVER['remote add'] Are they superglobals and where can I find a list of these? Thanks The best thing to hit the internet in years - Juno SpeedBand! Surf

[PHP] Re: trouble with array_search

2003-08-30 Thread Catalin Trifu
Hi, I printed the values out, and inserted it into a varibble to check if it finds it. In this case it works! But it only wokes if I do it like this: array('03042003'); This does not work: array(03042003); When you make array(03042003) what you get is an array like this Array ( 0 = 3042003

[PHP] Re: Foring a file download *and* page reload

2003-08-29 Thread Catalin Trifu
Hi, You could use the META refresh ... HTML For instance, when the request for a part is sent to the server, the response can present the new list of blocks, without the requested one and the META refresh should point to a scripts which uploads the data block as an attachment.

[PHP] Re: reboot pc with PHP

2003-08-28 Thread Catalin Trifu
if you are really not interested in the security, then you can run the apache server as root; then you have root privileges for your PHP scripts. then you can use the system() function with no restrictions Cheers, Catalin Petre Agenbag [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: PHP won't parse under https, but will with http

2003-08-28 Thread Catalin Trifu
Hi, Is this a virtual host ? How did you define the AddType in httpd.conf ? as global directive or for each vhost ? Also check that u'r apache listens to 443. Does pure .html page display ? Cheers, Catalin Jason Jacobs [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Re: Frames: how to get the url of the top frame?

2003-08-27 Thread Catalin Trifu
Hi, Server side there si no way to get the parent's URL you could however client side with JS Cheers, Catalin Jean-Christian Imbeault [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am providing content for an other site. My content is getting shown in side a frame. My

[PHP] Re: dealing with arrays

2003-08-27 Thread Catalin Trifu
Hi, Insteand of using the same value for checked, you should use different values for the checked parameter like value=entryOneChecked value=entryTwoChecked And it's a good idea to use quoting around variable names at least. Cheers, Catalin Aris Santillan [EMAIL PROTECTED]

[PHP] Re: pear problem

2003-08-26 Thread Catalin Trifu
Hi, Did you added the /usr/php/pear/share/pear in the php.ini include_path option ? Besides the mime is part of Mail_Mime extension and SOAP needs some extensions too (don't remember exactly which) so check if all requirements are met. btw! what's the error message when it

[PHP] Re: parse error with mysql_connect

2003-08-24 Thread Catalin Trifu
Hi, The prototype for mysql_connect is: resource mysql_connect ( [string server [, string username [, string password [, bool new_link [, int client_flags ] ) As you can see you get parse error because the fourth argument should be boolean, not string. Cheers, Catalin 35:

[PHP] Re: file upload problem

2003-08-23 Thread Catalin Trifu
Hi, echo form action = '. $_SERVER[PHP_SELF].' method = 'GET' enctype = 'multipart/form-data'\n; I think that the methos should be POST not GET Second, you may want to save the file first with, move_uploaded_file (see http://de.php.net/manual/en/function.move-uploaded-file.php),

[PHP] Re: Foreach POST VARS problem

2003-08-15 Thread Catalin Trifu
hi, Are you sure the data is posted from HTML through POST ? try adding the lines below: $colors=; if(is_array($HTTP_POST_VARS) !empty($HTTP_POST_VARS )) { foreach($HTTP_POST_VARS as $ThisVar=$ThisVal){ if(ereg(color-, $ThisVar) AND $ThisVal==on OR $ThisVal==1){

[PHP] Re: Foreach POST VARS problem

2003-08-15 Thread Catalin Trifu
btw! if you use it inside a function, you need to declare it as global! Catalin Are you sure the data is posted from HTML through POST ? try adding the lines below: $colors=; if(is_array($HTTP_POST_VARS) !empty($HTTP_POST_VARS )) { foreach($HTTP_POST_VARS as

  1   2   >