Re: [PHP] Advanced Search on MySQL

2001-04-19 Thread Steve Werby
the '%' wildcard and including all possible fields in the WHERE clause could greatly increase the time necessary to run the query *and* it's not helping you learn how to program efficiently in PHP. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Ma

Re: [PHP] Variable variable

2001-04-18 Thread Steve Werby
then loop through as follows: while( list( , $val ) = each( $checkbox_fields ) ) { // may have to set as $$GLOBALS[$val] if within a function or declare $val as global first. if ( $$val == 'on' ) { echo 'on'; } else { echo 'off'; } } -- Steve We

Re: [PHP] Variable variable

2001-04-18 Thread Steve Werby
name, but since I spend a fair amount of time working with other people's code and clients who sometimes insist on things that aren't preferable, it would be nice to know. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.ph

Re: [PHP] Finding the records that are NOT linked

2001-04-18 Thread Steve Werby
y show records where there isn't a matching record in link_stats (in which case it's 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 commands, e-ma

Re: [PHP] ACSII in PHP

2001-04-18 Thread Steve Werby
"Augusto Cesar Castoldi" [EMAIL PROTECTED] wrote: Is there any function in PHP that I could use to know the number of the ASCII table of letter "A" for example? It's chr() or ord(). I don't recall which (one is the inverse of the other) so check the online manual. -- S

Re: [PHP] PHP and Double?

2001-04-18 Thread Steve Werby
ent and use substr() to return everything, but the first character. Clearly, the first method is cleaner, but I posed the second option (which I'd never use) just to demonstrate there are plenty of solutions for most situations. -- Steve Werby President, Befriend Internet Services LLC http://www.b

Re: [PHP] Running php as a CGI

2001-04-17 Thread Steve Werby
there any way we can suppress that message? In php.ini change: expose_php = On to expose_php = Off -- 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 comm

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Steve Werby
to a single PHP file (I call it template_1.php) which uses regular expressions to parse a page's URL and include the proper content. If you want to see it in action take a look at http://www.sexcriminals.com/. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ --

Re: [PHP] select question

2001-04-17 Thread Steve Werby
directory containing the database. -- 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 administra

Re: [PHP] HTML and PHP?

2001-04-13 Thread Steve Werby
e sure you don't indent the closing marker or the parser will miss it! /html STOP; ? -- 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-ma

Re: [PHP] site review

2001-04-11 Thread Steve Werby
needs to be improved. If by "performance" you mean "generating more revenue or increasing page views" I have plenty of ideas, but the last thing the world needs anyway is another hotornot.com copycat. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.c

Re: [PHP] register_shutdown_function - uses for

2001-04-10 Thread Steve Werby
, but did not affect the output sent to the browser. In those cases I used register_shutdown_function() inside a control structure to call another function (after outputting HTML from within the same control structure). -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com

Re: [PHP] function and global problems

2001-04-06 Thread Steve Werby
on line 25 snip } getdata( ) echo $domain; --This is line 25 which is outside of the function /snip getdata(); // Don't forget the semicolon. As a general rule, missing semicolons ";" and braces "}" on lines above those mentioned in the error output are often culprits for

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Steve Werby
quot;=" sets the variable $num to that value. A double "==" is an equality comparison operator - that's what you want in this case. Also, since mysql_numrows() returns a number, not a string, you don't need quots around the 0. -- Steve Werby President, Befriend Internet Services

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Steve Werby
e old name of the function from previous PHP versions. -- 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 admi

Re: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Steve Werby
I believe this is covered in an example right in the manual. See mail() in the manual online. -- 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] Help please.

2001-04-06 Thread Steve Werby
4 consists of installing PHP4. You can install php with apxs (--with-apxs flag) in which case you don't need to recompile Apache or you can recompile Apache and install it as a static module directly in the Apache binary. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

Re: [PHP] Update: 1767 functions!

2001-04-06 Thread Steve Werby
I'm pretty sure it's greater than the # at the URL above. http://www.zend.com/phpfunc/ -- 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-ma

