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)

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

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 lis

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 take the time again and make the difference... Also you can install a progress-bar too befo

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

[PHP] Little question

2001-05-09 Thread Gabriele Biondo
Hi, Folks... I have this little snippet of code: Orario: It should print a little table with the string "MY STRING"... ... unfortunately, it doesn't. Any suggestion BTW: I run this code on the following configuration: PHP Version: 4.0

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

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-

[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 > > > > > This needs to have a ?> after it... > > Jason -- PHP General Ma

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 n

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 dow

[PHP] MAX_FILE_SIZE : warning

2001-05-09 Thread JFL
When I set 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 IT forum. -- PHP General Mailing List (http://w

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

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 arsen

[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

[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 $res["

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

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

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

Re: [PHP] HTTP Auth

2001-05-09 Thread Thomas Edison Jr.
Try using this : works excellent on any browser, apache server with PHP module. T. Edison jr. --- gary <[EMAIL PROTECTED]> wrote: > Im having a problem with Authentication uisng > $PHP_AUTH_USER and > $PHP_AUTH_PASSWORD works fine connecting via > netscape but automatically > set to false w

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

2001-05-09 Thread Bruno Boettcher
hello, i have a problem with sessions. on the host where i want to install the prog i developed on my laptop the sessions doesn't seem to work investigating on the laptop where the system works, i allready have some understanding problems with how sessions work. i suppose that at th

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

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 na

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

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

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

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

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" <[E

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]

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.

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

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. ... After submit php will have created an array called $name with 3 entries. -Stewart -Original Message- From: seriousj [mailto:[EMAIL PRO

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 file

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

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 li

[PHP] Search a string between

2001-05-09 Thread Luiz Vitor
Hi... I have a text and, some words of the text have the tags 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 , but when there are more than one, the script

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, is the XHTML-compliant version of . In XHTML (the current W3C recommendation for web pages), you *have* to explicitly close all tags (i.e. you have to use things like ). Single tags - , , , etc - have to be closed as well, and that's how you do it. This doesn't help to explain why yo

Re: [PHP] Search a string between

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 charac

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 NAVIGAT

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

[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: 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] Addressed to: "Michae

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 r

Re: [PHP] Search a string between

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 ^[]* will not work ^ needs to be in [] to mean not else it means start of string ""Luiz Vitor"" <[EMAIL PROTECTED]> wrote in message 011201c0d87d$57f8ab

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 . I suppose it *is* possible then. Anyway, I've already putten "ForceType application/x-httpd-php" in an .htaccess in the appropriate directory,

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

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 ins

[PHP] How to make apache supports xml?

2001-05-09 Thread ÕŕF
Hi, In my php webpage I use DOM on XML. But the load method can recognize the file which has url on apache. Why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] any way to get backslashes through in preg_replace?

2001-05-09 Thread Christian Reiniger
On Wednesday 09 May 2001 01:06, Michael Geary wrote: > $replaceIt = array("\\341","\\116"); > By the way, when I pass: > > $replaceIt = array("341","116"); > > I get: > > "this is the \\341 and this is the \\116" Try 3 backslashes and try using single quotes -- Christian Reiniger LGDC

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 o

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

[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

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 unsubscrib

[PHP] Identifying input type="file"

2001-05-09 Thread Ron Dyck
I need to identify the particular name of a file upload type field: 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 recognize this type of input fie

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

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

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

2001-05-09 Thread Matt Schroebel
> or even try > > > > 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 determine which box was checked. So say you have:

Re: [PHP] Search a string between

2001-05-09 Thread Luiz Vitor
It's still not working. I'm using the pattern ([^]*) 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. than

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 H

RE: [PHP] Search a string between

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>/U"; $rep = "\\1"; $string = preg_replace($pat, $rep, $string); -Stewart -Original Message- From: Luiz Vitor [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 15:14 To:

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

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 possi

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

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

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 + $nu

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 m

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 "; echo "size: $size[1]"; echo "size: $size[2]"; echo "size: $size[3]"; $size = GetImageSize ("http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg";); ech

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 rese

[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! .. http://ww

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

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

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 d

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: #container { WIDTH: 60px; POSITION: absolute;

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 ""; echo $amyrow["i"]; echo ""; echo $amyrow["j"];

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

Re: [PHP] PHP Mysql query data conversion newbie

2001-05-09 Thread Andras Kende
Can I set this to check any of the cells ?? if ($amyrow["any cell"] == "-00-00 00:00:00") { echo "no date"; - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: "'Andras Kende'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 09,

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 tut

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: > > > 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 $HT

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

Re: [PHP] GetImageSize

2001-05-09 Thread Moody
What version of PHP are you using? According to the manual: "URL support was added in PHP 4.0.5" Moody "Joseph Bannon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > For some reason, I can get the image image size for an image on the local > machine, but rem

  1   2   >