[PHP] If Statement with more than one conclusion

2002-01-02 Thread rdkurth
How can I do an if statement with more than one conclusions Something like this I know this is not correct just an example of what I what to do If($ext==comornetororgorinfo){ Then do this } If($ext==com.ukorme.ukororg.uk){ Then do this } -- Best regards, rdkurth

Re[2]: [PHP] If Statement with more than one conclusion

2002-01-02 Thread rdkurth
an example of what MT I what to do MT If($ext==comornetororgorinfo){ MT Then do this MT } MT If($ext==com.ukorme.ukororg.uk){ MT Then do this MT } -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth
to sort on this number and then when they are printed they would be printed according to this number in groups -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth
123.345.123YES YES NO YES YES DSK If you will notice the Pnumber for some are the same and some are DSK different. I what to be able to sort on this number and then when they DSK are printed they would be printed according to this number in groups -- Best regards, rdkurth

[PHP] converting some perl script to php

2002-06-12 Thread rdkurth
); print REQ USER_INFO; $subject{'C'} $subject{'ST'} $subject{'L'} $subject{'O'} $subject{'OU'} $subject{'CN'} $subject{'Email'} USER_INFO ; close REQ; -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing

[PHP] Equivalent of this in php

2002-06-12 Thread rdkurth
regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Run two separate version of Apache and Php

2002-06-23 Thread rdkurth
will be running as a DSO with apache. So is the only way I can do this is to install a different copy of php to run with this version of Apache. Or is there a way I can get the httpd.conf file to read a different copy of php.ini -- Best regards, rdkurth mailto:[EMAIL

[PHP] Run two separate version of Apache and Php

2002-06-24 Thread rdkurth
will be running as a DSO with apache. So is the only way I can do this is to install a different copy of php to run with this version of Apache. Or is there a way I can get the httpd.conf file to read a different copy of php.ini -- Best regards, rdkurth mailto:[EMAIL

[PHP] looping through numbers

2002-06-25 Thread rdkurth
Hello , How do I do a loop that will increase a number tell it reaches another number I what it to print out every number starting at 200 and ending at 250 so it would print out 200 201 202 203 204 -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General

[PHP] extracting data from text file

2002-07-01 Thread rdkurth
= @fopen(file.txt,r); $line = explode(\n,$fp); $valueC = $line[0]; $valueST = $line[1]; @fclose($fp); -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] if statement

2002-07-08 Thread rdkurth
Is it possible to do something like this all on one line. What I need is if any one of these are true then run the script if($type==test1)or($type==test2)or($type==test3){ -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

Re[2]: [PHP] if statement

2002-07-08 Thread rdkurth
Is it possible to do something like this all on one line. MT What I need is if any one of these are true then run the script MT if($type==test1)or($type==test2)or($type==test3){ -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] PostgreSQL

2002-07-16 Thread rdkurth
) at 'localhost' and accepting connections on TCP/IP port '5583'? in /home/sites/home/web/test/test.php on line 2 -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] calling a cgi script from php

2002-07-16 Thread rdkurth
, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sorting and searching an Array

2002-07-17 Thread rdkurth
After I read this file into an array (small sample of file below) I need to sorted it by the name at the end of each line and then echo out only the ones that the name equals the name in a search variable. Also could somebody recommend a PHP book that covers a lot of info on working with

[PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
=$vacationmodevacationmsg=$vacationmsg name=$namegroup=$grouppage=$page; exec($cmd); ? -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
The siteUserEmail.php file ? $cmd=/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr aliases=$aliasesvacationmode=$vacationmodevacationmsg=$vacationmsg name=$namegroup=$grouppage=$page; exec($cmd); ? -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP

Re[4]: [PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
=$forwardaddr aliases=$aliasesvacationmode=$vacationmodevacationmsg=$vacationmsg name=$namegroup=$grouppage=$page; exec($cmd); ? -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] separated string by comas

2002-07-22 Thread rdkurth
I have a string that is separated by spaces like this $string=test test1 test2 test3; how can I make the string so it is separated by comas like this $string=test,test1,test2,test3; I know this is probably simple but I just can't figure it out -- Best regards, rdkurth

[PHP] using stdin in php

2002-05-29 Thread rdkurth
)); -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with multiple select

2002-08-08 Thread rdkurth
I need to get the data from the table and add it to the multiple select statement below. What I am trying to do is give the user a form to change his pervious selections. Now doing this if there is only one thing selected is easy. but I need a way to select multiple fields. The data in $mins

Re[2]: [PHP] Help with multiple select

2002-08-08 Thread rdkurth
/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Help with multiple select

2002-08-08 Thread rdkurth
option value=2323 /tr/table -- Best regards, Richard Kurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, rdkurthmailto

[PHP] Problem with selection

2002-08-08 Thread rdkurth
; if(($i%11)==0) echo /select/td \n\n $td; }} echo /td/tr/table/td; ? -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] storing errors from shell_exec command

