[PHP] test

2001-05-09 Thread Ralph Guzman
... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Test 2

2001-05-09 Thread Ralph Guzman
This is only a test. I apologize. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] how to bring selected rows to upper page

2001-05-09 Thread heinisch
At 09.05.01 09:28, you wrote: Hello friends, I want to prepare a page as attached. But main problem is how can I bring the data to upper page when lower page's row is selected. I want to take all data on selected row to the upper pages fileds. please help me. Murat If you sent a php-made page

Re: [PHP] VERY URGENT

2001-05-09 Thread patl
On 8-May-01 at 18:50, Christian Dechery ([EMAIL PROTECTED]) wrote: what in Gods name is that? A pretty well known con. Usually it involves Angola; this crew seems to have at least changed the names and made a few of the other details less obvious. (They probably get revealed later after the

RE: [PHP] VERY URGENT

2001-05-09 Thread Rudolf Visagie
Aah, welcome to the new South Africa, everybody :-) Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 08:46 To: Christian Dechery Cc: [EMAIL PROTECTED] Subject: Re: [PHP] VERY URGENT On 8-May-01 at 18:50,

Re: [PHP] Sorry, what is PWS

2001-05-09 Thread Anuradha Ratnaweera
On Sat, 5 May 2001, Thomas Edison Jr. wrote: Latest version of PWS is 4.0! If u're looking for something esy fast to get running, PWS is it. It is not something as easy as apache to install. If you install any Linux or BSD distribution, you get can apache to run out of the box without any

Re: [PHP] Starting PHP script with crontab

2001-05-09 Thread Anuradha Ratnaweera
What about wget foo.bar.com/script.php Anuradha On Thu, 3 May 2001, Noah Spitzer-Williams wrote: is there a service on the web that can do this for you? i once found a site that would accept a url and an interval and would retrieve that url (therefore running any code you had in there) on

[PHP] Easy one

2001-05-09 Thread TopFive
Is there a function to check of the existance of character x in string y which returns true or false only? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] Easy one

2001-05-09 Thread Jason Murray
Is there a function to check of the existance of character x in string y which returns true or false only? Yes, strstr(). Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] progession bar

2001-05-09 Thread elias
Yes, true... it's a Client side problem, and i only can think of scripting solution like JavaScript or VbScript... you can via javascript get the time when the page is opened and on the OnLoad event of the body take the time again and make the difference... Also you can install a progress-bar too

[PHP] RE: Classes and arrays

2001-05-09 Thread Tim Ward
when you reference a property of a class you don't need to say it's a variable, so use $this-item[] instead of $this-$items[$id] and it works okay. I haven't quite worked out why it went wrong in the way it did ... and that'll worry me until I do. Tim Ward Senior Systems

[PHP] Little question

2001-05-09 Thread Gabriele Biondo
Hi, Folks... I have this little snippet of code: ?$myOra=MY STRING ?if (!(empty($myOra) || $myOra=)):{? br table width=550 border=0 align=center tr bgcolor=ff td colspan=3font size=2bOrario:/b?print($myOra)?/font/td /tr /table ?} endif? It

[PHP] carriage return (writing files)

2001-05-09 Thread Magnus Lawrie
hello, I'm writing to files with php. How do I include a carriage return, i.e. write strings to different lines in a text file? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] carriage return (writing files)

2001-05-09 Thread Jack Dempsey
Magnus Lawrie wrote: hello, I'm writing to files with php. How do I include a carriage return, i.e. write strings to different lines in a text file? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] R: [PHP] Little question

