RE: [PHP] foreach statement

2002-01-09 Thread Niklas Lampén
Foreach works in PHP just like I told. foreach($emails as $this_is_one_address) is the correct form where $emails is an array and $this_is_one_address gets one element from $emails. This is similar to this (technically): for ($i = 0; $i count($emails); ++$i) { $this_is_one_address =

[PHP] Fwd: curl questionnaire!

2002-01-09 Thread Sterling Hughes
For those of you who use the cURL extension, the underlying library is putting up a little questionaire, to help get a better idea of what the cURL user community wants, feel free to go ahead and participate, the URL (without reading the attachment :) is:

RE: [PHP] foreach statement

2002-01-09 Thread Chris Grigor
Thanks!! its working !!! ***BIG SMILE Niklas you genious -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:15 AM To: Php-General Subject: RE: [PHP] foreach statement Foreach works in PHP just like I told.

RE: [PHP] foreach statement

2002-01-09 Thread Niklas Lampén
You're welcome. :) Niklas P.S. I know... ;) -Original Message- From: Chris Grigor [mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002 10:23 To: '[EMAIL PROTECTED]'; Php-General Subject: RE: [PHP] foreach statement Thanks!! its working !!! ***BIG SMILE Niklas you genious

[PHP] binary data - MSSQL

2002-01-09 Thread Peter Lavender
Hi Everyone, I did ask this earlier, but I have made some head way since, but I'm still not sure that I have things right. What datatype should I use for zip files? How do I create a link to a file to be downloaded from the database? All the examples I have read all relate to images, which

Re: [PHP] IP address from which country

2002-01-09 Thread Jon Farmer
No such table, the best you can do is look at their hostname and parse the last part ie .co.uk or .com... And then u can try and figure where they are from that Err... Wrong. You could host a .co.uk in the US or any other country for that matter! What you need to do is find the IP do a RIPE

Re: [PHP] IP address from which country

2002-01-09 Thread Dimitris Kossikidis
I 'm not sure, but i beleive you can get visitor's country from Apache 's Varialble $HTTP_ACCEPT_LANGUAGE. For further information read Predefined Variables in the manual. Hope it works!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] PHP Security Extension

2002-01-09 Thread List Client
First of all sorry if you have already read this on one of the other PHP Mailing Lists, the reason I am posting it in a couple of different ones is because I really do believe that many people can make use of this extenstion and I know there are people out there who need this extension because I

[PHP] Re: CC Processing in PHP

2002-01-09 Thread gurix
hea http://www.phparchiv.de/cgi-bin/links/jump.cgi?ID=182 and http://www.phparchiv.de/cgi-bin/links/jump.cgi?ID=2015 gurix Muhammad Asif [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, Do PHP has some built-in support for Credit Card Processing?

[PHP] Re: I am very new Question

2002-01-09 Thread gurix
hea 1. take a given javascriptmenu 2. develop a database with th menu items 3. make the Javascript dynamical with the php variables. It isn't anything to learn develop in php, just take it step for step. gurix Kevin P [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: bcc

2002-01-09 Thread php
// here's a nice example for a bcc adress, just generate a header $headers .= From: Birthday Reminder [EMAIL PROTECTED]\r\n; $headers .= Cc: [EMAIL PROTECTED]\r\n; $headers .= Bcc: [EMAIL PROTECTED]\r\n; /* and now mail it */ mail($to, $subject, $message, $headers); gurix Tim Ward [EMAIL

Re: [PHP] IP address from which country

2002-01-09 Thread Eugene Lee
On Wed, Jan 09, 2002 at 11:33:46AM +0200, Dimitris Kossikidis wrote: : : I 'm not sure, but i beleive you can get visitor's country from Apache 's : Varialble $HTTP_ACCEPT_LANGUAGE. For further information read Predefined : Variables in the manual. This works assuming the browser itself sends

[PHP] this is a test. Plz ignore.

2002-01-09 Thread fabrizio
...

[PHP] unshift a key value pair

2002-01-09 Thread Marc Logghe
Hi, I was wondering how you could unshift a key value pair onto an array. In the manual one suggested using a function like this: function array_unshift_assoc($arr, $key, $val) { $arr = array_reverse($arr, true); $arr[$key] = $val; $arr = array_reverse($arr, true); return

Re: [PHP] unshift a key value pair

2002-01-09 Thread Andrey Hristov
Try array_merge() Regards, Andrey Hristov - Original Message - From: Marc Logghe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 10:55 AM Subject: [PHP] unshift a key value pair Hi, I was wondering how you could unshift a key value pair onto an array. In

[PHP] PHP env variables... ?

2002-01-09 Thread fabrizio
Hi, I'm trying to let Webmin execute a script where I can use php as scripting language... (It will be good to work with a language as php in a remote administration server, as root!) Now the STRANGE problem: When I execute a test.cgi program from Webmin, it's executed as root, as it was

Re: [PHP] unshift a key value pair

2002-01-09 Thread Marc Logghe
That's exactly what I did to make it work I gave up playing with array_unshift. Thanks anyway. Marc Andrey Hristov [EMAIL PROTECTED] wrote in message 087501c198ff$45961270$0b01a8c0@ANDreY">news:087501c198ff$45961270$0b01a8c0@ANDreY... Try array_merge() Regards, Andrey Hristov - Original

Re: [PHP] binary data - MSSQL

2002-01-09 Thread Henning Sprang
Hy Peter, Peter Lavender wrote: Hi Everyone, I did ask this earlier, but I have made some head way since, but I'm still not sure that I have things right. What datatype should I use for zip files? You should use the blob type therefore How do I create a link to a file to be

[PHP] Re: unshift a key value pair

2002-01-09 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Marc Logghe) wrote: So it is really easy to *remove* a key-value pair, but how do you put one in ? $arr[$key]=$val; -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: unshift a key value pair

2002-01-09 Thread Marc Logghe
Yes, of course, but the thing is that the order was important. I wanted to put in a new value/pair at the *start* of my array, so I thougth using array_unshift(), but that did not work or at leas I did not find how. With the $arr[$key]=$val assignment you add at the *end* of your array $arr.

Re: [PHP] echo problem NEW

2002-01-09 Thread Henning Sprang
Hy, universal2001 wrote: Hi again! Thanks for the reply! I still have another question: so I tired to use (echo) like this: echo table border=0 cellpadding=0 cellspacing=0 width=639 tr tdimg src=img_heading/spacer.gif width=25 height=1 border=0/td /tr tr td

[PHP] sessions, PHPSESSID, cookies

2002-01-09 Thread gkin
I have a website where I use sessions. After a user has logged of, the logon screen appears again. The username field is filled with the value from a cookie. What happens: For example: username = Peter In the situation that I log of (and the logon page appears), the username field gets the

Re: [PHP] binary data - MSSQL

2002-01-09 Thread Daniel Masur
are you shure about putting binarydata into a database? cant you do it with links? performance would be better this way i think. Henning Sprang [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hy Peter, Peter Lavender wrote: Hi Everyone, I did ask

Re: [PHP] echo problem NEW

2002-01-09 Thread Nicolas Costes
Hellorghh !!! You'd better do like this : echo table border='0' cellpadding='0' cellspacing='0' width='639' Le Mercredi 9 Janvier 2002 13:05, Henning Sprang a écrit : Hy, universal2001 wrote: Hi again! Thanks for the reply! I still have another question: so I tired to use

Re: [PHP] echo problem NEW

2002-01-09 Thread Henning Sprang
Nicolas Costes wrote: Hellorghh !!! You'd better do like this : echo table border='0' cellpadding='0' cellspacing='0' width='639' just another one - but i am too out of practice with html standarts to know if this is compliant ( a browser showing a result doesn't neccessary mean it's

Re: [PHP] echo problem NEW

2002-01-09 Thread Nicolas Costes
Yes, you're right !!! some browsers like IE will accept even blah blah=0, blah blah='0', blah blah=0, and some like Opera will only understand : IE SuxWithTooEasySyntax=1 ;-)) Le Mercredi 9 Janvier 2002 14:17, Henning Sprang a écrit : Nicolas Costes wrote: -- ( * Nicolas Costes,

[PHP] Problem input in flex scanner failed

2002-01-09 Thread Pavel Kharitonov
Hi, Has anybody encountered the following error: Fatal error: input in flex scanner failed in /***path***/info on line 1 The code that is most likely causing this is: ?php $my_cat_cust1=index.htm; ? !-- Some HTML HERE -- ?php if(file_exists(/***path***/info/$my_cat_cust1))

Re: [PHP] echo problem NEW

2002-01-09 Thread Bas van Rooijen
Hello, In addition to Henning Sprang's fine solutions, you can also do the following (given you use PHP 4); ? $xmp_width = 5; $xmp_tdcolor = #FF; $xmp_text = Some text; echo EOF TABLE WIDTH={$xmp_width} TRTD COLOR={$xmp_tdcolor}$xmp_text/TD/TR /TABLE EOF; ? Note that

Re: [PHP] Including files variables ...

2002-01-09 Thread Bas van Rooijen
There's no need to 'pass' any variables. HINT: pretend the include() command is being replaced with the code in your include file, this means that whatever variables are set/available at that point will also be available in the include. On Mon, 28 Jan 2002 18:54:02 -0800, Evansville Scene

[PHP] Regex question

2002-01-09 Thread Jon Haworth
Hi all, I've got a regex that's working fine, apart from one little problem. $tags = array (script, !--!\[CDATA\[, \]\]--); foreach ($tags as $currentTag) if (preg_match (/^\/. $currentTag. /, $content)) // do something (checking to see if anything in the

[PHP] Sessions don't load

2002-01-09 Thread Ryan Kelley
I have got a page that i am loading sessions on with the following code: session_start(); $HTTP_SESSION_VARS['sess_id']=$PHPSESSID; Except that it will not assign an actual value until i hit refresh on my browser. Any ideas for a fix? Thanks in advance, Ryan Kelley -- PHP General Mailing

[PHP] PHP vs. ASP

2002-01-09 Thread Jake
Hello there, I need some help. I have to do a technical report(about 2200 words) comparing PHP to ASP. I have already decided to make PHP the winner becasue it is superior. But I am kinda stumped on what areas to compare the two. If you could help me out in suggesting some possible areas of

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Julio Nobrega Trabalhando
Database is a good point. PHP has native support for several, while I believe ASP do not (through ODBC). Modules, and their price. At least I heard in ASP you have to pay for some of them (well, more than those on PHP). Typecast? I am not sure if in ASP you have to, I remember I heard

Re: [PHP] Sessions don't load

2002-01-09 Thread Andrey Hristov
when session_start() is called for a first time, it generates session_id and set a cookie for the browser. The common name for the cookie is PHPSESSID. You receive it on the refresh, because after the first load this cookie is known by the browser. When you hit the page for a first time, there

Re: [PHP] Regex question

2002-01-09 Thread Stefan Rusterholz
Hi all, I've got a regex that's working fine, apart from one little problem. $tags = array (script, !--!\[CDATA\[, \]\]--); A quick shot (perhaps I miss the point ;): if you do $x = \[; then $x will contain [. If you then do a regex with preg_match(/$x/, ...

RE: [PHP] Regex question

2002-01-09 Thread Jon Haworth
If you want the [ to be escaped in the regex you have to double-escape it: $x = \ \[; (sorry, the two \ should be together without a space but my stupid mail-app converts the string thinking it's an network address) so $x will contain \[ as you want ( the first backslash escapes the second).

Re: [PHP] inserting a file into MSSQL

2002-01-09 Thread Jimmy
Hi Peter, Does anyone have a link to a good reference on how to insert a binary file (zip file) into MSSQL? why do you want to store binary file in DB? It's more efficient to store the file in filesystem, and in DB only store the path of the file. Unless you really have a good reason and left

Re: [PHP] Regex question

2002-01-09 Thread Stefan Rusterholz
If you want the [ to be escaped in the regex you have to double-escape it: $x = \ \[; (sorry, the two \ should be together without a space but my stupid mail-app converts the string thinking it's an network address) so $x will contain \[ as you want ( the first backslash escapes the

[PHP] php sockets!- urg!!!

2002-01-09 Thread Sandeep Murphy
Hi, I am opening a socket on a remote server(weblogic) and sending my username and psswd to authentify them... I figure my php is opening the socket as no errors r being trapped.. However the response is a blank page instead of an xml formatted response...why??? how can i rectify this??

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Robert Klinkenberg
Well, I personally prefer PHP over ASP because better support from webhosting companies, but ASP has some good points. This is especially the case if you can setup the complete hosting environment yourself and have some money to spend. First of all databases. PHP has support for a limited but

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Dean Ouellette
I am a newbie to programming, ASP is easier to learn? I heard PHP was At 04:48 PM 1/9/2002 +0100, Robert Klinkenberg wrote: Well, I personally prefer PHP over ASP because better support from webhosting companies, but ASP has some good points. This is especially the case if you can setup the

RE: [PHP] Sessions

2002-01-09 Thread Johnson, Kirk
PHPSESSID will not be set on the first request. On the first request to a page with session_start(), PHP creates a session and sends a cookie named PHPSESSID to the browser. When the browser returns the cookie in the next request, PHPSESSID gets put into $HTTP_COOKIE_VARS[] array, and if

[PHP] Newbie

2002-01-09 Thread Kevin P
Hi I am trying to keep information that is input via a form. This form may be used 1, 2, 3, 4 or more times for each entry. Meaning that the form will be filled out and added then another of the same form filled our and so on until the person clicks the the complete button. Can I hold this info

RE: [PHP] Regex question

2002-01-09 Thread Jon Haworth
As far as I can see (notice: I'm not a regex-king ;) the regex seems correct to me. The only thing I'm wondering about is the /^ (second last line of the citation). Together with your expression in the array it results in preg_match(/\/!\[CDATA\[/, ...) I'm wondering if that (/![CDATA...) is

[PHP] php,sockets-help!

2002-01-09 Thread Sandeep Murphy
Hi, I am opening a socket on a remote server(weblogic) and sending my username and psswd to authentify them... I figure my php is opening the socket as no errors r being trapped.. However the response is a blank page instead of an xml formatted response...why??? how can i rectify this??

[PHP] Re: Newbie

2002-01-09 Thread Julio Nobrega Trabalhando
Both ways. I would use session if the form(s) must be completed at once. If someone can save forms 1 and 2 and another day return to complete the remaining steps, then a database might be better. Also, if you use a database to hold temp info that must fly between the forms, you would have to

Re: [PHP] php,sockets-help!

2002-01-09 Thread Andrey Hristov
Probably here : $header .= User-Agent: PHP/4.0.6 (Apache/1.3.20)\r\n\r\n; you have two new lines instead of one. HTH Regards, Andrey Hristov - Original Message - From: Sandeep Murphy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 6:23 PM Subject: [PHP]

Re: [PHP] php,sockets-help!

2002-01-09 Thread Bogdan Stancescu
Plus, isn't your request content-type: application/x-www-form-urlencoded? And another thing, since you send all the headers HTTP 1.1 compatible, why don't you use it instead of 1.0? Bogdan Sandeep Murphy wrote: Hi, I am opening a socket on a remote server(weblogic) and sending my username

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Nicolas Costes
Well, I don't know ASP, but I fonud that learning PHP was really easy when you already know C, C++ And no variables types, pointer, etc ... is great !!! Le Mercredi 9 Janvier 2002 17:01, Dean Ouellette a écrit : I am a newbie to programming, ASP is easier to learn? I heard PHP was At

[PHP] postgres

2002-01-09 Thread aurelio
somebody can help me, does not obtain to discover because this error with postgres happens? Warning: PostgresSQL query failed: ERROR: pollolitoral_cidade: Permission denied. in ../php3/pg_functions.php3 on line 172 Thanks, Aurélio Sabino

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Philip Hallstrom
I don't want to start a war, but last time I looked PHP had native support for every database I'd ever heard of including Oracle, SQLServer, etc... Just don't want the guy doing the report that php is database limited... On Wed, 9 Jan 2002, Robert Klinkenberg wrote: Well, I personally prefer

RE: [PHP] postgres

2002-01-09 Thread Dave
suggestion would be to post a snippet of the relavent code... say lines 160 to 175 or something like that. Troubleshooting across the etherial plane is expensive. Dave -Original Message- From: aurelio [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 12:48 PM To: [EMAIL

RE: [PHP] problems with urlencoding

2002-01-09 Thread V
try rawurlencode() and rawurldecode() Salu2, V -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Enviado el: jueves 27 de diciembre de 2001 3:46 Para: [EMAIL PROTECTED] Asunto: [PHP] problems with urlencoding Hi, I try to send the content of a variable about

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Michael Kimsal
Philip Hallstrom wrote: I don't want to start a war, but last time I looked PHP had native support for every database I'd ever heard of including Oracle, SQLServer, etc... Just don't want the guy doing the report that php is database limited... Native support can mean different things,

[PHP] RE: serial array vs. hash....

2002-01-09 Thread Tim Ward
As far as I know all arrays in php are hash arrays. Your serial array is actually a hash array with numeric keys, so in your example using numeric keys and having to loop through them has nothing going for it. I'm sure someone will tell me if I'm wrong. Tim www.chessish.com

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Stephen Abshire
I agree about not starting a war between PHP and ASP. We already have one going on that is out of hand between Linux and Windows :-) I do think it is up to how you view things. When I think of support being native I think of that meaning that something can perform a task using only its own

RE: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Neil Kimber
You should probably consider ASP.NET. Visual Studio .NET is out in early Feb and ASP.NET makes an enormous leap in functionality. It should almost be considered a new web development environment. It allows development in any CLR compliant language (straight VB.NET, C#, managed C++ etc..) It

RE: [PHP] functions...

2002-01-09 Thread Robert V. Zwink
More about this here: http://www.php.net/manual/en/function.func-get-arg.php Robert Zwink http://www.zwink.net/daid.php -Original Message- From: Chris Hall [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 9:48 PM To: [EMAIL PROTECTED] Subject: [PHP] functions... function

[PHP] RE: PHP vs. ASP

2002-01-09 Thread Robert Klinkenberg
Off course PHP does support Oracle and the like. What I wanted to say is that PHP support most common databases, but if your company needs support for some strange database you can't access it very fast and easily (especially when you use PHP on Unix). On the other hand with ASP you can access

Re: [PHP] PHP vs. ASP

2002-01-09 Thread Shane Wright
Hi Something I dont think anyone's mentioned yet is that PHP is also great for running stuff from the command line - e.g. for background scripts for a site or mailing scripts or whatever... In case that doesnt sound so useful, it measn you can use all the same libraries for the online site

[PHP] Limiting CPU usage/time of spawned processes

2002-01-09 Thread Mike Eheler
Hi There, Okay, I have a server that allows a couple hundred virtual hosts that we have run websites as we are a hosting company. Recently one of our customers decided to spawn lynx through PHP. The process was running at 80% cpu for over 400 minutes, and it appears that Apache's RLimitCPU

Re: [PHP] echo problem NEW

2002-01-09 Thread Paul Burney
on 1/9/02 8:17 AM, Henning Sprang at [EMAIL PROTECTED] appended the following bits to my mbox: just another one - but i am too out of practice with html standarts to know if this is compliant ( a browser showing a result doesn't neccessary mean it's standarts compliant!) FYI: By default,

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Mike Eheler
Well being a former ASP programmer and a current PHP programmer I think I can help you there. The key point is ease of use. PHP provides far more functionality than ASP (try finding a function to print out the date in ASP.. yeah, I thought so), while at the same time giving you access to

[PHP] quick question

2002-01-09 Thread Erik Price
Just a quick question -- I'm temporarily unsubbed so if anyone could CC me directly that would be great. I'm trying to write my code in accordance with the PHP 4.1.0 security advisory -- that is, I want to use the $_GET and $_POST arrays when grabbing variables passed with GET and POST forms.

[PHP] Form Problem

2002-01-09 Thread Chris Kwasneski
I'm having a problem with a HTML form. When it gets submitted, I keep getting an undefined variable error message. And a blank page (aside from a 'Hi' written on it...). I don't think its a problem with my install of PHP as other PHP code is running fine, but can't get it to print out this

[PHP] Re: How reliable is the 'user' in http://user@somehost.com/???

2002-01-09 Thread Philip Hallstrom
In looking into this more, while I can put stuff there, PHP doesn't pick it up (or perhaps the browser doesn't send it) unless you do something like this: if ( !isset($PHP_AUTH_USER) ) { Header(WWW-Authenticate: Basic realm=\Foo\); Header(HTTP/1.0 401 Unauthorized); exit; } But in

[PHP] Re: PHP vs. ASP

2002-01-09 Thread Julio Nobrega Trabalhando
Sorry, corrected on PHP only after 15 being reported.. should read: corrected on PHP only after 15 minutes being reported.. That was a good thing I saw. I still remember, some exec() problems with slashes and some letters on a specific plataform. Stunned me how fast the bug was solved.

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Stephen Abshire
ASP function to print out the date: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctformatdatetime.asp --- START SAMPLE CODE --- Function GetCurrentDate ' FormatDateTime formats Date in long date. GetCurrentDate = FormatDateTime(Date, 1) End Function

[PHP] Newbie question

2002-01-09 Thread Bob Eldred
Hi there, I'm really really new to both PHP and MySQL, so this is probably going to turn out to be an easy fix. The basis is this: I have a MySQL database with two tables in it. I'm trying to update 1 of the fields (aqfl_team) in the first table (nfl_players) with a value from a field

RE: [PHP] Newbie question

2002-01-09 Thread Pavel Kharitonov
The problem is here: $nfl_player_id = mysql_query(SELECT player_id FROM nfl_players WHERE first_name='$aqfl_player_first' AND last_name='$aqfl_player_last' AND position='$aqfl_player_position' AND nfl_team='$aqfl_player_nfl_team'); mysql_query does not return the ID, but the handle of the

[PHP] Array Creation

2002-01-09 Thread Jamison Roberts
What I have is a text file that has data in the following format: username, numbers The quotation markes can't be helped...the script I use to generate the file adds them automatically. (Hummingbird Basic, one of the worst languages in the history of mankind.) What I've been trying to do is

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Rasmus Lerdorf
Databases - although PHP 'supports' many databases natively, the support is in the form of 3rd party libraries with PHP wrapper functions. Nothing inherently wrong with that, but the current method dictates that to use oracle you use oci_ functions, for mysql you use mysql_ functions,

RE: [PHP] Form Problem

2002-01-09 Thread Pavel Kharitonov
I had the same problem happen to me a couple of days ago. A form that has been working has stopped working all of a sudden - all fields would be submitting as blank (undefined). Unfortunately, I was not able figure out what the problem was :-( I got it down to the line that was causing my form

Re[2]: [PHP] Form Problem

2002-01-09 Thread Intruder
I don't like this line: input type=submit name=submit value=Submit / change it: input type=submit name=submit value=Submit to my mind it could help ; PK html PK head PK titleMy Form/title PK /head PK body PK form action=test2.php method=GET PK My name is: PK br input

Re: [PHP] Array Creation

2002-01-09 Thread Bogdan Stancescu
while (!feof ($fp)) { $line = fgets($fp, 4096); $data = explode(,, str_replace(\, , $line)); //using str_replace to get rid of quote marks //following line to see if data is correct echo $data[0]. .$data[1].br; $theArray[$data[0]]=$data[1]; } fclose($fp);

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Michael Kimsal
Rasmus Lerdorf wrote: Databases - although PHP 'supports' many databases natively, the support is in the form of 3rd party libraries with PHP wrapper functions. Nothing inherently wrong with that, but the current method dictates that to use oracle you use oci_ functions, for mysql you use

Re: [PHP] Form Problem

2002-01-09 Thread Richard Crawford
The presence of the final / in the line makes the page XHTML compliant. It should be left in, and it has no effect whatsoever on the functionality of the input tag. In fact, it should be included in the input type=text tag as well. I can't find a darn thing wrong with your script. You

Re: [PHP] Re: PHP vs. ASP

2002-01-09 Thread Rasmus Lerdorf
I actually was going to mention it, because I know it's being worked on - last I read it was 'beta' or something similar, and only supported a handful. My understanding was that even it was still a wrapper system, but it's definitely a welcome (huge) step in the right direction, in our

Re: [PHP] Array Creation

2002-01-09 Thread Bogdan Stancescu
Also, make sure you get rid of the space at the beginning of $data[1] - the space after the comma gets in there, so either use trim() or just trim the first character programatically ($data[1]=substr($data[1],1)). Bogdan Jamison Roberts wrote: What I have is a text file that has data in the

[PHP] getcwd()

2002-01-09 Thread Paul Zernik
Hi, Under PHP 4.0 getcwd() worked fine. Now my provider changes to PHP 4.1.1 and now it doesn't work any more. What can i do to get the current directory (url) now? thx Paul Zernik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] counting with dates (help!)

2002-01-09 Thread Peter J. Schoenster
On 7 Feb 2002, at 23:21, Sander Peters wrote: Hello, This is my problem: $today = date(Ymd, mktime(0,0,0, date(m),date(d),date(Y))); $last_week = date(Ymd, mktime(0,0,0, date(m),date(d)-7,date(Y))); echo ($today - $last_week); The result is a number like 8876 (20020107-20011231 =

[PHP] Help me Apache and PHP on WinMe

2002-01-09 Thread J.Vasquez
When I run Apache display this error: [wed Jan 09 15:50:18 2002] [warn] pid file c:/Archivos de programa/apache group/ apache/logs/httpd.pid overwritten -- Unclean shutdown of previous run? Cannot find module IP-MIB: At line 0 in none Cannot find module IF-MIB: At line 0 in none Cannot

[PHP] need help looping through each record with a query - stumped

2002-01-09 Thread Brian Tully
hey folks - i'm stumped. been working on what i thought would be a simple script to cycle through users' records and perform a query. But I can't get the loops right, it seems like only one or two records get updated. Using MySQL, we have about 2000 students enrolled. each month they take a

[PHP] PHP and Images stored in mysql

2002-01-09 Thread Rodrigo Peres
Hi list, I have some images stored in a blob in mysql. I've made this code to output them to html, but the problem is if there's no image at a given id the page tooks a long time to load and display the broken image, there's a way to avoid this, I mean, there's a way to print a message or

[PHP] Delete on exit

2002-01-09 Thread Ryan Kelley
I am writing an online store and have setup sessions to run when a user enters the site they can shop around and browse without logging in. They only have to login when the want to checkout. But if a user a) closes the browser or b)leaves the site without buying anything then i need it to empty

Re: [PHP] Delete on exit

2002-01-09 Thread Mehmet Kamil ERISEN
Hi, You can store all shopping cart activites in a cookie until it is written to your database. When they login, call the cookie and insert the cookie SC to the database --- Ryan Kelley [EMAIL PROTECTED] wrote: I am writing an online store and have setup sessions to run when a user

Re: [PHP] need help looping through each record with a query - stumped

2002-01-09 Thread Mehmet Kamil ERISEN
Hi, If I am not missing anything, you are not sorting SELECT Month, Score FROM scores WHERE Username = '$Username' Also, the requirement is not three consecutive test in a month, so I would not break the loop into months. once you have it ordered it by the date : while (list($Month,

[PHP] Party/RSVP App?

2002-01-09 Thread Michael O'Neal
Hi all, I'm looking for a PHP Party Invite/RSVP app. I'd like it to be similar to evite.com. I'm just checking first to see if something exists before I dig into it myself. Thanks, mto -- Michael O'Neal Web Producer - M A N G O B O U L D E R

[PHP] Party/RSVP App?

2002-01-09 Thread Michael O'Neal
Hi all, I'm looking for a PHP Party Invite/RSVP app. I'd like it to be similar to evite.com. I'm just checking first to see if something exists before I dig into it myself. Thanks, mto -- Michael O'Neal Web Producer - M A N G O B O U L D E R

Re: [PHP] Party/RSVP App?

2002-01-09 Thread Jason Bell
go take a look at some of the script archive pages like http://www.hotscripts.com I'm sure someone out there has made this already - Original Message - From: Michael O'Neal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 2:56 PM Subject: [PHP] Party/RSVP

Re: [PHP] PHP and Images stored in mysql

2002-01-09 Thread Bogdan Stancescu
My way around this is using two fallback stages: for one you test mysql_num_rows() after performing the query. If that's 0, use a default image placed in the database beforehand. If that also returns a null mysql_num_rows() then echo an image (probably the same default) from a known location in

[PHP] Interesting Problem

2002-01-09 Thread Yoed
Hi... I have an interesting problem I don't know which way to solve. So I'll shoot it out to you guys and see what you might offer. I have two databases, say X, and Y: CREATE TABLE X( Id int(11) NOT NULL auto_increment, Dep_Date date, Return_Date date, Cat1_Status varchar(100), Cat2_Status

[PHP] Apache and /

2002-01-09 Thread Todd Cary
I forgot the parameter to change in httpd.conf so when the trailing / is left off, the index.html will be executed. Anyone know the parameter? Many thanks Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] How long can the session ID be?

2002-01-09 Thread Philip Hallstrom
Hi - How long can the session ID be? Infinitely long? It seems to always be 32 characters on my system, but it looks like it's built from the PID and the time and some other stuff which can change... so I'm assuming it can too... Can I safely assume it won't get larger than say 64

Re: [PHP] Apache and /

2002-01-09 Thread Eugene Lee
On Wed, Jan 09, 2002 at 03:47:16PM -0800, Todd Cary wrote: : : I forgot the parameter to change in httpd.conf so when the trailing / : is left off, the index.html will be executed. Anyone know the : parameter? DirectoryIndex index.html index.htm -- Eugene Lee [EMAIL PROTECTED] --

RE: [PHP] need help looping through each record with a query - stumped

2002-01-09 Thread Martin Towell
could you change this $query2 = (SELECT Month, Score FROM scores WHERE Username = '$Username'); to $query2 = (SELECT count(*) FROM scores WHERE Username = '$Username' and Score = 75 and Month in ('January', 'December', 'November', 'October')); $result2 = mysql_query($query2) or die

RE: [PHP] need help looping through each record with a query - st umped

2002-01-09 Thread Mehmet Kamil ERISEN
If you are querying the Score = 75 how are you ging to take the Consecutive requirement into the account. --- Martin Towell [EMAIL PROTECTED] wrote: could you change this $query2 = (SELECT Month, Score FROM scores WHERE Username = '$Username'); to $query2 = (SELECT count(*)

RE: [PHP] need help looping through each record with a query - st umped

2002-01-09 Thread Martin Towell
i'm converting Brian's php code into sql - he's looking for scores in Oct, Nov, Dec and Jan, that's what I'm doing in the sql, and the if's all have if score = 75 which is what I'm doing in the sql too, Brian is getting a total $tally++ so am I count(*)... -Original Message- From:

[PHP] Apache and PHP4 on Win Me

2002-01-09 Thread J.Vasquez
Hi: When run Apache display this error: Cannot find module IP-MIB:At line 0 none Cannot find module IF-MIB:At line 0 none Cannot find module TCP-MIB:At line 0 none Cannot find module UDP-MIB:At line 0 none Cannot find module SNMPv2-MIB:At line 0 none Cannot find module SNMPv2-SMI:At line 0 none

Re: [PHP] Interesting Problem

2002-01-09 Thread Bogdan Stancescu
It's obviously more effective to do it in MySQL, but you shouldn't have any real processing problems even if you don't find an appropriate solution using MySQL exclusively, because you'd have the two arrays ordered by MySQL, so all you'll have to do would be something like

  1   2   >