Re: [PHP] Regular expressions

2006-10-14 Thread Penthexquadium
On Sat, 14 Oct 2006 23:19:13 +0200, Morten Twellmann [EMAIL PROTECTED] wrote: I'm trying to understand these regular expressions, but I can't make them work... All I want to do, is to find the first occurrence of some text inside the HTML tags h1 and /h1. Example string: pOctober 14,

Re: [PHP] unexpected T_STRING parse error

2006-10-10 Thread Penthexquadium
On Tue, 10 Oct 2006 09:18:18 +0200, Ilaria De Marinis [EMAIL PROTECTED] wrote: Hi list, I got a php error in my apache log: PHP Parse error: parse error, unexpected T_STRING in /var/www/html/dummy/typo3conf/ext/direct_mail/locallang_tca.xml on line 1 This is line 1 of locallang_tca.xml

Re: [PHP] Passing JAVASCRIPT variable to PHP Script...

2006-10-10 Thread Penthexquadium
On Tue, 10 Oct 2006 03:09:42 -0700 (PDT), Captain [EMAIL PROTECTED] wrote: Hi geeks, i am uploading a file to server. Uploading part is working fine. i am struggle with minor part. actually before uploading file, i am checking for existance of a file. If it is not exists, directly

Re: [PHP] ECHO $variable

2006-10-08 Thread Penthexquadium
On Mon, 9 Oct 2006 00:23:00 -0700, benifactor [EMAIL PROTECTED] wrote: you should try this... $saved_message_title = '1 Peter 5:7 Cast all your cares on Him for He cares about you'; - Original Message - From: Ron Piggott (PHP) [EMAIL PROTECTED] To: PHP General

Re: [PHP] Unicode Problem

2006-10-05 Thread Penthexquadium
On Thu, 05 Oct 2006 18:14:59 -0400, [EMAIL PROTECTED] wrote: I have a webpage that allows users to post news stories for their department. The site uses AJAX to send the data to the webserver. The problem I'm having is when the user uses some unicode characters like bullets or MS Word

Re: [PHP] PHP jump to other page

2006-10-04 Thread Penthexquadium
On Thu, 5 Oct 2006 01:17:41 +0700, Groundhog [EMAIL PROTECTED] wrote: how can I jump to another page after IF..ELSE statement, for example: IF (statement == TRUE) { stay on this page, index.php } ELSE { jump to index2.php} -- Come and Visit My Blog http://ubuntu-ku.blogspot.com

Re: [PHP] quick question about preg_replace

2006-10-04 Thread Penthexquadium
On Wed, 4 Oct 2006 23:19:58 +0200, Martin Bach Nielsen [EMAIL PROTECTED] wrote: Hi all. I have written a guestbook (I know, there's a ton out there), which until recently did not get any spam, so now I'm trying to remove the spam-ad by using preg_replace: $melding =

Re: [PHP] Help on objects

2006-10-04 Thread Penthexquadium
On Thu, 05 Oct 2006 02:47:59 +0100, Deckard [EMAIL PROTECTED] wrote: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class:

Re: [PHP] array_sum($result)=100

2006-09-24 Thread Penthexquadium
On Sun, 24 Sep 2006 19:06:11 +0300, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: Hi everyone I have array of numbers and I want to get out of it a list of numbers that if I sum them it will be 100, here is my list (for example ) : $list =