[PHP] Re: Fatal error on functions valid for PHP 4, 5

2009-10-09 Thread Al
kro...@aolohr.com wrote: Hi, Would someone be kind enough to test whether these following functions work? I'm getting: "PHP Fatal error: Call to undefined function easter_date() . . . easter_days" on both local and production sites. "; echo date("M-d-Y", easter_date(2009)); print "";

[PHP] Re: php exception handling

2009-10-11 Thread Al
Lars Nielsen wrote: Hi, I am trying to make an exception class that emails the errors to myself. I have started by using the example by ask at nilpo dot com on http://dk2.php.net/manual/en/language.exceptions.php. It work ok but i want it NOT to show the errors on the php-page but only show t

[PHP] Re: Built-in Debugging

2009-10-16 Thread Al
Raymond Irving wrote: Hello, Will be ever see built-in debugging features for PHP? I kjnow there's xdebug but it's sometimes difficult to get it working. I'm hopoing that PHP will one day have intgrated debuging features that can be easily enabled or disabled: Personally, I've found t

Re: [PHP] Built-in Debugging

2009-10-16 Thread Al
Bob McConnell wrote: From: Raymond Irving Will be ever see built-in debugging features for PHP? I do not expect there would be. Debuggers are more likely to be provided by the IDE. For example, in MS-Windows, Visual Studio is the IDE and can include any of several compilers. It also include

Re: [PHP] Built-in Debugging

2009-10-16 Thread Al
Ashley Sheridan wrote: On Fri, 2009-10-16 at 09:04 -0400, Al wrote: Bob McConnell wrote: From: Raymond Irving Will be ever see built-in debugging features for PHP? I do not expect there would be. Debuggers are more likely to be provided by the IDE. For example, in MS-Windows, Visual

[PHP] Re: parse_str() expects parameter 1 to be string, array given

2009-10-19 Thread Al
Use var_dump() and see exactly what your variable is. You can be certain it is really an array; the parser is good about such warnings. Fix the source of the variable given to parse_str. Julian Muscat Doublesin wrote: Hello* *Everyone, I am geetting the error below. Can you please guide me o

[PHP] Re: how to replace many spaces with one space?

2009-10-25 Thread Al
Jeffry Lunggot wrote: Hi, how to replace many spaces in any string of character with one space? Regrads Be careful about the word "spaces" do you mean exactly " "; or white spaces defined by "\s", which include spaces, tabs CRLFs. If you want specifically spaces and not all white spac

[PHP] smtp mail question

2009-10-30 Thread Al
started using authenticated smtp exclusively. Reason I'm asking is that I'm developing an application that will have several pages and each one will have a different Return-Path and Reply-To. It will make things simpler if I can login to the smtp server with just one username/pass

[PHP] Re: Form Validation filter - Regex Q

2009-11-10 Thread Al
Haig Davis wrote: Morning All, I've been figthing with this little problem for two days now, so far no luck with google and am beginning to question my own sanity. I have a application that has over one hundred forms some quite lengthy so what I'm trying to achieve rather than writing a bunc

[PHP] Re: Form Validation filter - Regex Q

2009-11-12 Thread Al
Haig Davis wrote: Morning All, I've been figthing with this little problem for two days now, so far no luck with google and am beginning to question my own sanity. I have a application that has over one hundred forms some quite lengthy so what I'm trying to achieve rather than writing a bunc

[PHP] Pear include path problem

