[PHP] email

2002-07-21 Thread Bob Lockie
I need help with sending email. I can hear 127.0.0.1 doing something (I assume it sends email because there are no bounces). I have the following in my php.ini file: sendmail_from = [EMAIL PROTECTED] sendmail_path = /usr/sbin/sendmail -t -i The PHP is: mail( $to, $subj, $Message ); I am

RE: [PHP] email

2002-07-21 Thread Bob Lockie
is? -Original Message- From: Bob Lockie [mailto:[EMAIL PROTECTED]] Sent: Monday, 22 July 2002 1:56 PM To: [EMAIL PROTECTED] Subject: [PHP] email I need help with sending email. I can hear 127.0.0.1 doing something (I assume it sends email because there are no bounces). I have

RE: [PHP] Netscape 4.7 with php gd, very slow

2002-07-26 Thread Bob Lockie
I have no problem with Netscape 4.7 when connecting to Windows 2000 running the same script. Also, I don't have any nested tables in the html. Any other ideas? Thanks, Harry --- Bob Lockie [EMAIL PROTECTED] wrote: [snip] I'm trying to generate dynamic buttons with text from mysql

Re: [PHP] Help: header function

2002-07-26 Thread Bob Lockie
From: Tech Support [EMAIL PROTECTED] To: k a m e s h [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 26, 2002 11:20 AM Subject: Re: [PHP] Help: header function Try just header(Location: $PHP_SELF); or header(Location: $SCRIPT_NAME) ...leave out http:// ...and your quotes are in the

Re: [PHP] Sorry for another newbie PHP and Apache 2.0.39 question..

2002-07-26 Thread Bob Lockie
On Fri, 26 Jul 2002 12:24:31 -0500, Frank S. Kicenko wrote: Ugg.. been compiling and configuring for too many days..everything is just a fog..:-) I appreciate all the help here.. but I'm afraid I need a little more.. :-) I can't seem to get Apache to recognize PHP... The logs state: [notice]

Re: [PHP] php redirect

2002-07-26 Thread Bob Lockie
Well the current web-dev environment here in Melbourne, Australia is VERY Microsoft oriented at the moment. I'm happily freelancing, but have been keeping my eye on the big job websites, just in case that perfect job comes up. I get emailed about a few jobs every day, and 90% of them are for a

RE: [PHP] Netscape 4.7 with php gd, very slow

2002-07-26 Thread Bob Lockie
[snip] I'm trying to generate dynamic buttons with text from mysql database. Everything is fine except that the images are displaying very slow in Netscape 4.7. Internet Explorer, Netscape 6 and Mozilla are very fast. I'm running Apache 1.3.26, PHP 4.2.2, GD 1.6.2 on Linux. Also, I have the

Re: [PHP] PHP 4.2.2 and Apache LoadModule issue

2002-07-26 Thread Bob Lockie
On Thu, 25 Jul 2002 22:23:21 -0500, Frank S. Kicenko wrote: Hi All. I am having a weird problem... my PHP is outputting a libphp4.a and libphp4.la modules and I can't get Apache to recognize this type of file. Is there a way to tell PHP to generate a .so module? Or how can I get Apache to use

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Bob Lockie
--Original Message Text--- From: Michael Date: Fri, 26 Jul 2002 21:09:13 -0500 (EST) Hi, everyone. There MUST be some creative way to call a user-defined PHP function from an a href tag. Does anyone have any suggestions? For example:

Re: [PHP] File Browser like Win Explorer in php

2002-07-27 Thread Bob Lockie
On 27 Jul 2002 17:16:52 -0400, Reuben D. Budiardja wrote: Hi, I am wondering if anyone has created or know where I can get a code for browsing files and directory in using php in linux. The one I am looking for is file browsing capability that is similar to Window Explorer, meaning you can

Re: [PHP] php 'mail()' security

2002-07-27 Thread Bob Lockie
On Sat, 27 Jul 2002 17:31:16 -0700, Dennis Gearon wrote: How can I make my form which entered by a user, then sent to a company employee, secure, not vulnerable attack? -- - Joy is just a thing (to be).. raised on, Love is just the

