heh sorry excuse my arrogance , of then , find me a solution that doesnt
require echoing javascript ?
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 6:49 PM
To: Dan Rossi; Leif K-Brooks
Cc: Peter Houchin; Dan; php-general
Subject: Re:
I never said there was one, I simply said that a PHP solution was
requested and you gave a javascript solution. That has nothing to do
with the PHP (!) list, and should be discussed off-list.
Dan Rossi wrote:
heh sorry excuse my arrogance , of then , find me a solution that doesnt
require
Leif K-Brooks wrote:
I never said there was one, I simply said that a PHP solution was
requested and you gave a javascript solution. That has nothing to do
with the PHP (!) list, and should be discussed off-list.
A solution, whether JavaScript, PHP, or other, is better than
nothing. All
Mummy and Daddy sto fighting.
- Original Message -
From: Dan Rossi [EMAIL PROTECTED]
To: Philip J. Newman [EMAIL PROTECTED]; Leif K-Brooks
[EMAIL PROTECTED]
Cc: Peter Houchin [EMAIL PROTECTED]; Dan [EMAIL PROTECTED];
php-general [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 7:04 PM
hello,
i am not sure where to post this question, since it's partly related to PHP,
so i'll ask here.
I'd like to rewrite a url
that looks like this: /news/articles/article.php?id=255
into /news/articles/255/
any help is appreciated.
cheers,
- Sebastian
Heh, I think this kind of idiotism and hair splitting is fun for a
change. :)
I personnally like this in this php-list that you can ask allmost
anything and get a desent answer in a short perioid of time. Lets keep
it that way, even if it takes us sometimes to javascript or some other
OT. :)
At 09:35 28.03.2003, Niklas Lampén said:
[snip]
Heh, I think this kind of idiotism and hair splitting is fun for a
change. :)
I personnally like this in this php-list that you can ask allmost
anything and get a desent answer in a short perioid of time. Lets
Ernest E Vogelsinger wrote:
Well then - how can I get rich quick, do I need to use JavaScript or can it
be done with PHP?
I'd give you an answer, but this is a PHP list. Apparently we're
not allowed to give non-PHP solutions on here. smirk
--
H| I haven't lost my mind; it's backed up on
I think you should use the function called
PutMoneyToMyAccount($AccountID = '123456-98765', $AmountInUSDollars =
'100');. Run it as many times as you want. This doesn't need
javascript, so this wasn't OT.. :P No need to thank me, even manual
tells you this.
Niklas
-Original
On Friday 28 March 2003 16:38, Sebastian wrote:
i am not sure where to post this question, since it's partly related to
PHP, so i'll ask here.
Ask google or ask the archives.
I'd like to rewrite a url
that looks like this: /news/articles/article.php?id=255
into /news/articles/255/
--
Hello
From a usability standpoint showing a checkbox that cannot be unchecked
renders the checkbox obsolete. The consquence is not to show a checkbox at
all. If you need an uncheckable checkbox because of licence aggreements or
something like that. Or privacydeclaration type checkbox. Make it
am i going mad or something?
i want to use the referer string from the server vars, but the
$_SERVER[REFERER] and $HTTP_SERVER_VARS[REFERER] vars are empty
and the phpinfo doesn't show the referer at all.
what's going on?
cheers
--
Mat Harris OpenGPG Public Key ID:
if that were the case I wouldn't have asked here.. perhaps i didn't find the
answer at google or the archives.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
Ask google or ask the archives.
| On Friday 28 March 2003 16:38, Sebastian wrote:
|
| i am not sure where to post
try: $_SERVER['HTTP_REFERER'];
cheers,
- Sebastian
- Original Message -
From: Mat Harris [EMAIL PROTECTED]
| am i going mad or something?
| i want to use the referer string from the server vars, but the
| $_SERVER[REFERER] and $HTTP_SERVER_VARS[REFERER] vars are empty
| and the phpinfo
hi all!
i have a simple program to open and write a file.
but the file is not getting created.
can anyone please spot the mistake?
giving the code below.
thanks a lot,
diksha.
?php
echohi?how are u doing??;
$fp = fopen (sandrew.html, w);
string=htmlheadtitlehi/title/headbodyi am
fine/body/html;
On Friday 28 March 2003 18:26, Diksha Neel wrote:
i have a simple program to open and write a file.
but the file is not getting created.
can anyone please spot the mistake?
giving the code below.
Turn on FULL error reporting so you can what errors (if any) there are in your
code.
?php
hi all!
i have a simple program to open and write a file.
but the file is not getting created.
can anyone please spot the mistake?
giving the code below.
thanks a lot,
diksha.
?php
echohi?how are u doing??;
$fp = fopen (sandrew.html, w);
string=htmlheadtitlehi/title/headbodyi am
hi all,
seems to be and off day for me.
simple things aren't working.
have this really stupid thing called dew3.html
in which is a submit button to connect to new6.php
that will in turn create a file sandrew.html.
but the submit button in dew3.html is seen but isn't
working.
help please.
sending
change input type=button value=submit to input type=submit
value=submit
Regards,
Nikunj Virani
- Original Message -
From: Diksha Neel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 4:13 PM
Subject: [PHP] submit
hi all,
seems to be and off day for me.
simple
On Fri, Mar 28, 2003 at 04:19:25 -0500, Sebastian wrote:
try: $_SERVER['HTTP_REFERER'];
cheers,
- Sebastian
From: Mat Harris [EMAIL PROTECTED]
| am i going mad or something?
| i want to use the referer string from the server vars, but the
| $_SERVER[REFERER] and
hi guys,
yeah, i now believe this really is an off day for me.
probably because i did not have food today!
well, my problem is a really funny one.
through dew4.html's submit button i want to get connect
to new6.php from which should open a file.
but as soon as i click on the submit button, i get
hi guys,
yeah, i now believe this really is an off day for me.
probably because i did not have food today!
well, my problem is a really funny one.
through dew4.html's submit button i want to get connect
to new6.php from which should open a file.
but as soon as i click on the submit button, i get
Hi,
I've got a problem with the = new construct. A code sample tells more
than 1000 words:
?php
class foo {}
$g_fooInstance = null;
class factory {
function factory() {
global $g_fooInstance;
if (is_null($g_fooInstance)) {
$g_fooInstance = new foo(); // -- here's the problem
Sebastian wrote:
if that were the case I wouldn't have asked here.. perhaps i didn't
find the
answer at google or the archives.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
Ask google or ask the archives.
| On Friday 28 March 2003 16:38, Sebastian
use my example , there is no possible way , i did once see a javascript()
function but obviously thats not there
-Original Message-
From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 7:41 PM
To: [EMAIL PROTECTED]
Cc: 'Php-General'
Subject: RE: [PHP] Re:
At 12:01 28-3-2003, you wrote:
it is most likely that the error is in the referring file in dew4.html.
check the file name and path of the page you redirect to, and check the
form method.
hi guys,
yeah, i now believe this really is an off day for me.
probably because i did not have food
Hi Guys, Just after some experience...
What's the best way to sort an array of objects by one of their attributes,
accessed by $obj-getFoo() (its a number) ? I was thinking a bubble-sort,
making multiple passses and switching array elements until there are no more
switches to make.
Any tips? The
Kalin --
Please don't hijack threads. This question has nothing to do with your
last questions regarding email address regular expressions. For that
matter, *that* had nothing to do with php and perl.
Mail and news messages have many headers, some of which serve to connect
messages together.
Hi There.
I am using PHP 4.3.0 on WIN32 to query data from a Microsoft SQL Server.
One field I am requesting is type VARCHAR size 500. For some reason, PHP
is returning only the first 255 characters of the text from that field.
If I change the field type to TEXT, all of the data in that field is
Good day ,
I have the following string.
,slideimages[0],slideimages[1],slideimages[2]
Wich starts with a ','. No my problem is i want to strip
this first and only the first ','.
i've tried
$string = ,slideimages[0],slideimages[1],slideimages[2];
$string = preg_replace('/^./','',$string,1);
Whats the best way to make a random password with 4 letters and 2 numbers?
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good day ,
I have the following string.
,slideimages[0],slideimages[1],slideimages[2]
Wich starts with a ','. No my problem is i want to strip
this first and only the first ','.
i've tried
$string = ,slideimages[0],slideimages[1],slideimages[2];
$string =
$mydate = 20030328231154;
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
Whats wrong
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$mydate = 20030328231154;
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
Whats wrong
$mydate should be a unix style timestamp not a MMDDHHMMSS type
date/time format...
Check the functions time() and mktime() to help you generate unix
timestamps.
HTH
Rich
--
?php
$mydate = date(20030328231154);
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
?
On 28/3/03 11:44 am, Philip J. Newman [EMAIL PROTECTED] wrote:
$mydate = 20030328231154;
$myPrintDate=date (l dS of F Y h:i:s A,$mydate);
echo $myPrintDate;
Whats wrong
--
Can GD library produce animated gif's?
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi There.
I am using PHP 4.3.0 on WIN32 to query data from a Microsoft SQL Server.
One field I am requesting is type VARCHAR size 500. For some reason, PHP
is returning only the first 255 characters of the text from that field.
If I change the field type to TEXT, all of the data in that
try this
function randpassword () {
$length = 6;
srand((double)microtime()*100);
$string = '';
while(strlen($string) != $length) {
$type = rand(1,2);
if ($letterammount = 4) {$type = 1;}
if ($numammount = 2)
Here's a function you could use. The input from your form should be
email ($email in this script).
function valid_email($email)
{
// check an email address is possibly valid
if (ereg([EMAIL PROTECTED],
$email))
return true;
else
return false;
}
HTH
Steve Jackson
Web Developer
I tried it ; it doesn't work.
é ë è results into Ú Þ Ù standard, using htmlentities
é ë è results into eacute; egrave; euml; using htmlspecialchars
é ë è results into %E9%20%E8%20%EB using rawlurlencode
The charset ISO-8859-1 (western europe) is supported
in my apache, php, and on
Maybe I'm missing something here ... but what is the point of trying to create a reference
to a new object ... it hasn't been ceated prior to make reference to. Can't you simply
create the new object and then make whatever (if needed) references?
--
Jason k Larson
Jens von Pilgrim wrote:
Hi,
Hello people,
I´m have a problem when work with date in a Firebird date field. By
default, Firebird set up the date format as month/day/year. I need date in
day/month/year format. In a Linux, i just add to the php.ini the following
line:
ibase.dateformat = %d/%m/%Y
But in a machine with
Hello,
Jason wrote:
JL Maybe I'm missing something here ... but what is the point of trying
JL to create a reference to a new object ... it hasn't been ceated prior
JL to make reference to. Can't you simply create the new object and
JL then make whatever (if needed) references?
Uhh... maybe I'm
This leads me to another question. If I have stored the date as an
epoch then is there a way using PHP and MySQL to say find all the
records that have been added this YEAR (not last 365 days)?
SELECT * FROM table WHERE YEAR(FROM_UNIXTIME(column)) =
YEAR(CUR_DATE());
Benchmark each method and
The problem here lies with the each function, I believe. I played with this for a minute
and that's where I ran into problems with unexpected behaviour. Regardless, I was able to
get expected functionality using foreach instead of the while loop. While foreach isn't
available in PHP3 it is
Hi all,
is it possible to know in PHP if the client hit the stop button or close the
browser ?
Here is what I read on a forum :
I was told you cannot when I asked 'way back when.
When the user hits stop, the pipe is broken.
Apache will attempt to spit out some more data, and
They are not on the same server...that is the problem.
They used to be on the same server, but I have had to move the application to a
physically different server with a different DNS than the DB Server.
So, on the surface, it would seem that I should just replace 'localhost' with the dns
name
Manual - Features - Connection handling
Benja wrote:
Hi all,
is it possible to know in PHP if the client hit the stop button or close the
browser ?
Here is what I read on a forum :
I was told you cannot when I asked 'way back when.
When the user hits stop, the pipe is
Oups... I missed that register_shutdown_function function.
Thanks Marek.
Benja.
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Manual - Features - Connection handling
Benja wrote:
Hi all,
is it possible to know in PHP if the client hit the stop button or close
the
On Friday 28 March 2003 21:06, Roberts, Mark \(Tulsa\) wrote:
They are not on the same server...that is the problem.
They used to be on the same server, but I have had to move the application
to a physically different server with a different DNS than the DB Server.
So, on the surface, it
Can GD library produce animated gif's?
Sorry. Maybe I should read more carefully. I skipped 'animatd' for some
reason? Still, no, GD won't produce animated GIFs.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Okay, I understand more now ...
I played with this for a couple of minutes and can see exactly where is acting odd, which
is exactly where you indicated. :) I tried a couple of things to keep the instance of the
object, but the variable keeps getting set back.
One thing I did that worked was
The past problem was solved via this group with in minutes and I just
want to say thanks on that.
The latest problem is a script that takes incoming emails to a certain
address and puts them in the database. I included the script below
called 'Gateway.php'.
This worked great on my local
There's a section on Freshmeat about the ImageMagick project with further links:
http://freshmeat.net/projects/imagemagick/?topic_id=100
Given your previous comment it's tempting to say that a search on Google for
'ImageMagick' would, er - well - but I'll resist :-)
Regards,
Michael
Can GD
Your remote server has PHP/MySQL setup?
Your DB hostname may be different from Localhost but basically your php
connection string should just reflect what host username and password
you need to use to connect to your DB. DNS has nothing to do with it.
For example this function will connect to
Hello Rich,
Thanx for the reply.
But i should have cheked my code better.
The piece of code was stuck in a for loop that's
why the ',' was removed from every slideimages[$x].
$string = substr($string,1); works great though..:)
grtz,
Thijs
-Oorspronkelijk bericht-
Van: Rich Gray
hi,
just wanna know if there is anything in php that can be used (besides sessions) to get
anything from the $_SERVER that is unique and gets changed each time we close the
browser. anything at all to check if the user has closed the browser.
regards
Haseeb
If you set cookie with lifetime set to 0, the cookie is erased. Sure
this will work only if the user has cookie enabled
Haseeb Iqbal wrote:
hi,
just wanna know if there is anything in php that can be used (besides sessions) to get
anything from the $_SERVER that is unique and gets changed each
use usort
neko wrote:
Hi Guys, Just after some experience...
What's the best way to sort an array of objects by one of their attributes,
accessed by $obj-getFoo() (its a number) ? I was thinking a bubble-sort,
making multiple passses and switching array elements until there are no more
switches
While your script is running, you can use connection_aborted() to see if the
user has clicked the stop button or closed the window. After your script
finishes, though, then you have no way of knowing unless you use a session
cookie, which will be destroyed when the browser is closed.
---John
My guess is you have register_globals off. You need to use
$_GET['get_variable'] or $_POST['post_variable']
?php
echo $_GET['get_variable'].'br';
echo $_POST['post_variable'].'br';
?
form action=?= $_SERVER['SCRIPT_NAME']
??get_variable=hello+i+am+a+get+variable method=post
input type=text
Hi Haseeb,
if i can get something from user end that is unique
for that user.for e.g. his/her IP .
Firstly, an IP address can be shared between multiple users, or it can
change constantly for one user.
Here's what a page request from an AOL user looks like (I've snipped the
request paths,
i just want to figure out a way by which i can stop session theft.i
thought
if i can get something from user end that is unique for that user.for
e.g.
his/her IP .but it will not work when they are behind firewall.they
will be
assigned same IP.is there a way for me to get the IP
i just want to figure out a way by which i can stop session theft.i thought
if i can get something from user end that is unique for that user.for e.g.
his/her IP .but it will not work when they are behind firewall.they will be
assigned same IP.is there a way for me to get the IP
check into forcing the use of trans_sid
Jim
- Original Message -
From: Haseeb Iqbal [EMAIL PROTECTED]
To: PHP General list [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 8:48 PM
Subject: [PHP] Session Theft
i just want to figure out a way by which i can stop session theft.i
thought
if
i just want to figure out a way by which i can stop session theft.i
thought
if i can get something from user end that is unique for that user.for e.g.
his/her IP .but it will not work when they are behind firewall.they will
be
assigned same IP.is there a way for me to get the IP
You can give the users the oportunity to turn ip check on (a checkbox in
the login form). There is also a header that is set by many proxies to
the ip address of the client, but I don't remember its name (maybe
(X-)Forwarded-For)
Haseeb Iqbal wrote:
i just want to figure out a way by which i
For the form:
for ($i=0;$i=59;$i++) {
echo trtdinput type=text name=myfield_.$i.
value=.$somedata[$i]./td/tr;
}
For the post back:
for ($i=0;$i=59;$i++) {
$somedata[$i] = $_REQUEST['myfield_'.$i];
}
aap
Daniel Harik wrote:
Hello guys,
I'm trying to make grid form that will allow to edit
This is untested, but I seem to recall doing something like this on a
project last year.
form method='post' action='/process.php'
!-- row #1 --
input type=text name='row[0][id]'
input type=text name='row[0][name]'
input type=text name='row[0][company]'
input type=text name='row[0][title]'
br
!--
On 28-Mar-2003 Daniel Harik wrote:
Hello guys,
I'm trying to make grid form that will allow to edit 60 rows at the same
time, it's not hard to make a loop that would go from 0 to 59, but
my problem is that i don't know what rows to update as i see no way to
find
row's id after form is
Then append the id to the input name.
e.g. For the input form:
while (odbc_fetch_row($rs)) {
echo trtdinput type=text name=myfield_.odbc_result($rs, ID).
value=.odbc_result($rs, MyFieldValue)./td/tr;
}
And to read the data:
while (odbc_fetch_row($rs)) {
$sql = update MyTable set
Hi, when I am parsing an XML document, it doesnt parse paragraphs that have
line feeds correctly. For instance, if the tag is
Descriptionline 1
line2
line3
/description
it loses everything before line 3 . seems to take the line feeds as a new
node or something.
does anyone have any tips to get
Hi,
I have a script that allows the user to upload a file. Sometimes the
files are going to be rather large (in the order of 60Mb). I know that
this is very dangerous but only trusted users will be able to upload
since they have to login through ssl and the entire session is
I'm trying to use the xslt_* functions, but I can't get any decent error
messages out of them. I've used the XML and XSL I'm passing it in IE, and
it gets processed and transformed correctly. The only error I get is:
Warning: Sablotron error on line 1: XML parser error 4: not well-formed
I have a ClassA file and a ClassB file stored in
separate directories. I am trying to get ClassB to
initiate a ClassA object. But since they are stored
in seperate directories I get an error.
So I tried including the ClassA file in ClassB
constructor:
function ClassB()
{
-Original Message-
From: Daniel Harik [mailto:[EMAIL PROTECTED]
Sent: 28 March 2003 18:55
Jim Lucas wrote:
This is untested, but I seem to recall doing something like
this on a
project last year.
form method='post' action='/process.php'
!-- row #1 --
input type=text
The problem that I am facing is that I can get the script/browser/php
to pass such large file. I have modified the upload_max_size variable
in
php.ini to be larger the 60Mb but this still does not help!
Is there any hard limitation that I am unaware of?
You'll probably need to adjust the
How can I remove all line feeds from a document?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 28 Mar 2003 12:39:10 -0500
Larry E. Ullman wrote:
memory_limit = 8M ; Maximum amount of memory a script may
consume
(8MB)
Does this mean that the content of the entire file will be stored in
memory before it is written to disk?
Thanx
--
Hi,
I'm a PHP developer in Louisville, KY interested in forming a PHP
developers group. Currently, we have three individuals signed up at
http://php.meetup.com but we need at least 5 to go forward with a first
meeting.
If you're interested, please sign up. It should be a lot of fun.
- Original Message -
From: Atif Jakupovic [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:14 PM
Subject: [PHP-INST] PHP: Cannot send session cookie - headers already sent
by
Please, could you help me to find out why I'm getting an error message
like one below.
Warning:
At 3/28/2003 10:26 AM, Diksha Neel wrote:
i have a simple program to open and write a file.
but the file is not getting created.
can anyone please spot the mistake?
?php
echohi?how are u doing??;
$fp = fopen (sandrew.html, w);
string=htmlheadtitlehi/title/headbodyi am
$string =
What is the e-mail to unsuscribe of the mailing-list?
-
Yahoo! Messenger
Nueva versioacute;n: Super Webcam, voz, caritas animadas, y maacute;s #161;Gratis!
At 3/28/2003 11:32 PM, Philip J. Newman wrote:
Whats the best way to make a random password with 4 letters and 2 numbers?
I don't know what the best way is, but I had fun doing this one. I filled
the first 4 elements of an array with random letters by using the minimum
ASCII value of a letter
On Fri, 28 Mar 2003 19:42:06 +0100 (CET)
Orlando Pozo wrote:
What is the e-mail to unsuscribe of the mailing-list?
[EMAIL PROTECTED]
pgp0.pgp
Description: PGP signature
Try using the command line sablot sabcmd to parse the xsl file and see
if you can get any info on the well-formness of the file. If you dont
have the command line version I suggest downloading an application that
does xsl verification.
You could also send post the file so that we can review the
I've got sabcmd and it is giving the same message. I've got about 3 hours
experience with XSL, so if this file is bad, let me know. Also, do you have
a recommendation for an xsl/xml validator? This XSL file works for me in IE
if I return my XML to the browser along with the tag ?xml-stylesheet
Hi, I am getting data from a database, containing special characteres (in
spanish). After that, I want to write down this data to an ascii file
(.cvs), but when that is done the resulting strings does not keep the same
special characteres instead of that appear strange characters. Here I want
to
Hi, I am getting data from a database, containing special characteres (in
spanish). After that, I want to write down this data to an ascii file
(.csv). When this file is open with excel, the resulting data on cell
(strings) does not keep the same special characteres instead of that appear
Anyone ever encounter a 503 server error when trying to open a stream to a mailbox
using imap_open? If so, anyway to fix it?
Thanks,
Brian
Does anyone know of an open source webeditor that I
can use to enter information into a text area field.
I have a custom CMS and I would like to add webeditor
functionality to the textarea fields
__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA
Is there anyway to get the HTTP Server Username (something like
$_SERVER['username']) I tried printing all the variables defined in a
page (and looking at a phpinfo.php) and wasn't able to figure it out...
--
Mike [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To
you missunderstood my example then.
then 1,2,3,4,... is only for the array, you wont be setting that with the
result set from the db call. the id from the db call with be the value of
row[1][id] on the process page.
just think of it as a multidia indexed array
Jim
- Original Message -
you don't understand how this works then...
Jim
- Original Message -
From: Ford, Mike [LSS] [EMAIL PROTECTED]
To: 'Daniel Harik' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 9:44 AM
Subject: RE: [PHP] Grid edit form
-Original Message-
From: Daniel Harik
On 28-Mar-2003 Mike wrote:
Is there anyway to get the HTTP Server Username (something like
$_SERVER['username']) I tried printing all the variables defined in a
page (and looking at a phpinfo.php) and wasn't able to figure it out...
--
Mike [EMAIL PROTECTED]
$_SERVER['PHP_AUTH_USER'];
I would like to check that a string as more than 20 charactors in it. Can
someone point me in the right direction.
Thanks ..
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.php.net/manual/en/function.strlen.php
Kirk
I would like to check that a string as more than 20
charactors in it. Can
someone point me in the right direction.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Steve, et al --
...and then Steve Jackson said...
%
...
% // check an email address is possibly valid
% if (ereg([EMAIL PROTECTED],
% $email))
...
You could just downcase the address and save some chars; email is
case-insensitive.
You've left out the '+' character used for name+extensions
You could try this instead:
Checklogin.php
if (!$name || !password) {
$message = $enter_info;
}
if ($message){
include (login.php);
echo $message;
exit;
}
But the way you had it should work, you might just need to
global $message;
right before the echo in login.php in case it is
Can anyone help me out? I'm running PHP 4.3.1 on
Apache 1.3.23 with unixODBC 2.2.3. I'm using ODBC to
connect to my db2 database. I was testing out some
scripts that connect to a database to run select and
insert statements. When I run the scripts on my test
site (through the browser) everything
1 - 100 of 175 matches
Mail list logo