[PHP] php mail()

2002-10-14 Thread Rodrigo Peres
Hi list, I trying to send mail using PHP's mail() function without success. My email is rejected because it goes with apache@localhost. I've tried everything put a diferent from in header etc. Does anyone have a clue My system is a RedHAT 7, PHP4.2.3, sendmail thank's n advance -- --

[PHP] PHP e GD big files

2002-09-05 Thread Rodrigo Peres
Hi, I'm using GD to put a dinamic text in some buttons. The problem is that the original image that I use has 8k and after i put a black text it jumps to 20K. What I'm doing wrong? there's a way to compact this? Thank's -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] sort dinamic generated table

2002-09-05 Thread Rodrigo Peres
Hi, I have a resume system that put a rank in it resume at runtime. example: If you do a serach for each match that it finds it atribute 1 point, now I need to sort the generated list based in this rank, how can i do this, since this rank is dinamic and isn't in database?? Thank's -- PHP

Re: [PHP] search in serialized string

2002-08-26 Thread Rodrigo Peres
well, I my opinion is not the way to work, but like I said the work was done by other guy, and now I have the problem to solve. So i back to old question :-) How can I search with some precision in a serialized string? on 8/24/02 12:13 PM, DL Neil at [EMAIL PROTECTED] wrote: Rodrigo, Then

Re: [PHP] search in serialized string

2002-08-26 Thread Rodrigo Peres
I mean double ouch!!! :-) well.. 1 no, it's a select for the language (select name=language[]) and another to skill level 1b no separator it's stored as array. The array generated by language[] and skill[] are stored into another array, serialized and put into DB 2 yes. could be up to 5 2b

[PHP] search in serialized string

2002-08-22 Thread Rodrigo Peres
Hi list, I have a form to post resumes. In one parte the user have a option to choose up to 5 languages and his knowledge in it. example : english: basic advanced My problem is that was stored serialized in the BD and now I need to do a search by language and knowledge. How can I do this.

[PHP] search in serialized string

2002-08-21 Thread Rodrigo Peres
Hi list, I have a form to post resumes. In one parte the user have a option to choose up to 5 languages and his knowledge in it. example : english: basic advanced My problem is that was stored serialized in the BD and now I need to do a search by language and knowledge. How can I do this.

[PHP] protect code or something like..

2002-06-14 Thread Rodrigo Peres
Hi list, I have a project that was develop in a partnership, now this partners doesn't so partners anymore :-/ My question is there's a way to create a protection that I can trace if the software was installed in other servers?? I mean not hide the code, but put an important include of the

Re: [PHP] php to generate statiscs

