$your_timestamp+=gmmktime(0,0,0,1,1,1972);
Regards,
Andrey
- Original Message -
From: Dave Carrera [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 10:11 AM
Subject: [PHP-DB] How to add 2 years to todays date ?
Hi All
I think the subject line says it all.
At 10:19 18.03.02 +0200, Andrey Hristov [EMAIL PROTECTED] wrote:
$your_timestamp+=gmmktime(0,0,0,1,1,1972);
Try:
$your_timestamp =
mktime(date(H),date(i),date(s),date(m),date(d),(date(Y)+2));
Is there anything why this would not work?
Martin
Isn't the hack with gmmktime() faster? It is clean if the code knows what is 1,1,1970
and how Unixtime is measured.
Andrey
- Original Message -
From: Martin Schichl [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 10:29 AM
Subject: Re: [PHP] Re: [PHP-DB] How to add
At 10:35 18.03.02 +0200, Andrey wrote:
Isn't the hack with gmmktime() faster? It is clean if the code knows
what is 1,1,1970 and how Unixtime is measured.
Seems that you'r right, as
mktime(date(H),date(i),date(s),date(m),date(d),(date(Y)+2))
calls six times the function date ...
Martin
Hi
A variation
echo date(d/m/Y,strtotime(+2 years))
Tom
At 06:29 PM 18/03/2002, Martin Schichl wrote:
At 10:19 18.03.02 +0200, Andrey Hristov [EMAIL PROTECTED] wrote:
$your_timestamp+=gmmktime(0,0,0,1,1,1972);
Try:
$your_timestamp =
Hi,
I've been thinking about this for a while, and I think I'd get a lot of
value out of a library which builds user-input forms from scratch, based
on the MySQL table.
If I had a simple table for a CD catalogue:
id (INT 4)
artist_id (INT 4)
description (MEDIUM TEXT)
price (VARCHAR 7)
Then
Dear ?
I need to see how long it takes for my php-scripts to
execute, what can I do, doesn't PHP include a function
that will show that information?
Regards,
Stig
=
Stig Kronback Andersen
Drejervej 13, st
2400 Koebenhavn NV
Denmark
Phone: +45 35310382
E-mail: [EMAIL PROTECTED]
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Hi,
I've been thinking about this for a while, and I think I'd get a lot of
value out of a library which builds user-input forms from scratch, based
on the MySQL table.
If I had a simple table for a CD catalogue:
id (INT 4)
Hi,
I know it has been discussed before but I havent seen any working solutions.
My problem is that I need to force a dowload for Mac users / IE
and preferably also automatically let them open the file with stuffit expander.
(it works with files downloaded from a webpage/apache without PHP)
So
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Dear ?
I need to see how long it takes for my php-scripts to
execute, what can I do, doesn't PHP include a function
that will show that information?
Regards,
Stig
Not a specific function, but you could build your own; for
microtime() function's manual entry tells you exactly what you want to
do. :)
Niklas
-Original Message-
From: Stig Kronback [mailto:[EMAIL PROTECTED]]
Sent: 18. maaliskuuta 2002 12:00
To: [EMAIL PROTECTED]
Subject: [PHP] Timing PHP
Dear ?
I need to see how long it takes for my
Hello,
Anyone can please tell me how to store the row details fetched from
database to array so that to sort the same array after storing
-Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hey all
I want to convert 20020211150245 into 2002-02-11 15:02:45.
Does somebody have the correct conversion for this ?
If it is possible do the sorting in the SQL statement by using ORDER BY. SQL sorting
is much faster than in PHP.
However
while ($row= mysql_fetch_assoc($res)){ $rows[] = $row; }
Then you have many ways to sort. Look at : sort(), asort(), arsort(), usort(),
uasort() etc.
Best regards,
Andrey
The line you've marked prints the value attribute of $a-b-a, which is a
pointer to the base object ($a). You have just changed the value attribute
of this to 11 and it prints 11 ... what's wrong?
Tim Ward
Internet Chess www.chessish.com http://www.chessish.com
--
From:
On Mon, 18 Mar 2002, Andrey Hristov wrote:
AHIf it is possible do the sorting in the SQL statement by using ORDER BY. SQL
sorting is much faster than in PHP.
AHHowever
I have gone through that manual alreadybut i need to sort by php
sorting.
AHwhile ($row= mysql_fetch_assoc($res)){
Try ...
If ($result = ...)
{ ...
...
} else echo(mysql_error());
I always do querying like this anyway (without the error echo in live stuff
obviously)
Tim Ward
Internet Chess www.chessish.com http://www.chessish.com
--
From: Daniel Negron/KBE
Is there a way to get the name of a filed
from a variable pointing to some object?
Just to make myself understood:
class obj {
var $field;
function obj( $value ) {
$this-field = $value;
}
}
$o = new obj( field value );
How can i know, if possible, that the instance of
obj
I need to upload more than one file throught an html form.
I cannot create an archive first and then post it. I need to aperate directly
with the files the users want to upload.
how can I do this?
ther's any php trick or procedure to help me
many thanks in advance
Jena
--
PHP General Mailing
Hi,
I am using php 4.1.2 and I have 2 questions. :
1) How do I compile PHP not to depend on declared variables?
2) Assuming the above is possible, is this safe to do?
Regards, Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
error_reporting(); There's also an entry on php.ini to handle.
It is safe although I personally do not recommend. Undeclared variables
are a unexpected script behavior, it's good to know where your data is
coming from and/or not trust it. For example a GET paramenter might override
the value
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: 18 March 2002 08:20
$your_timestamp+=gmmktime(0,0,0,1,1,1972);
Well, that depends on your definition of year -- the problem here is that it makes
no allowances for leap years, so (for example) 2-mar-2003
Hi folks,
How do i get my script (run from the console and not from the browser) to
set sendmail_path = /var/qmail/bin/qmail-inject ?
Thanks!
DK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I am still searching for a function which is replacing all chars not between
[a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid
chars or just deleting them. There seems to be an endless amount of those
chars.
Thanx for any hint,
andy
--
PHP General Mailing
I am still searching for a function which is replacing all chars not between
[a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid
chars or just deleting them. There seems to be an endless amount of those
chars.
This grep pattern: [\x80-\xFF]
will match any high byte
Hi Uma,
you can use as in C language with index. $a[i]= $val;
i is index starts from zero.
For example u want to extract specific field from mysql database and
store it in array..
Let us assume num is a attribute name of the table heap.
It is showing Array probably because you do
echo $rows;
and because $rows is array you receive Array;
try
foreach($rows as $k=$v){
print \n[$k][$v]br;
}
Regards,
Andrey
- Original Message -
From: Uma Shankari T. [EMAIL PROTECTED]
To: Andrey Hristov [EMAIL PROTECTED]
Cc: [EMAIL
Hi!
I am a kind of newbie in PHP programming, but I have found an interesting
problem and some php guys I know were unable to help me to solve it. So I am
coming here with my question...
I have written a little more advanced counter, which should be included in
other PHP scripts in website.
It
found it:
# remove all others
$filename = ereg_replace ([^a-z^0-9^-], , $filename);
cheers,
andy
Andy [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
I am still searching for a function which is replacing all chars not
between
[a-z] for
»andy« sagte am 2002-03-18 um 14:22:47 +0100 :
Hi there,
I am still searching for a function which is replacing all chars not between
[a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid
chars or just deleting them. There seems to be an endless amount of those
chars.
get_object_vars(),
get_class_vars(),
get_class_methods()
Andrey
- Original Message -
From: Filippo Veneri [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 1:28 PM
Subject: [PHP] object reflection in php?
Is there a way to get the name of a filed
from a variable
At 18.03.2002 14:54, you wrote:
Even if I did´nt look closely at your code, I would suggest, that
you decrease the amount of data, diferent tables to one table.
You set an cookie, therfor you have the same effect as if you use sesssion
vars.
So it´s easy to set and find the data, via cookie.
Who knows? It might. Its use is growing rapidly, and it's much easier to
learn. A few years ago the prospect would have been unthinkable, due to
the vastly greater supply of Perl CGI web apps and free libraries in
circulation. These days the advantage is not so strong. And PHP is far
Hi,
The extension of my PHP files are saved as .php3 on the server and they were
worked properly before. As the hosting server upgrade to PHP4 server, those
.php3 files seem don't work and only display the blank page.
Anybody know what problem is it? And how to config this problem?
Thanks
Hi there,
I did put a password via htaccess on my website to hide my testing
environment from other users. Now I discovered, that PHP can't read
imagefile information via getimagesize because it does not get access to
this dir anymore.
How could I add php as a user with propper password ?
On Friday, March 15, 2002, at 03:17 PM, Alain Dresse wrote:
I want to allow the users of my site to insert text with anchors, bold
and
italic html tags. I have filtered out all the other tags. I now want to
convert the other , , quote, double quote and to html entities. If
I use
the
I am developing and testing PHP on my local computer with MySQL server and PWS running
along with PHP. My hosting site runs PHP as cgi only.
What are the differences between cgi-based PHP and how I am running AND, what
pitfalls can I avoid in development to be sure I code in a way that the
On Friday, March 15, 2002, at 06:14 PM, cosmin laslau wrote:
Thanks in advance for whoever sees what I am sure is a glaring and
obvious flaw in the coding. I've been looking at it for an hours and
just can't get anything from where I'm standing, maybe a different
perpective will help.
You'll probably have the most success using the system() function to execute
the xcopy command. You shouldn't need to rewrite xcopy in php, seems like
overkill.
See: http://www.php.net/manual/en/function.system.php
Here's the result of C:\xcopy /?
XCOPY source [destination] [/A | /M]
$new = preg_replace('/[^a-z]/i','',$old);
Note that this will also get rid of the - in this case since you
specifically asked for something that got rid of everything not a-z
-Rasmus
On Mon, 18 Mar 2002, andy wrote:
Hi there,
I am still searching for a function which is replacing all chars
On Friday, March 15, 2002, at 06:46 PM, Edward Tanguay wrote:
I have this hosted at my ISP. The phpinfo() shows that they have:
Linux 2.4.3
PHP Version 4.0.4pl1
Sablotron XSLT support: enabled
Which annotations are you refering to?
Ask them if they will upgrade to a PHP 4.1.x version,
On Friday, March 15, 2002, at 07:04 PM, Edward Tanguay wrote:
$doc = new_xmldoc('1.0');
$root = $doc-ad_root('sites');
$site = $root-ne_child('site','');
$site-new_child('title','PHP.net');
$site-new_child('url','http://www.php.net');
$site-new_child('description','The homepge of PHP');
»Rasmus Lerdorf« sagte am 2002-03-18 um 07:12:21 -0800 :
$new = preg_replace('/[^a-z]/i','',$old);
Note that this will also get rid of the - in this case since you
specifically asked for something that got rid of everything not a-z
Yes. And to not get rid of the -, you need to specify it
On Monday, March 18, 2002, at 05:03 AM, Jimmy Lantz wrote:
and preferably also automatically let them open the file with stuffit
expander.
(it works with files downloaded from a webpage/apache without PHP)
This feature depends on how the user has their browser preferences
configured. In
Hello,
We recently upgraded the php apache modules to include some bugfixes and
the wddx module, but phpinfo() does still show a compilation time of
August 1 2001 and the old compilation infos.
Where do I have to dig about that?
Please cc me as I'm not on the list.
Markus Bertheau
I'm receiving Parse error: parse error, expecting
`T_CONSTANT_ENCAPSED_STRING' in /host/plugged/index.php on line 3 error
This parse error states that the path to the script that generates the error
is /host/plugged...
contents of homedir.php is
?php
if (getenv(SERVER_ADDR) == 127.0.0.1)
On Monday, March 18, 2002, at 06:28 AM, Filippo Veneri wrote:
Just to make myself understood:
class obj {
var $field;
function obj( $value ) {
$this-field = $value;
}
}
$o = new obj( field value );
How can i know, if possible, that the instance of
obj pointed to by $o
I'm receiving Parse error: parse error, expecting
`T_CONSTANT_ENCAPSED_STRING' in /host/plugged/index.php on line 3 error
This parse error states that the path to the script that generates the error
is /host/plugged...
contents of homedir.php is
?php
if (getenv(SERVER_ADDR) == 127.0.0.1)
Erik Price wrote:
On Monday, March 18, 2002, at 06:28 AM, Filippo Veneri wrote:
Just to make myself understood:
class obj {
var $field;
function obj( $value ) {
$this-field = $value;
}
}
$o = new obj( field value );
How can i know, if possible, that the instance of
so whats the difference between yours and :
$filename = ereg_replace ([^a-z^0-9^/.^=^/-], , $filename);
Andy
Alexander Skwar [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
»Rasmus Lerdorf« sagte am 2002-03-18 um 07:12:21 -0800 :
$new =
Hi, I am new to this list and to PHP, so please excuse any newbie questions
:)
Want I need to know is how to get either the ISP or the IP of the visitor of
a page. I guess this is a environment variable, but I don't know which.
Any help is greatly appreciated :)
Thanx!
Ulrik
--
PHP General
Good day,
You'll need to check the documentation of your web server for that (or post
on the appropriate list).
You can use the phpinfo() function to see all of the environment values that
PHP sees.
Off the top of my head, I think Apache stores it in REMOTE_IP .
Why are you going through all of this trouble, exactly?
If you are looking to store the instance of the object in the databaes,
why not just use serialize()/unserialize()??
John
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 10:43 AM
use ? phpinfo() ?. you'll see all the variable in the http request
header.
-Original Message-
From: Ulrik Witschass [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to get the IP of a visitor
Hi, I am new to this list and to
John Coggeshall wrote:
Why are you going through all of this trouble, exactly?
If you are looking to store the instance of the object in the databaes,
why not just use serialize()/unserialize()??
John
If you're trying to map each object property to a specific table column
in a
On Mon, 18 Mar 2002, Stig Kronback wrote:
I need to see how long it takes for my php-scripts to
execute, what can I do, doesn't PHP include a function
that will show that information?
PEAR has a benchmark class which does just that:
$HTTP_SERVER_VARS['REMOTE_ADDR']
getenv(REMOTE_ADDR)
$REMOTE_ADDR
... there are others too
On the same topic, what do you folks think is the best way? meaning most
cross-platform functional, fastest (if at all important for this), anything
else that could help make a decision.
Sean
On Sun, 17 Mar 2002 [EMAIL PROTECTED] wrote:
input type=text name=name_of_var[] -- this is an arrayvaraible every
field the same name !
the form will then submit an (one) array, which could be stored in your
database
(For I´m not shure how it will be saved, I would save this array as an
On Mon, 18 Mar 2002, Ulrik Witschass wrote:
Hi, I am new to this list and to PHP, so please excuse any newbie questions
:)
Want I need to know is how to get either the ISP or the IP of the visitor of
a page. I guess this is a environment variable, but I don't know which.
Any help is
-Original Message-
From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]]
Sent: 18 March 2002 05:11
I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version.
But it seems that $_SESSION doesn't work, even in the
simplest samples
like;
I think this is acknowledged as broken
»andy« sagte am 2002-03-18 um 17:00:16 +0100 :
so whats the difference between yours and :
$filename = ereg_replace ([^a-z^0-9^/.^=^/-], , $filename);
You've got quite some ^ to much in there, I'd think. If I understand it
correctly, you'd also not remove the ^ character, because you've
Howdy all.
I have got the Sablotron XSLT extension working in Windows, but now am
having trouble getting it to work on my LINUX servers.
I have tried reading http://www.devshed.com/Server_Side/XML/XSLTrans/print
to find the answers (which I got from earlier posts), but it doesn't seem to
give
Hi,
I got a page that is being reloaded a lot. In the bigging I register a
Session variable with the SESSION_START and SESSION_REGISTER functions.
Is it wrong that I keep registering the session?
Should I also unregister the session at the bottom of the page?
Regards,
Morten
--
PHP General
not the session is registered but a variable in the session jar.
Andrey
- Original Message -
From: Morten Nielsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 7:45 PM
Subject: [PHP] Sessions
Hi,
I got a page that is being reloaded a lot. In the bigging I
Hi Justin,
You might want to take a look at CodeCharge (www.codecharge.com).
Thanks.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone have any suggestions for getting better reporting on a generic Parse
Error? Code is falling to the end of the script, and I can't find a problem
anywhere.
I looked on the PHP site for error reporting functions, but apparently they
do not handle Parse Errors.
Thanks,
-Mike
--
PHP
I have created a simple intranet server within my home for my family. I am
running Apache 1.3.23 and PHP 4. Everything works fine, except that I would
like to be able to tailor the main webpage to whichever person visits it -
but by using their windows login ID instead of having to get them to
[EMAIL PROTECTED] writes:
Hi,
I got a page that is being reloaded a lot. In the bigging I register a
Session variable with the SESSION_START and SESSION_REGISTER functions.
Is it wrong that I keep registering the session?
Should I also unregister the session at the bottom of the page?
Regards,
On Mon, 18 Mar 2002, Mike At Spy wrote:
Anyone have any suggestions for getting better reporting on a generic
Parse Error? Code is falling to the end of the script, and I can't find
a problem anywhere.
I'd guess you left a curly brace open. Try opening the file in an editor
that lets you
Good day,
It's not really possible to have an error reporting function on a parse
error. If there is a parse error, then the program can not be run, period.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
Hi, I'm trying to create an events page, where it shows the posted
events. I enter data using phpmyadmin. Currently, the ouput is like
this:
Conference in New York
2002-03-06
There is going to be a conference in New York next week.
This looks good, however when I try the examples I get:
%PDF-1.3 3 0 obj endobj 4 0 obj stream 2.834646 0 0 2.834646 0 841.89
cm 2 J 0.2 w BT /F1 5.64 Tf ET BT 11 -16.692 Td (Hello World !) Tj ET
endstream endobj 5 0 obj endobj 1 0 obj endobj 2 0 obj endobj
6 0 obj endobj 7 0 obj
On Mon, 18 Mar 2002, Mike At Spy wrote:
Anyone have any suggestions for getting better reporting on a generic
Parse Error? Code is falling to the end of the script, and I can't find
a problem anywhere.
I'd guess you left a curly brace open. Try opening the file in an editor
that lets
Since you're using phpmyadmin, I'm assuming you're using mysql. You could
use the built-in date and time functions to do the formatting when
selecting your date field. Check here:
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
mh.
On Mon, 18 Mar 2002, Ryan wrote:
Hi, I'm trying
Trying to use the COPY function to allow user uploads to a site,
along the lines of:
copy(temp directory, directory on my server).
However, I'm getting an error:
Warning: Unable to create 'directory/image name': Permission denied
in myPHPfile on line x (where x is the COPY function).
I've
I use string manipulation on the date, basically split it into $day, $month
and $year and use this to product formatted output.
Ben
At 17:51 18/03/2002, Ryan wrote:
Hi, I'm trying to create an events page, where it shows the posted
events. I enter data using phpmyadmin. Currently, the ouput
On Mon, 18 Mar 2002, Ryan wrote:
Hi, I'm trying to create an events page, where it shows the posted
events. I enter data using phpmyadmin. Currently, the ouput is like
this:
2002-03-06
I'm having trouble with the formatting of the date. I'm using the type
date with the function now,
Not sure exactly what your code is but if you try to pass a literal where a
reference type parameter is defined this produces a blank page.
function test( $var ) { echo $var }
if you call with test( hello ) you get NO output.
Ben
At 18:01 18/03/2002, Mike At Spy wrote:
On Mon, 18 Mar
On Mon, 18 Mar 2002, Ben Edwards wrote:
This looks good, however when I try the examples I get:
%PDF-1.3 3 0 obj endobj 4 0 obj stream 2.834646 0 0 2.834646 0 841.89
cm 2 J 0.2 w BT /F1 5.64 Tf ET BT 11 -16.692 Td (Hello World !) Tj ET
endstream endobj 5 0 obj endobj 1 0 obj endobj 2
Ryan [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi, I'm trying to create an events page, where it shows the posted
events. I enter data using phpmyadmin. Currently, the ouput is like
this:
Hi Guys,
I've been experiencing some problems when trying to build 3 arrays with the
ID values of all of the groups a user belongs to. (I then want to register
these arrays into the current session). The arrays only appear to be
getting the first value (group ID) instead of all of the values
sorry, should of made it clear I amusing FPDF (http://fpdf.org/) library
which looks like it douse the headers for you.
Ben
At 18:05 18/03/2002, [EMAIL PROTECTED] wrote:
On Mon, 18 Mar 2002, Ben Edwards wrote:
This looks good, however when I try the examples I get:
%PDF-1.3 3 0 obj
On Mon, 18 Mar 2002 11:51:07 -0600
Ryan [EMAIL PROTECTED] wrote:
By, the way I'm getting the date from a MySQL database. The posted date
variable is stored as the date type in the MySQL database so it comes
out like this 2002-03-06. Should I convert the date into a time stamp
or how should I
You have to call mysql_fetch_array for each record in your result set...
$emp_login_wkgrp_id = array ();
$emp_login_grp_id = array ();
$emp_login_role_id = array ();
$i = 0;
while($employee_2 = mysql_fetch_array($result_2)){
$emp_login_wkgrp_id[$i] = $employee_2[wkgrp_id];
I know I shouldn't be asking these questions on this mailing list but
you guys are ALWAYS EXTREMELY helpful...
1) I want a a text link to change color when the mouse is hovering over
top of it. How do I do this? Im sure it's some CSS thingy.
2) Is it possible to make a text field smaller
On Tuesday 19 March 2002 02:01, Mike At Spy wrote:
On Mon, 18 Mar 2002, Mike At Spy wrote:
Anyone have any suggestions for getting better reporting on a generic
Parse Error? Code is falling to the end of the script, and I can't
find a problem anywhere.
I'd guess you left a curly
I always use the mySQL DATE_FORMAT function in my queries themselves...
SELECT DATE_FORMAT( someDatField, %m/%d/%Y ) as thedate FROM someTable
At 12:23 PM 3/18/2002 -0600, Ryan wrote:
On Mon, 18 Mar 2002 11:51:07 -0600
Ryan [EMAIL PROTECTED] wrote:
By, the way I'm getting the date from a
Answers:
1. Yes you can do it with css. http://www.w3schools.com/css/default.asp
2. The text field area is defined by the browse...You cannot change the size
of the actual box that is the text field...
Thank you,
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-Original Message-
Good day,
Just to clarify, yes, you can set the size of a text field, as well as its
color, text font, border, and so on. This is also done with css and is
outside the scope of this mailing list.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 -
hi,
i'm trying to replace ever digit nondigit boundary with a ,
in a string. i'm trying to get \d\D to be replaced with \d,\D
and the reverse \D\d with \D,\d ... i'm not having any luck.
$digiword = 123joe123
$replace = preg_replace(/(\d)(\D)/,\\1,\\2,$digiword);
this ends up with
Actually,
If I understand correctly, you want the actual text field box to be the same
size as the text (as in height)...You can only change the width of the text
field which is done by size= and this is based on characters...
Example: input type=text name=stuff size=25
Then the width of
i can do this if i do it in two line..i'm wondering if it can
be done in 1 line.
the two lines:
$replace = preg_replace(/(\d)(\D)/,\\1,\\2,$digiword);
$replace = preg_replace(/(\D)(\d)/,\\1,\\2,$replace);
tia,
joe
Joe Rice([EMAIL PROTECTED])@Mon, Mar 18, 2002 at 12:39:17PM -0600:
hi,
CSS Hover example:
style type=text/css
a:link,a:visited,a:active {color: #213C4D; text-decoration: none;}
a:hover {color: #213C4D; text-decoration: underline; }
/style
As for the size of a text field, you can set it with SIZE= but note,
netscape and IE both interpret size VERY differently...
Hi, I am new... hope I am using this list correctly.
I am trying to test for a null value, and if it is null, then to use a
default value instead. The login page that I have, I want to show nothing
in the username field unless it is passed a username from another PHP page
via the header
if (!isset($login)){
echo login undefined;
}
Best regards,
Andrey Hristov
- Original Message -
From: Jesse Warden [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 9:09 PM
Subject: [PHP] Testing for NULL
Hi, I am new... hope I am using this list correctly.
On Saturday, March 16, 2002, at 09:04 PM, [EMAIL PROTECTED] wrote:
I have compiled php with the enable-trans-sid (for the site I am using I
can NOT use cookies)
when I start a session or store something in _SESSION['varname']
varname
can not be accessed on other pages
nor is
Hello All
It is quite off the topic. I think most of you work with form while you
are using PHP. Does anyone need to conform your form webpage to ADA
compliance? It is a U.S. Section 508 Guidelines for handicap people to
access the webpage. However, when it applies to the webpage that has
Mark,
I'm still experiencing the same problem. Only one record is being added to
the arrays. There are currently two records in the DB workgroups table
matching the WHERE emp_id='$emp_login_id criteria.
Here's the 2 records in the DB workgroups table:
FIELDS Value#1 Value#2
Hi Phil,
here's an answer to your first question. You can use colorchanging links
when put formatting code like this one:
a:link { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:black; text-decoration:none; font-size:13pt; }
a:hover { font-family:Arial Narrow,
On Sunday, March 17, 2002, at 12:20 AM, [EMAIL PROTECTED] wrote:
Roy Daniel , ST
IT Developer System - PT BERCA COMPUTEL
My E-mail : [EMAIL PROTECTED]
and : [EMAIL PROTECTED] / [EMAIL PROTECTED]
My ICQNumber : # 103507581
My Phone Cell : 0816-1192832
What embarrassing information to
1 - 100 of 183 matches
Mail list logo