[PHP] Re: problem with array

2007-07-15 Thread Al
Do a print_r($result); and you'll see the problem. Ross wrote: I am using postcode anywhere for a 'where's my nearest' function. All the geographical info is contained in an array, which when dumped looks like this var_dump ($result); array(1) { [0]=> array(13) { ["origin_postcode"]=> strin

[PHP] Re: no default value

2007-07-17 Thread Al
A good php editor will prevent this type of error. e.g,. phpEdit does auto variable completion. Assume you've assigned $success=foo. Later you key $sup... the editor competes it for you as $success. Man-wai Chang wrote: Thank you. This is horrible as a simple typing mistake ($sucess rather

Re: [PHP] Re: Multiple Session Buffers

2007-07-18 Thread Al
, the problem is solved. I put the include file, with the session_destroy() after I accepted the user's keyed in CAPTCHA code. Thus, it couldn't destroy my CAPTCHA data. I think of the session handler as a "buffer". Richard Lynch wrote: On Sat, July 14, 2007 1:26 pm,

[PHP] Re: Better way to store data in memory?

2007-07-23 Thread Al
You might take a look at Imagemagic to see how they do it. Richard Davey wrote: Hi php-general collective, I'm building up some image data in my PHP script (ready for output to the browser). Having to do some complex per pixel manipulation, which is fine - but I'm just wondering is there a quic

[PHP] Re: Dealing with ImageMagick from PHP

2007-07-29 Thread Al
You'd be far better off asking your questions on the phpList forum. There are a number of hints on the forum for speeding up things. Plus, look in the examples section. Eric Holt (PHP List) wrote: Hello everyone. This is my first post to the list, so bare with me :) I have written an applica

Re: [PHP] Re: Dealing with ImageMagick from PHP

2007-07-29 Thread Al
Google imagemagik forums Eric Holt (PHP List) wrote: Al: Thanks, sorry for messaging this to the list. Can you point me in the direction of the official phpList forum? Thanks a ton, --Eric Al wrote: You'd be far better off asking your questions on the phpList forum. There

[PHP] Re: Changing URLs from Relative to Absolute

2007-07-30 Thread Al
In general, you must have patterns and code that deal with most common errors. As to your example, your regex pattern must not be good. Is your complete string simply: ? If so, then "%src\x20*=\x20*\"*([\w/]+\x2Ejpg)%i" should do it for you. \x20*, may have 0 or more spaces; \x2E = period; "()

[PHP] Re: if inside an echo.

2007-07-31 Thread Al
foreach(range(0, 2000, 100) as $value){ $str= "$value"; } Hulf wrote: I am outputting a selectbox and want to do the follwoing. How can I add the IF statement inside the the echo? for ($value = 0; $value <= 2000; $value += 100) { echo "selected="selected" }> $value"; }

[PHP] Re: Which PHP-Editor to use?

2007-08-02 Thread Al
phpEdit http://www.waterproof.fr/products/PHPEdit/ Merlin wrote: Hi there, I have worked now for several years happily with homesite 4.5, but now it looks like I have to switch to another system as homesite will not run without admin rights on a XP machine. What editors do you use? Do you

[PHP] Re: how can I decode such a string ?

2006-06-27 Thread Al
nicolas figaro wrote: Hi, I'd like to convert a string generated by a mail client like the following one : "test nf =?ISO-8859-15?Q?=E9_123456789012?=" back to the original one "test nf é 123456789012". Is there a (simple) way to do this ? thanks N F Yes, with a regex expression -- PH

[PHP] Re: how can I decode such a string ?

2006-06-27 Thread Al
nicolas figaro wrote: Hi, I'd like to convert a string generated by a mail client like the following one : "test nf =?ISO-8859-15?Q?=E9_123456789012?=" back to the original one "test nf é 123456789012". Is there a (simple) way to do this ? thanks N F I'm short of time, but, this should

[PHP] Re: Problem using fgetcsv()

2006-07-06 Thread Al
Don wrote: Hi, I have a CSV file, comma delimited with the data enclosed by double quotes. I am using the fgetcsv() function to read and into an array and update a database. It works great except for the odd record. After investigating, I have ascertained that it is due to a backslash cha

[PHP] Re: regular expression to extract from the middle of a string

2006-07-14 Thread Al
Steve Turnbull wrote: Hey folks I don't want to "just get you to do the work", but I have so far tried in vain to achieve something... I have a string similar to the following; cn=emailadmin,ou=services,dc=domain,dc=net I want to extract whatever falls between the 'cn=' and the following comm

[PHP] Re: mb_substr()

2006-07-31 Thread Al
Utedd wrote: Hi gang: From another list, a person posted: "I want to use PHP's mb_substr() function to grab the first letter of a UTF-8 encoded word (in Czech) being pulled out of MySQL. If I use the plain substr() the data gets garbled and I get a ? symbol in the browser. My host says that

[PHP] Re: Regular Expresson for checking password strength

2006-08-04 Thread Al
James Nunnerley wrote: I want to have a regular expression that check the following criteria are met by $password: - contains at least 6 characters (any) - has at least 1 letter - has at least 1 number - other 6 characters can be anything... I'm happy to work out the structure of a postcode etc

[PHP] Re: Regular Expresson for checking password strength

2006-08-04 Thread Al
Adam Zey wrote: Al wrote: James Nunnerley wrote: I want to have a regular expression that check the following criteria are met by $password: - contains at least 6 characters (any) - has at least 1 letter - has at least 1 number - other 6 characters can be anything... I'm happy to wor

[PHP] Re: preg_match

2006-08-10 Thread Al
;+" or "{n,m}" as needed. I rarely use "dot all" [e.g., "."] it accepts everything and can make testing very difficult. Invariably, there is a combination I never thought of to test. I use explicit statements for everything that can be in my haystack [e.g., \d, \w,

[PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Al
Reinhart Viane wrote: Hey, I've been wondering. I know it's possible to make a php loop that each time generates a new . In that case the results are stored under eachother. Now I want to know if I can do the same in a horizontal direction. The result should be something like this, I loop throu

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Al
Marcus Bointon wrote: On 10 Aug 2006, at 16:39, Al wrote: s don't need to be terminated with s That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently encountered a site that containe

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Al
Marcus Bointon wrote: On 10 Aug 2006, at 16:39, Al wrote: s don't need to be terminated with s That is, assuming you don't want your pages to validate. As closing your tags is so trivially easy, it's really not worth not doing! I recently encountered a site that containe

[PHP] Re: problem with Firefox print preview?

2006-08-11 Thread Al
css validators. If you are not using css for presentation; do so. Get your code to generate W3C compliant html code. Check it with Firefox. If necessary, which is rare, you many need to check the client's browser type and send a special IE6 version of the page. Al... -- PHP Genera

Re: [PHP] SETCOOKIE

2006-08-12 Thread Al
Peter Lauri wrote: When you just use time() you tell the cookie to just live until now, so it dies directly. You have to add some seconds to determine how long the cookie will live. /Peter -Original Message- From: BBC [mailto:[EMAIL PROTECTED] Sent: Saturday, August 12, 2006 7:48 PM

[PHP] Re: Session issues

2006-08-17 Thread Al
Dave Goodchild wrote: Dave Goodchild wrote: Hi all, I am currently writing a web application that has a 3-stage form process as part of its functionality. The values passed in are placed in the session array after validation and once the user has completed and supplied all required values the r

[PHP] Re: Session issues

2006-08-18 Thread Al
Dave Goodchild wrote: Hi all, I am currently writing a web application that has a 3-stage form process as part of its functionality. The values passed in are placed in the session array after validation and once the user has completed and supplied all required values the relevant session values

[PHP] Re: Newbie question about

2006-09-10 Thread Al
Mike Borrelli wrote: Good day, While I've been using php for more than a little while now, I've never understood why the use of the "" short tag is noted "to be avoided". Or rather, I understand that there's an option to disable it, and that's why it's noted in this way, but I don't understand

[PHP] Re: storing function names in db and running them as row is output?

2006-09-20 Thread Al
blackwater dev wrote: First, the example I have is not the real situation, just an example so I don't want to get into why are you doing it like that, etc. Just want to see if it's possible. Basically, I want to store stuff in a text field in a db like this "johns name is ucfirst('john adams')

[PHP] Re: Alternative to FCKeditor

2006-09-24 Thread Al
John Taylor-Johnston wrote: Anyone know of a good alternative to FCKeditor? Or a decent file uploader? Even after paying for a little help, I get zip for FCK. I need another solution, another editor with an active forum or support, John Tell folks what to want to accomplish. -- PHP General Mai

[PHP] Re: canon jpegs

2006-10-13 Thread Al
Emil Edeholt wrote: Hi! I'm trying to make thumbnails of uploaded jpegs via GD. It works fine on most jpegs but doesn't seem to work on canon jpegs (tried both a consumer canon and one of the finer DSLRs). When I resaved the canon jpeg in my imaging application GD could handle it. Any ideas

[PHP] Re: How to recognise url in a block of text

2006-10-17 Thread Al
AYSERVE.NET wrote: Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as a link within that text. I will appreciate any help. Regards, Bunmi Show us some examples of URL substrings, with any variations, you want to handle. Most li

[PHP] Re: corrupt image when viewed using PHP

2006-10-18 Thread Al
Angelo Zanetti wrote: HI all, We have written an app in PHP4 that receives images from mobile phones that are taken with the camera, we have found a problem that some of the images are corrupt and we have determined that it is because of Nokia VGA cameras that have sent the image, basically t

[PHP] Re: Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Al
Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to the browser or, as is currently set up, store the data

Re: [PHP] Re: Creating thumbnails using Image Functions, then saving to folders

2006-10-19 Thread Al
Børge Holen wrote: On Wednesday 18 October 2006 20:55, Al wrote: Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnai

Re: [PHP] User question for PHP

2006-10-19 Thread Al
Christian Heinrich wrote: try suPHP :-) Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not "wwwrun" or "nobody"? Sounds like it could be a big security issue if not very ca

[PHP] Re: Check HTML style sheet?

2006-10-21 Thread Al
Marc Roberts wrote: Is it possible to use php to check that the .css file in the html of a web page is the correct one e.g. check if the file included in the html is new.css. I think I will have to write a regex but if anyone has any ideas (or already has a regex to do this), it would be much

[PHP] Re: CSS / PHP / Javascript

2006-11-15 Thread Al
Ed Lazor wrote: I'm reading a book on CSS and how you can define different style sheets for different visitors. I'm wondering how you guys do it. The book recommends using Javascript functions for identifying the user's browser and matching them with the corresponding style sheets. Anyone us

[PHP] Re: regular expressions

2006-11-19 Thread Al
Get "Sams, Teach yourself Regular Expressions" It's a great little, simple book. Then get the Regex Coach. Google to find it. It's free, works great and is super for learning regex Børge Holen wrote: Ok I seem to need to learn regular expressions more than anything. this is what im workin

[PHP] Newsgroup connect time has become very long

2006-12-05 Thread Al
Anyone having problems connecting the last few days? Or, is there something wrong on my end. Al other sites are working just fine. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newsgroup connect time has become very long

2006-12-05 Thread Al
Anyone having problems connecting the last few days? Or, is there something wrong on my end. All other sites are working just fine. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: firefox only problem

2006-12-06 Thread Al
First thing to do is to make your code W3C compliant. Both the html and css validators identify errors. Ross wrote: This is the head of my doc. It is supposed to change the page height based on the selection from the menu. It works in IE and validates ok but it is no go in firefox. Any ideas??

[PHP] Re: firefox only problem

2006-12-06 Thread Al
First thing to do is to make your code W3C compliant. Both the html and css validators identify errors. Ross wrote: This is the head of my doc. It is supposed to change the page height based on the selection from the menu. It works in IE and validates ok but it is no go in firefox. Any ideas??

[PHP] How can I tell if an output stream is finished?

2006-03-05 Thread Al
I have a page that resizes an image to be included in a html page, using: echo "\n"; unlink($rel_mapfile); I need the other html stuff on the page so I need to fetch a file from the server to include in the page. So, I resized the image and saved it as a file. That works fine. After sending

Re: [PHP] How can I tell if an output stream is finished?

2006-03-05 Thread Al
verhead on a per-page basis, just once per session and keeps the disk storage clean. Just some sugestions, I hope they help. Satyam - Original Message - From: "Al" <[EMAIL PROTECTED]> To: Sent: Sunday, March 05, 2006 9:17 PM Subject: [PHP] How can I tell if an output stre

[PHP] Re: Converting HTML to BBCode

2006-03-06 Thread Al
Here is an example for you. First make an array like this: $translate_array= array( ' & ' => ' & ', '"&"' => '"&"', 'W&OD' => 'W&OD', '&O'=> '&O', 'M&F' => 'M&F', ); Then use: $find_array= array_keys($translate_array); $replace_array= array_values($translate_array)

[PHP] Re: Is this possible with php

2006-03-06 Thread Al
Mace Eliason wrote: Hi, I really don't think this is possible from what I know of php, but I thought I would as the experts. Is it possible to have php create directories and move files on a local machine. I have create

[PHP] Re: Incremental Date Based ID

2006-03-07 Thread Al
Kevin Murphy wrote: I'm trying to set up an ID field that works like this for news articles that are posted to a website. 2006-03-05a 2006-03-05b I know how to generate the date, and I am pretty sure I can generate the letter code based on counting the number of rows and then assigning the n

[PHP] GD2 gif resizing problem

2006-03-15 Thread Al
I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as large. $src

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double,

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
John Nichel wrote: Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
Jochem Maas wrote: Al wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file siz

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
ile a jgp, from the same GD image canvas. I then compressed the results in 5% "Quality" steps until the filesize is below a preset value. Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
John Nichel wrote: tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support w

[PHP] Re: Updating a single line in a file

2006-03-19 Thread Al
For small DBs and where I don't expect very heavy traffic, I simply put everything in an array, where the keys are unique. Arrays are quite easy to work with for your type of application Here is a snip I wrote recently function write_data_file($courses_array){ $file_str

[PHP] Re: imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Al
You didn't say, but, I assume that ordinary users will not be uploading to your web hotel. Thus To cope with the file size you must preprocess your images in an image editor, [e.g., PhotoShop, PaintShop Pro, etc.]. Enhance and compress as necessary. In general, it is best to use an image ed

[PHP] Re: test for illegal characters and consequences

2006-04-04 Thread Al
Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and test each textfiel

[PHP] Re: int to string

2006-04-05 Thread Al
Tanner Postert wrote: I don't think it's built in, so I was wondering ya'll would recommend as the best way to convert int to string, not basic type casting, but converting to the english word the int represents. Something like this: 5 = "Five" or 20 = "Twenty" What is your number range? 1..

[PHP] Re: Color matching magic?

2006-04-06 Thread Al
Ashley M. Kirchner wrote: I'm trying to figure out if there's a tool that can do this (programmatically) or if someone has some script idea/suggestion for what I'd like to do. I have several 130px X 130px images (one per day) that I collect. I'd like to have a script run that will read i

[PHP] Re: Omit warnings per script?

2006-04-06 Thread Al
Brian Dunning wrote: Is there a way to get PHP to not throw warnings on a per-script basis? Why not just fix the code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread Al
Alan Schneider wrote: What is the best way to pass variable values from one php file to another thanks Alan $_GET is the simplest if: The size of the variables is small, there aren't too many and whether you care if users see it. -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: Include Problem

2006-04-15 Thread Al
Check the file's permissions with your ftp utility Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include("/cms/templates/footer.php"); However I get the following error: Warning: main(/

Re: [PHP] PDF to Text

2006-04-21 Thread Al
Jay Blanchard wrote: [snip] I am trying to find a way for a program to search through the text on a PDF. My first thought was to use pdftotext, but the PDFs generated by our commercial scanner/copier/printer machine do not seem to work with pdftotext... it just outputs two CRLFs. I've been

Re: [PHP] Session Array Disappears

2006-04-24 Thread Al
add a ignore_user_abort(TRUE) first thing in your code. Webmaster wrote: Thanks for the reply. Sorry, that was a typo in the email. I actually do have session_start(); at the beginning of the scripts. My bad. Thanks, R Brady Mitchell wrote: You're missing the session_start() call at the

Re: [PHP] Session Array Disappears

2006-04-25 Thread Al
lost because the array did not exist. I'm confused how it could stop executing the middle of the script (step 4a and 5 below) but yet execute the end of the script (the final step in the code below)? I was first made aware of this issue because of the email, so I think the end of the script is ex

[PHP] Re: Imagemagick Displaying Images

2006-05-03 Thread Al
Ray Hauge wrote: I have an application that shows thumnails of PDF files in different directories. I have so far decided that I can use "convert" from imagemagick to get a .jpg, .png, .gif, etc. to display as the image. The problem I'm running into is that I don't want to save these thumbnail

Re: [PHP] Re: Imagemagick Displaying Images

2006-05-04 Thread Al
Richard Lynch wrote: Ray Hauge wrote: convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] - The '-' makes it display the contents of the image to stdout. I want to caputre that binary data and somehow display the images inline with the website. Is this possible, or am I living in a dream

[PHP] Re: preg_replace_callback

2006-05-04 Thread Al
tJey wrote: Hi. I have problem with preg_replace_callback. It seems that my pattern is bad, but I can't find any error. Pattern : \[\s*((\d|\w|_)+)\s*\] this pattern is intended to find strings like "[field]", "[ fi12_eld]"... but every time I get warning message "Warning: preg_replace_callbac

[PHP] heredoc question

2006-05-05 Thread Al
How can I include "place holders" for variables in a heredoc such that after the heredoc is declared, I can assign the variables? I have a config file with a heredoc string declared. I'd like to keep the include config.inc at the top of my page. Down in the page, when I call the heredoc varia

Re: [PHP] heredoc question

2006-05-05 Thread Al
Robert Cummings wrote: On Fri, 2006-05-05 at 10:40, Al wrote: How can I include "place holders" for variables in a heredoc such that after the heredoc is declared, I can assign the variables? I have a config file with a heredoc string declared. I'd like to keep the include co

[PHP] Re: Generating thumbnails from tiff images

2006-05-23 Thread Al
mbneto wrote: Hi, I am looking for sample code/class that can generate a thumbnail (can be a png/jpeg) image from a tiff image. So far I've only found examples using png/jpg/gif as input. Any tips? ImageMagick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Re: parsing/replacing for special MS Word characters

2006-05-24 Thread Al
I Dan McCullough wrote: I have a friend who I wrote some very simple publishing software, basically he takes his writtings and puts them online. Well his writtings are in Word and so he has alot of special characters that he inputs, some unknowingly, into the database. Are there any classes or

[PHP] Re: Serialize

2006-05-26 Thread Al
[EMAIL PROTECTED] wrote: Hi, Is a serialized array a "safe" string to insert into a mysql text field? Or is a function such as mysql_real_escape_string always needed? regards Simon Seems like you can use mySQL bloob fields and serialize -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: Discussion of method -- config files

2008-06-20 Thread Al
I freely use defined constants for all fixed variables in my config file. It insures they cannot be inadvertently reassigned by a function someplace and are available everywhere. define('MYSQL_HOST',"localhost"); tedd wrote: Hi gang: More of a question of method rather than of "right" or "w

Re: [PHP] Re: Discussion of method -- config files

2008-06-20 Thread Al
'emailCellSettings.db' => 'EMAIL_CELL_SETTINGS_FILE', ); foreach($reqdApplicFilesArray as $file => $defineContant) {define($defineContant, $file);} Robert Cummings wrote: On Fri, 2008-06-20 at 08:07 -0400, Al wrote: I freely use defined constants for all fixed variables in my config

Re: [PHP] Re: Discussion of method -- config files

2008-06-20 Thread Al
$reqdApplicFilesArray is not a global array [as in $GLOBALS]; it's simply a convenient way to list the variables I want to be globally available. The simple foreach defines them. Robert Cummings wrote: On Fri, 2008-06-20 at 11:32 -0400, Al wrote: Not so Robert, here's how I typica

[PHP] Re: How to check if $string contains Hebrew characters?

2008-06-25 Thread Al
PEAR Text_LanguageDetect Nitsan Bin-Nun wrote: Hi, I have a $string and i want to know if it contains Hebrew characters in it, I wrote the following: function containHebrewChars ($string) { $chars = "×�×‘×’×“×”×•×–×—×˜×™×›×œ×ž× ×¡×¢×¤×¦×§×¨×©×ª"; // ABC of hebrew chars (AlefBet) $chars = pre

[PHP] Re: FIFO files on PHP?

2008-07-01 Thread Al
Why not simply maintain an array as a file. $fifoArray= unserialize(file_get_contents($fifoFile)); $oldValue= array_pop($fifoArray);//To pop off old value array_unshift($fifoArray, $newValue);//To push in new value $fifoStr= serialize($fifoArray); file_put_contents($fifoArray, $fifoStr, LOCK_

Re: [PHP] Need help with regular expression

2008-07-10 Thread Al
Your description of the problem is confusing. Do you simply want to delete a table row if it contains a variable, e.g., $var='bigfoto' and append "==REPLACEMENT==" ? Where $var can be anything you assign. Maxim Antonov wrote: Hello. But I need no td and tr inside regular expression It is a

[PHP] Re: very very small CMS

2008-07-18 Thread Al
gs can be connected with an underscore or a dash. [e.g. or ]" That's the good news. Bad news is that I'm doing a major redesign and it won't be ready for about a 3 or 4 weeks. If you can wait till then, just ask. Al. OOzy Pal wrote: Hello I am looking for a simple p

[PHP] Re: [HTML MAIL FORM] - Body text not coming through

2008-07-20 Thread Al
Consider using PEAR Mail_Mime or Mail_mimePart. Works well and is easy to use. TS wrote: Can someone spot what I'm doing wrong here? Must have something to do with headers maybe? The attached picture comes through but, no text. Here's the headers that do come through. Thanks for any help. Mail

[PHP] Re: Code beautifier

2008-07-24 Thread Al
The one bundled with phpEdit works great. They seem to offer it as a stand alone also. http://www.waterproof.fr/products/phpCodeBeautifier/download.php Richard Heyes wrote: Anyone know of an unintrusive code beautifier written specifically with in mind? Thanks. -- PHP General Mailing List

[PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-02 Thread Al
Here' the snippet I use on all my code files. Default is create and add to error log file on the current dir. I generally echo $error_reporting to remind myself that the error reporting is active. if(true) // TRUE for debug only { ini_set("display_errors", "on"); //use off if users

[PHP] Re: remembering where the user is on the page??

2008-08-02 Thread Al
I've never tried it for this type of application; but, html Map may be a neat approach since you won't need JS or any special client-side code, just plain old html. Rod Clay wrote: I'm creating a website in php and I've noticed that many websites seem to "remember where the user is on the page,

[PHP] Re: News reader

2008-08-10 Thread Al
Alain Roger wrote: Hi, i tried to configure Thunderbird to read and post news on PHP.net forums. I'm able to read messages but not to post some. Does anyone already succeed in it ? Do to security reasons at work, personal email usage is strictly forbidden now so i'm not able to use gmail, yah

Re: [PHP] Re: News reader

2008-08-10 Thread Al
g message fails everytime. even if my SMTP server is well configured :-( On Sun, Aug 10, 2008 at 8:33 PM, Al <[EMAIL PROTECTED]> wrote: Alain Roger wrote: Hi, i tried to configure Thunderbird to read and post news on PHP.net forums. I'm able to read messages but not to post some. D

[PHP] Re: Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Al
Run your pattern thru preg_quote() prior to using it in your preg_replace(). Don't backslash anything yourself, let preg_quote() do it. Cameron B. Prince wrote: Hello, I¹ve run into a problem with a regex and need help determining if this is my mistake or a bug. The regex is for inserting a SI

[PHP] Re: Which Exception to use ....

2008-08-22 Thread Al
Jochem Maas wrote: here is a list of built in Exception classes, I'd figured I'd start using them, and save on rolling my own: Exception ErrorException DOMException LogicException BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException OutOfRan

[PHP] Re: Debugging PHP scripts

2008-08-29 Thread Al
Edward Diener wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and t

[PHP] Re: Shared memory, mutex functionality and spawning threads. Is it possible using PHP?

2008-09-01 Thread Al
Kent Larsson wrote: Hi, Is it possible to have shared memory in the form of shared global variables in PHP? Or any other form of shared memory? And if that is the case, is there any form of mutex functionality which may be used to assure syncronized access to this memory? My next question is

[PHP] Re: Sending out mass emails

2008-09-04 Thread Al
Pear has exactly what you need. class Mail_Queue Angelo Zanetti wrote: Hi all, We would like to send out mass emails for some of our clients, these are HTML email and text alternative for the email clients that cant read those HTML emails. We have developed some scripts to send the emails usi

[PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Al
Tom Chubb wrote: I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every contact form on sites I've d

[PHP] Re: Email Verification

2008-09-17 Thread Al
Tom Chubb wrote: Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for the end user, what are the bes

[PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Al
What's the complete row? e.g., charge100 Or, are there other cells in the row? Shiplu wrote: The string is "charge100". I want and array( "charge"=>100). I am using this regular expression, '/([^<]+)<\/td>(?P<\1>\d+)<\/td>/'. But its not working.. I get this error., PHP Warning: preg_matc

[PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Al
Shiplu wrote: The string is "charge100". I want and array( "charge"=>100). I am using this regular expression, '/([^<]+)<\/td>(?P<\1>\d+)<\/td>/'. But its not working.. I get this error., PHP Warning: preg_match(): Compilation failed: syntax error after (?P at offset 25 in E:\src\php\WebEng

[PHP] Re: problem with slash / characters

2008-10-01 Thread Al
Tanner Postert wrote: ignore previous. sorry. I'm trying to display values from a database, the values come from the database like this: [0] => Array ( [id] => 5 [order_id] => 10 [key] => ship_to_name [value] => John Anderson ) [1] => Array ( [id] => 6 [order_id] => 10 [k

[PHP] Re: how to implement search on site

2008-11-14 Thread Al
Jignesh Thummar wrote: I have site of around 25 pages (pure HTML pages). I want to implement search functionality? How can I? i want to avoid database. And Apache Lucene, i dont't want to use it. Does any PHP framework provide search and indexing functionality (Exception Zend_Lucene)? Thanks,

[PHP] Re: content management

2004-01-26 Thread Al
is translatable) ? - -- This is one of the most frequently asked questions about the LAMP platform. A fantastic site that offers a comparison of all the different open source CMS systems out there and lets you test drive them all is http://www.opensourcecms.com/ . I highly recommend it. Hope it hel

[PHP] Re: content management

2004-01-26 Thread Al
"Justin French" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday, January 27, 2004, at 04:23 PM, Al wrote: > > > This is one of the most frequently asked questions about the LAMP > > platform. > > A fantastic site that offer

[PHP] Re: PHP EDITORS

2004-01-28 Thread Al
Great and it's free. http://phpedit.net John Jensen wrote: Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or Free) Php Editor is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] New Line code question \r\n etc.

2004-02-13 Thread Al
I've got a php application running on a Unix system and need some help with the new line code. The application reads and saves text in a file from a browser textarea. Also, the text file is occassionally opened and edited via ftp and a regular plain text editor. It appears the new line code i

[PHP] Another preg question

2004-02-13 Thread Al
I'm trying to clean up newline code received from a browser textarea. First, I'm normalizing the newline codes to Unix with: $text= preg_replace("/(\r\n|\r)/", "\n", $text); //this seems to work OK Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= p

Re: [PHP] Another preg question

2004-02-13 Thread Al
Didn't work. I'm beginning to think the problem is more involved. I am going to break out just the essentials of the code that is involved and debug just it. Thanks Matt Matijevich wrote: Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace("/\n\n+/", "\n\n",

<    1   2   3   4   5   6   7   8   >