Re: [PHP] [OT] who can stop such mails [was] 永兴代 理有限公司

2006-05-09 Thread Sameer N Ingole
Can list admin stop such spam mails? Is there any provision to ban such users? 杨先生 wrote: 您好! 广东永兴代理有限公司:拥有多年工商财税代理经验,为企业谋取最大的经济利益。 [snip] -- Sameer N. Ingole Blog: http://weblogic.noroot.org/ --- Better to light one candle than to curse the darkness. -- PHP General Mailing List

Re: [PHP] [OT] who can stop such mails [was] 永兴代 理有限公司

2006-05-09 Thread Jochem Maas
Sameer N Ingole wrote: Can list admin stop such spam mails? Is there any provision to ban such users? list admin? php-generals? didn't you know this is an entropic/runaway-train type list? :-) (there are people with admin rights to the list - but nobody actively doing anything, mostly

[PHP] Digitizing Service

2006-05-09 Thread Johnson
Dear Friend, We are a professional digitizing company ,we have many years experience in this area,if you need digitizing service .please email me -We can provide many formats ,dst ,wilcom(emb),cnd,exp,dsb,,xxx,dat,dsz and so on. -Turnaround Time: 24 hrs.If it's urgent, the logo can be done in

[PHP] InterScan MSS has deleted a message

2006-05-09 Thread postmaster
This notification has been sent to inform you that a message has been deleted by InterScan MSS.---BeginMessage--- *** A virus (HTML_Netsky.P) was detected in the file (no filename). Action taken = remove A virus (WORM_NETSKY.P) was detected in the file (message.scr). Action

Re: [PHP] SPANISH E-MAIL RESULT

2006-05-09 Thread Paul Scott
On Tue, 2006-05-09 at 06:11 -0400, SPANISH SWEEPSTAKE LOTTERY wrote: SPANISH SWEEPSTAKE LOTTERY OK this is getting crazy. Is it Spam the list day today? Did I miss the memo in the flurry of spam mails? Looks like it time to tighten up the ol spam traps again... --Paul -- PHP General Mailing

[PHP] belligerence colander

2006-05-09 Thread Patrick Larson

Re: [PHP] Configuring the error suppression

2006-05-09 Thread John Meyer
IG wrote: John Meyer wrote: Is there anyway to make PHP normally suppress errors, but a piece of code that would show errors on a particular page? Sorry forgot to mention how you show errors on a particular page- you would use- ini_set('display_errors', '1'); But are you sure you want to

[PHP] cookie style saving without cookies

2006-05-09 Thread blackwater dev
I have a realty site where people want to be able to save properties but don't want to enter a username/password, etc. My first thought is just to save the info to a cookie but am not sure if this is the best way. If cookies aren't allowed, they will loose this functionality. I had thought

RE: [PHP] cookie style saving without cookies

2006-05-09 Thread Jay Blanchard
[snip] I have a realty site where people want to be able to save properties but don't want to enter a username/password, etc. My first thought is just to save the info to a cookie but am not sure if this is the best way. If cookies aren't allowed, they will loose this functionality. I had

Re: [PHP] 代理合作

2006-05-09 Thread John Nichel
Chrome wrote: Strange the spam email came to me from [EMAIL PROTECTED] Virtua is my host Anyone else? Dan It came thru with an incomplete sender envelope, and most mail servers will append it's own domain to that (hint: good way to configure your mail server to catch this; don't allow

[PHP] Re: the VtAGaRA

2006-05-09 Thread Jessenia Walt
web site probably know, must be underground before dawn, or they go back to the stuff of the mountains they are made of, and never move again. That is what had happened to Bert and Tom and William. Excellent! said Gandalf, as he stepped from behind a tree, and helped Bilbo to climb down

Re: [PHP] cookie style saving without cookies

2006-05-09 Thread tedd
At 8:42 AM -0400 5/9/06, blackwater dev wrote: I have a realty site where people want to be able to save properties but don't want to enter a username/password, etc. My first thought is just to save the info to a cookie but am not sure if this is the best way. If cookies aren't allowed, they

[PHP] To capture Http Headers

2006-05-09 Thread Kaushal Shriyan
Hi ALL I have a sample cgi-script #!/usr/bin/perl use CGI; $cgi = new CGI; for $key ( $cgi-param() ) { $input{$key} = $cgi-param($key); } print qq{Content-type: text/html htmlheadscript type=text/javascript src=/domain.js/script/headbody }; print qq{script

