Re: [PHP] i need help

2004-05-17 Thread Curt Zirzow
* Thus wrote Student ([EMAIL PROTECTED]): > Hi i was hoping if someone can help; > > I want to trim the following text > > [i:abcdef] > > but the inside text is different at time eg abcdef, bcdefg, etc etc > how can i trim [i:(some text here)] so that i can replace them with nothing. > > eg the

RE: [PHP] Re: weird problem with index page

2004-05-17 Thread Ulrik Wildy
Hi, I use an apache rewrite rule on the server to force a trailing slash to be appended if the requested file is a really a directory: Inside virtual host & : [snip] RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -d #is requested file a directory? RewriteRule ^(.+[^/])$ $

Re: [PHP] i need help

2004-05-17 Thread Travis Low
You need to learn how to use regular expressions. The manual page is here: http://www.php.net/manual/en/ref.pcre.php I could easily write the regular expression for you, but then you wouldn't learn anything. cheers, Travis Student wrote: Hi i was hoping if someone can help; I want to trim the fo

[PHP] i need help

2004-05-17 Thread Student
Hi i was hoping if someone can help; I want to trim the following text [i:abcdef] but the inside text is different at time eg abcdef, bcdefg, etc etc how can i trim [i:(some text here)] so that i can replace them with nothing. eg these are to be trimmed. [i:abcdef] [i:bcdefg] [i:xyzab] [i:prif

Re: [PHP] Reposting elseif carry

2004-05-17 Thread David Robley
[EMAIL PROTECTED] (Daniel Clark) wrote in news:[EMAIL PROTECTED]: > echo " URL=./Conference_Calls.php?Date_and_Time=\".$_POST[\"$Date_and_Time\"]\ > ">"; > >>>I have tried both of these statements and neither one works Trying >>>to get the Date_and_Time to be carried in the URL. Any Help ple

[PHP] xml ignore whitespace

2004-05-17 Thread Gabino Travassos
Howdy Here's where I'm at. $DomDocument = domxml_open_file("myFile.xml"); $RootDomNode = $DomDocument->document_element(); print_r($RootDomNode); // just to test $listItems = $RootDomNode -> child_nodes(); print_r("there are ". count($listItems)." child nodes"); // 35! print_r($listItems); Wh

Re: [PHP] Saving state script

2004-05-17 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > > My local setup is Win98SE, Apache 2.0.49 and PHP 4.3.6. The remote server > is Linux 2.4.20, Apache 1.3.29, and PHP 4.3.3. > > Matt's version of the script is at: > > http://www.samspublishing.com/articles/article.asp?p=29587&seqNum=7 > >

[PHP] Saving state script

2004-05-17 Thread jah013
I've been going through Julie Meloni's book on PHP/MySQL/Apache as well as Matt Zandstra's book on PHP. They both have a small script on using hidden form fields to save state. I had no trouble with the rest of the book (so far) but this one gave me much trouble. It's one of those "guess the numb

Re: [PHP] $_post and array question

2004-05-17 Thread Curt Zirzow
* Thus wrote Amon ([EMAIL PROTECTED]): > > functionX($_POST["test_arr"]) > $arr_test = $_POST["test_arr"]; > > Knowing that $_POST["test_arr"]) does not exist.. this code will not result > in a error. > > Is this a bug,error,etc? Should this not also produce a novice error? Taks a look at the d

[PHP] Pls help me with integration whoiscart.net (PHP) script with my hosting template!

2004-05-17 Thread J.H.J. Saat
Hi all, I really need some help I want use the "whoiscart.net" billing management system on my webpage and already got a site design. I am trying to integrate the script with my Design for almost 2 weeks now. I just start with PHP and MySQL like two months ago! And its not working! I hope some

Re: [PHP] $_post and array question

2004-05-17 Thread Matt Matijevich
[snip] functionX($_POST["test_arr"]) $arr_test = $_POST["test_arr"]; Knowing that $_POST["test_arr"]) does not exist.. this code will not result in a error. Is this a bug,error,etc? Should this not also produce a novice error? [snip] I think when you are doing this functionX($_POST["test_arr"])

Re: [PHP] $_post and array question

2004-05-17 Thread Daniel Clark
I've done a couple things. One is to use isset() and check first. The other is to add a hidden input field, that way something is always sent. > Best readers, > > //PHP version: 4.3.6 > > I have question concerning the following issue: > > I have a HTML input element of the type check. > >