2002-06-03 Thread Rodrigo Peres
in the Male column, the number of females in the database in the second. You could probably do the majority of your statistic queries this way. ---John Holmes... -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 2:02 PM To: [EMAIL

[PHP] php to generate statiscs

2002-06-02 Thread Rodrigo Peres
grouped by sex and alone too, present the respectives percentages etc... How do I begin??? Can someone help?? thank's in advance Rodrigo Peres -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] file() and macintosh line break

2002-05-01 Thread Rodrigo Peres
Hi list, I'm in a problem that is driving me crazy!!! I want open a file and puts each line into an array, but this files was created in macintosh!! so the file() can't recognize the end line and only outputs 1 element in array!! How can I solve it. I tried to fread() the file and

[PHP] build array dinamicaly

2002-04-29 Thread Rodrigo Peres
will have something like $cliente['nome'][0] or $clientes['adress'][1] and so on. Someone can help??? Thank's in advace Rodrigo Peres -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using html select as array

2002-04-25 Thread Rodrigo Peres
Hi list, In my system I have multiples choices of language that user selects using drop down menus. So I've named this dropdows language[] and grab it as php array, and with looo i insert it into mysql as registers. But now i need to put a text field that the user can type any language that

[PHP] read text file into mysql

2002-04-24 Thread Rodrigo Peres
Hi list, I need to read a txt file and insert it lineas a record in mysql. My list in the format aa|b | cc | fff|hhdhdhdh|jsjjsjs in other words my separator is | and the lines have a return at the end of each one. I'm new to PHP, so can anyone help me with and Idea??? thank's

[PHP] include() and require() problem

2002-04-19 Thread Rodrigo Peres
List, I'm trying to include some .inc files in my project, but I got errors all time saying that this includes couldn't be found. I'm a newbie, so I can't understand what's happend, since it worked pretty good in my local machine and not in the ISP. I tried to speak to ISP many times but they

[PHP] multidimensional array

2002-04-19 Thread Rodrigo Peres
Hi list, In order to avoid many left joins I took an aproach that I didn't know if it's good, but I couldn't figure out another way. If my cliente has 10 phone numbers I buld an array, serialize it and store in database, so I didn't have to create another table. The problem is now I need to

[PHP] multidimensional array

2002-04-19 Thread Rodrigo Peres
Hi list, In order to avoid many left joins I took an aproach that I didn't know if it's good, but I couldn't figure out another way. If my cliente has 10 phone numbers I buld an array, serialize it and store in database, so I didn't have to create another table. The problem is now I need to

[PHP] setcookie with array (was serialize)

2002-03-28 Thread Rodrigo Peres
Hi list, Regarding my last post about serialize, I've tried many things but couldn't make it function. I'm trying to store the data from a form in order to allow my user to stop the process of filling the form and retrieve later what was inserted before. Among many other thing I tried this

[PHP] serialize()

2002-03-27 Thread Rodrigo Peres
Hi list, I've already look at the php manual but couldn't figure out a way to use serialize to solve my problem. I have a form, with many fields like (name, age, adress, state), that I put a save button. This button allows my user to save the fields already filled in order to finish the form

[PHP] php array

2002-03-12 Thread Rodrigo Peres
Hi list, I think this could be an idiot question but I couldn't find an answer. I have 4 input text in a html, and I'd like to store them as a list, so I've named it Name[]. OK, php understand it as an array, but how can I make an validation code with javascript to know if the user didn't typed

[PHP] PHP regular expression

2002-03-12 Thread Rodrigo Peres
Hi list, I have a huge text file with many text on it. I'd like to know if someone can help in construct a regular expression to delete everything that not have this pattern Email: [EMAIL PROTECTED]. The part Email: is fixed and the email adress changes. I've tried many time to make the replace

[PHP] dynamic query string

2002-03-11 Thread Rodrigo Peres
Hi list, I have my data distribuited across 3 tables, that I'm using left join to retrieve data from them. Now I need to make a search system in this tables and I like, if possible, that someone can send me tips in how is the best way to concatenate the query string in order to do the search.

[PHP] bug with session or normal procedure???

2002-03-08 Thread Rodrigo Peres
Hi list, I'm developing an CMS, and I started a session with PHP 4.1.1 With I use this in javascript alert(document.forms[0].elements[0].name) it returns PHPSESSID and if i use alert(document.forms[0].elements[0].value), it returns a number. It's a bug??? I'm using IE5 in macos 9.2.2 Thank's

[PHP] PHP vs object.record set

2002-03-07 Thread Rodrigo Peres
Hi list, I'm new to PHP, but I found it greate. But I have a question. Recently I've saw a friend using asp and the object record set seems perfect, I mean the function to count records, navigate in throw record (back and forth) everything automatic is amazing. There's a way, to implement such

[PHP] bug???

2002-03-07 Thread Rodrigo Peres
Hi list, I'm developing an CMS, and I started a session with PHP 4.1.1 With I use this in javascript alert(document.forms[0].elements[0].name) it returns PHPSESSID and if i use alert(document.forms[0].elements[0].value), it returns a number. It's a bug??? I'm using IE5 in macos 9.2.2 Thank's

[PHP] php mysql_num_rows problem

2002-02-27 Thread Rodrigo Peres
sesql.inc on line 22 line 22 is $this-numrows = mysql_num_rows($this-resultado); what's the problem?? Thank's n advance Rodrigo Peres -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] My Session don't expire

2002-02-16 Thread Rodrigo Peres
can I correct this??? Thank's in advance Rodrigo Peres -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Change gif image with php

2002-02-16 Thread Rodrigo Peres
Hi list I have some buttons made in photoshop in .gif format. This buttons have round corner, feather, multiple colors etc. There's a way to open it with php and write some text to it. I know that is possible to create images, but what about to change them??? I need to do this because the text

[PHP] browser reload button

2002-02-14 Thread Rodrigo Peres
a insert into a table, and I put it in the beggining of my page with require(); Thank's in advance Rodrigo Peres -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session problem

