On 01/11/06, Mel [EMAIL PROTECTED] wrote:
Here is the code for a testing page: http://www.squareinch.net/
client_testing.php?art=btw_logo.jpg
I am sure it is a mess since it is my first!!!
[]
include(http://www.squareinch.net/include/misc.inc;);
Don't do that - publishing your
On 01/11/06, Mel [EMAIL PROTECTED] wrote:
Thank you so much.
Yes, I was afraid of putting my passwords...
I can move the include file outside the directory, but what do you
mean by include the file directly
Please respond to the list
What I meant was to do this:
On 30/10/06, Robert Cummings [EMAIL PROTECTED] wrote:
On Mon, 2006-10-30 at 12:28 +0100, Robin Vickery wrote:
On 30/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote:
On Fri, October 27, 2006 4:53 pm, Børge Holen wrote
On 30/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote:
On Fri, October 27, 2006 4:53 pm, Børge Holen wrote:
On Friday 27 October 2006 19:34, Richard Lynch wrote:
And the header(Location: ...) requires a full URL.
No it doesn't. but
On 18/10/06, AYSERVE.NET [EMAIL PROTECTED] wrote:
Hello Guys,
I thought I was home and dry when the program worked fine on my windows
but when I ran from my Linus server, I keep getting a url like:
http://www.website.com/pdf/ED1.pdf%A0 instead of
http://www.website.com/pdf/ED1.pdf.
I'd look at
On 19/10/06, Bagus Nugroho [EMAIL PROTECTED] wrote:
Hi All,
If we have variable like :
$var1 = 'abcde 12';
$var2 = 'abcdefghi 34';
$var3 = 'abc 20 def';
Then we want output like :
$var1 = 'abcde';
$var2 = 'abcdefghi';
$var3 = 'abc def';
$re = '/^\s+|\d+\s*|\s*\d+\s*$/';
$var1 =
On 18/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
On Tue, 17 Oct 2006 17:26:42 +0100, Robin Vickery wrote:
On 17/10/06, Al [EMAIL PROTECTED] wrote:
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
On 17/10/06, Al [EMAIL PROTECTED] wrote:
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
On 03/10/06, David Robley [EMAIL PROTECTED] wrote:
Michelle Konzack wrote:
Am 2006-09-27 17:39:25, schrieb David Robley:
88 tons!! Point us to an image of that please.
Currently not availlable but it is an ex Pershing II Transporter
from the US-Army manufactured by the german Enterprise
On 24/09/06, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote:
Hi everyone
I have array of numbers and I want to get out of it a list of numbers
that if I sum them it will be 100, here is my list (for example ) :
$list = array(10,20,10,10,30,50,33,110,381,338,20,11,200,100);
I want the result to be
On 10/08/06, Chris W. Parker [EMAIL PROTECTED] wrote:
Jonathan Duncan mailto:[EMAIL PROTECTED]
on Wednesday, August 09, 2006 3:55 PM said:
If you want to really learn Linux, try Gentoo. If you just want a
very good and easy to use Linux, go with SuSE.
To keep this related to the
On 04/08/06, Dave M G [EMAIL PROTECTED] wrote:
It seemed that the main difference was that preg_replace required
forward slashes around the regular expression, like so:
preg_replace(/!DOCTYPE(.*)ul/, , $htmlPage);
It requires delimiters - slashes are conventional, but other
characters can be
On 02/08/06, Jochem Maas [EMAIL PROTECTED] wrote:
Russell Jones wrote:
In real life terms, if you walked into the store and saw that the cash
register was slightly broken and slightly opened, and reached in and pulled
out a dollar to show the cashier what was wrong, you would not get in
On 31/07/06, Jon Anderson [EMAIL PROTECTED] wrote:
Jay Blanchard wrote:
Yes, but that shouldn't matter. The algorithms for RSA, AES, etc, etc
are all publicly available, why bother hiding their JavaScript
implementations? Only the data would be encrypted.
[/snip]
So, you're suggesting that
On 28/06/06, tedd [EMAIL PROTECTED] wrote:
At 2:30 PM -0400 6/27/06, Kristen G. Thorson wrote:
http://www.php.net/manual/en/language.operators.bitwise.php
I wonder why that's true for php when it's common to use ^ in many other
languages
for powers?
Perl: ^ is the bitwise xor operator
On 28/06/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Huh.. thanks for the illustration Robin. Can't say that I did much with
exponents when I've played around with perl or python or C.. and never worked
with Java. You've expanded my view.
Ok, now what languages DO use ^ for exponents?
On 06/06/06, Rob W. [EMAIL PROTECTED] wrote:
Say I have a variable setting an ip address of 192.168.100.0
I want to be able to remove the last to chr's of that variable ie: .0
What would be my best solution to do that?
Remove the last two characters of a string?
$shorterString =
On 01/06/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I do work on following regex:
^(.*)_a[0-9](.*).htm$
This should be valid for test_a9393.htm, but not for 9393.htm as
ther is no leading _a infront of the number.
Unfortunatelly this also works for the 9393.htm file. Can somebody give
me a
On 26/05/06, Dave M G [EMAIL PROTECTED] wrote:
I also tried str_replace(), but predictably that did not help. As far as
I understand it, it does not accept arrays.
It does, and you can do it with str_replace.
What am I doing wrong in the above code?
And can the two preg_replace() commands
On 24/05/06, Mark Sargent [EMAIL PROTECTED] wrote:
Hi All,
this code,
?php
$flavour[] = blue raspberry;
$flavour[] = root beer;
$flavour[] = pineapple;
sort($flavour);
print_r($flavour);
echo br;
echo My favourite flavours are:br;
foreach ($flavour as $currentValue) {
//these
On 24/05/06, [EMAIL PROTECTED] [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?
No, it's not at all a safe string to insert into a mysql text field.
mysql_real_escap_string() is
On 17/05/06, René Fournier [EMAIL PROTECTED] wrote:
Looking for suggestions on the most compute-efficient way to search
variable-length strings (~200 characters) for the occurrence of one
of about 100 possible needles. In other words:
$needles = array ( 1 = Hello Jim , 2 = Yellow Banana ,
On 14/05/06, Gonzalo Monzón [EMAIL PROTECTED] wrote:
Satyam escribió:
Of course, another possibility is that the author does not know how to
handle multidimensional arrays (just to say it before anyone else
points an obvious alternative)
I don't think the author does not know how to handle
On 11/05/06, Jochem Maas [EMAIL PROTECTED] wrote:
Ginger Cheng wrote:
Hello, PHP gurus,
I have a command that I want to run using system function. The
command exploits temporary named pipes in the place of temporary files.
my command is
paste (cut -f1 file1) (cut -f2
On 03/05/06, Ezra Nugroho [EMAIL PROTECTED] wrote:
PHP experts everywhere,
Does anyone know of any tools to test the sanity of your php code?
If you were to check the sanity of your code, what would you look for?
Hidden messages encoded in the whitespace.
-robin
--
PHP General Mailing
On 02/05/06, Oz [EMAIL PROTECTED] wrote:
Hi,
My script dies with the following line (after a few hours running without other
errors/warnings/notices):
Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297
Is there any documentation for pcntl_fork(): Error 11?
Does anybody know
On 27/04/06, tedd [EMAIL PROTECTED] wrote:
On Wed, 2006-04-26 at 16:57, Robert Cummings wrote:
On Wed, 2006-04-26 at 16:51, tedd wrote:
Hi gang:
I posted the following question to the MySQL list, but the only
answer I received thus far was a php solution (it didn't work for
On 19/04/06, Matt Todd [EMAIL PROTECTED] wrote:
I know that PHP is a functional language, and secondly, an OO
language, but I think that you can blend these things better and have
the OO brought to the forefront a bit more.
PHP is not a functional language, it's an imperative language.
On 20/04/06, Ben Liu [EMAIL PROTECTED] wrote:
Hello All,
I'm using a single development server to host multiple client
projects, many of which require session management. I've noticed that
sometimes when I test these various web apps (which are simply in
separate sub directories) I get
On 18/04/06, Ross [EMAIL PROTECTED] wrote:
$query1= select * from $table_name WHERE sname LIKE '$search_string%' ;
if ($area=a) {
$query1 .= AND area='a';
}
else {
$query1 .=AND area='$area';
}
Firstly, you're assigning a to area rather than testing whether
$area is a. You need a
On 09/04/06, Winfried Meining [EMAIL PROTECTED] wrote:
Hi,
I am writing on a script that parses a PHP script and finds all function calls
to check, if these functions exist. To do this, I needed a function that would
strip out all text, which is enclosed in apostrophes or quotation marks.
On 10/04/06, Andy [EMAIL PROTECTED] wrote:
text1 /ptext2 /otext3
Does it always look like that?
text1(whitespace)/ptext2(whitespace)/otext3
The ideea is to extract the texts before and between /o and /p.
$html = asdäüü ö ö vf /pxtestxx/ostestss;
eregi(^([^/.*]*), $html, $reg);
On 06/04/06, Angelo Zanetti [EMAIL PROTECTED] wrote:
Anyway for a simple query, if I just wanted to check that a variable has only
text and numeric characters would I do something like this
(i want it to fail if it finds a symbol eg: + - { etc...):
echo REG result: .
On 28/03/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I do have problems with object oriented syntax as this is not familar to me.
There is following output:
Now I would like to retrieve my needed info out of it. How do I do this?
(sounds
a bit silly this question, sorry :-)
I tried:
On 27/03/06, je killen [EMAIL PROTECTED] wrote:
Hi all
Here is an update on my problem reported with the array_search function.
to those who directed me to the bug report page, thanks.
There are a number of reports specific to this function. Maybe event
someone else has written a fix.
here
On 27/03/06, Anasta [EMAIL PROTECTED] wrote:
I need help with an insert using joins.
Yes, there is. You'll find all the mysql lists/newsgroups here:
http://lists.mysql.com/
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 24/03/06, Richard Lynch [EMAIL PROTECTED] wrote:
In incredibly ancient versions of PHP, you needed to have the:
function foo () { ... };
appear BEFORE you called it.
You still do in PHP5 if the function definition is in a conditional
block. Like his.
But apparently the script was
On 24/03/06, Barry [EMAIL PROTECTED] wrote:
Robin Vickery wrote:
On 24/03/06, Richard Lynch [EMAIL PROTECTED] wrote:
In incredibly ancient versions of PHP, you needed to have the:
function foo () { ... };
appear BEFORE you called it.
You still do in PHP5 if the function
On 24/03/06, tedd [EMAIL PROTECTED] wrote:
Storing things in MySQL should not be based upon If you're going to
search the field or not. MySQL storage is simply a way to store
stuff. It's not that much different than storing things on the file
system because all you're storing is 1's and 0's
On 24/03/06, benifactor [EMAIL PROTECTED] wrote:
//$del will look like 38, 40, 43
$query = delete From news where id = '$del';
This code will only delete the first value of $idd. what i think is wrong is
i have the incorrect syntax to delete multiple feilds from a table if some
one can
On 23/03/06, Mark [EMAIL PROTECTED] wrote:
Can anyone see a problem with this at a glance. I think i have pushed my
luck with this forum ( inc. Chris)of late but i paid a lot of money for this
script and it has a few bugs.
THis is what i get returned---
Fatal error: Call to undefined
On 21/03/06, sathyashrayan [EMAIL PROTECTED] wrote:
- Original Message -
From: Dan Parry [EMAIL PROTECTED]
To: 'sathyashrayan' [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Tuesday, March 21, 2006 6:12 PM
Subject: RE: [PHP] Inserting data at runtime (php,mysql)
[snip]
On 15/03/06, suresh kumar [EMAIL PROTECTED] wrote:
i am facing one problem in type casting.
$accno=2927;
$accno=$accno+1;
its o/p is 2928. but i want output to be 2928.i am
waiting response from u.
$accno = sprintf('%08d', $accno+1);
-robin
On 15/03/06, Roman Rumisek [EMAIL PROTECTED] wrote:
Hi,
this code fragment give following result in my error log:
foreach($reg_array as $region_item)
$tmp_reg_array[] = $region_item[0];
$sel_region = explode(',', $_POST[CLIENT_REGION]);
foreach($sel_region as $sel_region_item)
On 14/03/06, IG [EMAIL PROTECTED] wrote:
Hello.
I got a password protected login script of t'internet a while back and
have implemented it. I just want to make sure it is secure.
It's not.
1. It only works with register_globals turned on. Not a good idea -
register_globals has been off by
On 10/03/06, Weber Sites LTD [EMAIL PROTECTED] wrote:
Hi
I'm trying to go with your idea but I'm having difficulties with
preg_match_all.
I want the text between ?php and ?. The use of preg_match_all bellow only
Returns text that is in a single line. If the php is on one line and the ?
is
On 06/03/06, Jacob Friis Saxberg [EMAIL PROTECTED] wrote:
Does anyone know of a Php funtion that can do this:
http://golem.ph.utexas.edu/~distler/blog/NumericEntities.html
Hi there!
http://se.php.net/manual/en/function.htmlentities.php
?
htmlentities converts to named entitites.
Remember14a wrote:
$i = 0;
while ($row = mysql_fetch_row($result)) {
$res[$i]['title'] = $row[2];
$res[$i]['url'] = $row[1];
if ($row[3] != null $show_meta_description == 1)
$res[$i]['fulltxt'] = $row[3];
else
$res[$i]['fulltxt'] = $row[4];
$res[$i]['size'] =
On 02/03/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Can you inform where precisely I must include, so that neither error is
displayed or search output is displayed differetly.
Oh, I give up. Where's my Little Book of Calm?...
-robin
On 01/03/06, Nils Reimann [EMAIL PROTECTED] wrote:
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
$download = ftp_get($conn_id, $locale, TEST EXEC, FTP_ASCII);
ftp_quit($conn_id);
connection workd, but the download did not. i got
On 01/03/06, tedd [EMAIL PROTECTED] wrote:
Hi gang:
I have two *identical*l routines residing on two difference hosts --
one works and the other doesn't.
Please review (this works):
http://www.webbytedd.com/examples/rank.php
However, this doesn't:
http://www.xn--ovg.com/rank.php
Any
On 01/03/06, tedd [EMAIL PROTECTED] wrote:
In any event, considering the Google Police here, I've removed the
offending code.
Google Police? Aye, right!
You asked why your script was failing. It's failing because they
detected you were breaking their terms. Couldn't care less myself;
it's
On 28/02/06, Gustav Wiberg [EMAIL PROTECTED] wrote:
Hi there guys!
I have used a date-field and a time-field in a mysql-database.
How should I update these fields through php?
This is my code now (it works fine locally with data on a win-machine, but
not on Linux at my webhotel - Time
On 28/02/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Can anyone comment and fix this error
Warning: usort(): The argument should be an array in
/home2/wwwabcde/public_html/search/searchfuncs.php on line 300
[...]
usort($res, cmp);
Put a print_r($res) above
On 28/02/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
No this doesnt solve error.
let me give you more details to understand problem with the said code.
go to this link, please.
http://www.abcdefg.us/search/search.php
in search enter,
Justice, you get response without an error.
Now
On 28/02/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
The array sorting suggestions you provide will not sort based on the
number of items in each array, which is what the OP wanted.
That's not entirely fair. I would have said his usort() suggestion was
a better pointer than a link to count()
On 17/02/06, Jochem Maas [EMAIL PROTECTED] wrote:
THIS CODE
php -r '
$a = array(0, 1);
$b = array(1 = 0, 0 = 1);
var_dump($a $b); // true
var_dump($a $b); // true
var_dump($b $a);
var_dump($b $a);
[...]
On 2/14/06, Patrick [EMAIL PROTECTED] wrote:
Hi,
I am trying to validate a password, but havent figured out the pattern for
it yet.
The password must contain atleast 6 characters
a-zA-Z0-9_
must start with a
a-zA-Z
and must have atleast one of the following characters
!#%$£
As Curt
On 1/26/06, Kim Christensen [EMAIL PROTECTED] wrote:
I would really like PHP to have a function of building expressions
with strings, and then execute them through a function - but that's
just me it seems :-)
You mean like create_function() ?
-robin
On 1/19/06, Chris Boget [EMAIL PROTECTED] wrote:
I've been beating my head against the wall for a while trying to come up
with the RE I need to use. I have a camel case word - let's use
JimJoeBobBriggs. I need to come up with a RE that will fine all the
upper case characters and insert an
On 1/11/06, enediel gonzalez [EMAIL PROTECTED] wrote:
Hello
I've a site with a .htaccess defined, the users have to enter the login and
password to get in,
Is it possible on php to ask the apache server wich user is using the
current session?
$_SERVER['REMOTE_USER']
-robin
On 12/21/05, Anasta [EMAIL PROTECTED] wrote:
Can someone tell me why this select is wrong please---ive tried everything.
the $cat is the tablename .
You've tried *everything* ?
Why do you think it's wrong? Did you get an error message of some kind?
What do you see if you echo $query? Are the
On 12/20/05, Ruben Rubio Rey [EMAIL PROTECTED] wrote:
Ok, I tried it before, it didn't work:
[...]
Try to execute it and execution never ends... browser is waiting for
ever ...
No errors in error php error log.
Any ideas?
I bet your script will finish as soon as you read from the other
On 12/20/05, Ruben Rubio Rey [EMAIL PROTECTED] wrote:
Robin Vickery wrote:
I bet your script will finish as soon as you read from the other end -
for example by doing 'cat fifo' from a shell.
Thats it.
I would like to use fifo, but thats a problem. If there is not process
reading, it wont
On 12/15/05, Tim Meader [EMAIL PROTECTED] wrote:
Okay, this seems like a ridiculously easy question which shouldn't even
need asking, but I'm having trouble getting the builtin copy command to
work properly. It seems to work fine as long as I feed it a full
constant string path for each
On 12/15/05, Rahul S. Johari [EMAIL PROTECTED] wrote:
Ave,
I want to assign a 4 Digit ID with leading zeros to each record added using
a form I have created.
The PHP scripts does two things:
(a) It adds the data to a mySQL table
(b) it generates a CSV file with the data
The 4 Digit ID
On 12/13/05, Daevid Vincent [EMAIL PROTECTED] wrote:
I'm trying to do what should be a very simple regex, but can't seem to get
PHP to work, yet regex-coach and even an XML .XSD work fine:
Valid forms of a windows logon are:
foo\bar
\\foo\bar
[...]
//preg_match('/()?.+(\\).+/',
On 12/9/05, Binay(Local) [EMAIL PROTECTED] wrote:
Hi All
Has anybody got the working code to apply the PKCS#5 padding to the text for
encryption. Please let me know as it seems PHP inbuilt functions do not
support this padding at all. Been worried about from past 2 days. Help me out.
The
U I made a mistake in the second test for validity in the
unpad function. It should be this:
function pkcs5_unpad ($text)
{
$pad = ord($text{strlen($text)-1});
if ($pad strlen($text)) return false;
if (strspn($text, chr($pad), strlen($text) - $pad) != $pad) return false;
return
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote:
Can '?=' be used for templates, or is it a bad thing?
The manual's reasonably explicit on the subject:
Note: Using short tags should be avoided when developing
applications or libraries that are meant for redistribution, or
deployment on PHP
On 11/15/05, Jochem Maas [EMAIL PROTECTED] wrote:
so how many people actually _need_ to write portable code? ok so many you
are starting a project which will become a runaway success but until it starts
receiving alot of attention use of short-open-tags is probably not your
biggest
issue
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote:
Robin Vickery wrote:
On 11/15/05, Roman Ivanov [EMAIL PROTECTED] wrote:
Can '?=' be used for templates, or is it a bad thing?
The manual's reasonably explicit on the subject:
Note: Using short tags should be avoided when
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote:
On Tue, 15 Nov 2005, Jim Moseby wrote:
It will be when you have to sort through 1,000,000 lines of code in 400
files to change '?' to '?PHP'. Better to save the grief and do it right
to start with, no?
for file in *.php; do
cp $file
Hiyah Richard,
On 11/15/05, Richard Davey [EMAIL PROTECTED] wrote:
Hi Robin,
Tuesday, November 15, 2005, 6:18:06 PM, you wrote:
Short tags have been deprecated for years. Both the manual and the
php.ini file itself advise people not to use them. Personally I
think it's about time they
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote:
On Tue, 15 Nov 2005, Jim Moseby wrote:
for file in *.php; do
cp $file $file.tmp
sed -e s/?$/?php/g $file.tmp $file
rm $file.tmp
done
I maintain: Better to save the grief and do it right to start with, no?
Maybe at some point I too
On 11/15/05, Greg Donald [EMAIL PROTECTED] wrote:
On Tue, 15 Nov 2005, Jim Moseby wrote:
for file in *.php; do
cp $file $file.tmp
sed -e s/?$/?php/g $file.tmp $file
rm $file.tmp
done
I maintain: Better to save the grief and do it right to start with, no?
Maybe at some point I too
On 11/14/05, Ördögh László [EMAIL PROTECTED] wrote:
Hello,
I would like to split or explode strings in a way that
quoted strings inside the strings should remain.
e.g.:
first second \third third\ fourth \fifth fifth fifth\
after the split I need:
first
second
third third
fourth
On 11/5/05, Andy Pieters [EMAIL PROTECTED] wrote:
I am doing some data validation and the following regexp fails
[\W]
When using characters like £ or €
The script is encoded in UTF-8
Are you using the 'u' modifier to put PCRE in utf-8 mode?
preg_match( '/\W/u', $text);
-robin
On 11/4/05, Unknown Unknown [EMAIL PROTECTED] wrote:
Hi everyone, i have some code that proccesses a login form. i have an object
$DB which works only in SOME areas, this is the code:
[...]
$DB=membersp;
$SQL=SELECT ID FROM membersonline WHERE ID='$ID' ;
$DB-Query($SQL);
[...]
i get an
On 10/27/05, Chris W. Parker [EMAIL PROTECTED] wrote:
Hello,
On my site right now if someone searches for 511 (a misspelling of the
manufacturer 5.11) they are not presented with the right products
because 511 is not found anywhere in the database.
I've got a few ideas on how to solve this
On 10/28/05, Tom Rogers [EMAIL PROTECTED] wrote:
I would do it with a small class like this:
?php
class mac{
var $mac='';
var $is_valid = false;
function mac($mac){
$mac = preg_replace('/[^0-9A-F]/','',strtoupper($mac));
if($this-is_valid =
On 10/28/05, Graham Anderson [EMAIL PROTECTED] wrote:
I am having problems decompressing a zlib'd string located in a file.
In the file headers, the compression says that it is zlib.
But, when I 'gzinflate' the string, I get the error: gzinflate():
data error in b
Is the below NOT a zlib
On 10/24/05, Manuel Lemos [EMAIL PROTECTED] wrote:
on 10/23/2005 07:21 PM Robin Vickery said the following:
... would it not make sense for there to be a BUILT-IN PHP function of
a TRUE email syntactic validation?
I don't see that being much better than passing a good regular
expression
On 10/25/05, Mark Charette [EMAIL PROTECTED] wrote:
Ben Litton wrote:
You could certainly write an extension to do so. That's what I did
(mostly I was writing one for another purpose and added a function I
stole from O'Reilly.
As you stated in your article, it isn't rfc822 compliant
On 10/19/05, Wiktor [EMAIL PROTECTED] wrote:
Hi,
Is there a function that will convert any european special characters
into standard ASCII letters eg. polish ogonki into a,e,o or german umlauts
into
ue,oe...?
The recode functions are probably your best bet:
On 10/23/05, Manuel Lemos [EMAIL PROTECTED] wrote:
Hello,
on 10/22/2005 12:58 AM Richard Lynch said the following:
Checking MX records is not reliable at all.
I agree that it is less useful today, but it still help catches many
domain name typos.
... would it not make sense for there
On 10/13/05, -k. [EMAIL PROTECTED] wrote:
--- Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
$source_dir = escapeshellarg( '/some/dir/Dir That Won't Move/' );
Unfortunately escapeshellarg doesn't work for all cases, it will escape the
' in that example
but it doesn't escape other
On 10/13/05, Graham Anderson [EMAIL PROTECTED] wrote:
$realcmd = decrypt($cmd);
[...]
elseif(decrypt($cmd) == $realcmd)
That's obviously going to succeed no matter what $cmd decrypts into.
It doesn't really tell you anything useful.
$realcmd = decrypt($cmd); // 'makesmil'
[...]
On 10/10/05, zzapper [EMAIL PROTECTED] wrote:
Hi,
Image that there could be a string
fred
Fred
FRED
First of all I need to know that these are same which I can do with
strtolower, but how could I tell
that 'FRED' is 'most captilised?
?php
$strings = array(
'fred',
'Fred',
On 9/28/05, Silvio Porcellana [EMAIL PROTECTED] wrote:
In addiction, I would (SQL)escape the values joined: supposing you are
using MySQL, I'd do:
$values = join(', ', array_map('mysql_real_escape_string', $array));
I agree entirely; I was just trying to keep things simple for the OP.
If you make two calls to mysql_connect with the same parameters, the
second will not make a new connection - it will return the existing
connection. The manual explains this:
http://www.php.net/mysql_connect
If a second call is made to mysql_connect() with the same arguments,
no new link will
On 9/28/05, Frank Keessen [EMAIL PROTECTED] wrote:
O.K. Again;
I have an array with one or more values, which must be selected in the
database
Array ( [count] = 1 [0] = Array ( [clientaccountmanager] = Array (
[count] = 2 [0] = 210 [1] = 149 )
Now i this is my select..
I've got the
On 9/27/05, Bulent [EMAIL PROTECTED] wrote:
Hello
I am a novice about that
I use mysql4.0.24 with php4.3.10.
When I upload jpeg/gif files to my webpage I get an error as below;
PHP Warning: mysql_close(): supplied resource is not a valid MySQL-Link
resource in /var/.
What shall I
On 9/27/05, Bulent [EMAIL PROTECTED] wrote:
here is the concerning line;
about line mysql_close($sonuc3);
@mysql_connect($server,$kullanici,$sifre) or die(sql server baglanamadi);
@mysql_select_db($vt) or die(tabloya baglanamadi);
$sonuc3=mysql_query($sorgu3) or die(dosya açilamadi-1);
[...]
On 9/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
From php manual:
$a $b Shift leftShift the bits of $a $b steps to the left (each step
means multiply by two)
$a $b Shift rightShift the bits of $a $b steps to the right (each step
means divide by two)
So i ask what this output?
$a
On 9/7/05, Paul Groves [EMAIL PROTECTED] wrote:
I want to be able to break up a number of search terms typed into an input
box into array, simple enough one would think, just use explode, e.g
$array = explode( , $string);
But what if I want to be able to cope with search terms
On 9/9/05, Kevin Waterson [EMAIL PROTECTED] wrote:
Want to filter out cats from this array using SPL FilterIterator
$arr = array('koala', 'dingo', 'cat', 'Steve Irwin', 'fish');
Why, what's wrong with cats?
-robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 9/6/05, babu [EMAIL PROTECTED] wrote:
Hi all,
I want to write regular expression for checking the string format entered by
user.
the allowed formats are
examples:
10
10,
10,12-10
12-10
that is the valid strings are:
1. only integer
2. an integer, range of integers example
On 9/6/05, Cabbar Duzayak [EMAIL PROTECTED] wrote:
Hi,
I have a regular expression check as:
preg_match(/$xyz/, $data, $matches);
And, as you know $xyz means string starts with xyz.
No it doesn't - string starts with xyz would be /^xyz/ which
coincidentally avoids your problem of xyz
On 9/6/05, Bushra [EMAIL PROTECTED] wrote:
Hi
I want to get the name of current page. I use $PHP_SELF or
SCRIPT_FILENAME, but it also provides the path name . I just want to
retrieve the file name with extension. How can I do that?
http://www.php.net/manual/en/function.basename.php
-robin
101 - 200 of 270 matches
Mail list logo