RE: [PHP] Database Code Portability

2001-02-17 Thread PHPBeginner.com
A simple to it solution is PHP Library (PHPLIB) phplib.netuse.de, or the ADODB class which Dallas was referring to you. Using these not only makes a db more portable to you but it also easier to do connections and queries from your software. Sincerely, Maxim Maletsky Founder, Chief Develope

Re: [PHP] location

2001-02-17 Thread jaskirat
make a function which validates users. Then where ever you want to restrict access just call that function before other things .. and it will do the trick where ever you need .. no if statements needed. HTH Jaskirat At 11:47 PM 2/16/01 -0800, Brandon Feldhahn wrote: >how would i make somthing

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

2001-02-17 Thread Sascha Schumann
sas Sat Feb 17 00:30:11 2001 EDT Modified files: /php4/ext/ircg ircg.c php_ircg.h Log: Convert to the new hooks-based callback system. Also add a facility to change our own nick as well as tracking other nick changes. Index: php4/ext/ircg/irc

RE: [PHP] more on trimming

2001-02-17 Thread ..s.c.o.t.t..
well, there are two solutions, 1) for variables with only whitespace to be trimmed 2) variables with whitespace and \n to be trimmed 1) solution: the way i'd do it too is regexp... very similar to your solution (you're on the right track, but just needed to take that final step) $var = "This i

RE: [PHP] location

2001-02-17 Thread ..s.c.o.t.t..
you could possibly store the name/password as cookies, so that they're available to the PHP script without the user having to type them in more than once per session (or even longer if you set the expire date properly) i know that cookies are horribly insecure, but for purposes of a very simple v

RE: [PHP] search

2001-02-17 Thread ..s.c.o.t.t..
it's such a complex question and answer that i really think you need to ponder some more fundamental design concepts before you ask for advice on actually coding the thing... such as what type of database layout fits the type of information you will be storing/searching/retrieving, how you want t

Re: [PHP] more on trimming

2001-02-17 Thread Simon Robson
Take a look at: http://www.php.net/manual/en/function.chop.php almost identical to perl's chomp(). At 13:46 17/02/01 +0530, jaskirat wrote: >Since this thread is running I would like to know the gurus' opinons on the >similar following situation > >Suppose there is a variable like this > >$var

Re: [PHP] more on trimming

2001-02-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("..s.c.o.t.t..") wrote: > PS: if anyone out there is more familiar with PHP/regexps than i am, > could you please send me an email explaining how to get global > pattern matching (ala perl's s///g command) in PHP?? > i cannot seem to find any sw

Re: [PHP] the best so far

2001-02-17 Thread php3
Addressed to: "Richard Lynch" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Richard Lynch" <[EMAIL PROTECTED]> Fri, 16 Feb 2001 17:21:03 -0600 > > Do you get the line number and filename of the script that *called* the > query function, or is it always the query func

php-general Digest 17 Feb 2001 10:01:18 -0000 Issue 517

2001-02-17 Thread php-general-digest-help
php-general Digest 17 Feb 2001 10:01:18 - Issue 517 Topics (messages 40229 through 40311): Re: Delete from cart 40229 by: Chris Lee 40250 by: Gary 40262 by: Chris Lee 40265 by: Gary Re: PHP and cookies and/or headers 40230 by: Angela using tar to un

[PHP] How to get new row on top?

2001-02-17 Thread Jan Grafström
Hi! I have this code: $message = ereg_replace("\r\n\r\n", "\n", $message); And the new rows are placed under the old ones. I want to change so the old messages get placed under is that possible? Thanks for help. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] How to get new row on top?

2001-02-17 Thread Mukul Sabharwal
I'm not quite sure what that code has to do with anything, but anyway, incase you're using files, you can open the file with the 'a' flag, using fseek goto 0byteth, and append from there. $fp = fopen('file', 'a'); fseek($fp, 0); fwrite... or whatever here. --- Jan Grafström <[EMAIL PROTECTED]

[PHP] Stylesheets

2001-02-17 Thread Michael Hall
I'm building a PHP application which uses stylesheets. Stylesheets seem to be broken in a big way on my system - using Netscape 4 something on Red Hat 6.1. Is this Netscape or somehow something to do with PHP? Things work as they're supposed to viewing the pages on a Windows/IE box. Mick -- PH

RE: [PHP] Can I select only the newest record?

