[PHP] Problem installing php

2006-07-11 Thread Ruben Rubio Rey
I have a problem when installing php. I have tried with different versions of apache (2.0.55 and 2.0.58) and php (5.1.4 and 5.1.2). The problem still there (Same error in different versions)!!! Note that I had installed apache 2.0.58 and php 5.1.4 before on this server. Problems began when

[Fwd: [PHP] Problem installing php] - SOLVED

2006-07-11 Thread Ruben Rubio Rey
Solved installing csv version. Is it officially stable? Do anyone know when is it going to be stable? Original Message Subject:[PHP] Problem installing php Date: Tue, 11 Jul 2006 12:04:18 +0200 From: Ruben Rubio Rey [EMAIL PROTECTED] To: php-general

Re: [PHP] progress monitor in php

2006-06-16 Thread Ruben Rubio Rey
weetat wrote: Hi all , I was using PEAR:HTTP_Upload to upload file in php 4.3.2. Is ok , however i need to display some sort of progress monitor to the user because some file is very large and took some times to upload. I need to inform the users to uploading is in progress. I have

Re: [PHP] GetText string not found

2006-06-14 Thread Ruben Rubio Rey
to extend _ function, that provides me the posibility to report strings not found. The bad think is that I ll have to make thousands of modifications in order to implement this feature in the webpage :( Thanks to everybody! Richard Lynch wrote: On Tue, June 13, 2006 6:30 am, Ruben Rubio Rey

[PHP] GetText string not found

2006-06-13 Thread Ruben Rubio Rey
Hi, I am using gettext to get a web page in several languages. When gettext does not found an string, it shows the string. Is it possible to detect when a string is not found, in order to advis me ? Thanks in advance, Ruben Rubio Rey -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Pear DB and memcached

2006-06-07 Thread Ruben Rubio Rey
Ben Ramsey wrote: On 6/6/06 9:55 AM, Ruben Rubio Rey wrote: Im having a trouble using memcached with pear db. When im using memcache to store and retrieve an string, all works fine. When Im using memcache to store a pear db resulset, it does not work!! This retrieves data but pear::db does

[PHP] Pear DB and memcached

2006-06-06 Thread Ruben Rubio Rey
Hi, Im having a trouble using memcached with pear db. When im using memcache to store and retrieve an string, all works fine. When Im using memcache to store a pear db resulset, it does not work!! This retrieves data but pear::db does not understand it. I really dont know Any ideas? Thanks in

Re: [PHP] Re: Pear DB and memcached

2006-06-06 Thread Ruben Rubio Rey
Ben Ramsey wrote: On 6/6/06 9:55 AM, Ruben Rubio Rey wrote: Im having a trouble using memcached with pear db. When im using memcache to store and retrieve an string, all works fine. When Im using memcache to store a pear db resulset, it does not work!! This retrieves data but pear::db does

Re: [PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Ruben Rubio Rey
The best and simplest for me is prototype.js Is much more than ajax ! 100% cross browser! ang GPL! http://www.sergiopereira.com/articles/prototype.js.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP HOSTNAME environment variable poltergeist

2006-03-15 Thread Ruben Rubio Rey
Im having again a problem with hostname environment varible. Hostname is set OK and it is now shown in phpinfo(). But if I run php -i hostname is set! Any ideas? Php version: 5.1.2 Configure './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gettext' '--with-pgsql'

[PHP] Charsets ?

2006-03-08 Thread Ruben Rubio Rey
Hi, I hace a functions that does a think, it cleans strange characters: $trash_string='whateverwithstrangecharacterslikeñ'; $clean_string=strtr(trim($trash_string), 'ç/-àáãèéìíòóõùúüñ()äëïö,, __c__aaaeeiiooouuun__aeio_); Its strange, but if I work with php's charset iso8859-15 it works fine,

Re: [PHP] Coordenates latitude / longitude on PHP - SOLVED

2006-03-03 Thread Ruben Rubio Rey
It wasn't so hard! I ll post the solution, so everyone ll be able to do it function getlocationcoords($lat, $lon, $width, $height) { $lat=$lat*20; $lon=$lon*28; $x = (($lon + 180) * ($width / 360)); $y = ((($lat * -1) + 90) * ($height / 180)); return

[PHP] Coordenates latitude / longitude on PHP

2006-03-02 Thread Ruben Rubio Rey
Hi, I have to create some maps from a latitude / longitude points. Do anyone know how to convert it to plane coordenates? (In order to show it on a bitmat) I have already found a function but does not work very well ... Any help will be apreciated. Thanks in advance -- PHP General Mailing

Re: [PHP] Coordenates latitude / longitude on PHP

2006-03-02 Thread Ruben Rubio Rey
Anas Mughal wrote: Lat and long are all you need for rendering on an X,Y coordinate. Keep in mind to adjust the ratio of lat and long depending on where you are on the globe. Good luck! -- Anas Mughal any other details? I have tried to convert lat and long to x and y coordinate but it

Re: [PHP] Floored!

2006-02-23 Thread Ruben Rubio Rey
|What PHP versioan are u using? (Maybe a known bug?) What options did u use to compile? |Temporarily solutions ...| - round($Bar, 2) Or - intval($Bar*100)/100 | Ben Miller wrote: If anyone has an answer for this, I would be greatly appreciative. I was trying to compare two values, the

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Ruben Rubio Rey
Kim Christensen wrote: On 2/21/06, Ruben Rubio Rey [EMAIL PROTECTED] wrote: How to set Hostname environment variable? (It contains the servers name, not the servers domain) Its a Linux server. Try the hostname command. Depending on your linux distro, you might want to edit /etc

[PHP] HOSTNAME Environment variable

2006-02-20 Thread Ruben Rubio Rey
Hi, How to set Hostname environment variable? (It contains the servers name, not the servers domain) Its a Linux server. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Ruben Rubio Rey
Did u tried memcached? http://www.danga.com/memcached/ Albert wrote: I wrote: I am running SuSE 9.2 (Kernel 2.6.8-24-default) with Apache 2.0.50 and PHP 4.3.8 (as an Apache module) on a Celeron 900 with 304MB RAM. This machine is used for testing. We have made some changes to our PHP

Re: [PHP] PHP Frameworks

2005-12-28 Thread Ruben Rubio Rey
Script Head wrote: Nobody has mentioned Fusebox (www.fusebox.org). I have been using it to develop PHP applications for about 2 years. It has proven to be extremely flexible when a large number of developers collaborate on one project. jedit :) Love macros and plugins!

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-23 Thread Ruben Rubio Rey
Mike Rondeau wrote: I am still a newbie, but I am suprised that it effects browers at all, since it returns pure HTML to the browser, right? Something so simple as echoing a hello world shouldn't cause trouble in so popular a browser as Netscape I would think... * Netscape is not

[PHP] High load Forum?

2005-12-22 Thread Ruben Rubio Rey
Hi, Im looking for a good forum thats supports high load. (Now between 300-2.000 active sessions, much more in next 2 years) I have heard about vBulletin and PhpBB. At the moment I think vBulletin is the best choice, because I know some very big places that uses it. What do u think about

Re: [PHP] PHP is OK in IE but not in Netscape

2005-12-22 Thread Ruben Rubio Rey
Nanu Kalmanovitz wrote: Hi The http://www.kalmanovitz.co.il/hello.php file appears OK in M$-IE but not in Netscape 7.0. How can I fix it? TIA Nanu Forget Netscape 7.0. Its not supported anymore. You should be worried with mozilla / firefox. Anyway, im almost sure that is not a php

Re: [PHP] Write a FIFO file

2005-12-20 Thread Ruben Rubio Rey
Ok, I tried it before, it didn't work: For example, ?php $filename = fifo ; $dataFile = fopen( $filename, a ) ; if ( $dataFile ) { fwrite($dataFile,TEST IN FIFO FILE\n); fclose($dataFile); } else { die( fopen failed for $filename ) ; } ? fifo file created as root: mkfifo fifo

[PHP] Write a FIFO file

2005-12-19 Thread Ruben Rubio Rey
Hi, I have a problem. I have created a fifo file (under linux) and I m not able to append some line from a php script. There is not output error, php just is executing for ever ... How can I write a fifo file? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-19 Thread Ruben Rubio Rey
:( Its not working $bytes = @readfile($filename); if ($bytes === false){ //error-handling code } There is not any output ? Richard Lynch wrote: On Fri, October 14, 2005 6:29 am, Ruben Rubio Rey wrote: if(file_exists($filename)){ $modified_date=filemtime($filename

[PHP] Re: OPTIMIZING - The fastest way to open and show a file

2005-10-17 Thread Ruben Rubio Rey
In a almost idle desktop machine always takes arround 0.04. The measured is on a server when it was with low traffic (average load arround 0.7) ac wrote: where did these time measured? on a heavily loaded server or on your own almost idle desktop machine ? On 10/14/05, Ruben Rubio Rey

Re: [PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-17 Thread Ruben Rubio Rey
Richard Lynch wrote: On Fri, October 14, 2005 6:29 am, Ruben Rubio Rey wrote: if(file_exists($filename)){ $modified_date=filemtime($filename); if(time()($modified_date+1 * 24 * 60 * 60)){ $handle = fopen($filename, r); $contents = fread($handle

[PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-14 Thread Ruben Rubio Rey
Hi, I m creating a cache system, and i have a problem: PHP takes a lot of time opening the file. (Im using 2.6.9-1.667smp and XFS) * For files less or equal 6 Kb, takes arround 0.02-0.03 miliseconds - its ok * For files arround 35 Kb takes arround 0.2-0.4 miliseconds - too much. What can I

[PHP] Re: Detect file size BEFORE upload it

2005-10-06 Thread Ruben Rubio Rey
Rubio Rey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detect file size BEFORE upload it

2005-10-06 Thread Ruben Rubio Rey
:) U have it. Its perferct. Im gonna check it, but seems to be the solution. Raditha Dissanayake wrote: While you are at SF checkout Mega Upload. Ruben Rubio Rey wrote: Anyway, if I would use any applet I ll use one of sourceforge.net. Its free and I can modify source, so I can