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
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
, 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,
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
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
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
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; "()
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";
}
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
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
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
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
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
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
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
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
;+" 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,
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
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
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
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
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
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
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
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
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')
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
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
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
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
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
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
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
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
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
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
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
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
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??
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??
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
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
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)
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
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
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
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,
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
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
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
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
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
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
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
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..
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
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
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
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(/
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
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
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
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
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
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
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
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
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
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
[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
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
'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
$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
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
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_
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
"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
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
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
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
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",
501 - 600 of 761 matches
Mail list logo