Re: [PHP] How do I show the sourse code?

2002-07-27 Thread Bob Lockie
I have seen on some of the script-sites around some nice ways of presenting the source code. Often in nice colors. So, the natural question is: how is that done (cause I don't think anyone has the patience to put lt; and gt; around all the ) Probably some PHP wrapper that highlights the right

Re: [PHP] need help reg. User Accounts

2002-07-28 Thread Bob Lockie
Hi Gurus, I am using PHP-4.1.1 on Linux, I wanted to know the difference between nobody user and normal user of operating system. This question just came to mind when, neither nobody's directory nor any entry was not found in /home or elsewhere. The web server can be run by any user. The

Re: [PHP] php 'mail()' security

2002-07-28 Thread Bob Lockie
There is no substitute for good data verification such as strip_tags() or some regular expressions to limit valid input. I also would recomend checking the referrer to be sure someone doesn't hijack you form and try to modify it and submit it from a remote location. Here is an example: if

Re: [PHP] Mail Form

2002-07-30 Thread Bob Lockie
use a decent editor with syntax highlighting What is a free cross platform syntax highlighting editor? Are there any Open Source ones that you know of? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] web services and PHP

2002-07-30 Thread Bob Lockie
I'd like to know if it's possible to use PHP to develop and implement Web Services. If so, please point me to sites, articles, or tutorials that discuss this topic in more detail. Thanks. How do you define web services? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] web services and PHP

2002-08-01 Thread Bob Lockie
A'la ASP WebServices perhaps? Bob Lockie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd like to know if it's possible to use PHP to develop and implement Web Services. If so, please point me to sites, articles, or tutorials that discuss th

Re: [PHP] A Fond Farewell

2002-08-01 Thread Bob Lockie
Howdy List, Well, apparently we are no longer permitted to receive personal emails where I am working, so I'm afraid I'll have to part ways with the lot of you. It's unfortunate, considering I think this one of the best places to find information about PHP (and more!) on the internet. It

Re: [PHP] still need help with crash on make

2002-08-01 Thread Bob Lockie
Thanks, Tyler, I will if I have to, but is there someone out there who has done this on Linux? There are a bunch of people (I use 1.3.26) because Apache 2 support is experimental. Grab the latest source of Apache from CVS and it should work. cheers Kirk Tyler Longren [EMAIL PROTECTED] wrote

Re: [PHP] Undefined function: dbmopen() in loaded Windows binaries of PHP 4.2.1