[PHP] $_post and array question

2004-05-17 Thread Amon
Best readers, //PHP version: 4.3.6 I have question concerning the following issue: I have a HTML input element of the type check. let assum this checkbox is unchecked. The checkbox is part of a form. Now we gonna submit this form (post) and gonna catch the POST variable test_arr like this: $

[PHP] $_post and array question

2004-05-17 Thread Amon
Best readers, //PHP version: 4.3.6 I have question concerning the following issue: I have a HTML input element of the type check. let assum this checkbox is unchecked. The checkbox is part of a form. Now we gonna submit this form (post) and gonna catch the POST variable test_arr like this: $

[PHP] $_post and array question

2004-05-17 Thread Amon
Best readers, //PHP version: 4.3.6 I have question concerning the following issue: I have a HTML input element of the type check. let assum this checkbox is unchecked. The checkbox is part of a form. Now we gonna submit this form (post) and gonna catch the POST variable test_arr like this: $

[PHP] using returned references directly?

2004-05-17 Thread Jeff Schmidt
Hello, Say I have object A, with method getObjectB(), which returns a reference to object2. Is there a way to do something like $A->getObjectB()->methodFromObjectB(); ?? When I try that, I get a parse error? Is this simply not possible with PHP, or is the syntax just a little different? I mea

[PHP] Verisign pfpro

2004-05-17 Thread Boulytchev, Vasiliy
Ladies and Gents, I am trying to install Pay Flow Pro on my server, and am running into weird problems. I follow instructions from Verisign, and still cant get the thing to function. I get the error below: Fatal error: Call to undefined function: pfpro_init() Php comp

[PHP] Re: session

2004-05-17 Thread Kim Steinhaug
You could do add an extra value/parameter to your session, "lastactive". Each time you have some activity from the current session you update your database with a timestamp. This way you could easily delete everything from your database which is older that say 30 minutes. Having a session database

Re: [PHP] rewind 5 lines

2004-05-17 Thread John W. Holmes
From: "Martin Hjort Eriksen" <[EMAIL PROTECTED]> > I have a file where the pointer is set at EOF. > > Is it possible, in a very easy way, to rewind it 5 lines? Thereby being > able to return the last 5 lines of the file with "fgets". You could use rewind() if you know how many bytes you need to

[PHP] Re: sessions pls help

2004-05-17 Thread Kim Steinhaug
Well, What you need to do is start all pages with the session_start(); variable, like this : This would make you ready for handling logins and such further down the page. What you also need to do is two things, 1. Create a login which registers a new session. 2. Create a validation function whi

RE: [PHP] rewind 5 lines

2004-05-17 Thread Jay Blanchard
[snip] I have a file where the pointer is set at EOF. Is it possible, in a very easy way, to rewind it 5 lines? Thereby being able to return the last 5 lines of the file with "fgets". [/snip] Count the lines, subtract five, cycle through the file again and only get the last five. -- PHP Genera

[PHP] rewind 5 lines

2004-05-17 Thread Martin Hjort Eriksen
I have a file where the pointer is set at EOF. Is it possible, in a very easy way, to rewind it 5 lines? Thereby being able to return the last 5 lines of the file with "fgets". regards Martin Eriksen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] PHP not parsing joined tables well

2004-05-17 Thread Marek Kilimajer
Steve Douville wrote: I'm got a query that is joining a few tables. select par.*, pla.*, pro.*, reg.* from parent par, players pla, registrations reg, programs pro where blah blah blah Now, a result set is the same but I'm having trouble parsing it because I have column names that are i

[PHP] sessions pls help

2004-05-17 Thread robi
Hello, I need some info about sessions in php, to clarify my knowledge and usage. So lets imagine that I am building a web site where I can log in and log off, it is without db. How do I use sessions, am I right use the start_session() and its a value to PHPSID as cookie, so if make link to anoth

Re: [PHP] PHP not parsing joined tables well

2004-05-17 Thread John W. Holmes
From: "Steve Douville" <[EMAIL PROTECTED]> > I'm got a query that is joining a few tables. > > select > par.*, pla.*, pro.*, reg.* > from parent par, players pla, registrations reg, programs pro > where blah blah blah > > Now, a result set is the same but I'm having trouble parsing it

Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread John W. Holmes
From: "Radek Zajkowski" <[EMAIL PROTECTED]> > $module_dir = ($module == "") > ? "" > : $module."/"; > > what does the semicolon and the question mark do? Ternary Operator: http://us2.php.net/operators.comparison ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] what do '?' and ':' do?