Re: [PHP] To capture Http Headers

2006-05-09 Thread Stut
Kaushal Shriyan wrote: Hi ALL I have a sample cgi-script snip perl Can any one please help me in converting this to a php script Which would be of great help Try it yourself. If you have problems check the manual (http://php.net/docs), STFW (http://www.google.com/) and if you can't

[PHP] x-platform encryption libs?

2006-05-09 Thread D_C
I am getting weird results with blowfish being different across platforms. mcrypt requires me to recompile the windows binary are there any other solutions out there for x-platform encrypt/decrypt? tx! /dc -- ___ David DC Collier

Re: [PHP] To capture Http Headers

2006-05-09 Thread Jochem Maas
Kaushal Shriyan wrote: Hi ALL I have a sample cgi-script #!/usr/bin/perl use CGI; $cgi = new CGI; for $key ( $cgi-param() ) { $input{$key} = $cgi-param($key); } check out the superglobals $_POST, $_GET and $_REQUEST: ?php var_dump($_POST, $_GET, $_REQUEST); ? print

Re: [PHP] SPANISH E-MAIL RESULT

2006-05-09 Thread Barry
Paul Scott schrieb: On Tue, 2006-05-09 at 06:11 -0400, SPANISH SWEEPSTAKE LOTTERY wrote: SPANISH SWEEPSTAKE LOTTERY OK this is getting crazy. Is it Spam the list day today? Did I miss the memo in the flurry of spam mails? Looks like it time to tighten up the ol spam traps again... --Paul

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-09 Thread Rolf Wouters
I know I used to have an issue with some of that type of stuff, but I also went in and did an output buffering at the beginning of the script, ran everything, then output the buffer. That helped me to clear it up. One of the pieces might be outputting something you just aren't seeing yet...

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-09 Thread Wolf
Do you have short open tags allowed in this server setting? why not just do ?php print $_REQUEST[result]; ? Rolf Wouters wrote: I know I used to have an issue with some of that type of stuff, but I also went in and did an output buffering at the beginning of the script, ran everything,

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-09 Thread Rolf Wouters
Do you have short open tags allowed in this server setting? why not just do ?php print $_REQUEST[result]; ? Yes, short open tags are allowed on this server. As mentioned before, all instances of this app are running on the same server, using the same configuration etc. Differences

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-09 Thread Rolf Wouters
The script behind the request does the following: - delete some files - copy files from dir A to dir B - read some data from a database and generates some XML-files (i.e. a basic publish procedure) The problem isn't the script itself, nor the server. I know this, because the same code is

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-09 Thread Rolf Wouters
I don't think it's a timeout issue on the server-side, because I've already tried setting MAX_EXECUTION_TIME and MAX_INPUT_TIME to extremly high values, and got the same result (i.e. the blank page). By setting them to extremly low values I was able to verify the app/script/server 's behaviour

[PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread D. Dante Lorenso
Does anyone know if it's possible to reference class constants or static variables without having to use 'self::' all the time? class A { const MY_CONSTANT = true; public function test() { echo self :: MY_CONSTANT; // works echo MY_CONSTANT; // doesn't work } } I don't

[PHP] Re: Browser displays blank page, while request still being handled

