It doesn't have a use in only PHP but in all programming languages.
It's a math thing .. u can get a remainder of a division.
10%8 = 2
12%8 = 4
10%5 = 0
12%5 = 2
Simple application:
$ppl = 23;
$grpsize = 7;
echo ("when $ppl people are divided over groups of $grpsize, ".
$ppl%$grpsize ." people
This will store a cookie with a userid and an unique number ($token) as
session-id (??).
If I'm not mistaken, this session-id is not checked here. Thus serves no
purose. Anybody who retrieve the cookie from the cookie file on the system
can use it to resume the session (if done within the set
sterlingSun Feb 4 01:19:01 2001 EDT
Modified files:
/php4 TODO
Log:
Add a bunch of stuff..
Index: php4/TODO
diff -u php4/TODO:1.109 php4/TODO:1.110
--- php4/TODO:1.109 Wed Jan 24 11:16:43 2001
+++ php4/TODO Sun Feb 4 01:19:01 2001
sterlingSun Feb 4 01:20:31 2001 EDT
Modified files:
/php4 TODO
Log:
# *Brain Fart*
Index: php4/TODO
diff -u php4/TODO:1.110 php4/TODO:1.111
--- php4/TODO:1.110 Sun Feb 4 01:19:01 2001
+++ php4/TODO Sun Feb 4 01:20:31 2001
@@ -71,7
Eelco de Vries wrote:
This will store a cookie with a userid and an unique number ($token) as
session-id (??).
If I'm not mistaken, this session-id is not checked here. Thus serves no
purose. Anybody who retrieve the cookie from the cookie file on the system
can use it to resume the session
I had a problem similar to this myself a while ago...
I don't believe the issue is with the differing versions of PHP, but rather
with the improper escaping of the quote characters.
There are two PHP functions:
addslashes() and stripslashes()
Call the former when you submit the information to
In case of login/password required sites, I use the login and
password as
cookie values and have _no_ expiredate set. Every time a request is made
_both_ cookie values (login and password) are checked with that on the
server.
I would hope that you are not storing and matching the
$size = getimagesize($Frame."top.gif");
I think you should read this :
http://www.zend.com/zend/tut/using-strings.php
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: [EMAIL
try setting error_reporting(0) in PHP.ini
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Dundee (Roland) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 04, 2001 5:35 AM
To:
Well, I'll contribute to the discussion whether you like or not...
For a year I was running a website on Canaca.com (former Nortel.no) ...
They've been nice, I though ...
Then I once tried one weird thing:
?='PRE'.show_code('/usr/local/apache/conf/httpd.conf').'/PRE'? from a
simple PHP page ...
Use cron ...
Search archives for something like "running PHP with cron"
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: FredrikAT [mailto:[EMAIL PROTECTED]]
Sent: Sunday,
rasmus Sun Feb 4 02:05:13 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
doc account for Andre Roque
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.71 CVSROOT/avail:1.72
--- CVSROOT/avail:1.71 Fri Feb 2 08:31:32 2001
+++
rasmus Sun Feb 4 02:07:49 2001 EDT
Modified files:
/CVSROOTavail gen_acl_file.m4
Log:
Karma for Vlad
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.72 CVSROOT/avail:1.73
--- CVSROOT/avail:1.72 Sun Feb 4 02:05:12 2001
+++ CVSROOT/avail Sun Feb 4
rasmus Sun Feb 4 02:10:57 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
doc account for Eduard Hergenroeder
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.73 CVSROOT/avail:1.74
--- CVSROOT/avail:1.73 Sun Feb 4 02:07:48 2001
+++
Ok,
I've got an email address setup to pipe to a PHP script setup to handle the
request and do whatever I need to. (In my specific situation, it's a help
email address, and will create a ticket in a database.)
As a test, I'm opening the STDIN data stream and writing it to a file to
make sure
# This is the standard input script.
$fp = fopen("php://stdin","r");
$writer_file = fopen("test.txt","w");
fwrite($writer_file,"$fp");
fclose($writer_file);
fclose($fp);
?
As stated, it does create the test.txt in the specified location,
however,
upon inspection of the file, it only
Yes, I know it should be written correctly from the beginning. But, in case
it isn't: what do you use to format ugly looking scripts?
Maciek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
On Sunday 04 February 2001 07:31, John Luxford wrote:
function foo ($hash) {
while (list ($k, $v) = each ($hash)) {
echo "$k :: $vbr /\n";
}
}
// but what I want to say is something like this
foo (["one" = "value", "two" = "value"]);
foo () is
On Sunday 04 February 2001 05:03, John Hinsley wrote:
Well, my home server is a wimpy P90 with 48MB RAM. It serves as web
server (all my technical docs, php website testing, more), web cache
[...]
else :) Ah, yes. MySQL for my php stuff also runs on it.
That's pretty impressive!
Well,
Hi,
I've just started experimenting with ob_start("ob_gzhandler") a bit, and I
have found that if any output is generated before ob_start() is called,
nothing at all gets compressed; if ob_start() is called before any output,
everything is compressed.
Is this the case, I mean, is this "by
I've just started experimenting with ob_start("ob_gzhandler") a bit, and I
have found that if any output is generated before ob_start() is called,
nothing at all gets compressed; if ob_start() is called before any output,
everything is compressed.
Is this the case, I mean, is this "by
Can someone please help me with this code I'm having major problems with
arrays. This code is part of a function I'm writing to deal with an array
returned from a HTML form of check boxes so if anyone has an example of this
sort of thing I'd appreciate a look at it. Anyway Code follows :
Rasmus,
Thanks for the clarification; it seems obvious, too, that mixing compressed
and non compressed content would be quite difficult to implement; at least
it would partially compromise the speed/size gain because of added protocol
overhead.
Now, imagining that we have enabled compression by
Hi Rasmus,
thanks for you reply. As some of the phpers already
stated I also disagree about the visibility issue. But
it's IMHO anyway (besides I do not have technical
skills enough to try to implement it).
I'll check the template you mentioned but I was
wondering if a
jmoore Sun Feb 4 07:52:33 2001 EDT
Modified files:
/php4/win32 time.c
Log:
Fix for time.c under win32. Patch By: "Vanhanen, Reijo" [EMAIL PROTECTED]
@- microtime under windows now returns accurate values (James)
Index: php4/win32/time.c
diff -u
Alain,
When PHP parses a file, it treats the stuff that's not in ?php? blocks
as though each line were a print or echo statement. So your whole file
will be compressed and sent to the browser.
Regards,
Sean
On Sun, 4 Feb 2001, Alain Fontaine wrote:
Rasmus,
Thanks for the clarification;
"Dhaval Desai" [EMAIL PROTECTED] wrote:
what is the use of %
It returns a remainder. For example 7 % 2 = 1.
Is it called modulo..what is it's use in PHP.?
There are plenty of situations where it's useful. For example, if you're
displaying data in rows and want to shade every other row:
if
jmoore Sun Feb 4 08:56:59 2001 EDT
Added files:
/php4/ext/standard/tests/time .cvsignore 001.phpt
Log:
Adding microtime() tests
Index: php4/ext/standard/tests/time/.cvsignore
+++ php4/ext/standard/tests/time/.cvsignore
*.exp
*.out
*.php
phpt.*
"Jamie" [EMAIL PROTECTED] wrote:
$results = mysql_query("SELECT option_type, code FROM options WHERE
code='000' ORDER BY option_type",$db);
mysql_fetch_array($results);
// From what understand I should have an array some thig like this:
// ("Size"="A4" , "Size" = "A3", "Size"="A5",
Downloaded the Encoder testdrive and installed it with a license file
(zend_encoder.dat). Did what the manual stated, except that I installed it
on E:\program files\zend instead of C:\program files\zend (I did modify the
install_license.reg before installing it into the registration database)
Hi... I have a problem with PHP Authenticate
...if I enter user/pw wrong the first time it stops and I have to close/open
browser.!
I've tried to unset $PHP_AUTH_USER but then it just loops...
if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm=\".: Privat område :.\"");
Hi I have a couple of questions. One about hosting and the other about IP
addresses. The first on the IP's.
I have been speaking to a company that I am looking at getting a dedicated
server from. They ONLY do one IP address per server and use name-based
hosting. I have asked for
Alain Fontaine wrote:
Sean,
Thanks, I see. How about headers ? Do they need to be compressed, too; in
other words, do headers "belong" to the output ?
a HTTP response is made of response header(s) and the response body.
Only the body
is compressed, and this is signaled in the headers so
james wrote:
1. Cannot send session cookie - headers already sent by (output started at
c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program
files/apache group/apache/htdocs/index.php4 on line 11
What does it mean?
Any hints?
the error message is quite explicit.
Teodor,
Looked at it from that point of view, the question was pretty stupid ! ;)
-Message d'origine-
De : Teodor Cimpoesu [mailto:[EMAIL PROTECTED]]
Envoye : dimanche 4 fevrier 2001 19:09
A : Alain Fontaine
Cc : Sean Cazzell; [EMAIL PROTECTED]
Objet : Re: [PHP] HTTP compression
Scott,
As far as I know, MS SQL supports a syntax like this:
SELECT TOP 10 FROM table_name WHERE etc etc
However, I don't know how to make it start from a certain offset; I guess MS
SQL's documentation, especially the T-SQL doc, should help.
""Scott Parks"" [EMAIL PROTECTED] a écrit dans le
Lux wrote:
Where do I make a formal request for a feature? In Perl or Ruby, I
could have said:
foo ({ 'var1' = 'value', 'var2' = 'value'});
and it is so much more elegant than having to say:
$hash = array (
'var1' = 'value',
'var2' = 'value'
);
foo ($hash);
elegance
I'm going to be trying to connect to the native DB2 database in a AS/400
So far thats all I know about the IBM side.
Can someone give me a short update on what options I have ?
TIA !!!
-pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
"phpLover" [EMAIL PROTECTED] wrote:
Thanks for your answerm but what does eregi_replace() do?
Short answer is to see
http://www.php.net/manual/en/function.eregi-replace.php. Usage examples can
be found right on php.net. See longer answer below.
Previously "phpLover" [EMAIL PROTECTED] wrote:
At 8:40 PM +0200 2/4/01, Teodor Cimpoesu wrote:
Lux wrote:
Where do I make a formal request for a feature? In Perl or Ruby, I
could have said:
foo ({ 'var1' = 'value', 'var2' = 'value'});
and it is so much more elegant than having to say:
$hash = array (
'var1' = 'value',
foo ($hash = array('var1'='value', 'var2'='value'));
should work.
You don't need the $hash in that function call unless you need to use
it later on in your main program, so you can just say:
foo (array('var1'='value', 'var2'='value'));
that won't work (Lux's complaint) when
There's been a lot of talk about this recently. Check the archives for the
last 2 months, and PHPBuilder.com
Last I heard, you needed DRDA(DB2 Connect) installed, as well as
the runtime client.
Also on the client - DB2 Application Development package. Use this to
compile PHP
Where can I find some info on parsing XML with PHP?
I am not looking for functions, but examples and explanations !
Thx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Hello!
I'm trying to configure PHP with Verisign PayFlow PRO support on my server.
I'm running FreeBSD 4, Apache 1.3.12, mod_ssl, openSSL, and mySQL 3.23.32.
I downloaded the newest release of PHP (4.0.4pl2) and tried compiling it,
using the ./configure --with-pfpro=[dir] thing and I get the
phpbuilder.com - there are a few articles on the site about XML
--Joe
On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote:
Where can I find some info on parsing XML with PHP?
I am not looking for functions, but examples and explanations !
Thx
--
PHP General Mailing List
Brady-
Regardless of your compilation problems, Verisign has not yet released their
fixed SDK for BSD. They've only released it for Linux (libc5 glibc2) and
Solaris. You're kind of SOL until they do. See the user comments on
www.php.net/pfpro for why you're SOL.
John
On Sun, 4 Feb 2001,
[script at end]
Does it seem strange that although object members can
store functions, they can't be used as methods?
That is, we can have
$TestObject-mTestMember = create_function('','echo "TestMemberbr";');
but we can't do
$TestObject-mTestMember();
Can I get around this using clever
I understand your concerns, but with this type of logic this mailing list
not not be around. Niether would Linux, Apache, MySql or anyother open
source tool that so many people utilize today. We would all be on NT
instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus
when he
I use a RaQ3 and have no problems running PHP and MySQL. I started out
using one IP but the biggest problem I found was that in order to view the
site or make changes to it, the domain name must resolve to the server
before it would work. I decided it would be best for me to assign each site
On Sunday 04 February 2001 23:18, Robert Covell wrote:
I understand your concerns, but with this type of logic this mailing
list not not be around. Niether would Linux, Apache, MySql or anyother
open source tool that so many people utilize today. We would all be on
NT instead of Linux and
I'm pretty sure there's no other way to do it but to read them all in and
only display what you need.
AFAIK, MSSQL doesn't support paging itself, but relies on the
ADO driver to do this. If you make an reference to an ADO object in
VBScript, you can set how many rows are in a 'page', then tell
Hi, can anyone point me towards an easy way to generate forms to update a
mysql database?
I've seen some sites where I can specify a list of table fields and the
datatype for each, and get an output of:
1. the sql to create the table
2. a php form that can be used to update the table
problem
On Sun, Feb 04, 2001 at 05:06:02PM -0600, Jeff Oien wrote:
What would your advice be for learning MySQL with PHP on an
Apache server? I know a little Perl and am beginning to learn PHP.
I'm more of a designer than a programmer (not enough geek genes).
I went through the tutorial at
Hello,
How can i upload a file from a client to server ? I tryed copy() but it
doesint works.
Paul
But the feature is useless :)
Here, I removed the reference, so we can stop fussing over it (it wasn't the
question to begin with), and here's an example of a potential use for this
(a stupid example, but still...). I'm not weighing out the benefits of
references, I'm striving to achieve the
I don't mean to bash php in any way (as in the Ruby plugs in my last
post). I use it because it has so many advantages over other more
system-oriented not web-oriented languages for this type of work. It's
fantastic.
I see so much enthusiasm on the web for this language, a significant
What's this ruby? Care to send the list a URL so we can go have a
look for ourselves?
Gfunk - http://www.gfunk007.com/
I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
- Original Message -
From: "Lux"
sure
here's the ruby page: http://www.ruby-lang.org/
here's another ruby site: http://www.rubycentral.com/
there's also a really good book you can find info about here:
http://pragmaticprogrammer.com/ruby/index.html
it's not really used much yet anywhere except japan, where it's
actually
Lux wrote:
I don't mean to bash php in any way (as in the Ruby plugs in my last
post). I use it because it has so many advantages over other more
system-oriented not web-oriented languages for this type of work. It's
fantastic.
Yes it is. :)
I see so much enthusiasm on the web for
I agree, point taken...
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952
- Original Message -
From: "Christian Reiniger" [EMAIL PROTECTED]
To: "Php-General" [EMAIL PROTECTED]
I agree. It's a great reference learning guide, but you _have_ to be
patient and not skip around too much with it or it'll be quite
intimidating.
--Toby
[EMAIL PROTECTED] wrote:
On Sun, Feb 04, 2001 at 05:06:02PM -0600, Jeff Oien wrote:
What would your advice be for learning MySQL with
Hello Michael,
On 04-Feb-01 21:23:26, you wrote:
AFAICT there is no 'LIMIT' feature in MS SQL products (TOP and supposedly
BOTTOM, but BOTTOM has never worked for me and TOP doesn't seem to work on
all versions).
How is metabase handling this? Pulling everything, looping thru, and only
I was just meaning plain SQL - can't microsoft say ANSI? All I ask for is a
simple little standard and for people to follow it - I'm not asking for every
feature of the standard - just a following.
--Joe
On Sun, Feb 04, 2001 at 10:43:37PM -0300, Manuel Lemos wrote:
Hello Joe,
On 04-Feb-01
Ok, well from the looks of it I've got it working, thanks to whoever
pointed out the conf.php.net archive of the slideshow. The sample files
from that slide work fine, but I can't get any of the other samples I've
snagged to work. Maybe they're what's broken, but I don't see how.
Now that
Joe,
Does SQL92 count?
Best regards,
Andrew
---
Andrew Hill - OpenLink Software
Director Technology Evangelism
eBusiness Infrastructure Technology
http://www.openlinksw.com
On 2/4/01 8:09 PM, "Joe Stump" [EMAIL PROTECTED] wrote:
I was just meaning plain
Hello Joe,
On 04-Feb-01 22:01:37, you wrote:
I was just meaning plain SQL - can't microsoft say ANSI? All I ask for is a
I don't think there is a standard way of achieving what the LIMIT clause
can that works for all or at least most databases.
simple little standard and for people to follow
On Mon, 5 Feb 2001 07:01, [EMAIL PROTECTED] wrote:
Hi,
I am selecting data using the below and trying to insert it into a mail,
it does everything except send the data selected, anyone have an idea?
$SQLStatement = "SELECT * FROM Orders Where Status='N' Order by OrderID";
$SQLConn =
I must be missing something while I had no problem getting
perl and SSI working getting PHP to work is eluding me
for some reason. I have added this to httpd.conf
can someone enlighten me on what may be missing
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType
Do you normally have #!perl.exe as your shebang?
Normally I'd see something like #!/usr/local/bin/perl or
#!/usr/local/bin/php
not sure of pathing issues on Windows for that.
#!c:\program files\php4\php.exe
?
"Patrick L. Olson" wrote:
I must be missing something while I had no problem
I'm not even sure that the shell escape is even used in win32 perl - I think
it's done via a regular file association. I clearly remember setting it to
#!/some/fake/rubbish one time as a test and it still worked fine
I imagine the same would go for php.exe
jason
Do you normally have
James Smith wrote:
Is there a way that when a user signs up for a
user/pass on a site, to automatically update the
.htpasswd on the site? Right now I'm running a Win2k
Pro, with Apache installed and MySQL/PHP.
Thanks,
James
The quite simpliest method is to put appropriate directives in a
I don't mean to bash php in any way (as in the Ruby plugs in my last
post). I use it because it has so many advantages over other more
system-oriented not web-oriented languages for this type of work. It's
fantastic.
I don't think anyone will take offense to your mentioning the
php-general Digest 5 Feb 2001 03:36:42 - Issue 493
Topics (messages 38109 through 38183):
Newbie:Cannot send session cookie...
38109 by: james
38121 by: Teodor Cimpoesu
Re: HTTP compression
38110 by: Sean Cazzell
38116 by: Alain Fontaine
38120 by:
You need to go get yourself a copy of the MySQL book from New
Riders. Stay away from the O'Reilly one, it sucks.
Regards,
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
I'd second Sean's endorsement of the New Riders book. I generally
am a fan of Oreilly books, but I can't figure out *what* was going
on there with the Mysql book. It's actually mysql and msql covered in one
book, with less docs than you can get online, from what I saw, and
seemingly very little
"Patrick L. Olson" [EMAIL PROTECTED] wrote:
if I call it like http://127.0.0.1/cgi-bin/one.php
with the shebang line #!php.exe
I get the following error
No input file specified
if I call it without the shebang I get
the Internal Server Error
Error logs indicate the the #! is needed
if I
sounds like you cannot afford NOT to have a second wife! DANG! Some
folk have all the luck :!
On Sat, Feb 03, 2001 at 09:25:35AM +0530, [EMAIL PROTECTED] wrote:
tOn Fri, 2 Feb 2001, johnny p. wrote:
Hah! My wife has a formal education in graphics design. My web sites
would look like
Hi,
you might want to take a look at this one:
http://www.thewebmasters.net/php/Htpasswd.phtml
Works in both php3 and php4.
Give you functions for adding/deleting/listing/renaming users + much more,
in standard .htpaccess password files.
I use it myself on several sites, it works great.
-
I get the following warning when I turn on logging...
Warning: attempt to use an empty IV, which is NOT recommend in
/home/local/apache/htdocs/encrypt.php on line 21
Here is the code
$key = "testing";
$input = "Secret data";
$encrypted_data = mcrypt_ecb (MCRYPT_DES, $key, $input,
Greetings!
I made one script with mail "email address". It works in my home computer
(Linux and php 4) and not working in my web server (Linux and php 4). What
can be the reason?
Looking forward to hearing from you.
DT
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Dear sir,
I am a 20 year old student doing a research project and I would like to have
network administration via web. That is I want to change IP address os the
system via web, want to do dns settings and also would like to do proxy
setting via web using PHP scripts. I am working on RedHat
No sure if i get it, very inexperience user here I am. Baiscally if the
number of records returns is 20 records, in stead of display all 20 recodrs
in one column in a page, I would like to display that as 4 columns and each
columns has 5 recodrs displayed, how can I use limit statement to do
82 matches
Mail list logo