Re: [PHP] Re: run remote shell script

2005-08-18 Thread Richard Lynch
On Wed, August 17, 2005 9:50 pm, Roger Thomas wrote: OK. I am able to setup remote key authentication between svrA and svrB. From svrA I can login to svrB with something like [EMAIL PROTECTED] www]$ ssh [EMAIL PROTECTED] and I can also execute a shell script like [EMAIL PROTECTED] www]$ ssh

Re: [PHP] ob_start changed from php4 to php5?

2005-08-18 Thread Richard Lynch
On Wed, August 17, 2005 10:12 am, Marten Lehmann wrote: I have a function catching the output of a script: function encodeDomain ($domain) { ob_start(); system(echo '$domain'); $output = ob_get_contents(); ob_end_clean(); } And I have a php-script

Re: [PHP] php 5.04 register_globals aint acting right.

2005-08-18 Thread Richard Lynch
On Wed, August 17, 2005 5:21 am, Jochem Maas wrote: Daniel Baughman wrote: Its simply a Boolean to indicate whether or not a query should be ran and displayed, and further more its for a small intranet. If it's that small a project/program, it should not be that tricky to find the variable

Re: [PHP] 'God' has spoken... :-)

2005-08-18 Thread Richard Lynch
On Wed, August 17, 2005 2:05 am, Dotan Cohen wrote: On 8/15/05, Miles Thompson [EMAIL PROTECTED] wrote: The problem with PHP 5 is that the ISP's have to be so conservative. There's no tagging mechanism which says process these files with PHP5, use PHP 4 for everything else. Does anyone

Re: [PHP] ob_start changed from php4 to php5?

2005-08-18 Thread Jasper Bryant-Greene
Richard Lynch wrote: Warning: Cannot modify header information - headers already sent in test.php on line 4 I'm guessing that the error message has MORE information than that -- like the line number of the file in which the output occurred. I'm also guessing that it's the LAST line of the

Re: [PHP] PEAR and MSSQL

2005-08-18 Thread Richard Lynch
On Wed, August 17, 2005 1:57 am, Chris Boget wrote: mssql class. We are using persistent connections but for some reason I have NO IDEA if *all* of this applies to MSSQL, however... If you were talking about MySQL, I'd answer like this: A persistent connection should really be called a

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Roger Thomas
Quoting Richard Lynch [EMAIL PROTECTED]: If 'www' can do it in a shell, then PHP, running as 'www' can usually do do it www is a Limux system user on both svrA and svrB. On svrA, Apache runs as user nobody. I mean, this is the httpd user, where we defined it in httpd.conf: User nobody Group

RE: [PHP] How to suppress HTTP headers?

2005-08-18 Thread Richard Lynch
On Tue, August 16, 2005 10:02 am, [EMAIL PROTECTED] wrote: BTW: I made a mistake last time. Apparently with CLI there are headers. You can use php -q to suppress headers when using PHP via CGI has always sent out at least one header. Content-type: text/html -q has always suppressed that. CLI

Re: [PHP] 'God' has spoken... :-)

2005-08-18 Thread Dotan Cohen
On 8/18/05, Richard Lynch [EMAIL PROTECTED] wrote: The .php3 extension was more of a pain in the ass than it saved... It was also possible to compile PHP3 and PHP4 in the same Apache - I do not think you can do that with 4/5. However, Rasmus posted a lovely explanation in this forum for

Re: [PHP] Windows, DLLs and php.ini

2005-08-18 Thread Richard Lynch
On Tue, August 16, 2005 1:56 am, Chris Boget wrote: I've looked at the documentation but was able to find this. If anyone can point me to the right page, it would be much appreciated. In any case, where do you define where PHP looks for the appropriate DLLs? For example, if a DLL (say,

[PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Norbert Wenzel
Excuse me, I know my question is not PHP specific, but I hope there are some logical and mathematical talents in here, since I've always been fighting with maths. ;-) I have to provide a textfield, where workers enter their time they worked on a certain subject. The smallest degree should be

[PHP] Resource id #X

2005-08-18 Thread Chris Boget
I just want to make sure of my understanding on something. I was pretty sure I had this down but now I'm beginning to question myself and I'm hoping someone could confirm. * User A accesses page X, which makes a connection to the database. Echoing out the result of the mssql_pconnect() function

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Richard Lynch
On Mon, August 15, 2005 4:57 pm, Dotan Cohen wrote: I have a form that my visitors can email me from. Some jerk is trying to fool the mail() function into sending his spam, and I got this today: Put a CAPTCHA on the form. The jerk is probably not actually using your form, but a script that

Re: [PHP] Differences with imap_headerinfo() between PHP 4.3.11 and 4.4.0?

2005-08-18 Thread Richard Lynch
Wrapping ob_start() / ob_get_contents() / ob_end_clean() around the IMAP calls MIGHT let you catch the output and throw it away... On Mon, August 15, 2005 11:07 am, Mike Walsh wrote: I have an application which uses imap_headerinfo() to query an NNTP server and display some information as

Re: [PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Robin Vickery
On 8/18/05, Norbert Wenzel [EMAIL PROTECTED] wrote: Excuse me, I know my question is not PHP specific, but I hope there are some logical and mathematical talents in here, since I've always been fighting with maths. ;-) I have to provide a textfield, where workers enter their time they

[PHP] mcrypt problem under Windows

2005-08-18 Thread Konrad Billewicz
Hello, I have a problem with mcrypt library. I'm using Apache 2.0.54 under Windows and PHP 4.3.3. I tried to run an example from PHP site [1] but it is not working - the decrypting is doing nothing. I searched the web and found only that I need to download newer version of libmcrypt.dll (but

Re: [PHP] Resource id #X

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 1:00 am, Chris Boget wrote: * User A accesses page X, which makes a connection to the database. Echoing out the result of the mssql_pconnect() function shows it's using 'Resource id #10'. * User B accesses the same page, X, making another connection to the database.

Re: [PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 12:56 am, Norbert Wenzel wrote: Excuse me, I know my question is not PHP specific, but I hope there are some logical and mathematical talents in here, since I've always been fighting with maths. ;-) I have to provide a textfield, where workers enter their time they

Re: [PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Norbert Wenzel
Richard Lynch wrote: You're on your own converting 1:38 or 357 into minutes, but: $minutes = 357; $minutes = 15 * round($minutes / 15); echo minutes: $minutes\n; Thank you both. The conversion from 1:38 to 98 is no problem, but I knew there was a more beautiful way round to 15 minutes.

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 12:22 am, Roger Thomas wrote: Quoting Richard Lynch [EMAIL PROTECTED]: If 'www' can do it in a shell, then PHP, running as 'www' can usually do do it www is a Limux system user on both svrA and svrB. On svrA, Apache runs as user nobody. I mean, this is the httpd

[PHP] php cli script with if-then's very slow

2005-08-18 Thread Frans Fierens
I've noticed that php cli scripts using for-loops with some if...then's are very slow using the php cli (command line interface). The following php script takes somewhat 100 seconds (php v5.0.3 on a redhat linux, 3 Ghz PC). The same program in c (see below) less than 1 second ... I know that

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Roger Thomas
Thanks for your great explaination. I really appreciate that. I will try out the things that you have outlined and will be back if I land into trouble :) -- Roger Quoting Richard Lynch [EMAIL PROTECTED]: On Thu, August 18, 2005 12:22 am, Roger Thomas wrote: Quoting Richard Lynch [EMAIL

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, August 15, 2005 4:57 pm, Dotan Cohen wrote: I have a form that my visitors can email me from. Some jerk is trying to fool the mail() function into sending his spam, and I got this today: Put a CAPTCHA on the form. The jerk is

[Fwd: Re: [PHP] DB access and sessions]

2005-08-18 Thread Sabine
Uups, forgot to send my answer to Bret to the list too. Sabine ---BeginMessage--- Hello Bret, I think Terences solution is good, if you have a lot of concurrency on your documents. But if the concurrency is less and it is unlikely that 2 people edit the same document at the same time, I'll

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Alex Gemmell
My website form also appeared to get hacked (I'm using that term very loosely), although I have no idea if anything actually got hacked. It definitely seems like an automated script that crawls the net probing every form. It triggered a bunch of emails to me but nothing that I wouldn't have

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Cilliè
- Original Message - From: Alex Gemmell [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, August 18, 2005 12:11 PM Subject: Re: [PHP] Be careful! Look at what this spammer did. Notice that their hack contains a BCC to [EMAIL PROTECTED]. Perhaps this is an email

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Alex Gemmell [EMAIL PROTECTED] wrote: My website form also appeared to get hacked (I'm using that term very loosely), although I have no idea if anything actually got hacked. It definitely seems like an automated script that crawls the net probing every form. It triggered a

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Cilliè
- Original Message - From: Cilliè [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, August 18, 2005 12:42 PM Subject: Re: [PHP] Be careful! Look at what this spammer did. - Original Message - From: Alex Gemmell [EMAIL PROTECTED] To: php-general@lists.php.net

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Cilliè [EMAIL PROTECTED] wrote: sorry, i'm a bit in the dark here. how did they manage to fill in bcc ? you mean that someone can spam from your site by bcc'ing messages to other mail accounts ? They are spoofing headers, so that the mailing agent thinks that there are two

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Alex Gemmell
Cilliè wrote: - Original Message - From: Alex Gemmell [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, August 18, 2005 12:11 PM Subject: Re: [PHP] Be careful! Look at what this spammer did. Notice that their hack contains a BCC to [EMAIL PROTECTED]. Perhaps this is

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Alex Gemmell
Dotan Cohen wrote: It looks like you got hit with the same thing that I did. Are you recording IP addresses? Yep - The bunch of emails all came from the same IP address: 62.245.167.6 There was no browser/user agent given so it's clearly some sort of spyder/net trawling software. -- PHP

[PHP] proxy security

2005-08-18 Thread fam. ouwens
Hi! I've made a script for sending anonymious e-mails! But the script is not safe! everybody can send e-mails tho whoever you whant! I'd like tho have proxy protection for it! Could someone of you make it for me? thnx! the script: script x6f37e8c46cd = loranger-chand-cristofe;

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Dotan Cohen
On 8/18/05, Cilliè [EMAIL PROTECTED] wrote: Notice that their hack contains a BCC to [EMAIL PROTECTED]. Perhaps this is an email account set up by the hacker. sorry, i'm a bit in the dark here. how did they manage to fill in bcc ? you mean that someone can spam from your site by

[PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-18 Thread Jay Blanchard
= Please feel free to add more points and send to the list. 20050322jb - Note the new location of PHP Editors list. = 1. If you have any queries/problems about PHP try

[PHP] how to clear cache content in IE using php

2005-08-18 Thread R. Ragunathan
hi, how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Jay Blanchard
[snip] how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. [/snip] You cannot do this with PHP as PHP is server-side and you would need a client-side doohickey to clear the client's cache. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Pooly
but you can actually put an header saying don't cache this page... 2005/8/18, Jay Blanchard [EMAIL PROTECTED]: [snip] how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. [/snip] You cannot do this with PHP as PHP is server-side and

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread John Nichel
Jay Blanchard wrote: [snip] how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. [/snip] You cannot do this with PHP as PHP is server-side and you would need a client-side doohickey to clear the client's cache. Geez, have you seen the

RE: [PHP] how to clear cache content in IE using php

2005-08-18 Thread George Pitcher
and are we talking about metric doohickies or imperial ones? No point getting the wrong type. George -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 2:33 pm To: php Subject: Re: [PHP] how to clear cache content in IE using php Jay Blanchard

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread John Nichel
2005/8/18, Jay Blanchard [EMAIL PROTECTED]: [snip] how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. [/snip] You cannot do this with PHP as PHP is server-side and you would need a client-side doohickey to clear the client's cache. Pooly

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Raz
?php $msg Dear Internal Explorer user: Please clear your cache. Thanks; echo $msg //repeat this operation ad nauseum ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Raz
Whilst I'm in 'comedy' mode... See, isn't bottom-posting cleaner? ;) I'm sure bottom-posting is a banned practice in some parts of the world you know... Raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Edward Vermillion
John Nichel wrote: 2005/8/18, Jay Blanchard [EMAIL PROTECTED]: [snip] how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. [/snip] You cannot do this with PHP as PHP is server-side and you would need a client-side doohickey to clear the

RE: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Jay Blanchard
[snip] -Original Message- From: Edward Vermillion [mailto:[EMAIL PROTECTED] Sent: Thursday, August 18, 2005 8:44 AM To: John Nichel Cc: php-general@lists.php.net Subject: Re: [PHP] how to clear cache content in IE using php John Nichel wrote: 2005/8/18, Jay Blanchard [EMAIL

[PHP] [OFF: object oriented question] OO discussion newsgroups?

2005-08-18 Thread Alex Gemmell
Hello, I'd like to join a newsgroup that discusses object oriented design techniques. I'm getting to grips with OO stuff but could do with some specific guidance at times, especially while I'm a novice at it. I can't see an OO newsgroup here in news.php.net. Thanks for any suggestions.

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Rory Browne
Personally I couldn't give a shit about top/bottom posting and have two words for anyone who challenges me on that. Back to the issue at hand, you can: 1) when you are requesting the page, you can request page.php?shite=dummy. instead of just page.php. when you use name=value the page is

RE: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Jay Blanchard
[snip] Personally I couldn't give a shit about top/bottom posting and have two words for anyone who challenges me on that. [/snip] Lighten' up Francis. Oops... two words and a name -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Matthew Weier O'Phinney
First off, Roger, Thomas, not sure which is your given name -- please use a mail or news agent that will wrap your lines with linebreaks at 72 characters. Some of us are on text-based clients, and it's difficult to read your posts when they extend beyond the screen boundaries... ;-) * Roger

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread John Nichel
Rory Browne wrote: Personally I couldn't give a shit about top/bottom posting and have two words for anyone who challenges me on that. snip I'll keep that in mind. Alright, who took a wizz in his Cheerios? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread John Nichel
Jay Blanchard wrote: [snip] Personally I couldn't give a shit about top/bottom posting and have two words for anyone who challenges me on that. [/snip] Lighten' up Francis. Oops... two words and a name Anybody top posts' in my newsgroup, and I'll kill ya. -- John C. Nichel ÜberGeek

RE: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Jay Blanchard
[snip] [snip] Personally I couldn't give a shit about top/bottom posting and have two words for anyone who challenges me on that. [/snip] Lighten' up Francis. Oops... two words and a name Anybody top posts' in my newsgroup, and I'll kill ya. [/snip] Anybody touches my stuff in the

Re: [PHP] Re: sending HTML (incl. embedded images) to browser

2005-08-18 Thread Jordan Miller
Pardon me, but I don't think he is trying to send an HTML email. I believe he is just asking about making a simple webpage. Relative URLs should be fine and are often preferable for portability. Jordan On Aug 17, 2005, at 7:34 PM, Manuel Lemos wrote: Hello, on 08/17/2005 07:42 PM Jake

[PHP] Re: LDAP, PHP and MS Active Directory

2005-08-18 Thread Mark Rees
Hello I am using PHP v5 to write an intranet. The site is hosted on a windows 2000 server running Apache. I want to incorporate some form of Windows authentication to allow or deny access to given resources based on usernames and group membership. I am trying to accomplish this using LDAP.

RE: [PHP] How to suppress HTTP headers?

2005-08-18 Thread Thomas Capote
Just to catch up: I'm trying to respond to a HTTP POST request without sending any HTTP headers with the response (that is, reply with *content only*). 1) The CGI SAPI will always send some basic headers with any script output; these include the status line ('HTTP/1.1 200 OK'), 'Content-type:',

Re: [PHP] How to suppress HTTP headers?

2005-08-18 Thread Chris Shiflett
Hi Thomas, I'm trying to respond to a HTTP POST request without sending any HTTP headers with the response (that is, reply with *content only*). This is really strange problem. :-) I don't know the answer, but I am pretty confident that you're not going to be able to eliminate headers

Re: [PHP] How to suppress HTTP headers?

2005-08-18 Thread comex
2) While the 'q' switch (php -q) is necessary and sufficient to suppress HTTP header generation using the CLI ('command line interface'), it is not clear to me how to apply this switch in a CGI configuration. Any ideas? I believe that switch works on CGI, and that in CLI headers are surpressed

[PHP] PHP MySQL insert

2005-08-18 Thread Jon
Please help with an insert problem. Sometimes $data1 could have a comma and that messes up the insert. how do I get around that? $query = insert into testtable6 (indx, col1, col2) values (NULL, '$data1', '$data2'); mysql_db_query(testdb, $query); -- PHP General Mailing List

Re: [PHP] How to suppress HTTP headers?

2005-08-18 Thread Matthew Weier O'Phinney
* Thomas Capote [EMAIL PROTECTED]: 3) The header() command inserts or replaces headers to be sent by PHP. However, header() (with no arguments) does not suppress header output, it simply generates an error. Even if something like header('Content-type:') suppressed the 'Content-type' header,

Re: [PHP] PHP MySQL insert

2005-08-18 Thread Chris
You need to escape the data, so $data1 = mysql_real_escape_string($data1,$rLink); $data2 = mysql_real_escape_string($data2,$rLink); Jon wrote: Please help with an insert problem. Sometimes $data1 could have a comma and that messes up the insert. how do I get around that? $query =

Re: [PHP] PHP MySQL insert

2005-08-18 Thread Jordan Miller
besides just escaping your strings, i think you are having a quoting error: http://www.php.net/manual/en/language.types.string.php Commas should not have to be escaped, and indeed the mysql_real_escape_string() function will not escape commas. After escaping your input data with this

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Satyam
Commas are no problem within strings. You might have an apostrophe, which SQL assumes is the end of the string literal. That was answered by Chris already, I just wanted to clarify the problem. You don't need to insert NULL in indx. If indx allows NULL and has no other default value nor is

[PHP] Catching all errors and redirecting

2005-08-18 Thread Thomas Hochstetter
Hi again, Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer). thanks Thomas -- PHP General Mailing List

RE: [PHP] Catching all errors and redirecting

2005-08-18 Thread Jay Blanchard
[snip] Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer). [/snip] Yes? /subtle -- PHP General Mailing List

Re: [PHP] Catching all errors and redirecting

2005-08-18 Thread John Nichel
Thomas Hochstetter wrote: Hi again, Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer). Parse errors, no.

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Dan Baker
Jon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Please help with an insert problem. Sometimes $data1 could have a comma and that messes up the insert. how do I get around that? $query = insert into testtable6 (indx, col1, col2) values (NULL, '$data1', '$data2');

[PHP] Re: Catching all errors and redirecting

2005-08-18 Thread Ben Ramsey
Thomas Hochstetter wrote: Is it possible to catch all parser errors (notices), and as that happens redirecting to a 'sorry-page-not-available-at-this-moment' page, whilst storing the error (or notice) message somewhere else (e.g. emailing it to the developer). See set_error_handler()

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
Dan Baker wrote: You are looking for the addslashes function. It prepares data for database querys: Better yet, don't use addslashes(). Use the escaping function that is specific to the database you're using. In this case, it's mysql_real_escape_string(). This is much better than using

[PHP] Re: php cli script with if-then's very slow

2005-08-18 Thread Ben Ramsey
Frans Fierens wrote: I've noticed that php cli scripts using for-loops with some if...then's are very slow using the php cli (command line interface). The following php script takes somewhat 100 seconds (php v5.0.3 on a redhat linux, 3 Ghz PC). The same program in c (see below) less than 1

[PHP] Apache2 x FastCGI x opcode cache

2005-08-18 Thread steve
Hi! I have some questions about setting up Apache2/worker and using PHP via FastCGI and using an op-code accelerator. Namely, how do I not confuse the op-code accelerator into re-creating several caches in several memory segments. The webserver in worker mode automatically create (for

[PHP] Apache2 x FastCGI x opcode cache

2005-08-18 Thread steve
Hi! I have some questions about setting up Apache2/worker and using PHP via FastCGI and using an op-code accelerator. Namely, how do I not confuse the op-code accelerator into re-creating several caches in several memory segments. The webserver in worker mode automatically create (for example) 5

[PHP] How to show complete exception text?

2005-08-18 Thread Christopher J. Bottaro
Hi, When an exception propagates all the way up the stack frame and splatters itself on my webpage, most of the text is cut off! This is completely useless. I can see that there is an error, but I can't read the frickin error message. How do I configure PHP to show the entire exception

[PHP] Re: proxy security

2005-08-18 Thread Jason Barnett
The problem here is that you need an anonymous proxy server that you trust. Most of the ones you can trust aren't going to be free. However, once you've identified an anonymous proxy server which you *do* trust then you can just pipe the mails to them like any old email server would. -- PHP

Re: [PHP] Be careful! Look at what this spammer did.

2005-08-18 Thread Esteamedpw
Ironically, on AOL - all of my EMAIL accounts were spammed with test (subject message) emails... approzimately 10 a day for about 5 days in a row - all which had different account names - but the same messages. So, I have a feeling these are all connected with the hacked forms everyone's

[PHP] Custom session handling - bad or good idea?

2005-08-18 Thread GamblerZG
I'm not speaking about session_set_save_handler, I'm considering writing session handler from scratch. Is it a bad idea? If so, why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Custom session handling - bad or good idea?

2005-08-18 Thread Jason Barnett
This can be a fine way to go, given that you have a specific reason to do so that is not easily handled by using session_set_save_handler. The most common session handler in use (besides the default handler) is a DB session handler. You could write this handler in C and it would possibly be

Re: [PHP] Be careful! Look at what this spammer did. (Thank you)

2005-08-18 Thread Ryan A
Hey, Funny, was following this thread and suddenly I got a few emails that were almost exactly in the same format... Anyway, I just want to send a thank you to whoever had the bright idea of replacing the @ with something else its a quick and easy method and should solve that problem (in tests it

[PHP] preg_match

2005-08-18 Thread Jon
preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); The text has Charges then a variable amount of spaces a previously picked decimal number x (and the data I want) is this correct or am I missing something? It seems to work sometimes and not others and I have not quite

Re: [PHP] Re: run remote shell script

2005-08-18 Thread Roger Thomas
Thanks Matthew. You and Richard have been very helpful. I should be able to carry on. Thank you again. -- Roger Quoting Matthew Weier O'Phinney [EMAIL PROTECTED]: First off, Roger, Thomas, not sure which is your given name -- please use a mail or news agent that will wrap your lines with

[PHP] mail list test - ignore!

2005-08-18 Thread Paul Nicholson
Hey guys! Just testing... Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [OFF: object oriented question] OO discussion newsgroups?

2005-08-18 Thread Rob Agar
hi Alex, I don't know of any discussion group, but you may want to check out a book that's just got a very good review on slashdot... http://books.slashdot.org/article.pl?sid=05/08/16/0434205from=rss Rob -Original Message- From: Alex Gemmell [mailto:[EMAIL PROTECTED] Sent: Friday,

[PHP] Re: Custom session handling - bad or good idea?

2005-08-18 Thread Ben Ramsey
GamblerZG wrote: I'm not speaking about session_set_save_handler, I'm considering writing session handler from scratch. Is it a bad idea? If so, why? I'm not going to say yes or no because I think it depends on your reasons, as someone else has already said, but I will point you to George

[PHP] previous + next buttons, no DB

2005-08-18 Thread Ashley M. Kirchner
I have a client that maintains picture galleries by simply dropping images into a directory. I have a template created that when loaded, with a specific $ID, will load the image that corresponds to that $ID. The request now is to have previous and next buttons that web surfers can click

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Alain Reguera Delgado
you could try: 1. get all form variables into an array 2. validate values 3. convert all values into entities using htmlentities() 4. build sql query (do some tests 'til get it right) 5. execute the built query (with proper db function) by now, commas aren't a problem, they are limited between

[PHP] Re: previous + next buttons, no DB

2005-08-18 Thread Jeff Loiselle
Ashley, How are you creating the gallery page? You must be reading the filenames in the directory and producing an img for each one. Can you create an array of those filenames, save it to session (or generate it each time), and iterate through them? -- PHP General Mailing List

[PHP] Re: Catching all errors and redirecting

2005-08-18 Thread Jeff Loiselle
You can also try output buffering the whole page, checking for an error with string functions, and email yourself if there is an error. ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] previous + next buttons, no DB

2005-08-18 Thread Greg Donald
On 8/18/05, Ashley M. Kirchner [EMAIL PROTECTED] wrote: Since I don't have a list of images in any kind of array (such as a result from DB query) Sure you do. #!/usr/bin/php ?php $a = array(); $d = dir( '.' ); while( false !== ( $e = $d-read() ) ) { $a[] = $e; } $d-close(); print_r( $a );

Re: [PHP] Re: previous + next buttons, no DB

2005-08-18 Thread Ashley M. Kirchner
Jeff Loiselle wrote: Ashley, How are you creating the gallery page? You must be reading the filenames in the directory and producing an img for each one. Can you create an array of those filenames, save it to session (or generate it each time), and iterate through them? Say the

[Fwd: Re: [PHP] previous + next buttons, no DB]

2005-08-18 Thread [EMAIL PROTECTED]
if you have all images in one directory and ONLY images in that folder you can try something like this: $path = '/path/to/directory/with/images'; $handle = opendir($path); while (false != ($file = readdir($handle))) { if ($file != . $file != .. !ereg('.php', $file))

Re: [PHP] Re: previous + next buttons, no DB

2005-08-18 Thread Philip Hallstrom
Ashley, How are you creating the gallery page? You must be reading the filenames in the directory and producing an img for each one. Can you create an array of those filenames, save it to session (or generate it each time), and iterate through them? Say the images are in a folder

Re: [PHP] preg_match

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 2:50 pm, Jon wrote: preg_match_all(/Charges \s\s+ $total x (.+) /siU, $single, $from_invoice); I would recommend using \\s instead of \s -- While \s doesn't have any meaning in PHP strings, so PHP just figures you must have meant \\s The text has Charges then a

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 2:38 am, R. Ragunathan wrote: how to clear the contents of cache in Internet explorer using php.If any one finds the solution do reply. The people saying you can't are technically correct, of course. You can't clear out the cache on a user's hard drive, because that

Re: [PHP] how to clear cache content in IE using php

2005-08-18 Thread Stephen Johnson
On 8/18/05 9:06 PM, Richard Lynch [EMAIL PROTECTED] wrote: Maybe if everybody did this, MS would realize how broken their cache-handling is and fix it... Nah. They'd just break it even worse. Is someone feeling a bit cynical tonight? Nah. Not just tonight ;) -- Stephen Johnson The

Re: [PHP] php cli script with if-then's very slow

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 2:14 am, Frans Fierens wrote: I've noticed that php cli scripts using for-loops with some if...then's are very slow using the php cli (command line interface). The following php script takes somewhat 100 seconds (php v5.0.3 on a redhat linux, 3 Ghz PC). The same

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
Alain Reguera Delgado wrote: you could try: 1. get all form variables into an array fine 2. validate values Good, but do this step as you put the values into a separate array, don't put all the values into the array first and then validate them later... make sure the input received is

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Install PHP in Linux

2005-08-18 Thread Mario Lacunza
Hello, Im newbie in Linux and I need your help for install PHP5 in my Ubuntu 5.04 Linux distro, any links, manuals, etc Thansk in advance!! -- Saludos / Best regards Mario Lacunza Desarrollador de Sistemas - Webmaster Email: [EMAIL PROTECTED] Email: [EMAIL PROTECTED] Messenger MSN: [EMAIL

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Jasper Bryant-Greene
Ben Ramsey wrote: You don't need to convert the values to HTML entities when saving to a database. That's not going to prevent this problem. Furthermore, you don't need to use htmlentities() if you specify your character set properly and all the characters you are outputting are in your