2006-05-09 Thread Rolf Wouters
General update... We've finally isolated the real problem (or so we hope :-s) which is copying the files from dir A to dir B. After commenting out pieces of code in the script, it became clear that the blank page only appeared when the copy operations were performed. That's why I've started

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-09 Thread Eric Butera
On 5/9/06, Rolf Wouters [EMAIL PROTECTED] wrote: General update... We've finally isolated the real problem (or so we hope :-s) which is copying the files from dir A to dir B. After commenting out pieces of code in the script, it became clear that the blank page only appeared when the copy

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-09 Thread Rolf Wouters
Have you tried tailing the error log on the server to see if it throws any error messages that might be clues? Yes, I have (although I only have limited access to the server) and nothing of interest shows up :-( I've also changed my code so PHP shows me all errors etc. but nothing shows

RE: [PHP] 代理合作

2006-05-09 Thread Chrome
Dan -- http://chrome.me.uk __ NOD32 1.1527 (20060509) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Status report on mailing list?

2006-05-09 Thread John Hicks
Spam has suddenly swamped the PHP mailing lists. (Some of you may have better filters than I and not noticed it.) Apparently the list had been moved to a new server and it hasn't been configured properly yet. I fear many will unsubscribe and the list will lose much of its utility if it's

[PHP] Record ID not being recognized

2006-05-09 Thread David Doonan
While I am by no strech of the imagination a ColdFusion expert, I have built a couple of dozen CF sites over the past 5 years. Am currently working on my first PHP site and am running into a problem with the simplest little thing. An index page is returning a list of active category names.

Re: [PHP] Status report on mailing list?

2006-05-09 Thread Edward Vermillion
On May 9, 2006, at 2:05 PM, John Hicks wrote: Spam has suddenly swamped the PHP mailing lists. (Some of you may have better filters than I and not noticed it.) Apparently the list had been moved to a new server and it hasn't been configured properly yet. I fear many will unsubscribe and

[PHP] Re: Status report on mailing list?

2006-05-09 Thread Rasmus Lerdorf
John Hicks wrote: Spam has suddenly swamped the PHP mailing lists. (Some of you may have better filters than I and not noticed it.) Apparently the list had been moved to a new server and it hasn't been configured properly yet. I fear many will unsubscribe and the list will lose much of its

Re: [PHP] Record ID not being recognized

2006-05-09 Thread Wolf
Cheat... EasyPHPAlbum can be configured to do some of what you are looking to do, probably more with a bit of tweaking to the text files for the photos.. http://www.mywebmymail.com/ Other then that, based off your code you are Not getting the ID from the URL when you pass it through. Good job

Re: [PHP] Record ID not being recognized

2006-05-09 Thread Eric Butera
On 5/9/06, David Doonan [EMAIL PROTECTED] wrote: While I am by no strech of the imagination a ColdFusion expert, I have built a couple of dozen CF sites over the past 5 years. Am currently working on my first PHP site and am running into a problem with the simplest little thing. An index page

Re: [PHP] Record ID not being recognized

2006-05-09 Thread David Doonan
On May 9, 2006, at 3:27 PM, Wolf wrote: $recordcatID = $_GET[ID]; //place before the query Grazi! da

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-09 Thread Eric Butera
On 5/9/06, Rolf Wouters [EMAIL PROTECTED] wrote: Have you tried tailing the error log on the server to see if it throws any error messages that might be clues? Yes, I have (although I only have limited access to the server) and nothing of interest shows up :-( I've also changed my code so PHP

Re: [PHP] Convert from jpg to gif ... change dpi...

2006-05-09 Thread Porpoise
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Actually I don't believe this is exactly right from playing around with Photoshop you can see that you change an image's resolution under Image - Image Size and if you turn off Resample Image, it will retain the same pixel

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread John Wells
On 5/9/06, D. Dante Lorenso [EMAIL PROTECTED] wrote: Does anyone know if it's possible to reference class constants or static variables without having to use 'self::' all the time? No, and the answer is actually in your example. Copy-and-paste all of your example code into one file, and just

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-09 Thread tedd
At 8:25 PM +0100 5/9/06, Rolf Wouters wrote: Have you tried tailing the error log on the server to see if it throws any error messages that might be clues? Yes, I have (although I only have limited access to the server) and nothing of interest shows up :-( I've also changed my code so PHP

Re: [PHP] Convert from jpg to gif ... change dpi...

2006-05-09 Thread tedd
[EMAIL PROTECTED] said: If somebody has more or better information on this, I'd love to hear it but this is how it is as far as I know and have experienced. Porpoise [EMAIL PROTECTED] answered: First off, DPI is not a function within an image, it is a function of output and is governed by a

[PHP] Creating EPS files with PHP

2006-05-09 Thread Mark Steudel
Is it possible to create EPS or TIFF files with a image libraries like GD or ImageMagik? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating EPS files with PHP

2006-05-09 Thread Jay Blanchard
[snip] Is it possible to create EPS or TIFF files with a image libraries like GD or ImageMagik? [/snip] You Googled, right? http://www.mcs.vuw.ac.nz/technical/software/PHP/ref.image.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating EPS files with PHP

2006-05-09 Thread Mark Steudel
I did, that link didn't seem to actually talk about the ability to create new TIFF images and didn't mention EPS at all, did I miss something on that page? Thanks, Mark -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 2:14 PM To: Mark

RE: [PHP] Creating EPS files with PHP

2006-05-09 Thread Jay Blanchard
[snip] I did, that link didn't seem to actually talk about the ability to create new TIFF images and didn't mention EPS at all, did I miss something on that page? [/snip] It talks about all the things you can do with the image library. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread D. Dante Lorenso
John Wells wrote: On 5/9/06, D. Dante Lorenso [EMAIL PROTECTED] wrote: Does anyone know if it's possible to reference class constants or static variables without having to use 'self::' all the time? No, ... Why? The reason is SCOPE. As wonderful as PHP is, it can't read your mind. So if

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread D. Dante Lorenso
D. Dante Lorenso wrote: As an OOP programmer, I would expect the scope search to be as follows: 1. LOCAL: current method 2. THIS: current instance ($this) 3. SELF: current class parent classes, in order of inheritance 4. GLOBAL: globals Actually, 2 and 3 are really the same but only

Re: [PHP] Convert from jpg to gif ... change dpi...

2006-05-09 Thread Porpoise
tedd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] said: Thanks for your explanation. Anyone who agrees with me, must be very intelligent. :-) IyamIyam. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] throttle output streamed from a file?