2001-02-17 Thread PHPBeginner.com
I wonder, if LAST_INSERT_ID will work in here... I know it works when on the same file was an insertion.. but will it return you the last ever inserted id, say a week ago? I feel like it won't, but don't know for sure... try it... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBegi

RE: [PHP] Stylesheets

2001-02-17 Thread PHPBeginner.com
YES! YES! IT'S PHP!!! Michael, PHP just writes for you some text based on certain conditions and the data from db or whatever ... That text can be used for anything like HTML, JavaScript, sending emails or even write a whole C software (with an fopen of course... is that possible? I think it co

Re: [PHP] How to get new row on top?

2001-02-17 Thread Mukul Sabharwal
if ($message) { /* uncomment the next two lines to strip out html from input */ /* $name = strip_tags($name); */ /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", "\n", $message); $date = date("l, F j Y, h:i a"); $message = "$name -- $da

RE: [PHP] Stylesheets

2001-02-17 Thread PHPBeginner.com
here, I loked it up for you, This is a CSS file for PHPBeginner.com - DON'T LOSE IT!!! : CSS file: css.php --- BODY, TH, CENTER, TD, OL, UL, LI, H1, H2, H3, H4 { font-family: verdana, arial, helvetica, sans-serif; } PRE, TT, CODE { font-family: courier, sans-serif; } H1

[PHP] Measuring php on old and new server

2001-02-17 Thread Cybercandy Ltd
I've recently swapped over from a virtual server to a dedicated server. I've been told that I will get much better performace from my new server and I want to verify this, particular with regard to handling PHP Does any have or know of a PHP script I can download and use to do a general benchmark

Re: [PHP] How to get new row on top?

2001-02-17 Thread Jan Grafström
Hi Mukul! Thanks for the answers. My server has php4.04 and there is no difference after I put in fseek. The output in the .comment-file i still sorted with latest message at the end. Regards Jan Mukul Sabharwal wrote: > if ($message) > { > /* uncomment the next two lines to strip out htm

[PHP] hmm

2001-02-17 Thread Brandon Feldhahn
hmm -- GIF89aÔ< -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHPLIB-7.2 & sessions

2001-02-17 Thread kaab kaoutar
Hi! i'm trying to use sessions in my shopping cart! i hadno idea about from where to start till one of u'r kind members send me url that points to devshed! while sacnning titles and articles that had confused me cause i found no help in implementation! but i discovered this phplib-7-2 library !

Re: [PHP] Dir? Can I get a dir listing of the current dir my php file is in?

2001-02-17 Thread Ifrim Sorin
Hi, You could try this: $script_name = getenv("PATH_TRANSLATED"); $dir_name = dirname($script_name); $d = dir($dir_name); $i = 0; while ($file = $d->read()) $file_array[i] = $file ; } HTH Sorin Ifrim - Original Message - From: Brandon Or

[PHP] Sessions

2001-02-17 Thread kaab kaoutar
Hi! Do u think i have to create my own chart cart ?! or use an already existant soft or library ?i've sezen the phplib-7.2 but the cart can contain only simple things :( do u have any urls to point me to beside the devshed ? Thanks !

[PHP] Removing Whitespace

2001-02-17 Thread Website4S
Hi, Does anyone know of the code to remove all whitespace from a string. E.G if input is 'Hello I was here' I want it to come out as 'HelloIwashere' I`m searching the manual as I type this but can`t find anything. TIA Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] Removing Whitespace

2001-02-17 Thread Website4S
Hi, I found it on DevShed, if anyone else is interested the code is $your_string = str_replace(" ","",$your_string); Regards Ade << Hi, Does anyone know of the code to remove all whitespace from a string. E.G if input is 'Hello I was here' I want it to come out as 'HelloIwashere'

Re: [PHP] Finding the? in $REQUEST_URI?page=blah

2001-02-17 Thread Christian Reiniger
On Friday 16 February 2001 23:57, James, Yz wrote: > OK, I've an error handling page. Basically, I want to split (that > might even be one of the functions I'll have to use) this sort of url: > > error.php?/pages/login.php?username=name That will only cause trouble. URLs with parameters have th

Re: [PHP] Can I select only the newest record?

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 12:12, PHPBeginner.com wrote: > I wonder, if LAST_INSERT_ID will work in here... > > I know it works when on the same file was an insertion.. but will it > return you the last ever inserted id, say a week ago? It will you return the id that was used on the last INSERT

Re: [PHP] search

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 08:07, Brandon Feldhahn wrote: > How do i make a php and MySQL search engine? If you want it to be good *and* if you want to write it youself, I'd start by doing several years of intensive research. If you only want it to be good, use one of the existing ones (http:

Re: [PHP] more on trimming

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 09:16, jaskirat wrote: > $var = "This is a variable "; > > Now I want to strip off white spaces on the end without losing them in > the middle of the sentence .. > > > I had figured that there is a no direct way of doing it and some thing > like this > works

Re: [PHP] Stylesheets

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 10:26, Michael Hall wrote: > I'm building a PHP application which uses stylesheets. Stylesheets seem > to be broken in a big way on my system - using Netscape 4 something on > Red Hat 6.1. > Is this Netscape or somehow something to do with PHP? Things work as Do you h

[PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread SED
Hi, I ran into strange problem yesterday witch I was able to work around (on a deadline ;). I was writing the code and testing it on IIS web server (W2K) and I used the round function couple times. $foo = round (1.95583, 0); When I saved the code on a different server, Apache on Linux,

[PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Siim Einfeldt aka Itpunk
Hi everybody, I want to implement ordering something on a website without refreshing the page. Lets say i have four columns in the html table - name,age,skill and phone. All these are links - under these are the information, eg: Name Age Skill Phone Siim 23 php 051... Tony 18 html 132... N

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Peter Skipworth
I'm afraid XML isn't going to help you - you need to investigate DHTML options, although you'll be lucky to find a solution which is compatible across both Netscape and IE. regards, P On Sat, 17 Feb 2001, Siim Einfeldt aka Itpunk wrote: > Hi everybody, > > I want to implement ordering somethi

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Siim Einfeldt aka Itpunk
But I`m pretty sure it is possible with XML, in theory at least, I get the data from the database, I write it into array, put into xml and then deal with it - that`s how I imagine it. DHTML doesn`t seem the best way to do it...but then maybe it`s just me. cheers Siim Einfeldt > I'm afra

RE: [PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Brian V Bonini
Maybe Flash is an option? > -Original Message- > From: Peter Skipworth [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 17, 2001 9:29 AM > To: Siim Einfeldt aka Itpunk > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROT

[PHP] Sessions again :(

2001-02-17 Thread John Vanderbeck
Sorry about all these questions. Just a quickie. Does a session registered variable take on global scope, or do I still need to do a "global $my_session_var" to make my function see it? - John Vanderbeck - Admin, GameDesign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

[PHP] REGEX prob

2001-02-17 Thread n e t b r a i n
Hi all, I'm trying to match a particular piece of string in a big string using a regex in order to change it whith another value ... I mean: eg: $html="Lnk "; function change_sess(&$html_code){ if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ str_replace("&flag=[0-9]{

RE: [PHP] Sessions again :(

2001-02-17 Thread PHPBeginner.com
try it. (yes you need to register it as a global variable) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Saturday, Febru

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Artem Koutchine
Relax, XML has N.O.T.H.I.N.G. to do with what you want to do. You want dynamically update (rebuild) HTML page, well, the only way to do it currently in more or less compatible way is to use javascript+DHTML. And the result will SUCK, i know, i've done it. So, go the way the elders did. Refresh th

Re: [PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Artem Koutchine
Aha, java is even better :) - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "Peter Skipworth" <[EMAIL PROTECTED]>; "Siim Einfeldt aka Itpunk" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

[PHP] quick file question

2001-02-17 Thread PeterOblivion
I have $File, and I want the context of hello.txt to be stored in $file, Is there a function for this or do I use fopen? - peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

Re: [PHP] quick file question

2001-02-17 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: > I have $File, and I want the context of hello.txt to be stored in > $file, > > Is there a function for this or do I use fopen? $file = implode("",file($File)); RTM for explainations. regards Wagner -- Three may keep a secret, if two of them are dead. -- PHP Genera

Re: [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread Alexander Wagner
SED wrote: > $foo = round (1.95583, 0); > > When I saved the code on a different server, Apache on Linux, I got > this error up: > > Warning: Wrong parameter count for round() ... bla, bla A look into the manual reveals: "Note: The precision parameter is only available in PHP 4." Loo

RE: [PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Siim Einfeldt aka Itpunk
> Maybe Flash is an option? Well, I know I could probably do it some way in flash (if I had experiences with it), but this is just a bit out 'of the box'. But still, thanks for offering. Siim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

[PHP] .php3 in PHP4?

2001-02-17 Thread Jeff Gannaway
Can I configure PHP4 for to process .php .php4 .php3 and .phtml ?? I'm a first timer to configuring the PHP engine, so a few detials on how to would be appreciated as well. Thanks, Jeff Gannaway ___ 2001 Wall Calendars * Art, Jazz, Blu

Re: [PHP] Quick hellp, How do I stip new lines?

2001-02-17 Thread Toby Butzon
Trim should do exactly what you're looking for without needing ereg_replace, etc. Trim trims all whitespace before the first non-whitespace character and after the last non-whitespace character. I've included an example and its output below. File: test.php Output: test.php ' This is my te

Re: [PHP] .php3 in PHP4?

2001-02-17 Thread Ifrim Sorin
Hello, I think this is rather a Web server issue. In Apache, just add in your conf file a line for each extension : AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd

[PHP] Determingin if cookies are useable?

2001-02-17 Thread John Vanderbeck
I'm trying to find an enviroment variable, or something, that will let me know if the client's browser has cookies enabled or not. I'm doing this, because I don't want to pass the SID in the URL if I don't have to, and the PHP I am working with is not compiled with --trans-sid I'm guessing I cou

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

2001-02-17 Thread Thies C. Arntzen
thies Sat Feb 17 07:54:41 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: make oci work again. Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.108 php4/ext/oci8/oci8.c:1.109 --- php4/ext/oci8/oci8.c:1.108 Thu Feb 15 06:48:57 2001 +++ p

[PHP] PHP Manuals - Was -> [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread SED
That figures :) I was using Off-Line manual I downloaded from PHP.net homepage and that note is not in it, but it's well documented in the On-Line Manual :) Thanks! SED -Original Message- From: Alexander Wagner [mailto:[EMAIL PROTECTED]] Sent: 17. febrúar 2001 15:07 To: SED; [EMAIL PRO

Re: [PHP] PHP Manuals - Was -> [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread Alexander Wagner
SED wrote: > That figures :) > > I was using Off-Line manual I downloaded from PHP.net homepage and > that note is not in it, but it's well documented in the On-Line > Manual :) I also used an offline-Manual, but a more recent one, obviously. Just grab a new one. regards Wagner -- Three may k

[PHP] checking image extensions

2001-02-17 Thread Alvin Tan
Hi, Newbie question here. I'm trying to write a function to check an image extension, part of the code is: if (substr($imgName, -4) != ".jpg") my question is what's the syntax for adding (or) ".gif" to this? TIA @lvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] checking image extensions

2001-02-17 Thread John Vanderbeck
> Hi, Newbie question here. I'm trying to write a function to check an image > extension, part of the code is: > > if (substr($imgName, -4) != ".jpg") if ((substr($imgName, -4) != ".jpg") || (substr($imgName, -4) != ".gif")) { echo "I'm sorry, but the ikmage format you submitted is not a support

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread Chris Lee
if your server does not have --trans-sid enabled the SID will not automatically be appended to the URL, I think this is what your looking for, to NOT have the SID appended right? then your server is set. I test for cookies support in the same manner you mentioned, set it, see if its still there.

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread Jeff Gannaway
At 08:35 AM 2/17/01 -0800, Chris Lee wrote: >I test for cookies support in the same manner you mentioned, set it, see if >its still there. Can this be done on one page? Or does one page have to set it, then when the visitor goes to the next page, have that page check to see if it was set? Thank

RE: [PHP] [S.O.S.] round() problem

2001-02-17 Thread Robert Covell
Sumarlidi, I have come across this same problem with earlier versions of PHP3. There are versions of PHP3 that do not have the extra parameter. I have 3.0.12 on one of my machines and it doesn't work. You will have to manually calculate your precision using something like: round(100*number)/10

[PHP] Multiple Selection.

2001-02-17 Thread BeeBoo
If i'm going to let users select multiple choices from a list in a form, let say the part in the form is like this: Fruit Vegetables Fish what code should i put in the submit part of the php to collect the multiple inputs? I tried array, but it seems not working. Please

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread John Vanderbeck
Well, since cookies are set in the header, I would say you would have to at least refresh the same page. I'm just putting a cookie into my home page for now. and it will be checked in just afew areas of the site that REQUIRE the cookies to work right. - John Vanderbeck - Admin, GameDesign -

[PHP-CVS] cvs: php4 /pear/DB mysql.php pgsql.php

2001-02-17 Thread Chuck Hagenbuch
chagenbuSat Feb 17 08:45:01 2001 EDT Modified files: /php4/pear/DB mysql.php pgsql.php Log: consistently supress error messages from $connect_function in mysql and pgsql. Index: php4/pear/DB/mysql.php diff -u php4/pear/DB/mysql.php:1.47 php4/pea

[PHP] dbase function howtos/faq

2001-02-17 Thread Robert L. Yelvington
i am having some issues with dbf files...some fields are being displayed correctly, some are not. can someone direct me to a howto or faq that might address these and other dbf issues? thanx, -robt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Removing Whitespace

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 14:52, [EMAIL PROTECTED] wrote: > I found it on DevShed, if anyone else is interested the code is > > $your_string = str_replace(" ","",$your_string); That only eliminates "space" characters and leaves tabs, newline etc untouched. Try $your_string = preg_replace('/\

Re: [PHP] REGEX prob

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 21:49, n e t b r a i n wrote: > function change_sess(&$html_code){ > if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ > > str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",";?>", $html_code); str_replace doesn't know about regular expressio

Re: [PHP] Database Code Portability

2001-02-17 Thread Andrew Hill
Dave, The ODBC functions in PHP mostly address this. A good ODBC driver will also translate full SQL92 functionality into the underlying dialect that the database supports. Let me know if you have any questions. Best regards, Andrew --- Andrew Hill - OpenL

Re: [PHP] PHP Editors

2001-02-17 Thread andrew
I spoke to the BBEdit folks at MacWorld. A MacOS X port is forthcoming. regards, andrew On 2/16/01 7:46 PM, "Alexander Wagner" <[EMAIL PROTECTED]> wrote: > Dave Goodrich wrote: >> The only reason I have a Mac on my desk is for Bbedit. Hoping they >> port to OSX and allow it to run on my FBSD

[PHP] Strip HTML codes from a string?

2001-02-17 Thread John Vanderbeck
I'm really crappy with regex's, and I can't find a good tutorial on using them , and all the syntaxes. What I need to do is strip all HTML tags from a string. This is from a form, where a user can submit comments on things, but I need to strip the HTML out, in case anyone tries to abuse it :) -

Re: [PHP] Strip HTML codes from a string?

2001-02-17 Thread John Vanderbeck
Ok, ignore me. I'm an idiot.. I just found the striptags() fucntion. - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Vanderbeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 12:33 PM Subject: [PHP] Strip HTML codes from a string?

RE: [PHP] MySQL: Add Autoincrement Field?

2001-02-17 Thread Jeff Oien
Thank you. That was too easy. Jeff Oien > alter table $TableName add column $ColumnName NOT NULL AUTO_INCREMENT > PRIMARY KEY; > > Have a nice day! > > Brian Drexler > Precision Web Design > > > Could you tell me how to add a field to an existing > > database? I'm having trouble finding out ho

[PHP] Count of multi-dimensional array

2001-02-17 Thread bill
How can i get the count of a multi-dimensional array? if I have $myarray[0][chicken] $myarray[0][fish] $myarray[0][meat] $myarray[1][fries] $myarray[1][chips] $myarray[2][coke] $myarray[2][pepsi] $myarray[2][rootbeer] How can I get the number of first elements (which would be 3 above)? thanks,

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

2001-02-17 Thread Sascha Schumann
sas Sat Feb 17 09:31:36 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Add initial CTCP handling and fix a possible segfault in ircg_msg() Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.25 php4/ext/ircg/ircg.c:1.26 --- php4/ext/ircg

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

2001-02-17 Thread Sascha Schumann
sas Sat Feb 17 09:36:44 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Also format CTCP correctly when sending it to the server. This is still quite ugly but works already quite well. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.

Re: [PHP] Count of multi-dimensional array

2001-02-17 Thread Rasmus Lerdorf
count($myarray) will give you 3 On Sat, 17 Feb 2001, bill wrote: > How can i get the count of a multi-dimensional array? > > if I have > > $myarray[0][chicken] > $myarray[0][fish] > $myarray[0][meat] > $myarray[1][fries] > $myarray[1][chips] > $myarray[2][coke] > $myarray[2][pepsi] > $myarray[2]

RE: [PHP] Dir? Can I get a dir listing of the current dir my php file is in?

2001-02-17 Thread Joe Sheble (Wizaerd)
Another solutions is: $script_name = getenv("PATH_TRANSLATED"); $dir_name = dirname($script_name); // $arFiles will be an array of filenames exec( "ls -1 $dirname", $arFiles ) foreach( $arFiles as $cFile ) { print( $cFile ); } Jo

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

2001-02-17 Thread Andi Gutmans
At 05:31 PM 2/17/2001 +, Sascha Schumann wrote: >sas Sat Feb 17 09:31:36 2001 EDT > > Modified files: > /php4/ext/ircg ircg.c > Log: > Add initial CTCP handling and fix a possible segfault in ircg_msg() > > >Index: php4/ext/ircg/ircg.c >diff -u php4/ext/ircg/ircg.c:1

[PHP] Apache config

2001-02-17 Thread Sitkei es Tarsa Bt
Hi, I would like to use Apache and PHP4 on W2K. If you have any good Httpd.conf file for the Apache, please send me. Thank you. Paul. [mailto:[EMAIL PROTECTED]] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

[PHP] PHP Session question

2001-02-17 Thread Yev
Hi, I enabled sessions via session.auto_start feature, and attempting to simulate sessions when a user has disabled cookies. I remember it used to automatically append SESSIONID= to every href, etc.. (I compiled with --enable-trans-sid), but now it doesn't append it. What am I missing? Thanks

RE: [PHP] PHP Book Recommendations

2001-02-17 Thread Boaz Yahav
And I remind you all to buy them at WeberDev.com and help us pay the hosting :) Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001

[PHP] Simple REGEX?

2001-02-17 Thread James, Yz
Hi guys, I'd like to restrict the characters a client is inputting to a database. I already have a system that'll exclude certain characters. Alpha Numerics are permitted, together with the underscore and spaces. Is there a collective expression for the following characters? : !",.?@() Becau

[PHP] php

2001-02-17 Thread Brandon Feldhahn
im trying to make somthing that takes the user to the members page if the authentecation is right, but i keep getting this error: Warning: Cannot add header information - headers already sent by (output started at C:\www\login2.PHP:7) in C:\www\login2.PHP on line 30 and this is my code: My L

[PHP] Text box

2001-02-17 Thread Todd Cary
If I have the source of a indented, the spaces are added to the left side. Can this be avoided or do I have to make sure that me source is on the left side of the script? This will have spaces for the two lines: This is line 1. This is line 2. This will not: This is line 1

Re: [PHP] php

2001-02-17 Thread John Vanderbeck
from: http://www.php.net/manual/en/function.header.php "Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another fil

[PHP] php flash and textfile in chatapp.

2001-02-17 Thread Jan Grafström
Hi! I am trying to build a flashchat and got problems with browser cache. Every 2 sec flash send these variables to server loadVariablesNum ("http://www.myserver.com/eget9.php3?name=" add name add "...) and gets the answer from server. All files are cached by IE5.5 and looks like this: http://www.

[PHP] Bug? - pg_pconnect failing with pgsql and pg_connect is ok.

2001-02-17 Thread Matt Friedman
I've recently been banging my head against the wall because I was getting a number of selects that would occasionally return zero rows, even though 1 or more rows should have been returned. I cannot reproduce the problem with pg_connect. The problem only occurs when I am using pg_pconnect. Ha

[PHP] domains

2001-02-17 Thread Brandon Feldhahn
is there a way to sell domains? like have a php domain search and have permission to sell it, how would i do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

[PHP] compare arrays problem

2001-02-17 Thread Onaje Johnston
I am hoping that someone really understands arrays reads this and can tell me why the following isn't working as I expect it to. I've been trying for days to get it to work. $pages=mysql_query("SELECT CP.page_id, pagename FROM cluster_pagetbl as CP, pagetbl WHERE CP.cluster_id = '$id' AND CP.pa

php-general Digest 17 Feb 2001 22:45:27 -0000 Issue 518

2001-02-17 Thread php-general-digest-help
php-general Digest 17 Feb 2001 22:45:27 - Issue 518 Topics (messages 40312 through 40380): How to get new row on top? 40312 by: Jan Grafström 40313 by: Mukul Sabharwal 40317 by: Mukul Sabharwal 40320 by: Jan Grafström Stylesheets 40314 by: Michael Ha

[PHP-CVS] cvs: php4 /ext/midgard .cvsignore

2001-02-17 Thread Emiliano Heyns
emile Sat Feb 17 14:45:37 2001 EDT Removed files: /php4/ext/midgard .cvsignore Log: Added generated files -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

[PHP-CVS] cvs: php4 /ext/midgard ChangeLog INSTALL LICENSE Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.c mgd_errno.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard-root.php midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php4_porting.txt php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c /ext/midgard/logo mklogo.c

2001-02-17 Thread Emiliano Heyns
emile Sat Feb 17 15:01:51 2001 EDT Added files: /php4/ext/midgard LICENSE Removed files: /php4/ext/midgard ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c

[PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-02-17 Thread Emiliano Heyns
emile Sat Feb 17 15:21:54 2001 EDT Modified files: /php4/ext/midgard .cvsignore ChangeLog INSTALL Makefile.in article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c group.c

Re: [PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Tim Frank
Siim, You can do this with a combination of XML and XSL. I remember a demo from Microsoft's XML area that did exactly what you ask: Click a column and have it sort. I believe it was an example having to do with Stock listings. Basically XSL lets you use come programming/looping constructs whe

Re: [PHP] .php3 in PHP4?

2001-02-17 Thread Tim Frank
Or you could just put them all on one line like AddType application/x-httpd-php .php .php3 .php4 .phtml if you prefer. Tim Frank >> Original Message << On 17/02/01, 10:48:18 AM, [EMAIL PROTECTED] ("Ifrim Sorin") wrote regarding Re: [PHP] .php3 in PHP4?: > He

[PHP] HTTP Request - First line

2001-02-17 Thread Javier Gil
I want to obtain the first line of the header of the HTTP Request (the request line). Is there a function to obtain this line. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

[PHP] E-mail Validation Question

2001-02-17 Thread Jeff Oien
Just a curiosity. I installed and tested Manuel Lemos's PHP E-mail validation class. When I entered an address at the @wi.rr.com domain, no matter what I put before the domain, it would come back as valid. (That's the Wisconsin domain for Road Runner cable service.) But when I tried it for @earth

Re: [PHP] HTTP Request - First line

2001-02-17 Thread Bojan Gajic
Try with: $HTTP_SERVER_VARS['SERVER_PROTOCOL'] $HTTP_SERVER_VARS['REQUEST_METHOD'] $HTTP_SERVER_VARS['REQUEST_URI'] HTH, bojan Javier Gil wrote: > I want to obtain the first line of the header of the HTTP Request > (the request line). Is there a function to obtain this line. > Thanks > > --

[PHP] Is it possible to send a html page via mail()???

2001-02-17 Thread David Tandberg-Johansen
Hello ! I wonder if there are any class or script out there that you can give an url or file as an variable and then it sends this as html-mail to a given emailadress. david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] PHP Code Obfuscator?

2001-02-17 Thread Joe Njeru
Jim, I also come from a third world country and the cost of buying software is also high just as Tiger mentioned. We did not have 200 years of free labour to advance ourselves as much as you did. Joe Njeru. Nairobi, Kenya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

Re: [PHP] Delete from cart

2001-02-17 Thread Joe Njeru
"Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > It is Friday afternoon here and I don't want to have to reinvent the > wheel. What would be the easiest way to delete an item from a shopping > cart? I know what is required for Mysql but I am s

Re: [PHP] E-mail Validation Question

2001-02-17 Thread Manuel Lemos
Hello Jeff, On 17-Feb-01 21:49:42, you wrote: >Just a curiosity. I installed and tested Manuel Lemos's >PHP E-mail validation class. When I entered an address >at the @wi.rr.com domain, no matter what I put before >the domain, it would come back as valid. (That's the >Wisconsin domain for Road

[PHP] swflib

2001-02-17 Thread Jon Snell
Attempting to use this in PHP causes Apache to segfault. Is there anywhere I can download the source and make sure it's linked against my libs properly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: [PHP] swflib

2001-02-17 Thread Rasmus Lerdorf
> Attempting to use this in PHP causes Apache to segfault. Is there anywhere > I can download the source and make sure it's linked against my libs > properly? The source for what? PHP? Sure, click on the Downloads button on www.php.net. For libswf, nope. Use ming instead. http://www.opaque.

Re: [PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Michael Stearne
There is an example of this in Mozilla. If you go to the Debug->Viewer Demos menu and select #14 or #15 there are some nice examples there. If you don't have Mozilla, use Netscape 6 to go to: http://www.mozilla.org/newlayout/xml/debugdemos/books/books.xml and http://www.mozilla.org/newlayout/

  1   2   >