[PHP] Re: why cant I: array_keys($arr)[0] ?

2001-11-04 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: Why does PHP give a parse error if you do: echo array_keys($arr)[0]; This breaks syntax... It makes you assign the result of the function to a var first like this: $arr = array_keys($arr); echo $arr[0]; How about reset($arr);

[PHP] Access $HTTP_POST_VARS from class member fucntion

2001-11-04 Thread Daniel Harik
Hello I have a class called Member, it has member function called vallidateForm(), i try to pass it a $HTTP_POST_VARS array it looks like this: clas Member{ var $HTTP_POST_VARS; function vallidateForm ($HTTP_POST_VARS){ echo $HTTP_POST_VARS['frmUsername']; } } $user = new Member;

Re: [PHP] Can you help me about apache connect with php ?

2001-11-04 Thread Brian Clark
Hi Edward, @ 3:43:51 AM on 11/4/2001, [EMAIL PROTECTED] wrote: the installation packages : apache_1.3.20.tar.gz Why not 1.3.22? mysql-3.23.41.tar.gz php-4.0.6.tar.gz installation steps : Apache : ./configure --prefix=/usr/local/apache \ --enable-shared=max make make install

Re: [PHP] site last updated

2001-11-04 Thread Rudi Ahlers
Would there be a way of adding one script to a common footer, which in included in any file, and this script can check any file on the server, and echo the last updated string to a file. Thus, you don't need to add the script to the file, the footer automatically echos that info to any file on

Re: [PHP] why cant I: array_keys($arr)[0] ?

2001-11-04 Thread Matt McClanahan
On Sun, Nov 04, 2001 at 12:54:54AM -0700, [EMAIL PROTECTED] wrote: Why does PHP give a parse error if you do: echo array_keys($arr)[0]; It makes you assign the result of the function to a var first like this: $arr = array_keys($arr); echo $arr[0]; I just want to

[PHP] PHP/Mysql error handling

2001-11-04 Thread George E. Papadakis
Hi, Is there any way to make php notify me of any errors through email? I know it may sounds funny, but imagine having this huge site and u just want it to run smoothly but u juct cant check it all the time . If there was a way that php would notify u for a an error on a specific page/line that

[PHP] replace nested custom html tags

2001-11-04 Thread Bruce BrackBill
Hi, Anyone have any ideas on how I could modify the following to work on nested tags? The regex replaces custom tags [i] [u] [b] with real tags. The Regex takes any of the characters in the class \[([ubi])\] then non greedily matches any character (.*?) then matches the result of the first

[PHP] Apache / PHP Question

2001-11-04 Thread George E. Papadakis
Hello, In my lnx server I can do index.php/var1/var2/var3 I try the same exact thing in windows (using the same config (Apache/php) ) and it gives me internal server error. Any ideas? Thanks -- phaistonian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] ISAPI modul for IIS5.0

2001-11-04 Thread Marek Erneker
Hi, I have IIS5 on W2k Server, and a can not use isapi modul from php 4.0.6. If I using modul from 4.0.pl2 then everything is OK, but when I use 4.0.6 then it is not functionally and i must use cgi. Can you help me (someone). Thanks,

[PHP] Hello, per making .zip files

2001-11-04 Thread Joelmon2001
Hello, I have tried the zend.com articles to no avail on php/linux 4.03 or even 4.05 whatever is there a way to speciy a directory, in let's say zip.php and when joe schmoe goes to that page, that directory which is specified is downloaded immediately as zip? Not a user interface to make them

[PHP] Adv Paypal Shopping Cart

2001-11-04 Thread Kacey A. Murphy
This is a difficult one, What I am doing is designing a website to sell DVD's well what I am running into is that when a Person buys the DVD they are getting charged 2.35 for shipping an additional 1.00 for purchasing 2 .. Well that works fine if they buy the same DVD, but when they buy 2

[PHP] .inc files

2001-11-04 Thread Rudi Ahlers
Hi I was wondering, is there a different way using .inc files? I have a lot of .inc files, which are displayed as normal text when you call it in the browser. I would like to still have a file with the username / password / database / etc in, but make it say config.inc.php. How would I get the

[PHP] User authentication?

