[PHP] ob_output

2002-11-22 Thread Uros Gruber
Hi! here is my test code "; ob_end_flush(); sleep(2); } ?> I can make this work on php and apache. I always get output in one shot not line by line. If i try this code with php and iis it works. What am i doing wrong. Do i have to tell apache to send line by line to browser not everything

Re: [PHP] RE: How to cache PHP on Apache

2002-11-22 Thread Chris Shiflett
Luanna, This response allows caching, but the cached response is only considered fresh for one hour (which might be appropriate for you), as is determined by both the Expires header and the max-age attribute of the Cache-Control header. The Pragma header is defined under HTTP/1.0 and is only used

Re: [PHP] mail() problem...

2002-11-22 Thread Marek Kilimajer
This header is added by mail server, so you must change the apache user. Duncan wrote: Hi, i wrote a helpdesk script, which can send the user emails, if requested. The helpdesk sends emails as "[EMAIL PROTECTED]", but some servers don't accept "nobody" as the sender! do you know how i can cha

Re: [PHP] ob_output

2002-11-22 Thread Chris Wesley
On Fri, 22 Nov 2002, Uros Gruber wrote: > ob_end_flush(); This turns off output buffering after flushing, the first time it gets called in the first iteration of your for() loop. > I can make this work on php and apache. I always get output > in one shot not line by line. If i try this code with

Re[2]: [PHP] ob_output

2002-11-22 Thread Uros Gruber
Hi! I changed it to ob_flush() and the problem still exist. Check the link and you'll se. http://www.kud-igen.si/link.php I have 3 apache servers and no one works as i want to. But iis makes no problems. -- bye, Uros Friday, November 22, 2002, 8:32:56 PM, you wrote: CW> On Fri, 22 Nov 200

Re: [PHP] ob_output

2002-11-22 Thread Chris Shiflett
You need to use flush() to try and send a chunked response that will display on the user's browser line at a time like that. Output buffering is fairly closely related I suppose, but it is a separate thing. As far as I know, you cannot flush() with output buffering started unless you end or flush

RES: [PHP] RE: How to cache PHP on Apache

2002-11-22 Thread Luanna Silva
Chris, your explanation was just what i needed to really understand my problem :-) For the moment, i want to cache the HTTP Response. So, if i´m correct, the header that i sent to the list should do the job. I have: Apache Web Server 1.3.x A Reverse Proxy The

Re: [PHP] mail() problem...

2002-11-22 Thread Sara Keesler
Hi, > The helpdesk sends emails as "[EMAIL PROTECTED]", but some servers > don't accept "nobody" as the sender! > do you know how i can change that? > i don't mean the "From:" header, but the real sender header of the email... I don't know if this is a good way to do things or not, but I have s

Re: [PHP] mail() problem...

2002-11-22 Thread Duncan
Oh, i see. Thanks. Marek Kilimajer wrote: This header is added by mail server, so you must change the apache user. Duncan wrote: Hi, i wrote a helpdesk script, which can send the user emails, if requested. The helpdesk sends emails as "[EMAIL PROTECTED]", but some servers don't accept "no

[PHP] Session Problem

2002-11-22 Thread Cesar Aracena
Hi all, I'm having this strange issue with a remote server. I'm trying to create a session control for administrative use which works fine in my PC but once I upload these scripts to that server, it doesn't recognize the $username && $password variables and kick me right into the else{} of the log

Re: [PHP] FAQ a good idea?

2002-11-22 Thread Vincent Vandemeulebrouck
> An about register globals post bi-weekly would eliminate tons of questions I > reckon. But maxim is also right. People should find their own info and a faq > could dominate the group... The fact you must call session_start before sending anything to the browser is another FAQ that would help.

Re: [PHP] Session Problem

2002-11-22 Thread Marek Kilimajer
Seems like the remote server has register_globals off. You must use $_GET, $_POST, $_SESSION ... Cesar Aracena wrote: Hi all, I'm having this strange issue with a remote server. I'm trying to create a session control for administrative use which works fine in my PC but once I upload these scri

Re: [PHP] Session Problem

2002-11-22 Thread 1LT John W. Holmes
Is it your register_globals setting? ---John Holmes... - Original Message - From: "Cesar Aracena" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 22, 2002 2:59 PM Subject: [PHP] Session Problem Hi all, I'm having this strange issue with a remote server. I'm trying to

Re: [PHP] Newbie mail () question

2002-11-22 Thread Steve Keller
At 11/22/2002 04:30 PM, Duncan Ellwood wrote: Can I personalise this a bit to display the From: as the email address that the user has supplied i.e $Email You can specify the "FROM" field in the headers before you call the mail() function. It's all in the manual. http://www.php.net/manual/

[PHP] Re: Php search results

2002-11-22 Thread Alex
you could also use regular expressions, but php isn't perl, so good luck on that one :p. "Philip Hallstrom" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You could use strstr() to find the index location of the > string searched for in FIELD. Then use substr

Re: RES: [PHP] RE: How to cache PHP on Apache

