I think you need to specify the full path rather than relative when using
fopen eg:
$file = fopen("/usr/local/apache/htocs/includes/about.inc", "r");
Chris
Alexander Wagner wrote:
> Tyler Longren wrote:
> > $file = fopen("includes/about.inc", "r");
> > $data = fread($file, 2400);
> [..]
>
try: www.php4win.de
-elias
http://eassoft.cjb.net
""Shan GAO"" <[EMAIL PROTECTED]> wrote in message
002501c0ca82$116784d0$579a86cb@shans">news:002501c0ca82$116784d0$579a86cb@shans...
Can anybody tell me where I can get extension for MINI sql -- php_msql.dll
for NT4.0?
Cheers
Shan GAO
--
P
Tyler Longren wrote:
> $file = fopen("includes/about.inc", "r");
> $data = fread($file, 2400);
[..]
> Any ideas why that doesn't work on one server but it will work on
> another server? The server it works on is Win2k, IIS5, php4.0.4pl1.
> The server it doesn't work on is Linux, Apache, php4
http://www.vbulletin.com/
> Can anyone recommend a good php powered forum that
> I could use on my
> site.
=
--
Nick Terzich
Creative Director - PopSmack, LLC
Insane Advertising Posse
http://www.popsmack.com/studio
__
Do You Yahoo!?
Yahoo! Au
sniper Sun Apr 22 23:36:51 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4 configure.in
Log:
MFH
Index: php4/configure.in
diff -u php4/configure.in:1.221.4.9 php4/configure.in:1.221.4.10
--- php4/configure.in:1.221.4.9 Mon Apr 2 14:09:21 2001
+++ php4
I suggest you just send a email around to people with the instructions on how to do it
:)
-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 4:34 PM
To: Dezider Góra; PHP General
Subject: RE: [PHP] Remove headers and footer from printed p
you have to do it manually in IE & NS as far as i know
to do in NS
click on file
then page set up
uncheck all things to do with header and footer
click ok
Peter
-Original Message-
From: Dezider Góra [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 4:25 PM
To: PHP G
Hi guys,
I have created a little "order" system for our company internal
needs, and when I want to print the order, I use a special page, that
has a jpg picture as a background and all items are positioned
absolutely on the picture. This thing makes all the frames and lines
look good.
Now, whe
On Mon, 23 Apr 2001 15:34, kenny.hibs wrote:
> Don't know if this id the place to ask but
> Can anyone recommend a good php powered forum that I could use on my
> site.
>
> kenny
Phorum - http://www.phorum.org/
--
David Robley| WEBMASTER & Mail List Admin
RESEAR
Don't know if this id the place to ask but
Can anyone recommend a good php powered forum that I could use on my
site.
kenny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the lis
rasmus Sun Apr 22 23:00:43 2001 EDT
Modified files:
/php4 configure.in
Log:
Uh, weird typo. Wonder when that crept in.
Index: php4/configure.in
diff -u php4/configure.in:1.236 php4/configure.in:1.237
--- php4/configure.in:1.236 Sat Apr 21 18:16:2
I am experimenting a little with IMAP and was wondering exactly how to
send mail to mailboxes that you create with the imap_createmailbox().
I know that it puts a file under an account like INBOX.whatever, but, as
I said dont know exactly how to send mail to this mailbox. Now I might
totally mis
use the javascript function, but also use as backup plan such as a link at
the bottom or even code at the top like this:
///
if (conditionals == true) {
header("location:home.html");
}
//
that wa
> I have 2 variables here that store date start and date end, I
> want to compare the lenght between the start date and the end
> date, how would I do that?
> $dateStart = "$year" . "$mon" . "$date" ; ( for instance, it
> will return "20010102")
> $dateEnd = "$yearEnd" . "$monEnd" . "$dateEnd"
Hi all
I have 2 variables here that store date start and date end, I want to compare the
lenght between the start date and the end date, how would I do that?
$dateStart = "$year" . "$mon" . "$date" ; ( for instance, it will return "20010102")
$dateEnd = "$yearEnd" . "$monEnd" . "$dateEnd" ; ( for
> I want to check a string and return the amount of words present
> in it. These
> strings could be quite large, some higher than 100,000
> characters. I realize
> I could explode the string on the whitespace and count the number
> of values.
> However, I'm not sure this would be the most opti
>> Windows XP Beta contains the sum total of what Windows has been up
to now
Well, kinda... but not really.. XP is a re-write and is an offshoot of 2000
(although, not really 2000 / NT) -- so it is experimental (as its still in
B.)
I have not experienced your problem... however, I would recommen
I thinks you should use eregi_replace
(http://www.php.net/manual/en/function.eregi-replace.php) and then
strip_tags (http://www.php.net/manual/function.strip-tags.php) to strip HTML
tag from string . so, you will get a plain text of the grab page.
--
-Tuna-
"Ed Lazor" <[EMAIL PROTECTED]> wrote
In other words ...
> $grab = eregi("wish(.*)numbers .");
>
> the (.*) is what you're grabbing.
You don't need to include the entire file up to 'wish' and beyond
'numbers', just enough to make a unique portion.
Mick
> > I'm trying to grab content from another web page. After hav
Something like this:
$grab = eregi("Some leading code(.*)Some trailing code");
the (.*) is what you're grabbing.
Mick
On Sun, 22 Apr 2001, Ed Lazor wrote:
> Hi =)
>
> I'm trying to grab content from another web page. After having browsed
> through the mailing list archives and such, it lo
Hi =)
I'm trying to grab content from another web page. After having browsed
through the mailing list archives and such, it looks like I'll need to use
the eregi_replace function, but I'm not sure how to properly format the
command. The goal is to get rid of everything from the start of the
At 12:48 23/4/2001 +1000, Chris Aitken wrote:
>At 11:40 PM 22/04/2001, you wrote:
>
>>I justed pointed out that it could work nicely... and I just tought of
>>that... I user header("location: ... ") on all my scripts and struggle to
>>put them before any output (that's not easy)...
>>I work on a
At 12:42 23/4/2001 +1000, you wrote:
> > I work on a e-commerce website (coding in ASP, but what can I
> > do?) with lots of JavaScript calls that in some cases are the heart
> > of the operation, and we never had any trouble or complaints with it.
>
>I want your job.
I don't think u do. :) ASP s
At 11:40 PM 22/04/2001, you wrote:
>I justed pointed out that it could work nicely... and I just tought of
>that... I user header("location: ... ") on all my scripts and struggle to
>put them before any output (that's not easy)...
>I work on a e-commerce website (coding in ASP, but what can I d
Hi,
I want to check a string and return the amount of words present in it. These
strings could be quite large, some higher than 100,000 characters. I realize
I could explode the string on the whitespace and count the number of values.
However, I'm not sure this would be the most optimized way to
> I work on a e-commerce website (coding in ASP, but what can I
> do?) with lots of JavaScript calls that in some cases are the heart
> of the operation, and we never had any trouble or complaints with it.
I want your job.
We have people complain every time we set a cookie. Imagine the
fuss w
At 12:22 23/4/2001 +1000, Chris Aitken wrote:
>At 11:15 PM 22/04/2001, Christian Dechery wrote:
>
>>Yeah... I know that... but, c'mon... a browser that doesn't support
>>Javascript can't surf trough at least 30% of all websites... it's the
>>absolute minority. Netscape itself is a minority.
>
>W
try the javascript print() command
- Original Message -
From: "Dmitry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 22, 2001 10:11 PM
Subject: [PHP] Printing
> Hello, all!
>
> Do you know, can I print some page using PHP or
> JavaScript?
>
> Dmitry.
>
At 11:15 PM 22/04/2001, Christian Dechery wrote:
>Yeah... I know that... but, c'mon... a browser that doesn't support
>Javascript can't surf trough at least 30% of all websites... it's the
>absolute minority. Netscape itself is a minority.
While its true Netscape is a minority, and browsers no
> Yeah... I know that... but, c'mon... a browser that doesn't support
> Javascript can't surf trough at least 30% of all websites... it's the
> absolute minority. Netscape itself is a minority.
That's not the point. You should be writing the code such that you
shouldn't need to make this kind
At 11:56 23/4/2001 +1000, you wrote:
> > I never had any trouble using header() to redirect, but
> > wouldn't something like this work even better (without
> > worring about previous outputs)??
> >
> > function redirect($dest)
> > {
> > ?>
> >
> > parent.locatio
Hello, all!
Do you know, can I print some page using PHP or
JavaScript?
Dmitry.
[EMAIL PROTECTED]
--
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 never had any trouble using header() to redirect, but
> wouldn't something like this work even better (without
> worring about previous outputs)??
>
> function redirect($dest)
> {
> ?>
>
> parent.location.href='=$dest?>';
>
> }
>
>
At 11:22 23/4/2001 +1000, Jason Murray wrote:
> > Is there any PHP native function to redirect to another page or URL?
>
>No, because you can only redirect a browser to another page using the
>appropriate HTTP command (it is a header) or JavaScript.
>
> > I would like that once the user clicks on
On Monday 23 April 2001 03:58, Chris Aitken wrote:
> Hi
>
> Just a quick puzzle I cant seem to get around at the moment...
>
> Im trying to create a loop that increments the string name by a digit. For
> example, if I had the following 4 strings submitted to a script.
>
> $name1
> $name2
> $na
Hi
Here is another way
$x = 1;
while($x < 5):
$index = "name".$x;
$name = $$index;
echo $name."";
endwhile;
had troubles with echo and $$variable, thats why the extra stephabit
Tom
At 10:58 AM 23/04/01 +1000, Chris Aitken wrote:
>Hi
>
>Just a quick puzzle I cant s
> Is there any PHP native function to redirect to another page or URL?
No, because you can only redirect a browser to another page using the
appropriate HTTP command (it is a header) or JavaScript.
> I would like that once the user clicks on home.php4 and a few
> verifications are done, he/she
header ("Location: http://www.location.com/home.html");
> -Original Message-
> From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 8:19 PM
> To: PHP-GENERAL
> Subject: [PHP] redirection to another page function
> Importance: High
>
>
> Hel
Hello all!
Is there any PHP native function to redirect to another page or URL?
I would like that once the user clicks on home.php4 and a few verifications are done,
he/she would be redirected to home.html.
Thanks,
C.F.
This brings up a question that I always wondered.
Does Access have server functionality? Where do you configure these
settings ?
Thanks,
Steve
On Sat, 21 Apr 2001, Andrew Hill wrote:
> The Access native driver IS an ODBC driver.
> That is, I believe, your only option.
>
> Best regards,
> An
On Mon, Apr 23, 2001 at 10:58:20AM +1000, Chris Aitken produced this golden nugget:
> Hi
>
> Just a quick puzzle I cant seem to get around at the moment...
>
> Im trying to create a loop that increments the string name by a digit. For
> example, if I had the following 4 strings submitted to a s
Hi
Just a quick puzzle I cant seem to get around at the moment...
Im trying to create a loop that increments the string name by a digit. For
example, if I had the following 4 strings submitted to a script.
$name1
$name2
$name3
$name4
What I want to do is create a while loop that will prin
In article <9bvs8e$g9p$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("almir") wrote:
> is it possible to get time limit of script on server ?
Since the "max_execution_time" can be set in php.ini, the current value
should be displayable with a call to phpinfo(). I expect you can also
check that valu
Hi,
I'm trying to make a reference to an array but it doesn't seem to work,
is this supported? am i doing it wrong?
Here is the code...
$this->level[$this->breaklevel][column] = $col;
$this->level[$this->breaklevel][level] =
$this->breaklevel;
andrei Sun Apr 22 17:24:06 2001 EDT
Modified files:
/CVSROOTavail cvsusers gen_acl_file.m4
Log:
Access to PHP-GTK docs for Markus.
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.150 CVSROOT/avail:1.151
--- CVSROOT/avail:1.150 Thu Apr 19 20:34:10 2001
+++
Does anyone know how to build a static module for Apache
httpd-2_0_16?
--
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 administrators, e-mail: [EMAIL PROTECTED]
is it possible to get time limit of script on server ?
almir
--
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 administrators, e-mail: [EMAIL PROTECTED]
>Subject: Re: [PHP] Recursive Childs
> thanks for that, could you just explain how it should start, should i just
call the function, how does the level get determined ???
After the function ends, starting at
*
$conn = pg_connect("dbname=mydb user=postgres");
***
sterlingSun Apr 22 16:40:34 2001 EDT
Modified files:
/php4/ext/ccvs ccvs.c
Log:
Fix bug #10447.
Index: php4/ext/ccvs/ccvs.c
diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14
--- php4/ext/ccvs/ccvs.c:1.13 Sun Feb 25 22:06:48 200
$file = fopen("includes/about.inc", "r");
$data = fread($file, 2400);
$stripped = stripslashes($data);
$formatted_data = nl2br($stripped);
echo "$formatted_data";
Any ideas why that doesn't work on one server but it will work on another
server? The server it works on is Win2k, IIS5, php4.0.4
#
yes, make a style sheet called "domain.css" and
put in this text:
#
a.domain1:link { color: #FF; }
a.domain2:link { color: #FF; }
a.domain3:link { color: #FF8000; }
#
in the h
On Sun, Apr 22, 2001 at 03:06:04PM -0700, Adam wrote:
> chmod the file to 777, this will allow anyone write permission to the file
> and thus you will be able to append to the file
file-mode 777 is ugo=rwx. You want 'chmod 666', which is ugo=rw.
read is 4
write is 2
execute is 1
If you want rw
I disagree. Bug fixes are endless (this is not just a figure of speech),
and if we schedule another RC every time someone fixes a bug, we'll never
release. None of the bugs fixed since RC7 are showstoppers, so the show
goes on...
Zeev
At 23:56 22/4/2001, [EMAIL PROTECTED] wrote:
>On Sun, 22
chmod the file to 777, this will allow anyone write permission to the file
and thus you will be able to append to the file
--
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 administ
php-general Digest 22 Apr 2001 21:49:08 - Issue 643
Topics (messages 49734 through 49765):
Re: Incrementing dates
49734 by: PHPBeginner.com
49738 by: Martin Skjöldebrand
49742 by: PHPBeginner.com
49747 by: Warren Vail
Re: UUdecode
49735 by: Henrik Ha
You know, that's a tad rude, just suggestion an OS switch like that. :þ
I mean, my http server isn't the only thing I run -- this is my personal use
computer. Windows XP Beta contains the sum total of what Windows has been up
to now, so I don't think the OS has very much to do with it.
I just wan
Why not just store the filename?
SL.
- Original Message -
From: "Keyur Kalaria" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 9:52 AM
Subject: [PHP] problem with storing & displaying image in db
> Hello everybody,
>
> I am facing a strange problem whi
Yea, I got a solution.
Choose a flavor of linux, format your HD, install, and run the that server
like it was meant to run.
Apache is not even 100% on NT much less the XP beta, it's like your running
a beta on a beta...That's why it's not working.
Here is a good quote from apache.org: "Please
You need to use style sheets:
http://www.awlonline.com/cseng/titles/0-201-41998-X/liebos/
http://www.builder.com/Authoring/CSS/?tag=st.bl.7258.dir1.bl_CSS
http://www.wdvl.com/Authoring/Style/Sheets/
Jeff Oien
> Hi,
>
> I would like to know how to make different link in different color on
> o
On Sun, 22 Apr 2001, Zeev Suraski wrote:
> At 22:47 22/4/2001, Sascha Schumann wrote:
> >On Sun, 22 Apr 2001, Zeev Suraski wrote:
> >
> > > I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway.
> >
> > It would be really inconvenient for users of PHP, if PHP
> > 4.0.5 w
As I've seen and tested, Apache running in Win2k won't do output buffering
running PHP as CGI.
But will perfectly running PHP as DSO.
Any explanations?
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Maili
But when I try using the path to the file I get denied permission ...
How can I use my password then? Or can I bypass that in some way?
""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9bupqt$b8s$[EMAIL PROTECTED]">news:9bupqt$b8s$[EMAIL PROTECTED]...
> When you are using that on your site, what
I don't want to get into it but you had a big problem with config.m4
changes during RC's when I added the fastcgi support.
Anyway no need to make a big deal about it but you almost killed me back
then as config.m4 could potentially create problems for the whole release.
Andi
At 09:47 PM 4/22/2
Can anyone tell me the correct syntax for connecting to an imap server using
imap_open and an ssl connection.
normally > $link = imap_open ("{mail.whatever.com:143}",
"username", "password");
Is this the correct way to do it for ssl? ... because it is not working for
me.
ssl
At 22:47 22/4/2001, Sascha Schumann wrote:
>On Sun, 22 Apr 2001, Zeev Suraski wrote:
>
> > I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway.
>
> It would be really inconvenient for users of PHP, if PHP
> 4.0.5 would not be compatible with existing web-servers.
>
On Saturday 21 April 2001 04:42, [EMAIL PROTECTED] wrote:
> Alrighty. I'm baack! Anyways, I seem to be having stupid little
> problems, al of which are driving me insane. I'll feel really
> stupid when you tell me the problem. A friend told me something about
> "seeding" for random() but I
> It would be really inconvenient for users of PHP, if PHP
> 4.0.5 would not be compatible with existing web-servers.
> Would you mind explaining how you came to the conclusion that
> PHP 4.0.5 needs to be based on the RC7 tag?
Without leaping into a battle that isnt mine.. (so pl
On Sun, 22 Apr 2001, Zeev Suraski wrote:
> I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway.
It would be really inconvenient for users of PHP, if PHP
4.0.5 would not be compatible with existing web-servers.
Would you mind explaining how you came to the conclusi
Hi,
I would like to know how to make different link in different color on
one page.
etc. www.domain1.com in blue color
www.domain2.com in red color
www.domain3.com in orange color
Thank you for your help
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
I'm going to base 4.0.5 on the RC7 tag, so this won't make it in anyway.
Zeev
At 18:35 22/4/2001, James Moore wrote:
> >
> > sas Sun Apr 22 08:17:57 2001 EDT
> >
> > Modified files: (Branch: PHP_4_0_5)
> > /php4/ext/ircgconfig.m4 ircg.c php_ircg.h
> > Log:
> >
Hey, I'm new to the list, and this issue may have already been addressed...
It seems that with Apache and PHP (running in Windows XP Beta 2, which identifies to
Apache as an NT system) as the server and being accessed by MSIE 6.0b or MSIE 5.5 that
cheese doesn't taste right.
No, wait, that's no
I have a chunk of text like this:
$string="bla bla bla (12837) ble blo bli sjhs9 39udjkd";
I only want "bla bla bla" out of it...
what is wrong with:
$newString = strtok ($string,"(128");
altough this seems to work:
$newStrArray = explode("(128",$string);
so $newStrArray[0] would have exactly
Solution #1
$contents = fread ($pointer, 1);
Solution #2
$contents="";
while ($partial = fread ($pointer, 8192)) {
$contents.=$partial;
};
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
I have a formmail script that works both under Win32 as in Linux.
It has a function email() that calls either mail() if in Win32 or
sendmail() if in Linux... in Linux this sendmail() function works exactly
as mail() but calling a popen() to sendmail... and it works fine..
but sometimes in Win m
Well, it use to happen...
[from function.filesize.html]
int filesize (string filename)
This function will not work on remote files; the file to be examined must be
accessible via the server's filesystem.
Ok, I screwed up. But now that I know what went wrong, how can I override
this? The docs sai
sas Sun Apr 22 10:20:03 2001 EDT
Modified files:
/php4/ext/pcre php_pcre.c
Log:
Fix freeing of a NULL pointer
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.91 php4/ext/pcre/php_pcre.c:1.92
--- php4/ext/pcre/php_pcre.c:1.91
On Mon, 23 Apr 2001, Cameron wrote:
> yes but thats thttpd wide, not per host or per directory
That is why it said "thttpd-specific configs".
> i have been sitting and thinking about it since i sent that message and i could
> imagine it being not TOO hard to create that in a xml file with a
yes but thats thttpd wide, not per host or per directory
i have been sitting and thinking about it since i sent that message and i could
imagine it being not TOO hard to create that in a xml file with all the hosts
listed and their restrictions but that would still be a lot of coding for the
guru
On Mon, 23 Apr 2001, Cameron wrote:
> well, im not about to test ircg but im going to do the rounds with testing
> thttpd yet again. would be nice to have some form of limiting in thttpd like
> the apache stuff how you can set prepends and execuction
> limits etc. but i think thats a bit much to
Hi, I'm trying to get a binary file from an URL and then save it to a local
disk.
I'm trying this:
$fd = fopen ($filename, "rb");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
$fp = fopen ($tempfile, "wb");
fwrite ($fp,$contents);
fclose ($fp);
If I use $filename="local_file" th
well, im not about to test ircg but im going to do the rounds with testing
thttpd yet again. would be nice to have some form of limiting in thttpd like
the apache stuff how you can set prepends and execuction
limits etc. but i think thats a bit much to get added at this time
Cameron
Sascha Schu
if the lines are exact duplicates, then you could open the file with PHP or
Perl, then scan through it, line by line, each time throwing the line in the
next cell of an arraythen you should be able to sort by the values in
those cells, and after you have that, deleting duplicates would be
simp
[EMAIL PROTECTED] wrote:
> be covered by an RC I think.
If an RC8 is finished, I'll test it on Win32 with Apache as CGI, and
on Linux 2.4.3 with thttpd and ircg.
--
sebastian bergmann[EMAIL PROTECTED]
http://www.sebastian-ber
That removes instances in an array, I am talking about a file. Each line
contains non-duplicate words, but the lines are mixed and duplicated,
perhaps trippled.
- Richard
""Taylor, Stewart"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Have you tried the ar
Well, as I said before, this commits are harmless with regard
to the rest of the system. Additionally, builds with thttpd
and IRCG have been completed successfully. A test run
producing 2GB of output from IRCG with thttpd-2.21 and 4.0.5
seems to show a memory leak which I'm c
Liz there are lots of changes for 4.0.6 already we branch CVS when we start
the release cycle. Its just a question of if these changes need to be in the
branch, on the IRCG front I can see no real problem as long as Sascha is
willing to test and post results (although I also feel that they should
Depending on the changes whether they are more enhancements or showing
stopping bug fixes, could they not be withdrawn and put in as first changes
for 4.0.6?
> -Original Message-
> From: James Moore [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 5:01 PM
> To: Sascha Schumann
>
You'll want to use the LIMIT option in SQL. So on the end of your query add:
"LIMIT 0,10" to get the first ten results.
The first number is the "offset", and the last is the max amount to
retrieve. To get links 20 through 40 you'd use:
"LIMIT 19, 39"
The offset is refering to an array, so offs
> On Sun, 22 Apr 2001, James Moore wrote:
>
> > >
> > > sas Sun Apr 22 08:17:57 2001 EDT
> > >
> > > Modified files: (Branch: PHP_4_0_5)
> > > /php4/ext/ircgconfig.m4 ircg.c php_ircg.h
> > > Log:
> > > MFH allocation-related and thttpd-independence chan
On Sun, 22 Apr 2001, Sascha Schumann wrote:
> On Sun, 22 Apr 2001, James Moore wrote:
>
> > Sascha can you please STOP MFH'ding
>
> Well, that really surprises me. I commit minimal changes
> while other people commit _huge_ patches to the release
> branch and noone complains about th
On Sun, 22 Apr 2001, James Moore wrote:
> >
> > sas Sun Apr 22 08:17:57 2001 EDT
> >
> > Modified files: (Branch: PHP_4_0_5)
> > /php4/ext/ircg config.m4 ircg.c php_ircg.h
> > Log:
> > MFH allocation-related and thttpd-independence changes
>
> Sascha can you please
>
> sas Sun Apr 22 08:17:57 2001 EDT
>
> Modified files: (Branch: PHP_4_0_5)
> /php4/ext/ircgconfig.m4 ircg.c php_ircg.h
> Log:
> MFH allocation-related and thttpd-independence changes
Sascha can you please STOP MFH'ding your changes will have to wait for 4.0.
Hm, that would probably explain it.
I assumed it wasn't it because the programs are so comparitively
small...then again, it's not the size that counts blah blah...
Since it loads so much up at one time rather than a little bit at a time, it
probably eats a huge amount of ram. Forte probably load
hi
I have 30 links stored in a table(mysql) now. I wanna show them accorging to
the traffic they send. But i don't want to list all of them in just 1 page
because i will be adding 300 links soon. (I don't want my visitors to wait 3
minutes to load the links)How should i do it? I wanna do it like
sas Sun Apr 22 08:17:57 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/ircg config.m4 ircg.c php_ircg.h
Log:
MFH allocation-related and thttpd-independence changes
Index: php4/ext/ircg/config.m4
diff -u php4/ext/ircg/config.m4:1.5 php4/ext/i
Hi ruud,
@ 4:05:08 AM on 4/22/2001, ruud habets wrote:
> a perfectly working website suddenly went dead yesterday
> the resulting error is: Transport endpoint is not connected
> i have no idea what can be the cause of that.
http://www.google.com/search?q="Transport+endpoint+is+not+connected"
-
a perfectly working website suddenly went dead yesterday
the resulting error is: Transport endpoint is not connected
i have no idea what can be the cause of that.
the error can be viewed at www.kgv.nl (just wait 30 seconds)
any ideas?
thanks
ruud habets
--
PHP General Mailing List (http://w
On Sun, 22 Apr 2001, Sascha Schumann wrote:
> sas Sun Apr 22 07:33:09 2001 EDT
>
> Modified files: (Branch: PHP_4_0_5)
> /php4/sapi/thttpd thttpd.c thttpd_patch
> Log:
> Merge thttpd-2.21-related changes into 4.0.5 branch
Nice, when will RC8 be out?
Derick Retha
In article <9btgks$fc6$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("McShen") wrote:
> $start is passed by the url. like http://mydomain.com/links.ph?start=0;
> $end =$start+15;
>
> $query = "SELECT * FROM refer ORDER BY hits desc LIMIT $start,$end";
>
> it didn't work. Please help.
Perhaps if you
On 21 Apr 2001 19:26:03 -0700, McShen <[EMAIL PROTECTED]> wrote:
>then, should i do this?
>---
>$query = "SELECT * FROM refer ORDER BY hits desc LIMIT $i,$end";
Is $end set at this point? Also, if you always want to display 15 records, this
could just be LIMIT $i, 15.
--
PHP General Mailing Li
1 - 100 of 139 matches
Mail list logo