[PHP] Update site through email

2006-06-29 Thread Rodrigo de Oliveira Costa
Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help since I couldn't find anything on this topic. Thanks, doRodrigo -- PHP

[PHP] Paging Help

2006-06-20 Thread Rodrigo de Oliveira Costa
I have the following problem, I need to make a paging system to show results from search on a Mysql database. I found a class that should do the job but couldn't figure it out how to use it. Does anybody has an Idea of hos to do this? I thank in advance for any help you guys can provide me.

[PHP] HTTP ERRORS Boolean

2006-06-07 Thread Rodrigo de Oliveira Costa
Guys is there a way that I can call the func file(www.url.com) and get a result true if there is a page and false if the page doesnt exists (error 404)? the thing is I'm trying to retrieve a page but I cant be sure that it exists so I need my script to try to access it and if it cant access it

[PHP] Cant work HTML echo loop

2006-06-07 Thread Rodrigo de Oliveira Costa
Hi guys Im here again, now I got this problem with a loop. The script is at the end of the message so you guys can review it. Now to the problem: I have a script that go to a site and try to access an url like www.domain.com/story/variable/ it should do the following: Try to open the page if it

[PHP] Cant work HTML echo loop

2006-06-07 Thread Rodrigo de Oliveira Costa
i guys Im here again, now I got this problem with a loop. The script is at the end of the message so you guys can review it. Now to the problem: I have a script that go to a site and try to access an url like www.domain.com/story/variable/ it should do the following: Try to open the page if it

[PHP] Problem with form

2006-06-06 Thread Rodrigo de Oliveira Costa
Guys I'm getting the following problem: I have a form that asks for one variable that goes into the input box, this box is named chapter, and the box is in a form that is submited to another php, and this php should receive this variable and I should be abble to access it thru $chapter, but when

[PHP] String Manipulation

2006-06-05 Thread Rodrigo de Oliveira Costa
Hi guys I have the following intention and would really like to know if tis possible and if its possible how should it be done. I have a string that is something like this: INPUT TYPE=BUTTON Value='nbsp;nbsp;#171;nbsp;nbsp;' onClick=self.location='/s/979216/22/'SELECT title='chapter

[PHP] Retrieving Content

2006-06-02 Thread Rodrigo de Oliveira Costa
Hi guys, I'm trying to retrieve a certain variable from a site. Here it goes: The site has a SELECT box that is dynamicaly updated, I need to put a script running that will retrieve the specified SELECT with its contents, that are labels and values. Is there a way to retrieve the page and then

[PHP] Re: Retrieving Content

2006-06-02 Thread Rodrigo de Oliveira Costa
Actualy I went a slightly diffent way, I tried to use the file() like on the script below and I get the content of the whole page but when I try to get a single line from the array it all goes sideways. Here goes the script with the correct urls, remembering that I'm using it on the local server

[PHP] Retrieve output from HTML or PHP file

2006-06-02 Thread Rodrigo de Oliveira Costa
Can I do the below to an URL, like retrieving the output of a site and store it on a variable? Thanks, Rodrigo Hi Peter, Ah, I understand now. If the file echo'ed it's output you could do: ob_start(); include('file.php'); $output = ob_get_contents(); ob_end_clean(); or: $output =

[PHP] Re: Retrieving Content

2006-06-02 Thread Rodrigo de Oliveira Costa
I just discovered the problem I have to retrieve the output of the site and not the url since its dynamic. Ca I do it like retrieve the output of this url: www.tryout.com/1/2/ And of course store it on a variable? How to do it? I founr the func below but couldnt understand how to make it work

[PHP] String to an Array

2002-12-06 Thread Rodrigo de Oliveira Costa
Hi guys, I got a string that I need to be transformed into na array of characters, something like: $str =im the one trying to do this; //this is the string I'd like to get an array that I can access something like $array[0] and get the value i . And this foward. Anyone have any clues

[PHP] Encrypting a message

2002-12-04 Thread Rodrigo de Oliveira
Hi guys I really need to find a way diferent from the functions that come with php like mcrypt, cause my server do not use these. I would really apreciate some sort of exemple, since I'm not being able to crack the thing. Since I'm trying not to simply change the characters from one to another,

[PHP] Problems with a simple While-If condition

2002-11-26 Thread Rodrigo de Oliveira
This is the fact: I'm building a homepage that can access a mysql database, and display the records within a certain condition. Following this it is verified if the sql result was empty then it should write a certain frase, if not it should write the records. I've got the worst part ok, the

[PHP] RE: Problems with a simple While-If condition With the statement

2002-11-26 Thread Rodrigo de Oliveira
? include db_dados.php; ? ? $sql = SELECT * FROM tb_tao WHERE area='$area'and status=1; $res = @mysql_query($sql,$id) ? ? echo table width='100%' height='100%' border='0' align='center' ? ? $rodrigo=mysql_fetch_array($res); if($rodrigo=false){ echo trtddiv align='center'Nenhum profissional

RES: [PHP] Passing Variables from one php doc to another

2002-11-21 Thread Rodrigo de Oliveira Costa
I tried to use this way but it doesnt work I think its because it is a variable that I have to pass, something like: http://www.example.com/doo.php?dah=somethingdee=$somethingelse HELP Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Phpmyadmin HELP!!!

2002-11-03 Thread Rodrigo de Oliveira Costa
Hi people, After I installed phpmyadmin on my computer that runs an Apache I've worked almost everything out. The only problem I seem to have is that when I create a Database I can't put more than 8 columns and if I do it simply doesnt accept it. Another problem that it looks like I'm having

[PHP] Add content thru e-mail

2002-11-03 Thread Rodrigo de Oliveira Costa
Hi people, i'd like to know if there is a way to add content to a database thru sending an e-mail, and if there is how it would be done. Thanks, Rodrigo

[PHP] Mail() function

2002-10-28 Thread Rodrigo de Oliveira
Hi guys I'm having the following problem: I have a mail() function that works by itself, coming from a html form, but when i tryied to put it inside a more complex script it doesn't work. The script is at the end of the message and it is suposed to receive data from a html form and use it to