[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 { I have a zillion of these things from converting stupid MS Word characters into

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

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

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

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

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

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

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

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

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

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

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 tags in place of newlines. Store the newlines. Upon OUTPUT, you can use nl2br() to get tags. Or str_replace if you want instead. This is crucial as a habit, d

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

2009-01-13 Thread Al
should fix them. Your page has 21 serious warnings many of which are errors that will affect rendering. After you've fixed the warnings and errors it finds, run the W3C HTML Validator. Also, install the Firefox extension "Validate CSS". Run it on your page. It has 8 bad errors.

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: 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'); include("class.smtp.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 : If you are using apache + php, check php.in your server is able to support the mail() function and you have correctly set up the

[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: -- { // Constructor functio

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' , 'verdana.tff')

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

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 will

[PHP] Opinions needed

2009-02-12 Thread Al
nyone had experience 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 reg

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

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.

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

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 wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condition? F

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 wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif

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

[PHP] Re: unknown number of inputs

2009-04-10 Thread Al
has been 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 wrote: PJ wrote: I have a script with $_POST and 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. Check if entry 1

[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) getMessage(), "\

[PHP] Re: Unable to send mail from PHP to AT&T 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 AT&T address, such as my own as an AT&T ISP customer, the mail never gets to me. If the 'to' address is anything other than an AT&T address, the mail gets to the recipient. The PH

[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

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 s

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

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

2009-05-07 Thread Al
Tom Worster wrote: On 5/6/09 4:02 PM, "Al" 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($userSubmitedDataAr

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

[PHP] Re: CSS & tables

2009-05-18 Thread Al
gs 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

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

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

2009-06-04 Thread Al
PJ wrote: The code: ...snip accès client mot de passe Inscription Always W3C validate html and CSS . Use Firefox's "Web Developer" extension. It's super. It would have shown you the problems in minutes, see the "fo

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 i

[PHP] Re: PHP Graphing Libraries...?

2009-06-05 Thread Al
li...@mgreg.com wrote: Hi All, I'm currently looking for a quality (preferably open source) PHP graphing library that will allow me to create various graphs and plot points. I've seen several that do some amazing things, but cost a fortune -- others are either limited, lack documentation,

[PHP] preg_replace problem

2009-06-13 Thread Al
works as it should in Regex_Coach. echo $value.''; $value=preg_replace("%&(?!amp;)%i", "&", $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 "&" unless the value is already "&" But; if $value is simple a quote character ["] I get ""e". e.g., "test" => "e;te

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Shawn McKenzie wrote: Al wrote: This preg_replace() should simply replace all "&" with "&" unless the value is already "&" But; if $value is simple a quote character ["] I get ""e". e.g., "test" => "e;te

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Al wrote: This preg_replace() should simply replace all "&" with "&" unless the value is already "&" But; if $value is simple a quote character ["] I get ""e". e.g., "test" => "e;test"e; Search strin

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

2009-07-01 Thread Al
ay if it's more than 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] Re: SESSION variables: How much is too much?

2009-07-08 Thread Al
page in an application. 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] 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

[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 or 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 below doc_root? Tha

[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] => blue,bold,green,italic,red,

[PHP] Re: Message Board Recommendations

2009-07-29 Thread Al
d 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 u

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

[PHP] Tidy on a shared host

2009-08-20 Thread Al
ides. 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: Array decleration problem

2007-01-03 Thread Al
There another error in your code in addition to the missing ";", echo() is for strings, not arrays. Also, look up the use of single and double quotes in the php docs. It's a good habit to learn to use the right one early on. Delta Storm wrote: Hi, I'm new to php and im learning, I haven't e

[PHP] Re: Removing UTF-8 from text

2007-01-03 Thread Al
to pick up malformed addresses. preg_match_all("%<([EMAIL PROTECTED],4})>%", $text, $matches); Make a new file with: $new_file= ''; foreach($matches[1] as $addr){ $new_file .= $addr . ""; } Al. Dotan Cohen wrote: I have

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Al
You can use anything for delimiters "|" e.g., I like "%" m is for multiline, which I don't think you want here. s is for "dotall"; but, I don't see his dot. I try to avoid using dotall; it is too hard to think of everything it can include. Dotan Cohen wrote: On 03/01/07, Richard Lynch <[EMA

Re: [PHP] Removing UTF-8 from text

2007-01-03 Thread Al
Correction... If your text is truly multiline, as you've shown, then you do need the 'M' Al wrote: You can use anything for delimiters "|" e.g., I like "%" m is for multiline, which I don't think you want here. s is for "dotall"; but, I don&#

[PHP] Re: Still problem with file reading

2007-01-05 Thread Al
You probably have a owner and/or permissions problem. Try setting the dir to 777. Read fopen() in the php manual. There are dozens of user notes on the subject. Delta Storm wrote: Hi, I wrote a while back saying of my problem... I tried to read a file I tried in a couple of ways and i poste

[PHP] Re: regular expression help!

2007-01-18 Thread Al
Note, I assumed your string can have some variation and still be W3C compatible e.g., src="." and src= "", etc. You may need to be able to handle additional variations. Al William Stokes wrote: Hello, Can someone here give me a glue how to do the followin

[PHP] Security Question

2007-01-19 Thread Al
I've got a website on a virtual-host, Apache/Linux system running php scripts. I particular, I've designed a CMS where designated individuals compose and edit text in an html textarea, and then save the raw text in files. Custom [i.e., proxie] tags are used for emphasizing and the formating tex

Re: [PHP] Security Question

2007-01-19 Thread Al
Thanks for the help.. Jochem Maas wrote: Al wrote: I've got a website on a virtual-host, Apache/Linux system running php scripts. I particular, I've designed a CMS where designated individuals compose and edit text in an html textarea, and then save the raw text in files. Custom [i.e., proxie]

Re: [PHP] Security Question

2007-01-20 Thread Al
quot;, '' => "\n", ''=> "", '' => "\n", '' => '', '' => '', '' => "href=\"$request_url\"&g

[PHP] Re: LOL, preg_match still not working.

2007-02-18 Thread Al
If you want help, you must provide some example text strings that are to be matched. You keep posting your pattern and that's the problem. Beauford wrote: Mails been down since this morning (sorry, that's yesterday morning). Anyway, not sure if this went through, so here it is again.

Re: [PHP] Re: LOL, preg_match still not working.

2007-02-20 Thread Al
match AND some that should not match. Beauford wrote: Read my original email for the example string, I have referred to this in every one of my emails. It's even at the bottom of this one. -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: February 18, 2007 10:35 AM

[PHP] Re: php forcing a post??

2007-02-20 Thread Al
One simple way would be to have php send the page to the client. Then,it will look for the response. blackwater dev wrote: I currently have an html page that posts to a cgi function. I need to interject some php in the middle. So, the form will post to itself, the php page will catch the pos

[PHP] Re: New Menu Bar - Can people test it for me?

2007-02-21 Thread Al
The W3C validator reports 72 errors. I've found the best insurance for compatibility is to be W3C compliant. Scott Gunn wrote: All, http://www.thebigspider.co.uk/test/menu.html I'm going to write some php code which will build this menu from an XML file. Before I do, I want to know what s

Re: [PHP] Populating array with function

2007-02-27 Thread Al
A good php editor, with code completion, will help prevent this. I like phpEdit. It even has a built-in syntax checker, which would have caught your error immediately. Dotan Cohen wrote: On 27/02/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: > On 27/02/07, Brad Bonkoski <[EM

Re: [PHP] Populating array with function

2007-02-27 Thread Al
I always wondered if anyone had a perfect brain. Us ordinary mortals require help. Robert Cummings wrote: On Tue, 2007-02-27 at 09:05 -0500, Al wrote: A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not

[PHP] Re: upload file

2007-03-04 Thread Al
$permissable_MINE_types= array( //*** file upload parms 'image/png' => 'png', 'image/gif' => 'gif', 'image/jpeg'=> 'jpg', 'image/pjpeg' => 'jpg', 'application/pdf' => 'pdf', ); $upload_parms['permis_ty

[PHP] Re: Getting bool(false) when using unserialize

2007-03-04 Thread Al
stripslashes before serializing; not afterwards. Richard Kurth wrote: Way am I getting Error at offset 499 of 497 bytes bool(false) when I run this script below according to the manual this should work'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Re: Getting bool(false) when using unserialize

2007-03-04 Thread Al
x27;t stripslashes before serializing because I don't have control of the script that sends the data -Original Message----- From: Al [mailto:[EMAIL PROTECTED] Sent: Sunday, March 04, 2007 2:20 PM To: php-general@lists.php.net Subject: [PHP] Re: Getting bool(false) when using unserialize st

[PHP] Re: $_POST array order

2007-03-14 Thread Al
Why not simply unset() the unwanted value by its key, i.e., the submit button's name. Tim wrote: Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post value returns the last element as being the submit button name

[PHP] Re: Regex error

2007-03-14 Thread Al
Get The Regex Coach http://weitz.de/regex-coach/ Use preg_match_all() Build your pattern one step at a time using the coach. Don't forget the delimiters. jekillen wrote: Hello; The following regex: ereg("id='$m[1]'>", $groups, $m1); is causing the following error: Warning: ereg() [functi

[PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-17 Thread Al
I can't use flag "GLOB_ONLYDIR" to work on a Linux, php4.4.4. I only want the dirs. This works; sort of: print_r(glob('../*',)); //It lists all the files AND directories. Yet it seems to ignore the lack of ".*" and finds xxx.yyy. That's OK, I can delete the files This fails: print_r(glob('.

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Al
umerical value "8196" and it works fine. I'm a little reluctant to use the numerical value as I want my code to be generally universal. Maybe the numerical value is safer anyhow. What do you think? I can alternatively just filter out the files in a second step. Al...

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Al
hanks Jim Lucas wrote: Al wrote: I thought the "." had meaning since the manual user notes used it Definitely, my php is version 4.4.4; it's on a virtual host. I found the glob file for the GNU C Library and GLOB_ONLYDIR doesn't seem to be defined correctly, the f

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Al
It doesn't on my Linux system glob("../path/*"); shows files and dirs; foo.ext and dirs Exactly the same as glob("../path/*.*"); I thought using just plain "*" would ignore files; but, it doesn't. Jochem Maas wrote: Al wrote: I thought the &qu

Re: [PHP] Permissions issue on share

2007-03-22 Thread Al
Get a copy of WinSCP3 or FileZilla ftp utilities, both are free. They will show you who the owner is for the dirs and files. You can also use a SSH shell command; but, unless you are already familiar with Unix commands, using the utilities will be a lot easier and quicker. To change a file o

[PHP] Re: High quality image resizing

2007-03-23 Thread Al
I'd be surprised if Imagemagick won't do the job. It has a terrific amount of tools; but there is a bit of a learning curve. Suggest visiting the IM forums and asking for help. Also, try resizing some images here http://studio.webbyland.com/MagickStudio/scripts/MagickStudio.cgi I use php exe

[PHP] Re: High quality image resizing

2007-03-25 Thread Al
Let's see an example of an image you'd like to resize and tell us what the new size should be. Markus Fischer wrote: Hi, I'm searching for a high quality image resizing facility to be used within PHP in an Unix/Linux environment. Probably everyone will now answer: imagecopyresampled() Howeve

[PHP] Re: how to control if it is a date

2007-03-25 Thread Al
I try to use drop-down menus whenever possible for things like this; one each for days months years Then all one needs to do is check for valid dates with checkdate() Alain Roger wrote: Hi, user can enter a string with following format dd.mm.. Application should transform it to postgresq

[PHP] Re: Newline and tab characters

2007-03-26 Thread Al
Browsers ignore \n \r and \t. Look at the resultant html source code in your browser. Something is converting them BEFORE sending the html code to the client browser. Arno Kuhl wrote: I've just noticed that "\r\n" and "\t" characters create a space when rendered in the browser (tested in IE a

[PHP] Re: mixture of GET and POST

2007-04-04 Thread Al
$self= $_SERVER['REQUEST_URI']; ""; The arguments will be included in the URL for GETs Or, simply Put the arguments in hidden inputs; e.g., They will be returned in the POST array Al Ross wrote: I have 3 'action' buttons and I am trying to send

[PHP] Re: PHP editor

2007-04-11 Thread Al
Does Estrin Technologies, inc. provide its products free? All GOOD, worthwhile editors cost something. Personally, I use phpEdit. Jonathan Kahan wrote: Hi all, I beleive this is in the realm of php (I have learned my lesson from last time). Does anyone have recomendation for any free (I.E.

[PHP] Re: scandir and ftp wrapper

2007-04-12 Thread Al
It appears you are trying to scan/list a remote site's directory; why? Most sites will not allow you to do this. If it's your own site; just use the full path or symbolic one. j wrote: Hi I have a question about scandir I have been trying to track down problems after upgrading from 5.1.6 to

Re: [PHP] Re: scandir and ftp wrapper

2007-04-12 Thread Al
How about the simple opendir() then readdir()? Or, put a php file in the remote site you can query for the list. Or, if the remote has a cgi-bin put a script in it you can query remotely. Look at cURL. John Ewing wrote: It appears you are trying to scan/list a remote site's directory; why?

Re: [PHP] isset

2007-04-16 Thread Al
I've been using empty() for about 5 years, obeying the rules for empty() in the php manual "Appendix P. PHP type comparison tables" and have never seen it generate any type of error message. If you guys know of at least one exception, please clue us in on it. Jim Lucas wrote: Stut wrote: te

[PHP] Re: redirect with header still not working

2007-04-17 Thread Al
Read about output buffering, it's your solution and well worth time learning about. Ross wrote: Right, Have tried the full url for the header and it still doesn't work. I may have to resort to...javacript redirects unless someone can suggest a way around it. Here is the phpinfo(); http:

[PHP] Migrating php4 to php5 on a shared host

2007-04-19 Thread Al
I've got 2 sites on a shared host running php4 and I think it's a matter of when, not if, I should move them to one of my host's php5 servers. I don't see anything in the php manual on migrating that indicates my code would be affected. I'm a little concerned about "gotchas" that would take my

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

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

2009-09-17 Thread Al
hared hosts and many web hosts 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 the

[PHP] webpage link validation

2009-09-21 Thread Al
ost things I've 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: 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... date('c'), 'Message-ID' => md5($to.$subject), ); $headers +

<    1   2   3   4   5   6   7   8   >