Re: [PHP] Programming the Hard Way?

2001-01-27 Thread Steve Werby
implify it even more. Quotes are only needed around strings. They aren't needed around numbers. If you surround a number in quotes it's treated as a string which will result in different behavior when doing sorting and or comparisons. mysql_query( "SELECT * FROM table WHERE id=$id "

Re: [PHP] Why?? SPRINTF(SELECT sequence,prodnum,childdesc....);

2001-02-01 Thread Steve Werby
There's no advantage to using it to wrap around an SQL statement. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: [PHP] contracting consulting (was [PHP] Pricing for PHP programming???)

2001-02-01 Thread Steve Werby
listings. I *wish* there were less - we have listings 135 and 136 and have not found the right candidate yet. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP] Pricing for PHP programming???

2001-02-01 Thread Steve Werby
o called "hourly rate" remains flat. Unless of course you hire other people. That may make your operation much more complex and difficult to manage than you may think. Plus, any development firm that hires a PHP programmer is reducing the pool of PHP programmers available to my company and

Re: [PHP] Automatic incoming mail notification

2001-02-01 Thread Steve Werby
bolic link in a directory utilized by smrsh (sendmail restricted shell) to allow sendmail to execute your script (this is done for security reasons). "man smrsh" for details. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP Genera

Re: [PHP] Performance question

2001-02-02 Thread Steve Werby
utput to file. // Left as user exercise. ? -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- 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

Re: [PHP] Pricing for PHP programming???

2001-02-02 Thread Steve Werby
s like you they'll mention you to others. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] getting STDIO

2001-02-02 Thread Steve Werby
"Martin A. Marques" [EMAIL PROTECTED] wrote: Lets say my script is named script1.php and I do: $ less file1 | script1.php $fp = fopen( 'php://stdin', 'r' ); Then use the standard file handling functions to access the piped data. -- Steve Werby COO 24-7 Computer Service

Re: [PHP] Undefined variable

2001-02-03 Thread Steve Werby
on Apache, but not on Win2k. I have very little experience with PHP on Windows so it could be something else, but that's where I'd start. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] CGI vs PHP

2001-02-03 Thread Steve Werby
languages that can run as a CGI. PHP installed as an Apache module will in general run scripts faster than a Perl CGI or PHP CGI. PHP works great for file handling scripts, though as your files grow you'll probably want to consider using databases instead of flat files. -- Steve Werby COO 24-

Re: [PHP] Replacing A Word in HTML page

2001-02-03 Thread Steve Werby
how? It's definitely possible in PHP. I've done it. You probably want to use a combination of fopen() and other file handling functions, eregi_replace() and str_replace(). -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing

Re: [PHP] % operator

2001-02-04 Thread Steve Werby
through your data set and use it to calculate whether you will need to fill cells at the end of the table with non-breaking spaces. There are many other applications, but these two come up pretty frequently in web applications. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.24

Re: [PHP] Arrays from forms

2001-02-04 Thread Steve Werby
y( $result ) ) { $option_type = $row[option_type]; $code = $row[code]; echo "$option_type $codebr"; } Hopefully that'll be enough to get you going. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing Li

Re: [PHP] Replacing A Word in HTML page

2001-02-04 Thread Steve Werby
al letters (like you described). If you simply want to replace all matches within the page str_replace() is a better choice. Regular expressions are a more difficult concept to master than a lot of other concepts within PHP so you may want to look at some tutorials or books on the subject. -- Steve Wer

Re: [PHP] split string value again

2001-03-29 Thread Steve Werby
// print the desired output. echo $string_out; ? -- Steve Werby President Befriend Internet Services LLC Tel: 804-355-WEBS http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] Execute Shell command?

2001-04-01 Thread Steve Werby
running as an Apache module or as a CGI? If it's an Apache module, what owner does Apache runs as? Also, if your system is a Cobalt RaQ you may want to post to the cobalt-users mailing list (http://list.cobalt.com/mailman/listinfo/cobalt-users/) to signup. -- Steve Werby President, Befriend

Re: [PHP] Search Engines

2001-04-01 Thread Steve Werby
rch engines for your desired search phrases is another story. Though I live talking about search engine optimization strategies and steps, this isn't the right forum for giving away all of the secrets. smile -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP Gener

Re: [PHP] session in php3 and in php4

