[PHP] XML Parse Syntax Error

2002-12-13 Thread Tom Culpepper
I am working on an XML parser and trying to learn about them. All the scripts I get from the net in various tutorials and such all return nothing but XML error: syntax error at line 1. I checked the variables with PHPINFO() and it says that XML support is on. I also know that keeping the

[PHP] Mail() Not working right

2002-12-12 Thread Tom Culpepper
I am trying to get the mail() function to work right on my system and while I get no PHP errors the mail is never sent. Running on a linux server with PHP3 and I have confirmed that the command line mail function does work along with a few perl scripts that send mail as well. Here is the code

Re: [PHP] Mail() Not working right

2002-12-12 Thread Tom Culpepper
command, like ECHO? Maybe that way I can see what is going on -tom Jason Wong wrote: On Friday 13 December 2002 04:00, Tom Culpepper wrote: I am trying to get the mail() function to work right on my system and while I get no PHP errors the mail is never sent. Running on a linux server with PHP3

Re: [PHP] Re: Mail() Not working right

2002-12-12 Thread Tom Culpepper
I actaully already wrote one like that. The PHP is going fine, the problem I believe is PHP interfacing with my mail server. Thanks though Steve Yates wrote: Tom Culpepper [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... while I get no PHP errors

Re: [PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Tom Culpepper
You can get the IP using getenv() (http://www.php.net/manual/nl/function.getenv.php) not sure how you would get the time zone though. -tom culpepper Jacob Mangalyajyothy wrote: Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What

Re: [PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Tom Culpepper
Found this tutorial that might be helpful http://martin.f2o.org/php/localtime -tom Jacob Mangalyajyothy wrote: Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What browser and which part of the world etc. How can get the

Re: [PHP] php bugs (Chinese word display problem)-help

2002-11-26 Thread Tom Culpepper
I am not positive of the problem as I can not see your code, but if you want to display the words that end in '5C' the you can do them like so: \(escape character) like this: \(95 5C 5C) If you could sttach some code we might have a better idea. -tom culpepper [EMAIL PROTECTED] wrote: Hi

Re: [PHP] Invalid Charactors in a string.

2002-11-26 Thread Tom Culpepper
lookup ereg() and eregi() -tom culpepper Philip J. Newman wrote: Where should i start, tips wanted. I would like to check a username string for valid charactors before the name is processed. Someone point me in the right direction please --- Philip J. Newman. Head Developer. PhilipNZ.com New

Re: [PHP] Re: Php search results]

2002-11-23 Thread Tom Culpepper
; $length=$endposition-$startposition; $item=substr($item, $startposition, $length; echo $item ? Tom Culpepper www.multicasttech.com [EMAIL PROTECTED] Alex wrote: you could also use regular expressions, but php isn't perl, so good luck on that one :p. Philip Hallstrom [EMAIL PROTECTED] wrote

Re: [PHP] grabbing data from a site

2002-11-23 Thread Tom Culpepper
); $start_position=strpos($item, $start)+strlen($start); $end_position=strpos($item, $end); $length=$end_position-$start_position; $item=substr($item, $start_position, $length); } echo $item; ? Tom Culpepper Multicast Technologies Adam wrote: someone gave me the following expression which uses

Re: [PHP] put result of include into a variable

2002-11-23 Thread Tom Culpepper
Try using fopen() to open the file and then fread() to read it into the buffer and set that equal to the variable. Tom Culpepper Multicast Technologies Patrick Anderson at TUE wrote: Hi, For some (strange, I know) reason I would like to copy the content of a webpage into a database. I would

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
to change it dynamically on the same page would be javascript. -tom culpepper Stephen wrote: I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do that? Thanks, Stephen Craton http://www.melchior.us Life

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
from the archives of the list http://www.phpbuilder.com/mail/php-windows/2001042/0222.php -tom culpepper Stephen wrote: They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database