[PHP] Fw: problems with php and jscript....

2001-11-13 Thread Silvia Mahiques
- Original Message - From: Silvia Mahiques To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 12, 2001 9:04 PM Subject: problems with php and jscript I have written an html page with jscript and php code, but I have some problems. The errors are in black letter

[PHP] Weird database stuff.

2001-11-13 Thread Alexander Deruwe
Hey fellow PHP-codemonkeys. :) Let me start by laying out some facts: SELECT e.NAME AS customer, g.NAME AS driver_lastname, g.FIRSTNAME AS driver_firstname, $CommonSQL, COUNT(g.NAME) AS number FROM ENTITY e, ENTITY g, EXPERTISE_FILE f, DAMAGE_CASE d WHERE (f.CUSTOMER = '$CustomerID') AND (e.I

Re: [PHP] Regular Expression

2001-11-13 Thread Jason G.
I am just learning them, but I think something like this may be in order... I know that you would use the | (or) operator. if(! (ereg('^[a-z|A-Z|0-9|\-]+$', $fn) && (ereg('^[a-z|A-Z|0-9|\-]+$', $fs))) { Either $fn or $sn failed the match } -Jason Garber IonZoft.com At 04:41 PM 11/13/

[PHP] anti-alias

2001-11-13 Thread Oosten, Sjoerd van
Hello, I have a little question about the GD-Lib. Is it possible to parse anti-aliassed text? This would be very interesting because anti-aliassed buttons are more beatiful! Thanks, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B

Re: [PHP] Regular Expression

2001-11-13 Thread Andrey Hristov
if (count(preg_grep('/(([0-9a-zA-Z]+)|\-)/',array($fn,$sn)))==2){ } Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Jason G." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 10:18

[PHP] Re: Regular Expression

2001-11-13 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Adam Whitehead) wrote: > if ((ereg("[^[:alnum:]]",$fn)) || (ereg("[^[:alnum:]]",$sn))) { > // Do something here > } > > What it's doing is checking two variables to make sure they contain only > alphanumeric characters. > > I have a requireme

[PHP] PHP & CGI

2001-11-13 Thread ArsenKirillov
i have .htaccess on root of my web: ErrorDocument 400 /e.php ErrorDocument 401 /e.php ErrorDocument 403 /e.php ErrorDocument 404 /e.php ErrorDocument 500 /e.php When i try get via http an nonexisten html document : noneasdfaasd.html i got result of e.php script. When i try to get nonexisten dfsd

RE: [PHP] mail() with mailing lists problem

2001-11-13 Thread Rudolf Visagie
True. I had the attachment outside of the function (encoding once) but this is a leftover of debugging and trying to get it to work. I hadn't thought of Bcc-ing everybody. I'll try that, thanks. Still doesn't solve the problem, though. Maybe a socket is the answer. -Original Message- From

[PHP] Solution for testing PHP/MS Access on Linux

2001-11-13 Thread mweb
Hello, some days ago I asked help on this list because I have to develop and test on Linux/Apache some PHP pages that will have to run on on an IIS/NT box. On the real server the pages must manage a MS Access database via ODBC (this mixed setup cannot be changed: explanations in the original mess

[PHP] Can If Else statements be split into code blocks??

2001-11-13 Thread Brad Melendy
Hello, I'm trying to execute some HTML in an IF ELSE statement. I'm trying something like: Basically, it works great without the form I'm trying to insert, but with the form after the IF statement, it fails. Is what I want to do against the rules? I'm converting an ASP scr

[PHP] even or not

2001-11-13 Thread Oosten, Sjoerd van
Hello, How can is check with php wether a number is even or not? What i want is that in a while loop the background color of a cell changes! Thanks, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minerv

RE: [PHP] Can If Else statements be split into code blocks??

2001-11-13 Thread Richard Black
Try putting curly brackets around the if and else clauses. I'm guessing the embeded html form counts as another statement in the program, which means you want to execute 2 statements if the strstr is true. I ALWAYS use curly brackets, even if I'm only executing one statemenet in my if, and I've

Re: [PHP] even or not

2001-11-13 Thread Morten Winkler Jørgensen
OSv> How can is check with php wether a number is even or not? What i want is OSv> that in a while loop the background color of a cell changes! Try echo (($i++ % 2) == 0) ? "#FF" : "#00FF00"; First it performs an integerdivision and checks if the remainder is 0. If that is the case it p

Re[2]: [PHP] Can If Else statements be split into code blocks??

2001-11-13 Thread Morten Winkler Jørgensen
RB> if (strstr($DomResults,$Match)) RB> print "Congratulations! $domain.$suffix is available!"; ?>> RB> RB> RB> RB> else RB> print "Sorry, $domain.$suffix is already taken."; ?>> You definitely needs curly brackets. Kind regards, Morten Winkler -- PHP

Re: [PHP] for loop problem?

2001-11-13 Thread John Steele
Tyler, It must be something weird with your NT version of MySQL, you might try asking on the MySQL list, or checking the bug list on mysql.com. I have an even older version here on 95, that doesn't display any of those problems. Here's the code I used with it's output (no duplicates, I ch

[PHP] Any easy way of finding "yesterday"...?

2001-11-13 Thread Harry Lau
It is easy to use the function getDate() to obtain the date of today. But instead of writing plenty of conditions, is there any easy way to get the date of yesterday? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] Any easy way of finding "yesterday"...?

2001-11-13 Thread Oosten, Sjoerd van
$yesterday = mktime(0,0,0,date("m"),date("d") -1,date("Y")); Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757 ___

[PHP] Extracting table names

2001-11-13 Thread Damien Burke
Hi, I am relatively new to mysql - I'm developing a site using mysql & php. I need to populate a drop down menu with all of the table names in a database. I can do standard queries (SELECT * FROM blah WHERE ...) but I'm having trouble returning all of the table names. Can anyone help? Thanks,

[PHP] File Upload Form

2001-11-13 Thread Sharat Hegde
Hello, The PHP manual provides a method for File Upload. The sample code is as follows: Send this file: While this works when this is part of an HTML page, it strangely does not work when it is part of a PHP3 file. I found this to be problem with my PHP page after some struggle. Any reaso

[PHP] Re: Any easy way of finding "yesterday"...?

2001-11-13 Thread Harry Lau
Following is a solution... $now = getdate(); $today = date("d-m-Y"); $yesterday = date("d-m-Y",mktime(0,0,0,$today['mon'],$today['mday']-1,$today['year']); echo("Today is " . $today . "and yesterday was " . $yesterday); "Harry Lau" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

[PHP] Re: Any easy way of finding "yesterday"...?

2001-11-13 Thread Harry Lau
Oh what a big mistake...sorry! $now = getdate(); $today = date("d-m-Y"); $yesterday = date("d-m-Y",mktime(0,0,0,$now['mon'],$now['mday']-1,$now['year']); echo("Today is " . $today . "and yesterday was " . $yesterday); "Harry Lau" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] Extracting table names

2001-11-13 Thread Thargor
Hallo Damien, Tuesday, November 13, 2001, 10:39:31 AM, you wrote: > I am relatively new to mysql - I'm developing a site using mysql & php. > I need to populate a drop down menu with all of the table names in a > database. > I can do standard queries (SELECT * FROM blah WHERE ...) but I'm having

[PHP] Very non-PHP (this is Java)

2001-11-13 Thread Niklas Lampén
This time VERY non-php, but I trust you guys! ;) Are Java applets stored automatically to cache? Can I prevent it somehow? Niklas

[PHP] Re: Any easy way of finding "yesterday"...?

2001-11-13 Thread Henrik Hansen
[EMAIL PROTECTED] (Harry Lau) wrote: > It is easy to use the function getDate() to obtain the date of today. > But instead of writing plenty of conditions, > is there any easy way to get the date of yesterday? echo date("m-d-Y", mktime(0,0,0,date("n"), date("d")-1, date("Y"))); -- Henrik Ha

[PHP] Problems with headers in redirect

2001-11-13 Thread Richard Black
Hi, I'm hoping someone can help me with this one... I'm doing redirects to various types of file (Flash, Office, DWF etc) and have found a problem with IE5. I pass the script a document ID, and it retrieves the document record from a database, which stores the location of the file on the web s

[PHP] server side games question

2001-11-13 Thread Daniel
Hi, Right I'm still pretty new to server side programming and have a few questions regarding the possible uses of existing technology in 'low-tech' (not 3d FPS/RTS/RPGs) online games. As I understand it PHP is used to add dynamic content to HTML (from MySQL database for example) and it is also p

Re: [PHP] Weird database stuff.

2001-11-13 Thread DL Neil
Third db question today: do folk know there is a (lightly loaded) '[PHP-DB] list' with some v.competent members? Hi Alexander, - Original Message - > Let me start by laying out some facts: > > SELECT e.NAME AS customer, g.NAME AS driver_lastname, g.FIRSTNAME AS > driver_firstname, $Com

Re: [PHP] mail() with mailing lists problem

2001-11-13 Thread DL Neil
Rudolph, Mail() is v.finicky! Windows machines need more than the \n - what are you running? Have you tried putting some string of characters into the (text) msg body? Can you send us a copy of the actual email msg showing the headers etc (output as received at the POP/IMAP server) - after clippi

[PHP] Re: Any easy way of finding "yesterday"...?

2001-11-13 Thread _lallous
strtotime('yesterday') should work! "Harry Lau" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It is easy to use the function getDate() to obtain the date of today. > But instead of writing plenty of conditions, > is there any easy way to get the date of yeste

Re: [PHP] server side games question

2001-11-13 Thread Thargor
Hallo Daniel, Tuesday, November 13, 2001, 11:31:49 AM, you wrote: > Hi, > Right I'm still pretty new to server side programming and have a few > questions regarding the possible uses of existing technology in 'low-tech' > (not 3d FPS/RTS/RPGs) online games. As I understand it PHP is used to a

[PHP] Re: server side games question

2001-11-13 Thread Julio Nobrega Trabalhando
Hi! For the programming language, I would go with PHP over any other. Yes, yes, there's no best language for every task, but with your C++ background it should be easy to develop advanced techniques on PHP than on others on short time. Depending from what you meant with 'background apps to

[PHP] Frames and Sessions

2001-11-13 Thread Michael Hall
Hi All I have a client who has presented me with a near finished website that uses frames. She would like me to build a simple PHP cart into it. I've built simple carts before without drama, but this one has me baffled. I have avoided using frames in almost everything I've done to date and don't

RE: [PHP] fopen and paths

2001-11-13 Thread PACKER, Steffan
Thanks but I am still having problems, $DOCUMENT_ROOT does not seem to work(I am using an NT4 server), I cannot use an absolute path as the content management software that is running has a tendency to strip them out! It seems (to me) that it is a precedence problem, as it does not look in the in

[PHP] Re: server side games question

2001-11-13 Thread Galkov Vladimir
Good day! Some time ago I tried to create game server for games on line(people with people)... poker, preferance, chess and so on well as I was wery new in this action I tried diferent languages and even operation systems. At last (for some hawy rezons :-) ) I stoped on Client-Server model

Re: [PHP] HTTP Headers

2001-11-13 Thread Kintups Nada
Yes, you can do it, but this is not a PHP feature, it is an HTML trick, the only thing you need to do is create a page which contains a frame only (yes neither two or more, only one frame). Then, when you select a link on this page the URL displayed on the browser does not change. This is a nic

[PHP] Form's : making me sick!

2001-11-13 Thread De Necker Henri
I just want to know how to make a inside a get to respond or dont make any browser errors? It looks someting like this : //This must change the next values ! //this values must be cahnge

Re: [PHP] Form's : making me sick!

2001-11-13 Thread George Pitcher
I don't think that you can nest forms. George - Original Message - From: "De Necker Henri" <[EMAIL PROTECTED]> To: "PHP-General (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 1:09 PM Subject: [PHP] Form's : making me sick! > I just want to know how to make a inside a

RE: [PHP] Form's : making me sick!

2001-11-13 Thread PACKER, Steffan
You cannot nest forms however if you set the action to the same page and submit the entire form to itself, then you can use javascript to change the action to the eventual target by using an onChange event on the final field: Hope this helps! Steffan -Original Message- From: De Necker He

[PHP] Redeclare a Function

2001-11-13 Thread Michael Cronström
Hi everybody, I would like to "declare/redeclare" a function twice in the same doc. Is it possible to "unset/undeclare" the function and include it again a second time? I have searched the manual but can´t find anything useful, any ideas? TIA Michael -- PHP General Mailing List (http://www.

Re: [PHP] Redeclare a Function

2001-11-13 Thread Andrey Hristov
I think it's not possible. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Michael Cronström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 3:13 PM Subject: [PHP] Redeclare a Function Hi everybody,

RE: [PHP] Form's : making me sick!

2001-11-13 Thread Ashwin Kutty
Couldn't you also make your initial page a php page? So then you would have onChange as Steffan says but then pass the values to self.php?vars which would then be used by the php page to fill in the next select with vars? Hope that makes sense.. On Tue, 13 Nov 2001, PACKER, Steffan wrote: > Yo

RE: [PHP] Form's : making me sick!

2001-11-13 Thread De Necker Henri
OK.Please give some code that i can work with.I have heared about self.php but dont have any idea how it works. I am using php with my two 's but how will i get the first one to respond to some change?At this stage i just dont have any idea! -Original Message- From: Ashwin Kutty [mailto:[

Re: [PHP] Redeclare a Function

2001-11-13 Thread Joffrey van Wageningen
its possible to create lambda-style functions with create_function() and redeclare the variable functions --- $funct = create_function('$x', 'return ++$x;'); echo $funct(10); $funct = create_function('$x', 'return --$x;'); echo $funct(10); --- its fun to create array's of functions :) try it :

Re: [PHP] Running PHP from Telnet/Cron

2001-11-13 Thread Dan McCullough
I got something similar and it had to do with a corupted binary file. It could have been on a download or the upload to the install directory. thats the only problem I had. have you tried running you should see a ZendOptimizer line if its running. --- Robert Kemp <[EMAIL PROTECTED]> wrote: >

[PHP] cron not allowed

2001-11-13 Thread Caspar Kennerdale
I have a php script I'd like to run at regular intervals, but my isp will not set a cron job for it but will for a perl script Is there anyway round tis, or does anyone one know of a perl script that might then execute the php script if I can get that to be automated? thanks -- PHP General M

Re: [PHP] Redeclare a Function

2001-11-13 Thread Michael Cronström
Thanks Joffrey "You learn everyday" Michael >its possible to create lambda-style functions with create_function() and >redeclare the variable functions > >--- >$funct = create_function('$x', 'return ++$x;'); >echo $funct(10); > >$funct = create_function('$x', 'return --$x;'); >echo $funct(

RE: [PHP] $GLOBALS

2001-11-13 Thread PACKER, Steffan
If you use a form with method="GET" and submit it all the field names and values are stored in a global associative array called HTTP_GET_VARS as name/value pairs. Steffan -Original Message- From: Peter Tilm [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 2:16 PM To: [EMAIL P

Re: [PHP] Flash and PHP loadvariablesnum

2001-11-13 Thread py
Hello, this question should be ask to a flash forum, php would never open a window!! I used this class to achieve what you asked (http://www.hotscripts.com/Detailed/8970.html) but I know nothing about flash... py - Original Message - From: "dharvell" <[EMAIL PROTECTED]> To: <[EMAIL PROT

Re: [PHP] cron not allowed

2001-11-13 Thread Andrzej Roszkowski
On Tue, 13 Nov 2001, Caspar Kennerdale wrote: > I have a php script I'd like to run at regular intervals, but my isp will > not set a cron job for it but will for a perl script > > Is there anyway round tis, or does anyone one know of a perl script that > might then execute the php script if I ca

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
how did you plan on running php from cron? however you do that you could run a perl script that just makes a system call and does the same thing -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:04 AM To: Php-General Subject: [PHP

Re: [PHP] $GLOBALS

2001-11-13 Thread Emil Rasmussen
> i´m new in PHP. What does the expression: >$ref=$GLOBALS["HTTP_GET_VARS"]["ref"]; >$id=$GLOBALS["HTTP_GET_VARS"]["id"]; > do? It gives you the content of the querystring variable ref and id. eg. page.php?id=20&ref=value > What is $GLOBALS? $GLOBALS is an array wich contains all the va

Re: [PHP] Flash and PHP loadvariablesnum

2001-11-13 Thread Eric Trezza
Hello, I use a lot Flash with PHP. I really don't understand why your browser opens a new window. Could you tell me exactly which function you run (loadVariablesNum ...) and which browser you are using. (MAC IE5 doesn't work well with loadVariablesNum. Eric www.b-tween.com web design > e-communi

RE: [PHP] cron not allowed

2001-11-13 Thread Nick Winfield
On Tue, 13 Nov 2001, Jack Dempsey wrote: > how did you plan on running php from cron? however you do that you could run > a perl script that just makes a system call and does the same thing [blah.php] #!/path/to/php -q do_stuff(); [/blah.php] Then just add a record to user crontab, runnin

[PHP] Mysql and Images

2001-11-13 Thread Rodrigo Peres
His list, I have some images stores in a mysql database and now i need to recover them to put in a html. My question is there's a way to do this in the same page, I mean, withou the need to buil another php page that process th image? Something like a function that output the image to the in the

RE: [PHP] cron not allowed

2001-11-13 Thread Jon Haworth
> how did you plan on running php from cron? Well, this works for me: 0 3 * * * lynx -dump http://mysite.com/mypage.php > /dev/null HTH Jon ** 'The information included in this Email is of a confidential nature and is inten

[PHP] $GLOBALS

2001-11-13 Thread Peter Tilm
hi, i´m new in PHP. What does the expression: $ref=$GLOBALS["HTTP_GET_VARS"]["ref"]; $id=$GLOBALS["HTTP_GET_VARS"]["id"]; do? What is $GLOBALS? What are the parameters ["HTTP_GET_VARS"]["ref"]? thanks Peter -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- PHP G

[PHP] URL Headers - Retrieval

2001-11-13 Thread HEW Staff
I currently have a script which gathers information from a site, adds a new variable and then resubmits it as a post back to the originating script. I need to gather the header information from the final response to categorise the errors received. At the moment the error I get is not consistant w

[PHP] RE: server side games question

2001-11-13 Thread Brinkman, Theodore
PHP will do fine. What's the project? I'm a wannabe game developer, and I had a bit of fun a few months back with randomly generated, but reproducable, game worlds (in my case it was a star map for a space conquest type of game). It's a really neat concept, and its how alot of the 'big world' g

Re: [PHP] Mysql and Images

2001-11-13 Thread Stefan Rusterholz
If I understand you right, then what you want is just impossible. You have to give a source as filepath. You can't put the binary picture data into the same output. What you could is to have a file which calls itself with params telling it to output now the image instead of the html e.g. example.p

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
thanks jonwas more of a 'how are you going to' rather than 'how is it possible' :-) either way, from lynx or from php being a cgi a simple shell script or perl script should be able to make the appropriate call... jack -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] S

[PHP] Re: Empty form variables when uploading, Help please???

2001-11-13 Thread The Big Roach
In a form you can't really have 2 submit buttons. Either a submit submits or it is just a button. That's because the var name is already submit (check out your http_post_vars). And you have it twice! Change one of them and make it just a button (HTML4). Recheck your post-vars. This should help. O

RE: [PHP] Re: Empty form variables when uploading, Help please???

2001-11-13 Thread PACKER, Steffan
another option could be to make the choice between delete and update two radio buttons with the same name and just have the one submit button, then add extra logice to your PHP script to either delete or update depending on the value of this field. good luck! Steffan -Original Message- F

[PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread The Big Roach
Fans! I need your help, but first you must worship me. Does PHP have a flakey file upload limit? Or what could be wrong? max_upload_size and all that is set to 32Mb. post_max_size is also set to 32Mb. max_exec_time is set to 0 (unlimited). apache's timeout is set to 1800 (30 mins). And my 6Mb o

[PHP] Re: Re: Empty form variables when uploading, Help please???

2001-11-13 Thread Alexander Weber
The Big Roach wrote: > > In a form you can't really have 2 submit buttons. > Either a submit submits or it is just a button. > That's because the var name is already submit (check out your > http_post_vars). > And you have it twice! > Change one of them and make it just a button (HTML4). > Rechec

RE: [PHP] cron not allowed

2001-11-13 Thread Caspar Kennerdale
thanks for the ideas -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 15:23 To: Jon Haworth; [EMAIL PROTECTED] Subject: RE: [PHP] cron not allowed thanks jonwas more of a 'how are you going to' rather than 'how is it possible' :-) e

[PHP] Variable definitions...

2001-11-13 Thread Stephan
Hello, first of all I didn't exactely know where the right place is to ask this question. Well, my problem is that I just had some exams and am very unhappy on how certain things were rated. There's especially one question and I try to translate it as exact as possible: When is it possible tha

Re: [PHP] PHP versus all other languages

2001-11-13 Thread Olexandr Vynnychenko
Hello Pat, Tuesday, November 13, 2001, 4:10:31 AM, you wrote: PH> I'm doing my senior exit project on database languages online. I'm asking PH> for help from anyone who can provide any information on the comparison PH> between the different languages. I'm comparing languages such as PHP, ASP, PH

Re: [PHP] Serial Port Programing

2001-11-13 Thread Ernesto
Brian C. Doyle wrote: > Hello all, > > Does PHP have the ability to control a serial port? I see we can use > the Printer but that was All I saw. > > > I guess you may fopen COM1: or COM2: You should be able to fopen PRN: or LPT1: as well. -- PHP General Mailing List (http://www.php.ne

[PHP] matches problem ("preg_match")

2001-11-13 Thread Ewald Schoeller
hello we want to save every word of a text in an array field. we want to solve the problem without "split". Here's our code: $str="eins zwei drei vier fünf sechs"; preg_match("'(\w+)(\s+\w+)*'",$str,$Wort); $n=count($Wort); for($i=0;$i<$n;$i++){echo "$i: $Wort[$i]";} The result is: 0: eins zwe

Re: [PHP] matches problem ("preg_match")

2001-11-13 Thread Valentin V. Petruchek
Try this code: $str="eins zwei drei vier fünf sechs"; $Wort = explode (' ',$str); $n=count($Wort); for($i=0;$i<$n;$i++){echo "$i: $Wort[$i]";} It should works Zliy Pes [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP] Re: matches problem ("preg_match")

2001-11-13 Thread _lallous
viele Grüße, lallous! "Ewald Schoeller" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello > we want to save every word of a text in an array field. > we want to solve the problem without "split". > > Here's our code: > > $str="eins zwei drei vier fünf sech

RE: [PHP] Re: Empty form variables when uploading, Help please???

2001-11-13 Thread Warren Vail
Interesting because I have used multiple submit buttons on forms for years. Each can have a different name, and even if I use the same name for all of them, which I often do, each can have a separate value. Each will cause all other form fields to transmit their variables in their usual manner, b

[PHP] User Authentication

2001-11-13 Thread Damien Burke
Hi, Can anyone recommend a good place on the web to learn about user authentication. I want users of my site to login with a username & password - once they are logged in they can see information customised to each separate user. Without being logged in the won't see any valuable information. Esp

[PHP] Advice Needed

2001-11-13 Thread Joe Van Meer
Hi there. I have a small php app connected to sqlServer db. The app is used as a code library for various programming languages. Basically, a code repository. My problem is this, I would like to be able to insert the code for a function (the actual code) into the db. However, I keep running into

Re: [PHP] User Authentication

2001-11-13 Thread Chris Hobbs
http://www.google.com/search?q=php+mysql+user+authentication&btnG=Google+Search First hit's a winner :) Damien Burke wrote: > Hi, > > Can anyone recommend a good place on the web to learn about user > authentication. > I want users of my site to login with a username & password - once they are

Re: [PHP] Variable definitions...

2001-11-13 Thread Chris Hobbs
Hi Stephan, IMHO, I think the answer requested is the only one that really makes sense - as soon as I read it, _my_ first thought went to scope. If a variable changes values, the other value is no longer usable, and thus there aren't really two variables with the same name in that case. When

[PHP] Expiration problem

2001-11-13 Thread Gustavo Luis Pereira Verly
Hi everybody, this is my first time writing in this list. I have the next problem: I have a page called login.php and when I log in, there's a new page who receive the user and the password, and this page is called main.php This page, check if the user have a valid account a

RE: [PHP] Variable definitions...

2001-11-13 Thread Neil Kimber
BTW, the official explanation is wrong. "local part this variable is destroyed and declared again" is incorrect. The global variable is not destroyed. The local namespace pushes the variable name onto the stack and gives it a value for the duration of the function. Every time you try and access

[PHP] is_null misses spaces... another solution?

2001-11-13 Thread Spunk S. Spunk III
I need to check variables for blank values but it appears that is_null and =="" return true if there is a space. Any other suggestions? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

RE: [PHP] User Authentication

2001-11-13 Thread Matt Schroebel
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave that part to your imagination. Bad guys might take advantage of that :) > http://www.google.com/search?q=php+mysql+user+authentication&b tnG=Google+Search > > First hit's a winner :) > > -- PHP General M

[PHP] Re: is_null misses spaces... another solution?

2001-11-13 Thread Julio Nobrega Trabalhando
trim(); it before? -- Julio Nobrega No matter where you go, &this. "Spunk S. Spunk III" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need to check variables for blank values but it appears that is_null and > =="" return true if there is a space. > > Any

[PHP] Help! How do i mail a value from a mysql databse?

2001-11-13 Thread Raymond
Hi! I'm trying to send a mail with password to the new user of my website, but . Does anyone know how to put the variable inside my mail? I have tried this: --> else { // sende kundeopplysninger til databasen $db = mysql_connect("localhost", "root"); mysql_sel

RE: [PHP] Re: is_null misses spaces... another solution?

2001-11-13 Thread Johnson, Kirk
A space is a valid string. Are you sure there is a space? "; } else { echo "a is not blank"; // this is printed } if(is_null($a)) { echo "a is null"; } else { echo "a is not null"; // this is printed } ?> Kirk > > I need to check variables for blank values but it appears > that is_n

[PHP] Basic handling of pre 1901 dates

2001-11-13 Thread George Whiffen
I'm feeling dumb! The Basic Problem = Basically all I want to do is to output each day in turn from 1900 i.e. 01-Jan-1900 02-Jan-1900 03-Jan-1900 etc. But date() won't accept dates pre 13-Dec-1901 and mktime doesn't like anything pre 01-Jan-1970. I know I can get mysql to do t

AW: [PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread Sebastian
Hi We encountere some problems with our Squid-Proxy. When we user direct internet connection the sky was the limit, but with our Proxy, the limit was 2MB... Sebastian > -Ursprüngliche Nachricht- > Von: The Big Roach [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 13. November 2001 17

[PHP] $QUERY_STRING

2001-11-13 Thread Ernesto
Hi, I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Windows. I'm trying to access the $QUERY_STRING var, but it's empty even when I do have a query string. On one server (Win2K), it works ok. On the other server (WinXP) it's always empty. If I use "index.php?s=1", $HTTP_GET_VARS['s'] is 1, b

[PHP] getrusage() not supported

2001-11-13 Thread Daniel Berwig
I'm trying to run a script in my server (IIS 5) that uses the function getrusage(), but it returns the following warning: Warning: getrusage() is not supported in this PHP build in file_name.php on line 377 Does anyone know how I can solve this problem? Thanks in advance. -- PHP General Ma

Re: [PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread The Big Roach
Thanks Sebastian, I'll take a look at our proxy logs. I've also discovered a perl script deep in the bowels of our servers which seem to be a problem. Here's an error log excerpt: POPSTACK panic: POPSTACK panic: POPSTACK panic: POPSTACK panic: POPSTACK panic: POPSTACK [Tue Nov 13 13:26:57 2001]

[PHP] Re: $QUERY_STRING

2001-11-13 Thread dav
Try getenv() function to import the query string from apache ambient. This is not a bug, maybe the index.php?1 isn't standard at all. "Ernesto" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Wi

[PHP] EXPIRATION PROBLEM; PLEASE HELP ME !!!

2001-11-13 Thread Gustavo Luis Pereira Verly
- Original Message - From: "Gustavo Luis Pereira Verly" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 2:26 PM Subject: [PHP] Expiration problem > Hi everybody, this is my first time writing in this list. > > I have the next problem: > > I have a page

Re: [PHP] Re: $QUERY_STRING

2001-11-13 Thread Ernesto
Nop. getenv("QUERY_STRING") also returns an empty string. The crazy thing is that getenv returns an empty string instead of FALSE. Anyway, if I do "index.php?a=1", I get HTTP_GET_VARS['a']==1, but $QUERY_STRING is still empty :( dav wrote: > Try getenv() function to import the query string fr

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
1.7303379774094 seconds with strtr() 1.557923078537 seconds with preg_replace() 1.494078040123 seconds with str_replace() 1.4984160661697 seconds with ereg_replace() /* source ---8<---*/ " => "PRE", ""=>"LI", " "TABLE ROW START", "" => "BOLD", " "TABLE CELL START"

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
1.7303379774094 seconds with strtr() 1.557923078537 seconds with preg_replace() 1.494078040123 seconds with str_replace() 1.4984160661697 seconds with ereg_replace() /* source ---8<---*/ " => "PRE", ""=>"LI", " "TABLE ROW START", "" => "BOLD", " "TABLE CELL START"

[PHP] PATH_INFO and the ' / ' (search friendly URLs)

2001-11-13 Thread Andy
Hi there, I am trying to put after .php an information like: .php/1234 This is because I am trying to build a searchfriedly URL like described in http://www.zend.com/zend/spotlight/searchengine.php#3 The problem is... it does not work I get an server error. As soon as there is a slash and info

[PHP] Adding Dates (To Obtain Future Dates)

2001-11-13 Thread Robert Miller
This problem took a while to figure out. I'm posting the solution so that = other's may find this example. If you know of a better way, please reply. = :-) Cheers, Rob Problem: Generate Future Dates: Sub-Problem: Future Dates are Dictated by Record Type (Permanent or = Temporary) The Script: $

[PHP] PDF Library Not Working (Call to undefined function)

2001-11-13 Thread Robert Miller
I RTFM but did not find a solution. My head hurts from banging it against = the wall. :-P Apache, OpenSSL, MySQL and PHP work fine... but the PDF libraries will not = work. I used the following configure commands: PHP: './configure' '--with-mysql=3D/usr/local/mysql/' '--with-xml' = '--with-apac

[PHP] take date and convert to day of year

2001-11-13 Thread sundogcurt
Hi guys, I know that you can take todays date and display it as the numeric day of the year, 1 - 365 / 0 - 364 etc. But can you take a date such as (November-30-1971) and convert that to the numeric day of the year? I have been trying to do this but have had no joy, I don't think my code is ev

Re: [PHP] getrusage() not supported

2001-11-13 Thread Larry Jeannette II
According to the docs, it says to check your systems man pages for getrusage. Since they appear to referencing *nix system (no man in NT), my guess is that NT does not support it. In fact, executing getrusage at the NT command prompt gives the 'not recognized internal or external command' error.

Re: [PHP] Frames and Sessions

2001-11-13 Thread Rodolfo Gonzalez
On Tue, 13 Nov 2001, Martín Marqués wrote: > > I have tried starting a session in the main frameset file, then adding > > to the URLs of the frame files, which sort of works but breaks > > where JavaScript is used for buttons in one of the frames. JavaScript > > doesn't seem to cope with the PHP

Re: [PHP] Problems with headers in redirect

2001-11-13 Thread John Steele
Hi Richy, Try sending the content header before the location header: header("Content-type: image/jpeg"); header("Location: http://yourhost.com/yourfile.jpg";); HTH, John >Hi, I'm hoping someone can help me with this one... > >I'm doing redirects to various types of file (Flash, Office, DWF

  1   2   >