2001-04-01 Thread Steve Werby
ng in PHP4 see the manual (http://www.php.net/manual/en/ref.session.php) and you may want to check zend.com, phpbuilder.com, etc. for tutorials, code snippets and examples. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://w

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby
we can see what you've tried. I suggest using fopen() and fgets() to accomplish what you want. The first example in the manual at http://www.php.net/manual/en/function.fgets.php does exactly what you want. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- P

Re: [PHP] Can php read and than print file like it is

2001-04-02 Thread Steve Werby
gets.php that I mentioned your problem will be solved. Good luck! -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Looping through the alphabet [was: Why does it work this way?]

2001-04-02 Thread Steve Werby
ve a need, but for the benefit of others who may have read your post, you can loop through 'a' to 'z' using the chr() function as follows: ?php for ( $i = 97; $i = 122; $i++ ) { echo chr( $i ); } ? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Ma

Re: [PHP] duplicate a table

2001-04-02 Thread Steve Werby
table name and then use MySQL to run the INSERTs. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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 adminis

Re: [PHP] SQL : multiple SELECT and missing rows.

2001-04-02 Thread Steve Werby
.ID Can anyone suggest me how do I SELECT ALL of the accounts having simply NULL on 'addresses.*' when there's no such row, instead of 'loosing' the whole 'account' row? Use the query above and add: WHERE addresses.ID IS NULL -- Steve Werby President, Befriend Internet Services LLC http://www.be

Re: [PHP] Please Help!

2001-04-02 Thread Steve Werby
"E K L" [EMAIL PROTECTED] wrote: $tpl = new FastTemplate("../usr/local/apache/htdocs/toplevel.tpl"); According to the error, the path above is incorrect. Looking at it, my guess is that the path might really be: "/usr/local/apache/htdocs/toplevel.tpl" -- S

Re: [PHP] Cobalt RaQ XTR(slightly OT)

2001-04-03 Thread Steve Werby
if the new and old versions are configured differently (like having differences in whether magic quotes is on/off and short PHP tags are on/off) you may have to make some code changes. Otherwise it should be a pretty smooth transition. -- Steve Werby President, Befriend Internet Service

Re: [PHP] upgrade question

2001-04-03 Thread Steve Werby
ne help me to find out where phpinfo() is pulling it's information or direct me to an upgrade "how to" for PHP ? Perhaps you should try deleting the old install first. locate php, then rm -rf [DIRECTORIES_HERE] or rpm -e [PHP_PKG_HERE]. -- Steve Werby President, Befriend Intern

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
nt of spam you get right now will increase ten fold. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
"Steve Werby" [EMAIL PROTECTED] wrote Renze is correct. Unless you're checking local email addresses which you control, there's no way to check down to that level. And be happy there isn't. Otherwise the amount of spam you get right now will increase ten fold. I should have sa

Re: [PHP] Difference between two dates

2002-02-20 Thread Steve Werby
them as since it would use the same time of day for both dates. http://www.befriend.com/code_gallery/php/get_elapsed_time/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Timed Jobs.

2002-02-20 Thread Steve Werby
it. Others accessing it may not be a security risk, but it could add load you don't want. Both lynx and wget allow you to pass a HTTP user/password. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] mass mail

2002-02-20 Thread Steve Werby
a few minutes ago under the subject Timed Jobs. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Chatroom sounds

2002-02-20 Thread Steve Werby
a URL to the specific chatroom script you're talking about and post to a list that deals with JavaScript or Flash. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Steve Werby
really should get familiar with all of the other variables available since there are many that are quite useful. Also see parse_url() in the manual since it lets you grab each of the URL's components separately and you can supply the URL as $SCRIPT_URI, $SCRIPT_URL or something similar. -- Steve

Re: [PHP] Pulling Variables from URL

2002-02-20 Thread Steve Werby
and apache.org (assuming you run Apache webserver). I'm sure a quick search of google or a few Linux / PHP tutorial sites will turn something up. I don't have any references offhand. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http

Re: [PHP] Searching 'Help' Text

2002-02-26 Thread Steve Werby
the text matching the user's search term to be highlighted? ... -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Workaround for no cron?

2002-04-07 Thread Steve Werby
of their boxes. Hope that helps. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT - php/mysql/cron

2002-06-03 Thread Steve Werby
to supply those parameters to the mysql commandline program or other MySQL programs if you want to login as that default user. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] MySQL vs. basic text file

2002-09-23 Thread Steve Werby
popular open source databases such as MySQL or PostgreSQL. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disk Usage

2001-09-22 Thread Steve Werby
. If you're on Linux or another un*x, try calling 'du' using system() or a similar command. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] help with Mysql Query...

2001-09-24 Thread Steve Werby
a LEFT JOIN. SELECT * FROM table_a LEFT JOIN table_b ON table_a.id = table_b.id WHERE table_b.id IS NULL -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] php script ownership

