[PHP] super global variable

2001-05-15 Thread Sigitas Paulavicius
Is it possible to declare some kind of super global variable in PHP, which would be avaliable to all later PHP scripts/processes? I suppose I could use a database or filesystem. But in this case of mine I need to store and retrieve some values very fast and consuming as little resourses as

Re: [PHP] imap_fetch_overview Question

2001-05-14 Thread Sigitas Paulavicius
Chris Cowan [EMAIL PROTECTED] wrote in message 9dldfq$kc4$[EMAIL PROTECTED]">news:9dldfq$kc4$[EMAIL PROTECTED]... Does anyone know what the sequence argument is suppose to be? More importantly, what the numbers stand for 2,4:6? Chris It means give me overview of messages #2 and all from #4

Re: [PHP] Problem in sending mail with mail() function

2001-04-25 Thread Sigitas Paulavicius
Vishak K Tomy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I tried to send mail through the mail function but it is not working. I am using php version 3.0.12 under linux, following is the code I used to send mail. So what is the problem with it,

Re: [PHP] IMAP Help

2001-04-23 Thread Sigitas Paulavicius
). Sigitas Paulavicius -- 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] MySql / sql help plz!

2001-04-23 Thread Sigitas Paulavicius
that would be: select Id, count(*) from sometable group by Id Sigitas -- 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] Getting a binary file from URL

2001-04-22 Thread Sigitas Paulavicius
Solution #1 $contents = fread ($pointer, 1); Solution #2 $contents=""; while ($partial = fread ($pointer, 8192)) { $contents.=$partial; }; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] imap_fetch_overview vs. imap_header

2001-04-21 Thread Sigitas Paulavicius
I'm wondering why IMAP_FETCH_OVERVIEW does not return the "to" value of the message and why IMAP_HEADER does not return the UID of the message. I need both of those values, but the idea of calling two functions which are 80% the same does not sound good to me... I suppose this will at least

Re: [PHP] redirection

2001-04-21 Thread Sigitas Paulavicius
header("Location: http://any.URL/you/need") NOTE: header must be sent prior to any output. Otherwise this won't work and a warning will be issued. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] connection problème!

2001-04-21 Thread Sigitas Paulavicius
I suggest you should check if the mysql server is running. And also you should check if there is a user "php" with password "php" and with access from "localhost" granted on your mysql server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Output graphic or other download file to client's browser

2001-04-21 Thread Sigitas Paulavicius
Hi It is possible though quite complicated. You must write some kind of a "proxy" with PHP. The process looks something like this: The php script checks if the user is ok, reads the image file and then echoes it out to the client. - simple as it may sound. But there is a couple of points.