2001-11-04 Thread Daniel Alsén
Hi, do aonyone know of any comprehensive tutorial for user authentication session managment with php4 sessions and mysql? Preferably with some sort of code examples? I have tried searching the larger code libraries but haven´t found anything that suits me (the ones i actually got interested in

[PHP] Get Content-Type of a remote file

2001-11-04 Thread Lasar Liepins
Hi. Is it possible to check the Content-type header of a remote file? If so, how? I want to fetch a file using file(), but I want to make sure it is an HTML file first. Thanks, _ Lasar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: User authentication?

2001-11-04 Thread Jan Grafström
Hi Daniel! Phpbuilder have some articles with examples under security. http://www.phpbuilder.com/columns/ Regards Jan Grafstrom Lillemans Hus AB Sweden Daniel alsén [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, do aonyone know of any comprehensive

[PHP] Re: .inc files

2001-11-04 Thread Jan Grafström
Hi Rudi! Check out this example from Hotscripts. http://www.hotscripts.com/cgi-bin/dload.cgi?ID=12367 Regards Jan Grafstrom Rudi Ahlers [EMAIL PROTECTED] skrev i meddelandet 008401c16534$dcb77580$0c00a8c0@camelot">news:008401c16534$dcb77580$0c00a8c0@camelot... Hi I was wondering, is there a

[PHP] Am i crazy?

2001-11-04 Thread Martin
Did I forget everything in a few months? if ($name='admin') { header(Location: $MYPATH/admin.php); } Doesn't. That is it doesn't redirect to whatever $MYPATH/admin.php translates to. Doing an echo $MYPATH directly after the line shows that the path is

php-general Digest 4 Nov 2001 17:48:36 -0000 Issue 975

2001-11-04 Thread php-general-digest-help
php-general Digest 4 Nov 2001 17:48:36 - Issue 975 Topics (messages 73373 through 73400): Re: Number_Format Question 73373 by: Steve Werby Re: site last updated 73374 by: Steve Werby 73376 by: Chip 73377 by: speedboy 73385 by: Rudi Ahlers Re:

RE: [PHP] Am i crazy?

2001-11-04 Thread Jack Dempsey
you're assigning, not checking for equality...use two ='s -Original Message- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 12:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Am i crazy? Did I forget everything in a few months? if ($name='admin') {

RE: [PHP] Am i crazy?

2001-11-04 Thread Martin
Jack Dempsey wrote: you're assigning, not checking for equality...use two ='s Still not redirecting ... Martin S -- 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,

RE: [PHP] Am i crazy?

2001-11-04 Thread Jack Dempsey
what happens? are you sure $name really equal's admin? if you change header to echo $MYPATH does that work? -Original Message- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Am i crazy? Jack Dempsey wrote:

[PHP] Re: Am i crazy?

2001-11-04 Thread oliver walkhoff
Did I forget everything in a few months? if ($name='admin') { header(Location: $MYPATH/admin.php); } try if ($name =='admin') { ('==' instead of '=', otherwise you are assigning 'admin' to $name) ! oliver -- PHP General Mailing List

[PHP] Re: Am i crazy?

2001-11-04 Thread oliver walkhoff
sorry, didn't receive the answers from martin and jack before... oliver Martin wrote: Did I forget everything in a few months? if ($name='admin') { header(Location: $MYPATH/admin.php); } Doesn't. That is it doesn't redirect to whatever

Re: [PHP] Re: [PHP-INST] Can you help me about apache connect with php ?

2001-11-04 Thread Brian Clark
Hi Edward, @ 9:35:20 AM on 11/4/2001, [EMAIL PROTECTED] wrote: Now, I have just finished the reinstall Red Hat Linux System , Apache , php and MySQL, But when I start the apache ( web server ) after the re-installation and uncomment the line, these is the error : Syntax error on line 222

Re: [PHP] Am i crazy?

2001-11-04 Thread Richard Baskett
It has to do with the $name variable, if you've fixed the code to check for equality instead of setting the variable: if ($name=='admin') { Echo $name and make sure that it is actually getting set.. Also make sure your header information is before html.. let's see.. yeah that's about all I can

[PHP]

2001-11-04 Thread
http://minwon82.com php-general´Ô ¾È³çÇϽʴϱî? ¹Î¿ø»¡¸®´åÄÄ ¿¡¼­ ÀÎ»ç µå¸³´Ï´Ù. ÀÌ°÷¿¡¼­´Â µî±âºÎµîº», ÅäÁö´ëÀå, Á¹¾÷Áõ¸í¼­, °æ·ÂÁõ¸í¼­, µî °¢Á¾ ¹Î¿ø 34Á¾À» ¹Ù»Ú½Å Çö´ëÀεéÀ» ´ë½ÅÇÏ¿© ¹ß±Þ´ëÇà ¼­ºñ½º ÇÏ°í ÀÖ½À´Ï´Ù. ½ÅûÀ» ÇϽøé ÀÔ±Ý È®ÀÎÈÄ 2½Ã°£ À̳»¿¡ Æѽº³ª À̸ÞÀÏÀ» ÀÌ¿ë ¿­¶÷ °¡´ÉÇϸç

[PHP] Math Script

2001-11-04 Thread Kacey A. Murphy
Is this possible what I want this to do is take a price say 10.00 in a field in the mySQL databse and do a math set such as -0.5 * 1 This is in a link and I was echoing the field in the database but how do I put a math thingy in there. ?php echo $products-Fields(itm_aship)? Could I do this

Re: [PHP] Questions per installing on linux (Php 4)

2001-11-04 Thread Kacey A. Murphy
This is what I did when I installed PHP and I already had mySQL on my RAQ3i and it worked like a charm, I hope this helps you, -- you can skip by the mySQL install and move on the PHP install below. Since mySQL for the RAQ3i (especially if you used the BIN from Cobalt) doesn't have a directory

Re: [PHP] Questions per installing on linux (Php 4)

2001-11-04 Thread Kacey A. Murphy
This is what I did when I installed PHP and I already had mySQL on my RAQ3i and it worked like a charm, I hope this helps you, -- you can skip by the mySQL install and move on the PHP install below. Since mySQL for the RAQ3i (especially if you used the BIN from Cobalt) doesn't have a directory

[PHP] preg_grep changed after php4.0.4+

2001-11-04 Thread alanjc45
It does not appear to be in the documentation yet (and only a little blurb in the NEWS file) but preg_grep has changed. Assume $file_list is an array of file names using integer keys, e.g., $file_list { 0 = test, 1 = filenames } $result = preg_grep(/name/i, $file_list); Here is an example of

[PHP] documentation comment

2001-11-04 Thread Jack Dempsey
not to start a war, but have you seen php.net's documentation compared to anything microsoft or anyone else has ever put out? i'd say that documentation is microsoft's achilles heel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] how about walking another way?

2001-11-04 Thread Galkov Vladimir
Good time of a day! Very strange... the code you place here works good (if forget one '=' ). I thinck you have to chek what you have in $name, $MYPATH, $MYPATH/admin.php... by the way what error you have? not such file? ... or somth special?... If still not working. (vay;-))) )

