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:

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

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

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

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

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 function

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

[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", "\nP", $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:

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 Grafstrm [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 --

RE: [PHP] Stylesheets

2001-02-17 Thread PHPBeginner.com
YES! YES! IT'S PHP!!! /kidding 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

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", "\nP", $message); $date = date("l, F j Y, h:i a"); $message = "B$name /B

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 --- ? $ua = Array(); $ua['USER_AGENT'] = strtoupper(getenv(HTTP_USER_AGENT)); if(strstr($ua['USER_AGENT'], 'MSIE'))

[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

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 html

[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

[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 !

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 the

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] 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 have

[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...

[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 something

[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

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

[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,

[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="a href=link.htm?flag=982420537PHPSESSID=2c86b460d360b13c3ef08b8a46b9cafcLnk /a"; function change_sess($html_code){

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,

[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

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]; [EMAIL

[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

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 General

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." Looks

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

[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,

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 ?php header("Content-type:

[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

[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. febrar 2001 15:07 To: SED; [EMAIL

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 keep

[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,

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 "P CLASS=ErrorI'm sorry, but the ikmage format you submitted is not

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?

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:

[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: select name="category" multiple size="4" option value="Praise"Fruit/option option value="Worship"Vegetables/option option value="Fellowship"Fish/option

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

[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]

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 =

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}","?=append_url() ;?", $html_code); str_replace doesn't know about regular

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 -

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 box.

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 how to do it.

[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)?

[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 ---

[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

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][rootbeer]

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 ); }

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.25

[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

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? : !",.?@()

[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: HTML

[PHP] Text box

2001-02-17 Thread Todd Cary
If I have the source of a textarea 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: textarea name="textareaName" cols="62" rows="19" 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

[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:

[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.

[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,

[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

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

[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

[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

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?: Hello, I think this is rather a

[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

[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

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,

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

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

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.

Re: [PHP] PHP Code Obfuscator?

2001-02-17 Thread Michael Stearne
Joe, I think that the APC product (Alternative PHP Cache) may soon offer souce "encoding". I think I remember reading about that. Regard APC seems to be a very nice product. Check it out at http://apc.communityconnect.com/ Michael Joe Njeru wrote: Jim, I also come from a third world

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

2001-02-17 Thread php3
Addressed to: [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from [EMAIL PROTECTED] Sat, 17 Feb 2001 14:22:54 - So the question is, why is this acting like this? (When I meet "pro" they say Apache, Linux e.g.. is the best, and curse the IIS and W2K, but at this time I

Re: [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 Jon Parise
On Sat, Feb 17, 2001 at 11:21:54PM -, Emiliano Heyns wrote: Index: php4/ext/midgard/.cvsignore diff -u /dev/null php4/ext/midgard/.cvsignore:1.3 --- /dev/null Sat Feb 17 15:21:51 2001 +++ php4/ext/midgard/.cvsignore Sat Feb 17 15:21:49 2001 @@ -0,0 +1,122 @@ +.deps +.libs +CVS

[PHP] UPS shipping calculation

2001-02-17 Thread Isaac Force
I'm looking for a better way to calculate UPS shipping costs than opening a connection to the UPS website every time a user wants to calculate their shipping (Which is what I'm finding). Anybody care to point me in the direction of where I can information on how to do this? -- PHP General

[PHP] libexec/lobphp4.so: undefined symbol:uncompress

2001-02-17 Thread S Jha
Hi All, I saw similar error questions posted on phpbuilder etc but didn get exact answer about cause of this error. I have RedHat 6.2 with Apache 1.3.17, MySQL 3.23.33 and Php 4.0.4pl1. I am getting the above error mentioned in subject while trying to start Apache. Any idea ? Thanks, SJ

Re: [PHP] UPS shipping calculation

2001-02-17 Thread John Monfort
There is a Perl module that is very useful for this, I'm currently in the process of implementing it. You can find a copy at http://www.seva.net/~msolomon/Business-UPS/dist/ I'm looking for something similar for FedEx, so let me know if you find one. __John

[PHP] Session expiry problem

2001-02-17 Thread Mike Yuen
I'm using IE 5 to view a page i'm building for a client of mine. The problem is, on some pages when you press the "Back" button, I get an expiry message. To temporarily fix this problem, i've opened new windows everytime a link is clicked on. This is a pretty unelegant solution but I hope

[PHP] Macs and PHP

2001-02-17 Thread Mike Yuen
I'm got another person working for me on a site. He's a Mac user and for some reason, he can't seem to register as a new person. I know this problem isn't due to the large amount of traffic b/c it's a new site with 3 users max at any time. I haven't found any similar problems in any

RE: [PHP] UPS shipping calculation

2001-02-17 Thread Dallas Kropka
There is a great UPS calc system that we are using and while attachments are not allowed code is below. * ?php /* Copyright (c) 2000, Jason Costomiris All rights reserved. Don't be scared, it's just a BSD-ish license.

Re: [PHP] Writing Regular Expressions...

2001-02-17 Thread Bojan Gajic
'So What's A $#!%% Regular Expression, Anyway?!' http://www.devshed.com/Server_Side/Administration/RegExp/ HTH, bojan gajic Dhaval Desai wrote: Hi! Can somebody enlighten me with regular expressions... like [^\-*] something like that. To me it appears as a code language.. Can Anybody

[PHP] Mail

2001-02-17 Thread Brandon Feldhahn
can somone give me a mail sending script it's like whatever i do there is always a error -- 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]