php-general Digest 18 Sep 2005 20:10:27 -0000 Issue 3689
Topics (messages 222588 through 222599):
Re: email validation regex
222588 by: bruce
Re: A dumb question - Regarding a php cms
222589 by: Dragan Stanojevic - Nevidljivi
Re: monthly statistics
222590 by: John Taylor-Johnston
Re: scrolling the table
222591 by: viraj
Re: It's A Windows World
222592 by: viraj
222595 by: Greg Donald
222596 by: Ryan A
222598 by: Robert Cummings
Re: imap_open
222593 by: viraj
mysql table row updation based on user input.
222594 by: babu
E-Mail
222597 by: All PTC
Re: Quick Poll: PHP 4 / 5
222599 by: Chris Shiflett
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
for one... as i recall...
email::valid picks up the fact that [EMAIL PROTECTED] is not valid
email::valid also permits you to have ip addresses in the domain section
email::valid also has in my mind a better grasp of the valid/invalid chars
for the username portion...
you mileage may vary..
-bruce
-----Original Message-----
From: Robert Paul [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 17, 2005 8:06 PM
To: [email protected]
Subject: Re: [PHP] Re: email validation regex
Well what does the aforementioned regex seem to miss that Email::Valid
catches?
--Rob
bruce wrote:
> i tried that one...
>
> it doesn't do as well as the perl... "Email::Valid" mod...
>
> i decided to write a quick perl script, and call it from the php app...
> seems to satisfy my needs for now... i haven't run across any php
> script/regex that's as comprehensive as the perl "Email::Valid"
>
> -bruce
>
>
> -----Original Message-----
> From: Robert Paul [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 16, 2005 7:13 PM
> To: [email protected]
> Subject: [PHP] Re: email validation regex
>
>
> http://www.iamcal.com/publish/articles/php/parsing_email/
>
> The author goes through RFC822 in detail and writes up a regex that
> validates emails based on that. It's worked in my experience, but I
> havn't exactly put it through its paces.
>
> --Rob
>
> bruce wrote:
>
>>hi..
>>
>>looking for a good/working/tested php email validation regex that conforms
>>to the rfc2822 standard.
>>
>>a lot of what i've seen from google breaks, or doesn't follow the
>
> standard!
>
>>any ideas/thoughts/sample code/etc...
>>
>>thanks
>>
>>-bruce
>>[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Troy Pieterman wrote:
Im trying to run Syntax desktop which is a php cms (on my own server
win2003).
In the installation readme it tells me to edit a cfg.php file, i have done
this but the cms still does not load, i have a feeling its becuase it dosnt
know where to load its files from, here is the code that tells it, its path
and relative path.
////////////////////////////////////////////////////////////////////////////
///
// AUTO CALCULATED VARIABLE
How do i write in there its "phisical path and relative path" are
c:\www\syntax desktop\
As I can see those are auto calculated and should not be touched... Your
problem probably lies somewhere else.
Did you get any error? What do server logs say? Do you get any output?
bye,
N::
smime.p7s
Description: S/MIME Cryptographic Signature
--- End Message ---
--- Begin Message ---
Hi,
Where could I find a monthly statistic plugin that can take my
`StampDate` field and generate monthy graphs of my primary key `id`?
I'm sure I,m not the first to ask? ;-)
CREATE TABLE `counter` (
`id` int(10) NOT NULL auto_increment,
`StampDate` date NOT NULL default '1999-12-31',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=26050 ;
John
--- End Message ---
--- Begin Message ---
this is not a php question..
why don't you google a little bit before make any posts to the list?
http://www.google.com/search?hl=en&q=DIV+tags
anyway, try CSS, you can achieve it using DIV and SPAN tags. do a
little R&D work.
happy scrolling!
~viraj.
On 9/16/05, R. Vijay Daniel <[EMAIL PROTECTED]> wrote:
>
> sir,
>
> how can i add scroll pan to a table in php.
>
> is that possible to scroll the html table like jtable in java.
>
> with regards
>
> vijay
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
no! it's not a Windows World anymore.. ;-)
http://news.netcraft.com/archives/web_server_survey.html
~viraj.
On 9/16/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> Howdy group!
>
> As many of you may or may not know, I made the switch to another company
> recently and it is a Windows shop (although I do have the IT Mgr. leaning
> heavily towards exploring *nix products soon). I have successfully
> configured a brand new W2K test server with IIS 5.0 and PHP 4.4.n (isapi
> config) with very little difficulty save for a RAID array issue during the
> W2K installation. This server matches the production box very well, save for
> the PHP install. One of these days, when time permits, I will move the web
> servers to Apache
>
> My question is this, are there any gotchas I need to be aware of when using
> PHP on windows? Any knowledge you could throw my direction on this would be
> grandly appreciated.
>
> Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On 9/18/05, viraj <[EMAIL PROTECTED]> wrote:
> no! it's not a Windows World anymore.. ;-)
>
> http://news.netcraft.com/archives/web_server_survey.html
And for those who need a second opinion:
http://www.securityspace.com/s_survey/data/200508/index.html
Not to mention it's very much a PHP world:
http://www.securityspace.com/s_survey/data/man.200508/apachemods.html
--
Greg Donald
Zend Certified Engineer
MySQL Core Certification
http://destiney.com/
--- End Message ---
--- Begin Message ---
> > no!
> it's not a Windows World anymore.. ;-)
> >
> > http://news.netcraft.com/archives/web_server_survey.html
>
> And for those who need a second opinion:
> http://www.securityspace.com/s_survey/data/200508/index.html
I would like to think I helped a bit in the above,
I always tell my clients to go for Apache as does the company I work for and
nearly
always the client listens to us :-)
I guess our contribution is not very very significant but hey....every drop
makes up the
ocean ;-)
Cheers,
Ryan
--- End Message ---
--- Begin Message ---
On Sun, 2005-09-18 at 03:18, viraj wrote:
> no! it's not a Windows World anymore.. ;-)
>
> http://news.netcraft.com/archives/web_server_survey.html
As much as I dislike Microsoft and its practices I bring bad news. The
above only indicates that it's not an IIS world. There's no breakdown of
hosting environment for apache :/
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
did you tried telneting to host's 143 port? if you are getting a
response from the IMAP server you better go through the php-imap
requirements, it's here..
http://www.php.net/imap
> ? I have got the address and the port to the imap server right, but I think
> that the imap server requires some sort of secure login. Could this be the
it depends,
http://www.php.net/manual/en/function.imap-open.php
~viraj.
> problem? If yes, how can it be solved? If no, what other causes could it be?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi,
i have a form for the user input with checkboxes and table rows for the user.
The user can select the checkboxes which correspond to table rows in database.
Depending on the selection of checkboxes i want to update the fields. For
example:
checkboxessubstrate_typesubstrate_numpixelprocess_classprocess_logoperatorcdatectimelocationdurationtemperaturepressureultrasonicsolventpedotsolutionsolution_tempsubstrate_tempmaskcomment
[input] S4350absorber annealingMM2017-09-0514:18:15LF02124000fdsg [input]
M2340pedot annealingMM0000-00-0014:22:03LF01223000saddddddDate*: [input]
(DD.MM.YY)
Time*: [input] (HH:MM:SS)
[input]
if the user selects some checkboxes and submits, then i want to take the
cdate,ctime in table and calculate the difference from the current date and
time,and enter the difference in duration.
The code for the above form is
echo '<link rel="stylesheet" type="text/css" href="sql-query.css">';
$link = mysql_connect('localhost', 'root', '');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
$db_selected = mysql_select_db('fmfgui', $link);
if (!$db_selected) {
die ('Can\'t use fmfgui : ' . mysql_error());
}
$res = mysql_query("select * from running_processes");
if (!$res) {
print "<p style=\"color:red;\">mysql error: ".mysql_error()."</p>\n";}
$ncols = mysql_num_fields($res);
print "<TABLE style='border: 1pt solid blue; border-collapse: collapse;
cell-spacing: 0px'>";
print "<TR>";
print "<TD style='border-bottom-style: double; border-left: 1pt solid
black; font-weight:bold; text-align:center'>checkboxes</TD>";
for ( $i = 0; $i < $ncols; $i++ ) {
$column_name = mysql_field_name($res,$i);
print "<TD style='border-bottom-style: double; border-left: 1pt
solid black; font-weight:bold; text-align:center'>$column_name</TD>";
}
print "</TR>";
print "<TR>";
while ($row = mysql_fetch_array($res)) {
$ncols = mysql_num_fields($res);
print "<TD style='border: 1pt solid black cell-padding: 3px'><input
type='checkbox' name=\"id[]\" value=\"".$row["id"]."\"> </TD>";
for ( $i = 0; $i < $ncols; $i++ ) {
print "<TD style='border: 1pt solid black cell-padding:
3px'>$row[$i]</TD>";
}
print "</TR>";
}
print "</TABLE>\n";
$tdate=date("d.m.y");
echo "<h4>Date*:<input type='text' name='edate' value='$tdate'>";echo
"(DD.MM.YY)";
echo "<br />";
$ttime=$ttime = date("H:i:s");
echo "<h4>Time*:<input type='text' name='etime' value='$ttime'>"; echo
"(HH:MM:SS)";
echo "<br />";
echo "<br />";
echo "<input type='submit' name='submit' value='submit'>";
echo "</form>";
The problem is if the user selects more than one checkbox then how can i write
the update command.
thanks
babu.
---------------------------------
How much free photo storage do you get? Store your holiday snaps for FREE with
Yahoo! Photos. Get Yahoo! Photos
--- End Message ---
--- Begin Message ---
Hi,
Ive recently installed the php script on my website. It all works perfectly well
except e-mails don't get through. E-mails don't ever get sent to new members,
and when I try sending messages from my admin section they don't send either.
Ive set-up the correct e-mail accounts and all details were entered correctly
when I set-up the database.
Have you any ideas how I could fix this. Thanks Alot.
Regards, Chris Satchwell.
--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
I don't agree with your position that the above code is incorrect
I think notices are fine for situations where you've probably screwed
up. I'd rather PHP let me know than do nothing.
I see this situation as being very similar to the following:
<?php
function foo(&$bar)
{
/* ... */
}
foo(3);
?>
This happens to throw a fatal error, which seems fine (mainly because it
always has, as far as I know, so no one can have working code that does
this sort of thing).
I'm curious to know whether you would also disagree that this code is
incorrect. I don't see a big fundamental difference, but I might be
misunderstanding something.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--- End Message ---