Re: [PHP] Another include ?

2001-04-05 Thread Steve Werby
) to parse the variable before using it. -- 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 administrato

Re: [PHP] column names

2001-04-05 Thread Steve Werby
of the PHP script. Depends what he needs to do. I still think mysql_field_name() / pg_fieldname() are the way to go, though Mauricio never mentioned which DBMS he's using. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://w

Re: [PHP] Left Join Across Two Databases

2001-04-05 Thread Steve Werby
Just prepend the DB name to the table selecting from: SELECT table_1_from_db_connected_to, other_db_name.table_2 ... And make sure that the user for the first DB has permissions for the second DB. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP Genera

Re: [PHP] inlude_path not in php.ini

2001-04-05 Thread Steve Werby
3 and PHP4 if you're using the old style. The new style is: php_flag include_path ".:./lib" Directories are separated by colons. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] scramble the code -sneaky solution (redux)

2001-04-05 Thread Steve Werby
installed on a RaQ2 and AFAIK it will install on a Qube2 since they share the same software. I've yet to install 4.04 on a RaQ2 though. -- 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] IF this then, move to this line...

2001-04-05 Thread Steve Werby
s of GOTOs in BASIC. ;-) There isn't a method for referring to a line number within PHP. Enclose your code in functions and do this: if () { true_function_here(); } else { false_fucntion_here(); } If you haven't worked with functions, consult the online manual. -- Steve Werby President, Befrien

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
ocal file and it's not finding the file, make sure the path is correct. now when i rename the doc to something.htm, ill get the contents? Which document - the one being called by fopen() or the one containing the PHP script? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.

Re: [PHP] fopen wierdness

2001-04-05 Thread Steve Werby
"Steve Werby" [EMAIL PROTECTED] wrote: acutally i found my problem, what was happening was that script1 that was on the server that file resides had that file open at the same time that scirpt2 was trying to open via http, when i change that files name, the permissions changed, a

Re: [PHP] close tcp-IP connection before php-skript finishes

2001-04-05 Thread Steve Werby
php script ends? (I think this would solve my problem) Perhaps register_shutdown_function() will do the trick. I've used it on scripts where a call to an external command or long DB operation took a long time, but didn't affect the browser output. -- Steve Werby President, Befriend Internet Se

Re: [PHP] Reading from a webpage

2001-04-04 Thread Steve Werby
ng the PHP source code. -- 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-ma

Re: [PHP] PHP code to verify existing URL???

2001-04-04 Thread Steve Werby
d also use an existing open source application like mnogosearch. What about search the META tags as well?? Read the manual - there are functions specifically for this (though they won't work if the meta tags aren't exactly as expected). -- Steve Werby President, Befriend Internet Services LLC http://www.be

Re: [PHP] Item in two db tables

2001-04-04 Thread Steve Werby
the manual. -- 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] BUG - Someone else please verify B4 I file

2001-04-04 Thread Steve Werby
: ! empty() instead of: isset() Or Jeff (Data Driven Design), did you use a different technique? -- 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 comman

Re: [PHP] PHP.net is slow

2001-04-04 Thread Steve Werby
How about a downloadalbe version of the site? Does such a thing exist? You can download the manual. See http://php.net/docs.php. If you want the entire site you're going to probably have to slurp it using a spider. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- P

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] column names

2001-04-03 Thread Steve Werby
tion about the columns using sql. that information is to be accessed with a php script. so, I'm looking for something resembling "select info from table" Check the online manual for more functions and other databases. -- Steve Werby President, Befriend Internet Services LLC htt

Re: [PHP] Validation Email in PHP programs

2001-04-03 Thread Steve Werby
[EMAIL PROTECTED] wrote: ** Reply to note from "Steve Werby" [EMAIL PROTECTED] Tue, 3 Apr 2001 15:24:29 -0400 I should have said there's no *reliable* way to check whether an email address on an external server is valid. There is one _reliable_ way to verify the email addres

Re: [PHP] error on last line of file (tearing hair out)