2002-08-09 Thread rdkurth
`; exec($cmd); -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem with PostgreSQL

2002-08-21 Thread rdkurth
: Connection refused Is the postmaster running (with -i) at '127.0.0.1' and accepting connections on TCP/IP port '5901'? in /home/sites/site61/web/util/session_management.phps on line 69 -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General

[PHP] Help with matchng strings

2002-08-25 Thread rdkurth
test5 test5 test7 test6 test9 test7 test8 test9 -- Best regards, rdkurth mailto:[EMAIL PROTECTED

Re[2]: [PHP] Help with matchng strings

2002-08-25 Thread rdkurth
test9 test7 test8 test9 -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, rdkurthmailto:[EMAIL

[PHP] Only show certain files in directory

2002-08-25 Thread rdkurth
!= *.config but this did not work . Anybody have an suggestions if ($handle = opendir('/path/to/list/directory')) { while (false !== ($files = readdir($handle))) { if ($files != . $files != ..) { echo $files; } -- Best regards, rdkurth mailto:[EMAIL

[PHP] filter files in a directory

2002-08-26 Thread rdkurth
I am showing a directory of files and I don't what all the files to show on the screen. I was able to get the . and the .. not to show with what I have below but there are some other files in there that look like this mylist.confg. I don't want them to show in the directory list. I tried $files

[PHP] dumping mysql database with php script

2002-09-01 Thread rdkurth
=$row[$databasepassword]; exec(/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename $Databasesdir/$databasename.sql); } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] using shell_exec

2002-09-01 Thread rdkurth
--create --verbose --file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web); -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] using shell_exec

2002-09-01 Thread rdkurth
the script below from PHP it creates an empty archive. shell_exec(cd /home/sites/www.directphp.net/ | tar --create --verbose --file=/home/sites/www.directphp.net/sitebackup/backup.192002.tar web); -- Best regards, rdkurth mailto:[EMAIL PROTECTED

[PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
$databasepassword $databasename $Databasesdir/$databasename.sql); } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
$databaseusername -p$databasepassword $databasename $Databasesdir/$databasename.sql); } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
]; exec(/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename $Databasesdir/$databasename.sql); } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] using CURL to post data to a search engine

2002-09-27 Thread rdkurth
, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec ($ch); curl_close ($ch); echo $data; There does not seam to be much info or examples on using curl with php is there anyplace that you know of that has more info than the manual -- Best regards, rdkurth mailto:[EMAIL

[PHP] counting words in a string

2002-09-27 Thread rdkurth
=AVAILABLE; $count=substr_count(strtolower($string), strtolower($srch)); echo $count; it puts the count a 2 even when one of the words is UNAVAILABLE how can I make it only count AVAILABLE and not UNAVAILABLE or visa verse -- Best regards, rdkurth mailto:[EMAIL PROTECTED

Re[2]: [PHP] counting words in a string

2002-09-28 Thread rdkurth
), strtolower($srch)); echo $count; it puts the count a 2 even when one of the words is UNAVAILABLE how can I make it only count AVAILABLE and not UNAVAILABLE or visa verse -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth
. Hope this makes since to what I am asking -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- 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

Re[2]: [PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth
there data using php code. I don't what them to be able to resubmit the info a second time with different information to be able to get the data that they are buying. Hope this makes since to what I am asking -- Best regards, rdkurth mailto:[EMAIL PROTECTED

[PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth
; } } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- 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[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth
was just wondering does it have to be so long winded BC I think you want parse_url() BC http://www.php.net/manual/en/function.parse-url.php -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] using eval

2001-12-13 Thread rdkurth
= \$str\;); fwrite($fp3,$str \n); -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- 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

Re[2]: [PHP] using eval

2001-12-13 Thread rdkurth
, rdkurthmailto:[EMAIL PROTECTED] -- 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] httpd will not start error with libphp4.so

2002-12-10 Thread rdkurth
.10) /etc/rc.d/init.d/httpd start: httpd could not be started -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to strip extra characters off of a string

2003-01-08 Thread rdkurth
way of getting this info or for striping all the other stuff away. -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generating a range of IP address

2003-01-22 Thread rdkurth
; while ($ip = $ip2){ $query = insert into ipaddress(ip)values ('$ip'); $Result = safe_query($query); $ip++; } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
--with-png-dir=/usr/local/bin -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
-general JW -- JW /* JW It may be that your whole purpose in life is simply to serve as a JW warning to others. JW */ -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
(_ \ KW _) ) KW | / / _ ) / _ | / ___) / _ ) KW | | ( (/ / ( ( | |( (___ ( (/ / KW |_| \) \_||_| \) \) KW Kevin Waterson KW Port Macquarie, Australia -- Best regards, rdkurth

Re[4]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
can you have any pudding if you don't eat your meat? JW -- Pink Floyd JW */ -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[6]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
-- JW Search the list archives before you post JW http://marc.theaimsgroup.com/?l=php-general JW -- JW /* JW The chain which can be yanked is not the eternal chain. JW -- G. Fitch JW */ -- Best regards, rdkurthmailto:[EMAIL

[PHP] compiling php 4.3.0 with gd

2003-02-06 Thread rdkurth
I am trying to compile PHP 4.3.0 with GD and also with-png,with-jpg and with-freetype. I have installed both png,jpg and freetype2 from a tar file. I was finally able to get it through the configure stage with no errors but now when I run make I am getting the following error. I have know idea

[PHP] Testing if any of the items are false

2003-02-10 Thread rdkurth
)or($test2==$ftest2)or($test3==$ftest3) or($test4==$ftest4){ echo all of the items are true; }else{ echo one of the items is false; } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] adding to an array

2003-02-23 Thread rdkurth
,tester3b site4:x:506:tester4 site5:x:507:tester5,tester5a,tester5b site6:x:508:tester6 site7:x:509:tester7,tester7a,tester7b -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] error in mysql SQL syntax

2003-12-12 Thread rdkurth
Could somebody tell me way I am getting an error in this SQL syntax. $query = insert into majordomoaliases (domain,address)values(\$domname\,\$virtdomain-majordomo:\|$wrapper majordomo -C $domaincf\); error=You have an error in your SQL syntax. Check the manual that corresponds to your