2002-02-14 Thread Rodrigo Peres
Hi list, I've made this script in order to solve the problem with reload button that I've posted. My idea is to register in a session the id, them check if it exists, if so don't insert again. But even if I quit the browser the session persists. Why?? ps: this is an include in the main page

[PHP] create xml document with PHP

2002-01-29 Thread Rodrigo Peres
Hi list, I'm new to the xml world, and I need to create a page with data retrieved from my database using PHP. The process is the same of create an html page?? I mean I can use echo to output the xml tags and values?? Since this page will be dinamically generated what kind of headers I need to

[PHP] get image from blob in mysql

2002-01-26 Thread Rodrigo Peres
List, I'm using the following code to retrieve image from Mysql. My problem is how can I output another image if the given ID doesn't have an image on it??? I had already inserted a blank gif in the database in order to use it, but I've tried to check if ($resultado['Imagem_data'] == ) or null

[PHP] get image from DB problem

2002-01-25 Thread Rodrigo Peres
List, I'm using the following code to retrieve image from Mysql. My problem is how can I output another image if the given ID doesn't have an image on it??? I had already inserted a blank gif in the database in order to use it, but I've tried to check if ($resultado['Imagem_data'] == ) or null

[PHP] PHP 4.1.1 and Mac OS X 10.1.2

2002-01-15 Thread Rodrigo Peres
Hi all, Does anyone have success in compiling PHP 4.1.1 in MacOS X 10.1.2? If yes, could please give some directions? After many tries I surrended miself and start using the pre compiled package that came with X. Thanks Rodrigo -- -- PHP General Mailing List (http://www.php.net/) To

[PHP] echo diferent coluns from left join

2002-01-10 Thread Rodrigo Peres
, fanclubes.Nome as site_2,fanclubes.Site as url_2 FROM celebridades LEFT JOIN links_relacionados ON links_relacionados.CelebID=celebridades.CelebID LEFT JOIN fanclubes ON fanclubes.CelebID=celebridades.CelebID WHERE celebridades.CelebID='$celebID' Thank's in advance Rodrigo Peres -- PHP General

Re: [PHP] echo diferent coluns from left join

2002-01-10 Thread Rodrigo Peres
PROTECTED] wrote: If I understand you correctly, use Javascript to open a second browser window for url_2. Miles Thompson At 02:49 PM 1/10/2002 -0200, Rodrigo Peres wrote: Dear List, I have this sql command that grabs a result of 3 tables. What i want is if there's a way to do

Re: [PHP] PHP and Images stored in mysql

2002-01-10 Thread Rodrigo Peres
. If that's 0, use a default image placed in the database beforehand. If that also returns a null mysql_num_rows() then echo an image (probably the same default) from a known location in the filesystem. HTH Bogdan Rodrigo Peres wrote: Hi list, I have some images stored in a blob

[PHP] PHP and Images stored in mysql

2002-01-09 Thread Rodrigo Peres
Hi list, I have some images stored in a blob in mysql. I've made this code to output them to html, but the problem is if there's no image at a given id the page tooks a long time to load and display the broken image, there's a way to avoid this, I mean, there's a way to print a message or

[PHP] Create a table with more than 1 column

2001-12-27 Thread Rodrigo Peres
and happy new year to all!!! Rodrigo Peres (Brazil) -- 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] 3 column by n rows table

2001-12-26 Thread Rodrigo Peres
categorias.Nome_Categoria,celebridades.CelebID,celebridades.Nome_Artistico, lcase(left(Nome_Artistico,1)) as letra FROM categorias LEFT JOIN celebridades ON categorias.CategoriaID=celebridades.Categoria WHERE CategoriaID='1' ORDER BY Nome_Artistico Thank's in advance Rodrigo Peres -- -- PHP General Mailing

[PHP] multicolumn table

2001-12-17 Thread Rodrigo Peres
; } Thank's in advance Rodrigo Peres -- -- 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]

Re: [PHP] multicolumn table

2001-12-17 Thread Rodrigo Peres
a table with 3 colmns and many rows as necessary to have all names. Thank's Rodrigo Peres on 12/17/01 12:10 PM, Andrey Hristov at [EMAIL PROTECTED] wrote: try to start the sql at a prompt and post the error which mysql returns Regards, Andrey Hristov - Original Message - From