2009-11-17 Thread Al
I've got script that uses the pear Mail class and have had problems on some shared hosts with the include path to Mail. E.g., Blue Host insists the site owner must change the php.ini file. I'd rather not expect them to do that. Can you folks critique this approach for me. if(EMAIL_MODE=='smtp'

Re: [PHP] Pear include path problem

2009-11-17 Thread Al
Jim Lucas wrote: Al wrote: I've got script that uses the pear Mail class and have had problems on some shared hosts with the include path to Mail. E.g., Blue Host insists the site owner must change the php.ini file. I'd rather not expect them to do that. Can you folks critique thi

[PHP] Question about includes

2009-11-24 Thread Al
the /public_html is a real problem. My script runs fine on 3 other Linux/Appache/cpanel shared-host servers. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about includes

2009-11-24 Thread Al
Brady Mitchell wrote: On Tue, Nov 24, 2009 at 6:22 AM, Al wrote: This bothers since the current working directory is effectively where my original script resides; is it not? If so, doesn't the "include Net/SMTP.php on line 206" look for the path relative to it and not in /hom

[PHP] Re: strip tags but preserve title attributes

2009-12-15 Thread Al
Ashley Sheridan wrote: I'm looking for a way to strip HTML tags out of some text content (sourced from a web page) to leave just the text which I'll be running some basic analysis on. The thing is, I want to preserve text that is in alt and title attributes. I can't use any DOM functions, as I

[PHP] File and Directory Ownership Question

2009-12-20 Thread Al
I've got a PHP script running on a shared host [Blue Host] that creates a directory and writes files in it. The directory and files are "owned" by the site name, not "nobody" as I've always seen on other shared hosts. Anyone have a possible explanation for this

Re: [PHP] File and Directory Ownership Question

2009-12-20 Thread Al
On 12/20/2009 1:06 PM, Ashley Sheridan wrote: On Sun, 2009-12-20 at 12:58 -0500, Al wrote: I've got a PHP script running on a shared host [Blue Host] that creates a directory and writes files in it. The directory and files are "owned" by the site name, not "nobody&quo

[PHP] Re: Survey+Report in PHP

2009-12-31 Thread Al
On 12/31/2009 12:25 AM, aditya shukla wrote: Sorry for the vague question. This is how the survey is.We have some question and answers to that questions.Some answers have multiple options(drop down) and some answers are to be entered in a text box.My aim s to get the answers and generate the r

[PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Al
verything by calling various functions as needed. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Creating an Entire .html page with PHP

2010-01-25 Thread Al
On 1/25/2010 8:00 PM, deal...@gmail.com wrote: Hi Folks, I would like to create an entire .html page gathered from database content mixed with html etc. and be able to save the page... like: --- save all this pre made content as .html page ... stuff ... stuff ... stuff with databas

Re: [PHP] strip out repeated ocurrence of a string

2010-01-26 Thread Al
On 1/25/2010 10:48 PM, Camilo Sperberg wrote: Hello list :) I have this problem, a certain string can contain the following information: $string = ' hi{value1;value2} bye{value1;value3} hi{value1;value4} hi{value1;value2} bye{value1;value2} '; What I want is to be able to get this result:

[PHP] OpenID

2010-02-01 Thread Al
This is a bit off subject, but What is your opinion on OpenID? Are you using it? Is it worth the trouble? What php code applic, or did you code your own? Pear has an alpha release OpenID, anyone try or using it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: Help with regex (search/replace) please

2010-02-06 Thread Al
have you looked at the Pear html_QuickForm2 set? On 2/6/2010 9:43 AM, Ryan S wrote: Hey guys, As many of you might know, i totally suck at regex..so would really appreciate some help here. Basically i have a html page with a lot of textboxes,radios,checkboxes etc i need your help in the form

[PHP] Re: Hi list --- justa simple question

2010-02-07 Thread Al
On 2/7/2010 10:22 AM, ebhakt wrote: I am developing a website here wherein i need to post a lot of content. I am trying to develop a script to post data automatically to the site the site is designed in drupal any idea/comment or suggestion on how should i begin with because i am new to php la

[PHP] Re: php selecting multiple stylesheets

2010-02-08 Thread Al
On 2/7/2010 11:20 PM, David Mehler wrote: Hello, I'm trying to set up a web site. This site has multiple stylesheets, one default stylesheet that should be used if the other is not chosen. The second is a high contrast stylesheet and can be selected by user's who need it. I'm also thinking of a

[PHP] Re: Report generators: experience, recommendations?

2010-02-13 Thread Al
On 2/13/2010 1:56 PM, Jonathan Sachs wrote: I'm looking for a report generator which will be used to create management reports for my client from a MySQL database. The web site is implemented in PHP. Some characteristics that would be nice to have, roughly in order of importance: * It is mode

Re: [PHP] Advice on maintaining public and private files

2010-02-20 Thread Al
I use Kim's solution and take it one step forward. Htacces files can get lost or corrupted, so In my config file I have the text string. //region htaccess file text // Code writes to /db folder; Admin mode checks file existence and text; replaces with this if different.

Re: [PHP] Advice on maintaining public and private files

2010-02-21 Thread Al
On 2/21/2010 9:11 AM, Kim Madsen wrote: Al wrote on 20/02/2010 19:30: I use Kim's solution and take it one step forward. Htacces files can get lost or corrupted, so No solution to that problem as I see it. In my config file I have the text string. I like the idea, but what if

[PHP] Re: Mail Function In PHP

2010-03-07 Thread Al
Use the Pear Mail package. In particular the smtp class. It will save you much grief and time. On 3/6/2010 11:54 PM, Kannan wrote: Hello I am creating a application for our college using the php.In that i want to send mail to all who are all the list. For that i am just simply use

[PHP] Re: Splitting a string ...

2010-03-15 Thread Al
On 3/14/2010 9:54 PM, Ashley M. Kirchner wrote: I'm not a regexp person (wish I was though), and I'm hoping someone can give me a hand here. Consider the following strings: - domain\usern...@example.org - domain\username - the same as above but with / instead of

[PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread Al
Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ I pretty good with regex; but, be damned if I can delete them with preg_replace() I've tried "" as the manual says preg_replace("//", '', $str); preg_replace("/()+/", '', $str); preg_replace("/\x5C/", '',

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread Al
On 3/15/2010 3:30 PM, Ashley Sheridan wrote: On Mon, 2010-03-15 at 15:35 -0400, Al Rider wrote: On 3/15/2010 3:11 PM, Ashley Sheridan wrote: On Mon, 2010-03-15 at 15:03 -0400, Al wrote: Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ I pretty good with

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-16 Thread Al
On 3/15/2010 5:03 PM, Jim Lucas wrote: Al wrote: Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ I pretty good with regex; but, be damned if I can delete them with preg_replace() I've tried "" as the manual says preg_replace(&qu

[PHP] Re: Server-side postscript-to-PDF on-the-fly conversion

2010-03-27 Thread Al
On 3/27/2010 12:41 AM, Rob Gould wrote: Is there a free solution out there that will enable me to take a PHP-generated postscript output file, and dynamically, on-the-fly convert it to a PDF document and send to the user as a download when the user clients on a link? More description of what

[PHP] Re: Converting funky characters

2010-03-29 Thread Al
On 3/28/2010 8:05 PM, Skip Evans wrote: Hey all, What's the best way to filter/convert characters that don't translate properly from say news stories to HTML? For example, I have a form that people cut and paste the lead in paragraph from news stories they want to link to from their sites to

[PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread Al
On 4/10/2010 9:07 PM, Kristijan Marin wrote: Hi, I'm experiencing very slow performance of my php scripts ... At first and for a long time I thought it was Oracle fault cause I didn't use binding (I rewrote the code ), but the performance is still bad. So I tested my sql statement and did

Re: [PHP] Basic switch statement

2010-04-14 Thread Al
ed even though I documented it. Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code beautifier. You can set it for phpDoc or Pear rendering. And, it auto indents, etc. as you enter stuff. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Directory permissions question

2010-04-19 Thread Al
ssions 755. Is there any way the files could have been written other than by ftp access or at the host root level? Clearly a php script couldn't. Thanks, Al.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Directory permissions question

2010-04-19 Thread Al
On 4/19/2010 11:11 AM, Adam Richardson wrote: On Mon, Apr 19, 2010 at 10:59 AM, Al wrote: I'm working on a hosted website that was hacked and found something I don't fully understand. Thought someone here may know the answer. The site has 4 php malicious files in directorie

[PHP] Re: Recommendation for online PHP editor please....

2010-04-25 Thread Al
On 4/25/2010 4:01 AM, Angus Mann wrote: HI all. I'm looking for a recommendation for an online PHP editor. Here's what I mean I mean a PHP program I can install on my web-server, then log in and use it to browse and edit other PHP files on the server. The idea is that I could make chang

[PHP] Re: Malware Question

2010-04-29 Thread Al
stats and add a note. e.g. 1Apr09 21 files; "*.htaccess" => "\*" Addition htaccess files added, OK 19Jul08 6 files; "*.htaccess" => "\*" Has good PW protection,. etc. Easy to install, one file, instructions at the top. I'll send you a zip if you reply and send me addr. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Two color rows in table inside while iteration

2010-04-29 Thread Al
On 4/28/2010 7:29 AM, Juan Rodriguez Monti wrote: Hello Guys, I would like to implement a two color row table for some queries that I'm doing. I use PHP to query a DB, then I use while to print all its results. I have a code pretty similar to this one : $results = Here the QUERY; e

Re: [PHP] Re: Malware Question

2010-04-29 Thread Al
On 4/29/2010 1:35 PM, Gary . wrote: On 4/29/10, Al wrote: Ross had a good suggest about planted links to external malicious sites. One of the sites I worked on a couple of years ago had this happen. They ask me to look into it. There were about 90 htaccess files that redirected the user to a

[PHP] Re: Finding similar results with php from mysql

2010-05-07 Thread Al
On 5/7/2010 7:37 PM, Merlin Morgenstern wrote: Hi there, I am searching for a way to show the user similar records from the mysql database. A functionality like "this could also be of interest to you". Does anybody know if this is there is a standard functionality to do this, or a good way on

[PHP] Re: dynamically generating and retrieving page data using flat files

2010-05-08 Thread Al
On 5/8/2010 9:41 PM, David Mehler wrote: Hello, I've got a project that i have to reference information stored on one page from another. This page I won't be visiting first, and at the moment i'd prefer to use flat php files, but should that prove to hard i'll transition to a mysql database. I'

[PHP] Re: PHP Application Structre

2010-05-10 Thread Al
On 5/10/2010 6:39 AM, Alex Major wrote: Greetings all, This question basically surrounds how you structure your PHP applications, whether it changes depending on what you're doing and which you'd favour. I have a feeling it'll come down to a question of personal taste, but on the off-chance

Re: [PHP] Re: PHP Application Structre

2010-05-10 Thread Al
On 5/10/2010 12:17 PM, Ashley Sheridan wrote: 3} Unless the site is small and has few pages and applications, it is almost impossible to maintain. I disagree here. As long as there are useful naming conventions for all of the files (I've seen projects where files have been named 1.php, 2

[PHP] Re: regexp questions

2010-05-11 Thread Al
Get a copy of http://www.weitz.de/regex-coach/ and contribute. Use the pattern on your string, one section at a time. On 5/10/2010 7:53 PM, Spud. Ivan. wrote: Hi, I've recently changed from php 5.1 to 5.3.2 and I'm havong problems with preg_match, because the same regular expressions used i

[PHP] Re: Displaying errors

2010-05-16 Thread Al
On 5/16/2010 7:39 AM, Malka Cymbalista wrote: Hi all, we are running Apache 2.2.6 and PHP 5.2.6 on a Linux machine. If someone gets an error when displaying a php web page, he does not get any error message on the screen. The arror is written into the apache error log file, but most users

Re: [PHP] Re: Displaying errors

2010-05-16 Thread Al
On 5/16/2010 1:10 PM, Ashley Sheridan wrote: On Sun, 2010-05-16 at 12:57 -0400, Al wrote: On 5/16/2010 7:39 AM, Malka Cymbalista wrote: Hi all, we are running Apache 2.2.6 and PHP 5.2.6 on a Linux machine. If someone gets an error when displaying a php web page, he does not get any error

Re: [PHP] A simple question, however it's urgent

2010-05-17 Thread Al
On 5/17/2010 8:53 AM, Andre Polykanine wrote: Ash, Magic quotes are disabled: http://gviragon.org/study/php.php Any ideas? Thanks a lot! Your code should work for something as simple as this, almost regardless of the php setup. Change your $what=array("\r\n", "\n", "\r"); $with=array(""

[PHP] Question about a security function

2010-05-20 Thread Al
I have a password-protected, user, on-line editor that I'm hardening against hackers just in case a user's pw is stolen or local PC is infected. The user can enter html tags; but, I restrict the acceptable tags to benign ones. e.g., , , , etc. e.g., no Just to be extra safe, I've added a fun

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 10:07 AM, Ashley Sheridan wrote: On Thu, 2010-05-20 at 14:27 +0100, David Otton wrote: On 20 May 2010 13:53, Al wrote: I have a password-protected, user, on-line editor that I'm hardening against hackers just in case a user's pw is stolen or local PC is infected.

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 11:23 AM, David Otton wrote: On 20 May 2010 15:52, Al wrote: I agree blacklisting is a flawed approach in general. My approach is to strictly confine entry text to a whitelist of benign, acceptable tags. The But that's not what you've done. You've blackliste

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 12:02 PM, Jim Lucas wrote: Al wrote: On 5/20/2010 11:23 AM, David Otton wrote: On 20 May 2010 15:52, Al wrote: I agree blacklisting is a flawed approach in general. My approach is to strictly confine entry text to a whitelist of benign, acceptable tags. The But that&#

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 12:43 PM, Ashley Sheridan wrote: On Thu, 2010-05-20 at 12:40 -0400, Al wrote: On 5/20/2010 12:02 PM, Jim Lucas wrote: Al wrote: On 5/20/2010 11:23 AM, David Otton wrote: On 20 May 2010 15:52, Alwrote: I agree blacklisting is a flawed approach in general. My approach

[PHP] Re: Remove blank lines from a file

2010-05-21 Thread Al
On 5/21/2010 8:03 AM, Anton Heuschen wrote: Hi Im trying do something like this, have a function which uploads my file and returns file pointer ... but at same time ... I want to remove all Blank lines in a file and update it before it goes to the final location ... What I tried was to do a wr

[PHP] Re: how to update array keys and keep element order ?

2010-05-21 Thread Al
On 5/21/2010 5:56 AM, cr.vege...@gmail.com wrote: How do I update an array key without disturbing the element order ? Suppose an existing array("FR", values ...) where I want to change 0 => "FR" to "country" => "FR" and keep the original element order. TIA, Cor I short on time; but, it se

Re: [PHP] Question about a security function

2010-05-21 Thread Al
On 5/21/2010 9:24 AM, David Otton wrote: On 20 May 2010 16:51, Al wrote: I'm not being clear. First pass is thru the blacklist, which effectually tells hacker to not bother and totally deletes the entry. If the raw entry gets past the blacklist, it must then only contain my whitelist

Re: [PHP] Question about a security function

2010-05-21 Thread Al
On 5/21/2010 9:21 AM, Ashley Sheridan wrote: On Fri, 2010-05-21 at 14:24 +0100, David Otton wrote: On 20 May 2010 16:51, Al wrote: I'm not being clear. First pass is thru the blacklist, which effectually tells hacker to not bother and totally deletes the entry. If the raw entry gets

Re: [PHP] Question about a security function

2010-05-21 Thread Al
On 5/21/2010 10:36 AM, Jim Lucas wrote: Al wrote: On 5/21/2010 9:24 AM, David Otton wrote: On 20 May 2010 16:51, Al wrote: I'm not being clear. First pass is thru the blacklist, which effectually tells hacker to not bother and totally deletes the entry. If the raw entry gets pas

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Al
On 5/22/2010 1:02 PM, Robert Cummings wrote: tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved to the server it must look like 1 2 3 4 5 6 If that is

Re: [PHP] Remove blank lines from a file

2010-05-22 Thread Al
On 5/22/2010 4:34 PM, Robert Cummings wrote: Al wrote: On 5/22/2010 1:02 PM, Robert Cummings wrote: tedd wrote: At 4:27 PM +0200 5/21/10, Anton Heuschen wrote: So in the file it would look like (from the original file the user uploads that is) 1 2 3 4 5 6 but when the file is saved

Re: [PHP] Select Values Didn't Get Passed in From Two DifferentForms

2010-05-26 Thread Al
On 5/26/2010 3:50 PM, Alice Wei wrote: Date: Wed, 26 May 2010 15:36:18 -0400 To: php-general@lists.php.net; aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms Alice: You provide: Select the type of your start

Re: [PHP] stripping first comma off and everything after

2010-06-19 Thread Al
On 6/19/2010 3:08 AM, Adam Richardson wrote: $before_needle = true Requires 5.3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML in emails

2010-07-04 Thread Al
since all modern browsers handle it well. And, it appears to be the way web is going. What are you folks doing? Al.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTML in emails

2010-07-05 Thread Al
On 7/4/2010 11:43 AM, Al wrote: I know this is a bit off-topic; but close enough. I'm starting to update the email feature of one of my DB applications and noticed that it appears most of the fancy emails I receive are using just plain old, simple html pages, with a note about not being

[PHP] Re: Handling multiple form fields

2010-09-10 Thread Al
On 9/10/2010 6:55 AM, Abah Joseph wrote: Please i want to seek your opinion on how to handle large form fields, i have a table that contain 30 fields and i`m wondering if there is a better way to automatically create the html form and validate it. By asking such a basic question, it sounds l

[PHP] Re: SEO Experts?

2010-09-26 Thread Al
On 9/26/2010 8:09 AM, David Mehler wrote: Hello, Do we have any SEO experts on this list? I'm not one, learning only, reading a book and a few articles/tutorials from webmasters, and I'm wanting to optimize an existing site to get the best search rank possible. Some techniques, dos and don'ts w

[PHP] php running as module or cgi?

2010-11-10 Thread Al
Briefly, what are the trade offs on a typical shared host? I've done a little research and can't seem to find anything outstanding either way. Seems like as an Apache module is faster. This argument makes sense. CGI is more secure, this argument doesn't seem too persuasive to me. Maybe I'm mi

[PHP] Poor newsgroup server performance

2010-11-29 Thread Al
Recently the response on our php.general php.pear.general have become horribly slow. At first I thought the problem was a time-of-day overload; but, it seems to be happening at all times. All other websites I visit are normal. Just getting to post this message took 2 timeouts. -- PHP Gener

Re: [PHP] Poor newsgroup server performance

2010-11-29 Thread Al
On 11/29/2010 11:03 AM, Daniel P. Brown wrote: On Mon, Nov 29, 2010 at 09:14, Al wrote: Recently the response on our php.general php.pear.general have become horribly slow. At first I thought the problem was a time-of-day overload; but, it seems to be happening at all times. All other

[PHP] Re: PHPInfo disabled due to security

2010-12-15 Thread Al
Personally, I would have changed ISPs long ago. On 12/15/2010 9:57 AM, Paul S wrote: Warning: phpinfo() has been disabled for security reasons in /home/.../php/phpinfo.php on line 2 My ISP has disabled phpinfo and has not answered my tech requests on this for over a month. They seem to neve

[PHP] Server response very poor again

2010-12-22 Thread Al
It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many times outs etc. Took me 4 tries to post this. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server response very poor again

2010-12-22 Thread Al
On 12/22/2010 12:17 PM, Nicholas Kell wrote: On Dec 22, 2010, at 10:09 AM, Steve Staples wrote: On Wed, 2010-12-22 at 10:19 -0500, Al wrote: It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many times outs etc. Took me 4 tries to post this. Al... Not

[PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Al
On 12/28/2010 7:49 AM, Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters. The obvious fix was to trim() the values that I receive, but I worry how that would affect users who use a space at

[PHP] Re: Regex for telephone numbers

2010-12-31 Thread Al
On 12/29/2010 7:12 PM, Ethan Rosenberg wrote: Dear List - Thank you for all your help in the past. Here is another one I would like to have a regex which would validate that a telephone number is in the format xxx-xxx-. Thanks. Ethan MySQL 5.1 PHP 5 Linux [Debian (sid)] Regex i

Re: [PHP] Re: Regex for telephone numbers

2010-12-31 Thread Al
On 12/31/2010 11:10 AM, a...@ashleysheridan.co.uk wrote: Erm, you say regex is overkill, then use one in your example! Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Al" Date: Fri, Dec 31, 2010 15:53 Subject: [PHP] Re: Regex for telephone numbers To:

[PHP] Re: Regex for ... genealogical names

2011-01-01 Thread Al
On 1/1/2011 4:46 AM, Lester Caine wrote: JohnDoeSMITH' or 'John Doe SMITH' Try this. not tested. First, which adds spaces as needed. e.g. JohnDoeSMITH > 'John Doe SMITH' $newName=preg_replace("%(?<=[a-z])([A-Z])", " $1", $name);//Cap following low case, add space before it Next, alphas fol

[PHP] Re: session_id() is not passed to the next page

2011-01-04 Thread Al
On 1/3/2011 11:46 PM, Michelle Konzack wrote: Hello, I am rewriting currently a login script and I encountered a problem with sessions. While reading the two pages I have not found a solut

[PHP] Best practice question regarding set_include_path()

2012-05-10 Thread Al
For my applications, I've been using includes and other file addressing by using the doc root as the base dir. e.g. require_once $_SERVER['DOCUMENT_ROOT'] . '/miniRegDB/includes/miniRegDBconfig.php'; Recently, I ran into a problem with a new installation on a shared host where the doc root wa

[PHP] disabled cookies

2012-06-03 Thread Al
Disabled cookies use to be a problem years ago. What's your experience these days. I need it for my session ID. As I read the docs, the old method of appending it to the URL is a security issue. I can obviously save the ID in a temp file which can be read by all the pages needing it.

[PHP] Re:

2012-06-04 Thread Al
On 6/3/2012 8:26 PM, Chris Purves wrote: Hello, I am trying to use preg_match to match something from an html file. Within the html file is some text that looks like: Something, something end I know that the text ends 'end', but I don't know what the Something, something is. I am using preg_

Re: [PHP] global array

2012-06-14 Thread Al
On 6/14/2012 12:49 PM, Jim Giner wrote: Yes - PHP is very picky. Hence I never capitalize anything! I use underscores to make varnames more understandable, as in $inv_req There is another nice custom e.g. $invReg it's easy to read and it doesn't conflict with PHP syntax for some function

[PHP] Re: php form action breaks script

2012-06-15 Thread Al
On 6/14/2012 7:28 PM, Tim Dunphy wrote: Hello list, I was just wondering if I could get some opinions on a snippet of code which breaks a php web page. First the working code which is basically an html form being echoed by php: if ($output_form) { echo ' Subject of email: B

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread Al
It is a small price to pay for large block, especially if the text has any quotes. Personally, I can't keep them straight and delimit them, etc. Heredoc saves all that such stuff. $insert= MY_DEFINED; echo << On 06/15/2012 06:35 AM, Jim Giner wrote: Hear, Hear for heredocs. The only way to c

[PHP] What's happened to our newsgroup?

2012-06-26 Thread Al
No postings for days. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reverse DNS testing

2012-07-12 Thread Al
I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the fundamental code: $host = $_SERVER['SERVER_NAME']; //site name shared or not $ip = gethostbyname($host); $hos

Re: [PHP] Reverse DNS testing

2012-07-12 Thread Al
On 7/12/2012 3:09 PM, Jim Lucas wrote: On 07/12/2012 11:17 AM, Al wrote: I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the fundamental code: $

Re: [PHP] Reverse DNS testing

2012-07-12 Thread Al
On 7/12/2012 3:58 PM, David OBrien wrote: On Jul 12, 2012, at 2:17 PM, Al wrote: I want to do a rDNS check on a admin entered host name to insure in-coming mail servers don't reject mail, sent by my app, because the rDNS doesn't exist or doesn't match. Here is the f

[PHP] Re: Regex

2012-07-27 Thread Al
On 7/27/2012 1:07 PM, Ethan Rosenberg wrote: Dear list - I've tried everything and am still stuck. A regex that will accept numbers, letters, comma, period and no other characters Thanks. Ethan Rosenberg "%[\w\d,.]%" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Re: Regex

2012-07-27 Thread Al
On 7/27/2012 2:56 PM, David Harkness wrote: On Fri, Jul 27, 2012 at 11:43 AM, Al wrote: "%[\w\d,.]%" "\w" will match digits so "\d" isn't necessary, but it will also match underscores which isn't desired. David You're correct, I forgo

[PHP] Too many open files

2012-08-09 Thread Al
Getting "Too many open files" error when processing an email batch process. The batch size is actually rather small and the email text is small likewise. I've looked extensively and can't find more than about 100 files that could be open. All my fetching is with get_file_contents(); I can't

Re: [PHP] Too many open files

2012-08-12 Thread Al
On 8/10/2012 12:02 PM, Daniel Brown wrote: On Fri, Aug 10, 2012 at 10:22 AM, Robert Cummings wrote: On 12-08-09 08:01 PM, Al wrote: I can't find a way to see what files could be open or what the limit is. Site is on a shared server, cPanel. ^ THIS is pro

Re: [PHP] Need to have form protection techniques

2012-08-17 Thread Al
On 8/17/2012 10:42 AM, Robert Cummings wrote: On 12-08-17 10:15 AM, Tedd Sperling wrote: On Aug 17, 2012, at 10:09 AM, Daniel Brown wrote: On Fri, Aug 17, 2012 at 12:05 AM, Ansry User 01 wrote: I need to know the forms validity techniques for Php. This will probably take a while to

Re: [PHP] Undefined Variables

2013-02-14 Thread Al
On 2/14/2013 1:54 PM, Stuart Dallas wrote: Sorry for the top post! I don't know numbers, but my gut instinct is that the cycles wasted raising the notice (it gets raised even if it goes nowhere so turning display and log doesn't remove the hit completely) are better spent executing defensive

[PHP] htaccess question

2013-04-09 Thread Al
I know it's not a php question, but I can't readily find the answer elsewhere. I want to make this directive universal. Put htaccess file on any host in any folder. This works RewriteEngine On RewriteCond %{SERVER_PORT} !=443 RewriteRule ^(.*)$ https://www.foo.org/bar/$1 [R=301,L] #Here the

[PHP] Header Keep-Alive

2013-05-27 Thread Al
I'm trying to increase the connection timeout; but can't get it to work. Note: Keep-Alive gets repeated. I'm using: header("Connection: Keep-Alive"); header("Keep-Alive: timeout=9, max=100"); I get: (Status-Line) HTTP/1.1 200 OK DateMon, 27 May 2013 20:19:54 GMT Server Apache Connection

[PHP] Webpage Persistence Load balancing

2013-05-29 Thread Al
t a server issue that you must fix? Thanks, Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help: Validate Domain Name by Regular Express

2011-01-08 Thread Al
On 1/8/2011 3:55 AM, WalkinRaven wrote: PHP 5.3 PCRE Regular Express to match domain names format according to RFC 1034 - DOMAIN NAMES - CONCEPTS AND FACILITIES /^ ( [a-z] | [a-z] (?:[a-z]|[0-9]) | [a-z] (?:[a-z]|[0-9]|\-){1,61} (?:[a-z]|[0-9]) ) # One label (?:\.(?1))*+ # More labels \.? #

<    1   2   3   4   5   6   7   8   >