2006-05-09 Thread D. Dante Lorenso
All, I have a file which I want to stream from PHP: readfile($file_name); However, this function has the problem that it reads the whole file into memory and then tries to write it to output. Sometimes, you can hit the memory limit in PHP before the file contents are completely output

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread Jochem Maas
D. Dante Lorenso wrote: All, I have a file which I want to stream from PHP: it's not that relevant, but, I don't thinking streaming is the correct term. your merely dumping a files' content to std output. readfile($file_name); the trick you need to employ involves opening the file and

Re: [PHP] To capture Http Headers

2006-05-09 Thread Jochem Maas
Kaushal Shriyan wrote: On 5/9/06, Jochem Maas [EMAIL PROTECTED] wrote: Thanks Jochem Maas Thanks a Lot so it would look like below if i put in test.php ?php var_dump($_POST, $_GET, $_REQUEST); ? echo ul; ksort($_GET); foreach ($_GET as $key = $val) { echo li{$key}: {$val}/li; }

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread Jochem Maas
D. Dante Lorenso wrote: John Wells wrote: On 5/9/06, D. Dante Lorenso [EMAIL PROTECTED] wrote: Does anyone know if it's possible to reference class constants or static variables without having to use 'self::' all the time? No, ... Why? The reason is SCOPE. implicit scope sucks - it

Re: [PHP] Re: Status report on mailing list?

2006-05-09 Thread Jochem Maas
Rasmus Lerdorf wrote: John Hicks wrote: Spam has suddenly swamped the PHP mailing lists. (Some of you may have better filters than I and not noticed it.) Apparently the list had been moved to a new server and it hasn't been configured properly yet. I fear many will unsubscribe and the

Re: [PHP] Re: Status report on mailing list?

2006-05-09 Thread Ligaya Turmelle
Jochem Maas wrote: Rasmus Lerdorf wrote: John Hicks wrote: Spam has suddenly swamped the PHP mailing lists. (Some of you may have better filters than I and not noticed it.) Apparently the list had been moved to a new server and it hasn't been configured properly yet. I fear many will

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread Eric Butera
On 5/9/06, D. Dante Lorenso [EMAIL PROTECTED] wrote: All, I have a file which I want to stream from PHP: readfile($file_name); However, this function has the problem that it reads the whole file into memory and then tries to write it to output. Sometimes, you can hit the memory limit in

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread Chris
D. Dante Lorenso wrote: All, I have a file which I want to stream from PHP: readfile($file_name); However, this function has the problem that it reads the whole file into memory and then tries to write it to output. Sometimes, you can hit the memory limit in PHP before the file contents

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread D. Dante Lorenso
Jochem Maas wrote: D. Dante Lorenso wrote: All, I have a file which I want to stream from PHP: it's not that relevant, but, I don't thinking streaming is the correct term. your merely dumping a files' content to std output. readfile($file_name); the trick you need to employ

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread D. Dante Lorenso
Eric Butera wrote: On 5/9/06, D. Dante Lorenso [EMAIL PROTECTED] wrote: To do this, I would think I need a function in PHP which will output a buffered stream with blocking enabled. Can anybody point me in the right direction? I'm probably way off base on what you're trying to do, but maybe

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread D. Dante Lorenso
Chris wrote: readfile works by reading in the whole file at once - if you don't want it to do that, you can't use readfile. You don't need anything complicated, or am I misunderstanding the question which is more likely.. $size = 1048576; // 1Meg. $fp = fopen($big_file1, 'rb');

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread Richard Lynch
On Tue, May 9, 2006 11:11 pm, D. Dante Lorenso wrote: Will 'echo' block until the client has consumed the whole $size amount of data? If not, how fast will your while loop execute? If file_size($big_file1) exceeds 1 TB, does your server end up sucking up all available memory? Or does PHP