Re: [PHP] Re: ordered alpabeticaly list

2001-12-14 Thread Rodrigo Peres
Hi list, I'm using this script to generate an alphabetical list of names, and a .gif as separator. Thank's Gerard onorato for the code. But I'd like a help to make something that I always have problem. At this moment my script outputs a html table with 1 column, how can I make it outputs a 3

[PHP] lotus notes and PHP

2001-12-13 Thread Rodrigo Peres
Hi list, After an extensive search, without results, in web, I'd like to know with there's a way to integrate PHP4 and Lotus Notes. I'll develop a new module to a intranet that is based in lotus notes. Thank's in advance Rodrigo Peres -- PHP General Mailing List (http://www.php.net

[PHP] ordered alpabeticaly list

2001-12-13 Thread Rodrigo Peres
. Thank's in advance Rodrigo Peres -- -- 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]

Re: [PHP] Re: ordered alpabeticaly list

2001-12-13 Thread Rodrigo Peres
} // put code to display the name here $lastletter = $curletter; } Mike Rodrigo Peres wrote: Hi list, I have a mysql tables, with names on it. I'd like to select this names ordered by name and output it to a html in alphabetical order, but separates by letter, ex: a, names with a, b

[PHP] php mysql blob fields

2001-11-21 Thread Rodrigo Peres
Hi, I have a table in mysql that stores some images my fields in this table are: ImageID,Image_Name, Image_Size, Image_Type, Image_Data (this is the blob). The problem is, when i insert a new image everything goes fine, but I can't update it!!! Why? to insert I'm using this if($image != none) {

[PHP] Safe mode and dir permissions

2001-11-16 Thread Rodrigo Peres
Hi List, My ISP runs the PHP in Safe Mode, this is causing me a lot of trouble. In safe mode how can I change the permission of a dir to 0777?, my problem is that I've built a Content management system, and for every new people inserted the system creates a Directorie and will upload things

Re: [PHP] Re: silly question

2001-11-15 Thread Rodrigo Peres
a better idea of what you are trying to achieve! George Rodrigo Peres wrote: Hi list, I have PHP code to insert the result of a form into mysql. When I nedd to made an update, I pass an id in the url and use it to make the update query. The problem is after I click in the update

[PHP] Mysql and Images

2001-11-13 Thread Rodrigo Peres
src= in the html. Thank's in advance Rodrigo Peres -- -- 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] silly question

2001-11-13 Thread Rodrigo Peres
need to type in the url again with the parameter?? why?? There's a way to avoid this and get a new blank form page after the update? ps: I've stored the id in a input type hidden, so I could click the button and still have the id Thank's in advance Rodrigo Peres -- -- PHP General Mailing List

[PHP] silly question cont...

2001-11-13 Thread Rodrigo Peres
Sorry all, just to add a little info, the inpu hidden i've mentioned in the other message is made if exist the id in the url!! it isn't all the time there :-) thks again Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Re: Problem with non us caracters and strtr

2001-11-02 Thread Rodrigo Peres
to PHP??? Thank's again Rodrigo Peres on 11/1/01 9:17 PM, Yasuo Ohgaki at [EMAIL PROTECTED] wrote: Rodrigo Peres wrote: Hi list, I'm in a big trouble. I'm brazilian, so I've made a script to clean up the special caracters from our language in order to not mess up my publisher

Re: [PHP] Re: Problem with non us caracters and strtr

2001-11-02 Thread Rodrigo Peres
Zürichbergstrasse 17 8032 Zürich -- T. +41 1 253 19 55 F. +41 1 253 19 56 W3 www.interaktion.ch -- - Original Message - From: Rodrigo Peres [EMAIL PROTECTED] To: Yasuo Ohgaki [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

Re: [PHP] Re: Problem with non us caracters and strtr

2001-11-02 Thread Rodrigo Peres
, ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ, AACOYaacooyy); return $ret; } hope it helps, py - Original Message - From: Stefan Rusterholz [EMAIL PROTECTED] To: Rodrigo Peres [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 02, 2001 9:10 AM Subject

[PHP] Problem with non us caracters and strtr

2001-11-01 Thread Rodrigo Peres
will receive a string form a text field in a form. my html charset is iso-8859-1 Thank's in advance Rodrigo Peres -- 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