2001-04-03 Thread Steve Werby
PHP4 isn't reporting the correct line? Maybe you have a missing closing bracket "}". Thanks in advance, and I can psot the code if people think it will help... If it's not a missing closing bracket, post the code. -- Steve Werby President, Befriend Internet Services LLC http://www.b

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] 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] 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] Problems sending mail to aol with the mail() function

2001-02-23 Thread Steve Werby
lly set to the owner of Apache. Perhaps if you run the script using a CGI install of PHP using a different user AOL will accept it. Have you contacted AOL about the problem? -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List

Re: [PHP] Location

2001-02-23 Thread Steve Werby
vironment variable to display the proper label in the "location bar". ?php echo $location[$SCRIPT_URL]; ? If you have a large number of pages (especially dynamically generated "virtual" pages) or sublevels to your site you'll probably want to use a more advanced solution. -- S

Re: [PHP] HTML Coding in mySQL field

2001-02-15 Thread Steve Werby
field type in the mySQL db? should it be TEXT? Depends on the size of the data you want the user to be able to input. CHAR, VARCHAR, TEXT and BLOB will all work. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List (http://w

Re: [PHP] re:linebreak

2001-02-14 Thread Steve Werby
l not work for the tabs. For tabs something like this will probably give a tolerable result, though I've never had a need to try: $var = str_replace( "\t", str_repeat( "nbsp;", 4 ), $var ); -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/

Re: [PHP] re:linebreak

2001-02-13 Thread Steve Werby
that contain hundreds upon hundreds of characters. -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] serialize/deserialize data

2001-02-12 Thread Steve Werby
hat they're an integers, strings, etc. serialize is a good way to accomplish this. I hope that helped clarify serialize a little. If not, just play with it a little to understand it. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General M

Re: [PHP] checkboxes and arrays

2001-02-12 Thread Steve Werby
ant 5 sets of checkboxes and text inputs. for ( $i = 0; $i $num_inputs; $i++ ) { echo "input type=checkbox name=checklist[$i]Cb $i input type=text name=text[$i]\n"; } -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP Genera

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread Steve Werby
you how to fix it, I'll show you a better way. Why not do something like: $result = mysql_query( $sql ); while ( $row = mysql_fetch_array( $result ) ) { echo "trtdimg src=\"$row[indice_url]\"$row[indice]/td/tr\n"; } -- Steve Werby COO 24-7 Computer Services, LLC

Re: [PHP] Nothing Showling up in Netscape

2001-02-12 Thread Steve Werby
bilities, but without the code... -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Newbie: Images refs not loading (Broken Icons) How to?

2001-02-12 Thread Steve Werby
rials at places like zend.com and sometimes at phpbuilder.com (though sometimes their tutorials could be better). -- 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 PROTE

Re: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Steve Werby
ade to PHP that I've missed reading about?? It could be a configuration option or a php.ini setting. Create a page with ?php phpinfo(); ? in it and post your configuration options to the list. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP

Re: [PHP] mysql_fetch_array and row referencing under 4.0.4pl1

2001-02-12 Thread Steve Werby
t if I do a: Forgot to ask - does referencing an array with double quotes around the key work for arrays not associated with a MySQL result? I doubt it's specific to MySQL result arrays, but it doesn't hurt to check. Make a small array and test. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804

Re: [PHP] Previous Next problems !!

2001-02-08 Thread Steve Werby
erate records for the web page. Hopefully it will make sense once you start playing with it. -- 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 comm

Re: [PHP] Variable quantity chooser.

2001-02-08 Thread Steve Werby
p a dialog box if it's not valid. Try internet.com's Javascript area or another JS site to find a code snippet that does what you want. -- 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] Super SQL problem! Please advise!

2001-02-08 Thread Steve Werby
ir results as temporary tables and then running a query to join the two temporary tables to get what you want. Also, for SQL questions like this you'll get better [or more or quicker] responses on the mysql mailing list. Sign up at www.mysql.com. -- Steve Werby COO 24-7 Computer Service

