List,
I'm getting this error and I don't know why...can someone please help out?
// Message on my web page
Warning: Undefined index: mode in /var/www/html/inc/header.php on line 3
// My Script Here
1: http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
List,
The following code is erroring for me and I can't figure out why
$db = odbc_connect("something", "something", "passwd");
printf("%s", $db); // Prints ID 1
// Hangs here it looks like
$rs = odbc_exec($db, "spGetItems");
// Never gets here
while(odbc_fetch_row($rs)) {
printf("
List,
Has anyone done this before? I got it to work for my root account on my
computer but I cannot get access from my PHP scripts when I run under
the "apache" user? What the dilly yo?
Setup:
RH7.3
PHP4
unixODBC
freeTDS
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
List,
I think I saw this one on here before...when reading/writing the database
I get this when executing odbc_exec(...); What was the fix?
FATAL: emalloc(): Unable to allocate 1073784417 bytes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Wow, Thats what that means? There must be some error. The procedure
I'm trying to run doesn't return that much data and it will run via
'isql'. Anything else I should check?
/B
Lazor, Ed wrote:
> wow, 107megs of ram in one process is impressive. Have you checked your
> php.ini max memory s
> The problem I have is with a page I build dynamically. The
> whole page is encased in tags. In between these tags
there
> are sections echoed as a result of a databasse query. Each of these
> sections is a form.
>
>
>
>
>
> dynamic content
>
>
> dynamic content
>
List,
I'm using a postgres datbase for my PHP project, how do I make stored
procedures? Or if no SPs then what would be recomendation for building
simple/reuseable "Put" and "Get" procedures for my data?
/B
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
1;
y ALIAS FOR $2;
z ALIAS FOR $3;
BEGIN
INSERT INTO tableA (colX, colY, colZ) VALUES (x, y, z);
RETURN 1;
END
' LANGUAGE 'plpgsql';
Good Luck
David Busby wrote:
> List,
> I'm using a post
st.
How do you get a file to be edited, and then automatically returned to
the server by M$ Word in it's changed format. Is this possible?
How would this change in a database-backended system (including the
files as BLOBs)?
Thanks
David R
--
PHP General Mailing List (http://www.php.
On Tue, 9 Jul 2002 22:09:58 -0400 (EDT), you wrote:
>Is there any way to hide my form submitted variables (like
>passwords etc)
>in the location
>bar "http://somedomain.org/checkpassword.php?
>password=mypassword"
>or atleast show in an encypted form n the location bar.
You could use POST rather
On Tue, 9 Jul 2002 15:05:21 -0300, you wrote:
>I have the PHP manual in my PDA but its extraordinary large to search
>for a function. Does anybody know a Functions list that I can download
>for my PDA? Im looking for something which shows the function and a
>short description of what it works fo
On Tue, 9 Jul 2002 16:31:50 -0230, you wrote:
>> http://www.coop.mun.ca/verification.php
>>
>> Try and Type in any Name... As it should simply
>> Step through the Database not find it and Respit the Page...
>> However this does not happn...
>>
>> Please Help...
>>
>> if (function_exists(odbc_fet
"An eye for an eye makes the world go blind." Mahatma
Gandhi
I think we should just kick him out of the list.
Notify his ISP and black list him on the web.
David
--- Steve Bradwell <[EMAIL PROTECTED]> wrote:
> agreed.
>
> -Original Message-
> From: Rick Em
On Wed, 10 Jul 2002 13:14:44 +0100, you wrote:
>I've got an application that requires dos folder names (8.3 standard) as
>input.
>
>I also have PHP, which quite happily can cope with both.
>
>Can someone help me write a function to translate full paths to dos paths
You may have to drop down to C
On Wed, 10 Jul 2002 13:35:50 +0100, you wrote:
>"David Otton" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> On Wed, 10 Jul 2002 13:14:44 +0100, you wrote:
>>
>> >I've got an application that requires
On Wed, 10 Jul 2002 15:53:36 +0100, you wrote:
>I want to create a form, similar to an invoicing system that generates a
>word document that the user can print out
You may have better luck with RTF
(http://www.phpbuilder.com/columns/nair20020523.php3) or PDF
(http://www.php.net/manual/en/ref.cpd
On Wed, 10 Jul 2002 16:13:53 +0100, you wrote:
>"David Otton" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> On Wed, 10 Jul 2002 15:53:36 +0100, you wrote:
>> >I want to create a form, similar to an invoicing s
On Wed, 10 Jul 2002 11:33:52 -0400, you wrote:
>
>"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Thanks a million!!!
>> > Didn't I read the article somewhere on PHP.net that said that? Using
>> > fopen() to open a file, does it attempt to c
Is their 1 function method to remove an element within an array using its
key instead of its position within the element?
I am looking for a substitution for placing removing an element without
having to make another array just to list all the array elements and then
using that to specify where t
to splice.
"David Duong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is their 1 function method to remove an element within an array using its
> key instead of its position within the element?
>
> I am looking for a
I am not quite sure but this will do the trick:
http://64.4.14.24/spacer.gif\"; width=1 height=2>";
$fixedfile=preg_replace("/src=[^>]*?>/","src=\"\">",
$fixedfile);
#preg_replace("/[search]/","[replacement]",[string]);
exit ($fixedfile);
?>
I have made some differences from what you were tryi
List,
I'm trying to set a cookie like this:
http://".$_SERVER['SERVER_NAME'].$to."\n");
header("Set-Cookie: sid=$sid;\n\n");
exit();
}
}
function login() {
[... validation code here ...]
// set my cookie
setcookie("sid", $sid);
Read your data from $_COOKIE not $_COOKIES.
David Busby wrote:
> List,
> I'm trying to set a cookie like this:
> function redirect() {
> if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) {
> $to = func_get_arg(0);
>
Go to http://www.cs.tut.fi/~jkorpela/forms/file.html; It gives an example.
Press Find on Page (ctrl+F for Internet Explorer) and type in "Style Sheet",
you should find what you are looking for by reading the paragraph and any
below that concern Style Sheet.
For more info about Style Sheets do a
On Thu, 11 Jul 2002 12:08:59 +0100, you wrote:
>Is there an easy way to get an array of characters from a string?
$str = 'string';
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);
from
http://www.php.net/manual/en/function.preg-split.php
djo
--
PHP General Mailing
On Thu, 11 Jul 2002 21:00:36 +1000, you wrote:
>How do I output a static image through a php script?
>
>it had something to do with headers but I can't remember exactly what.
You need to output the correct content-type header for the image (eg
image/gif), take it's size and output it as content-
On Thu, 11 Jul 2002 13:50:59 +0200, you wrote:
>> >Is there an easy way to get an array of characters from a string?
>> $str = 'string';
>> $chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
>> print_r($chars);
>
>A string is already an array of chars :
>$toto="test";
>echo $toto[0]; // pr
On Thu, 11 Jul 2002 22:01:03 +1000, you wrote:
>> You need to output the correct content-type header for the image (eg
>> image/gif), take it's size and output it as content-length, and
>> suppress error reporting. Then output the image data.
>There was a much simpler way. It just said the locat
On Thu, 11 Jul 2002 11:25:50 -0400, you wrote:
>Is there anyway to automate this, so that when a page loads it automatically
>goes to the first field, and 'highlights' the entry area? (Btw, I tried
>'tabindex=1' but it still does not do what I'd like it to.
Javascript, not PHP. Look up the foc
List,
I'm using PG functions like below and I'm wondering how to get rid of
that dang Warning message? PHP.ini setting? or can I turn on/off error
checking?
$rs is the result from pg_exec() (inside the other function)
[PHP Code]
$rs = get_database_stuff("list");
$irow = 0;
while ($ec
List,
Has anyone built Functions (or Stored Procedures) in PostgreSQL that can
return a dataset? I would like to contain my login in PostgreSQL (like
I did on M$-SQL) and call it from my PHP script (like I did with ASP).
Ex:
$rs = pg_exec($db, "someprocname")
while ($rec = pg_result_ob
om older versions would continue operative in the new. FORTRAN 77
> to FORTRAN 90. I think the developers of PHP ought to consider why the
> developers of FORTRAN thought that might be a good thing to do. It is still
> used to this day. Write a FORTRAN 77 prog and it will compile and run
> Greetings, this may be simple, but it's late and my brain
> needs a hand.
>
> I have a string such as "first,second,third,fourth"
>
> I need a way to take each one of the items separated by the
> comma to be an item in an array.
Check out explode() and I think you'll find what you n
List,
I'm creating a PHP/pgSQL web site...I need to execute queries with a
cursor and get their result set into my PHP script. How can I make a
pgSQL procedure with logic that also returns a result set? I've
searched and searched but cannot find the answer. Does anyone got it?
/B
> Which method is the best way to store date/time in MySQL and
> then which PHP
> command is the best to use to convert that date to something
> useful?
Get comfortable with MySQL's date functionality and you'll find that you
don't often need to do the date comparisons and manipulation in
Hi all,
I can manage this script to work.
Js warn about listid[], he doesnt like [] in a var name !
Php needs them to collect an array from form checkboxes.
Here is my source :
Title here!