RE: [PHP] Am i crazy?

2001-11-04 Thread Martin
Jack Dempsey wrote: what happens? if ($name == admin) { echo $name; header(Location: $MYPATH/admin.php); } Displays admin on the page where the redirect is from (switch.php). Without the echo statement I just get a blank

Re: [PHP] Am i crazy?

2001-11-04 Thread Martin
Richard Baskett wrote: It has to do with the $name variable, if you've fixed the code to check for equality instead of setting the variable: if ($name=='admin') { Echo $name and make sure that it is actually getting set.. Yes. Also make sure your header information is before html..

[PHP] Re: how about walking another way?

2001-11-04 Thread Martin
Galkov Vladimir wrote: Good time of a day! Very strange... the code you place here works good (if forget one '=' ). I thinck you have to chek what you have in $name, $MYPATH, $MYPATH/admin.php... by the way what error you have? not such file? ... or somth special?... If still

[PHP] URGENT: Can PHP on Linux deal with Access DB?

2001-11-04 Thread Marco Fioretti
Hello, I have been asked to maintain a PHP site hosted on NT/IIS, and have only an Apache/RH linux box to do test and development for it. So far it would be a no-brainer, being PHP as portable as is. The problem is that on the real server PHP should read and write an Access database via ODBC,

Re: [PHP] Am i crazy?