Re: [PHP] Form posted?

2001-02-08 Thread Steve Werby
"rodrigo" [EMAIL PROTECTED] wrote: Is there a function that can tell me whether a form was posted? There's an Apache environment variable. $REQUEST_METHOD. Returns "GET" or "POST". Do ?php phpinfo(); ? in your script for more good stuff. -- Steve Werby COO 2

Re: [PHP] indexing text

2001-02-08 Thread Steve Werby
en in C++, it's very powerful, highly configurable and has optional PHP or Perl front-ends. I use it to index and search internal and external sites, but you can use it to index a database directly. Search google for the URL. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://

Re: [PHP] Time problem

2001-02-07 Thread Steve Werby
urn $elapsed_time; } ?php // Usage example $time_in = "2000-06-14 06:30:00"; $time_out = "2000-12-22 13:45:00"; // Full use of function. echo "brDays: "; echo get_elapsed_time( $time_in, $time_out, "days", "3" ); // Use defaults for units and decim

Re: [PHP] Retrieve item from table at random

2001-02-07 Thread Steve Werby
and sites sections in the side columns ar http://www.sexcriminals.com/ are generated using a MySQL ORDER BY RAND() LIMIT limit_number query. And no it's not a porn site. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ Only one query for randomized resul

Re: [PHP] Odd question regarding creating a php file

2001-02-07 Thread Steve Werby
ySQL database and are being handled by a single PHP script that Apache is directing all web accesses to and which parses the URL to determine what content to show. Maybe something like this would work for you. Then each person would have a unique static-appearing page. -- Steve Werby COO 24-7 Computer

[PHP] Re: Hide PHP from web server header [was: PHP - CGI Version]

2001-02-07 Thread Steve Werby
"Tim Livers" [EMAIL PROTECTED] wrote: Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html #!/usr/local/bin/php" at the top of the page. 1. In php.ini, set "expose_php = Off" 2. Restart Apache. -- Steve Werby COO 2

Re: [PHP] newbie mail() function

2001-02-07 Thread Steve Werby
("I appreciate your feedback\n\n"); ? for some reason I get a parse error on line 9. If I remove the mailheaders variables the PHP script works Oops! You're missing the semicolon ";" at the end of line 8. Problem solved. -- Steve Werby COO 24-7 Computer Services, L

Re: [PHP] newbie mail() function

2001-02-07 Thread Steve Werby
to make the change above, but it doesn't help with the actual problem (missing semicolon). -- 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 comman

Re: [PHP] string vs. integer...

2001-02-07 Thread Steve Werby
"Julia A . Case" [EMAIL PROTECTED] wrote: How do I detrmine of a value is a string or a integer? I'm trying to tell the differnce between "machine.domain.com" and "192.168.2.1" I was going to explode on "." and parse through the data and validate

Re: [PHP] base dir

2001-02-07 Thread Steve Werby
l show you the way and give you a lot more info. to save you from asking a lot of questions in the future. smile -- 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

Re: [PHP] Variable quantity chooser.

2001-02-07 Thread Steve Werby
ferring to. I'm confident you can accomplish what you want using a loop, but perhaps you can restate your question using different terminology and some more details. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Mailing List (http:

Re: [PHP] mail/sendmail lmitations?

2001-02-07 Thread Steve Werby
pam method), but I'm not certain b/c I quickly looked and couldn't find it. Check sendmail.cf. I don't think there are specific limits for the fields you listed, but I could be wrong. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP General Ma

Re: [PHP] Super SQL problem! Please advise!

