>
> Writing and moving require the same permissions. Also, there is a big
> difference between root and webroot. Which one are you talking about?
Web root.
Sorry not the root directory of the server but the webroot. 1 directory
back in fact is all I need so the structure would be:
Web> Cms> gene
Okay Ladies and gents... I am sure I am not the only one who doesn't
take advantage of arrays like they should be... would some be so kind as
to explain them... you kow I can read the manual and all... but to tell
you the truth.. it's a little confusing... maybe some of you have some
good ways to e
hmm...
and... what would you do with a clear screen function on a web page with php
?
I can't see how it could work.. :)
PHP is server side, so you can't clear the user screen like with C or other
language ...
Regards,
P.E. Baroiller
"Artoo" <[EMAIL PROTECTED]> a écrit dans le message de
news:
On Friday 11 July 2003 15:20, Steve Jackson wrote:
> > Writing and moving require the same permissions. Also, there is a big
> > difference between root and webroot. Which one are you talking about?
>
> Web root.
> Sorry not the root directory of the server but the webroot. 1 directory
> back in fa
> -Original Message-
> From: Phil Powell [mailto:[EMAIL PROTECTED]
> Sent: 11 July 2003 05:54
>
> foreach ($profileArray[$i][attributes] as $key => $val) {
> $singleProfileHTML .= $key . "=\"" . str_replace("'",
> ''', str_replace('"', '"', $val)) . "\"\n";
> }
>
> The parsing e
Joe,
JH> Okay Ladies and gents... I am sure I am not the only one who doesn't
JH> take advantage of arrays like they should be... would some be so kind as
JH> to explain them...
You won't get much joy from this list with this kind of question - it
is simply too general for anyone to answer. You h
is escaping a solution?
addslashes() for your insert-query
stripslashes() for your select-query
"Aaron Axelsen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I have a php script set up for a user to upload a word document,
> -Original Message-
> From: Kevin Stone [mailto:[EMAIL PROTECTED]
> Sent: 09 July 2003 20:30
>
> - Original Message -
> From: "ulf sundin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 09, 2003 1:00 PM
> Subject: Re: [PHP] session data missing
>
>
> > ok,
> -Original Message-
> From: Fejes Jozsef [mailto:[EMAIL PROTECTED]
> Sent: 10 July 2003 12:33
>
> My method is:
> 1. check if id starts with /
> if(ereg("^\/", $id))
> goaway;
That's a rather expensive (and slightly obscure) way of performing that check. Try:
if ($id{0}=='/')
go
Interesting.
Do I need to open an FTP connection do you think or use wrappers?
I tried this:
// Define the filename to write to.
$filename = 'test.txt';
// Open the file for overwriting.
$fp = fopen($filename, "w");
// Write the string to the file
$write = fputs($fp, $string);
// Close the file
Hi Guys,
I wonder if any of you can help with this
I'm using sockets in php to connect my script to an outside system. More
often than not this works fine, but every so often, say twice a day, it
brings down my whole web server.
When this has happened all the sites im serving can take up to
> "The script started from the URL '/myscript/index.php' with parameters ''
> has not responded within the configured timeout period. The HTTP server is
> terminating the script."
maybe the problem is not with the sockets but you have an endless loop bug?
do you have an up-to-date version of php?
Anyone know of a class or function that converts numbers to readable text
eg inputing the number would output text as in
120 = one hundred and twenty
3600 = three thousand six hundred
tia
pete
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Write the file with ftp right away:
// Define the filename to write to.
$filename = 'ftp://username:[EMAIL PROTECTED]/your_webdir/test.txt';
// Open the file for overwriting.
$fp = fopen($filename, "w");
// Write the string to the file
$write = fputs($fp, $string);
// Close the file
fclose($fp);
Same error.
Warning: fopen("ftp://[EMAIL PROTECTED]/misc/webpage/cms/test.txt","w") -
Inappropriate ioctl for device in
/home/stephenj/public_html/misc/webpage/cms/generator.php on line 51
Think this is going to get too complicated for a user interface as well
so I might have to abandon this idea.
> Anyone know of a class or function that converts numbers to readable text
Oh how old... coud you just not even be bothered with Google or any other
search engine?
To save you the trouble:
http://www.phpclasses.org/browse.html/package/754.html
--
PHP General Mailing List (http://www.php.net/
>?> just not even be bothered with Google
I did but didnt find any
Thanks ;-)
pete
Brian McGarvie wrote:
Anyone know of a class or function that converts numbers to readable text
Oh how old... coud you just not even be bothered with Google or any other
search engine?
To save you the trouble:
php-general Digest 11 Jul 2003 11:04:55 - Issue 2169
Topics (messages 154802 through 154853):
Using DOMXML with homogenous elements
154802 by: Matt Grimm
154807 by: Matt Grimm
nlist
154803 by: Johnny Martinez
154804 by: Robert C.
154805 by: David Nich
On Friday 11 July 2003 18:54, Steve Jackson wrote:
> Same error.
> Warning: fopen("ftp://[EMAIL PROTECTED]/misc/webpage/cms/test.txt","w") -
> Inappropriate ioctl for device in
> /home/stephenj/public_html/misc/webpage/cms/generator.php on line 51
You *are* using the correct user/pass? It should b
You are not that far away. It seems to me you have allow_url_fopen off.
Then you need to store your file in a temporary location, use ftp
functions to upload it (the example in the manual is all you need), and
then remove the temporary file. But this again needs the ftp extenssion
enabled.
Ste
Hi All,
looking throught the source of squirrelmail, I see he calls a function
_("somevalue")
What is this and where can i get more info about it?
Thanks
--
Dallas Goldswain
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> >?> just not even be bothered with Google
> I did but didnt find any
to be fair... nor did I when i was looking :\ :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
www.php.net/gettext
Dallas Goldswain wrote:
Hi All,
looking throught the source of squirrelmail, I see he calls a function
_("somevalue")
What is this and where can i get more info about it?
Thanks
--
Dallas Goldswain
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
> You *are* using the correct user/pass? It should be the same
> as what you use to upload files to your webroot.
>
> If you can't get this to work then try the ftp functions.
Yes I am.
>
> Alternatively, you could consider storing them in a DB.
Yes that's what I was thinking they only need
Steve Jackson wrote:
You *are* using the correct user/pass? It should be the same
as what you use to upload files to your webroot.
If you can't get this to work then try the ftp functions.
Yes I am.
Alternatively, you could consider storing them in a DB.
Yes that's what I was thinking
Hi All,
I need to capture the username and password used to login to Windows
2000/XP with PHP. Does anybody know how to do this?
Many thanks
Gary Ogilvie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks a million
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> www.php.net/gettext
>
> Dallas Goldswain wrote:
>
> > Hi All,
> >
> > looking throught the source of squirrelmail, I see he calls a function
> > _("somevalue")
> > What is this and where can i get mor
As part of a CMS I wanted to get the user to:
1) Create a new recordset via a form (with a uniqueid).
2) Press submit whereupon php gets the ID of the record just created in
the DB, writes a new page to the server with that unique id and saves it
as a filename determined by the user.
No way around
I'm pretty sure its not in an endless loop and php is 4.3, im still nowhere
closer to fixing this.
I'm sure its not hardware and I thought I was sure its not networkl related
but I think im going to have to rethirnk my ideas.
Cheers.
Chris
"Fejes Jozsef" <[EMAIL PROTECTED]> wrote in message
new
Does anybody recognize this:
!==
with 2 '='
Ive known != to mean not equal to but i'm just looking at someone elses
script and they use this instead. Does anyone know if this works or any
problems with it?
Cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
Hello,
This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 13:55,
lines prefixed by '>' were originally written by you.
> Does anybody recognize this:
> !==
> with 2 '='
> Ive known != to mean not equal to but i'm just looking at someone
> elses
> script and they use this instead.
[snip]
Just wondering if there's a clear screen function in PHP like the
clrscr()
in 'C'.
[/snip]
If you are running PHP from the command line on a *nix or BSD box you
could...
exec("clear");
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
On Fri, Jul 11, 2003 at 01:56:46PM +0100, Chris Morrow wrote:
> Does anybody recognize this:
>
> !==
>
> with 2 '='
>
> Ive known != to mean not equal to but i'm just looking at someone elses
> script and they use this instead. Does anyone know if this works or any
> problems with it?
>
> Cheer
Chris Morrow wrote:
Does anybody recognize this:
!==
with 2 '='
Ive known != to mean not equal to but i'm just looking at someone elses
script and they use this instead. Does anyone know if this works or any
problems with it?
Not identical. Negative ===.
http://us2.php.net/manual/en/language.o
two equal signs means 'equal to'
so '!==' means 'not equal to'
one equal sign sets a value.
ie...
x = 2; // x is set to the value of 2
if(x!==3) // checks if the value of x is not equal to 3
as for != i've never seen it with just one equal sign...
"Chris Morrow" <[EMAIL PROTECTED]> wrote in mes
Hello,
We get many "child pid [xxx] exit signal Segmentation fault (11)" in
out error_log. tracing the pids and shows seg faults on different
funtions, most if not all related to php. Thats probably a bug somewhere
on our system, I need help with pin pointing the trouble.
here are the tails of w
I Found this on the PHP.net site, maybe it will clear things up. Thanks for
your help everyone.
Example Name Result
$a == $b Equal TRUE if $a is equal to $b.
$a === $b Identical TRUE if $a is equal to $b, and they are of the
same type. (PHP 4 only)
$a != $b Not equal TRUE i
> I need to capture the username and password used to login to Windows
> 2000/XP with PHP. Does anybody know how to do this?
You can get the username, that's it.
$_SESSION['LOGON_USER']
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
--- Jeff Harris <[EMAIL PROTECTED]> wrote:
> On Jul 10, 2003, "Joey" claimed that:
>
> |How can I hide this link so value can't be changed?
> |I don't want to change anything at the server level, and its not
> from a
> |form so I cant do a post -vs- a get.
> |
>
|http://www.abcd.com/popup_SearchRe
OK - is there any other way of grabbing both the username and password
from somewhere else? For example the login details used to login onto
the Intranet through the firewall, or IIS?
Thanks :)
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 July 2003 14:3
CPT John W. Holmes wrote:
You can get the username, that's it.
$_SESSION['LOGON_USER']
Don't you mean $_SERVER['LOGON_USER']?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP General
Everything I try I get "undefined index" what does this mean? It is
vital also that I can grab the user and the pass before somebody can
access a certain part of the website, like the authentication dialogs
that appear in Internet Explorer.
Gazza
--
PHP General Mailing List (http://www.php.net/
Leif K-Brooks wrote:
CPT John W. Holmes wrote:
You can get the username, that's it.
$_SESSION['LOGON_USER']
Don't you mean $_SERVER['LOGON_USER']?
I have no variable for either, and I'm authenticated thru a NT domain.
We were doing this at the last place I worked for. Users had to logon
to t
Hi guys,I am new to PHP and I am writing my forst scripts, so maybe this quesetion
is a kinda stupid, but it is driving me crazy, can you tell meHow can I set a line
break in long line of my code?.
thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
If it is REALY needed ask the user. You might want to search for NTLM
authentication.
Gary Ogilvie wrote:
OK - is there any other way of grabbing both the username and password
from somewhere else? For example the login details used to login onto
the Intranet through the firewall, or IIS?
Thanks
--- Steve Jackson <[EMAIL PROTECTED]> wrote:
> As part of a CMS I wanted to get the user to:
> 1) Create a new recordset via a form (with a uniqueid).
> 2) Press submit whereupon php gets the ID of the record just
> created in
> the DB, writes a new page to the server with that unique id and
> sav
> CPT John W. Holmes wrote:
>
> >You can get the username, that's it.
> >
> >$_SESSION['LOGON_USER']
> >
> Don't you mean $_SERVER['LOGON_USER']?
Yeah :) See what I get for giving up caffeine...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
> Everything I try I get "undefined index" what does this mean? It is
> vital also that I can grab the user and the pass before somebody can
> access a certain part of the website, like the authentication dialogs
> that appear in Internet Explorer.
Like Lief said, it's $_SERVER['LOGON_USER']...
T
I have found out that all I actually need is the username. That is all -
either the windows login username or the firewall username. How do I
grab either?
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Umm..
Maybe you should use sessions.
--- Mark <[EMAIL PROTECTED]> wrote:
> --- Jeff Harris <[EMAIL PROTECTED]> wrote:
> > On Jul 10, 2003, "Joey" claimed that:
> >
> > |How can I hide this link so value can't be
> changed?
> > |I don't want to change anything at the server
> level, and its not
>
Alvaro Rosales R. wrote:
Hi guys,I am new to PHP and I am writing my forst scripts, so maybe this quesetion
is a kinda stupid, but it is driving me crazy, can you tell meHow can I set a line
break in long line of my code?.
More of a text editor question than a PHP question. In most text
edit
Hi guys,I am new to PHP and I am writing my first scripts, so maybe this question
is a kinda stupid, but it is driving me crazy, can you tell me How can I set a line
break in longs line of my code?.
thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
--- Mark <[EMAIL PROTECTED]> wrote:
> --- Jeff Harris <[EMAIL PROTECTED]> wrote:
> > On Jul 10, 2003, "Joey" claimed that:
> >
> > |How can I hide this link so value can't be changed?
> > |I don't want to change anything at the server level, and its not
> > from a
> > |form so I cant do a post -v
CPT John W. Holmes wrote:
CPT John W. Holmes wrote:
You can get the username, that's it.
$_SESSION['LOGON_USER']
Don't you mean $_SERVER['LOGON_USER']?
Yeah :) See what I get for giving up caffeine...
---John Holmes...
Ughwhy torture yourself?!?!?!
--
PHP General Mailing List (http://ww
can you tell me How can I set a line
break in longs line of my code?.
I think you want to use \n
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well here is some more information so you can understand what I am
trying to do:
I need to display their username in html/php document. This document has
a form which they fill out. It is to stop people changing who they are
when they fill out the form (for example joe bloggs filling out a
timeshe
--- Daniel Guerrier <[EMAIL PROTECTED]> wrote:
> Umm..
> Maybe you should use sessions.
Oh sure, come up with the EASY way ;-)
>
> --- Mark <[EMAIL PROTECTED]> wrote:
> > --- Jeff Harris <[EMAIL PROTECTED]> wrote:
> > > On Jul 10, 2003, "Joey" claimed that:
> > >
> > > |How can I hide this li
Alvaro Rosales R. wrote:
Thank you but ,(I come from microsoft vb world, and line breaks of code could be
divided with a character(&_), so the compiler could parse it and where it finded that
character it knew that it was a line break), is there something similar in php?
No. Just put a line b
On Friday, July 11, 2003, 5:07:49 PM, Mark wrote:
[ snip ]
M> That is correct. According to the docs, if the directory is not
M> executable, you can't even get the permissions on the files in it.
M> I'm confused, though.
M> Let me state at the begining that I'm not a linux guy. Learning, but
M>
--- Burhan Khalid <[EMAIL PROTECTED]> wrote:
> On Friday, July 11, 2003, 5:07:49 PM, Mark wrote:
>
> [ snip ]
>
> M> That is correct. According to the docs, if the directory is not
> M> executable, you can't even get the permissions on the files in
> it.
> M> I'm confused, though.
>
> M> Let m
> Well here is some more information so you can understand what I am
> trying to do:
>
> I need to display their username in html/php document. This document has
> a form which they fill out. It is to stop people changing who they are
> when they fill out the form (for example joe bloggs filling ou
File and directory permissions (so that people searching the archives have
something to look for).
> That is correct. According to the docs, if the directory is not
> executable, you can't even get the permissions on the files in it.
> I'm confused, though.
1) To be able to _access_ a directory
> -Why the concern about letting that user have execute permissions,
> and then prevent anyone (except those that have valid reasons) from
> having write/execute permission to the webroot.
The permissions are Read, Write, and Execute. Read and Write are self
explanatory (for directories Write mea
Is there any php function to pull a query into an array? I know there is a
way to get the first row of the results in an array, but I'm having to loop
through each row pushing the row onto an array to get the result I'm looking
for and it seems like a lot of code for something that I would think i
> Is there any php function to pull a query into an array? I know there is
a
> way to get the first row of the results in an array, but I'm having to
loop
> through each row pushing the row onto an array to get the result I'm
looking
> for and it seems like a lot of code for something that I would
Indeed that works thank you very much :)
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: 11 July 2003 15:50
To: Gary Ogilvie; [EMAIL PROTECTED]
Subject: Re: [PHP] Capturing Windows Login Details
> Well here is some more information so you can understand what I
On Fri, 11 Jul 2003, CPT John W. Holmes wrote:
> > Is there any php function to pull a query into an array? I know there is
> a
> > way to get the first row of the results in an array, but I'm having to
> loop
> > through each row pushing the row onto an array to get the result I'm
> looking
> >
I use the PEAR db http://pear.php.net/manual/en/package.database.php
This returns arrays - examples here
http://pear.php.net/manual/en/package.database.db.intro-fetch.php
look at the Quick data retreaval down the page
pete
Larry Brown wrote:
Is there any php function to pull a query into an arra
Thanks to all who explained it to me. Sorry if I inadvertently
hijacked the thread.
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> File and directory permissions (so that people searching the
> archives have
> something to look for).
>
> > That is correct. According to the docs, if the directory is
Is it possible to determine who the htaccess user logged in is? If so, how?
Can you point me at some articles?
Johnny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have an open socket that I am reading from. The code looks like the
following:
$contentLength = 0 + $this->response['headers']['content-length'];
do{
$status = socket_get_status($this->socket);
if( $status['eof'] == 1 ) {
if( $this->clientOptions['debug'] & DBGSOCK ) echo("DBG
And nevermind, problem solved in another thread.
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: [EMAIL PROTECTED]
Web: www.healthtvchannel.org
"Matt Grimm" <[EMAIL PR
i'm not sure if you want to "code in multi line, display in single line" or
"code in single line, display in multi line"
here gives an example:
This will give:
123456789
another example:
This will give :
abc
def
xyz
another one:
this also gives the same as above
hope this helps
--
-
Argh!
I am ready to pull out my hair on this. I have made sure that jpeg-6b is
installed, libpng is installed, zlib etc. I can configure with
./configure --with-apxs=/usr/local/sbin/apxs
--with-config-file-path=/usr/local/etc --enable-versioning
--with-system-regex --disable-debug --enable-track-
Try this
$str = "here is some php" .
"here is more" .
"here is even more";
Just a plain '.' will do the trick.
Jim Lucas
- Original Message -
From: "Alvaro Rosales R." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 11, 2003 7:11 AM
Subject: [PHP] Long lines
> Is it possible to determine who the htaccess user logged in is? If so,
> how?
> Can you point me at some articles?
>
> Johnny
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
$_SERVER['PHP_AUTH_USER']
--
Thanks,
Dean E. Weimer
It shouldn't take a lot of code to put results into an array:
$query = "select * from table";
$r = mysql_result($query);
while ($row = mysql_fetch_object($r))
$hold[] = $row;
(OR, to index by some id field in the database:)
$hold[$row->id] = $row;
mysql_free_result($r);
Total of 5 lines.
--
How can I hide this link so value can't be changed?
I don't want to change anything at the server level, and its not from a
form so I cant do a post -vs- a get.
http://www.abcd.com/SearchSet.php?searchby=cust_no&search=1&value=WOR032
Thanks !
--
PHP General Mailing List (http://www.php.net/)
To
As someone mentioned earlier, put them into a session (or a cookie).
Is this a repost, or is it a duplicate?
--- Joey <[EMAIL PROTECTED]> wrote:
> How can I hide this link so value can't be changed?
> I don't want to change anything at the server level, and its not
> from a
> form so I cant do a
$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile',
'hasSelectedProfile',
'hasEditedProfile', 'hasDeletedProfile',
'willDeleteProfile',
'willDeletePic');
$booleanVars = array('profileID', 'showemail', 'showbirthday', 'se
- Original Message -
From: "Phil Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 11, 2003 12:21 PM
Subject: [PHP] Mind exploded on this one!
$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile',
'hasSelectedProfile',
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Phil Powell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 11, 2003 12:33 PM
Subject: Re: [PHP] Mind exploded on this one!
> - Original Message -
> From: "Phil Powell" <[EMAIL PROTECTED]>
> To: <[EMAI
Could you give an example of what you want/expect to get back?
Seairth
"Phil Powell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
$booleanNonFormVars = array('hasSelectedLetter', 'hasEnteredProfile',
'hasSelectedProfile',
'hasEditedProfile', 'hasDeleted
Is there a way to write to a beginning of a file without it overwriting
data that's already there or do I have to write to the end of the file
in order to preserve data? I ask because it would be much easier to
print the lines of the file out in order of last added first if I could
add lines at th
[snip]
... all of it ...
[/snip]
required installing the jpeg library first, png second, then gd
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You have almost everything correct here
change that last line to this.
$arrayListArray = compact('booleanNonFormVars', 'booleanVars',
'profileVarArray',
'profileNonFormVarArray');
notice the use of compact()
Jim Lucas
- Original Message -
From: "Phil Powell"
Hello,
This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 19:56,
lines prefixed by '>' were originally written by you.
> Is there a way to write to a beginning of a file without it
> overwriting
> data that's already there or do I have to write to the end of the file
> in order to
Any ideas on how I can print the lines of my file in reverse order,
then? Does fgets() always process from the beginning of the file even
if you open the file with the pointer at the end? I tried to get the
line count of the file and go through each line of the file backwards
but that doesn't see
> Any ideas on how I can print the lines of my file in reverse order,
> then? Does fgets() always process from the beginning of the file even
> if you open the file with the pointer at the end? I tried to get the
> line count of the file and go through each line of the file backwards
> but that d
You could try using the file() function. Then loop backward through the
array or use array_reverse.
-- Rob
"Jason Giangrande" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Any ideas on how I can print the lines of my file in reverse order,
> then? Does fgets() always proce
Hi!
I want to know if anyone knows about a good mailing list manager that has
got a PHP administration frontend
I've found many PHP scripts for sending newsletters and announcementes, but
that's it's not what I want
I want a system like Mailman, Sympa or Majordomo (the mailing list server
may be p
Hello,
This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37,
lines prefixed by '>' were originally written by you.
> Any ideas on how I can print the lines of my file in reverse order,
> then?
How about...
$fp = fopen("yourfile.txt","r");
$filecontents = "";
while(!feof($fp)
Hi,
Maybe is this what you want;
http://www.eternalmart.com/
Regards,
Frank
- Original Message -
From: "Juan Nin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 12, 2003 1:47 AM
Subject: [PHP] Mailing list server with PHP frontend
> Hi!
> I want to know if anyone kn
From: "Frank Keessen" <[EMAIL PROTECTED]>
> Maybe is this what you want;
>
> http://www.eternalmart.com/
nope, I had already seen it..
that's the kind of software I found lots, it's for sending announcements via
a web form to subscribed users, but it's not a mailing list server
thanks anyway
J
I am running a query in mysql :
SELECT DISTINCT (id) AS visitor_id,
MAX(date_time) AS last,
MIN(date_time) AS first,
UNIX_TIMESTAMP( MAX(date_time)) -
UNIX_TIMESTAMP( MIN(date_time)) AS diff
FROM visitors, pixeldata_
WHERE
visitors.created > DATE_SUB( CURRENT_DATE, INTERVAL 1 HOUR )
AND
id = pixel
Thanks for the help guys.
Jason
On Fri, 2003-07-11 at 15:43, David Nicholson wrote:
> Hello,
>
>
> This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37,
> lines prefixed by '>' were originally written by you.
> > Any ideas on how I can print the lines of my file in reverse o
On Fri, 11 Jul 2003 16:41:06 -0400
"Mike Mannakee" <[EMAIL PROTECTED]> wrote:
> I am running a query in mysql :
> ... WHERE
> visitors.created > DATE_SUB( CURRENT_DATE, INTERVAL 1 HOUR )
> AND > id = pixeldata_.remote > GROUP BY > visitors.id
CURRENT_DATEnow( ) DATE_S
On Jul 11, 2003, "Pete Morganic" claimed that:
|Anyone know of a class or function that converts numbers to readable text
|
|eg inputing the number would output text as in
|
|120 = one hundred and twenty
|3600 = three thousand six hundred
|
|
|tia
|
|pete
|
How about http://pear.php.net/package-i
All,
I'm toying with the new stuff available in PHP 5 (latest CVS), but I've hit a
brick wall: both private and protected don't seem to work as I'd expect them
to.
Here's an example script:
Name = "Poppy";
print $poppy->Name;
?>
For some reason, that script works fine - PHP doesn't object
Hi,
I'm pretty new to regular expressions. Before, I used to write long-winded
and buggy segments of code with PHPs string functions to extract text. But I
want to learn how to use perl reg-ex as it seems useful to know so I ordered
"Mastering Regular Expressions". But it hasn't come yet so I'm as
1 - 100 of 118 matches
Mail list logo