Dear Sir/Madam
Please unsubscribe Angus Mann angusm...@pobox.com from your database. My
husband passed away 6 May 2010.
Thank you
Sonya Mann
- Original Message -
From: "tedd"
To:
Sent: Monday, May 31, 2010 12:20 AM
Subject: Re: [PHP] Convert UTF-8 to PHP defines
A
We're building a large site for a school district, to be used by both
students and parents. When a student logs in, they gain some access to
the
site, and when a parent logs in, they gain access to other sections on the
site. That's all fine and dandy, it's the actual registration process
tha
- Original Message -
From: "Angus Mann"
To: "php-general"
Sent: Monday, April 26, 2010 2:46 PM
Subject: [PHP] FPDF passing values into header and footer?
Hi all. Whilst this question relates to fpdf (www.fpdf.org) I think it
really is a PHP question, because
Hi all. Whilst this question relates to fpdf (www.fpdf.org) I think it really
is a PHP question, because it involves passing values into classes and
functions.
Here's the problem .. I need to pass a PHP variable like $number into the
header of a PDF.
I have extended the FPDF class as follows..
HI all. I'm looking for a recommendation for an online PHP editor.
Here's what I mean
I mean a PHP program I can install on my web-server, then log in and use it to
browse and edit other PHP files on the server.
The idea is that I could make changes and bugfixes to a web app while I'm away
Oh No !
Not again !
Please !!
This was the subject of a very long and heated discussion a while ago.
No - it does not support multi threading.
- Original Message -
From: "ttplayer"
To: "php-general"
Sent: Sunday, April 18, 2010 11:17 PM
Subject: [PHP] Does PHP support multi-th
Hi all. I know this is not strictly a PHP question but the code will be written
in PHP, and I figure the folks here will be well versed in the questions I
raise. Please feel free to contact me off the list if appropriate.
I need some assistance with database design for a project I'm coding in PH
This thread's getting a bit tired but here's my $0.02 worth.
I've always found the phpclasses website a bit confusing to navigate and
I've never had much success finding what I want. But it's free and as a
non-paying customer I don't feel entitled to complain, when probably a bit
more work fro
Grrr...please ignore.
After battling with this for a while I now can't reproduce the problem.
Apologies for an un-necessary post.
- Original Message -
From: "Angus Mann"
To: "PHP-General"
Sent: Wednesday, January 27, 2010 9:02 AM
Subject: [PHP] Strange be
Hi all. I found some unexpected behaviour with str_ireplace.
To summarize, if the $replace term is a number, but formatted as currency with
trailing zero's (34.50) the function drops the trailing zero.
Example :
$price=34.5;
$message="You owe me #amount#.";
$message1 = str_ireplace("#amount#,sp
Hi all.
I'm currently using the phpmailer class from phpmailer.worxware.com to send
datatbase -populated emails to clients.
At the moment I'm runninng PHP on Windows and using the built-in sendmail
equivalent packaged with XAMPP. It uses a remote SMTP that authenticates by
prior logging into a
- Original Message -
From: "John Taylor-Johnston"
To: "PHP-General"
Sent: Tuesday, January 26, 2010 12:36 PM
Subject: [PHP] If the first four characters are "", then do {}
I am reading the manual: http://ca.php.net/manual/en/ref.strings.php
$mydata->restored = "-00-00";
How
- Original Message -
From:
To: "PHP-General"
Sent: Tuesday, January 26, 2010 11:00 AM
Subject: [PHP] Creating an Entire .html page with PHP
Hi Folks,
I would like to create an entire .html page gathered from database
content mixed with html etc. and be able to save the page...
l
There are only 11 types of people in this world. Those that think binary
jokes are funny, those that don't, and those that don't know binary.
ErUmmm.shouldn't that read "...only 10 types of people..." ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
Hi all. Perhaps a lazy request, but does anybody have some cut-n-paste code to
calculate a Luhn check-digit?
It's a check-digit often added to the end of things like credit card or account
numbers to make detecting typo's a bit easier.
I found lots of code to validate a number once the check-di
I wrote a little AJAX gadget which sent the string typed to a PHP backend
which parsed it using strtotime and then formatting it out again as
something unamiguous (like 2 January 2009). Then every time the date entry
field is changed by the user (with an onKeyUp event), this AJAX call is
trigge
Hi all. I need to allow users to enter dates and times, and for a while now
I've been forcing them to use javascript date/time pickers so I can be
absolutely sure the formatting is correct.
Some users are requesting to be able to type the entries themselves so I've
decided to allow this.
I'm i
Why can't you put the update on the same LAN server that the app resides?
If that is not possible, what about using CURL, and update if it can connect
successfully, but don't if it cannot?
Thanks,
Ash
http://www.ashleysheridan.co.uk
Since the LAN is remote (many hundred
Hi all.
I'w writing a PHP app that is designed to run over a LAN, so internet
connection for the server is not really essential. Some users may
deliberately not connect it to the internet as a security precaution.
But I'd like the app to make use of an internet connection if it exists to
che
same as everywhere else in your apps.. ajax is no different in any way
at all, not even slightly. as far as PHP and web server is concerned
it's just a plain old request same as any other; thus..
if( !$_SESSION['is_logged_in'] ) {
exit();
}
// do stuff
Thanks for that. Sometimes the solution
Hi all.
A question about PHP sessions and their interaction with AJAX.
I have a database containing sensitive information and users need to log in to
my PHP script and be authenticated before they are granted access.
For one of the forms I would like to retrieve information using AJAX, and some
1. Is possible. Google the term web-bug. Be prepared that it will only work
if the recipient has a HTML enabled email reader AND allows downloading of
images. Be prepared also that every time the email (including forwarded
emails) are viewed your server gets a hit. Might equal alot of hits. Just
Here's part of the confusion:
If you were to express the number of microseconds since 1970 in a
decimal number, it would indeed take 16 digits.
But uniqid() returns a /13 character string/, not a 13 digit number. The
string is actually a hexadecimal number (and thus can express a greater
range o
Original Message -
From: Ashley Sheridan
To: Angus Mann
Cc: php-general@lists.php.net
Sent: Friday, November 13, 2009 8:31 AM
Subject: Re: [PHP] uniqid() and repetition of numbers generated
On Fri, 2009-11-13 at 08:22 +1000, Angus Mann wrote:
Hi all. I'm sure I can
Hi all. I'm sure I can't be the first person to ask this question but a search
of the net leaves me confused.
I need a unique identifier in an SQL table and for complicated reasons I don't
want to use auto-increment.
So I thought I would use a pseudo-random method instead. I am NOT scared of
p
Yep, you were right. When I look, now I see that the permissions for the
file are different to locally created files.
Thanks for that !
Yeah, definitely sounds like a permissions issue.
I'm not much of a windows admin, but this looks like it might help:
http://www.mydigitallife.info/2007
Hi all. I'm not sure if this is really a PHP question or specific to XAMPP,
or windows in general...
I have XAMPP including PHP 4.29 running on a Vista machine.
When I use a form to upload a file, using $_FILES['uploadedfile']['name']
and move_uploaded-file($_FILES['uploadedfile']['name'], $ta
Your code does not make sense (to me anyway).
It flags an error because you are sending HTML before the header command. Don't
bother looking for whitespace etc...the etc is more than
enough to produce this error.
Using "Location" redirects to another URL. It does not make sense to redirect
in
Dan Brown is a frequent poster here and developer on the PHP team.
Dan has not posted to the PHP list for quite a while and is not responding to
my emails directly to him.
Does anyone know if he's OK?
If anyone has knowledge can they please reply to me directly - off list.
Thanks,
Angus
Hi all. I monitor this list and occasionally contribute as an amateur so
please forgive a question that might seem terribly obvious to those in the
know.
I'm confused about all this PHP 6 talk. Until now I thought I was right up
there, because I worked with PHP 5.29 and was ready to upgrade to 5.
Hi all. I realize this question has been asked before and I've found responses
in the archive, but none of the links work now, or the files they point to are
old or unsuitable.
I'd like to print the most recent PHP manual to paper, so I need it in a format
that's suitable. I've downloaded it fr
??? Huh ???
- Original Message -
From: "דניאל דנון"
To: "PHP General List"
Sent: Sunday, June 07, 2009 8:11 PM
Subject: [PHP] alpha/beta/gamma TO $var['alpha']['beta'] = 'gamma'
I have encountered a problem when trying to turn
--
Use ROT26 for best security
--
PHP General Ma
Hi all.
I'm working on a PHP project for my own personal business use. It will
handle billing and invoices as well as payments and time management,
bookings, appointments and a few more. I may add things like personal
messaging between the various users and a customer login to check on the
pr
Thanks to all posters for their input.
For what it's worth, I'm writing a PHP application for a very specific
purpose of running my office billing etc so I have total control over the
JavaScript settings for users. The entire application would break without JS
so if they turn JS off, all they
Hi all. I realize this is more an HTML question than PHP but I'm sure someone
here can help.
I have several forms with lots (dozens) of text inputs. If the user presses the
"Update" button I want the form handled by "update.php" but if they press
"Delete" it needs to be handled by "delete.php"
but for
my purpose that's a pain is the ***.
IE returns the text displayed in the button regardless of the "btid" value.
It seems to just ignore it.
Firefox returns the value assigned to "btid" as I intended regardless of the
text in the button that the user sees.
Hi all.
I want to have several delete buttons with just one form, and depending on
which button is pressed, one of several items is deleted.
So I need multiple submit buttons for 1 form, each displaying the same text
"Delete" to the user, but each with a different "value" so the PHP script can
Thanks Ashley...that did the trick.
After reading about the limitations of strip_tags I decided to just replace
the bad bits as below...
It still uses your "foreach" suggestion but replaces "<" and ">" with "("
and ")" instead of stripping tags.
I think I will extend the good and bad arrays to
Hi all.
I'm writing a script that accepts several different forms with different
content. Depending on what data is sent with the form the script will do one or
the other think.
Before the form data is processed I'd like to scrub it of HTML tags.
I can do this manually as below but the form ma
Hi all, I'm fairly new to PHP so I don't have too many bad habits yet.
I'm keen to make my code easy to read for me in the future, and for others
as well.
Are there any rules or advice I can use for formatting (especially
indenting) code?
for example how best to format / indent this ?
if (
At 11:54 1/02/2001 -0800, Terrence Chay wrote:
> We should be prudent when discussing how much we charge for programming.
>I'm no lawyer but I believe it's okay to discuss hypotheticals, histories,
>and such, but remember that discussing wage rates may run against anti-trust
>regulation as evi
At 22:35 18/01/01 -0800, Rasmus Lerdorf wrote:
>You would need to go through a web server for it to work.
I seem to recall seeing something on the Zend site a while back about a
"compiler" for PHP that was in the pipeline. After the store was launched I
can't find anything. Am I imagining thin
At 11:25 20/01/01 -0700, Mike Yuen wrote:
>I realize my slashes are most likely in the wrong spot and i'm new to this
>PHP stuff so a little help would be appreciated. I get a parse error
>
>print "/">Click Here";
You've got the wrong type of slashes - use backslashes within the string -
e.g. p
At 13:48 18/01/01 +, jalist wrote:
>I'm trying to grab a string from within a string based on a matching word or
>phrase. Example...
>
>$string = "This is a string I need to grab the middle out of"
>$query_word = "need"
>
>I need to get x amount of characters either side of $query_word, so the
At 23:10 17/01/01 -0500, andrew wrote:
>How can I pass an anchor tag attribute to a page?
>e.g. If I want to echo "1" on page_two:
>
>
>page_one.php contains:
>
> click
All you're doing there is setting the variable id to "1". You're not even
printing it.
>page_two.php contains:
>
>
>
>but page
At 21:24 17/01/01 -0500, Shane McBride wrote:
>I have spent a lot of time working on a specific E-Commerce
>(shopping-cart) to fill a need for a customer. Now that the project is
>complete, I would like to market the product, which is entirely PHP and MySQL.
>
>My question is: Is it ethical to s
At 23:24 16/01/01 -0800, Erick Papadakis wrote:
>hi,
>
>in php, how can i generate a random no. but between
>two numbers? for example, i need to generate any
>integer, randomly, between 1 and 1000.
Check out the manual entry for mt_rand.
(http://www.php.net/manual/en/function.mt-rand.php) e.g. y
At 17:55 15/01/01 +0500, Vikram Vaswani wrote:
>Hi!
>
>Can someone help me out with a regex to validate a phone number?
We'd need to know what format of telephone numbers you're looking to
validate, first.
Angus.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
48 matches
Mail list logo