2001-02-07 Thread Steve Werby
figure it out on your own with a few minutes of research, trial and error. -- 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: [EM

Re: [PHP] test for undefined variables renaming variables

2001-02-07 Thread Steve Werby
://php.net/. $age = 27; $var = "age"; echo $$var; // prints 27 -- 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-ma

Re: [PHP] Name of Class' instance

2001-02-06 Thread Steve Werby
want to? If you want to pass "joeBob" to the class you can do so as the parameter of one of the methods. And my guess is that you already know, but if you want to refer to a method or property of a class from within the class, you do using syntax like $this-property_here. -- Steve W

Re: [PHP] Indexing Engine

2001-02-06 Thread Steve Werby
go.ru/. I could hype it in great detail, but I'll let you do your own research. It's an indexer, backend and frontend search engine. ht://Dig is also pretty popular. Both are free. Both run on many Linux/Unix flavors. I don't believe either run on NT. -- Steve Werby COO 24-7 Computer Service

Re: [PHP] Odd question regarding creating a php file

2001-02-06 Thread Steve Werby
VARS[login] or $HTTP_GET_VARS[login] or whatever's appropriate for your application. -- 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

Re: [PHP] Retrieve item from table at random

2001-02-06 Thread Steve Werby
ow_offset = rand( 0, $result_num_records ); $sql = "SELECT * FROM my_table LIMIT $row_offset, 1 "; -- 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 addit

Re: [PHP] sending mail with PHP from web

2001-02-06 Thread Steve Werby
same MySQL database where your recipients are coming from and run a cron job every X minutes to determine if there are any records in the queue and if so to pull a set number of them from the table and send them emails then delete the records from the table. -- Steve Werby COO 24-7 Computer Service

[PHP] Re: One IP per Server / Cobalt RaQ4 [was 2 questions]

2001-02-05 Thread Steve Werby
oster ever stated why he would need additional IPs, even after being informed what situations would require them. -- 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

Re: [PHP] Breaking up a line and using the text?

2001-02-05 Thread Steve Werby
ot;; $words = explode( " ", $string ); // Loop through array and build string $output containing hyperlinks. for ( $i = 0; $i count( $words ); $i++ ) { $output .= "a href='/{$words[$i]}.html'{$words[$i]}/a"; } // Print hyperlinks. echo $output; -- Steve Werby COO 24-7

Re: [PHP] Is this a bug ?

2001-02-05 Thread Steve Werby
s; If it's an array you may want to initiate it like: var $champs = array(); I don't have the time to analyze your code in full right now, but hopefully this will get you started. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www.247computing.com/ -- PHP Genera

Re: [PHP] XML - HTML via PHP

2001-02-05 Thread Steve Werby
P compiled with XML support. -- 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 administrato

Re: [PHP] array max min

2001-02-05 Thread Steve Werby
AS numberofusers_min, ..., MIN(numberofdownloads) AS numberofdownloads_min FROM my_table GROUP BY month WHERE where_clause; -- 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-ma

Re: [PHP] array max min

2001-02-05 Thread Steve Werby
. If you can put into sentences exactly what you're trying to do, we can probably help you a little better. i think i'm doomed with the big loop thing :\ Nah, I think you can avoid it. MySQL is your friend. grin -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://www

Re: [PHP] include files

2001-02-05 Thread Steve Werby
uot; ); Then I include files as follows: include( INC_PATH . "inc_common.php" ); Very portable. I tried various versions of ../ and ../../ without success. This isn't very portable anyway. You don't want to have to change paths if you move a file to a deeper subdirectory. -- St

Re: [PHP] Automating tasks in PHP?

2001-02-05 Thread Steve Werby
ron" from Linux/Unix commandline. Use it to schedule programs. If you have PHP installed as a CGI you can call a PHP file directly, otherwise you'll have to call it using its full URL using a program like wget or lynx. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://

Re: [PHP] General Question: OOP

2001-02-05 Thread Steve Werby
p to speed with PHP. There are tutorials online as well. Try zend.com, phpbuilder.com, weberdev.com and hotwired among 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-ma

Re: [PHP] How can I do this?? :((

2001-02-05 Thread Steve Werby
ry tables. Or you may be able to organize your PHP code to run the second query after each row of the first query is returned and integrate the results within PHP, but you could end up running a ton of queries that way. -- Steve Werby COO 24-7 Computer Services, LLC Tel: 804.817.2470 http://w

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

<    1   2   3   >