2004-05-17 Thread Chris W. Parker
Radek Zajkowski on Monday, May 17, 2004 12:38 PM said: > $module_dir = ($module == "") > ? "" > : $module."/"; > > what does the semicolon and the question mark do? i think it's called a ternary operator. usually i write it all on one line like so:

Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread Travis Low
They confuse non-C programmers, mostly. See this: http://www.php.net/operators.comparison cheers, Travis Radek Zajkowski wrote: Here's a code snippet // call gui object method $method = $cmd."Object"; $class_name = $objDefinition->getClassName($obj_type); $module = $objDefinition->getModule($obj_ty

Re: [PHP] what do '?' and ':' do?

2004-05-17 Thread Matt Matijevich
[snip] what does the semicolon and the question mark do? [/snip] http://www.php.net/operators.comparison look at the ternary operator -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what do '?' and ':' do?

2004-05-17 Thread Radek Zajkowski
Here's a code snippet // call gui object method $method = $cmd."Object"; $class_name = $objDefinition->getClassName($obj_type); $module = $objDefinition->getModule($obj_type); $module_dir = ($module == "") ? "" : $module."/"; what does the semicolon and the question mark do? TIA

[PHP] PHP not parsing joined tables well

2004-05-17 Thread Steve Douville
I'm got a query that is joining a few tables. select par.*, pla.*, pro.*, reg.* from parent par, players pla, registrations reg, programs pro where blah blah blah Now, a result set is the same but I'm having trouble parsing it because I have column names that are identical in two of t

[PHP] Nested_Sets addSQL question

2004-05-17 Thread T.H. Boonstra
Hi all, I'm having a problem with the Nested Sets package, I want to use the addSQL function to retreive extra information from a different table, now my query works, however new columns aren't returned :( I hope anyone knows how to retreive them? Here is my (test) SQL statement: $addSQL = arra

Re: [PHP] Re: passing values of checkboxes in PHP

2004-05-17 Thread Marek Kilimajer
John Taylor-Johnston wrote: Or give all name="protid[]" and you will get array $_POST['protid'] that you can loop over. Do it like this or you will have the same problem. name="protid[0]" name="protid[1]" name="protid[2]" Not true. -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Forums

2004-05-17 Thread Ryan A
Hey Guys, Thank you all for your suggestions. I had a bad experience with phpBB ver 1 some years ago...someone defaced my forum index page...and it runs pretty slow..so thats out (they got in through the upload image function, its been fixed). Invision Power Board & vBulletin. cant affo

Re: [PHP] Re: passing values of checkboxes in PHP

2004-05-17 Thread John Taylor-Johnston
> > > > > > > > > > > > Or give all name="protid[]" and you will get array $_POST['protid'] that > you can loop over. Do it like this or you will have the same problem. name="protid[0]" name="protid[1]" name="protid[2]" -- John -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Re: change database from mysql to mssql

2004-05-17 Thread Justin Patrin
Raditha Dissanayake wrote: Torsten Roehr wrote: Hi all I have been using mysql as the database for my PHP application. Now my manager ordered me to use Microsoft SQL Server as the database. I have been using the mysql interface to access the database, so I have to change my code. Which database int

[PHP] Re: Forums

2004-05-17 Thread Justin Patrin
John Taylor-Johnston wrote: Costs money too!? How's that? Just go to the download page and download it. phpBB has always been free. "Steve Magruder - Webcommons.Org" wrote: phpBB (www.phpbb.com) is the best (IMHO), as it has an extensive modder community and it's slap-easy to install and get run

RE: [PHP] WDDX

2004-05-17 Thread Dave Avent
Thats brilliant, but unfortunatly i get the following error: Shared object "libc.so.6" not found Any ideas? Cheers Dave -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: 17 May 2004 4:54 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] WDDX * Thus wrote Dave Avent ([EMA

Re: [PHP] WDDX

2004-05-17 Thread Curt Zirzow
* Thus wrote Dave Avent ([EMAIL PROTECTED]): > Hi All, > > Does anyone know if there is a WDDX Class for PHP. I have googled and > checked phpclasses.org. I am unable to recompile my webserver so I cannot > include wddx support that way, so if anyone can help me with any suggestions > I would be v

Re: [PHP] Re: WDDX

2004-05-17 Thread Craig Donnelly
You bet it is.. :-) Sorry Dave. - Original Message - From: "Sam Masiello" <[EMAIL PROTECTED]> To: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 17, 2004 4:41 PM Subject: RE: [PHP] Re: WDDX > > Hehe must be too early on a Monday for Craig :) > > --Sam > > > > -

