Re: [PHP] Directory permissions question

2010-04-19 Thread Al
in directories owned by system [php created dirs on the site are named nobody] and permissions 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

Re: [PHP] Directory permissions question

2010-04-19 Thread Al Rider
Apache 2.0.63 php 5.2.8 I know both are obsolete and need updating. I told my client to request same from their ISP. Al On 4/19/2010 12:01 PM, Jim Lucas wrote: Al wrote: I'm working on a hosted website that was hacked and found something I don't fully understand. Thought someone here

[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

[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: 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

[PHP] Remote Desktop Management

2010-03-17 Thread Al Mangkok
Hi all, Am looking for Remote Desktop Management system that is written with PHP. Appreciate all feedback. TIA -- al

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(//, '', $str); preg_replace

[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

[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

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

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.

[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

[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

[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

[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:

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] 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 html head ... stuff /head body ... stuff ...

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

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

[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

[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? Thanks, Al. -- PHP

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 as I've always seen on other

[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] Question about includes

2009-11-24 Thread Al
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 n...@ridersite.org 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

[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.

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 this approach

[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

[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

[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/password. Al

[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 spaces,

[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

[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: ?php enable_debug(true);

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

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: 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

[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. ?php echo easter_days(2009); print

[PHP] Re: How do YOU set default function/method params?

2009-10-06 Thread Al
Jim Lucas wrote: Here is a problem that I have had for years now. I have been trying to come up with the perfect solution for this problem. But, I have come down to two different methods for solving it. Here is the problem... ?php function sendEmail( $to, $from, $subject,

[PHP] webpage link validation

2009-09-21 Thread Al
looked at are gross overkill. Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Validation XHTML code and repairing broken one

2009-09-17 Thread Al
won't install it for them. So, I've had to script my own XHTML validator. You are welcome to use the functions, just ask. I must warn you, much of the code uses regex expressions; so, if you are not familiar with regex, I'd advise not using them. Al. -- PHP General Mailing List

[PHP] Re: Login should not allow users to login if the application is logged in with the same login credentials

2009-08-27 Thread Al
Balasubramanyam A wrote: Hello, I've written a simple application, where users need to login to access the features of the application. I want to develop login system such that, if user is already logged in, the application should not allow the users to login with the same login credentials.

[PHP] Tidy on a shared host

2009-08-20 Thread Al
. The hosts have given me restricted FTP to the dir. Or, does anyone know of a stand-alone php class that emulates the tidy extension. I've looked; but, not found any. Al.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Help on pregreplace

2009-08-18 Thread Al
Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone help? Here is the code:

[PHP] Re: Message Board Recommendations

2009-07-29 Thread Al
is for a communications registry, then my MiniRegDB might fit the bill, using the Private/Secure mode. http://ridersite.org/MiniRegDBdemo/MiniRegDBoverview.php If neither of these fits the need, describe it in more detail. Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Tidy question about the config args

2009-07-24 Thread Al
I have a question about using the $config arguments with tidy_parse_string() and tidy_repair_string() etc. The functions seem to totally ignore new-blocklevel-tags new-empty-tags new-inline-tags E.g., I have in my config array some custom tags [new-inline-tags] =

[PHP] Linking to images above the webspace

2009-07-17 Thread Al
I've got a php script in which I'd like to link to an image above the webspace [doc-root] and render it as img or object... Anyone know how this can be done? Googling always refers me to document_root, where absolute or relative. Do I first have to make a copy of the image and put it

[PHP] General good practice question about functions directory location

2009-07-14 Thread Al
Most of my scripts are written for use on shared hosts. I've generally put my function and config files in a web-space directory. However, I been thinking it would be less bother to make stuff more secure if the functions, et al, were above the root directory. I realize, some hosts still

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Al
. In fact, I'd like to session constants. Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Cleaning up automatically when leaving a page

2009-07-01 Thread Al
10 minutes earlier, does the cleanup process. This technique assumes that a new client will come along and that the cleanup process(es) are fairly fast. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_replace problem

2009-06-13 Thread Al
, amp;, $value); echo $value; I tried using \x26 for the in the search string; didn't help. This seems too obvious to be a bug. Using php5.2.9 Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Shawn McKenzie wrote: Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Shawn McKenzie wrote: Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br /'; $value

[PHP] Re: forms problem

2009-06-04 Thread Al
PJ wrote: The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br /input type=text name=title value=? echo $passwd;

Re: [PHP] Re: forms problem

2009-06-04 Thread Al
Michael A. Peters wrote: Al wrote: I also use the HTML Validator extension. Leave it active and as you develop and test your resultant html code, it'll check your pages on the fly. When you see the red circle, with a cross, click the circle and get an error report in detail. Hey wow

[PHP] Re: how to manage permissions for file uploader

2009-06-03 Thread Al
Lamp Lists wrote: to upload an image for a photo gallery (my own code) I have to have permission for the directory images 0777. but having permission for a directory 0777 is REALLY bad idea, isn't it? I'm owner of the directory (lamp:lamp images). what to do to set my code has permission to

[PHP] Re: General Web Development Editor/IDE

2009-05-24 Thread Al
Casey wrote: Hi list, I'm looking for a nice, user (i.e. me) friendly general-purpose IDE, where most of my work will be done in PHP. I'm considering using Dreamweaver CS4 as my IDE, where I will disable most of the WYSIWYG elements and use all of the other features that I need/want

Re: [PHP] CSS tables

2009-05-21 Thread Al
There appears to be a bug in the FF3x cell line generating code. border-collapse is a mess, it doubles up some cell lines and drops others when drawing and redrawing tables. I had to make a nice lines between cells by assigning tds with bottom and right sides only. Al... Jessi

[PHP] Re: CSS tables

2009-05-18 Thread Al
table tags has left me a bit puzzled. But, I just figured I was overlooking something. Can some one educate me on this point. Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: CSS tables

2009-05-18 Thread Al
Paul M Foster wrote: On Mon, May 18, 2009 at 09:20:56AM -0400, Al wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am

[PHP] Re: CSS tables

2009-05-15 Thread Al
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous

Re: [PHP] Re: speaking of control structures...

2009-05-07 Thread Al
Tom Worster wrote: On 5/6/09 4:02 PM, Al n...@ridersite.org wrote: Here's the way I handle validating user form inputs. Each function validates several things and throws an error with the message stating what's wrong. try { checkEmailAddr($userSubmitedDataArray

[PHP] Re: speaking of control structures...

2009-05-06 Thread Al
Tom Worster wrote: there's a control structure i wish php had: a simple block that you can break out of, e.g. block { if ( condition ) break; blah... blah... if ( another condition ) break; blah... blah... etc... } the block is just like a loop except that it is

Re: [PHP] graphical integrated development environment recommendations?

2009-05-01 Thread Al
Michael A. Peters wrote: Adam Williams wrote: With the wide range of users on the list, I'm sure there are plenty of opinions on what are good graphical IDE's and which ones to avoid. I'd like to get away from using notepad.exe to code with due to its limitations. Something that supports

[PHP] Re: E-Mail Verification - Yes, I know....

2009-04-29 Thread Al
Jay Blanchard wrote: Our company wants to do e-mail verification and does not want to use the requests / response method (clicking a link in the e-mail to verify the address), which as we all know is the only way you can be truly sure. I found this; http://verify-email.org/ Which seems to be

[PHP] Re: Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Al
Edward Diener wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an ATT address, such as my own as an ATT ISP customer, the mail never gets to me. If the 'to' address is anything other than an ATT address, the mail gets to the recipient. The PHP

[PHP] Re: try - catch is not so clear to me...

2009-04-15 Thread Al
Lamp Lists wrote: hi to all! actually, the statement in the Subject line is not 100% correct. I understand the purpose and how it works (at least I think I understand :-)) but to me it's so complicated way? let's take a look in example from php.net(http://us3.php.net/try) ?php function

[PHP] Re: unknown number of inputs

2009-04-10 Thread Al
used for a while, you can check the log and adjust your batch size constant(s) accordingly. Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: unknown number of inputs

2009-04-10 Thread Al
Phpster wrote: On Apr 10, 2009, at 12:44, Al n...@ridersite.org wrote: PJ wrote: I have a script with $_POST and form to load data with text input. Situation: enter name of author(s) for book. I have the script set up to enter first_name, last_name for Author1 and the same for Author 2

Re: [PHP] if elseif elseif elseif....

2009-03-05 Thread Al
Al wrote: PJ wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator

[PHP] Re: Strange charecters

2009-03-05 Thread Al
Chetan Rane wrote: Hi gang I am using ob_start() in my application. However I am getting this error about headers already sent. I have put ob_start at the beginning of the script. I think this has to do something with Unicode. Can anyone explain why this happens. And whats the

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread Al
PJ wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the

Re: [PHP] Online Part Time Job Available

2009-02-16 Thread Al
Ashley Sheridan wrote: On Tue, 2008-09-16 at 17:12 +0200, Marc wrote: Richmal Whitehead schrieb: Hi, Our online market research organization starts recruiting self-motivated and reliable individuals willing to take part in well-paying research conducted by leading international businesses.

Re: [PHP] Opinions needed

2009-02-13 Thread Al
Rene Veerman wrote: Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry will only contain 50 to 100 names. Each

[PHP] Opinions needed

2009-02-12 Thread Al
with Cache_Lite? Anyone have an opinion on the alternatives or maybe another storage approach? Thanks, Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinions needed

2009-02-12 Thread Al
Robert Cummings wrote: On Thu, 2009-02-12 at 15:26 -0500, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry

Re: [PHP] Opinions needed

2009-02-12 Thread Al
Robert Cummings wrote: On Thu, 2009-02-12 at 15:45 -0500, Al wrote: Robert Cummings wrote: On Thu, 2009-02-12 at 15:26 -0500, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally

Re: [PHP] Opinions needed

2009-02-12 Thread Al
tedd wrote: At 3:26 PM -0500 2/12/09, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry will only contain 50

Re: RES: [PHP] Rounded rectangle in php

2009-01-29 Thread Al
Jônatas Zechim wrote: Thank u, i'll try, when I do, i'll post here. zechim -Mensagem original- De: c...@l-i-e.com [mailto:c...@l-i-e.com] Enviada em: quinta-feira, 29 de janeiro de 2009 13:52 Para: php-general@lists.php.net Assunto: Re: [PHP] Rounded rectangle in php Yes, you

[PHP] Re: validating directory and file name with preg_match

2009-01-28 Thread Al
Frank Stanovcak wrote: I'm limiting access to certain proceedures based on the file trying to use them, and the directory they are located in on my server. Right now I am using two preg_match statments as you will see. What I want to know is this. Is there a way to write a single regex

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Al
Stephen Alistoun wrote: Hi all, My captha code is working but the session code is not matching image code(captha code). How do i get them to match each other. PHP CAPTHA session_start(); $fontArray = array('arial.tff' , 'impact.tff' , 'tahoma.tff' , 'tunga.tff' ,

[PHP] Re: MySQL class. Thoughts?

2009-01-21 Thread Al
Jay Moore wrote: This is a MySQL class I use and I wanted to get everyone's thoughts on how/if I can improve it. This is for MySQL only. I don't need to make it compatible with other databases. I'm curious what you all think. Thanks, Jay Class: -- ?php // Standard MySQL class class

[PHP] Re: phpMailer Problem!

2009-01-19 Thread Al
shahrzad khorrami wrote: hi all, I want to send email using SMTP Authentication with PHPMailer, I searched more and more but I can't find anything of my problem /// include_once('class.phpmailer.php');

Re: [PHP] Server cannot send emails

2009-01-19 Thread Al
Sergio Jovani wrote: Thanks to all. The problem is caused by a server restriction. SourceForge.net does not allow to send emails from PHP. Bye! 2009/1/17 Morris morris...@gmail.com: If you are using apache + php, check php.in your server is able to support the mail() function and you have

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-16 Thread Al
port23user wrote: I have a site (done in CodeIgniter) where users can upload pictures. When they upload a picture, I want to rotate it (rotating is optional, depending on how much cpu/ram I end up needing), resize it, and create a thumbnail. Right now I'm doing it all in that order using GD,

[PHP] Re: Php and CSS where to put it

2009-01-13 Thread Al
it on your page. It has 8 bad errors. These tools are great learning aids. Incidentally, I'm not a fan of frames, often causes problems. Al. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-11 Thread Al
c...@l-i-e.com wrote: Rule #1. Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Specifically, do NOT add br / tags in place of newlines. Store the newlines. Upon OUTPUT, you can use nl2br() to get br / tags. Or str_replace if you want /p instead. This is crucial as

[PHP] Re: Create image from HTML

2009-01-09 Thread Al
Christoph Boget wrote: Does anyone know if it's possible, using PHP, to take HTML (either as an input or from a URL) and generate an image (essentially, create a screenshot) of that HTML/page? I've looked around but was unable to find anything and I'm just not sure if it's that there really

[PHP] Re: redoing website after 7 years

2009-01-08 Thread Al
Lamp Lists wrote: hi guys, I did php/mysql based website for one my client 7 years ago, in time when register_globals was on by default. hosting company upgraded server to php5/mysql5 and turned globals off. the site is doesn't work any more. I can define globals on again in .htaccess but

[PHP] Re: redoing website after 7 years

2009-01-07 Thread Al
Lamp Lists wrote: hi guys, I did php/mysql based website for one my client 7 years ago, in time when register_globals was on by default. hosting company upgraded server to php5/mysql5 and turned globals off. the site is doesn't work any more. I can define globals on again in .htaccess but

[PHP] Re: Please point me in the right direction

2009-01-03 Thread Al
is not for newbies. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zend framework

2008-12-24 Thread Al
I've not given it much thought, so far. But, am curious about what you folks think about it. Anyone with experience have a comment? Al.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend framework

2008-12-24 Thread Al
Richard Heyes wrote: 2008/12/24 Al n...@ridersite.org: I've not given it much thought, so far. But, am curious about what you folks think about it. Anyone with experience have a comment? On what? The Zend Framework? Sorry, I wasn't clear. Anyone with experience using the Zend framework

[PHP] Re: Regular expressions (regex) question for parsing

2008-12-22 Thread Al
Rene Fournier wrote: Hi, I'm looking for some ideas on the best way to parse blocks of text that is formatted such as: $sometext %\r\n-- good data $otherstring %\r\n-- good data $andyetmoretext %\r\n-- good data

[PHP] Re: Create PHP form from MySQL table structure

2008-12-21 Thread Al
R B MacGregor wrote: Hi folks Anybody got any recommendations for a utility which would create a quick head start by creating the php/html code for a basic form using the field structure of a MySQL table ? Thanks for any suggestions. Look at Pear HTML_QuickForm and other HTML classes.

[PHP] Re: Read/decode barcodes from an image

2008-12-18 Thread Al
Al wrote: If anything can do it, it'll be ImageMagick Adam Randall wrote: I'm amazed that this either doesn't exist, or is hard to find. I basically am looking for a way to read in an image into PHP, or shell out to something on the Linux side, and determine, and see if it has a barcode

[PHP] Re: Read/decode barcodes from an image

2008-12-17 Thread Al
If anything can do it, it'll be ImageMagick Adam Randall wrote: I'm amazed that this either doesn't exist, or is hard to find. I basically am looking for a way to read in an image into PHP, or shell out to something on the Linux side, and determine, and see if it has a barcode in it or not. If

[PHP] Re: Voting methodology

2008-12-02 Thread Al
Shawn McKenzie wrote: tedd wrote: Hi gang: What methodology would be the best for online voting? I have a client who is a Union and they want members to vote online, but don't want someone to stuff the voting box. I have some ideas of my own, but would like to hear what you people would

[PHP] pear mail() verses net-smtp()

2008-11-26 Thread Al
Anyone have opinions on these two mail functions for sending smtp emails, pear mail() verses net-smtp()? Which is best, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTMLEntities as NUMERIC for XML

2008-11-25 Thread Al
[EMAIL PROTECTED] wrote: After reading this: http://validator.w3.org/feed/docs/error/UndefinedNamedEntity.html (all praise W3.org!) I am searching for a PHP library function that will convert all my abc; into #123; I have a zillion of these things from converting stupid MS Word characters

[PHP] Re: Memcached is driving me nuts

2008-11-24 Thread Al
Try debug_backtrace() Rico Secada wrote: Hi. This post has also been posted on the Debian list. I have two different Debian Etch machines running with the exact same packages installed, when I use PHP memcached with compression (zlib) it works at one machine but not the other. No errors are

<    1   2   3   4   5   6   7   8   >