[PHP] Splitting a complex string problem

2001-03-02 Thread rm
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

[PHP] MySQL Create Table Problem

2001-03-02 Thread Jeff Oien
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 -0000 Issue 543

2001-03-02 Thread php-general-digest-help
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

[PHP] Safe mode?

2001-03-02 Thread Leon Mergen
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

[PHP] Problem getting PostgreSQL to compile

2001-03-02 Thread K Old
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

[PHP] Re: server side cookies

2001-03-02 Thread Michael David
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

[PHP] benefit of constants

2001-03-02 Thread Joe Sheble (Wizaerd)
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

Re: [PHP] MySQL Create Table Problem

2001-03-02 Thread rm
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

[PHP] Is this my error or a bug?

2001-03-02 Thread Robert Covell
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

Re: [PHP] Declaring SERVER-WIDE Variables & UNSERIALIZE overhead

2001-03-02 Thread Michael David
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

Re: [PHP] Re: server side cookies

2001-03-02 Thread Mark Maggelet
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

[PHP] En: [GENERAL] libpq.so.2.1 needed by php-pgsql-4.0.1pl2-9

2001-03-02 Thread Paulo Parola
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

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c

2001-03-02 Thread Andrei Zmievski
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

[PHP] Connection error

2001-03-02 Thread Shaohua Qu
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

Re: [PHP] benefit of constants

2001-03-02 Thread Phil Glatz
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

RE: [PHP] Connection error

2001-03-02 Thread David Smith
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

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread David Smith
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,

[PHP-CVS] cvs: php4 /ext/ircg ircg.c

2001-03-02 Thread Sascha Schumann
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->

[PHP] Replace last 4 of 16 with ****

2001-03-02 Thread WreckRman2
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

Re: [PHP] Replace last 4 of 16 with ****

2001-03-02 Thread Chris Fry
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

RE: [PHP] Replace last 4 of 16 with ****

2001-03-02 Thread Krznaric Michael
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

RE: [PHP] Replace last 4 of 16 with ****

2001-03-02 Thread WreckRman2
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

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-03-02 Thread Andrei Zmievski
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

[PHP] Re: [PHP-DEV] pspell/aspell breaking

2001-03-02 Thread Seth Northrop
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

[PHP] Re: [PHP-DEV] pspell/aspell breaking

2001-03-02 Thread PHP development @echospace
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

[PHP] Netscape problems with PHP

2001-03-02 Thread Robert Fischler, Ph.D. ABD
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

[PHP] cutting apart form field data

2001-03-02 Thread Randy Johnson
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,

[PHP] Problems with pdflib-3.02

2001-03-02 Thread Philip Murray
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

[PHP-CVS] cvs: CVSROOT / loginfo.pl

2001-03-02 Thread Andrei Zmievski
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

[PHP] Sybase-CT problem

2001-03-02 Thread Sergio Murillo
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

[PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Fang Li
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

Re: [PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Joe Stump
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,

Re: [PHP] cutting apart form field data

2001-03-02 Thread rm
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

Re: [PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Alexander Skwar
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, ..

Re: [PHP] Netscape problems with PHP

2001-03-02 Thread Chris Lee
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

[PHP-CVS] cvs: CVSROOT / loginfo.pl

2001-03-02 Thread Andrei Zmievski
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

Re: [PHP] server side cookies

2001-03-02 Thread Chris Lee
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

RE: [PHP] MySQL Create Table Problem

2001-03-02 Thread Jeff Oien
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

Re: [PHP] En: [GENERAL] libpq.so.2.1 needed by php-pgsql-4.0.1pl2-9

2001-03-02 Thread Joe Conway
>[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

Re: [PHP] How to convert a date to an int?(Need help as soon as possible)

2001-03-02 Thread Stephan Ahonen
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

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-03-02 Thread Sterling Hughes
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

[PHP] quote problem

2001-03-02 Thread PeterOblivion
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

Re: [PHP] quote problem

2001-03-02 Thread Simon Garner
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

Re: [PHP] quote problem

2001-03-02 Thread Simon Garner
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

Re: [PHP] quote problem

2001-03-02 Thread Philip Olson
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

Re: [PHP] Problem getting PostgreSQL to compile

2001-03-02 Thread The Hermit Hacker
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

[PHP] "highest" file

2001-03-02 Thread MaD dUCK
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,

Re: [PHP] Connection error

2001-03-02 Thread php3
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

[PHP] PHP with MySQL doubt

2001-03-02 Thread Pablo Pasqualino
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

Re: [PHP] linking to specific spot on map?

2001-03-02 Thread php3
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

[PHP] last inserted record

2001-03-02 Thread .:: romina ::.
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

RE: [PHP] Safe mode?

2001-03-02 Thread Asep Dindin
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

[PHP] Stripping HTML selectively?

2001-03-02 Thread Erick Papadakis
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

Re: [PHP] Stripping HTML selectively?

2001-03-02 Thread Brian Clark
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."

[PHP-CVS] cvs: php4 /pear/Benchmark Timer.php

2001-03-02 Thread Sebastian Bergmann
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

[PHP-CVS] cvs: php4 /pear/Benchmark Iterate.php

2001-03-02 Thread Sebastian Bergmann
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

[PHP-CVS] cvs: php4 / php.ini-dist

2001-03-02 Thread Sebastian Bergmann
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

[PHP] Apache config -- RedirectMatch

2001-03-02 Thread Kefir Podmasli
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 -0000 Issue 544

2001-03-02 Thread php-general-digest-help
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

[PHP-CVS] cvs: php4 / php.ini-dist

2001-03-02 Thread Sebastian Bergmann
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

[PHP-CVS] cvs: php4 / php.ini-dist

2001-03-02 Thread Sebastian Bergmann
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-

[PHP] Re: [PHP-DB] How do I keep the selected showing...

2001-03-02 Thread andreas \(@work\)
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."";

[PHP-CVS] cvs: php4 /ext/cybermut cybermut.xml

2001-03-02 Thread Sylvain PAGES
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

<    1   2