2002-11-22 Thread Chris Shiflett
Well, my explanation was not complete, because I wanted to make sure I was talking about the right thing. :-) One important thing I failed to mention is that caching applies to responses to GET and HEAD requests. If the response you showed us was a reply to a POST, it is not going to be cached. A

[PHP] writing functions to preform mysql queries

2002-11-22 Thread Beau Hartshorne
Hi, I'm trying to separate my database query code from my application logic. I want to do this by creating a small application-level library with functions that INSERT, DELETE and UPDATE specific information in a mysql database. So I created a file called news_mysql.lib.php and put it in a /libra

[PHP] Recommendations for PHP/MySQl calendar & on-line submission/voting

2002-11-22 Thread Merritt, Dave
All, I working with helping our local high school technical center set up a web server/site. Went with the typical AMP solution (unfortunately on MSWin though). The center is wanting to add an on-line calendar system. This doesn't need to be anything fancy, just something that will display a mo

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread @ Nilaab
Thanks so much!!! It works. I didn't know I could also place extra characters inside the brackets to specify what I want. :) > -Original Message- > From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 22, 2002 7:19 AM > To: @ Nilaab > Cc: Php-General > Subject: R

Re: [PHP] writing to a file

2002-11-22 Thread Morgan Hughes
On Fri, 22 Nov 2002, Jason Wong wrote: > On Friday 22 November 2002 16:34, gamin wrote: > > Hello, > > file as the data is being written, not when the file is closed > I think you should try fclose() the file before you die! Or, if you need to force the data out to disk while writing, use fflu

[PHP] Keywords in includes

2002-11-22 Thread Alberto Brea
I am moving my website over to PHP but there are two things I'm not sure of. First: Do search engines find their keywords if they are in an include instead of the main PHP file? (strictly speaking, I think they are not really in the URL you gave them) In other words, does it read the source code

Re: [PHP] Keywords in includes

2002-11-22 Thread 1LT John W. Holmes
--- I am moving my website over to PHP but there are two things I'm not sure of. First: Do search engines find their keywords if they are in an include instead of the main PHP file? (strictly speaking, I think they are not really in the URL you gave them) In other words, do

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread Ernest E Vogelsinger
At 21:59 22.11.2002, @ Nilaab said: [snip] >Thanks so much!!! It works. I didn't know I could also place extra >characters inside the brackets to specify what I want. :) [snip] The square brackets simply form a group

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Todd Cary
Chris - I must be missing something because when I execute the following code, open the socket, and send the query, the form that the info is going to gets created but it is corrupted.  Do you see any obvious error? Todd         if (!empty($request)) {       $path = $path . "?" . urlenco

[PHP] grabbing data from a site

2002-11-22 Thread Adam
I have the following website that i want to grab info from: http://www.bom.gov.au/products/IDV60034.shtml Say I wanted the current temperature for Melbourne from this table, what line of code would I need to tell it to get that info - ie, an ereg() expression... i'm wondering whether there are w

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Chris Shiflett
--- Todd Cary <[EMAIL PROTECTED]> wrote: > I must be missing something because when I execute the > following code, open the socket, and send the query, > the form that the info is going to gets created but it > is corrupted. Do you see any obvious error? Yes, I do. It was likely due to a misinte

Re: [PHP] grabbing data from a site

2002-11-22 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If the target is in well-formed XML (XHTML is an example), you could use XSLT to say 'i want the third column of a particular row - in this instance, Melbourne'. However, since few people actually adhere to standards, you're probably going to need a

Re: [PHP] CCO

2002-11-22 Thread Ernest E Vogelsinger
At 17:36 22.11.2002, Cesar Aracena said: [snip] >Now, I usually use a very comfortable way to configure e-mails by >setting all the $vaiables first and then adding a mail() function at the >bottom, but I never used a CCO target variable and never less a loop

[PHP] PHP Magick version 0.4a Released!

2002-11-22 Thread Michael Montero
Just released the next version of magick, the PHP ImageMagick extension. It's now available as this URL: http://magick.communityconnect.com/ Here are the latest changes: o functions added: magick_writeimages() magick_destroyhandle() magic

Re: [PHP] grabbing data from a site

2002-11-22 Thread Adam
someone gave me the following expression which uses another program and it works fine for them... is there something similar with php? wget --timeout=90 -q -O- http://www.BoM.GOV.AU/products/IDO30V01.shtml | sed '1,/>Melbourne //;s/<.*//' thanks, adam. "Evan Nemerson" <[EMAIL PROTECTED]> wrote i

[PHP] Linux and Apache

2002-11-22 Thread conbud
Hi. I spent the last 3 days looking through the apache docs to figure out how to disable directory listing. I can disable the directory listing to my images folder but then all the images on the site dont work. I tried using Allow from mydomain and Allow from localhost Allow from 127.0.0.1 I even t

[PHP] Linux Question

2002-11-22 Thread conbud
Hey. This really isnt a PHP question. but what fonts do you reccomend using so they look decent on linux. Mainly looking for a good font that will look nice in MoZilla and Galeon. Almost all the fonts Ive used so far appear really tiny or really bold and not very good to read. -Lee -- PHP Gene

[PHP] easy things - forms, variable sending

2002-11-22 Thread Krzysztof Wozniak
Hi, This is a trivial question - what function can I use to automatically proceed to some link, one that can be executed without any user input. How can we, most efficiently, send all the data (variables) from one page to another? Also, would you happen to know, as PHP is very often used in f

RE: [PHP] easy things - forms, variable sending

2002-11-22 Thread Van Andel, Robert
This can be done with JavaScript I don't think there is a way to do it with PHP since PHP is a server side application. Robbert van Andel -Original Message- From: Krzysztof Wozniak [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 2:18 PM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] session trouble

2002-11-22 Thread empty
hi guys ; I can't use session bla..as on my site. PHP Code ... Warning: Cannot send session cache limiter - headers already sent (output started at D:\sites\inc\register.inc:23) in D:\sites\uyelik\login.php on line 90 I cant understand and solve the warning message, what is it? thanks all.

RE: [PHP] session trouble

2002-11-22 Thread Van Andel, Robert
Make sure that you have nothing before mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] session trouble hi guys ; I can't use session bla..as on my site. PHP Code ... Warning: Cannot send session cache limiter - headers

