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
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 there.
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 o
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: ht
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
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
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)) {
mixed array_search ( mixed needle, array haystack
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
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
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: ht
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
Mozilla passes:
Request v
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
$_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
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 unsubscribe
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
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 My
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: http://www.php.net/unsub
Thanks to all those who responded.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I tried this HTML:
$_REQUEST['deleteID'] === the last box checked.
so I did a google search and changed my HTML to:
Now the code:
for ($i = 0; $i < count($_REQUEST['deleteID']); $i++){
echo "deleting '" . $value . "'";
}
has the right count but how do I get the values out?
--
PHP General Ma
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
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
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 "search_username
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
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 sa
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',
-values=>['eenie','m
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
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
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 Mai
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 uns
copy
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.
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 eithe
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 B&W text.
--
Sent from Mozilla and GNU/Linux
--
>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.
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
>>
$_SERVER['PHP_SELF'] when globals are off.
>How about this:
>
>
>
>- 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 keep getting "Undefined variable:
>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
>I receive this when I try to send an e-mail.
>All works fine until yesterday and my script is the same.
>Could u tell what is the problem?
>CGI Error
>The specified CGI application misbehaved by not returning a complete set of HTTP
>headers. The headers it did return are:
What does your httpd l
>- 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'
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
>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 peopl
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
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:
>
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
>&
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 on
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
>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 Lis
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
>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:
>
>> &g
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 RedHat
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 for
>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 L
>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 PROTECTE
>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.
>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
>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, vi
>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
>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
>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.
>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 < and >
>around all the <>)
Probably some PHP wrapper that highlights the right p
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 jus
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 e
--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 tag. Does anyone have any suggestions?
For example:
=
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 Apac
>[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 th
>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
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:
>[notic
>>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:// ..
>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]
&g
e mail is
>sent if it's 0 then u have an error
How can I see what the error 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 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 sur
70 matches
Mail list logo