Thanks for the replies guys - figured it out!
Using date() directly with strtotime() and the appropriate formating works
:)
date("D, \\t\h\e jS \o\\f M Y", strtotime($_SESSION['ExpiryTime']))
On Tue, Apr 23, 2013 at 12:16 PM, shiplu wrote:
>
> On Tue, Apr 23, 20
Yes,
strtotime() does convert the $_SESSION value to a unix epoc, as expected.
However, date_format still complains that the argument is a Integer value,
instead of a DateTime.
On Tue, Apr 23, 2013 at 12:09 PM, Stuart Dallas wrote:
> On 23 Apr 2013, at 11:07, "Chris Knipe
Hi All,
$_SESSION['ExpiryDate'] = "2013-04-23";
echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y");
Required Result: Mon, the 23rd of Apr 2013
I get however: PHP Warning: date_format() expects parameter 1 to be
DateTime, integer given in
I've had a look at the date/time functi
0.0.0.0 - 255.255.255.255 is denied
Na-uh. You want 0.0.0.0/0, which is valid. 0.0.0.0/24 isn't valid.
--
Regards,
Chris Knipe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
> Chris,
>
> 1) Shouldn't the OU security permissions be set within the AD itself?
> 2) If the above is done, then the user account that's being authenticated
> shouldn't be able to access privileged information.
1) Not sure. The permissions I'm after is similar to that of NTFS
permissions
se I'll have to code some
..NET application to act as a gateway between the PHP interface and Active
Directory, but naturally I would like to do as much as possible from within
PHP itself.
Many thanks,
--
Regards,
Chris Knipe
Aha :)
Thanks.
> -Original Message-
> From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
> Sent: 21 October 2005 22:04
> To: [EMAIL PROTECTED]
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Declaring vars as INT ?
>
> On Fri, 2005-10-21 at 21:39
Hi,
Uhm... Let's take the below quickly:
Function DoSomething($Blah) {
$Blah = (int) $Blah;
return $Blah
}
$Blah, cannot be larger than 2147483647, and sometimes, I get negative
integers back from the above function.
This is with PHP 4.4.0 on FreeBSD 5.4-STABLE. Can anyone else perhaps
co
Hi,
I'm not sure if round() is what I am after. I want to round whole numbers
to the closest 10 - thus, not decimals, etc.
For example.
11.23 = 10
14.76 = 10
15.23 = 20
18.53 = 20
Thanks,
--
Chris.
I love deadlines. I especially love the whooshing sound they make as they
fly by..." - Douglas Ad
[] was the answer... Something stupid sorted :)
--
Chris
- Original Message -
From: "Chris Knipe" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 17, 2005 1:16 PM
Subject: [PHP] something stupid... split().
Lo all,
echo ConvertTime($AcctSessionTime/90); # Returns: 03:17
Lo all,
echo ConvertTime($AcctSessionTime/90); # Returns: 03:17:46.77
I am trying to drop the .whatever.. Thus,
list($Duration, $none) = split('.', ConvertTime($AcctSessionTime/90), 2);
However, $Duration is empty, and $none has the whole string from
ConvertTime As I said, something
Had a fault in some globally included mysql structures... I don't know how
this happened, but my mysql_select_db seemed to have dissapeared. Thus
there was no database initialised, and hence all the queries actually did
not complete.
I sorted it out - it's all working now :) Thanks for the su
Lo everyone,
Can someone please perhaps just indicate to me what is wrong with the below
code? I am getting SQL Result errors, but all the queries executes
successfully.
Errors in browser:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in
/usr/local/www/v-we
> I can't wait for the replies...
Here's a reply:
Don't vote for Bush.
- Grant
I'm Canadian, please stop wasting my bandwidth.
I'm South African (and bandwidth is very expensive), please don't waiste
mine either *G*
--
Chris.
*
Lo all,
The software... FreeBSD4.9-STABLE, Apache 1.3.27, and PHP4 4.3.7 (From
Ports).
Everything compiles fine, running mySQL Client version 5.0
LDD shows:
[EMAIL PROTECTED]:/usr/local/libexec/apache# ldd
/usr/local/libexec/apache/libphp4.so
/usr/local/libexec/apache/libphp4.so:
lib
err
if ($_GET['value2'] == $DataRecord['Value1']) {
// do something
}
?
- Original Message -
From: "SASSINC Internet Solutions - Arabic Department"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 16, 2004 2:42 PM
Subject: [PHP] How to compare between two values
> form.php is this:
>
>
>
>
Learn to code html ;)
> takeform.php is this:
>
> echo $sentence;
> ?>
echo $_POST['sentence'];
> these codes are running at my hosting
> but it couldn't run on my computer. I tried on pws, apache, php 4.0.4, php
> 4.2.2 and php5 but it didn't work.
>
> why i
> one last question for the day...
> if in one cell i have two names. ex 'mary eleanor'
> and i want to search by typing 'ele' with name LIKE '$name%' will not
give
> me mary eleanor as a result...
> any ideas?
*sighs*
LIKE '%$name%'
As I said... Read the MySQL Manual.
--
PHP General M
- Original Message -
From: "Kevin Fradkin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 06, 2003 6:40 PM
Subject: Re: [PHP] mysql_query
> the problem is if i put 821000 i will have as result all number > 821000
> including 83
>
> and i only need numbers begining wi
> I am making an authorizatoin script for the control panel of a loggin
> system I have been writing. Here is what I have right now:
Well, if you copied and paste'd this, then I'm surprised that you don't get
a syntax error
> if (!$authorized) {
> header('Cache-Control: no-store, no-cach
Hi,
I know what the problem is, I also have no "cure" for it though - I'm still
investigating.
libcrypto (part of OpenSSL / SSH I believe) come standard with FreeBSD as
part of the source tree, installed in /usr/lib. There you should have a
libcrypto.so.1 & 2. SOMEWHERE a certain port also inst
Lo all,
Some input much appreciated. I upgraded mod_php4 from 4.2.3 to 4.3.2, and
needless to say, something went horribly wrong. PHP compiled without any
serious problems, and the installation seemed to have gone fine as well.
When issuing a apachectl restart, apache immediately core dumped... O
http://www.fingers.co.za/arb/mod_perl.jpg
If this starts a flame war, I'm going to be rather disappointed at people
that's not able to take a joke :P
I think it's hilarious though...
--
me
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Get mailing list software such as majordomo / mailman.
PHP isn't the best way to do these kind of things...
--
me
- Original Message -
From: "Jean Fábio Barros" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 10:59 PM
Subject: [PHP] WE NEED SOME ADVICES: Wha
You can also maybe look at client side SSL Certificates...
- Original Message -
From: "Chris Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 2:59 AM
Subject: [PHP] Computer Authorization
> Hello all,
>
> I am looking into an application that only specif
Lo all,
Is there any good already developed PHP based commerce solutions out there?
I'm preferably looking for something with catalogues (product pics,
descriptions, ratings, buyer comments, etc), online payment options, xml
support (to sell via partners for example), etc etc etc.
Thanks,
--
me
I believe you are looking for .
I may be mistaken though.
--
me
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 18, 2003 10:36 AM
Subject: [PHP] inserting
> hi to all,
>
> I'm having problem posting messages that have
Lo all,
Does anyone have some fonts or neat PHP code / classes to generate Code
128-type Barcodes? I'm preferably looking to get the barcode generated in a
PNG / GIF type format...
--
me
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if (!$_POST['Team_Name'] || !$_POST['First_Name'] || !$_POST['Last_Name'] ||
!$_POST['Email'] || !$_POST['Username'] || !$_POST['Password'])
header ("location: http://www.ultimatefootballleague.com/Create_Account.htm";);
}
Change to:
if (!$_POST['Team_Name'] || !$_POST['First_Name'] || !$_
Why not just use simple alias files?
1) You have a file with all your addresses
file.asc:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
etc
2) You have the alias entry
my-mass-list::include:/path/to/file.asc
3) PHP sends one email to [EMAIL PROTECTED]
4) The mail server (if it's any good), expand
oh gawd... get the spoons...
$query = mysql_query("select version as version")
while ($result = mysql_fetch_row($query)) {
// do a strcmp() or ereg() on $row['0']
}
- Original Message -
From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2
" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:19 PM
Subject: Re: [PHP] Upgrade issues
> Check the owners of directories and files, they must be the same as for
> /usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should
> work under
> safe mode too.
>
> > > > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php"))
{
> > > > $modpath = "themes/$ThemeSel/";
> > > > }
> > > >
> > > > I don't get it?
> > > >
> > > > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > > > /usr/local/www/v-webs/games.savage
> > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> > $modpath = "themes/$ThemeSel/";
> > }
> >
> > I don't get it?
> >
> > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 4
Lo all,
I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following
code is generating a WARNING???
if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
$modpath = "themes/$ThemeSel/";
}
I don't get it?
Warning: Unable to access themes/DeepBlue/modul
The IIS user running the web server on NT needs read/write permissions on
the file in the web server. By default, it only have read access to the
file...
- Original Message -
From: "Stephen" <[EMAIL PROTECTED]>
To: "Ivan Mareniæ" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sen
$sql = "query"
$result = mysql_query($sql)
while ($data = mysqlfetch_array($result)) {
echo $data['colum'];
}
- Original Message -
From: "Ben C." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 3:09 AM
Subject: [PHP] Using info from a MySQL Query
> I am
Nevermind,
It was due to a inconsistency in the DB It's sorted :P
- Original Message -
From: "Chris Knipe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 2:32 AM
Subject: infinate loops
> Lo,
>
> Quite desperate now
Lo,
Quite desperate now... Or at least, I'm starting to get there... Can anyone
perhaps see why this loop is not exiting???
$quit=$now;
$glet=getdate($row['RenewDate']);
// debug
echo "howlong: " . $howlong;
while($quit<$howlong) {
// debug
echo "quit: " . $quit . "";
$quit=mktime(0, 0,
Lo all,
I get a timeout on line 523 of my code (posted and marked below). However,
I fail to see where the timeout is occurring, and even debugging
(mysql_error()) doesn't report anything wrong!
I'm baffled as to what exactly is causing this timeout The code is
currently on Apache (Win32)
fopen()
Regards,
Chris Knipe
Cell: (072) 434-7582
MegaLAN Corporate Networking Services
/---
| This email is confidential and may contain legally privileged information.
| If you are not the intended recipient, you must not disclose or use
| the information contained in it. If you have
> You have an error in your SQL syntax near 'order=1 WHERE ID='2'' at line
> 2
ORDER is a reserved word in MySQL.
Change the query and escape order aswell
'order'='1' WHERE ID='2'
Or, rename the order column to something else.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Same here... Even though allot of people say it's not necessary...
- Original Message -
From: "Carsten Mohr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 18, 2002 5:22 PM
Subject: [PHP] Re: Help needed about queries with MySQL, thanks.
> Hallo,
>
> I don't know if it
$to = '';
while ($blah = mysql_fetch_row($ref)) {
$to =+ $blah['address'];
};
Be careful however. Most SMTP servers has a limit on the number of
recipients you can send one email to. It's a very easy way to trigger spam
alerts and stuff.
--
me
- Original Message -
From: "Roger Lewi
Erm, because that's the way it works?
Regards,
Chris Knipe
Cell: (072) 434-7582
MegaLAN Corporate Networking Services
/---
| This email is confidential and may contain legally privileged information.
| If you are not the intended recipient, you must not disclose or use
| the inform
> If you run your own server, you can set it up so that each webmaster is
> locked into a private environment, but it's messy. According to me, you
> would need a separate copy of apache for each site, each running under a
> different user, and they would need to run on separate ports, which is a
> >If I have say 20 web servers in a cluster behind something like a Cisco
> >LocalDirector, will session data remain constant over the 20 web servers
if
> >they use a shared NFS or similar mount to save session data on?
> Have a look at msession at http://www.mohawksoft.com/phoenix/
> It works ve
> Why not just add it to the httpd.conf, this would allow it to work within
the whole server
> And not just one director / vhost ect
Maybe he doesn't have access to alter server configurations? -eg-
--
me
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
Lo all,
if (getmxrr($DomainPart, $DomainMX, $Weight)) {
for ($Counter = 0; $Counter < count($DomainMX); $Counter++) {
echo "$DomainMX[$Counter] ($Weight[$Counter]) ";
}
}
How can I manage to sort $DomainMX from the lowest $Weight to the highest,
while still preserving the prope
SELECT RANDOM name FROM table
or
SELECT name FROM table ORDER BY RANDOM LIMIT 1
not tested, used at your own free will.
--
me
- Original Message -
From: "mm fernandez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 14, 2002 11:37 PM
Subject: [PHP] retrieving random da
> Does anyone have an idea, what might cause this problem?
> Could it be the ISP, or do i need to add additional info, when i call the
mail() function in order to send emails outside my network?
Could be your ISP...
> This is what i used to test if the emails get sent or not:
> mail([EMAIL PRO
Lo all,
Does anyone have some examples, ideas, or references on how to setup php's
safe_mode operation so that I can provide a reasonably secure environment for
hosting php3 and php4 (public web sites, with public users).
This is for a public type hosting environment, so I'll definately need to
On Thu, Jul 11, 2002 at 10:05:05PM -0400, John Holmes wrote:
> > DOes anyone know how to build a reminder application on:
> >
> > a) identified users
> > b) Sorting users' reminders??
>
> Yes.
You just couldn't resist, could you? ;)
I like it -g-
To be a bit more precise, the awnser's actua
On Thu, Jul 11, 2002 at 07:00:57PM -0400, Chris Earle wrote:
> -
> $myname = "Me Myself";
> $myemail = "[EMAIL PROTECTED]";
> $myreplyemail = "[EMAIL PROTECTED]";
> $contactname = "Mister Contact";
> $contactemail = "[EMAIL PROTECTED]";
That's ok...
> --
On Thu, Jul 11, 2002 at 08:59:28PM +0100, Chris Hewitt wrote:
> I have not responded to this before as I have not used EMBED or OBJECT
> tagss but I have used Manuel Lemos's smtpclass-2002-05-13.tar.gz and
> mimemessage-2002-06-08.tar.gz which are intended for html email. They
> are on phpclass
Have you perhaps tried rather sending the mail using MIMETools ?
There's a PHP class writen that's actually pretty good for sending MIME based
email... I'm not sure what it's called now, but I'm sure someone else on the
list will be able to elaborate on this.
On Thu, Jul 11, 2002 at 12:26:45PM
On Thu, Jul 11, 2002 at 02:29:11PM +0200, vins wrote:
> Hi... I've just checked out a script from hotscripts.com that send email
> from and smtp server...
The mail() does exactly the same Nothing fancy about it.
> I've managed to say the email has come from a server that doesn't exist
> bu
No you cant.
All Received:, Date:, Message-ID headers are added to the message at the
SMTP server... Hence, any halfly decent configured SMTP server will *always*
add those headers to *any* message.
If you have administration over the SMTP server, you can with allot of
tweaking configure the S
> local = '$local', city = '$city', postcode = '$postcode', id = '$id'";
> $sql .= "WHERE username='$username'";
This would be:
local = 'x', city = 'x', postcode = 'x', id = 'x'WHERE username='x'
Which is your fault.
> $sql .= "WHERE username='$username'";
needs to change to
> $sql .= " WHER
> When working with Boolean expressions in this way, deMorgan's laws often
come in handy; these state that:
>
> !a AND !bis the same as !(a OR b)
> !a OR !b is the same as !(a AND b)
>
> Hope this helps!!
I don't know who this deMorgan dude is, but that rule is being wri
Lo all,
Does mysql_real_escape_string exist? I've seen it in the manual pages, and
to my understanding, it is the proper function to call on strings to escape
them before inserting them into a database...
I've used it as follows:
$text[1] = mysql_real_escape_string($text[1]);
$details
Lo all,
Is there anyway to "manage" persistent connections to MySQL?
I've started using them on various of my sites (mysql_pconnect instead of
mysql_connect - as in the documentation), but after a few hours, I notice
that the connections just keeps on getting more and more and more.
Eventually,
Not as far as I know.
But the PHP script may very likely be able to send a message to a SMS
Gateway...
SMS messages doesn't run on TCP/IP (Your cell phone doesn't have a IP
Address).
Kind Regards,
Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854 7064
Cell: +27 7
print NEWFILE $_ . "\n";
Then :P
This isn't a perl list, it's off topic. Just thought it might help if I
added this to the pool Let's rather not go into a in depth discussion
about it... I'm no perl guru either.
Kind Regards,
Chris Knipe
MegaLAN Corporate N
Perl apparently also works very nice for this
open (FILE, "filename"):
open (NEWFILE, "filename);
WHILE () {
chomp;
print NEWFILE $_
}
close (FILE);
close(NEWFILE);
this should take care of ^M
Kind Regards,
Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854
www.google.com / www.freshmeat.net
Kind Regards,
Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854 7064
Cell: +27 72 434 7582
- Original Message -
From: "savaidis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 08, 2002 5:
Awesome :-)
Glad to have been able to help...
--
me
- Original Message -
From: "juaid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 9:22 PM
Subject: [PHP] string convertion to time & substracting
> Well, I got all working now and calculating the duration wit
PHPIRC or something
similar, which uses a IRCD server as a backend to the PHP interface for
chatting - it's on freshmeat.net the last time I looked...
Kind Regards,
Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854 7064
Cell: +27 72 434 7582
- Original Message -
From
> where $month, $day and $year are got from a form in the previous page via
> POST method.
> So the LIKE condition matches against the "date" field in the table, where
> the format is like "Jun 7 2002"
>
> if I switch connTime, startTime and stopTime to TIME types, I get the
error
> I said
>
> I'l
- Original Message -
From: "John Holmes" <[EMAIL PROTECTED]>
To: "'juaid'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 8:29 PM
Subject: RE: [PHP] convertion from string to time & substracting
> That error means your query failed and the result set is not valid.
> > Talking under correction, but you'll be better of using a TIME column in
> > MySQL. You can also do all the calculations with MySQL's build in time
> > functions already, which will save you allot of time, seeing that all
the
> > calculations can be done via a single SQL query.
>
> Yes, this
Talking under correction, but you'll be better of using a TIME column in
MySQL. You can also do all the calculations with MySQL's build in time
functions already, which will save you allot of time, seeing that all the
calculations can be done via a single SQL query.
--
me
- Original Messag
>The problem being now I am getting a parse error on lines 30.
Line 29, 30, and 31 is where exactly in all this??
Kind Regards,
Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854 7064
Cell: +27 72 434 7582
- Original Message -
From: "Anti-Blank" <[EMAI
*urgh*
So off topic it's not funny http://www.microsoft.com/vbscript /
http://www.microsoft.com/jscript/
I might not be 100% correct on the urls. Just search for VB / JS Script
Refence at microsoft.com
Kind Regards,
Chris Knipe
MegaLAN Corporate Networking Services
Tel: +27 21 854
OOOH, but everyone does such a fine job!!! *eg*
Can anyone help me and tell me how to switch a computer on?
-hides before he starts some arb war or something-
And yes, for the curious or missing minded, that was a joke...
--
me
- Original Message -
From: "Scott Hurring" <[EMAIL PROT
'.mysql_result($resultado,
$cont,$letra).'');
} else {
echo(' '.mysql_result($resultado, $cont,$letra).'');
}
$cont++;
}
echo("\n ");
}
}
+++
> But, how can i return the selected item value into
> echo "";
> echo" function pop1() {";
> echo" window.open(\"info.php?prod_id=$result[0]\"); }"; \\ $result[0] is
> variable that stores id of the image in database
> echo "";
>
> I am calling this function in the following manner: echo" onclick=\"pop1();\"";
^
You're not pass
Have you tried using $_SESSION['bgcolor'] = "bleh"
It might work... who knows...
- Original Message -
From: "dan radom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 8:36 PM
Subject: Re: [PHP] am i just a session tracking idiot?
> what's weird is that if i s
Yeah, agreed there!!!
You're not supposed to specify a name on a option, just on the select
itself. I've changed it now to use the array bit, and the form results
return it as a array as expected.
Thanks for all the help... I think it's time to download a new copy of the
manual again... :)
-
Thanks everyone!! Appreciate it
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Chris Knipe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 7:18 PM
Subject: Re: [PHP] multiple selects and $_POST[
Lo all,
How do you manage multiple selects and the data returned by the form?
All my attempts at doing this, only returned one variable from the selected
options, not all of them??
My test...
1
2
3
4
5
blah.php:
echo $_POST['bleh'];
$_POST['bleh'] would only have
headache now as well, which just isn't
helping right now... *shrugs*
Any ideas?
- Original Message -
From: "Dan Nelson" <[EMAIL PROTECTED]>
To: "Chris Knipe" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June
hey everyone,
Does anyone have and ideas of wisdom on how to compare arrays (mysql result
sets) and group items based on if they exist in two or more arrays?
For example:
I have a table, with a list of servers:
server1
server2
server3
server4
server5
...
serverX
I have a table that specifies w
Hi all,
anyone know of any good pre-written classes or functions to work with IP
address space?
I'm looking for things which can verify correct notation of IP addresses
(fine, that's easy enough), but also verify things like network addresses,
broadcast addresses, and work out subnet masks when
Hiya, me again :-)
Is it possible to expire certain session data, while still keeping the
session itself in tact?
Example...
$_SESSION['AlwaysTrue'] = "True";
$_SESSION['ExpireThis'] = "10:20:00";
At 10:19:50 the session is registered. AlwaysTrue must remain True for as
long as the session it
Didn't do the trick
But it did point my towards mysql_data_seek, which did the job beautifully
:)
Thanks
--
me
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Chris Knipe" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Hi all,
Howcome, when I do a SQL lookup, I can only access the array once?
Say, I have...
--
me
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
look through the mysql manuals...
It is mentioned there, with examples.
Kind Regards,
Chris Knipe
MegaLAN Corporate InterNetworking Services
Tel: +27 21 854 7064
Cell: +27 72 434 7582
- Original Message -
From: "PHP User" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
if there is no otherway to do it, then I guess this would have to
do
Kind Regards,
Chris Knipe
MegaLAN Corporate InterNetworking Services
Tel: +27 21 854 7064
Cell: +27 72 434 7582
- Original Message -
From: "Nathan" <[EMAIL PROTECTED]>
To: "Chris Knipe"
Hiya all,
Stock standard, and from most of the examples I've seen, standard MySQL
lookups via PHP utlises a while look to retrieve the data. All very nice
and well yes... But what if there is no data?
Here's a little example of what I want to do...
// Check for inportaint notices for the c
Ok,
Let's see if I learned anything
- Original Message -
From: "Jas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 2:30 AM
Subject: [PHP] sessions
> $msg = "You have been authorized to make changes to
the
> web site.";
> session_is_registered('u_name');
>
> if ($VerifyPasword[ContactID] = $_SESSION['ContactID'])
>
> This statement is /always/ true if $_SESSION['ContactID'] is non-zero, or
> non-empty.
>
> If your code is copy-and-paste then the error is most likely because you
used
> a single 's' in $VerifyPasword[ContactID]. And also is better t
> I am not an expert at PHP / MySQL. To me it would sound like the
> one = is assigning the $VerifyPasword[ContactID] whatever is in
> $_SESSION['ContactID'] which would mean that the else part would never be
> executed. Honestly though, there is a lot that I don't know. I know very
I
93 matches
Mail list logo