2001-09-25 Thread Steve Werby
described how to install and run in this mode. Just set the script's owner to the desired user and that's who it will run as. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] display query results at random

2001-09-26 Thread Steve Werby
element isn't picked twice (less efficient). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
() before executing the query and stripslashes() when retrieving data from the db. See the online manual for more details. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] stripslashes

2001-10-04 Thread Steve Werby
]$row[solution] where would i put the stripslashes function to get the description? $var = $row[product] . 'a href=solution.php?id=' . $row[prob_title] . '' . $row[prob_title] . '/a' . stripslashes( $row[description] ) . $row[solution]; -- Steve Werby President, Befriend Internet Services LLC http

Re: [PHP] need phpmyAdmin but no so good

2001-10-04 Thread Steve Werby
. Or you could reinvent the wheel. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
thinking magic quotes settings off-hand). From experience I know that stripslashes() can be needed when retrieving data from a db. Just today I've had to do so for clients separately using PostgreSQL and MySQL. YMMV. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com

Re: [PHP] ODBC version of PHPMyAdmin?

2001-10-05 Thread Steve Werby
, but Great Bridge has closed its operation so you'll probably have to look elsewhere. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Re: Submitting variables via /'s

2001-10-05 Thread Steve Werby
of my side projects you'll see I implement the same practices there too. http://www.sexcriminals.com/ (not an adult content site) http://www.tysonchandler.com/ HTH, -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http

Re: [PHP] array to string

2001-10-19 Thread Steve Werby
(). $fcontents_string = implode( '', $fcontents ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
a space within HTML I'd suggest using #160; (some people prefer nbsp;), but if you do that within the body of a text email it should display the actual characters, not the text, so that won't get you the desired behavior. HTH, -- Steve Werby President, Befriend Internet Services LLC http

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
thought it was *more* universal. frown -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Steve Werby
#160; in the last 2 months because I was under the impression that it was more universally accepted. frown If you happen to know of a resource describing ascii code standards or differences b/w Mac and PC character sets please let me know on or off-list. Thanks! -- Steve Werby President

Re: [PHP] cron or something similar ?

2001-11-03 Thread Steve Werby
just use mailing list programs like majordomo, mailman, smarlist, etc. and send the newsletter out to the recipients manually... -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] passing variables between pages without using url??

2001-11-03 Thread Steve Werby
are passing across a series of pages, after the first page you'll want to add the variables you're going to pass to hidden input fields or use session variables which will make the variables available throughout the user's session or until you destroy the session. -- Steve Werby President, Befriend

Re: [PHP] bcc

2001-11-03 Thread Steve Werby
"Nikola Karovi" [EMAIL PROTECTED] wrote: how can i send bcc from my php @mail script. mail( $to, $subject, $message_body, "From: $from_name $from_address\nbcc:[EMAIL PROTECTED]" ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP

Re: [PHP] Questions per installing on linux (Php 4)

2001-11-03 Thread Steve Werby
install on cobalt-users (go to www.cobalt.com to subscribe, after searching the archives of course) since everyone on that list is running RaQ systems, while my guess is that only a fraction of the people on this list are. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com

Re: [PHP] Number_Format Question

2001-11-03 Thread Steve Werby
to be a number b/w 0 and 1 then you could use substr() to get the part you want. You could also use something like ereg_replace(). Someone else may have a solution that's better. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http

Re: [PHP] site last updated

2001-11-03 Thread Steve Werby
Ryan Christensen [EMAIL PROTECTED] wrote: You can do this in a per-page basis w/: $modified = stat(yourfile.html); echo date(l, F dS,$modified[9]); Also see getlastmod() and filemtime(). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General

Re: [PHP] floating point exception after php 4 upgrade on raq 2

2001-11-20 Thread Steve Werby
in the PHP source distro of ext/standard/crypt.c and change it to: php_srand(time(0) * getpid() * (php_combined_lcg() * 1.0)); I've upgraded Apache/PHP/MySQL dozens (maybe hundreds) of times from sourrce on the RaQ1/2 so if you still have problems after that let me know. -- Steve Werby President

Re: [PHP] MySQL and GROUP BY

2001-11-20 Thread Steve Werby
ORDER BY mylist -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Conversion number two?

2001-11-20 Thread Steve Werby
in single quotes? I think you mean PHP not perl, but there is a way. $required = explode( ' ', 'name address phone' ); The code above turns the space separated list into an array. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
the MTA only passes them one by one to whatever's next in line (whether it's procmail, or any other type of program) I don't think you'll have a problem. Each call to the program should run as a separate process. If I'm missing something post some more info. -- Steve Werby President, Befriend

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
, potential problems related to database and file writes are not just a product of piping to a script - the same potential exists in web pages doing the same things when multiple users can access scripts manipulating the same tables/files simultaneously. -- Steve Werby President, Befriend Internet

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
Ashley M. Kirchner [EMAIL PROTECTED] wrote: Steve Werby wrote: Exactly. It sounds like you're doing INSERTs so unless you're doing an UPDATE or SELECT that can give unexpected results if another instance of the script is running at the same time or you have other scripts accessing