2001-11-04 Thread Tom Carter
well when you were using echo $name to test then you were outputting html, hence no redirect... if your php is set up in such a way as to suppress errors then you wouldn't have been warned about it..check that nothing else is being outputted, eg a space before the first ?. If that doesn't fix it

Re: [PHP] documentation comment

2001-11-04 Thread Andrew Brampton
Have you seen a MSDN subscription latly? Its many many CDs of Help Files and such... Php.net has comments added by coders on the end, but other than that they have nothing over M$ unless i'm missing something? Andrew - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Re: how about walking another way?

2001-11-04 Thread Tom Carter
One observation on this.. there is a major difference between this and the the header(location:... header happens on the server side whereas the below is clientside and therefore unreliable. I know that netscape, particullarly on unix, is bad for ignoring this. header() is the only reliable way

RE: [PHP] site last updated

2001-11-04 Thread ArsenKirillov
Re: site last updated 73374 by: Steve Werby 73376 by: Chip 73377 by: speedboy 73385 by: Rudi Ahlers I think that all is partially answers on question that have no answer at all ! Question was : ... SITE last update - not html file inside site but

[PHP] RE: Access $HTTP_POST_VARS from class member fucntion

2001-11-04 Thread ArsenKirillov
try this : class me { var arr_post; function init($par_arr_post) { $this-arr_post=$par_arr_post; } } -Original Message- From: Daniel Harik [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 8:42 PM To: [EMAIL PROTECTED]

[PHP] RE: Am i crazy?

2001-11-04 Thread ArsenKirillov
Why not if (file_exists($fname=$MYPATH/admin.php) $name='admin')) header (Location: .$fname) ;else echo Trouble with $fname; -Original Message- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 7:49 PM To: [EMAIL PROTECTED] Subject: Am i crazy? Did I forget

Re: [PHP] Math Script

2001-11-04 Thread David Robley
On Mon, 5 Nov 2001 05:47, Kacey A. Murphy wrote: Is this possible what I want this to do is take a price say 10.00 in a field in the mySQL databse and do a math set such as -0.5 * 1 This is in a link and I was echoing the field in the database but how do I put a math thingy in there. ?php

Re: [PHP] mysql table information

2001-11-04 Thread David Robley
On Sat, 3 Nov 2001 00:32, Justin French wrote: hi, i was wondering if anyone has some sample code / links which could help me generate HTML forms dynamically from the fields/types/lengths of tables in a mySQL database. ie, if i had a three column table with first (varchar 50), last

RE: [PHP] documentation comment

2001-11-04 Thread Matthew Loff
I would have to agree on a global scale. However, strictly in discussion of server-side languages, I haven't seen ASP documentation as complete/useful as PHP's... I have never had to use anything besides the PHP manual to solve a problem in writing something. -Original Message-

Re: [PHP] Access $HTTP_POST_VARS from class member fucntion

2001-11-04 Thread Steve Edberg
At 10:41 AM -0800 11/4/01, Daniel Harik wrote: Hello I have a class called Member, it has member function called vallidateForm(), i try to pass it a $HTTP_POST_VARS array it looks like this: clas Member{ var $HTTP_POST_VARS; function vallidateForm ($HTTP_POST_VARS){ echo

Re: [PHP] sending email to php script

2001-11-04 Thread David Robley
On Fri, 2 Nov 2001 18:33, Adrian D'Costa wrote: On Fri, 2 Nov 2001, David Robley wrote: What if we need both version?? There's nothing stopping you running both. How do you compile it for both? Adrian To do the cgi compile, use all the configure values you need

[PHP] header(Location: ...) correct implementation

2001-11-04 Thread John Steele
Hello, After seeing multiple message concerning the Location response-header using relative URI's, and having to change this in multiple open-source projects, I'd like to point out that the correct behaviour only allows ABSOLUTE URI's. This may work on certain clients with a relative URI,

Re: [PHP] Mail() not sending mail..

2001-11-04 Thread David Robley
On Sat, 3 Nov 2001 00:53, Paul Mullett wrote: Hello, Could be a simple problem, using PHP4 on a Linux/Unix Cobalt RaQ4 server. I have been using it fine, but the mail() function wont send mail, even with the most basic content and lack of headers. Can anyone offer any advise on what

[PHP] Secure transfer between servers

2001-11-04 Thread Adam . Whitehead
Hi All- I'm designing a Portal environment for a very large number of organisations and it necessitates having a central server where users initially login and have access to a few functions. For the more complex functions where it is necessary to redirect them to another server, local to them,

[PHP] what's this???

2001-11-04 Thread Christian C.
Hello :c) im looking at some code i found on the net and i cant find any info on this... it's used like: $this-mode = $mode; I have looked in the online help doc but it did'nt return anything, any one know?? -- Thanks Christian Charette www.charetx2.com -- PHP General Mailing List

RE: [PHP] what's this???

2001-11-04 Thread Martin Towell
$this refers to the current object so $this-mode refers to the variable inside the current object called mode Hope this helps Martin -Original Message- From: Christian C. [mailto:[EMAIL PROTECTED]] Sent: Monday, November 05, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: [PHP] what's

Re: [PHP] what's this???

2001-11-04 Thread Matt Friedman
http://www.php.net/manual/en/language.oop.php This is what you want to read. Matt. - Original Message - From: Christian C. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 04, 2001 7:16 PM Subject: [PHP] what's this??? Hello :c) im looking at some code i found on

RE: [PHP] Secure transfer between servers

2001-11-04 Thread James
Perhaps make it an MD5 hash of the username and password in the url. Or, make it a submit button. Those two pop off my head. - James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 7:50 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Secure transfer between servers

2001-11-04 Thread Martin Towell
or, instead of MD5 (depending on how secure you want it) you could use base64_(en|de)code -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: Monday, November 05, 2001 12:46 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Secure transfer between servers

RE: [PHP] URGENT: Can PHP on Linux deal with Access DB?

2001-11-04 Thread Martin Towell
I'm interested in knowing how to do this too. If it's at all possible. Martin -Original Message- From: Marco Fioretti [mailto:[EMAIL PROTECTED]] Sent: Monday, November 05, 2001 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] URGENT: Can PHP on Linux deal with Access DB? Hello, I have

Re: [PHP] Re: how about walking another way?

2001-11-04 Thread Martin
Tom Carter wrote: One observation on this.. there is a major difference between this and the the header(location:... header happens on the server side whereas the below is clientside and therefore unreliable. I know that netscape, particullarly on unix, is bad for ignoring this. header() is

RE: [PHP] Secure transfer between servers

2001-11-04 Thread speedboy
For the more complex functions where it is necessary to redirect them to another server, local to them, I have a problem. If these machines are on a LAN together I would suggest you use database sessions. I.e. a table with records containing active sessions. -- PHP General Mailing List

Re: [PHP] Am i crazy? - Solved.

2001-11-04 Thread Martin
Tom Carter wrote: well when you were using echo $name to test then you were outputting html, hence no redirect... I've tried both w/ and w/o the echo. No difference. if your php is set up in such a way as to suppress errors then you wouldn't have been warned about it.. No, nothing is

[PHP] Posting variables to a cgi without a form

2001-11-04 Thread Joseph Blythe
Hey all, What is the best wat to post some variables to a cgi file and capture the output so I may strip out all the html tags, I want to replace a forms action with a php script which will mimic a forms post method, allowing me to better format the response, as at the moment the cgi is written

RE: [PHP] Am i crazy?

2001-11-04 Thread Jason G.
Try putting exit; right after the header() function... -JAson Garber IonZoft.com At 06:54 PM 11/4/2001 +0100, Martin wrote: Jack Dempsey wrote: you're assigning, not checking for equality...use two ='s Still not redirecting ... Martin S -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Posting variables to a cgi without a form

2001-11-04 Thread Joseph Blythe
Thanks, I got to recompile php to do this (me too lazy), can't I do this with the network/filesystem functions? will keep this in mind though. Regards, Joseph -Original Message- From: Jason G. [mailto:[EMAIL PROTECTED]] Sent: Monday, 5 November 2001 4:14 PM To: Joseph Blythe Subject: