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

2002-01-09 Thread Jason Wong
On Thursday 10 January 2002 03:38, Philip Hallstrom wrote: > > > > So my questions are these: > > > > - how reliable is that syntax for passing data around? > > > > - is there a reason PHP can't use that for storing $SID? If you compile php using "--enable-trans-sid" then it will automatically

[PHP] Re: Interesting Problem

2002-01-09 Thread Yoed
Thanks for the people who tried ot help me. I posted on the mysql list and they offered me this elegent solution: -create a temp table -select data from table x -insert data into temp table -select data from table y -insert data into the same temp table -grab the data from the temp table sorted b

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

2002-01-09 Thread Brian Tully
thanks guys, I really appreciate it. first off, Martin your suggestion looks great but I don't think its SQL syntax is supported by MySQL. It's a good start though - gives me something to work with :) I guess I need to clarify a bit more about what needs to happen... in the MySQL database, ther

[PHP] PHPLib

2002-01-09 Thread Kunal Jhunjhunwala
Hey guys, Has anyone used this before?? If so, is it a pain in the a$$? I read the documentation.. and sounds like you would need to re-code your authentication system, sessions blah blah to work with it? or am i going waay of target here?? All i wanna do is, customize my html... i dont wanna

Re: [PHP] Form Problem

2002-01-09 Thread Jason Wong
On Thursday 10 January 2002 03:30, Chris Kwasneski wrote: > 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 othe

Re: [PHP] Interesting Problem

2002-01-09 Thread Jimmy
Hi Yoed, > mysql_query("SELECT Id, Dep_Date, Return_DateFROM X,Y WHERE Dep_Date LIKE > '%$SelectDate%' OR Return_Date LIKE '%$SelectDate%' ORDER BY Dep_Date"); > Will give you a ton of errors, and I'm not very fimilar with JOIN and SQL > and how that works. My idea was to create two querys, but t

[PHP] array_shift and php 4.0.4

2002-01-09 Thread Gerard Samuel
Hey all. Im putting together a script and Im having a couple people test it out. Here is a bit of code... $c = explode ('/', dirname($PHP_SELF)); array_shift($c); It runs fine on my box, php 4.0.6, apache 1.3.22. On a box with php 4.0.4pl1, apache 1.3.20 it spits an error. Fatal error: Call

RE: [PHP] Delete on exit

2002-01-09 Thread Martin Towell
http://www.php.net/manual/en/function.setcookie.php -Original Message- From: Ryan Kelley [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Delete on exit Exactly how would i do that. I am new to cookies. Please advise. Ryan K

Re: [PHP] Delete on exit

2002-01-09 Thread Ryan Kelley
Exactly how would i do that. I am new to cookies. Please advise. Ryan Kelley "Mehmet Kamil Erisen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > You can store all shopping cart activites in a cookie until > it is written to your database. > When they

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 $myrow1=mysql_fetch_row

[PHP] Apache and PHP4 on Win Me

2002-01-09 Thread J.Vasquez
Hi: When run Apache display this error: Cannot find module :At line 0 Cannot find module :At line 0 Cannot find module :At line 0 Cannot find module :At line 0 Cannot find module :At line 0 Cannot find module :At line 0 ¿whi? how I do? _

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:

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 = ("SE

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

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

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

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

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

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 th

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

[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] 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, $Score

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

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

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

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

[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 : At line 0 in Cannot find module : At line 0 in Cannot find module : At line

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

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

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 f

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] 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. Yo

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

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].""; $theArray[$data[0]]=$data[1]; > >

Re[2]: [PHP] Form Problem

2002-01-09 Thread Intruder
I don't like this line: change it: to my mind it could help ; PK> PK> PK> My Form PK> PK> PK> PK> My name is: PK> PK> PK> PK> PK> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

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 t

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

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

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 conn

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

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

[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; } B

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

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

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 as

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

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 lala

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 cleanl

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 i

[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

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

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

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

[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

[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

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

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 usernam

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]

[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

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

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("/<\/ I'm wondering if that ( not only

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

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

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

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

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 e

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 lef

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

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", >""); 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/", ..." eg. then it get's eva

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 i

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

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

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

[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", ""); foreach ($tags as $currentTag) if (preg_match ("/^<\/". $currentTag. "/", $content)) // do something (checking to see if anything in the $tags array is at the start

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 wro

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_text EOF; ?> Note that the {} around your variables are optional, they will not be included in the output but can be used to avoid confusion. greets, bvr. On Wed, 9 Ja

[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: I'm running 4.0.6 on a Redhat 6.2 I'm completely stumped, this looks like a completely innocent code. Any help or hits w

Re: [PHP] echo "" problem NEW

2002-01-09 Thread Nicolas Costes
Yes, you're right !!! some browsers like IE will accept even , , , and some like Opera will only understand : ;-)) Le Mercredi 9 Janvier 2002 14:17, Henning Sprang a écrit : > Nicolas Costes wrote: -- ( * >Nicolas Costes, //\\ IUT de La Roche / Yon ( \/ ) [EMAIL PROTECTED] <

Re: [PHP] echo "" problem NEW

2002-01-09 Thread Henning Sprang
Nicolas Costes wrote: > Hellorghh !!! > You'd better do like this : > > echo " > 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!) henning -- PHP General Mai

Re: [PHP] echo "" problem NEW

2002-01-09 Thread Nicolas Costes
Hellorghh !!! You'd better do like this : echo " 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 (echo) like this: > > > > echo " > > > >

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

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

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 " > > border="0"> > > > src="img_heading/index_r1_c1.gif" width="639" height="5" border="0"> > border="0"> > > >

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

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

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 b

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

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

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 arr

[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 count($a

[PHP] this is a test. Plz ignore.

2002-01-09 Thread fabrizio
...

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

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

  1   2   >