2001-05-09 Thread Gabriele Biondo
Already added, nothing changed at all... -Messaggio originale- Da: Jason Murray [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 9 maggio 2001 9.56 A: 'Gabriele Biondo' Oggetto: RE: [PHP] Little question ?$myOra=MY STRING This needs to have a ? after it... Jason -- PHP

Re: [PHP] Detecting error in OCIExecute calls

2001-05-09 Thread Thies C. Arntzen
On Tue, May 08, 2001 at 03:01:58PM -0700, Robert Mena wrote: Hi, I am accessing an oracle database from PHP using stored procedures available. I'd like to detect when a problem occurs in order to stop trying to fetch results. In mysql I check for rc=0 as an error. The php doc does not

Re: [PHP] Little question

2001-05-09 Thread root
This snippet should be used as an example of badly written and presented code. It tries too hard to do a simple job and in the result fails dismally. I suggest Gabrielle, that you try to be a little more careful in your coding and not so smart. I can find no less than four errors that I put

[PHP] MAX_FILE_SIZE : warning

2001-05-09 Thread JFL
When I set INPUT TYPE=hidden NAME=MAX_FILE_SIZE VALUE=50 and a user uploads a file bigger than 50 my script prints a warning. How can I use MAX_FILE_SIZE and avoid that warning so that I can print my own error message to the user ? :) Jacob -- [ www.eksperten.dk ] Scandinavias biggest

[PHP] myODBC from Access to mySQL (Failing)

2001-05-09 Thread Martin E. Koss
I know it's off topic, but I've struggled to find a more responsive stream of help than this list - and note that several other ODBC questions have been answered. Why is myODBC so hard to get working on different computers? I just had to reinstall Win 95 Office 97 on one of our test computers

Re: [PHP] Little question

2001-05-09 Thread Philip Olson
this : if ... $myOra= ... should be more like : if ... $myOra == ... essentially you're setting $myOra as blank everytime which evaluates to true, then it ends up printing the blank, which is not good. regarding typos, this is a common one and since it reveals no error ... it can be

RE: [PHP] Little question

2001-05-09 Thread Neil Kimber
A good approach to prevent this is to always put your constants on the lefthand side of the condition. This causes a parser error if you accidently try and assign instead of compare. It takes a bit of getting used to, but once you get into the swing of it you'll find it a useful tool in your

[PHP] R: [PHP] Little question

2001-05-09 Thread Gabriele Biondo
this : if ... $myOra= ... should be more like : if ... $myOra == ... essentially you're setting $myOra as blank everytime which evaluates to true, then it ends up printing the blank, which is not good. regarding typos, this is a common one and since it reveals no error ... it

[PHP] Print array items only once