2002-08-01 Thread Bob Lockie
Hello. Say me pls, are there method to enable DBM support in loaded Windows binaries of PHP 4.2.1? I have Fatal error: Call to undefined function: dbmopen() in ... my .php file... :(( I thought DBM files were only available on Unix. Recompile from source. -- PHP General Mailing List

[PHP] difference

2002-08-02 Thread Bob Lockie
What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. What is the performance difference from having register_globals turned off from having it turned on? I assume the default was changed

[PHP] mail problems

2002-08-02 Thread Bob Lockie
I can't get mail to work on my system. It always tries to send mail as the user 'nobody' which my Apache 1.3.26 runs as. phpinfo() reports I have the correct path to the php.ini file which specifies it is supposed to send as the user 'bob'. I have sendmail 8.12.5 and PHP 4.2.2 on the same

Re: [PHP] still need help with crash on make

2002-08-02 Thread Bob Lockie
Yes, there are many users they recommend to use apache 1.3.26 and php 4.2.2 ! What useful of CVS ? Apache2 is not supported yet. The latest version from CVS (Concurrent Version System) might work. If you don't have CVS then use Apache 1. :-) Bob Lockie wrote: Thanks, Tyler, I will if I have

Re: [PHP] Problems with HTML forms and PHP. Please Help !!

2002-08-02 Thread Bob Lockie
Is register_globals off in your php.ini? Try $var = $_REQUEST['var']; Hi! i have instaled PHP 4.2.2 in a slack 8.1 running apache 2.0.39. i have a proble with a very basic script (pass variables to a php script). Is seems not recieve variables, because print somthing like this: Your first name

Re: [PHP] ODBC

2002-08-02 Thread Bob Lockie
Can PHP be used on an Apache server (linux) to connect to a (remote) MS Access server (NT) through ODBC? Yes. If so, does anyone have examples of how this is done? Nope, never done it. It'll use the same PHP database commands probably. Read www.php.net -- PHP General Mailing List

[PHP] variables

2002-08-02 Thread Bob Lockie
What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP with forms

2002-08-02 Thread Bob Lockie
On Fri, 2 Aug 2002 12:14:51 -0500, Dave Leather wrote: Is there a way to read a FORM varaiable into PHP variable. The kicker here is the form variable is in a framed window. Example, I have my main page in a 2 part frame (90%/10%). The bottom 10% has a form on it called 'fileform' with one

Re: [PHP] variables

2002-08-02 Thread Bob Lockie
On Sat, 3 Aug 2002 12:19:15 +0800, Jason Wong wrote: On Saturday 03 August 2002 10:43, Bob Lockie wrote: What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']? I think the documentation says either can be used to do the same thing. $_REQUEST holds everything

Re: [PHP] Install

2002-08-03 Thread Bob Lockie
What is your configure command? I have followed the instructions to install php4 on both apache 1.3.x and 2.0.x, both fail. I am running RedHat 7.2, Apache 2.0.39. I am trying to install php4.2.2. When I type 'make install' at the command it goes through its little thing and then says:

[PHP] encoders

2002-08-03 Thread Bob Lockie
Can someone point me to some articles on PHP encoding? It would seem to me that making an interpreted language impossible to read an impossible task. Hard to read would be possible. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Protect PHP coding

2002-08-03 Thread Bob Lockie
My view on encoders is that they are unnecessary and rather evil. I would never ever purchase a php-based application that did not come with the php source code. If you want to restrict your code somehow, do it through a license. People who choose to violate that license are the same people

Re: [PHP] Re: starting Apache

2002-08-03 Thread Bob Lockie
Version 2 of Apache does not support PHP yet. Go back to version 1 and ask the list if you still have problems. I also received an error regarding libphp4.so when I tried to compile php 4.2.2 with apache 2.0.39 on Mandrake 8.1. Have not resolved it, even after asking several days ago on this

Re: [PHP] Re: [PHP-INST] RH7.3 + PHP-4.2.2 : make install -- [install-sapi] Error 1

2002-08-08 Thread Bob Lockie
- Original Message - From: Bob Lockie [EMAIL PROTECTED] Sent: Thursday, August 08, 2002 2:20 PM Subject: Re: [PHP-INST] RH7.3 + PHP-4.2.2 : make install -- [install-sapi] Error 1 Run 'rm config.cache' and 'make clean' before each compile. What's the method of getting

Re: [PHP] Cookie array

2002-08-10 Thread Bob Lockie
How can I stoor array in to a cookie ? Do I just define an array and stoore it in a cookie ? Yes. How do I access the data in the array then ? $_COOKIE['array element']; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Undefined variable: PHP_SELF

2002-08-15 Thread Bob Lockie
$_SERVER['PHP_SELF'] when globals are off. How about this: form method=post action='?php echo $PHP_SELF; ?' - Vic -Original Message- From: Manuel Ochoa [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:20 PM To: PHP General Subject: [PHP] Undefined variable: PHP_SELF I

Re: [PHP] HELP! php.ini file not read (was Php.ini on Solaris?)

2002-08-15 Thread Bob Lockie
Permissions. Php.ini is in correct location according to phpinfo() at /usr/local/lib, but it's not being read. Changed several options and saw no change with phpinfo(). Anybody got any ideas? TIA Thanks. I put it in /usr/local/lib and turned register_globals On (I plan on setting it off

Re: [PHP] Apache2

2002-08-16 Thread Bob Lockie
Upgraded to Apache2, and now most of my php scripts won't work. No error msg att all, just that nothing happens. Guess I missed some standard security setting, got any clues to this newbie? What does phpinfo() say? What does httpd -l say? -- PHP General Mailing List (http://www.php.net/)

[PHP] syntax highlighting in Apache2

2002-12-10 Thread Bob Lockie
I just installed the latest release Apache2 and PHP. It seems to work correctly but I've noticed one difference. The old server syntax highlights when I load a PHP source file but the new one is just plain BW text. -- Sent from Mozilla and GNU/Linux --

[PHP] POST vs GET method

2003-01-22 Thread Bob Lockie
PHP Version 4.3.0 Apache 2.0.43 I am having a problem with a post method. GET method: _REQUEST['name']=value _GET['name']=value _POST['name']= POST method: _REQUEST['name']=valuename=value _GET['name']= _POST['name']=valuename=value I assumed that by using _REQUEST that I could use

Re: [PHP] POST vs GET method

2003-01-23 Thread Bob Lockie
today. http://www.phparch.com/ -Original Message- From: Bob Lockie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 10:33 PM To: php-general Mailing List Subject: [PHP] POST vs GET method PHP Version 4.3.0 Apache 2.0.43 I am having a problem with a post method. GET

[PHP] HTML if no PHP

2003-02-04 Thread Bob Lockie
I want to display an HTML page if PHP can't load an include file or otherwise has an error or just doesn't work. How do I do this? -- Sent from Mozilla and GNU/Linux. Powered by an AMD processor. -- PHP General Mailing List (http://www.php.net/) To

[PHP] include

2003-02-04 Thread Bob Lockie
I don't appear to be able to use this variable in an include directive because the variable is empty: include $_SERVER['DOCUMENT_ROOT'] Do I have the syntax incorrect? -- Sent from Mozilla and GNU/Linux. Powered by an AMD processor. -- PHP General

Re: [PHP] include

2003-02-04 Thread Bob Lockie
On 02/04/03 13:16 Philip Olson spoke thusly On Tue, 4 Feb 2003, Bob Lockie wrote: I don't appear to be able to use this variable in an include directive because the variable is empty: include $_SERVER['DOCUMENT_ROOT'] Do I have the syntax incorrect? Please post the exact syntax as you did

[PHP] passing parameters to include

2004-03-04 Thread Bob Lockie
I want to pass a parameter to an include file. I know I can do what I want with a function but I'd rather do it with an include. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what is the preferred method for outputting HTML?

2004-05-21 Thread Bob Lockie
PERL has the CGI library to build HTML. print header; print start_html('A Simple Example'), h1('A Simple Example'), start_form, What's your name? ,textfield('name'), p, What's the combination?, p, checkbox_group(-name='words',

Re: [PHP] session_start in php 4.3.6

2004-05-21 Thread Bob Lockie
On 05/21/04 16:08 Michael R. Wayne spoke: On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote: Hi All my web sites suddenly stopped working after my ISP installed the newer php 4.3.6 released. The problem is when calling the session_start() function. It seems that the warning message

[PHP] include $var

2004-05-21 Thread Bob Lockie
Should 'include $var;' work? I need go to an HTML page after the form has been submitted. page A - program B (no output) - page A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] other eyes

2004-05-24 Thread Bob Lockie
I can't see it. Maybe other eyes will help. :-) Why does search_username.1 show the data that was posted with the form but search_username.2 is empty? $search_usename = $_REQUEST[search_username]; echo search_username.1='$_REQUEST[search_username]'; echo

Re: [PHP] other eyes

2004-05-24 Thread Bob Lockie
Thanks to all who responded. Doh to me. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] interesting

2004-05-25 Thread Bob Lockie
echo \ . $search_for_list[$i][0] . \ works but echo \$search_for_list[$i][0]\ prints Array[0]. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
I tried this HTML: input name=deleteID value=1 type=checkbox input name=deleteID value=2 type=checkbox $_REQUEST['deleteID'] === the last box checked. so I did a google search and changed my HTML to: input name=deleteID[] value=1 type=checkbox input name=deleteID[] value=2 type=checkbox Now the

Re: [PHP] multiple checkbox help

2004-05-31 Thread Bob Lockie
Thanks to all those who responded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] duplicating a row

2004-05-31 Thread Bob Lockie
I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution that can be made easily portable to other databases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: duplicating a row

2004-05-31 Thread Bob Lockie
On 05/31/04 11:42 Craig spoke: http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to duplicate a row (back it up - copy to a table with the same schema) regardless of the table schema. This in MySQL but I need a solution

[PHP] shortcut if

2004-05-31 Thread Bob Lockie
No syntax error but this always returns 's'. $add = $delete_count 0 ? s : x; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to verify that data is in a blob?

2004-06-01 Thread Bob Lockie
On 05/31/04 15:44 [EMAIL PROTECTED] spoke: I want to verify that there is data (doesn't matter whether it's valid data or not) inside a MySQL blob using a PHP function. How do I do this? Thanks!! What characteristic defines a blob? -- PHP General Mailing List (http://www.php.net/) To

[PHP] session variables

2004-06-01 Thread Bob Lockie
$_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables

2004-06-01 Thread Bob Lockie
On 06/01/04 22:12 John Nichel spoke: Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? That was my problem. I reorganized

[PHP] other browsers

2004-06-07 Thread Bob Lockie
I've got this psuedo code that works in the Mozilla browser but does not work in IE or Opera or Konqueror. The input type isn't passing a request name or value and I have a few buttons and I use the name passed to determine with button was pressed. The PHP related thing !DOCTYPE HTML PUBLIC

[PHP] passing a function as a parameter

2004-06-11 Thread Bob Lockie
I want to pass a function as a parameter and execute it in another function. A callback. :-) For example: function a() { echo a; } function b( $func ) { func(); echo b; } The output of b( a ) will be ab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: passing a function as a parameter

2004-06-11 Thread Bob Lockie
Take a look at call_user_func(): http://de3.php.net/manual/en/function.call-user-func.php Thanks, I have it working. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] testing array_search

2004-06-11 Thread Bob Lockie
I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo j= . $j; if (($j != false) ($j = 0)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] testing array_search

2004-06-11 Thread Bob Lockie
On 06/11/04 17:17 Curt Zirzow spoke: * Thus wrote Bob Lockie ([EMAIL PROTECTED]): I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo j= . $j; if (($j != false) ($j = 0)) { snip mixed array_search ( mixed needle, array haystack [, bool strict]) Searches

[PHP] Header target?

2004-06-11 Thread Bob Lockie
Is it possible to specify the target frame in a Header call? I have a form that submits in one frame and I want it to redirect to another frame in some cases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Header target?

2004-06-14 Thread Bob Lockie
On 06/12/04 19:05 Kim Steinhaug spoke: Steve Douville had a long answer, the short answer : no Ok, thanks. I want to avoid relying on Javascript anyways. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] update count

2004-06-16 Thread Bob Lockie
What is the best way to only do an update if it going to update only one row? I want to protect my code so that it won't accidentally update more than one row. I can do a select first but there must be an easier way. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] update count

2004-06-16 Thread Bob Lockie
What is the best way to only do an update if it going to update only one row? You don't say what database you're using. The general way is to use a unique key in the WHERE clause. UPDATE tablename SET foo=1 WHERE id=123 MySQL also lets you use a LIMIT clause that will either limit the number

[PHP] internal server error

2004-06-18 Thread Bob Lockie
I'm getting an 'Internal Server Error' when I run: http://216.15.235.3/cgi-bin/testphp.php I've added AddType directives, this is not my first install of PHP but it is my first install with the latest versions. Is anybody using the php-install mailing list? I got tons of SPAM when I posted

Re: [PHP] internal server error

2004-06-18 Thread Bob Lockie
On 06/18/04 14:24 Marek Kilimajer spoke: What installation instructions did you follow. Did you install cgi or module version? I fixed it, I had the test file in the cgi-bin directory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php