I have been trying all weekend to get this right, and so far it does not
validate an e-mail address with a subdomain.
-- Code --
$empatt =
^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*(\.[a-z]{2,3})$;
if(eregi($empatt, $email))
{
//do stuff
}
-- End Code --
Are there any lists of PHP contractors/consultants available online? It
looks like I may need to find outside resources for a PHP project at
work. I tried searching around for sometime, but was only able to find a
few none local to my area (silicon valley, ironically).
Thanks,
-Bill
--
PHP
I have a postnuke website and i had denial of service attack
the point is the attack is one only the home php page ... with cpu 100% and
few apache procceses..
Any comment ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi
this is the dynamic forms
for($s=0;$s$num;$s++)
{
$result = mssql_fetch_array($query);
$result[2] =
On Monday 08 September 2003 14:08, Jami Moore wrote:
I have been trying all weekend to get this right, and so far it does not
validate an e-mail address with a subdomain.
[snip]
From my understanding, this should allow me to validate an e-mail
address like mailto:[EMAIL PROTECTED]
[EMAIL
On Monday 08 September 2003 01:27, Dan Anderson wrote:
You need to be more specific. What error do you get?
I don't get any error. It will ask me for the HTML code to the page and
just not work. So I'm assuming that instead of being processed by
Apache and a preprocessor that can send it
Hi
I want to be able to send the vlaues that a user enters in a couple of input
fields. However, my register_globals is set to off. So how do I do it using
an image and HRef instead of a submit button?
I have the following:
form name=form1 method=post action=
p
input type=text
Am Montag, 08.09.03 um 04:21 Uhr schrieb Lee O'Mara:
Why not just allow for bold tags in the search term? What I mean is, I
think you can get the results you want by allowing any number of open
or close bold tags between each letter of the search term.
i thought so too (but i had no idea how to
I found a new book for again starting out to learn PHP/MySQL Web App
programming. I've begun exercises toward that end.
So far I've opened MySQL--I'm on a Macintosh PowerBook, so that's
UNIX--as root and created a database I called guest_recorder. Then I
GRANTed ALL to a new user (me) with a
Stephen Tiano wrote:
?php
include(dbconnect.php);
if ($submit == Sign!)
if($_POST['submit']=='Sign!')
{
$query = insert into guest_info
(name,location,email,url,comments) values
'$name', '$location', '$email', '$url', '$comments')
Hello Stephen,
You say then hit the Sign, dammit! button, and in your script you
have ...if ($submit == Sign!)
Obviously, the problem is that else block is executed instead of
if. It's better to use some other variable to check whether the form
is filled or not, something like
hi
how to count null values in an array?
tnx
I passed value
main.php?name=$nameid=$idid1=$id1 to next page
where $id has value ###
In the next page I was not able to get the $id and $id1 values
and I am able to get the two values $id1 and $name when I used
main.php?name=$nameid1=$id1
What might be the problem?
-Thanks regards,
Murugesan
?
function countNulls($array)
{
if (!is_array($array)) {
return(NULL);
}
reset($array);
$count=0;
while(list(,$val)=each($array)) {
if ($val===NULL) {
$count++;
}
}
return($count);
}
?
Aris Santillan wrote:
hi
how to count null values
This may help you.
//createenrty.php
script language=javascript
function funsubmit()
{
..
return true/false based on input checks
}
form.. onsubmit='return funsubmit()' .. action=nextpage.php
...
input type=submit name=submit value=Sign dammit
/form
try this
main.php?name= . $name . id= . $id . id1= . $id1 .
HTH
-Original Message-
From: murugesan [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 1:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing query parameter which has value ###
I passed value
Not at all. I tried it.
When I see the properties of that page it is showing me
http://172.16.1.193/main.php?name=murugeshid=#[EMAIL PROTECTED]
but the actual value for id is ###
-Murugesan
- Original Message -
From: Angelo Zanetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL
Hello,
Many people ask me if ASP.net is faster than PHP. I know for a fact that it is
(because PHP is not optimized).
But then what about optimized PHP and compiled ASP.net. This would be a fairer
comparison in my opinion. Anyone seen any benchmarks of this? If so please let me know
as I would
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Not at all. I tried it.
When I see the properties of that page it is showing me
http://172.16.1.193/main.php?name=murugeshid=#[EMAIL PROTECTED]
but the actual value for id is ###
-Murugesan
- Original Message -
From:
Well, may question is about the Scope of Throwed
Execeptions. Look my example:
I have something like this:
//...cut...
try {
$res =
$this-curl-GET($this-url[0]);
} catch (Exception $e) {
At 13:04 8-9-03, you wrote:
I passed value
main.php?name=$nameid=$idid1=$id1 to next page
where $id has value ###
In the next page I was not able to get the $id and $id1 values
and I am able to get the two values $id1 and $name when I used
main.php?name=$nameid1=$id1
What might be the problem?
Apparently if you read the terms of agreement when installing .NET you can't
publish your benchmarking results without their permission.
just a thought.
would be interesting to see comparison, and maybe also JSP, cold fusion
-Original Message-
From: Sid [mailto:[EMAIL PROTECTED]
Sent:
yes David is right!!
why dont you pass the password as a session variable? have you thought of
it? I dont know how appropriate/inappropriate it will be.
Angelo
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 1:53 PM
To: [EMAIL PROTECTED]
[snip]
Many people ask me if ASP.net is faster than PHP. I know for a fact that
it is (because PHP is not optimized).
But then what about optimized PHP and compiled ASP.net. This would be a
fairer comparison in my opinion. Anyone seen any benchmarks of this? If
so please let me know as I would not
Apparently if you read the terms of agreement when installing .NET
you can't publish your benchmarking results without their
permission.
Is Micro$oft©® scared of being beaten? Now I am going to get the benchmarking results
by hook or crook! Now I HATE M$. aahh!!
I've seen a comparison of
nabil wrote:
I have a postnuke website and i had denial of service attack
the point is the attack is one only the home php page ... with cpu 100% and
few apache procceses..
Any comment ?
It was not me.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect:
Safe mode? If safe mode is on and the image is owned by apache, the
script that is owned by your acount cannot read the image.
Nathan Taylor wrote:
Hey Guys,
I am developing code that uses GD to create and store an image but it is giving me trouble with GetImageSize, maybe you guys can offer
Hi Group,
I have a form for adding a university course details.
It has some fields for which the parent form calls the
child form. For example: Each course is associated
with at least one faculty member. So when the user
enters faculty member then first user needs to find
the appropriate faculty
From: Hardik Doshi [EMAIL PROTECTED]
I have a form for adding a university course details.
It has some fields for which the parent form calls the
child form. For example: Each course is associated
with at least one faculty member. So when the user
enters faculty member then first user needs
OMG! PHP
is slower. The difference is .035 seconds. Does this matter? Who is
asking which is faster? Why do they care? Are they looking for a reason
to choose one technology over another?
Throw In 2 Cents
I totally agree with you, but I find it funny that many times when
talking to
Hidden form variables.
Hardik Doshi wrote:
Hi Group,
I have a form for adding a university course details.
It has some fields for which the parent form calls the
child form. For example: Each course is associated
with at least one faculty member. So when the user
enters faculty member then
Forget about cookies and sessions (because cookies are evil). The way I
do something like this is:
?php
foreach ($_POST as $key = $value)
{
if (!(($key == 'dont_save') OR ($key == 'dont_save_2')))
{ hidden($key, $value); }
}
function hidden($key, $value)
// saves lots of time
{ print
Can't resist trowing in my 0.02 either:
As dan pointed out it's so much faster to do things in php. When you
take into consideration the fact that code on windows never work the
way it's supposed you are saving a lot of man hours.
Second point worth mentioning is that a given
--- Sid [EMAIL PROTECTED] wrote:
Many people ask me if ASP.net is faster than PHP. I know for a fact
that it is (because PHP is not optimized).
Don't be so easily fooled by hollow terms.
Go here:
http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm
Start with the slide entitled
Jason,
I have already done so and not found an answer, which is why I am asking
the group now. Do you have a suggestion or have you found a link that
may help? That would be ten times more useful than, Search the archives
or ask google.
Jami Moore
LightSpark Digital Designs
[EMAIL PROTECTED]
has anyone used PHPMVC (from phpmvc.net) and if so, what is your
experience with it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I see too easy options for you.
1) use the Validate class in PEAR. It achieves what you want.
2) look at the Validate class in PEAR and copy
-Jackson
On Monday 08 September 2003 10:01, Jami Moore wrote:
Jason,
I have already done so and not found an answer, which is why I am asking
the
Does anybody know how to generate calendars easily? (i.e. print out
complete calenders from the current month on)
Thanks in advance,
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$email = [EMAIL PROTECTED];
if(eregi(^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$, $email)) print Valid;
It should work.
Javier Tacón Iglesias.
-Mensaje original-
De: Jami Moore [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 08 de septiembre de 2003 17:02
Para: [EMAIL PROTECTED]
From: Dan Anderson [EMAIL PROTECTED]
Does anybody know how to generate calendars easily? (i.e. print out
complete calenders from the current month on)
I'd check out PEAR or phpclasses.org. I'm sure something is already written,
but I don't know of any personally.
---John Holmes...
--
PHP
I've got a few elementry classes that might help, I think you just need to
instantiate the class and then run the display method.
Dan Anderson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Does anybody know how to generate calendars easily? (i.e. print out
complete calenders from
Thanks for the reply.It is working
-Murugesan
- Original Message -
From: Chris Hayes [EMAIL PROTECTED]
To: murugesan [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, September 08, 2003 5:15 PM
Subject: Re: [PHP] Passing query parameter which has value ###
At 13:04 8-9-03, you wrote:
* Thus wrote Dave Dash ([EMAIL PROTECTED]):
begin 666 cal.css
M+F-A;5N9%R('L*6)OF1E[EMAIL PROTECTED]AI;B!S;VQI9#L*6UAF=I;BUL969T
Please dont send attachments to the list.
Curt
--
I used to think I was indecisive, but now I'm not so sure.
--
PHP General Mailing List (http://www.php.net/)
I'm trying to do some uploading on my server, and I'm not getting any value
for my tmp upload setting - meaning this code:
$source = $_FILES['cat1_thumb']['tmp_name'];
echo $source;
returns nothing. The form is fine - meaning that the text input name is
correct and I am indeed selecting a
Does the form contain
form enctype=multipart/form-data ...?
Doug Parker wrote:
I'm trying to do some uploading on my server, and I'm not getting any value
for my tmp upload setting - meaning this code:
$source = $_FILES['cat1_thumb']['tmp_name'];
echo $source;
returns nothing. The form is fine -
If you go to the PHP site they have a nice section on file uploads:
http://us2.php.net/features.file-upload
Double check that $_FILES['cat1_thumb']['error'] == 0
See: http://us2.php.net/manual/en/features.file-upload.errors.php
-Dan
--
PHP General Mailing List (http://www.php.net/)
To
if $quantity isn't filled you get NULL or FALSE.
so you could use:
if ($_POST['variable'])
etc.
Try posting less code and more question to the list. Nobody's going to
wade through 5 pages of code to analyze it and give you an answer.
-Dan
On Mon, 2003-09-08 at 03:41, Aris Santillan wrote:
Im attempting to create a simple selection box in PHP, but to no avail. It
keeps giving me an error:
You have an error in your SQL syntax near '; City='Eureka/'' at line 6
Here's a snip from my code:
!-- newuser.php --
html
head
title Add New User /title
/head
body
?php
if
[snip]
You have an error in your SQL syntax near '; City='Eureka/'' at line 6
$sql = INSERT INTO My_Table_Name SET
First_Name='$fname',
Last_Name='$lname',
Username='$username',
Password='$password',
Phone_Number='$phone';
AAHH - stupid mistake - thanks!
Guess I better re-read PHP-101
Thanks,
Scott
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Scott Miller [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, September 08, 2003 1:54 PM
Subject: RE: [PHP] Simple Selection Box
[snip]
You
[snip]
Try/Catch
Well, may question is about the Scope of Throwed
Execeptions.
[/snip]
What version of PHP are you running? Only V5 has this kind of exception
handling. See http://www.php.net/zend-engine-2.php
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Does anyone had tested ADODB with php5?
I can make a query, print the recordcount but when i try to show the result i got
nothing
?
require (some\\adodb.inc.php);
$conn = ADONewConnection('mysql');
$conn-PConnect('some', 'some', 'some', 'some');
$seleciona =
select campo
from tabela
;
$qry
[snip]
Does anyone had tested ADODB with php5?
I can make a query, print the recordcount but when i try to show the
result i got nothing
?
require (some\\adodb.inc.php);
$conn = ADONewConnection('mysql');
$conn-PConnect('some', 'some', 'some', 'some');
[/snip]
You do not need the ADODB
From: Gilberto Garcia Jr. [EMAIL PROTECTED]
Does anyone had tested ADODB with php5?
I can make a query, print the recordcount but when i try to show the
result i got nothing
while (!$qry-EOF) {
echo $qry-fields['campo'] . br;
$qry-MoveNext();
}
You might want to ask on the adodb forums:
[snip]
Does anyone had tested ADODB with php5?
[/snip]
D'oh **slapping forhead** I shouldn't be driving this late on Monday
afternoon.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I use adodb cause I need an abstraction layer for database cause the
application can run under mysql, mssql, oracle and pgsql. so i have one
config file that has the parameters for the conection.
this is the reason for me use adodb layer.
now, about ADONewConnection(), this function is from
I have a new RedHat Linux v.9 server that gets its php through
'up2date'. I want the ability to use mcrypt with php. I thought that I
read somewhere a way to do this without having to recompile PHP. Can
anybody point me to the right place or explain to me how to do this?
Thanks
Steve
--
PHP
First, I would like to thank all of you who have helped me with my questions
in the past. I am going to return the favor by giving you an opportunity to
receive a free copy of the latest version of a calendar program, called
TotalCalendar. SweetPHP.com will be giving out free copies of this
I think you could adjust your business model a bit, there are quite a
few GPL projects offering a lot more than what you do, in a better
groupware environment. For instance you could check out
http://www.guydavis.ca/opt/ for a demo of a GPL project at least a few
orders of magnitude above the
Thanks for the email but I found the reason for it all not working. I have
an ATI Radeon 9800 Pro and it's not supported by the Linux Kernel yet so...
Thanks anyway,
Stephen
- Original Message -
From: Viraj Kalinga Abayarathna [EMAIL PROTECTED]
To: Stephen Craton [EMAIL PROTECTED]
Cc:
is there any way of seeing exactly what headers cURL sent in a transfer,
with PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 09 Sep 2003 00:58:07 +0300
Bogdan Stancescu [EMAIL PROTECTED] wrote:
I think you could adjust your business model a bit, there are quite a
few GPL projects offering a lot more than what you do, in a better
groupware environment. For instance you could check out
hi...
where can I download a database with all countries and
states and cities?
like:
http://www.datingplace.com/servlet/NewRegistration
thanks,
Augusto
___
Desafio AntiZona: participe do jogo de perguntas e respostas que vai
--- andu [EMAIL PROTECTED] wrote:
Experience proves that his business model has worked in the past as
well as present (not that I support or practice it), just count the
number of people still buying and using Windows (or OSX for that
matter) when Linux has been around for all these years.
PEAR Date Calc is your friend.
rgds.
--
Quoting CPT John W. Holmes [EMAIL PROTECTED]:
From: Dan Anderson [EMAIL PROTECTED]
Does anybody know how to generate calendars easily? (i.e. print out
complete calenders from the current month on)
I'd check out PEAR or phpclasses.org. I'm
Hi everyone,
I am trying to create a new newsletter software as the ones i found on
hotscripts were just not good enough or mucho $$ which i dont have :-(
Have finished the basics but need some advise now.
I am using a mysql database instead of text files.
I have a table with the fields name and
On Mon, 8 Sep 2003 16:48:24 -0700 (PDT)
Chris Shiflett [EMAIL PROTECTED] wrote:
--- andu [EMAIL PROTECTED] wrote:
Experience proves that his business model has worked in the past as
well as present (not that I support or practice it), just count the
number of people still buying and using
Can database sessions and file system sessions co-exist on the same
server. I have 2 applications that use sessions. One uses the standard
php sessions and the other uses sessions that are stored in the
database. Neither of these can be changed.
Can anyone offer any advice on this?
Chris
nebody know where i can find a script that does something like:
(the admin module)
- add/edit/delete tv programme lineup daily/weekly/monthly
- lineup will include things like programme title, episode, time, synopsis etc
(the public portion)
- can perform search
- calendar
- hilights
- etc
pls
--- CDitty [EMAIL PROTECTED] wrote:
Can database sessions and file system sessions co-exist on the same
server.
Sure, and it is trivial to do unless you are wanting to use the data from both
sessions with the same application, though that is still possible.
If you need to share data, you can
i found out myself if anyone wants to know...
John Ryan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
is there any way of seeing exactly what headers cURL sent in a transfer,
with PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Kae,
Excuse my being dense, but I just want to get your meaning with the
lines you added. You're saying to substitute
if($_POST['submit']=='Sign!')
for
if ($submit == Sign!)
and to try ('$_POST[name]', ... (and not $_POST['name'])?
Thank you.
Steve Tiano
--
PHP General Mailing List
--- John Ryan [EMAIL PROTECTED] wrote:
is there any way of seeing exactly what headers cURL sent in a
transfer, with PHP?
--- John Ryan [EMAIL PROTECTED] wrote:
i found out myself if anyone wants to know...
Yes, please. It is always helpful (and courteous) to mention how you solved
your
yeah, sure.
well, for archival purposes, i couldnt do it with PHP. the verbose option
didnt work with PHP, CURLOPT_VERBOSE. but it did work on the command line.
so i logged in and re-created my curl transfer on the command line with an
added -v, for verbose. and it gave me back the headers it
Hi everyone,
Could somebody please explain to me the difference
between single quotes and double quotes in PHP. It
seems like they can be used interchangeably a lot in
PHP but not always. For example:
This works:
header('Location: http://somedomain.com')
This does not work:
header('Location:
php-general Digest 9 Sep 2003 04:03:37 - Issue 2286
Topics (messages 161999 through 162033):
Re: Passing query parameter which has value ###
161999 by: murugesan
Re: Creating a Calender
162000 by: Curt Zirzow
162023 by: Sn!per
upload problems
162001 by:
Hi,
Tuesday, September 9, 2003, 2:03:34 PM, you wrote:
mb Hi everyone,
mb Could somebody please explain to me the difference
mb between single quotes and double quotes in PHP. It
mb seems like they can be used interchangeably a lot in
mb PHP but not always. For example:
mb This works:
mb
--- micro brew [EMAIL PROTECTED] wrote:
Could somebody please explain to me the difference
between single quotes and double quotes in PHP.
Strings within single quotes are not evaluated. String within double quotes
are. Try this example:
?
$foo = 'bar';
echo '$foo';
echo $foo;
echo $foo;
Hi,
I found the following e-mail in a PHP Development Archive, and I have
exactly the same questions... ufnortunately there was no answer in the
archive, only the pointer to e-mail this list. If you can help me, it
would be greatly appreciated!
Alvar
To: mailto:[EMAIL PROTECTED]php-dev at
Try this: http://www.faqts.com/knowledge_base/view.phtml/aid/208
- Original Message -
From: micro brew [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 12:03 AM
Subject: [PHP] Single Quotes vs Double Quotes
Hi everyone,
Could somebody please explain to me
hi,
i wanna upgrade php, but i dont have, and can never have root access on my
server, plus no gcc or anything, so is there any site with binaries of php
for linux-x86, with pretty much, all extras and modules!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
81 matches
Mail list logo