Re: [PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
On 09/25/2012 02:40 PM, shiplu wrote: Also if the final data on presentation layer is very small you can calculate it in mysql using stored procedure. okay, also something to try. thank you ! regards, marcelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
; -- end code The Segments object is a class with some functionality but, after processing the results of each row it stores two integers (or floats due to the large numbers, number of seconds from epoch * 1.0 + microseconds). I will try to implement this chunk mode of fetching the data

Re: [PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
Hi Matijn, That is good test, to install php 32bit side to side with the 64bit to test. Will see how hard is to accomplish that. regards, Marcelo On 09/25/2012 01:58 PM, Matijn Woudt wrote: On Tue, Sep 25, 2012 at 12:49 PM, Marcelo Bianchi wrote: Dear list, I developed a script that

[PHP] memory allocation

2012-09-25 Thread Marcelo Bianchi
regards, Marcelo Bianchi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Books about RESTFul Web Services & APIs

2010-06-29 Thread Juan Marcelo Rodriguez Monti
Hi guys, Do you know some good books about RESTful Web Services / API's using PHP?. Also, if you know some website where I could find papers, pdf's and articles about this topic would be useful, too. I saw the documentation about this topics is not so easy to find. Best, Juan -- PHP General

[PHP] PHP and XML

2009-11-22 Thread Juan Marcelo Rodríguez Monti
Hi people, I have some doubts about this topic that I'm gonna explain. I have a few sites in flash, and I was requested to write a PHP frontend to send news. I have this already done and it works perfect. It's a LAMP App to send and edit news, post video, images and so on. Then, I need to put

Re: [PHP] [scalability, performance, DoS] To or not to process images at runtime

2008-08-07 Thread Marcelo de Moraes Serpa
he use of a distributed filesystem, since I think I will just pre-process the images in batch to add the watermark, the use of HDD space will grow considerably as time goes by and the app grow. Is this approach transparent enough so that architectural changes to the app wouldn't be necessar

[PHP] [scalability, performance, DoS] To or not to process images at runtime

2008-08-06 Thread Marcelo de Moraes Serpa
ts of disk space. PS: I've put DoS in the subject tagline meaning Denial of Service as I think that maybe dynamic processing of images X lots of request could result in DoS. Thanks in advance, Marcelo.

Re: [PHP] Foreach question (solved)

2007-11-15 Thread Juan Marcelo Rodríguez
Thanks. I solved it using this : $x = 0; foreach ($equipos as $key => $val){ $x = $x + 1; echo ""; echo $x . ""; 2007/11/15, Michael McGlothlin <[EMAIL PROTECTED]>: > > $x = 0; > foreach ( $blah as $bleh ) { > $x = $x + 1; > print "$x: $bleh"; > } > > > HI, > > I'm working with an associative

Re: [PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
2007/11/15, Philip Thompson <[EMAIL PROTECTED]>: > > On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez < > [EMAIL PROTECTED]> > wrote: > > > Yes, I made a mistake in the first sentence. > > > > The code is : > > [...] > > > > f

Re: [PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
quot;" . ""; echo $val . ""; print "" . ""; } ?> I use the array to generate the name of the radio and so on. However I had problems with the counter. Thanks 2007/11/15, Stut <[EMAIL PROTECTED]>: > > Juan Marcelo Rodríguez wrote: >

[PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
HI, I'm working with an associative array, and generating its data a form. I use foreach to loops the contents of the array and echo to print the table and the data. Everything goes well, however I would like to add a counter to print the row's number. The question : Am I able to add a counter wit

[PHP] PHP Job in Curitiba, Brasil

2007-11-13 Thread Marcelo Wolfgang
Hi list We here at ZeroCinco Propaganda are looking for a PHP Developer to assist me in our web projects Must have a good knoledge of PHP and mySQL, and integration with ActionScript. Also you need to be confortable using Photoshop. If you are interested send your resume to [EMAIL PROTECTED]

Re: [PHP] From TXT to a mySQL db

2007-10-18 Thread Marcelo Wolfgang
test.txt' INTO TABLE test FIELDS TERMINATED BY '^' LINES STARTING BY '20'"; $Query = mysql_query($SQL); TIA Marcelo Wolfgang Jason Pruim wrote: On Oct 18, 2007, at 2:29 PM, Marcelo Wolfgang wrote: Hi all, I need some helps/tips to know if a transition from a txt

[PHP] From TXT to a mySQL db

2007-10-18 Thread Marcelo Wolfgang
ere a quick and simple way to convert the row string into a INSERT query ? Should I try some manipulation first with the TXT file ? TIA Marcelo Wolfgang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SQL Distinct-like behaviour

2007-08-23 Thread Marcelo de Moraes Serpa
How could I iterate over the files in a directory and build a list of unique filenames? Take the following filelist: file1_01.jpg file2_01.jpg file2_02.jpg file2_03.jpg file3_01.jpg file3_02.jpg file3_03.jpg file4_01.jpg file4_02.jpg file4_03.jpg I would like to build an array like this: $names =

[PHP] best technique to get the ID of the last inserted value

2007-07-20 Thread Marcelo Wolfgang
nections I may get the wrong one, so that's the why of my question. TIA Marcelo Wolfgang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Selecting a special row from the database

2007-05-08 Thread Marcelo Wolfgang
Wow, Thanks for all the ideas, I'll explore all of them. I have the content people messing with the adm so it's hard to try things I don't fully understand by now About the sql injection, the db user I set for this has only select privileges, should I be worried even with this ? Thanks aga

[PHP] Selecting a special row from the database

2007-05-04 Thread Marcelo Wolfgang
to see ( the id=XX one ) from the others rows, can someone advice me ? Here is the code I have so far, I hope it serve as a better explanation than mine! TIA Marcelo Wolfgang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File uploading and saving info on mysql

2007-05-04 Thread Marcelo Wolfgang
Richard Lynch wrote: Browsers will probably NOT populate these reliably... Mac Safari, might, for example, choose "application/x-pdf" for the PDF file. You really can't rely on 'type' to be useful in any way, shape, or form. Thanks for the tips, I've deleted this check, and changed how I ch

[PHP] File uploading and saving info on mysql

2007-05-03 Thread Marcelo Wolfgang
; this is correct; mysql_connect("localhost",$db_user,$db_pass) or die (mysql_error());; mysql_select_db ($db_table); $user_Query = mysql_query("INSERT INTO tb_downloads (var_title, var_filepath, var_filetype, dt_data, bol_active) VALUES ('$title', '$filePath',&#x

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Marcelo Wolfgang
id so if he changed the $action or the $id, it will be inside the UPDATE, doesn't changing any of the variables to a DROP TABLE just give an error ? TIA Marcelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Marcelo Wolfgang
and what if $_GET['id'] is something like "1; DROP TABLE tb_emails;" ?? SQL injection just waits to happen I think tha tit will be too much of a hacker effort just to kill a table of contact emails, and also he will have to guess ( is there other way ? ) the table name, but just to be on a s

Re: [PHP] UPDATE and redirect

2007-04-11 Thread marcelo Wolfgang
Hi, It's fixed, I think the problem where at the '==' ... I have to remember that in PHP this is like ActionScript. Also, what if $_GET['act'] is neither 'a' or 'd'? Again, what if $_GET['id'] is null? The only way to not be 'a' or 'd' or to be null is if someone mess with url, which shoul

[PHP] UPDATE and redirect

2007-04-11 Thread marcelo Wolfgang
it ( the phpmyadmin page is where I got the idea of using the '' ). Any clues ? Also, how can I make a redirect after the query has run ? TIA Marcelo Wolfgang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Send Email to Mobile

2007-02-01 Thread Marcelo Ferrufino Murillo
Hi guys, I have a script that send emails to mobiles: And this is the message in a mobile: [EMAIL PROTECTED] I don´t know why appear the address [EMAIL PROTECTED] the address must be: [EMAIL PROTECTED], could you help me please, thank you

[PHP] Send Email to Mobiles

2007-01-25 Thread Marcelo Ferrufino Murillo
Hi guys, I need to send a email to mobiles I don´t know if I have to use the function "mail( )" or if I have to use other one. Thanks your help

[PHP] smsSend

2007-01-22 Thread Marcelo Ferrufino Murillo
Hi guys, I´m beginner in php, so I need some help. I have to make a script to send SMS to moviles phones, can you give some ideas how to make it please... Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] whois Domain??

2007-01-09 Thread Marcelo Ferrufino Murillo
Hi ereryone I need to do an script into a web page to know if a domain is registered so I don´t know how to send a query to "internic" or what I have to do to get this. Thank you, I hope your help.

[PHP] Domain Search

2007-01-09 Thread Marcelo Ferrufino Murillo
I have to make a domain search so I don´t know if there is an API or something that could help me in this o if you know how I could make this. Thank you.

[PHP] DATETIME or UNIX TIMESTAMPS?

2006-10-26 Thread Marcelo de Moraes Serpa
Flash programmer and the Flash 8 API Date datatype also only understands unix timestamps. Taking this into account, I'm not really sure if it really worths it to "move" to the DATETIME datatype. What would you do? Any advice would be much appreciated! Marcelo.

Re: [PHP] Char encoding using fget or curl

2005-07-18 Thread Marcelo Volmaro
But my problem is that the information i get from the fget or curl is ALREADY converted!!! And by what i see, the function overloading don´t work on fget. On Mon, 18 Jul 2005 18:56:36 -0300, Jochem Maas <[EMAIL PROTECTED]> wrote: Marcelo Volmaro wrote: Hi!, I need to get some infor

[PHP] Char encoding using fget or curl

2005-07-18 Thread Marcelo Volmaro
in consideration that not all UTF-8 can be converted to ISO-8859-1 (chinese, for example) Thanks in advance! -- Marcelo Volmaro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session gets corrupted (or lost)

2005-04-09 Thread Marcelo Volmaro
print_r($_COOKIE) Array ( [PHPSESSID] => b44590661eba2475ea2ff8a96d53c0b6 ) print_r($_SESSION) Array ( [LANG] => en [user] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => user [ID] => 30 [nick] => Username [password] => 37bfafe651a55eef [group] => 5 ) A

[PHP] Session gets corrupted (or lost)

2005-04-09 Thread Binomic | Marcelo
print_r($_COOKIE) Array ( [PHPSESSID] => b44590661eba2475ea2ff8a96d53c0b6 ) print_r($_SESSION) Array ( [LANG] => en [user] => __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => user [ID] => 30 [nick] => Username [password] => 37bfafe651a55e

[PHP] Consulta

2005-03-04 Thread J. L. Marcelo Chaparro Bustos
Hola, bueno acabo de incribirme el la lista y queria saber si alguno de ustedes tiene un manual PHP basico que me pueda enviar o decir donde poder bajarlo, para orientarme un poco. gracias Marcelo

Re: [PHP] More php Questions about PHP 4.3.4 (cli)

2004-03-11 Thread Marcelo Pereira Fonseca da Silva
; and two variables must be "able" on script.. putenv("ORACLE_HOME=/path/to/oracle"); and ORACLE_SID putenv("ORACLE_SID", "ORACLE_SID_HERE"); hope that helps --Marcelo --- Martin McCormick <[EMAIL PROTECTED]> escreveu: > I installed th

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Marcelo Luiz de Laia
quot; $categoria $nombre "; } It works very good! My question: In while instruction have a $result and $dbi. They dont are necessary in the sql_query? Understand me? Marcelo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.4

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Marcelo Luiz de Laia
Hi Janet, I dont have know how in php. I inserted the function mysql_error() in my code and it dont return any message! Thanks Marcelo > This means that when you did: > > $result = mysql_query($sql); > > $result did not end up with a valid resource in it. Then, when you d

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-09 Thread Marcelo Luiz de Laia
Hi Thomas and All, > why are you using "sql_query" through your code? > its > mysql_query for mysql! I use phpnuke and it have a sql_layer.php. You are correct, for mysql is mysql_query. But this dont is the problem, I change it and the problem continue! Any tip

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-08 Thread Marcelo Luiz de Laia
What this message means? What it is the error? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.\none.php on line 42 This is the code. Thanks very much. Marcelo "; $content .=" Últimos 10 Concursos"; $content .= ""

[PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-08 Thread Marcelo Luiz de Laia
What this message means? What it is the error? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.\none.php on line 286 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.488 / Virus Datab

[PHP] Problems whit mysql_fetch_row

2003-06-07 Thread Marcelo Luiz de Laia
" $categoria $nombre "; } $content .= ""; ?> + This is the error message showed: Warning: Wrong parameter count for mysql_fetch_row() in f:\webdoc\html\blocks\block-Concurso.php on line 41 Thanks very much Marcelo --- Outgoing mail is certif

[PHP] ceil() function

2002-11-06 Thread Marcelo Garcia
I need a function that rounds up fractions (0.10) not an integer like ceil, or what parameters do I need to give to ceil() to round up fractions? I hope you understood me. Thanxs. MArcelo

[PHP] uploading help please again

2002-11-03 Thread marcelo
Ok I'm back This script is to upload 2 image files Whit register_globals = on it Works fine script A "p.php" Jornal O Leme      

[PHP] Re: uping to plaese help

2002-11-02 Thread marcelo
Still needing help please help me "Marcelo" <[EMAIL PROTECTED]> wrote in message news:20021102001942.34689.qmail@;pb1.pair.com... > Hi need some help please > > What is wrong with my code? > > it is supposed to upload 2 files but instead gives me this error >

[PHP] uping to plaese help

2002-11-01 Thread marcelo
uot;none") && ($origem2 <> "")){ if (copy($origem2,$dest2)){; } else { echo "directoria sem direitos de escrita "; } unlink ($origem2); } } ?> and yes i am new to php tk Marcelo Salvador www.sinesdigital.pt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP + IMAP compilation problem

2001-07-06 Thread Marcelo Gulin
' *** Error code 1 Stop in /usr/src/apache_1.3.20/src/helpers. [..] What's the problem here? Thanks in advace Marcelo Gulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Executing a PL/SQL Function

2001-04-30 Thread Marcelo Dias de Toledo
lumn 7: PLS-00221: 'PEDIDO' is not a procedure or is undefined ORA-06550: line 1, column 7: PL/SQL: Statement ignored in /www/htdocs/mariamercado/teste.phtml on line 64 (()) ---//--- Can I execute functions ? If yes, what may be wrong ? Thank you very much, -- Marcelo Dias de Toledo N-Web

[PHP] The page cannot be displayed

2001-04-24 Thread Marcelo Pereira
ous ``this page cannot be displayed''. I've read the php documentation but I dont think this is the problem.. Using unix clients the things goes very well... What did I go wrong ?? See ya, Marcelo Pereira Unicamp - Brazil

Re: [PHP] Form Field

2001-04-17 Thread Marcelo Pereira
Hi, How about enclose the parameters with quotes ??? See ya, Marcelo Pereira Programmer - Original Message - From: Mike <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 10:17 AM Subject: [PHP] Form Field > Im trying to pass a form variable t

[PHP] Reauthenticate

2001-04-17 Thread Marcelo Pereira
If the cookie isn't there, then a 'expires page' is showed Which is the better way to do it ??? Thanks in advance, Marcelo Pereira Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

[PHP] Installation - PHP{3,4}

2001-04-02 Thread Marcelo Pereira
erate them automagicly... See ya, Marcelo

[PHP] PHP3 - Instalation

2001-04-02 Thread Marcelo Pereira
bphp3modules/libpgp3.so WHERE is this file ??? I could NOT get it running, Is there anyone here that could, for the love of god, help me to install it with pgsql support on my system ??? Thanks, really thanks, in advance, Marcelo Pereira Programmer

[PHP] Instalation

2001-04-02 Thread Marcelo Pereira
Hi, Why can't I found neither LIBPHP3.SO nor MOD_PHP3.SO ??? Thanks Marcelo Pereira Programmer

[PHP] libphp3.so

2001-04-02 Thread Marcelo Pereira
t, I dunno where is this (libphp3.so) file... and I also don't know where is the mod_php3.so file. What did I do wrong ??? Thanks in advance, Marcelo Pereira Programmer

[PHP] WebCam and PHP

2001-03-23 Thread Marcelo Pereira
Hi All, How can I show images, captured by a webcamp, in my website using PHP ??? Thanks, Marcelo Pereira

[PHP] PHP Book

2001-03-12 Thread Marcelo Pereira
link was active ??? I really would like to get it. Thanks in advance, Marcelo Pereira Unicamp - Brasil

[PHP] PHP & PostgreSQL

2001-03-04 Thread Marcelo Pereira
Hi, All. I have to build a web site and I was studying postgreSQL, but, whether I am quite wrong or this database does not support Foreign Key. Does anyone use postgreSQL and know how handle Foreign Keys ??? Thanks, Marcelo Pereira Computer Programmer

Re: [PHP] Function / String Problem

2001-01-19 Thread Marcelo Gulin
Hi Karl! try... echo "...are you logged in: " . $LoggedIn() . ""; regards Marcelo Gulin "Karl J. Stubsjoen" escribió: > > Okay, what is wrong with this: > >echo "...are you logged in: $LoggedIn()"; > // outputs:...are

Re: [PHP] Integer division

2001-01-19 Thread Marcelo Gulin
Hi Todd! if $a = 3.5 then echo (int)$a // print 3 regards Marcelo Gulin Todd Cary escribió: > > What is the syntax for dividing 7 by 2 and getting 3; not 3.5? > > Todd > > -- > Todd Cary > Ariste Software > [EMAIL PROTECTED] > > -- > PHP Gene

Re: [PHP] Datasets

2001-01-19 Thread Marcelo Gulin
Hi Bruno! what database are you using? for mysql, you can use mysql_data_seek function. regards Marcelo Gulin Bruno Freire escribió: > > Hi My name is Bruno, I'm in Brazil and I'm new in PHP... > > I wanna know how can I roll in the records in a dataset.

Re: [PHP] php 4 isn't parsing php.3 files

2001-01-10 Thread Marcelo Gulin
Hi! Make sure that your httpd.conf file include AddType application/x-httpd-php .php .php3 regards hope it helps Marcelo Gulin [EMAIL PROTECTED] escribió: > > Howdy. > > I have a SuSE 7.0 Linux install with apache and mod_php4. I can > do .php files all day lon

Re: [PHP] JavaScript and PHP ... are they at all the same?

2001-01-10 Thread Marcelo Gulin
Hi! yes, you can escape like in php o c. regards Marcelo Gulin Brandon Orther escribió: > > Hello, > > I am making a PHP script that makes a JavaScript. Is there a way in java to > escape a character like in php. (in php you use &quo

Re: [PHP] Functions

2001-01-10 Thread Marcelo Gulin
Hi! ShowMessage(); regards Marcelo Gulin Augusto Cesar Castoldi escribió: > > How do I use a function? > > I did: > > function ShowMessage { > echo "Show message...\n"; > } > > How can I call the function now? > > thanks, > > Augus

Re: [PHP] to be persistent connected or not to be persistent connected

2001-01-10 Thread Marcelo Gulin
Hi! php manual... http://www.php.net/manual/features.persistent-connections.php regards Marcelo Gulin Kayra Otaner escribió: > > Hi, > > I am searching for detailed information about persistent connection. I've > looked at all the web sites just for "pers