Re: [PHP] Installing PHP 4 on a RAQ3

2001-11-25 Thread Steve Werby
so it definitely can be done. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Re: failure notice

2001-11-26 Thread Steve Werby
better bang for your buck searching the archives for cobalt-users and posting there. After all, *everyone* on that list runs Cobalt servers whereas probably only a small percentage do on the PHP list. See archives at marc.theaimsgroup.com and list subscription at www.cobalt.com. -- Steve Werby

Re: [PHP] What kind of looping ?

2001-11-27 Thread Steve Werby
use all columns. // You can get away without this on broken browsers like IE, but // then you'll generate invalid HTML and browsers like NS // won't display your pages. if ( $array_count % $columns 0 ) { $o .= str_repeat( tdnbsp;/td, $columns - ( $array_count % $columns ) ) . /tr; } -- Steve

Re: [PHP] Directory Contents Listing

2001-11-27 Thread Steve Werby
Deependra B. Tandukar [EMAIL PROTECTED] wrote: How do I display the directory contents using PHP? See readdir() in the online manual. I'm pretty sure it even has example code you could paste in. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP

Re: [PHP] how to transfer a local DB to a DB on Server ?

2001-11-27 Thread Steve Werby
to the destination machine using FTP. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] Good host needed

2001-11-29 Thread Steve Werby
to that forum with specific questions. With thousands of members and tens of thousands of messages about hosting it's a better place to do your homework. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] howto run shell script

2001-12-03 Thread Steve Werby
Danar Prabandaru [EMAIL PROTECTED] wrote: how do I run a shell script from PHP web interface?? assume /path/to/my/script.sh as the path and the owner and group of this script are belong to apache See exec(), system(), etc. -- Steve Werby President, Befriend Internet Services LLC

Re: [PHP] Logic

2001-12-04 Thread Steve Werby
to edit and follow your code if you rewrite as: if ( ! in_array( $type, array( 'add', 'edit', 'delete' ) ) ) { } -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] md5 decrypt

2001-12-05 Thread Steve Werby
would have likely taken their business elsewhere. On a few servers I manage I run it periodically to check for weak passwords, then I contact the users with weak passwords and ask that they change them. John the Ripper: http://www.openwall.com/john/ -- Steve Werby President, Befriend Internet

Re: [PHP] sample or tutorial for conditional pulldown menus

2001-08-07 Thread Steve Werby
of the select boxes are less extensive than make and model detail. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] subroutines?

2001-08-09 Thread Steve Werby
() { return $GLOBALS[var]; } or function go() { global $var; return $var; } echo go(); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] UPDATE syntax

2001-08-13 Thread Steve Werby
a unique value for ID then it will only update a single row. When in doubt what is happening store the SQL statement in a var like $sql and then echo $sql to the screen to check it over, pasting into database commandline to test results if necessary. -- Steve Werby President, Befriend Internet

Re: [PHP] cobalt raq4

2001-05-09 Thread Steve Werby
that creates a test PDF file. Can you get the test file to work? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Shopping cart search

2001-05-10 Thread Steve Werby
don't know of a message board or mailing list dedicated to shopping carts. http://www.theexchangeproject.org/ http://www.fishcart.org/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread Steve Werby
and a few records? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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

Re: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread Steve Werby
. If I misinterpreted what you were trying to do let me know. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] Uptime script?

2001-05-16 Thread Steve Werby
processes have been idle. I have a function I wrote that displays uptime and takes arguments of time units and decimal places. Have fun. http://www.befriend.com/code_gallery/php/get_uptime/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing

Re: [PHP] webmaster volunteer

2001-05-17 Thread Steve Werby
to work free-of-charge. Beforehand thank. Give http://www.sourceforge.com/ a try. There are thousands of projects listed there and I bet a few could use some help. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] while loops [ newbie ]

2001-05-17 Thread Steve Werby
and fgets() to read one line at a time. Use explode() to grab the first word on each line, compare it to your other variable and write each line to a new variable if it doesn't match. Then use fwrite to write to a temporary file and copy that file over the original. -- Steve Werby President, Befriend

