[PHP] Re: please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Barry
[EMAIL PROTECTED] wrote: text file problem read text file to array string. I use function File(). but when I display data in text file it compress space in each lines such as first record contain 1_2__3__4__ ( _ = blank ) when store in array string is 1 2 3 4 . I want you tell

Re: [PHP] please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Hugh Danaher
If you want to preserve the blank spaces then try; str_replace( , nbsp;, $contents); // nbsp; is html for blank space. HTH HTD - Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, February 15, 2006 10:26 PM Subject: [PHP] please help me I try to

Re: [PHP] please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Barry
Hugh Danaher wrote: If you want to preserve the blank spaces then try; str_replace( , nbsp;, $contents); // nbsp; is html for blank space. HTH HTD no he don't: qote: read text file to array string -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP

Re: [PHP] please help me I try to post my question to Php.net 2-3times

2006-02-16 Thread Hugh Danaher
wvolks wrote ...but when I display data in text file it compress space in each lines... Sounded to me like he wanted all the blank spaces he put into the string, but when he displayed it, the spaces were gone. Since html ignores more than one blank space between printable characters, I

Re: [PHP] Help! Apache 2.2 gives segmentation fault errors with PHP.

2006-02-16 Thread Olaf Greve
Hi all, Yesterday I had trouble when configuring Apache 2.2 with PHP 4.4.2, which caused Apache to crash (segmentation fault) when calling various PHP functions. Just before heading home I encountered the source of the issue, as well as the solution. The hint to the answer resided in the

Re: [PHP] Ternary operators

2006-02-16 Thread Jochem Maas
sorry - I have had a php5 CLI at hand for so long I forgot that 'php -r' is not available in v4. that said the 'php -a' option also works (although I always find the interactive mode odd to work with) Kevin Kinsey wrote: Carl Furst wrote: Well, I tried something simple... $ php -r 'echo

[PHP] Re: Re: RE: safe_mode + move_upload_file

2006-02-16 Thread fjug
Le Thu, 16 Feb 2006 10:18:40 +1100, Chris a écrit : Basically your '$path' is not owned by the right user. OK you are right, it's hard to deal beetween rights implied by safe-mode and Unix rights... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] installing php 4.4.2 on windows system

2006-02-16 Thread Olaf Greve
Hi Paul, I have been developing a php website. I have been ftping my php web pages to a webserver and that works hkowever I don't have an error log on the webserver. So I downloaded apache 2.0.55. I am doing a manual installation and I am at the point where it tells me where to place the

[PHP] Session problems

2006-02-16 Thread Dan Parry
Hi all I've been getting an error while using a custom session handler utilising a MySQL database The error I receive is: Duplicate entry 'PHPSESSID_REMOVED' for key 1 Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown

Re: [PHP] installing php 4.4.2 on windows system

2006-02-16 Thread Kim Christensen
On 2/16/06, Olaf Greve [EMAIL PROTECTED] wrote: Under Windows it didn't use to be necessary to make Apache explicitly point to the ini file (at least: for all Apache 1.3.x versions). Rather, the trick used to be to simply place the php.ini file somewhere in the path that has been set for all

Re: [PHP] please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Kim Christensen
On 2/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: $filename =3D c:data.txt; $contents =3D file($filename); echo $contents; ? // data in text file is 1_2_3_4 _ =3D blank // output is 1 2 3 4 // I want fixed possition . please help me ? I'm not really sure what you're

RE: [PHP] Session problems

2006-02-16 Thread Peter Lauri
What is the code that generates this? -Original Message- From: Dan Parry[EMAIL PROTECTED] Sent: 16/02/06 4:50:51 PM To: php-general@lists.php.netphp-general@lists.php.net Subject: [PHP] Session problems Hi all I've been getting an error while

[PHP] Re: HN CAPTCHA at http://www.phpclasses.org

2006-02-16 Thread Manuel Lemos
Hello, on 02/15/2006 11:44 PM Roger Thomas said the following: I am currently testing HN CAPTCHA and noticed that the range of alphabets that were produced ranges from A..F only. My PHP skill is quite limited to change that to A..Z so if ppl here have any experience with that class,

