[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 yo

[PHP] adding to an array

2003-02-23 Thread rdkurth
5:tester3,tester3a,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:

[PHP] Testing if any of the items are false

2003-02-10 Thread rdkurth
$ftest2= "NO"; $ftest3= "YES"; $ftest4= "YES"; if ($test1==$ftest1)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

[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 what

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

2003-02-06 Thread rdkurth
p; Intranet Applications Development * JW> -- 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 eterna

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

2003-02-06 Thread rdkurth
s before you post JW> http://marc.theaimsgroup.com/?l=php-general JW> -- JW> /* JW> How can you have any pudding if you don't eat your meat? JW> -- Pink Floyd JW> */ -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -

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

2003-02-06 Thread rdkurth
KW> (_ \ KW> _) ) KW> | / / _ ) / _ | / ___) / _ ) KW> | | ( (/ / ( ( | |( (___ ( (/ / KW> |_| \) \_||_| \) \) KW> Kevin Waterson KW> Port Macqua

Re[2]: [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> It may be that your whole purpose in life is simply to serve as a JW> warning to others. JW

[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

[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/

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

2003-01-08 Thread rdkurth
e number. Is there a better 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] httpd will not start error with libphp4.so

2002-12-10 Thread rdkurth
nt.so.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

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

2002-09-27 Thread rdkurth
ing ="UNAVAILABLE More Info AVAILABLE More Info"; >> or >> $string ="AVAILABLE More Info UNAVAILABLE More Info"; >> when I use >> $srch="AVAILABLE"; >> $count=substr_count(strtolower($string), strtolower($srch)); >> echo $count; >&g

[PHP] counting words in a string

2002-09-27 Thread rdkurth
LE More Info"; when I use $srch="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, rdkurt

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

2002-09-27 Thread rdkurth
arch"; curl_setopt ($ch, CURLOPT_POSTFIELDS, $args); curl_setopt ($ch, 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

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

2002-09-02 Thread rdkurth
> This is my script >> >> while($row = mysql_fetch_array($result)){ >> $databasename=$row["databasename"]; >> $databaseusername=$row["$databaseusername"]; >> $databasepassword=$row["$databasepassword"]; >> >> exec("/usr/bin

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

2002-09-02 Thread rdkurth
ipt >> >> while($row = mysql_fetch_array($result)){ >> $databasename=$row["databasename"]; >> $databaseusername=$row["$databaseusername"]; >> $databasepassword=$row["$databasepassword"]; >> >> exec("/usr/bin/mysqldump -u $databaseusername

[PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
/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://www.php.net/unsub.php

Re[2]: [PHP] using shell_exec

2002-09-01 Thread rdkurth
directors. But using 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"); >> > >&g

[PHP] using shell_exec

2002-09-01 Thread rdkurth
| tar --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

[PHP] dumping mysql database with php script

2002-09-01 Thread rdkurth
eusername=$row["$databaseusername"]; $databasepassword=$row["$databasepassword"]; exec("/usr/bin/mysqldump -u $databaseusername -p$databasepassword $databasename > $Databasesdir/$databasename.sql"); } -- Best regards, rdkurth mailto:[EMAIL PROTECTED]

[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] Only show certain files in directory

2002-08-25 Thread rdkurth
t. I tried && $files != "*.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 != "..&

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

2002-08-25 Thread rdkurth
2 >> test3 test8 test8 test3 >> test4 test5 >> test5 test7 >> test6

[PHP] Help with matchng strings

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

[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 PROTECTE

[PHP] storing errors from shell_exec command

2002-08-09 Thread rdkurth
v/errlog`"; 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 selection

2002-08-08 Thread rdkurth
o "$i"; }else{ echo "$i"; if(($i%11)==0) echo " \n\n $td"; }} echo ""; ?> -- Best regards, rdkurth mailto:[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
like this 8,13,15,20. I tried this little MM> script >> >> below but it does not work because of the , and I would also have MM> to >> MM> do >> >> it for ever option value. There must be a shorter way of doing MM> this. >> >> >> >> >> >> $mins="2,3,5,6,7"; >> >> >> >> >> >> >> >> 0 >> >> >> >> 1 >> >> >> >> 1 >> >> >> >> >> >> 2 >> >> >> >> 2 >> >> >> >> >> >> 3 >> >> >> >> 3 >> >> >> >> 4 >> >> 5 >> >> 6 >> >> 7 >> >> 8 >> >> 9 >> >> 10 >> >> 11 >> >> >> >> 12 >> >> 13 >> >> 14 >> >> 15 >> >> 16 >> >> 17 >> >> 18 >> >> 19 >> >> 20 >> >> 21 >> >> 22 >> >> 23 >> >> >> >> >> >> -- >> >> 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:[EMAIL PROTECTED] -- Best regards, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-08-08 Thread rdkurth
ot;2,3,5,6,7"; >> >> >> >> 0 >> >> 1 >> >> 1 >> >> >> 2 >> >> 2 >> >> >> 3 >> >> 3 >> >> 4 >> 5 >> 6 >> 7 >> 8 >> 9 >> 10 >&

[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 would

[PHP] separated string by comas

2002-07-21 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 -

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

2002-07-21 Thread rdkurth
;> >> doing something wrong. I hope this makes sense I am not quit sure how >> >> to ask what I want to know >> >> If I was submitting directly to the cgi script the form action would >> >> look like this >> >> >> >> >&

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

2002-07-21 Thread rdkurth
t;> >> > >> >> >> >> >> >> >> The siteUserEmail.php file >> > $cmd="/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr >> &aliases=$aliases&vacationmode=$vacationmode&vacationmsg=$vacationmsg >

[PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
est regards, 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 te

[PHP] calling a cgi script from php

2002-07-16 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] PostgreSQL

2002-07-16 Thread rdkurth
'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

Re[2]: [PHP] if statement

2002-07-08 Thread rdkurth
T> Sent: Tuesday, July 09, 2002 2:11 PM MT> To: php-general MT> Subject: [PHP] if statement MT> 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&quo

[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] 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 L

[PHP] looping through numbers

2002-06-24 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] Run two separate version of Apache and Php

2002-06-24 Thread rdkurth
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-23 Thread rdkurth
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] Equivalent of this in php

2002-06-12 Thread rdkurth
What would be the equivalent of this in php. Mostly the open (REQ and the print REQ <&2") || return MSG_error("ssl_cant_gen_request"); print REQ

[PHP] converting some perl script to php

2002-06-12 Thread rdkurth
How can I do this in PHP. Could somebody just point me in the write direction open (REQ, "|$Openssl_cmd req -new -config /usr/lib/openssl.cnf " . "-key $cert_dir/key -days $days -out $cert_dir/request 1>&2") || return MSG_error("ssl_cant_gen_re

[PHP] using stdin in php

2002-05-29 Thread rdkurth
eturn(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] Pulling data into an array and sorting

2002-03-30 Thread rdkurth
ank 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, rdkurthmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Pulling data into an array and sorting

2002-03-30 Thread rdkurth
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] If Statement with more than one conclusion

2002-01-02 Thread rdkurth
an one conclusion MT> How can I do an if statement with more than one conclusions MT> Something like this I know this is not correct just an example of what MT> I what to do MT> If($ext=="com"or"net"or"org"or"info"){ MT> Then do this MT> } M

[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=="com"or"net"or"org"or"info"){ Then do this } If($ext=="com.uk"or"me.uk&qu

Re[2]: [PHP] using eval

2001-12-13 Thread rdkurth
quot;/home/sites/home"; MT> $fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)"); MT> $str='include("$path/inc/dataconf.inc");'; MT> eval ("\$str = \"$str\";"); MT> fwrite($fp3,"$str \n");

[PHP] using eval

2001-12-13 Thread rdkurth
quot;); $str='include("$path/inc/dataconf.inc");'; eval ("\$str = \"$str\";"); fwrite($fp3,"$str \n"); -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth
> samples below. This script works but I 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] Pulling data out of a domain name

2001-12-05 Thread rdkurth
$dhost3=$host1[2] ; $dhost=$dhost1; $chost=$dhost2 . "." . $dhost3; } } -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

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

2001-12-01 Thread rdkurth
age that checks 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 >> >> >> >> -- >&

[PHP] Preventing a form from being submitted twice

2001-12-01 Thread rdkurth
uying. 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 administr