Re: [PHP] IF statements

2001-05-22 Thread Steve Werby
the values you expect. Try echoing them before the if statement to verify they contain the values you expect. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] variables in a e-mail

2001-06-18 Thread Steve Werby
]. So, in your example you'd do: $msg_body = Hello, . $GLOBALS[HTTP_POST_VARS][variable]; -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

Re: [PHP] validate phone numbers

2001-06-20 Thread Steve Werby
formats and sometimes it's necessary to enter a # like 011-817-972-1086 x103 or 817-972-1086, 1, 3, 12 if you're dealing with business numbers with extensions or automated systems that have to be traversed. So you may be better off not validating the phone #. YMMV. -- Steve Werby President

Re: [PHP] logout

2001-06-20 Thread Steve Werby
Jacky [EMAIL PROTECTED] wrote: Is there anyway I can do the logout that will completely get rid of all login detail without having user to close browser? If you're using sessions session_destroy() will do it. Create a link or form button that calls that function. -- Steve Werby President

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Steve Werby
Marcus James Christian [EMAIL PROTECTED] wrote: \' How can I filter out these backslashes so they don't appear on the final public viewable page? Use stripslashes(). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http

Re: [PHP] search

2001-07-03 Thread Steve Werby
the string, then loop through and add each element to an array by adding as follows (pseudocode): for ( $i = strlen( $string ); $i = 0; $i-- ) $array[] = substr( $string, 0, $i ); -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http

Re: [PHP] recommend a good PHP site specific search engine

2001-07-03 Thread Steve Werby
/ -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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: [PHP] Security of PHP code

2001-07-04 Thread Steve Werby
? Something along those lines will work. Without some kind of limitations built in, the page will be able to load any file that's world-readable so it's a good idea to limit access to certain directories or hardcode the directory you want to give access to. -- Steve Werby President, Befriend Internet

Re: [PHP] Removing Invalid Users

2001-07-04 Thread Steve Werby
to designate the email address as valid or a script in the webpage that does the same. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] Security of PHP code

2001-07-04 Thread Steve Werby
Sascha Schumann [EMAIL PROTECTED] wrote: On Wed, 4 Jul 2001, Steve Werby wrote: Jon Haworth [EMAIL PROTECTED] wrote: Yes, I would have thought this would do it: if (strstr($file, /usr/local/apache/htdocs/) { show_source($file); [..] Something along those lines will work

Re: [PHP] checking if checkbox is checked

2001-07-04 Thread Steve Werby
. for ( $i = 1; $i 4; $i++ ) { $field = 'interest' . $i; if ( ! empty( $$field ) ) { $flag = TRUE; } } if ( $flag == TRUE ) { echo At least one was checked.; } -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List

Re: [PHP] PHP/mySQL Query

2001-07-05 Thread Steve Werby
not a problem, but believe me at some point when doing database programming this issue will arise. SELECT teampages.ownerID, teampages.last_update, owners.teamname FROM teampages LEFT JOIN owners ON teampages.ownerID = owners.ownerID ORDER BY last_update DESC LIMIT 10 -- Steve Werby President, Befriend

Re: [PHP] is_alpha_numeric ?

2001-07-06 Thread Steve Werby
John Monfort [EMAIL PROTECTED] wrote: I'm trying to determine if an argument is alphanumeric. Is there a function to do this? There may be in the CVS version (would have to check), but there's not in 4.0.6. eregi( [[:alnum:]]{1,}, $string ) may do the trick. -- Steve Werby President

Re: [PHP] Email verification (was: [PHP] Removing Invalid Users)

2001-07-04 Thread Steve Werby
Unimplemented. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- 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: [PHP] Email verification (was: [PHP] Removing Invalid Users)

2001-07-04 Thread Steve Werby
, the only way to verify that an email address exists *and* is being used by the person who supplied it (I assume in most cases this is the whole point) is to send a unique string or URL and check that the recipient responds with the string in an email or visits the URL. -- Steve Werby President

Re: [PHP] Email verification (was: [PHP] Removing Invalid Users)

2001-07-04 Thread Steve Werby
Steve Werby [EMAIL PROTECTED] writes: Like Tom said, use regex to check the email is of a valid format. A small percentage of servers can be contacted to find whether an email address is valid, but fewer and fewer are allowing this so it's completely unreliable. Arcady Genkin [EMAIL

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
and passing the user/pwd to lynx (see man lynx) so that your script which is probably only intended to be run via cron isn't available for anyone on the web to access. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net

  1   2   3   >