Re: [PHP] Record ID not being recognized

2006-05-09 Thread Richard Lynch
On Tue, May 9, 2006 2:15 pm, David Doonan wrote: But I can't help but feel that I'm missing something in the PHP syntax. ?php require_once('../Connections/connTrail.php'); ? ?php mysql_select_db($database_connTrail, $connTrail); $query_GetThumbs = SELECT Photos.Photos_ImagePath,

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread Richard Lynch
On Tue, May 9, 2006 12:42 pm, D. Dante Lorenso wrote: Does anyone know if it's possible to reference class constants or static variables without having to use 'self::' all the time? class A { const MY_CONSTANT = true; public function test() { echo self :: MY_CONSTANT; //

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread Richard Lynch
On Tue, May 9, 2006 4:48 pm, D. Dante Lorenso wrote: If the search for my constant follows the search I've listed above, self would never be necessary unless you wanted to pinpoint 3 directly. Under this same line of thinking, though, '$this-' really shouldn't be be necessary either unless

Re: [PHP] Browser displays blank page, while request still being handled

2006-05-09 Thread Richard Lynch
On Tue, May 9, 2006 12:14 pm, Rolf Wouters wrote: The script behind the request does the following: Also, if the script terminated and Apache sent a non-200 return code, then the browser knows it never got the real page, and may be trying to help you by getting the true page when you do

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread D. Dante Lorenso
Jochem Maas wrote: D. Dante Lorenso wrote: $x = ($y == self :: MY_CONSTANT || $y == self :: MY_CONSTANT2); I hate the spaces around the '::' whynot self::MY_CONSTANT? Stupid PHP Eclipse code beautifier ;-) It's what I use to beautify and since it always does that, I've been forced to

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-09 Thread Richard Lynch
On Tue, May 9, 2006 1:59 pm, Rolf Wouters wrote: What are you looking at? Repeated calls to the same piece of php-script. If you look at the column labeled Content type, you see that there are 2 results: text/html and application/x-unknown-content-type (the ones that are crossed-out should

Re: [PHP] To capture Http Headers

2006-05-09 Thread Richard Lynch
Wild Guess: ?php var_dump($_REQUEST); var_dump($_ENV); ? You're on your own for adding in the HTML and Javascript crap. On Tue, May 9, 2006 9:36 am, Kaushal Shriyan wrote: Hi ALL I have a sample cgi-script #!/usr/bin/perl use CGI; $cgi = new CGI; for $key ( $cgi-param() ) {

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread D. Dante Lorenso
Richard Lynch wrote: On Tue, May 9, 2006 11:11 pm, D. Dante Lorenso wrote: will 'echo' block until the client has consumed the whole $size amount of data? If not, how fast will your while loop execute? If file_size($big_file1) exceeds 1 TB, does your server end up sucking up all available

Re: [PHP] include() question

2006-05-09 Thread Richard Lynch
On Mon, May 8, 2006 1:42 pm, PHP wrote: Normally I would, except that file does a lot of work, and it was too much to have on the same server. That is why I was including it remotely. Unless the remote server is HUMUNGOUS compared to the original server, or it just has nothing else to do but

Re: [PHP] throttle output streamed from a file?

2006-05-09 Thread Richard Lynch
On Wed, May 10, 2006 12:15 am, D. Dante Lorenso wrote: Ok, so, from the looks of it, the server writer seems to block on print when 2MB have filled the output buffer. 2MB is a good number, so I guess I don't need to do anything and everything magically works the way I would expect. But

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread D. Dante Lorenso
Richard Lynch wrote: On Tue, May 9, 2006 4:48 pm, D. Dante Lorenso wrote: If the search for my constant follows the search I've listed above, self would never be necessary unless you wanted to pinpoint 3 directly. Under this same line of thinking, though, '$this-' really shouldn't be be

Re: [PHP] tired of referencing static variables/constants with 'self ::'

2006-05-09 Thread D. Dante Lorenso
Richard Lynch wrote: On Tue, May 9, 2006 12:42 pm, D. Dante Lorenso wrote:#1. You might do: define('MY_CONSTANT', true); class A { const MY_CONSTANT = MY_CONSTANT; } Then you can sort of have the best of both worlds... Though in a hack sort of way. :-^ Hehe, nice. No thanks ;-) Keep yer