2001-05-09 Thread sean
Hi all, I am querying the categories field in my database to rurn the various categories that can be clicked on. Problem is, if I have 5 items in a category, my categories query lists the category 5 times.. I am trying to work out how to say: while($qry = mysql_fetch_array($res)){ print

RE: [PHP] Print array items only once

2001-05-09 Thread Nicolas Guilhot
You can try to modify your SQL query and add the DISTINCT statement !! It will return each distinct row only once. example SELECT DISTINCT cat_id, cat_name FROM categories Regards, Nicolas -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 9 mai

Re: [PHP] MAX_FILE_SIZE : warning

2001-05-09 Thread James Holloway
Jacob, When you upload a file, it appends a few of its own variables. One of them is size - assuming the file is a variable called $file: if ($file_size $max_size) { echo $file_name . was too big!; } Also, you could check for Mime types. if ($file_type != image/jpeg || $file_type !=

Re: [PHP] Print array items only once

2001-05-09 Thread sean
Thanks very much Nicholas, Sean. Nicolas Guilhot [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can try to modify your SQL query and add the DISTINCT statement !! It will return each distinct row only once. example SELECT DISTINCT cat_id, cat_name FROM

[PHP] Textarea returns causing havoc

2001-05-09 Thread Sam
Hi all, I have a web form in which users can type their comments into a text area field. This is ok apart from when the users hit a return. As this creates a new line... Is there anyway in which I can get rid of this:- Hi My name is Sam Rose into this: Hi my name is Sam Rose I have tried

Re: [PHP] Textarea returns causing havoc

2001-05-09 Thread Rares
Here is how i do it, and it works: $tmp_desc = str_replace(\t, , str_replace(\n, , str_replace(\r, , $desc))); $desc = $tmp_desc; \t for stipping TABs also - Original Message - From: Sam [EMAIL PROTECTED] Subject: [PHP] Textarea returns causing havoc Hi all, into this: Hi my

Re: [PHP] HTTP Auth

2001-05-09 Thread Thomas Edison Jr.
Try using this : ?php $auth = false; // Assume user is not authenticated if (isset( $PHP_AUTH_USER ) isset($PHP_AUTH_PW)) { mysql_connect('localhost','root') or die ( 'Unable to connect to server.' ); mysql_select_db( 'myDB' ) or die ( 'Unable to select database.' );

[PHP] Variables in variable names

2001-05-09 Thread seriousj
Hello, I need some help (newbie). I have some variable names with the form: $name_1 $name_2 $name_3 $name_4... I want to access them by doing something like this: $i=0 $name_$i This doesn't work, how do I include another variable in the name of a variable?. Cheers John -- PHP General

RE: [PHP] Variables in variable names

2001-05-09 Thread Taylor, Stewart
Maybe an array would be more appropriate. e.g. $name[$i] = . . -Stewart -Original Message- From: seriousj [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 12:09 To: [EMAIL PROTECTED] Subject: [PHP] Variables in variable names Hello, I need some help (newbie). I have some variable

Re: [PHP] MAX_FILE_SIZE : warning

2001-05-09 Thread JFL
Thanks :) -- [ www.eksperten.dk ] Scandinavias biggest IT forum. James Holloway [EMAIL PROTECTED] wrote in message 9db61u$7d9$[EMAIL PROTECTED]">news:9db61u$7d9$[EMAIL PROTECTED]... Jacob, When you upload a file, it appends a few of its own variables. One of them is size - assuming the file

Re: [PHP] Variables in variable names

2001-05-09 Thread seriousj
The info is stored in the variables intitally by information entered by a user on a webpage, can you have the browser store the info in an array and have it passed by a form post command? Taylor, Stewart [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Maybe an

RE: [PHP] Variables in variable names

2001-05-09 Thread Ralph Guzman
As an alternative you can use associative arrays $i = 0; $i = 1; $i = 2; $i = 3; $name[$i]; -Original Message- From: seriousj [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 4:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Variables in variable names Hello, I need some help

Re: [PHP] remotely include file

2001-05-09 Thread Gyozo Papp
hi, my tips for include remote PHP files. first : allow_url_fopen in php.ini, at last: note that neither include nor require for remote file does not work inder Windows. best, Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: Robert Covell [EMAIL PROTECTED] To: Wico

Re: [PHP] class inheritance question

2001-05-09 Thread Gyozo Papp
hi, note that this is also workin in PHP: class A { function aa(){} function bb($x){} } class B extends A { function bb($x) { A::bb(); // inherited method called!!! $this-aa(); } } Nice and perfect. - Original Message - From: py

Re: [PHP] Variable question, yet another

2001-05-09 Thread Gyozo Papp
put the array indices in single quote like : echo [a href=\myscript.php?username={$userdata['username']}\]Goto MyScript.php[/a]; - Original Message - From: Jason Stechschulte [EMAIL PROTECTED] To: King, Justin [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL

Re: [PHP] Recursive SQL Queries: Web Directory Categories

2001-05-09 Thread Gyozo Papp
Hello, Joe Celko's 'SQL for Smarties'. Is it a book ( to buy :( ) or is it available on the web (download :) )? If the latter stands please can you give me a link to it? - Original Message - From: Philip Hallstrom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2001. május 8. 21:33

Re: [PHP] Converting mySQL to PostgreSQL

2001-05-09 Thread Gyozo Papp
There are some scripts in the postgres contrib directory which make such thing. Some users are currently developping this scripts and put it in big one which do the whole job. check the postgres mailing lists and the archives. - Original Message - From: Jason Beebe [EMAIL PROTECTED]

Re: [PHP] Weirdest error I've ever had....

2001-05-09 Thread Gyozo Papp
Hello Chris, br to br / this seems to me an XML-stylish tag. are you sure there is nothing else in the background? - Original Message - From: Chris Anderson [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: 2001. május 6. 18:00 Subject: [PHP] Weirdest error I've ever had Alright

RE: [PHP] Variables in variable names

2001-05-09 Thread Taylor, Stewart
Yes! Add '[]' to the end of the name. This will inform php that all fields with that name should be put into an array after submission. e.g. FORM... INPUT TYPE=TEXT NAME=name[] INPUT TYPE=TEXT NAME=name[] INPUT TYPE=TEXT NAME=name[] ... After submit php will have created an array called $name

Re: [PHP] Variables in variable names

2001-05-09 Thread seriousj
Thanks, that worked great! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] remotely include file

2001-05-09 Thread Ben Cairns
When PHP does a require or an include on a remote file via http, it sends a GET request to the http server that the file is on, Therefore, if this server has PHP installed on it, then the web server will parse the file before it spits it out. Thus, all of the PHP tags are stripped fom the

[PHP] why does this happen

2001-05-09 Thread Adrian D'Costa
Hi, I am trying to write a php and javascript that will pick up data from a table and display and scroll it. I seem to have run out of ideas how to make the script work. I don't get any display on the screen. I use rand() limit 1 so only one row is selected. Can some one tell me where I went

Re: [PHP] Variables in variable names

2001-05-09 Thread heinisch
At 09.05.01 23:08, you wrote: Hello, I need some help (newbie). I have some variable names with the form: $name_1 $name_2 $name_3 $name_4... I want to access them by doing something like this: $i=0 $name_$i This doesn't work, how do I include another variable in the name of a variable?. What

Re: [PHP] quick question: frames OT

2001-05-09 Thread Adaran (Marc E. Brinkmann)
Hi Romulo Roberto Pereira, Wednesday, May 09, 2001, 7:11:38 AM, you wrote: Romulo Hello! Romulo Just a quick ot question: Romulo From a php script I open a frameset this divides the browser window in two Romulo rows. How do I do to get rid of the frameset without closing the window? try a link

[PHP] Search a string between foo/foo

2001-05-09 Thread Luiz Vitor
Hi... I have a text and, some words of the text have the tags url/url between them. What i'm trying to do is to replace the word between that tags for a url, wich I'll search them in a database and convert to a url. It's working fine when I have only one url/url, but when there are more than

Re: [PHP] multiple domain handling with php

2001-05-09 Thread Adaran (Marc E. Brinkmann)
Hi Scott Mebberson, Wednesday, May 09, 2001, 7:43:16 AM, you wrote: Scott Does anybody have any scripts or tips on hosting multiple domains on the one Scott account ie. if the domain being requested is this, go here in my account if Scott not go here in my account? Well, I hope I understood

RE: [PHP] Weirdest error I've ever had....

2001-05-09 Thread Jon Haworth
Well, br / is the XHTML-compliant version of br. In XHTML (the current W3C recommendation for web pages), you *have* to explicitly close all tags (i.e. you have to use things like /p). Single tags - br, hr, img, etc - have to be closed as well, and that's how you do it. br / hr width=80% / img

Re: [PHP] Search a string between foo/foo

2001-05-09 Thread Tom Carter
The problem is that it matches the first foo with the first /foo and the second foo witht eh /foo ( andmatches those properly) but it also matches the first foo with the second /foo (thisnk of the logic of the regex). What you need to do is rather than specify any character (.*) specify any

Re: [PHP] thanks Hrishi AND ANOTHER QUESTION ?

2001-05-09 Thread Adaran (Marc E. Brinkmann)
Hi Jorge Amaya, Wednesday, May 09, 2001, 11:39:36 AM, you wrote: Jorge THANK YOU FOR YOUR CONCEPTS, HELPED ME ENOUGH, YOU ARE VERY KIND, I HAVE Jorge A QUESTION MORE, APACHE IT| ALREADY WORKS ME, IT LOADS ME PHP4, BUT THE Jorge NAVIGATOR DOESN'T BEGIN.. Jorge IT DOESN'T LOAD THE NAVIGATOR

Re[2]: [PHP] Variables in variable names

2001-05-09 Thread Adaran (Marc E. Brinkmann)
Hi seriousj, Wednesday, May 09, 2001, 1:19:55 PM, you wrote: seriousj The info is stored in the variables intitally by information entered by a seriousj user on a webpage, can you have the browser store the info in an array and seriousj have it passed by a form post command? Try input

[PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Franklin van Velthuizen
Good morning/afternoon/evening.. whatever timezone you live in :) Small question: we all know how to pass parameter using question marks in an URL ofcourse.. but I was wondering whether it was also possible to pass parameters in the URL using forward slashes instead of those question marks, so

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Rouvas Stathis
The Wise Man Said: WISE MAN's EMAIL Subject: RE: [PHP3] URL without a classic php filename like php, php3, phtml? Date: Tue, 11 Apr 2000 12:54:35 MST From: [EMAIL PROTECTED] To: "Michael Simcich" [EMAIL PROTECTED], [EMAIL PROTECTED]

Re: [PHP] Sorry, what is PWS

2001-05-09 Thread hassan el forkani
i have tried both PWS and Apache on a windows98 machine, and franckly Apache is much much better just grab a binary distribution install it and go through the httpd.conf to configure it (that's the trikiest part but the file is very well commented ) voila! best combination: php, apache, Mysql

Re: [PHP] Search a string between foo/foo

2001-05-09 Thread Toby Dacre
.* in your patten will match everything It's greedy like perl (unless you compiled php not to be) add a ? and it will make it none greedy ^[foo]* will not work ^ needs to be in [] to mean not else it means start of string Luiz Vitor [EMAIL PROTECTED] wrote in message

Re: [PHP] MAX_FILE_SIZE : warning

2001-05-09 Thread Toby Dacre
the problem with doing it on your server (you do it just to be sure though) is that the user has to wait for the form + file to be sent to your server before you can respond - this can be very slow JFL [EMAIL PROTECTED] wrote in message 9davlf$s63$[EMAIL PROTECTED]">news:9davlf$s63$[EMAIL

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Franklin van Velthuizen
[cut away some explanation] But I think it is pretty cool to make the program name look like just another directory in the tree, so I usually use Location. I suppose it *is* possible then. Anyway, I've already putten ForceType application/x-httpd-php in an .htaccess in the appropriate

[PHP] File upload using form

2001-05-09 Thread Gregory Eycken
Hi! %-) The code below makes a form. This form creates a temporary file that contains the data of the original source file. This temp file is sent to the server using FTP. On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is exactly the same as the original file and so

RE: [PHP] remotely include file

2001-05-09 Thread hassan el forkani
there is a way to prevent the remote server from parsing the file before sending it: use an extension that is not associated to php on that server (ie something like .incphp or whatever extension that is not parsed on that server) and add that extension in the receiving server's config for

Re: [PHP] string varable...

2001-05-09 Thread Christian Reiniger
On Wednesday 09 May 2001 07:46, Vegard wrote: Does anybody know how much text can be stored in a variable og type string? Typically about 2^(sizeof(int) * 8 - 1) chars. On a normal 32 Bit machine that's 2 Gig, on a 64Bitter, one moment, 9223372036854775808 chars -- Christian Reiniger LGDC

Re: [PHP] Classes and arrays

2001-05-09 Thread Wieger Uffink
Hi, write $this-items[$id] instead of $this-$items[$id] bye Wieger Stefan Kostopoulos wrote: Hi! Can anybody explain to me why this script outputs: oneone instead of: zeroone ??? Thanks, stefan ? class Cart { var $items; // Items in our shopping cart

[PHP] File upload using form

2001-05-09 Thread Gregory Eycken
Hi! %-) The code below makes a form. This form creates a temporary file that contains the data of the original source file. This temp file is sent to the server using FTP. On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is exactly the same as the original file and so

[PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery
I got my script to successfully force the otuput to be redirected to a download of a new file. using: if(stristr($HTTP_USER_AGENT,MSIE)) $att=; else $att= attachment;; header(Content-type: application/download); header(Content-disposition:.$att. filename=.$filename); but the problem is, the

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Boget, Chris
header(Content-type: application/download); I think you'd need to change this to: header(Content-type: text/plain); but I could be wrong... and where can I find reference on these header stuff? Not sure. I find bits and pieces in this list... Chris

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread hassan el forkani
hmm.. good question i don' t know exactly how it's done but i actually know a site that uses this extensively www.emp3finder.com, they concat strings i think it involves massive server configuration regards 09/05/01 14:08:25, Franklin van Velthuizen [EMAIL PROTECTED] wrote: -- PHP

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Matt Schroebel
the man page for header() says look here: http://www.w3.org/Protocols/rfc2616/rfc2616 From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 9:33 AM where can I find reference on these header stuff? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Identifying input type=file

2001-05-09 Thread Ron Dyck
I need to identify the particular name of a file upload type field: input type='file' name='image1' The elements are generated dynamically and I don't know the specific name of the field beforehand and of course need to read it before processing the form. Using $HTTP_POST_VARS does not seem to

[PHP] PHP priviledges

2001-05-09 Thread José León Serna
Hello: In my host, the php is installed in a way that I have access from a php script to all the webs on that server, (there are almost 60) and I can delete/copy any file of other servers. I don't like this because other user of that server can do the same as I. I have contacted with my host

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery
At 08:39 9/5/2001 -0500, Boget, Chris wrote: header(Content-type: application/download); I think you'd need to change this to: header(Content-type: text/plain); but I could be wrong... and where can I find reference on these header stuff? Not sure. I find bits and pieces in this list...

RE: Re[2]: [PHP] Variables in variable names

2001-05-09 Thread Matt Schroebel
or even try input type=text name=name[] input type=text name=name[] This should AFAIK result in an Array, but I'm not sure if empty fields are put in. You will get the empty fields except for checkboxes. For checkboxes only the checked elements come through so you need values that

Re: [PHP] Search a string between foo/foo

2001-05-09 Thread Luiz Vitor
It's still not working. I'm using the pattern ([^foo]*) and I'm getting the first match correct, but it's not getting all the other matches. Thanks, Luiz Vitor - Original Message - From: Toby Dacre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 9:06 AM

RE: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Christian Dechery
At 07:45 9/5/2001 -0700, you wrote: You decided it was using binary because \n was not being converted to \r\n? Aren't you just struggling with the difference between unix and windows files? Perhaps if you filtered the files replacing \n to \r\n when destination is windows platform. thanks

Re: [PHP] Recursive SQL Queries: Web Directory Categories

2001-05-09 Thread Philip Hallstrom
It's a book to buy... On Wed, 9 May 2001, Gyozo Papp wrote: Hello, Joe Celko's 'SQL for Smarties'. Is it a book ( to buy :( ) or is it available on the web (download :) )? If the latter stands please can you give me a link to it? - Original Message - From: Philip Hallstrom

RE: [PHP] Search a string between foo/foo

2001-05-09 Thread Taylor, Stewart
Try using the perl regular expressions and setting the quantifier to ungreedy e.g. This should work. $pat = /url(.*)\/url/U; $rep = A HREF='\\1'\\1/A; $string = preg_replace($pat, $rep, $string); -Stewart -Original Message- From: Luiz Vitor [mailto:[EMAIL PROTECTED]] Sent: 09 May

Re: [PHP] download successfull... but in binary... why?

2001-05-09 Thread Sebastian Wenleder
Hi, header(Content-type: application/download); try this: Header(Content-Type: application/x-octet-stream); It always worked for me... good luck, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Thomas Hurst
On 9 May 2001 05:05:30 -0700, [EMAIL PROTECTED] (Franklin van Velthuizen) wrote: Good morning/afternoon/evening.. whatever timezone you live in :) Small question: we all know how to pass parameter using question marks in an URL ofcourse.. but I was wondering whether it was also possible to

[PHP] PHP ans snmp commands

2001-05-09 Thread 453110
Hi, In installed PHP 4.0.5 with apache 1.3.19 but now a have problems with the SNMP commands. My browser tell me this: Fatal error: Call to undefined function: snmpget() in /disks//www/linux/snmptest.php on line 2 I installed UCD-SNMP on my system but it dosen't work. Can sombody help me

[PHP] Working with numbers

2001-05-09 Thread Gerry
Could you suggest a function for displaying decimal zeros. For example I have this: $num = 2.00; $num2 = 3.00; $result = $num + $num2; echo $result; I get 5 but not 5.00 Anyone outhere? Thanks in advance! Gerry Figueroa -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Detecting error in OCIExecute calls

2001-05-09 Thread Michael Peppard
OCIError($stm) Will tell you if an error has been raised. The error returned is whatever you asked the Oracle procedure to raise, or the error is a positive integer if Oracle raised the error internally ORA-0 (OCIError() = 0) means the operation completed succesfully. This may or maynot be

Re: [PHP] Working with numbers

2001-05-09 Thread Reuben D Budiardja
Use number_format() function. See http://www.php.net/manual/en/function.number-format.php for detail. Reuben D. B At 11:22 AM 5/9/01 -0700, Gerry wrote: Could you suggest a function for displaying decimal zeros. For example I have this: $num = 2.00; $num2 = 3.00; $result = $num + $num2; echo

Re: [PHP] progession bar

2001-05-09 Thread Reuben D Budiardja
I remember that a somewhat similar issues was discussed here sometime ago. Check the list archives ( I think the subject was Progress Bar). Hope that will give you some ideas also. Reuben D. B At 12:32 PM 5/9/01 -0500, Jacky wrote: Hi all Does any one know how to do the progession bar to

RE: [PHP] HELP, problems with sessions.....

2001-05-09 Thread Johnson, Kirk
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Subject: [PHP] HELP, problems with sessions. so what aren'T i understanding here? shouldn't all the vars and values be in the encoded string??? and what could cause the loss of the session vars on my

[PHP] GetImageSize

2001-05-09 Thread Joseph Bannon
For some reason, I can get the image image size for an image on the local machine, but remotely give me an error My code ?php $size = GetImageSize (images/title.gif); echo size: $size[0]p; echo size: $size[1]p; echo size: $size[2]p; echo size: $size[3]p; $size = GetImageSize

Re: [PHP] HELP, problems with sessions.....

2001-05-09 Thread Bruno Boettcher
On Wed, May 09, 2001 at 09:30:27AM -0600, Johnson, Kirk wrote: You should not have to call session_encode() to get sessions to work. Make uhm, i used session_encode to print out the things for debugging session_start(); the first line on each page where you want to use session variables.

RE: [PHP] HELP, problems with sessions.....

2001-05-09 Thread Johnson, Kirk
My guess is one server has register_globals on, the other has register_globals off. Try this change in your code: instead of assigning a value to $HTTP_SESSION_VARS[toto], instead assign a value to $toto. You will then see a value for $toto in the echo session_encode(). $HTTP_SESSION_VARS[toto]

[PHP] resetting the pointer in a MySQL database table

2001-05-09 Thread Jamie Saunders
Hi, I have a table set-up so that every time you enter an item, a unique primary key is assigned to it (using auto-increment). However, I've deleted all data from the table but when I go to add an item the pointer is still set at the number of the last item I entered. Is there any way of

[PHP] attach file to email

2001-05-09 Thread Christian Dechery
How do I attach a file to an email? I'd have a mailbody also, with some text... ad I wanna attach a text file to it, but I don't want it to be appended in the body... I want it as an attachment. _ . Christian Dechery - CTO .. WebDeveloper @ Webstyle! ..

Re: [PHP] Working with numbers

2001-05-09 Thread Christian Dechery
At 11:22 9/5/2001 -0700, Gerry wrote: Could you suggest a function for displaying decimal zeros. For example I have this: $num = 2.00; $num2 = 3.00; $result = $num + $num2; echo $result; I get 5 but not 5.00 try $result = (float)$num + (float)$num2; -- PHP General Mailing List

[PHP] Novedades en Gordos.com

2001-05-09 Thread Gordos.com

[PHP] PHP Mysql query data conversion newbie

2001-05-09 Thread Andras Kende
Hello, I pull some data from mysql with the php code below. On the date field if there is no date on mysql it displays : -00-00 00:00:00 I would like to change this -00-00 00:00:00 to no date for example.. Or if the cel is empty to (because otherwise the tableborders are messed up)

[PHP] Environment Variables

2001-05-09 Thread Karl J. Stubsjoen
BlankHello, I need to look up in the PHP online reference other variables similar to $DOCUMENT_ROOT. I can't find them. Anyone know where to find them at? Thank you, Karl J. Stubsjoen www.excelir.com/worldshop -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Environment Variables

2001-05-09 Thread Johnson, Kirk
http://www.php.net/manual/en/language.variables.predefined.php#language.vari ables.predefined.php Kirk -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 10:08 AM To: PHP Mailing List Subject: [PHP] Environment Variables

[PHP] forcing error documents

2001-05-09 Thread Dean Hall
I'm trying to force arbitrary errors in the HTTP header like so: header('HTTP/1.1 404 Not found.'); It's not working like I expected. I found a few discussions of this on this list that said that this did not work with PHP 3, but I've found nothing about PHP 4. The manual says that you should

Re: [PHP] progession bar

2001-05-09 Thread Gyozo Papp
This is a very simple progress bar, you need to decorate it. As you can see the step() function deals with the ellapsed time. For more see your favourite javascript manual or for example http://www.webreference.com/dhtml/ Feel free to use it: !doctype html public -//W3C//DTD HTML 4.0

RE: [PHP] PHP Mysql query data conversion newbie

2001-05-09 Thread Jon Haworth
Well, it's not immediately obvious whether your date is in i, j, or f, so let's pretend it's in date :-) Try this: while($amyrow = mysql_fetch_array($aresult)) { echo /tdtdfont face=verdana size=1; echo $amyrow[i]; echo /tdtdfont face=verdana size=1;

[PHP] Maintaining authentication credentials for session

2001-05-09 Thread Troy Moreland
I've read many docs on how to accept an ID and password throughout a session but it's just over my head I guess!? What I want to do is have someone login, verify that against LDAP directory. If the authentication is accepted, hold the credentials until the user either closes the browser or

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Christian Reiniger
On Wednesday 09 May 2001 14:41, hassan el forkani wrote: hmm.. good question i don' t know exactly how it's done but i actually know a site that uses this extensively www.emp3finder.com, they concat strings i think it involves massive server configuration It's quite simple. Read the tutorial

Re: [PHP] Identifying input type=file

2001-05-09 Thread Christian Reiniger
On Wednesday 09 May 2001 15:59, Ron Dyck wrote: I need to identify the particular name of a file upload type field: input type='file' name='image1' The elements are generated dynamically and I don't know the specific name of the field beforehand and of course need to read it before

[PHP] Unix file vs. Mac file formats

2001-05-09 Thread jon mclaughlin
Help! Does anyone have any tips on how to deal with this problem I'm having: PHP 4.0.5 (on Redhat Linux as an Apache module) won't properly execute included files that are saved in the Mac file format instead of a Unix file format. (they use different characters to signify an end of line) The

  1   2   >