I have a string that can be any length and contain any
number or words. Each string also has, somewhere
near end, a list of parameters that can begin with any
number of five or six different parameter markers. I
need to find the position of the first of these
parameters markers, which can be in
This is driving me nuts. I really tried to figure it out
myself. I have a form for creating a table. The form
fields have field_name field_type field_length, and
checkboxes for not_null, auto_increment and primary.
When I check the primary key checkbox it always makes
the first field the primary
php-general Digest 2 Mar 2001 19:06:19 - Issue 543
Topics (messages 42302 through 42383):
Re: Munging hidden/form variables
42302 by: php3.developersdesk.com
42303 by: php3.developersdesk.com
42307 by: Harshdeep S Jawanda
42324 by: Christian Reiniger
How can I turn off safe_mode using php.ini with php4.0.3pl1? All this doesn't work:
safe_mode="off"
safe_mode=off
safe_mode="0"
safe_mode=0
safe_mode="Off"
safe_mode=Off
Anyone has an idea?
Leon Mergen
[EMAIL PROTECTED]
President of Technical Operations
BlazeBox, Inc.
ICQ: 5567
Hello,
I'm running RH 7 and Apache. I have the latest version of PostgreSQL and it
is installed and running correctly. I have installed PHP with the
--with-pgsql and it seems to install everything needed, but when I try to
use pg_connect() it fails to connect. Any ideas what I can do?
Than
Jeff:
You're talking about sessions, for the most part.
Sessions are nice, as you can efficiently handle things like arrays with
10,000 items of 200 bytes each without doing something extremely stupid like
sending the user The Cookie From Hell (assuming a 2M cookie is even legal -
I forget if
Other than the fact you cannot overwrite them (which helps with
carelessness), is there any real benefit to declaring a CONSTANT over just
defining a variable? In typical compiled programs, I believe constants or
macros don't load into the symbol table, thus reducing memory requirements
for t
Shouldn't the primary key spec come at the end of the
table create command, not in the middle ex...
CREATE TABLE president (
last_name varchar(15) NOT NULL,
first_name varchar(15) NOT NULL,
suffix varchar(5) NOT NULL,
city varchar(20) NOT NULL,
state varchar(2) NOT NULL,
birth date NULL,
death da
Is this following due to a bug in either Payflow Pro SDK or in PHP or my
messup? It just seems to odd that the warning is for pfpro_version and then
the configtest fails because of pfpro_version. Here are the errors and code
it is using:
When making PHP
root@server5:/usr/local/phpApach
Simon:
Thanks for the SHMEM heads-up. It's defiantly a step up in efficiency/speed
than calling the databases, however, I wonder about the overhead of loading
and unserializing on every page. Another issue is portability -- while the
servers here are MacOS X and Linux-based, future systems may
On Fri, 02 Mar 2001 13:49:17 -0600, Michael David
([EMAIL PROTECTED]) wrote:
>Jeff:
>
>You're talking about sessions, for the most part.
I might be wrong but I think he's talking about setcookie(), for
which the docs are here:
http://www.php.net/manual/en/function.setcookie.php
meaning that the
Maybe somebody here might be able to help me so I am forwarding this.
TIA,
Paulo
- Original Message -
From: Paulo Parola
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 4:31 PM
Subject: [GENERAL] libpq.so.2.1 needed by php-pgsql-4.0.1pl2-9
Hi,
I am running Redhat 7.0 with PHP
andrei Fri Mar 2 12:22:14 2001 EDT
Modified files:
/php4/ext/standard basic_functions.c
Log:
@- Forced call_user_method() and call_user_method_array() to take the
@ object argument by reference. (Andrei)
* Forced call_user_method() and call_user_method_arr
Hi,
When I run the code:
I got error message:
Fatal error: Call to unsupported or undefined function mysql_connect() in
...
HELP!
Thanks in advance,
Sharon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
At 12:48 PM 03/02/2001 -0700, Joe wrote:
>is there any real benefit to declaring a CONSTANT over just defining a
>variable?
The fact they can't be overwritten makes them more appropriate for true
constants, absolutely no way to change their values. I frequently use them
in include files to se
Try this... You need to set a variable for the connection. Also you might
be careful when sending examples of your code as you have given everyone on
this list your username/password to your database.
";
exit;
}
?>
-Original Message-
From: Shaohua Qu [mailto:[EMAIL PROTECTE
Quick example...
CREATE TABLE user (
userid int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
usergroupid smallint(5) unsigned DEFAULT '0' NOT NULL,
username varchar(50) NOT NULL,
password varchar(50) NOT NULL,
email varchar(50) NOT NULL,
parentemail varchar(50) NOT NULL,
nn = dummy;
@@ -272,14 +265,16 @@
if (msg->c == 0) return;
if (conn->fd != -1) {
+#if defined(IRCG_API_VERSION) && IRCG_API_VERSION >= 20010302
+ irc_write_buf_append_ex(&conn->wb, msg, 0);
+#else
irc_write_buf_append(&conn->
I am building an account manager for my web hosting clients in which they
can edit thier information, etc only I do not want to display the entire
credit card number on the site. Instead I would like to replace the last 4
numbers with a * if possible. Can anyone assist me with the code to
You could split the card number into groups of 4 digits and. in the form, make the
last one .
This would do what you need.
Chris
WreckRman2 wrote:
> I am building an account manager for my web hosting clients in which they
> can edit thier information, etc only I do not want to display
Hi,
O.k. this is of the top of my head, but you should get the point.
For more info refer to
http://www.php.net/manual/en/function.substr.php .
What you're doing is extracting the first 12 number and adding "" to the
end of that string. Hope it helps.
Mike
-Original Messa
Excellent, thank you very much...
-Original Message-
From: Krznaric Michael [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 4:32 PM
To: 'WreckRman2'; PHP List Post
Subject: RE: [PHP] Replace last 4 of 16 with
Hi,
O.k. this is of the top of my head, but you should g
andrei Fri Mar 2 13:48:11 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
Allow changelog script commit access.
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.108 CVSROOT/avail:1.109
--- CVSROOT/avail:1.108 Fri Mar 2 07:05:45 2001
+++ CVSROO
On Fri, 2 Mar 2001, PHP development @echospace wrote:
> I remember being able to compile, but not use pspell on a RH7 machine. Never had
>time to look into it. Maybe now I will. Compile problems might be due to the fact
>that gcc 2.96 is behaving oddly - I couldn't compile half the things with
Thanks for the nice report - I'll know what to suggest to those who ask in the future.
I've heard of somewhat similar problems with aspell on other platforms, and yet have
to figure out how to work around them:(
One thing I noticed after I replied to you: after you compile pspell and aspell, yo
Hello all (first post for me!):
I've been running into problems when testing PHP scripts on Netscape (when
MSIE works fine).
First problem (SOLVED) was that Netscape does something funny with the
$PHP_SELF environmental variable, so I've learned to circumvent the problem
by just hard-coding the
okay I want to have the user submit multiple values in a text form field
ex
day,night,month
How do I take that data and break it apart into separate variables?
thanks
randy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
I have script that generates a pdf width some text and two images in it. One
of the images is just a header and works fine. The other is a photo, now,
this sometimes works and sometimes doesn't. I can't figure out why.
When the photo doesn't appear I eventually get a box saying something like
"A
andrei Fri Mar 2 15:46:09 2001 EDT
Modified files:
/CVSROOTloginfo.pl
Log:
Send only php4 changelog commits to php-cvs list.
Index: CVSROOT/loginfo.pl
diff -u CVSROOT/loginfo.pl:1.39 CVSROOT/loginfo.pl:1.40
--- CVSROOT/loginfo.pl:1.39 Fri Dec 22 17
I just installed a Sybase_CT module in php 4.0 on a linux machine. I'm
trying to move a web site from a buggy and crashy NT box but I'm having
trouble with the mssql_result call.
This is what i get.
Warning: 2 is not a valid Sybase result resource in
/var/www/html/crap.php on line 54
Line 54 r
Hi, All,
I am stucked here.Would you please help as soon as you can?
LiveDate = "Mar 12,2001"
how to convert it to a int?
mktime(0,0,0,?,?,?)
Because the LiveDate is changable, I could't put a 3,12,2001 in the mktime.
Thanks a lot.
Fang
--
PHP General Mailing List (http://www.php.net/)
To
Well if you have a consistent format (like Month Day, FullYear) then you could
do this:
function get_unix_stamp($date)
{
$months = array('Jan' => 1,'Feb' => 2,
'Mar' => 3,'Apr' => 4,
'May' => 5,'Jun' => 6,
'Jul' => 7,'Aug' => 8,
look at the explode or split functions in the php help
docs
--- Randy Johnson <[EMAIL PROTECTED]> wrote:
> okay I want to have the user submit multiple values
> in a text form field
>
> ex
>
> day,night,month
>
> How do I take that data and break it apart into
> separate variables?
>
> than
So sprach Fang Li am Fri, Mar 02, 2001 at 06:58:45PM -0500:
> Hi, All,
> I am stucked here.Would you please help as soon as you can?
>
> LiveDate = "Mar 12,2001"
>
> how to convert it to a int?
$months = array( "Jan" => 1,
"Feb" => 2,
..
ok your experiencing some very strange errors. I would love to comment on the PHP_SELF
thing, if you want me to I'll email you.
do you have php configured with --trans-sid? is the cookie PHPSESSID being set on the
client? is the SID being transfered on all non-full urls when cookies are not b
andrei Fri Mar 2 15:47:03 2001 EDT
Modified files:
/CVSROOTloginfo.pl
Log:
Change the test a bit.
Index: CVSROOT/loginfo.pl
diff -u CVSROOT/loginfo.pl:1.40 CVSROOT/loginfo.pl:1.41
--- CVSROOT/loginfo.pl:1.40 Fri Mar 2 15:46:08 2001
+++ CVSROOT/log
you mean sessions? cookies are client side, sessions are server side (with assistance
from cookies or url re-writing)
http://php.net/manual/en/ref.session.php
should have more then enough information, phpbuilder also has a few articles.
--
Chris Lee
Mediawaveonline.com
ph. 2
I found where the problem stems from after correcting a couple
items per your example but still don't know why it won't work.
It comes from using checkboxes in the form for PRIMARY KEY,
AUTO_INCREMENT and NOT NULL or NULL. When I use checkboxes
like this:
it totally messes up the query. But
>[root@atlas PostgreSQL]# rpm -ivh php-pgsql-4.0.1pl2-9.i386.rpm
>error: failed dependencies:
>libpq.so.2.1 is needed by php-pgsql-4.0.1pl2-9
>2) Create some symlink? Currently I have at /usr/lib the following files:
>lrwxrwxrwx1 root root 12 Mar 1 11:17 libpq.so ->
l
http://www.php.net/manual/en/function.strtotime.php
No need to code it yourself, just say $timestamp = strtotime($livedate)
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by em
sterlingFri Mar 2 17:06:55 2001 EDT
Modified files:
/php4/ext/curl curl.c
Log:
add a warn not available for curl_getinfo().
remove unneccessary error checking.
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.38 php4/ext/curl/cur
Hey,
Wondering if any of you can help me with a problem
im trying to get something like this into $var :
blah "blah" blah
How can I do it if its multi lined
Someone suggested
content = END <<
BLAH BLAHC
BLHAC
END;
but that doesnt seem to work with quotes
Thanks
- Peter
--
PHP General Ma
From: <[EMAIL PROTECTED]>
> Hey,
>
> Wondering if any of you can help me with a problem
>
> im trying to get something like this into $var :
>
> blah "blah" blah
>
> How can I do it if its multi lined
>
> Someone suggested
> content = END <<
> BLAH BLAHC
> BLHAC
> END;
>
> but that doesnt
From: <[EMAIL PROTECTED]>
> Unfortunatly thats not an option since some dumb founded people will be
using
> the script and they dont understand that concept...
>
> any other suggestions?
>
> - Peter
Okay, a heredoc may be better then:
blah "blah" blah
END;
echo $title;
?>
The syntax in yo
A couple resources to help :
http://www.php.net/manual/en/language.types.string.php
http://www.zend.com/zend/tut/using-strings.php
Each describes the ability to do :
$var = 'blah "blah" blah';
$var = "blah 'blah' blah";
$var = "blah \"blah\" blah";
And using here doc, <<< , like so
have you checked phpinfo() to make sure that pgsql support is actually
compiled in? if so, any errors on connection, or just silently fails?
On Fri, 2 Mar 2001, K Old wrote:
> Hello,
>
> I'm running RH 7 and Apache. I have the latest version of PostgreSQL and it
> is installed and running cor
hey,
given a directory structure like
$DOCUMENT_ROOT/2001/03/02 (where 02 is a file in dir 03/
which obviously represents a date, i would like to implement a page
such as latest.php, which will go to $DOCUMENT_ROOT, list all the
directories, sort them numerically, choose the largest, chdir,
Addressed to: <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from <[EMAIL PROTECTED]> Fri, 2 Mar 2001 15:59:55 -0500
>
> Hi,
>
> When I run the code:
>
>mysql_connect ("LOCALHOST","webmaster2","hironsc0");
> ?>
>
> I got error message:
> Fatal error: Call to unsupp
Hi
I have an account on a hosting service provider.
They have a server with a lot of clients... and there, each client has his own
Apache binary compiled with PHP 4.
They also offer MySQL... but they only have ONE server for all their customers,
and so, they just offer one db to each one.
I ne
Addressed to: Floyd Baker <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from Floyd Baker <[EMAIL PROTECTED]> Thu, 01 Mar 2001 16:39:23 -0500
>
>
>
> Hi.. We have a city map using co-ordinates to link to specific info on various
> buildings, etc. The links bring up an info
hello.
i'm having a little bit of problems with a little mysql table i'm using. the
table has no primary key nor index nor nothing.
i was wondering if it's possible to select the last inserted record of a
table with this characteristics.
i've been trying but with no good results.
thanks for al
I think the second line is right, but I suggest to add space before and
after equal sign, if it is not working may be somethink else make the
problem.
safe_mode = off
-Original Message-
From: Leon Mergen [mailto:[EMAIL PROTECTED]]
Sent: 03 March, 2001 4:36 AM
To: [EMAIL PROTECTED]
Subjec
Hello,
need some help. i need to take an HTML file that is written by a user in a
very bad format, for instance:
Hi!
and get the following:
Hi!
i tried to look at "strip_tags" but then it only returns me:
Hi!
thanks in advance/erick
---
Outgoing mail is certified Virus Fre
Hi Erick,
@ 12:22:39 AM on 3/3/2001, [EMAIL PROTECTED] wrote:
> i tried to look at "strip_tags" but then it only returns me:
http://www.php.net/manual/en/function.strip-tags.php
string strip_tags (string str [, string allowable_tags])
"Note: Allowable_tags was added in PHP 3.0.13, PHP4B3."
sbergmann Fri Mar 2 22:35:25 2001 EDT
Modified files:
/php4/pear/BenchmarkTimer.php
Log:
Whitespace only.
Index: php4/pear/Benchmark/Timer.php
diff -u php4/pear/Benchmark/Timer.php:1.7 php4/pear/Benchmark/Timer.php:1.8
--- php4/pear/Benchmark/Tim
sbergmann Fri Mar 2 22:36:45 2001 EDT
Modified files:
/php4/pear/BenchmarkIterate.php
Log:
Use call_user_func_array() in order to profile functions that take arguments.
Index: php4/pear/Benchmark/Iterate.php
diff -u php4/pear/Benchmark/Iterate.ph
sbergmann Fri Mar 2 22:55:06 2001 EDT
Modified files:
/php4 php.ini-dist
Log:
Added some more Win32 extension DLLs.
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.68 php4/php.ini-dist:1.69
--- php4/php.ini-dist:1.68 Thu Feb 1 07:41:02 2
Hi,
I'm sorry for this OT question, but I need to configure
apache to emit 503 accross the whole server _except_ in
two directories. I thought I'd use
RedirectMatch 503 ^/(?!docs|error)
but Apache fails to start with "Regular expression could
not be compiled." It doesn't grok the assertion.
php-general Digest 3 Mar 2001 07:07:50 - Issue 544
Topics (messages 42384 through 42428):
Problem getting PostgreSQL to compile
42384 by: K Old
42419 by: The Hermit Hacker
Safe mode?
42385 by: Leon Mergen
42425 by: Asep Dindin
Re: server side cookies
sbergmann Fri Mar 2 23:31:43 2001 EDT
Modified files:
/php4 php.ini-dist
Log:
Whitespace Fixes. Added another Win32 extension DLL. Removed configuration for
non-existent debugger.
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.69 php4/php.in
sbergmann Fri Mar 2 23:37:18 2001 EDT
Modified files:
/php4 php.ini-dist
Log:
Whitespace only.
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.70 php4/php.ini-dist:1.71
--- php4/php.ini-dist:1.70 Fri Mar 2 23:31:43 2001
+++ php4/php.ini-
hi dave,
i usually do this from entries in a database
but it should also work this way with an array
// first make an array holding all the cities
$myTowns = array("London","New York","HongKong","Johannesburg");
$ArrayElements = 4;
this is now creating the dropdown-box:
".$tacco."";
spages Fri Mar 2 23:58:31 2001 EDT
Modified files:
/php4/ext/cybermut cybermut.xml
Log:
- modified line 161 to be xml compliant
Index: php4/ext/cybermut/cybermut.xml
diff -u php4/ext/cybermut/cybermut.xml:1.1 php4/ext/cybermut/cybermut.xml:1.2
--- php4/ext/c
101 - 163 of 163 matches
Mail list logo