RE: [PHP] Session problems

2006-02-16 Thread Dan Parry
Here is the complete code from the class... it's just a modified version of that available from an article on the Zend site ? $ses_class = new session(); ini_set(session.save_handler, user); ini_set('session.gc_maxlifetime', SESSION_LIFETIME * 60); /* Change the

[PHP] CSS Groups?

2006-02-16 Thread William Stokes
Anybody know any good CSS groups? I don't want to post here non PHP related stuff Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Secure Mail Form using PHP

2006-02-16 Thread Martin E. Koss
This issue has probably been discussed more than I've been able to find in the archive, so I'm sorry if I'm going over old ground. I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. So far I'm able to remove bcc, cc, to, etc but

[PHP] Re: CSS Groups?

2006-02-16 Thread Barry
William Stokes wrote: Anybody know any good CSS groups? I don't want to post here non PHP related stuff Thanks -Will http://www.css-discuss.org/ -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] CSS Groups?

2006-02-16 Thread Kim Christensen
On 2/16/06, William Stokes [EMAIL PROTECTED] wrote: Anybody know any good CSS groups? I don't want to post here non PHP related stuff http://www.css-discuss.org/ -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Secure Mail Form using PHP

2006-02-16 Thread Barry
Martin E. Koss wrote: This issue has probably been discussed more than I've been able to find in the archive, so I'm sorry if I'm going over old ground. I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. So far I'm able to

[PHP] Secure Mail Form using PHP

2006-02-16 Thread Martin E. Koss
This issue has probably been discussed more than I've been able to find in the archive, so I'm sorry if I'm going over old ground. I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. So far I'm able to remove bcc, cc, to, etc but

Re: [PHP] Site bloated by images

2006-02-16 Thread Angelo Zanetti
MARG wrote: Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up memory_limit in php.ini, but

[PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
I have a page that submits form information into a database, and all is good, but someone testing the page pointed out something to me that I didn't notice. I have a form that sends you to another page that submits the data into a database. If you refresh the page, the information is submitted

[PHP] Re: Site bloated by images

2006-02-16 Thread Barry
MARG wrote: Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up memory_limit in php.ini, but no

[PHP] Site bloated by images

2006-02-16 Thread MARG
Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up memory_limit in php.ini, but no good :( Any

Re: [PHP] Clear POST variables

2006-02-16 Thread John Wells
I'm curious to hear what others say, but I tend to build into my application flow a header(Location: someurl) redirect after a form submission. It's just as if you were to include(somefile) the resulting page, but by using header() you are moving the user away from the action so that this sort of

RE: [PHP] Clear POST variables

2006-02-16 Thread Gustafson, Tim
I agree. I always redirect my users to a GET page after a successful posting so that they can't click the browser's RELOAD button to cause a second posting. I have used this technique in dozens of PHP applications with hundreds of users, and it really cuts down on duplicate entries. On the POST

Re: [PHP] Re: Site bloated by images/method question added

2006-02-16 Thread Lists
I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored? Browser Activity on that page (quoted were long

RE: [PHP] Clear POST variables

2006-02-16 Thread Jay Blanchard
[snip] How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried unset() and have tried to set it to and empty value, but it doesn't seem to work. [/snip] At the end of the database

Re: [PHP] Clear POST variables

2006-02-16 Thread Larry E. Ullman
How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried unset() and have tried to set it to and empty value, but it doesn't seem to work. You can clear out POST by doing this:

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-16 Thread tedd
I am currently testing HN CAPTCHA and noticed that the range of alphabets that were produced ranges from A..F only. My PHP skill is quite limited to change that to A..Z so if ppl here have any experience with that class, appreciate your thoughts. TIA. HN CAPTCHA:

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-16 Thread Manuel Lemos
Hello, on 02/16/2006 01:20 PM tedd said the following: I am currently testing HN CAPTCHA and noticed that the range of alphabets that were produced ranges from A..F only. My PHP skill is quite limited to change that to A..Z so if ppl here have any experience with that class, appreciate your

[PHP] Re: Site bloated by images

2006-02-16 Thread Manuel Lemos
Hello, on 02/16/2006 12:36 PM MARG said the following: Hi, I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've

Re: [PHP] Secure Mail Form using PHP

2006-02-16 Thread Greg Schnippel
I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. // CHECK FOR SPAM ATTEMPTS AND REMOVE THEM snip I had a similar problem with my contact form and went down a similar path of trying to clean up the user-input with

Re: [PHP] Re: Site bloated by images/method question added

2006-02-16 Thread Jochem Maas
Lists wrote: I've already pushed up memory_limit in php.ini, but no good :( Any help would be apreciated. Warm Regards, MARG The site itself takes ages to appear. lol. Source code please! How is the site genereated? where are the images stored? Browser Activity on that page (quoted were

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-16 Thread tedd
Gustavo said: This great programming language is *much more* than a Hypertext Pre-Processor! It is? A rose by any other Shakespeare I am what I am ... -- Popeye And don't forget: perche' un cambiamento tira l'altra -- Machiavelli tedd -- non sum qualis eram -- and aren't we all? --

RE: [PHP] Clear POST variables

2006-02-16 Thread Dan Parry
Submit the data to a page that just inserts it into the DB (validating it first, natch) then do a header(location) to the thank you (or whatever) page This also fixes 'page expired' warnings HTH Dan -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: 16 February 2006

[PHP] gd extension crashed on mandrake

2006-02-16 Thread Roman Rumisek
Hi. I attempt the antispam.php from jpgraph library but both cli and mod php crashed with SIGINT 11 in imagecreatefromstring function. String is correct (I saved it into the file and view it in Firefox - OK). PHP version: 4.3.8, gd version: both 2.0.27 and 2.0.33. - original Mandrake

RE: [PHP] PHP !== Hypertext Pre-Processor

2006-02-16 Thread Finner, Doug
In the end it is not worth worrying about. If someone asks you what PHP stands for tell them it stands for the best darned programming language you ever saw. Not disagreeing, just wondering if people here see PHP as a programming language, or a scripting language? Just curious what the

Re: [PHP] gd extension crashed on mandrake

2006-02-16 Thread Jochem Maas
Roman Rumisek wrote: Hi. I attempt the antispam.php from jpgraph library but both cli and mod php crashed with SIGINT 11 in imagecreatefromstring your sure it was the CLI and not the CGI binary? not that that should make much difference in theory. function. String is correct (I saved it into

Re: [PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
What I have is a page that you enter the information in, and when you click on submit, it goes to another page that has the code to enter it into the database and says Thank You, you submitted information. Are you saying that I should redirect to another page after that? On Feb 16,

Re: [PHP] Clear POST variables

2006-02-16 Thread Kim Christensen
On 2/16/06, Mike Tuller [EMAIL PROTECTED] wrote: How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried unset() and have tried to set it to and empty value, but it doesn't seem to

[PHP] Saving a BLOB image to a file (SOLVED)

2006-02-16 Thread tedd
Hi gang: In a previous post (i.e., [PHP] Strange response to MySQL query) I was trying to save a BLOB as a file, namely using an INTO DUMPFILE query. If you are the system admin, and have all the system permissions, then this is not a big problem. However, if you aren't, then getting MySQL

Re: [PHP] Clear POST variables

2006-02-16 Thread tedd
On 2/16/06, Mike Tuller [EMAIL PROTECTED] wrote: How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried unset() and have tried to set it to and empty value, but it doesn't seem to

Re: [PHP] Saving a BLOB image to a file (SOLVED)

2006-02-16 Thread Gerry Danen
What if several users try to access a different picture at the same time? Won't that render the wrong image for some? Gerry On 2/16/06, tedd [EMAIL PROTECTED] wrote: Hi gang: In a previous post (i.e., [PHP] Strange response to MySQL query) I was trying to save a BLOB as a file, namely using

Re: [PHP] Session problems

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 12:37:14PM -, Dan Parry wrote: Here is the complete code from the class... it's just a modified version of that available from an article on the Zend site ? $ses_class = new session(); ini_set(session.save_handler, user); You dont need to do this.

[PHP] Parsing HTML

2006-02-16 Thread Boby
I need to extract news items from several news sites. In order to do that, I need to parse the HTML data. I know how to use Regular Expressions, but I wonder if there are other ways to do that. Can anybody please give me some pointers? -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Parsing HTML

2006-02-16 Thread Jay Blanchard
[snip] I need to extract news items from several news sites. In order to do that, I need to parse the HTML data. I know how to use Regular Expressions, but I wonder if there are other ways to do that. Can anybody please give me some pointers? [/snip] Can you be more specific here? This is

[PHP] A way to block SMTP injections

2006-02-16 Thread Brian Dunning
I created a simple mail form and am blocking SMTP injections like this. Seems like it ought to be 100% foolproof, AFAIK you can't complete and SMTP injection with a Content-Type header in there. Any opinions? $body = 'Name: '.$_POST['name'].'\r\n'; $body = $body.'Phone:

Re: [PHP] Clear POST variables

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 9:07 am, Mike Tuller wrote: How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried unset() and have tried to set it to and empty value, but it doesn't

[PHP] php.net has turned Japanese [SOLVED]

2006-02-16 Thread Richard Lynch
Yesterday, while searching for a way to programmatically do HTTP Basic Authentication, I ended up visiting the Japanese language version of http://php.net/ The User-Contributed notes that matched my search were in English, so I thought nothing of it, and successfully completed that task. Today,

RE: [PHP] Clear POST variables

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 9:14 am, Dan Parry wrote: Submit the data to a page that just inserts it into the DB (validating it first, natch) then do a header(location) to the thank you (or whatever) page This also fixes 'page expired' warnings I've tried this... Depending on the speed of

Re: [PHP] Clear POST variables

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 1:23 pm, Richard Lynch wrote: if (isset($_POST['example'])){ D'oh! Either add an INPUT named example or change this line to token instead of example Need caffiene. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Parsing HTML

2006-02-16 Thread Rafael
If all you want is to parse HTML code, then you could treat it as XML, of course, that would assume that the sites are all well XHTML formed. Other than that, I can only thing on PCRE. Boby wrote: I need to extract news items from several news sites. In order to do that, I need to parse

Re: [PHP] A way to block SMTP injections

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 1:05 pm, Brian Dunning wrote: I created a simple mail form and am blocking SMTP injections like this. Seems like it ought to be 100% foolproof, AFAIK you can't complete and SMTP injection with a Content-Type header in there. Any opinions? $body = 'Name:

Re: [PHP] Site bloated by images

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 8:36 am, MARG wrote: I have this site on http://www.dte.ua.pt/portulano/ The problem with it is that it tak ages for the images to appear. I have several other sites in the same server and this one is the only which has this kind of trouble. I've already pushed up

[PHP] Re: Parsing HTML

2006-02-16 Thread Boby
Jay Blanchard wrote: I need to extract news items from several news sites. ... Can anybody please give me some pointers? Can you be more specific here? This is awfully broad. I'll give an example: Let's say I want to extract some news-items from the www.CNN.com web page (If you visit

Re: [PHP] Clear POST variables

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 9:15 am, John Wells wrote: I'm curious to hear what others say, but I tend to build into my application flow a header(Location: someurl) redirect after a form submission. It's just as if you were to include(somefile) the resulting page, but by using header() you are

RE: [PHP] Re: Parsing HTML

2006-02-16 Thread Jay Blanchard
[snip] Let's say I want to extract some news-items from the www.CNN.com web page (If you visit CNN's page, you can see the 'MORE NEWS' block at the right side). I know how to extract the news-items (or any other data in the page) using regular expressions, but I wonder if there are other ways.

Re: [PHP] Parsing HTML

2006-02-16 Thread Sumeet
Boby wrote: I need to extract news items from several news sites. In order to do that, I need to parse the HTML data. I know how to use Regular Expressions, but I wonder if there are other ways to do that. Can anybody please give me some pointers? i could suggest you to use html parsing

Re: [PHP] Re: Parsing HTML

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 1:20 pm, Boby wrote: Jay Blanchard wrote: I need to extract news items from several news sites. ... Can anybody please give me some pointers? Can you be more specific here? This is awfully broad. I'll give an example: Let's say I want to extract some

[PHP] PHP job postings?

2006-02-16 Thread tg-php
Just wondering if anyone know of a mailing list of forum specifically dedicated to soliciting for programmers to fill PHP programming positions? I see people post to this list periodically but it really doesn't seem like the right place. Our project is going to be expanding quite a bit and we

Re: [PHP] Secure Mail Form using PHP

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 7:23 am, Martin E. Koss wrote: So far I'm able to remove bcc, cc, to, etc but unable to remove \n \r. I dunno why you are having trouble losing \r and \n, since it's not tricky... But forget all that, and consider this: $Email = $_POST['Email']; $Email =

Re: [PHP] php.net has turned Japanese [SOLVED]

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 01:32:27PM -0600, Richard Lynch wrote: I think this post can now be condensed into a plea: When the php.net site is utilizing a short-cut URL, perhaps an additional navigational element should be added to switch languages, as it is not at all obvious how one should

Re: [PHP] A way to block SMTP injections

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 11:05:13AM -0800, Brian Dunning wrote: I created a simple mail form and am blocking SMTP injections like this. Seems like it ought to be 100% foolproof, AFAIK you can't complete and SMTP injection with a Content-Type header in there. Any opinions? $body =

Re: [PHP] Saving a BLOB image to a file (SOLVED)

2006-02-16 Thread tedd
Gerry wrote: What if several users try to access a different picture at the same time? Won't that render the wrong image for some? Gerry Gerry: Normally, it's not needed for civilians. This is for when YOU want to do some image stuff on your images, like to do some background processing

Re: [PHP] PHP job postings?

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 2:45 pm, [EMAIL PROTECTED] wrote: Just wondering if anyone know of a mailing list of forum specifically dedicated to soliciting for programmers to fill PHP programming positions? I see people post to this list periodically but it really doesn't seem like the right

Re: [PHP] PHP job postings?

2006-02-16 Thread Philip Hallstrom
Just wondering if anyone know of a mailing list of forum specifically dedicated to soliciting for programmers to fill PHP programming positions? I see people post to this list periodically but it really doesn't seem like the right place. Our project is going to be expanding quite a bit and

Re: [PHP] gd extension crashed on mandrake

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 4:40 am, Roman Rumisek wrote: Hi. I attempt the antispam.php from jpgraph library but both cli and mod php crashed with SIGINT 11 in imagecreatefromstring function. String is correct (I saved it into the file and view it in Firefox - OK). PHP version: 4.3.8, gd

RE: [PHP] PHP job postings?

2006-02-16 Thread Weber Sites LTD
http://www.weberforums.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 10:46 PM To: php-general@lists.php.net Subject: [PHP] PHP job postings? Just wondering if anyone know of a mailing list of forum specifically dedicated to

Re: [PHP] Session problems

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 3:50 am, Dan Parry wrote: I've been getting an error while using a custom session handler utilising a MySQL database The error I receive is: Duplicate entry 'PHPSESSID_REMOVED' for key 1 Looks like your Session ID that you are trying to insert into the database in

RE: [PHP] CSS Groups?

2006-02-16 Thread Weber Sites LTD
http://www.weberforums.com There is a CSS forum where I get all of my questions answered :) berber -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 2:58 PM To: php-general@lists.php.net Subject: [PHP] CSS Groups? Anybody know any

Re: [PHP] installing php 4.4.2 on windows system

2006-02-16 Thread Richard Lynch
On Wed, February 15, 2006 10:43 pm, Paul Goepfert wrote: I have been developing a php website. I have been ftping my php web pages to a webserver and that works hkowever I don't have an error log on the webserver. If you want Apache error logs, you can just configure Apache to generate them

Re: [PHP] installing php 4.4.2 on windows system

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 3:46 am, Olaf Greve wrote: I have been developing a php website. I have been ftping my php web pages to a webserver and that works hkowever I don't have an error log on the webserver. So I downloaded apache 2.0.55. I am doing a manual installation and I am at the

Re: [PHP] php module problems ???

2006-02-16 Thread Richard Lynch
On Wed, February 15, 2006 8:36 pm, Mehmet Fatih Akbulut wrote: hi all, i install fileinfo and memcache using pecl #pecl install fileinfo #pecl install memcache then add extension=fileinfo.so and extension=memcache.so in my php.ini file and finally restart apache but still get these errors :

[PHP] A quick Regex query

2006-02-16 Thread phplists
Hi, I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am extracting from is NOT at the begining of a line, so I can't use the ^ first.

[PHP] Clearing pipe stream and a few other issues.

2006-02-16 Thread zedleon
ok, I'm not sure how to explain this but here goes.. I have a php script being used as a cgi to get around certain permission issues. Its not what I wanted but is basically working. Running through the cgi-bin has been much more difficult however, for example, 1. I need to clear or reset the

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-16 Thread Richard Lynch
On Thu, February 16, 2006 9:38 am, tedd wrote: Gustavo said: This great programming language is *much more* than a Hypertext Pre-Processor! It is? I've seen a fair number of PHP applications that had nothing to do with Hypertext... GD, libPDF, Ming, GTK... The list goes on. I was hoping

Re: [PHP] Using javascript with php

2006-02-16 Thread Richard Lynch
getElementByID() On Wed, February 15, 2006 4:10 pm, Sugrue, Sean wrote: To all, I have a check box input which I assign an array to the name. I want to pass the array to a javascript and based on a certain criteria check the box. I use the syntax:

Re: [PHP] Clear POST variables

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 01:23:23PM -0600, Richard Lynch wrote: On Thu, February 16, 2006 9:07 am, Mike Tuller wrote: How do I clear out the POST variables, or the variables that I have set from the POST variables, so that when the page is refreshed it will not resubmit. I have tried

Re: [PHP] Site bloated by images

2006-02-16 Thread Warren Vail
MARG's suggestion is right on, I took a look at some of the images, and while relatively small at 250 x 300 pixels, they end up displaying in an image statement that limits them to 15 x 16 pixels (or there abouts) on the finished page. If you only need 15 x 16 pixels, resize the files to

RE: [PHP] Session problems

2006-02-16 Thread Chrome
://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1412 (20060216) 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

Re: [PHP] A way to block SMTP injections

2006-02-16 Thread Brian Dunning
Sorry, assume $email_address is already set - it's me, '[EMAIL PROTECTED]'. My typo on the '\r\n' should be \r\n. I created a simple mail form and am blocking SMTP injections like this. Seems like it ought to be 100% foolproof, AFAIK you can't complete and SMTP injection with a Content-Type

[PHP] Re: A quick Regex query

2006-02-16 Thread Rafael
phplists wrote: I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am extracting from is NOT at the begining of a line, so I can't use

Re: [PHP] Site bloated by images

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 02:39:54PM -0800, Warren Vail wrote: MARG's suggestion is right on, I took a look at some of the images, and while relatively small at 250 x 300 pixels, they end up displaying in an image statement that limits them to 15 x 16 pixels (or there abouts) on the finished

Re: [PHP] PHP job postings?

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 03:45:39PM -0500, [EMAIL PROTECTED] wrote: I see people post to this list periodically but it really doesn't seem like the right place. Our project is going to be expanding quite a bit and we are probably going to be hiring more on-site programmers probably in the

Re: [PHP] Clear POST variables

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 02:07:33PM -0600, Richard Lynch wrote: On Thu, February 16, 2006 9:15 am, John Wells wrote: I'm curious to hear what others say, but I tend to build into my application flow a header(Location: someurl) redirect after a form submission. It's just as if you were to

Re: [PHP] A quick Regex query

2006-02-16 Thread Jim McIntyre
At 4:57 PM -0500 2/16/06, phplists wrote: Hi, I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am extracting from is NOT at the begining

[PHP] Re: A quick Regex query

2006-02-16 Thread M. Sokolewicz
hi, have you tried [^0-9][0-9]{4} [A-Za-zÅØ]{2,20} ? - tul phplists wrote: Hi, I am using the following: [0-9]{4} [A-Za-zÅØ]{2,20} to extract data like: 1000 Øslo How can I alter the above to limit to ONLY 4 digits, or in other words exclude: 11000 Beograd Please note that what I am

Re: [PHP] Site bloated by images

2006-02-16 Thread Warren Vail
Good point, I didn't check all the images and probably had assumed that there was one that was huge. Another candidate to look at, is the number of file transfer threads that her server can maintain for each client, this is often limited. I have seen one occasion when a user cranked the

Re: [PHP] Clearing pipe stream and a few other issues.

2006-02-16 Thread Chris
? $fp=popen(cat,r); $str=fgets($fp); pclose($fp); print $str; $arr = array(); foreach (explode('', $str) as $v) { $split = explode('=', $v); // urldecode content for readability $arr[$split[0]] = urldecode($split[1]); // create assoc. array ${$split[0]} = urldecode($split[1]); // form the

Re: [PHP] Clearing pipe stream and a few other issues.

2006-02-16 Thread Support
Permissions on a virtual server is the reason for running this script as a cgi. It's not what prefer to do. However, this is only way php will work under my user name. Perl would probably be a better alternative but I don't know perl. If I had control of the apache server this would not be a

Re: [PHP] Clear POST variables

2006-02-16 Thread Mike Tuller
I am not using a session, and redirecting I think would be a bad way of doing this because of the potential hit that the server would take for every insert. I have done a few pages like this, and never ran into this situation. Now I need to go back and fix this. Basically all I have is

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-16 Thread tedd
Most of those who are aware of disability issues, don't use any barriers at all. CAPTCHA is often used to prevent abuses from people using automated robot programs. To solve the problem of visually impaired people, there are audio CAPTCHA solutions. Regards, Manuel Lemos Manuel: No

[PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-16 Thread Paul Goepfert
Hi all, I know the subject doesn't seem too clear so here is what I am talking aboukt. I recently installed php on my windows machine. The PHP compiler works great. However upon looking through the phpinfo () document I noticed that the MySQL client version was 3.23.49. I assume that is the

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-16 Thread Manuel Lemos
Hello, on 02/17/2006 01:55 AM tedd said the following: Most of those who are aware of disability issues, don't use any barriers at all. CAPTCHA is often used to prevent abuses from people using automated robot programs. To solve the problem of visually impaired people, there are audio

Re: [PHP] Saving a BLOB image to a file (SOLVED)

2006-02-16 Thread tedd
So single-user disclaimer would apply? Obviously, if you have numerous people accessing your dB and doing inserts and updates, then all the lock-down stuff needs to be implemented. But, my code is not for that, but rather for someone (a single programmer) who wants to pull an image from a

Re: [PHP] Clear POST variables

2006-02-16 Thread Curt Zirzow
On Thu, Feb 16, 2006 at 09:34:12PM -0600, Mike Tuller wrote: ... This is how I learned in some book somewhere. Is everyone saying that I need to either use sessions, or redirect so that when someone refreshes insert.php, it doesn't submit the information again? To me it seems that

[PHP] menu Q

2006-02-16 Thread William Stokes
Hello, This might not be a PHP related issue. I don't know. But this one is really bothering me. I have a select menu on a header bar on my page. The header bar is 20px high. The menu, code and style below, works ok on Opera but not in Ie6 or Firefox. In these browsers the menu 'streches' the

Re: [PHP] menu Q

2006-02-16 Thread Kim Christensen
On 2/17/06, William Stokes [EMAIL PROTECTED] wrote: I have a select menu on a header bar on my page. The header bar is 20px high. The menu, code and style below, works ok on Opera but not in Ie6 or Firefox. In these browsers the menu 'streches' the bar height so that the bg image starts

Re: [PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-16 Thread Kim Christensen
On 2/17/06, Paul Goepfert [EMAIL PROTECTED] wrote: Hi all, I know the subject doesn't seem too clear so here is what I am talking aboukt. I recently installed php on my windows machine. The PHP compiler works great. However upon looking through the phpinfo () document I noticed that the

  1   2   >