RE: [PHP] easy things - forms, variable sending

2002-11-22 Thread Rich Gray
Hi Some suggestions below... Cheers Rich >This is a trivial question - what function can I use to automatically >proceed to some link, one that can be executed without any user input. header('Location: http://www.newurl.blah') >How can we, most efficiently, send all the data (variables) from on

[PHP] put result of "include" into a variable

2002-11-22 Thread Patrick Anderson at TUE
Hi, For some (strange, I know) reason I would like to copy the content of a webpage into a database. I would like to have code like $whocares = include ("http://www.microsoft.nl";); $query = "insert into html values ($whocares,...)"; .. However, include can not copy the content to a variable. D

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread @ Nilaab
Thanks again Ernest! This will be extremely helpful to me in the near future. - Nilaab > -Original Message- > From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 22, 2002 3:23 PM > To: @ Nilaab > Cc: Php-General > Subject: RE: [PHP] Simple RegExp Problem... > >

[PHP] Re: put result of "include" into a variable

2002-11-22 Thread Kyle Gibson
For some (strange, I know) reason I would like to copy the content of a webpage into a database. I would like to have code like $whocares = include ("http://www.microsoft.nl";); $query = "insert into html values ($whocares,...)"; .. However, include can not copy the content to a variable. Does a

[PHP] Re: Linux and Apache

2002-11-22 Thread Nick Eby
i think you have to have an Options directive set for a particular directory to turn on or off the directory listing page. the particular feature in question is called Indexes. check out this page for more info: http://httpd.apache.org/docs/mod/core.html#options for example, to disable indexes

Re: [PHP] Linux and Apache

2002-11-22 Thread Ernest E Vogelsinger
At 23:11 22.11.2002, conbud said: [snip] >Hi. I spent the last 3 days looking through the apache docs to figure out >how to disable directory listing. I can disable the directory listing to my >images folder but then all the images on the site dont work. I tr

RE: [PHP] How do I initialize a page to do something ONCE

2002-11-22 Thread @ Nilaab
Jason Wong and Larry Brown, Nevermind, it's working now. Not sure how. I performed the same test many times, but this time when I tried it, it worked. It might be that I manually deleted the older session variables. I did read the notes on php.net for session_unset(), very informative. Thanks to b

Re: [PHP] Opening a socket and sending GET data

2002-11-22 Thread Todd Cary
Chris - I seem close, but I am still getting a clobbered "page".  For debugging, I sent the query to a file so that I can check it moer accurately and this is what I am getting (for readability, I added the CRLF after the "?" in this email): GET http://209.204.172.137:80/_calendar/php/selecte

RE: [PHP] session trouble

2002-11-22 Thread Rich Gray
I don't know which version of PHP you are using but if v4.2.x upwards then use session_start() and the $_SESSION[] superglobal array instead of session_register(). Your warning is because you have either started output of HTML or you have some blank lines in your PHP scripts before the session rela

Re: [PHP] session trouble

2002-11-22 Thread Chris Shiflett
The best thing you can do is read the error message and examine the line(s) in question. You have output in file D:\sites\inc\register.inc on line 23. That file is included in file D:\sites\uyelik\login.php on line 90. At least, that's how I interpret that message. The one thing the error message

Re: [PHP] put result of "include" into a variable

2002-11-22 Thread Ernest E Vogelsinger
At 23:36 22.11.2002, Patrick Anderson at TUE said: [snip] >For some (strange, I know) reason I would like to copy the content of a >webpage into a database. > >I would like to have code like > >$whocares = include ("http://www.microsoft.nl";); >$query = "inse

Re: [PHP] Re: put result of "include" into a variable

2002-11-22 Thread Ernest E Vogelsinger
One thing - be warned that some sites (esp. M$) send a redirect at the index (or default) pages... the fopen() will not honor this redirect. Using cUrl would be a better way to handle this, IMHO. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -

<    1   2