RE: [PHP] Re: WDDX

2004-05-17 Thread Sam Masiello
Hehe must be too early on a Monday for Craig :) --Sam -Original Message- From: Craig [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: WDDX take a look on http://www.phpclasses.org Good luck, Craig "Dave Avent" <[EMAIL PROTECTED]

RE: [PHP] Re: WDDX

2004-05-17 Thread Dave Avent
Craig, If you read my message you will see that I have allready checked phpclasses.org Thanks Dave -Original Message- From: Craig [mailto:[EMAIL PROTECTED] Sent: 17 May 2004 4:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: WDDX take a look on http://www.phpclasses.org Good luck, Crai

[PHP] Re: WDDX

2004-05-17 Thread Craig
take a look on http://www.phpclasses.org Good luck, Craig "Dave Avent" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > Does anyone know if there is a WDDX Class for PHP. I have googled and > checked phpclasses.org. I am unable to recompile my webserver so I cannot > incl

[PHP] WDDX

2004-05-17 Thread Dave Avent
Hi All, Does anyone know if there is a WDDX Class for PHP. I have googled and checked phpclasses.org. I am unable to recompile my webserver so I cannot include wddx support that way, so if anyone can help me with any suggestions I would be very gratefull Cheers Dave -- PHP General Mailing List

Re: [PHP] Re: change database from mysql to mssql

2004-05-17 Thread raditha dissanayake
Torsten Roehr wrote: Hi all I have been using mysql as the database for my PHP application. Now my manager ordered me to use Microsoft SQL Server as the database. I have been using the mysql interface to access the database, so I have to change my code. Which database interface should I use, ODBC,

Re: [PHP] [newbie] Can PHP be a security risk if it's just connecting to MySQL?

2004-05-17 Thread John W. Holmes
From: "Dave G" <[EMAIL PROTECTED]> > I almost exclusively use PHP > to draw from data held within a MySQL database on the same server. I do > not allow users to upload files. I suppose the most that I allow users > to do is input some information like email addresses, user names and > passwords.

[PHP] [newbie] Can PHP be a security risk if it's just connecting to MySQL?

2004-05-17 Thread Dave G
PHP Listers, I was just reading about "Hardened PHP", and the debate between those who thinks it's a good idea and those who think it will allow for lazy coding. I'm firmly of the belief that any new security feature is a good thing. If for no other reason that it will help me stay secure w

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-17 Thread Matt Matijevich
[snip] I would very much appreciate if someone could point me to eg. code examples helping me to accomplish this task. [/snip] Google and http://www.php.net/ are going to be your best friends, this mailingin list is also very helpful but search those 2 places before you ask. I am assuming that y

php-general Digest 17 May 2004 13:07:39 -0000 Issue 2768

2004-05-17 Thread php-general-digest-help
php-general Digest 17 May 2004 13:07:39 - Issue 2768 Topics (messages 186369 through 186403): Re: while inside a while or join or... 186369 by: Rachel Rodriguez 186370 by: Curt Zirzow 186371 by: John W. Holmes Forums 186372 by: Ryan A 186373 by: John

[PHP] Re: change database from mysql to mssql

2004-05-17 Thread Aidan Lister
Yep, MDB2 is the best bet "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "David" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi all > > > > I have been using mysql as the database for my PHP application. > > Now my manager ordered me to use Micr

[PHP] thought I should share this

2004-05-17 Thread Brent Clark
http://developers.slashdot.org/article.pl?sid=04/05/16/1631212&mode=thread&tid=126&tid=169&tid=172 Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] keeping the last zero

2004-05-17 Thread php chucker
I prefer: round($value,2); -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 5:10 AM To: Mario Cc: [EMAIL PROTECTED] Subject: Re: [PHP] keeping the last zero Mario wrote: > Hi all > > I have a list of products with prices > e.g. > > $100 > $

Re: [PHP] class_xslt

2004-05-17 Thread Clifford W. Hansen
eoghan, > $xml = "\r\n"; > $xml .= "\t\r\n"; > $xml .= "\t\t\r\n"; > $xml .= "\t\t\tEditor\r\n"; > $xml .= "\t\t\tJohn\r\n"; > $xml .= "\t\t\t\r\n"; > $xml .= "\t\t\t\t\r\n"; > $xml .= "\t\t\t\t\tFoo\r\n"; > $xml .= "\t\t\t\t\t\t2\r\n"; > $xml .= "\t\t\t\t\r\n"; > $xml .= "\t\t\t\t\r\n"; > $xml .=

[PHP] class_xslt

2004-05-17 Thread eoghan
hello, im kinda new to php and new to xslt. im looking at these classes http://phpxmlclasses.sourceforge.net/ and wanted to use the class_xslt. The example shown, works fine for me, but i want to use it getting the xml as a string. in order that i can generate the xml from my db... i have used th

[PHP] [Newbie] Simple stats from mysql table data

2004-05-17 Thread Vans Hallden
Please try to endure my ignorance. I'm new to PHP4 and out to perform just a single isolated task with it. :) I would like to form some simple statistics from specific column data in a mysql database and display those stats on a webpage. I have collected a few demographics from certain responde

Re: [PHP] keeping the last zero

2004-05-17 Thread Marek Kilimajer
Mario wrote: Hi all I have a list of products with prices e.g. $100 $100.50 (those are examples, they can be anything, not all prices have decimal) when I add those I get $200.5. Is there a way to get $200.50. Thanks Mario You want to format the number? Use number_format() PS: Don't hijack threads.

Re: [PHP] keeping the last zero

2004-05-17 Thread Oliver Hankeln
Hi! I have a list of products with prices e.g. $100 $100.50 (those are examples, they can be anything, not all prices have decimal) when I add those I get $200.5. Is there a way to get $200.50. if it is okay for you to add $100+$100 and get $200.00 you could use printf("$%1.2f",$price1+$price2); or

[PHP] keeping the last zero

2004-05-17 Thread Mario
Hi all I have a list of products with prices e.g. $100 $100.50 (those are examples, they can be anything, not all prices have decimal) when I add those I get $200.5. Is there a way to get $200.50. Thanks Mario - Marios Adamantopoulos Web D

[PHP] Re: change database from mysql to mssql

2004-05-17 Thread Torsten Roehr
"David" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all > > I have been using mysql as the database for my PHP application. > Now my manager ordered me to use Microsoft SQL Server as the database. > I have been using the mysql interface to access the database, so I have > to ch

Re: [PHP] Re: passing values of checkboxes in PHP

2004-05-17 Thread Marek Kilimajer
John Taylor-Johnston wrote: Gowthaman, Just at a glance, it seems that you Should Only receive One value. 'Name=protid' tells me that you have only created one value. Because they ALL have the SAME name="protid" there will be only one value. This would be more evident if they were type=radiobox. W

[PHP] Re: Forums

2004-05-17 Thread John Taylor-Johnston
I personally prefer: http://www.chevelles.com/cgi-bin/forum/ultimatebb.cgi?ubb=forum;f=39;hardset=;start_point=;DaysPrune= http://www.ubbcentral.com/ubbclassic/ But it does cost $ I believe. However, this particular site has a mutilated forum. Part of it was originally Perl. Their switch over wa

[PHP] Re: Forums

2004-05-17 Thread John Taylor-Johnston
Costs money too!? "Steve Magruder - Webcommons.Org" wrote: > phpBB (www.phpbb.com) is the best (IMHO), as it has an extensive modder > community and it's slap-easy to install and get running. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: create if table not exists

2004-05-17 Thread John Taylor-Johnston
Should have read: CREATE TABLE IF NOT EXISTS `mhinse_counter` > mysql_error said: > > "IF NOT EXISTS `mhinse_counter` CREATE TABLE `mhinse_counter` ( " > Thanks to all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: passing values of checkboxes in PHP- solved

2004-05-17 Thread John Taylor-Johnston
>sorry for the trouble .. Nah! :) Gowthaman Ramasamy wrote: > I myself solved the problem. > sorry for the trouble .. > > sincerely, > gowtham > On Mon, 2004-05-17 at 11:51, gowthaman ramasamy wrote: > > hi list, > > I have a problem with getting the values of check boxes ... > > > > In the form