Re: [PHP] session, explain?

2004-07-05 Thread Ligaya Turmelle
Louie Miranda wrote:
> session_start();
http://www.php.net/manual/en/function.session-start.php
> setcookie("cartId", session_id(), time() + ((3600 * 24) * 30));
http://www.php.net/manual/en/function.setcookie.php
> return session_id();
http://www.php.net/manual/en/function.session-id.php
>
> Can someone help me figure out what does the session of this code means?
>
--
Respectfully,
Ligaya Turmelle

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file locking over NFS?

2004-07-05 Thread Brent Clark
Hi there

If i am not mistaken, that is a standard part of the nfs suite.
All you need to make sure is that your export is correct, and the you are
not using the
-nolock option.
Other than that if its PHP you more interested in, look at the flock()
function.

Kind Regards
Brent Clark

-Original Message-
From: kyle [mailto:[EMAIL PROTECTED]
Sent: Monday, July 05, 2004 6:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] file locking over NFS?


Hi all,

Is there any simple, safe, and efficiency way to do file locking over NFS?

Thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] session, explain?

2004-07-05 Thread Curt Zirzow
* Thus wrote Louie Miranda:
> session_start();
> setcookie("cartId", session_id(), time() + ((3600 * 24) * 30));
> return session_id();
> 
> Can someone help me figure out what does the session of this code means?

Looking at the description of setcookie:
bool setcookie ( string name [, string value [, int expire [,
string path [, string domain [, int secure])

that sets a cookie named "cartId" with the value of what the id of
the session is for the length of 30 days.

Now of course, if the default session settings havn't been
modified, the session_id() will become invalid before the
expiration of  this cookie being set.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Grabbing last file...

2004-07-05 Thread Curt Zirzow
* Thus wrote Ashley M. Kirchner:
> 
>I have a capture script that runs every 2 minutes and dumps an image 
> into a folder.  I'm trying to write a script (which will get included in 
> another) that will grab the last image in the folder and pass it on.
> 
>The images are saved as 'capture..jpg' where  is the 
> timestamp of the capture , starting at midnight, or , and going till 
> 2358.  The structure of the folder is as follows:
> 
>/capture/.year/month/day/capture..jpg
>
>...
> 
>And all it has to do is figure out the last file, generate an 
>  tag and return it.  Voila.

have your  image generation script do somthing like this:

  1. generate new image /capture/.year/month/day/capture.#.jpg
  2. copy /capture/.year/month/day/capture.#.jpg /capture/current.jpg


That way you can simply put in your img tag:
  

Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] uniqid function

2004-07-05 Thread Michael Gale

Thanks for the reply.

Michael.

On Tue, 6 Jul 2004 06:38:57 +
Curt Zirzow <[EMAIL PROTECTED]> wrote:

> * Thus wrote Michael Gale:
> > Hello,
> > 
> > I have a question about the uniqid function ... on a loaded
> > system ...
> > lets say 60 people connected with each person making 2-3 web request
> > per second.
> > 
> > Each request running the following php command:
> > 
> > "$token_name=md5(uniqid(rand(), true));"
> > 
> > What would the odds be of the $token_name being repeated ? Is this
> > something I would have to worry about ?.
> 
> The odds are very low. uniqid() by itself is based of of time to
> the microsecond. The lcg paremater randomized a psudo number to avoid
> collisions at the same microsecond. And the rand(), depending on
> you're system, defaults to seeding itself with including the PID. So
> the seed to rand() should, in theory, be different for each differnt
> request.
> 
> The md5() is rather pointless in the uniqness of the token, it will
> basically prevent intruders from predicting a token. Nonetheless,
> it's probably still desired in your token generation.
> 
> 
> Curt
> -- 
> First, let me assure you that this is not one of those shady pyramid
> schemes you've been hearing about.  No, sir.  Our model is the
> trapezoid!
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] images outside of document root

2004-07-05 Thread Dennis Gearon
I want to keep an entire library OUTSIDE of the document root. The library includes 
some imgages. How can I have the browser include the imageges?
I've hard of BASE64'ing the images into the header and decoding them using javascript. Is this the best way? Where is code to do that? 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] session, explain?

2004-07-05 Thread Louie Miranda
session_start();
setcookie("cartId", session_id(), time() + ((3600 * 24) * 30));
return session_id();

Can someone help me figure out what does the session of this code means?

-- 
Louie Miranda
http://www.axishift.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] uniqid function

2004-07-05 Thread Curt Zirzow
* Thus wrote Michael Gale:
> Hello,
> 
>   I have a question about the uniqid function ... on a loaded system ...
> lets say 60 people connected with each person making 2-3 web request per
> second.
> 
> Each request running the following php command:
> 
> "$token_name=md5(uniqid(rand(), true));"
> 
> What would the odds be of the $token_name being repeated ? Is this
> something I would have to worry about ?.

The odds are very low. uniqid() by itself is based of of time to
the microsecond. The lcg paremater randomized a psudo number to avoid
collisions at the same microsecond. And the rand(), depending on you're
system, defaults to seeding itself with including the PID. So the
seed to rand() should, in theory, be different for each differnt
request.

The md5() is rather pointless in the uniqness of the token, it will
basically prevent intruders from predicting a token. Nonetheless,
it's probably still desired in your token generation.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Grabbing last file...

2004-07-05 Thread Ashley M. Kirchner
   I have a capture script that runs every 2 minutes and dumps an image 
into a folder.  I'm trying to write a script (which will get included in 
another) that will grab the last image in the folder and pass it on.

   The images are saved as 'capture..jpg' where  is the 
timestamp of the capture , starting at midnight, or , and going till 
2358.  The structure of the folder is as follows:

   /capture/.year/month/day/capture..jpg
   An image captured today, at 4:28 pm, the full path/file would be:
   /capture/.2004/07/06/capture.1628.jpg
   (yes, there's a dot before the year)
   So the script will have to automatically figure out the 
year/month/day (which I think is easy enough with a simply date 
function) but then will have to figure out which is the latest capture 
saved that it can then grab (note, I can not rely on using a date/time 
function because the server time may not be exactly the same as the last 
file saved.)

   And all it has to do is figure out the last file, generate an 
 tag and return it.  Voila.

--
W | I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner    .   303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
 http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] uniqid function

2004-07-05 Thread Michael Gale
Hello,

I have a question about the uniqid function ... on a loaded system ...
lets say 60 people connected with each person making 2-3 web request per
second.

Each request running the following php command:

"$token_name=md5(uniqid(rand(), true));"

What would the odds be of the $token_name being repeated ? Is this
something I would have to worry about ?.

Michael.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Mail

2004-07-05 Thread Curt Zirzow
* Thus wrote Justin Patrin:
> On Mon, 5 Jul 2004 13:01:08 -0400, John Hicks <[EMAIL PROTECTED]> wrote:
> > On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
> > > Thanks- looked at Squirrel Mail.  Looks really good,
> > > however we use POP3- I don't think Squirrel Mail
> > > uses POP3 does it?
> > 
> > Most if not all web-based mail clients use IMAP since a
> > web-based (i.e. browser-based) client can't store the
> > received mail on the local computer the way a
> > POP3-based email client does.
> 
> the messages on the server. In fact, I think that the PHP functions
> are the same for both IMAP and POP.

Correct.



Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: problems linking a DLL to Zend symbols like

2004-07-05 Thread Jason Barnett
Try php.internals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Web Mail

2004-07-05 Thread Justin Patrin
On Mon, 5 Jul 2004 13:01:08 -0400, John Hicks <[EMAIL PROTECTED]> wrote:
> On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
> > Thanks- looked at Squirrel Mail.  Looks really good,
> > however we use POP3- I don't think Squirrel Mail
> > uses POP3 does it?
> 
> Most if not all web-based mail clients use IMAP since a
> web-based (i.e. browser-based) client can't store the
> received mail on the local computer the way a
> POP3-based email client does.

I'm not sure why there's all this talk about not using POP3. You can
leave messages on the server with POP3 as well, it's just not as fully
featured as IMAP. Some webmail clients *do* support POP3 while leaving
the messages on the server. In fact, I think that the PHP functions
are the same for both IMAP and POP.

> 
> Besides, the whole reason for using a web-based client
> is to be able to log in from various computers. Why
> would you not want to store the mail back on the
> server the way IMAP does. POP3 delivers the mail to
> the client and then drops it.
> 
> --John
> 
> > -Original Message-
> > From: Jose Leon [mailto:[EMAIL PROTECTED]
> > Sent: 05 July 2004 12:09
> > To: I.A. Gray
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] PHP Web Mail
> >
> >
> > Hello,
> >
> > > Does anyone know a good PHP-based (free if
> > > possible) web mail other than UebiMiau that they
> > > would recommend?
> >
> > Why not Squirrel Mail?
> >
> > http://www.squirrelmail.org
> >
> > Regards.
> > --
> > qadram :: software development
> > http://www.qadram.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> !DSPAM:40e989c5295881536211998!
> 
> 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-07-05 Thread Chris Shiflett
(Disclaimer: This is a few days old, but I am just now catching up.)

--- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> In one of the reply to the original posting I made, someone say that
> htmlentities() would work and upon submission, the PHP's $_REQUEST,
> $_POST, $_GET would get the apostrophe somehow.  (The conversion
> somewhere would change it back).

This is true, but it's not as mysterious as you make it sound. The browser
will still send the data exactly as you expect - not the HTML entities.
That step only helps you to preserve the data and not have it accidentally
interpreted as part of the markup, which is what your original problem
was.

Of course, if you want to display this data again, you will have to use
htmlentities() again on the data in $_GET, $_POST, or whatever.

Hope that helps.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
 Coming Fall 2004
HTTP Developer's Handbook - Sams
 http://httphandbook.org/
PHP Community Site
 http://phpcommunity.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Something like strip_tags?

2004-07-05 Thread Anguz
Jason Paschal wrote:
i'd like to be able to strip only one type of HTML tag from a web 
document (), but to do that with strip_tags(), i'd have to predict 
every possible HTML tag that might be used, except for the one i want to 
strip, and put those in the allowable tags parameter.

That's why I was hoping someone knew of a better way to accomplish 
this.  Any suggestions are welcome.

Thanks in advance,
~j
I'd probably do this:
$str = preg_replace('~~is', '', $str);
If you wanted to keep the anchored text and URLs, then something like:
$str = preg_replace('~(.+?)~is', '$2 [$1]', $str);
HIH,
Cristian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Web Mail

2004-07-05 Thread Tom Rogers
Hi,

Monday, July 5, 2004, 8:14:44 PM, you wrote:
IAG> Hi everyone,

IAG> I use UebiMiau for our web mail service, but to be honest I haven't been
IAG> particularly happy with it.  It's ok, but what I find frustrating is that if
IAG> our customers click the back button on their browser it always gives the
IAG> 'this page has expired' message.  I assume it is using sessions, but still-
IAG> does this message always have to be displayed? It always seems to log you
IAG> out quite easilly. Web mail services such as hotmail or yahoo don't do this.
IAG> Does anyone know a good PHP-based (free if possible) web mail other than
IAG> UebiMiau that they would recommend?

IAG> Best wishes,

IAG> Ian


I have used this in the past with good results
http://thegraveyard.org/vamp/

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Fuzzy search with DBs

2004-07-05 Thread Johannes Reichardt
Hey there,
i am a db/php novice and trying to implement a fuzzy search. i found 
some functions with examples like metaphone and levenstein but i dont 
know how i can use them efficiently with mysql. do i have to select all 
fields before comparison in any case? are there articles with detailed 
description on this? would be glad about every help.

- Johannes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] file locking over NFS?

2004-07-05 Thread Marek Kilimajer
kyle wrote:
Hi all,
Is there any simple, safe, and efficiency way to do file locking over NFS?
Thanks.
You can mysql locks (maybe it works in other databases too):
GET_LOCK(str,timeout);
RELEASE_LOCK(str);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: User Logon Procedure Fails

2004-07-05 Thread Jordi Canals
Curt Zirzow wrote:
  $userid = (int) $_POST['TXT_UserID'];
  $sql = "... WHERE UserID = $userid";
Seing that I have a question around. Most cases I validate the $userid 
by using the function inval() in that way:

$userid = inval($_POST['TXT_UserID'];
$sql = "... WHERE UserID = $userid";
I thinkl that in both cases (Curt and mine) results are the same, and 
$userid will get the digits from the begining of $_POST['TXT_UserID'] to 
the first non digit char.

I made this test:

$value = intval($_GET['val']);
echo "value: $value ";
$value = (int) $_GET['val'];
echo "value: $value ";
?>
Then I passed on the GET, different values:
- ?val=me123// Displays 0 in both cases as expected.
- ?val=123me// Displays 123 in both cases.
- ?val=12me3// Displays 12 in both cases.
- ?val=46.5 // Displays 46 in both cases.
Just my questions:
Are I correct assuming that the both aproaches give always the same result?
Which one is more polite and/or correct to filter the user data? and 
faster ?

Thanks in advance,
Jordi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Dissappering Tables Server wide

2004-07-05 Thread Matthew Sims
> * Thus wrote Chris:
>> Hi All.
>>
>> What would cause all the tables in all the databases to be deleted all
>> at
>> once?
>
> a magic spell?
>
>
> Curt

The Keibler Elves

--Matthew Sims
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Something like strip_tags?

2004-07-05 Thread Curt Zirzow
* Thus wrote John W. Holmes:
> Jason Paschal wrote:
> 
> >i'd like to be able to strip only one type of HTML tag from a web 
> >document (), but to do that with strip_tags(), i'd have to predict 
> >every possible HTML tag that might be used, except for the one i want to 
> >strip, and put those in the allowable tags parameter.
> >
> >That's why I was hoping someone knew of a better way to accomplish 
> >this.  Any suggestions are welcome.
> 
> Something like
> 
> $new_text = preg_replace('!!iU','',$old_text);
> 
> will get rid of the  tags and leave everything else. Honestly, 
> though, if you're allowing everything else, why not allow these? I can 
> just as easily set up the text with decorations to make it look like a 
> link and give it an "onclick" action to load another page...

heh..  when I need someone for a security audit I'll keep you in
mind :D


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] compiling 3'd party php modules

2004-07-05 Thread Curt Zirzow
* Thus wrote Zilvinas Saltys:
> Hello,
> 
> I need to compile sqlanywhere module. 
> http://www.sybase.com/detail/1,6904,1019698,00.html

heh.. thats funny a  zip that contains a tar.gz file...

> Theyr documentation says that i need to compile the whole php source tree. That is 
> not an easy task on gentoo with ebuilds. Well i managed to do that.
> 
> But maybe there is an easier way? To compile seperate modules and just load them 
> with dl() function..
> 

If they have things set up properly, you can simply extract that
into a directory, run phpize (you'll need some development tools
like automake and autconf)

then ./configure; make install

You can use dl() but it's deprecated in php5. Loading it via your
extension_dir would be prefered.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Dissappering Tables Server wide

2004-07-05 Thread Curt Zirzow
* Thus wrote Chris:
> Hi All.
> 
> What would cause all the tables in all the databases to be deleted all at
> once?

a magic spell?


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User Logon Procedure Fails

2004-07-05 Thread Curt Zirzow
* Thus wrote Harlequin:
> Another day another problem. This time it appears that users are able to
> enter their details but I get a query execution error with the following
> section of code:
> 
> /* Verify Login */
>   $sql = "SELECT UserFirstName,UserID,UserPassword FROM RegisteredMembers
>   WHERE UserID='$_POST[TXT_UserID]'";
>   $result = mysql_query($sql) or die ("couldn't select database");
>   $num = mysql_num_rows($result);
>   if ($num == 1) //Login Name Was Found
>   {
>$sql = "SELECT UserID FROM RegisteredMembers
>   WHERE UserID='$_POST[TXT_UserID]'
> AND password=UserPassword('$_POST[TXT_UserPassword]')";
>$result2 = mysql_query($sql) or die("Couldn't execute query #2.");
> 
> The next to last line is bugging me though. "AND password= etc. because I
> have a variable declared earlier in the logon page for TXT_UserPassword and
> the UserPassword column exists but where in the hell is "password"...?

Look at your table structure.

> 
> Is this another of MySQLs "on the fly" variables...?

no.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: User Logon Procedure Fails

2004-07-05 Thread Curt Zirzow
* Thus wrote Torsten Roehr:
> "Harlequin" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Another day another problem. This time it appears that users are able to
> > enter their details but I get a query execution error with the following
> > section of code:
> >
> > /* Verify Login */
> >   $sql = "SELECT UserFirstName,UserID,UserPassword FROM RegisteredMembers
> >   WHERE UserID='$_POST[TXT_UserID]'";
> 
> If your user id is of type int you don't need the quotes around the value.
> But you definitely need quotes around your POST array key:
> $sql = "SELECT UserFirstName,UserID,UserPassword FROM RegisteredMembers
> WHERE UserID = $_POST['TXT_UserID']";

Don't forget the {}'s

"... WHERE UserID = {$_POST['TXT_UserID']}";

And to take it a step further: what if I passed:
  

Guess what... I bypassed your security. Validate/Make sure you're
data is what you expect, a simple:

  $userid = (int) $_POST['TXT_UserID'];
  $sql = "... WHERE UserID = $userid";

Will fix that problem.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Mail

2004-07-05 Thread John Hicks
Check with your hosting company. It's not that 
difficult for them to give you IMAP access also.

You could write a server-based application that would 
retrieve your users' mail via POP3 and then store it 
in your users' home directory so it could be accessed 
from any computer via a web interface. But you would 
merely be reinventing IMAP!!

--John

On Monday 05 July 2004 02:22 pm, I.A. Gray wrote:
> Hi all,
>
> Thanks for all your info.  The hosting company I use
> gives us POP3 accounts. To be honest I don't have a
> clue about IMAP- I've only heard the name, and don't
> understand the way it works.  I assume because we
> only have POP3 accounts, we have to use a POP3
> webmail service.  We want all our customers to be
> able to have a webmail service so that they can
> check their POP3 accounts from any computer round
> the world.  And, of course it has to be in PHP- what
> other language is there?
>
> Thanks again,
>
> Ian
>
> -Original Message-
> From: John Hicks [mailto:[EMAIL PROTECTED]
> Sent: 05 July 2004 18:01
> To: I.A. Gray; Jose Leon; [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Web Mail
>
> On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
> > Thanks- looked at Squirrel Mail.  Looks really
> > good, however we use POP3- I don't think Squirrel
> > Mail uses POP3 does it?
>
> Most if not all web-based mail clients use IMAP
> since a web-based (i.e. browser-based) client can't
> store the received mail on the local computer the
> way a POP3-based email client does.
>
> Besides, the whole reason for using a web-based
> client is to be able to log in from various
> computers. Why would you not want to store the mail
> back on the server the way IMAP does. POP3 delivers
> the mail to the client and then drops it.
>
> --John
>
> > -Original Message-
> > From: Jose Leon [mailto:[EMAIL PROTECTED]
> > Sent: 05 July 2004 12:09
> > To: I.A. Gray
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] PHP Web Mail
> >
> >
> > Hello,
> >
> > > Does anyone know a good PHP-based (free if
> > > possible) web mail other than UebiMiau that they
> > > would recommend?
> >
> > Why not Squirrel Mail?
> >
> > http://www.squirrelmail.org
> >
> > Regards.
> > --
> > qadram :: software development
> > http://www.qadram.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> > http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Bug ?

2004-07-05 Thread Lars Torben Wilson
Siddharth Hegde wrote:
While we are on this topic, I have noticed that for only some keys,
the following does not work
$arr[KEY_NAME] but when I change this to $arr['KEY_NAME'] it works.
I seriosuly doubt that KEY_NAME is a restricted keyword as dreamweawer
highlights these in different colors and this happens very rarely. In
any case I will be working on PHP5 so i guess it will not happen again
This is explained in the manual section on arrays:
http://www.php.net/manual/en/language.types.array.php#language.types.array.donts
Sorry if that link wraps.
Cheers,
--
Torben Wilson <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] quick newbie q: mysql_insert_id()

2004-07-05 Thread John W. Holmes
Christopher J. Mackie wrote:
If I want to use PEAR DB to handle my database connections, how do I
retrieve the recordID (primary key) added when I run an INSERT query?
mysql_insert_id($db_object) doesn't seem to work if the object is PEAR, and
the PEAR docs don't seem to show the same function.
You probably need to use sequences, which are compatible across more 
databases and simulated in MySQL, I guess. Read here: 
http://pear.php.net/manual/en/package.database.db.db-common.nextid.php

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: quick newbie q: mysql_insert_id()

2004-07-05 Thread Torsten Roehr
"Christopher J. Mackie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I want to use PEAR DB to handle my database connections, how do I
> retrieve the recordID (primary key) added when I run an INSERT query?
> mysql_insert_id($db_object) doesn't seem to work if the object is PEAR,
and
> the PEAR docs don't seem to show the same function.

Please search the PEAR general mailing list archive. This question is being
asked (and answered) frequently:
http://marc.theaimsgroup.com/?l=pear-general

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Socket Tutorial

2004-07-05 Thread Andrew
Hi guys,

Can somebody provide a good PHP Socket Programming tutorial. I'm working on
a chat server application. The client is XMLsocket based Flash movie.

Thanks, Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] quick newbie q: mysql_insert_id()

2004-07-05 Thread Christopher J. Mackie
If I want to use PEAR DB to handle my database connections, how do I
retrieve the recordID (primary key) added when I run an INSERT query?
mysql_insert_id($db_object) doesn't seem to work if the object is PEAR, and
the PEAR docs don't seem to show the same function.

Tx,  --CJ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Web Mail

2004-07-05 Thread I.A. Gray
Hi all,

Thanks for all your info.  The hosting company I use gives us POP3 accounts.
To be honest I don't have a clue about IMAP- I've only heard the name, and
don't understand the way it works.  I assume because we only have POP3
accounts, we have to use a POP3 webmail service.  We want all our customers
to be able to have a webmail service so that they can check their POP3
accounts from any computer round the world.  And, of course it has to be in
PHP- what other language is there?

Thanks again,

Ian

-Original Message-
From: John Hicks [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 18:01
To: I.A. Gray; Jose Leon; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Web Mail


On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
> Thanks- looked at Squirrel Mail.  Looks really good,
> however we use POP3- I don't think Squirrel Mail
> uses POP3 does it?

Most if not all web-based mail clients use IMAP since a
web-based (i.e. browser-based) client can't store the
received mail on the local computer the way a
POP3-based email client does.

Besides, the whole reason for using a web-based client
is to be able to log in from various computers. Why
would you not want to store the mail back on the
server the way IMAP does. POP3 delivers the mail to
the client and then drops it.

--John


> -Original Message-
> From: Jose Leon [mailto:[EMAIL PROTECTED]
> Sent: 05 July 2004 12:09
> To: I.A. Gray
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Web Mail
>
>
> Hello,
>
> > Does anyone know a good PHP-based (free if
> > possible) web mail other than UebiMiau that they
> > would recommend?
>
> Why not Squirrel Mail?
>
> http://www.squirrelmail.org
>
> Regards.
> --
> qadram :: software development
> http://www.qadram.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: string

2004-07-05 Thread water_foul
from help me with eregi:

sorry i didn't relise i did that till just now

"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> w> ho do you make a eregi so it looks at the var as a single line
>
> If anyone helps you after you posted 15KB of pointless HTML.. twice..
> I'll be amazed.
>
> Best regards,
>
> Richard Davey
> -- 
>  http://www.launchcode.co.uk - PHP Development Services
>  "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] help me with eregi

2004-07-05 Thread John W. Holmes
water_foul wrote:
ho do you make a eregi so it looks at the var as a single line
use the preg_ functions.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me with eregi

2004-07-05 Thread water_foul
sorry i didn't relise i did that till just now

"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> w> ho do you make a eregi so it looks at the var as a single line
>
> If anyone helps you after you posted 15KB of pointless HTML.. twice..
> I'll be amazed.
>
> Best regards,
>
> Richard Davey
> -- 
>  http://www.launchcode.co.uk - PHP Development Services
>  "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] help me with eregi

2004-07-05 Thread Richard Davey
w> ho do you make a eregi so it looks at the var as a single line

If anyone helps you after you posted 15KB of pointless HTML.. twice..
I'll be amazed.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] help me with eregi

2004-07-05 Thread water_foul
ho do you make a eregi so it looks at the var as a single line

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: make an image disappear when page loads

2004-07-05 Thread Steve Douville
I use two div tags, one encapsulating the page contents and one that holds
the image. PHP turns them on or off by echoing a javascript command at the
appropriate time when the data is compiled and ready to show.
- Original Message - 
From: "Pierre" <[EMAIL PROTECTED]>
To: "'Egil Berntsen'" <[EMAIL PROTECTED]>; "Php-General"
<[EMAIL PROTECTED]>
Sent: Monday, July 05, 2004 1:02 PM
Subject: RE: [PHP] Re: make an image disappear when page loads


Why not use buffering ?
-Message d'origine-
De : Egil Berntsen [mailto:[EMAIL PROTECTED]
Envoyé : lundi 5 juillet 2004 18:01
À : [EMAIL PROTECTED]
Objet : [PHP] Re: make an image disappear when page loads

OK, so I guess you want to use plain php with submitting.
Use if-statement to check the wanted data. If so, don't echo the html-text.

/egil

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what do you mean by fx Javascript ?
> what I want really is something like what happens on this page when you
> search for a flight,
> http://www.expedia.net/daily/home/default.asp
> an in between page comes on until the information about flights is loaded.
> how can I do that with php?
> "Egil Berntsen" <[EMAIL PROTECTED]> wrote in message
> news:20040705161311.8570.qmail@
> pb1.pair.com...
> > You say "has loaded", do you mean dynamic without submitting?
> > If so, the answer is dhtml, fx JavaScript.
> >
> > /egil
> >
> > "Diana Castillo" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > does anyone know how I can put an image on a page that disappears when
> the
> > > data that I wanted to get has loaded?
> > >
> > >
> > > --
> > > Diana Castillo
> > > Global Reservas, S.L.
> > > C/Granvia 22 dcdo 4-dcha
> > > 28013 Madrid-Spain
> > > Tel : 00-34-913604039 Ext 216
> > > Fax : 00-34-915228673
> > > email: [EMAIL PROTECTED]
> > > Web : http://www.hotelkey.com
> > >   http://www.destinia.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: make an image disappear when page loads

2004-07-05 Thread Torsten Roehr
"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what do you mean by fx Javascript ?
> what I want really is something like what happens on this page when you
> search for a flight,
> http://www.expedia.net/daily/home/default.asp
> an in between page comes on until the information about flights is loaded.
> how can I do that with php?

Hi Diana,

create 3 pages:

page 1: form for user input, submit to page 2
page 2: "wait" screen, immediately forward form values to page 3 (via
JavaScript auto-submit of a form with POST or via PHP's header and GET)
page 3: processing of form data

Page 2 will be shown as long as page 3 is processing the data. When page 3
has finished processing the data and started output page 2 will disappear.

Is this what you are looking for?

Regards, Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Mail

2004-07-05 Thread Matthew Sims

> On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
>> Thanks- looked at Squirrel Mail.  Looks really good,
>> however we use POP3- I don't think Squirrel Mail
>> uses POP3 does it?
>
> Most if not all web-based mail clients use IMAP since a
> web-based (i.e. browser-based) client can't store the
> received mail on the local computer the way a
> POP3-based email client does.
>
> Besides, the whole reason for using a web-based client
> is to be able to log in from various computers. Why
> would you not want to store the mail back on the
> server the way IMAP does. POP3 delivers the mail to
> the client and then drops it.
>
> --John

Just like John says, webmail should use IMAP. Mail clients should use POP3.
If you want a webmail, you should be using IMAP.

I've been using SquirrelMail for over a year and it's fantastic.

--Matthew Sims
--

>
>
>> -Original Message-
>> From: Jose Leon [mailto:[EMAIL PROTECTED]
>> Sent: 05 July 2004 12:09
>> To: I.A. Gray
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: [PHP] PHP Web Mail
>>
>>
>> Hello,
>>
>> > Does anyone know a good PHP-based (free if
>> > possible) web mail other than UebiMiau that they
>> > would recommend?
>>
>> Why not Squirrel Mail?
>>
>> http://www.squirrelmail.org
>>
>> Regards.
>> --
>> qadram :: software development
>> http://www.qadram.com
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: string

2004-07-05 Thread water_foul
oh 1 more thing.. i am looking for:

but in the html it shows up as:

 
-
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ok i've stripped some html from a page and my eregi didn't work, so i
> put it into a text box so i could see what the variable has in it... and i
> got this:
> ---
> Anyone can play on the Free Worlds below
>  
>  
>  
> src=http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
> border=0> UnitedLayer
>   href=client.cgi?world=1&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 1
>  2000 players
>   
> src=http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
> border=0> Peer1
>   href=client.cgi?world=3&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 3
>  1290 players
>   href=client.cgi?world=4&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 4
>  1149 players
>   href=client.cgi?world=5&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 5
>  1157 players
>   
> src=http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
> border=0> AboveNet
>   href=client.cgi?world=7&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 7
>  1154 players
>   href=client.cgi?world=8&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 8
>  1115 players
>  
>  
> src=http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
> border=0> Philadelphia
>   href=client.cgi?world=10&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 10
>  1274 players
>   href=client.cgi?world=11&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 11
>  1151 players
>   
> src=http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
> border=0> NLayer
>   href=client.cgi?world=13&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 13
>  1147 players
>   href=client.cgi?world=14&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 14
>  1148 players
>  
>  
> src=http://www.runescape.com/img/gamewin/ukflag.gif width=30 height=15
> border=0> London
>   href=client.cgi?world=15&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 15
>  1746 players
>   href=client.cgi?world=23&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 23
>  1195 players
>   
> src=http://www.runescape.com/img/gamewin/canadaflag.gif width=30 height=15
> border=0> Toronto
>   href=client.cgi?world=17&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 17
>  1669 players
>   
> src=http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
> border=0> CET
>   href=client.cgi?world=19&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 19
>  1067 players
>   href=client.cgi?world=20&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 20
>  1097 players
>   href=client.cgi?world=25&plugin=-1&lores=0&rand=4843862
> oncontextmenu=return(false) target="_parent" class=c>World 25
>  1128 players
>  
>  
>  
>  
>  
>  
>  
>  
>  
>
>  
> background='http://www.runescape.com/img/stoneback.gif'>
>  
>  
>  Rules of conduct
>
>  Know the rules - don't risk being banned from the game
>  
>
>  
>
>
>  
>
> background='http://www.runescape.com/img/stoneback.gif'>
>  
>  
>  Become a Member
>  Access exclusive benefits for only $5 a month!
>  
>
>  
>
>
>  
> background='http://www.runescape.com/img/stoneback.gif'>
>  
>  
>  Security tips
>  Protect your password and read this important information
>  
>
>  
>
> 
>  
>  
>  
>  
>  
>  
>  
>   
>  
>  http://www.runescape.com/img/playgame/swordarrow.gif";
border="0">
>  
>   
>  
>  
>  
>  
>  
>  
>  
>
>  
> background='http://www.runescape.com/img/stoneback.gif'>
>  
>  
>  Rules of conduct
>
>  Know the rules - don't risk being banned from the game
>  
>
>  
>
>
>  
>
> background='http://www.runescape.com/img/stoneback.gif'>
>  
>  
>  Become a Member
>  Access exclusive benefits 

[PHP] string

2004-07-05 Thread water_foul
ok i've stripped some html from a page and my eregi didn't work, so i
put it into a text box so i could see what the variable has in it... and i
got this:
---
Anyone can play on the Free Worlds below
 
 
 
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> UnitedLayer
 World 1
 2000 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> Peer1
 World 3
 1290 players
 World 4
 1149 players
 World 5
 1157 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> AboveNet
 World 7
 1154 players
 World 8
 1115 players
 
 
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> Philadelphia
 World 10
 1274 players
 World 11
 1151 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> NLayer
 World 13
 1147 players
 World 14
 1148 players
 
 
   http://www.runescape.com/img/gamewin/ukflag.gif width=30 height=15
border=0> London
 World 15
 1746 players
 World 23
 1195 players
  
   http://www.runescape.com/img/gamewin/canadaflag.gif width=30 height=15
border=0> Toronto
 World 17
 1669 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> CET
 World 19
 1067 players
 World 20
 1097 players
 World 25
 1128 players
 
 
 
 
 
 
 
 
 
   
 
   
 
 
 Rules of conduct

 Know the rules - don't risk being banned from the game
 
   
 
   
   
 

   
 
 
 Become a Member
 Access exclusive benefits for only $5 a month!
 
   
 
   
   
 
   
 
 
 Security tips
 Protect your password and read this important information
 
   
 
   

 
 
 
 
 
 
 
  
 
 http://www.runescape.com/img/playgame/swordarrow.gif"; border="0">
 
  
 
 
 
 
 
 
 
   
 
   
 
 
 Rules of conduct

 Know the rules - don't risk being banned from the game
 
   
 
   
   
 

   
 
 
 Become a Member
 Access exclusive benefits for only $5 a month!
 
   
 
   
   
 
   
 
 
 Security tips
 Protect your password and read this important information
 
   
 
   

 
 
 
 
 
 
 Only members can use the 9 worlds belowUse these
worlds to access members only features
 
 
 
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> UnitedLayer
 World 2
 816 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> Peer1
 World 6
 797 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> CET
 World 21
 783 players
 
 
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> AboveNet
 World 9
 803 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> Philadelphia
 World 12
 801 players
  
   http://www.runescape.com/img/gamewin/usflag.gif width=30 height=15
border=0> NLayer
 World 22
 793 players
 
 
   http://www.runescape.com/img/gamewin/ukflag.gif width=30 height=15
border=0> London
 World 16
 980 players
 World 24
 776 players
  
   http://www.runescape.com/img/gamewin/canadaflag.gif width=30 height=15
border=0> Toronto
 World 18
 816 players
 
 
 http://www.runescape.com/img/edge_g2.jpg width=100
height=82 hspace=0 vspace=0>  This
webpage and its contents is copyright 2004 Jagex Ltd  To use our service
you must agree to our  Terms+Conditions  +   Privacy
policyhttp://www.runescape.com/img/edge_c.jpg
width=400 height=42 hspace=0 vspace=0>http://www.runescape.com/img/edge_h2.jpg width=100 height=82 hspace=0
vspace=0>
-
my problem is that eregi looks on the line instead of in the document. i was
wondering if there was a way to get rid of the returns

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Mail

2004-07-05 Thread John Hicks
On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
> Thanks- looked at Squirrel Mail.  Looks really good,
> however we use POP3- I don't think Squirrel Mail
> uses POP3 does it?

Most if not all web-based mail clients use IMAP since a 
web-based (i.e. browser-based) client can't store the 
received mail on the local computer the way a 
POP3-based email client does.

Besides, the whole reason for using a web-based client 
is to be able to log in from various computers. Why 
would you not want to store the mail back on the 
server the way IMAP does. POP3 delivers the mail to 
the client and then drops it.

--John


> -Original Message-
> From: Jose Leon [mailto:[EMAIL PROTECTED]
> Sent: 05 July 2004 12:09
> To: I.A. Gray
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Web Mail
>
>
> Hello,
>
> > Does anyone know a good PHP-based (free if
> > possible) web mail other than UebiMiau that they
> > would recommend?
>
> Why not Squirrel Mail?
>
> http://www.squirrelmail.org
>
> Regards.
> --
> qadram :: software development
> http://www.qadram.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] fopen newbie question

2004-07-05 Thread Joe Carey
I'm trying to read a text file from one server from another.  When I read
from server A to B it works fine and I get the text output that I'm looking
for.  But when I read from B to A I get "Failed to open stream: FTP server
reports 550 Can't check for file existence"  I'm sure that its something how
the server is configured but I can't figure out what I need to ask my host
to change.  Any ideas please?


Joe Carey



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.712 / Virus Database: 468 - Release Date: 6/29/2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: make an image disappear when page loads

2004-07-05 Thread Pierre

Why not use buffering ?
-Message d'origine-
De : Egil Berntsen [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 5 juillet 2004 18:01
À : [EMAIL PROTECTED]
Objet : [PHP] Re: make an image disappear when page loads

OK, so I guess you want to use plain php with submitting.
Use if-statement to check the wanted data. If so, don't echo the html-text.

/egil

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what do you mean by fx Javascript ?
> what I want really is something like what happens on this page when you
> search for a flight,
> http://www.expedia.net/daily/home/default.asp
> an in between page comes on until the information about flights is loaded.
> how can I do that with php?
> "Egil Berntsen" <[EMAIL PROTECTED]> wrote in message
> news:20040705161311.8570.qmail@
> pb1.pair.com...
> > You say "has loaded", do you mean dynamic without submitting?
> > If so, the answer is dhtml, fx JavaScript.
> >
> > /egil
> >
> > "Diana Castillo" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > does anyone know how I can put an image on a page that disappears when
> the
> > > data that I wanted to get has loaded?
> > >
> > >
> > > --
> > > Diana Castillo
> > > Global Reservas, S.L.
> > > C/Granvia 22 dcdo 4-dcha
> > > 28013 Madrid-Spain
> > > Tel : 00-34-913604039 Ext 216
> > > Fax : 00-34-915228673
> > > email: [EMAIL PROTECTED]
> > > Web : http://www.hotelkey.com
> > >   http://www.destinia.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: make an image disappear when page loads

2004-07-05 Thread Egil Berntsen
OK, so I guess you want to use plain php with submitting.
Use if-statement to check the wanted data. If so, don't echo the html-text.

/egil

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what do you mean by fx Javascript ?
> what I want really is something like what happens on this page when you
> search for a flight,
> http://www.expedia.net/daily/home/default.asp
> an in between page comes on until the information about flights is loaded.
> how can I do that with php?
> "Egil Berntsen" <[EMAIL PROTECTED]> wrote in message
> news:20040705161311.8570.qmail@
> pb1.pair.com...
> > You say "has loaded", do you mean dynamic without submitting?
> > If so, the answer is dhtml, fx JavaScript.
> >
> > /egil
> >
> > "Diana Castillo" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > does anyone know how I can put an image on a page that disappears when
> the
> > > data that I wanted to get has loaded?
> > >
> > >
> > > --
> > > Diana Castillo
> > > Global Reservas, S.L.
> > > C/Granvia 22 dcdo 4-dcha
> > > 28013 Madrid-Spain
> > > Tel : 00-34-913604039 Ext 216
> > > Fax : 00-34-915228673
> > > email: [EMAIL PROTECTED]
> > > Web : http://www.hotelkey.com
> > >   http://www.destinia.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] file locking over NFS?

2004-07-05 Thread kyle
Hi all,

Is there any simple, safe, and efficiency way to do file locking over NFS?

Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: make an image disappear when page loads

2004-07-05 Thread Diana Castillo
what do you mean by fx Javascript ?
what I want really is something like what happens on this page when you
search for a flight,
http://www.expedia.net/daily/home/default.asp
an in between page comes on until the information about flights is loaded.
how can I do that with php?
"Egil Berntsen" <[EMAIL PROTECTED]> wrote in message
news:20040705161311.8570.qmail@
pb1.pair.com...
> You say "has loaded", do you mean dynamic without submitting?
> If so, the answer is dhtml, fx JavaScript.
>
> /egil
>
> "Diana Castillo" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > does anyone know how I can put an image on a page that disappears when
the
> > data that I wanted to get has loaded?
> >
> >
> > --
> > Diana Castillo
> > Global Reservas, S.L.
> > C/Granvia 22 dcdo 4-dcha
> > 28013 Madrid-Spain
> > Tel : 00-34-913604039 Ext 216
> > Fax : 00-34-915228673
> > email: [EMAIL PROTECTED]
> > Web : http://www.hotelkey.com
> >   http://www.destinia.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: make an image disappear when page loads

2004-07-05 Thread Egil Berntsen
You say "has loaded", do you mean dynamic without submitting?
If so, the answer is dhtml, fx JavaScript.

/egil

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> does anyone know how I can put an image on a page that disappears when the
> data that I wanted to get has loaded?
>
>
> --
> Diana Castillo
> Global Reservas, S.L.
> C/Granvia 22 dcdo 4-dcha
> 28013 Madrid-Spain
> Tel : 00-34-913604039 Ext 216
> Fax : 00-34-915228673
> email: [EMAIL PROTECTED]
> Web : http://www.hotelkey.com
>   http://www.destinia.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] make an image disappear when page loads

2004-07-05 Thread raditha dissanayake
Diana Castillo wrote:
does anyone know how I can put an image on a page that disappears when the
data that I wanted to get has loaded?
 

people in a javascript list may know
--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] make an image disappear when page loads

2004-07-05 Thread Diana Castillo
does anyone know how I can put an image on a page that disappears when the
data that I wanted to get has loaded?


--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
  http://www.destinia.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Encryption in PHP - mcrypt and alternatives

2004-07-05 Thread Mike Morton
I have a need for an encryption program that can encrypt/decrypt data.  I
previously had a programmer build me a C program that compiled and runs on
the command line, which I would then call via PHP.

We are experiencing with this however, a 5-7% fail rate on the decryption -
not acceptable for the application.  At this point the programmer is blaming
the mcrypt libraries for the problem - I suspect not, but not being a C
programmer, cannot refute this.

So, the next step was to use Mcrypt Libraries through PHP. They are not
compiled into our PHP version - 4.1.2, and we cannot re-compile PHP.  First
reason is that the server runs Plesk 5, and the original compile was done
off server  (you know - host provider - install via disk image, etc).
Bottom line, PHP cannot be re-compiled with mcrypt.

Finally, I tried dynamically loading he libmcrypt.so library - compiled just
this morning specifically for this application.  No go.  It would not load
from the php.ini file, and when I tried to load it on a page, using the dl()
function - I got the error:

Invalid library (maybe not a PHP library) 'libmcrypt.so'

So at this point I am at a total loss.  I cannot hash the data, I need it to
be decrypted at another point as well.

So, I guess I am asking this:

1.  Is there any reasonably priced C programmer that would like to talk to
me about fixing/re-writing this encryption program.
2.  Have I overlooked anything with the dynamic loading of the mcrypt
libraries.
And
3.  Am I missing another alternative for securely encrypting/decrypting data
in PHP?  Short of re-compiling or such.

Thanks in advance!


--
Cheers

Mike Morton


*
* Tel: 905-465-1263
* Email: [EMAIL PROTECTED]
*


"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine

Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread raditha dissanayake
Václav Slováček wrote:
When my web is hosted, there is no other way how to solve it? I 
realized  that I can't see the file in my ftp client, so I cant't 
change the  permissions. Of course, I can't use chmod() to change the 
permissions when  I'm not allowed to write into the file. So the only 
solution is to contact  admin?
ftp clients usually have a special configuration setting that will allow 
you to view such 'hidden' files.

Dne Mon, 5 Jul 2004 17:40:55 +0800 napsal/-a Jason Wong  
<[EMAIL PROTECTED]> příspěvek následujícího znění::

On Monday 05 July 2004 16:58, Václav Slováček wrote:
I have a problem, but maybe it's more about Apache than about PHP. 
I  need
to access a Apache .htaccess file from PHP and modify it, but I 
always  get
"access denied" error. Could you help me, with solving this problem?

"access denied" most likely means you don't have permission to  
read/write it.
If you're running your own server, change the permissions accordingly,
otherwise explain to your server admin why you want to change the  
.htaccess
file(s).



--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] file upload and permission problem.

2004-07-05 Thread raditha dissanayake
Angelo binc2 wrote:
Hi all I am trying to upload a file using PHP.
I can successfully create a folder, but when I try upload the file it
gives me the following error when using the move_uploaded_file function:
Warning: move_uploaded_file(c:/program files/apache
group/apache/htdocs/zerodocs/40/) [function.move-uploaded-file]: failed
to create stream: Permission denied in c:\program files\apache
group\apache\htdocs\zero\opdocument.php on line 80
 

Please post only the relevent sections of your code in future messages 
instead of the complete script. You are more likely to get an answer then.

This problem reffered to seemed to be caused by the user that owns the 
webserver process not having the write permissions for the folder that 
you have created. I am sure this would have been discussed in the user 
contributed comments under the file uploaded sections of the manual. 
Usually giving write permissions is all that it would take.

--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Web Mail

2004-07-05 Thread Petar [Lists]
www.ilohamail.org

You can set this one up in about 10 minutes and will do IMAP and POP3.

Works with flat files or MYSQL

..Petar

- Original Message - 
From: "I.A. Gray" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 05, 2004 6:14 PM
Subject: [PHP] PHP Web Mail


> Hi everyone,
> 
> I use UebiMiau for our web mail service, but to be honest I haven't been
> particularly happy with it.  It's ok, but what I find frustrating is that if
> our customers click the back button on their browser it always gives the
> 'this page has expired' message.  I assume it is using sessions, but still-
> does this message always have to be displayed? It always seems to log you
> out quite easilly. Web mail services such as hotmail or yahoo don't do this.
> Does anyone know a good PHP-based (free if possible) web mail other than
> UebiMiau that they would recommend?
> 
> Best wishes,
> 
> Ian
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Mail

2004-07-05 Thread raditha dissanayake
I.A. Gray wrote:
Thanks- looked at Squirrel Mail.  Looks really good, however we use POP3- I
don't think Squirrel Mail uses POP3 does it?
 

at the risk of starting a flame war: IMAP is the devine way of using 
email. POP3 sux. :-)
(sorry couldn't resist)

--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP5 / MySQLi + Apache: InnoDB access problems -> solved + FLUSH BROWSER CACHE advice

2004-07-05 Thread Bauke Jan Douma
OK, after three days of increasingly frustrating tinkering with configs, logs,
permissions, compiling, recompiling of mysql, apache, php, and a lot
of permutations and combinations of flags, options, settings and what have
you, I finally found the cause of the problem as described in my posting.

To the possible benefit of others I will post that solution here now.

It appears that all the time, since php-4.3.7, I had it compiled with
a configure flag of '--enable-embedded-mysqli', and PHP5 was also compiled
with that flag.

So today I (again) recompiled PHP5 without that flag.

Before that I had also recompiled Apache and this time enabled the standard
'prefork' model instead of the 'worker' model that I had had before, because
I seemed to run across a report somewhere that mysqli had problems working
with a 'worker' Apache.

Well that didn't seem to solve my problems, much as I had hoped.  Instead,
now it all seemed to work even less.  Apache now seemed to pass through the
*.php files  just like that (Mozilla then didn't know what to do with them).
Still some very basic *.php scripts still worked (not those calling any
mysqli functions), but another very basic one, that just called phpinfo()
didn't.
This was astonishing, and seemed to lack every rationale.  It was just very
erratic behaviour from Apache / PHP now, some very basic php scripts worked
-- some just as basic didn't.  Anything with with mysqli calls didn't work.
I was about to give up.

Then I did that recompile of PHP without the '--enable-embedded-mysqli'.
That didn't seem to make much of a difference, although now I could run the
command-line php on the mysqli.php script while the mysqld server was running
and it worked.  Hmm, something started working.  But still anything from
Mozilla displayed the same erratic behaviour as before.  Killing, starting
restarting Apache, it remained erratic, and even erratic in its erreticism...

Then it occured to me, might it help flushing Mozilla's cache?  So I flushed
the cache, and ... well, it all started working.

To me the biggest morale to this story is, if you're testing PHP and/or php
scripts, ALWAYS FLUSH THAT BROWSER CACHE  (or setting it to 0 should work I
guess). (Pardon my shouting but I think it's in order here).

Right now I've reinstated the strict permissions on mysql's datadir and
databases, which I had opened up in the belief that that would work.

Alive and kicking -- End of story.

BJ

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Web Mail

2004-07-05 Thread Jose Leon
Hello,
On Mon, 5 Jul 2004 12:33:38 +0100, I.A. Gray <[EMAIL PROTECTED]> wrote:
> Thanks- looked at Squirrel Mail.  Looks really good, however we use POP3- I
> don't think Squirrel Mail uses POP3 does it?
SquirrelMail is a web interface to an IMAP mail server, you can set up
fetch mail to retrieve your POP3 mail accounts and put the mail into
the Cyrus IMAP server, that way, you can handle all your mail from a
single point.

Regards.
-- 
qadram :: software development
http://www.qadram.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread Jason Wong
On Monday 05 July 2004 18:13, Václav Slováček wrote:

> So the only solution is to contact admin?

Yes.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
86. What do you mean that wasn't a copy?

--Top 100 things you don't want the sysadmin to say
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Web Mail

2004-07-05 Thread webmaster
Try www.horde.org

It's not only a webmail client, but has a whole load more!

Nunners

Quoting "I.A. Gray" <[EMAIL PROTECTED]>:

> Thanks- looked at Squirrel Mail.  Looks really good, however we use POP3- I
> don't think Squirrel Mail uses POP3 does it?
>
>
>
> -Original Message-
> From: Jose Leon [mailto:[EMAIL PROTECTED]
> Sent: 05 July 2004 12:09
> To: I.A. Gray
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Web Mail
>
>
> Hello,
> > Does anyone know a good PHP-based (free if possible) web mail other than
> > UebiMiau that they would recommend?
> Why not Squirrel Mail?
>
> http://www.squirrelmail.org
>
> Regards.
> --
> qadram :: software development
> http://www.qadram.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Web Mail

2004-07-05 Thread I.A. Gray
Thanks- looked at Squirrel Mail.  Looks really good, however we use POP3- I
don't think Squirrel Mail uses POP3 does it?



-Original Message-
From: Jose Leon [mailto:[EMAIL PROTECTED]
Sent: 05 July 2004 12:09
To: I.A. Gray
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Web Mail


Hello,
> Does anyone know a good PHP-based (free if possible) web mail other than
> UebiMiau that they would recommend?
Why not Squirrel Mail?

http://www.squirrelmail.org

Regards.
--
qadram :: software development
http://www.qadram.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] file upload and permission problem.

2004-07-05 Thread Angelo binc2
Hi all I am trying to upload a file using PHP.

I can successfully create a folder, but when I try upload the file it
gives me the following error when using the move_uploaded_file function:


Warning: move_uploaded_file(c:/program files/apache
group/apache/htdocs/zerodocs/40/) [function.move-uploaded-file]: failed
to create stream: Permission denied in c:\program files\apache
group\apache\htdocs\zero\opdocument.php on line 80

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
move 'c:\temp\php7C.tmp' to 'c:/program files/apache
group/apache/htdocs/zerodocs/40/' in c:\program files\apache
group\apache\htdocs\zero\opdocument.php on line 80
Error: Unable to move file to designated directory. 

I have checked that filesize, directory, filename etc... to make sure
it should work. I have come to the conclusion that it is the permissions
of the directory created. I am using a windows box. I have read the also
when using mkdir() the mode is ignored for windows machines, so is it a
permission problem or am I missing something? 

below is a copy of my upload function:

   // root path
$path = $_SERVER['DOCUMENT_ROOT'];

// upload directory. path will originate from root.
$dirname = '/zerodocs/' . $_SESSION['o_id'] . "/";

// permission settings for newly created folders
$chmod = 0755;

// create file vars to make things easier to read.
$filename = $_FILES['myfile']['name'];
$filesize = $_FILES['myfile']['size'];
$filetype = $_FILES['myfile']['type'];
$file_tmp = $_FILES['myfile']['tmp_name'];
$file_err = $_FILES['myfile']['error'];
$file_ext = strrchr($filename, '.');

// check if user actually put something in the file input field.
if (($file_err == 0) && ($filesize != 0))
{
// Check extension.
if (!$file_ext)
{
unlink($file_tmp);
die('File must have an extension.');
}

// extra check to prevent file attacks.
if (is_uploaded_file($file_tmp))
{
/*
* check if the directory exists
* if it doesnt exist, make the directory
*/
$dir = $path . $dirname;

if (!is_dir($dir))
{
$dirtemp = explode('/', $dirname);

foreach ($dirtemp as $sub_dir)
{
$path .= '/' . $sub_dir;
if (!is_dir($path))
{
if (!mkdir($path, $chmod))
{
unlink($file_tmp);
die('Error: Directory does
not exist and was unable to be created.');
}
}
}
}

/*
* copy the file from the temporary upload directory
* to its final detination.
*/

echo("Dir: " . $dir);
echo(" filename: " . $filename);
if (move_uploaded_file($file_tmp, $dir))
{
// get date time stamp
$today=getdate();
$dt=$today['year']."-".
$today['mon']."-".$today['mday']."
".$today['hours'].":".$today['minutes'].":".$today['seconds'];
//add file and directory info to the
database for the operation
$connect->addFileTodb($_SESSION['o_id'],
$filename, $dir, $dt);
}
else
{
// error moving file. check file permissions.
unlink($file_tmp);
echo 'Error: Unable to move file to
designated directory.';
}
}
else
{
// file seems suspicious... delete file and error out.
unlink($file_tmp);
echo 'Error: File does not appear to be a
valid upload. Could be a file attack.';
}
}
else
{
// Kill temp file, if any, and display error.
if ($file_tmp != '')
{
unlink($file_tmp);
}

switch ($file_err)
{
case '0':
echo 'That is not a valid file. 0 byte length.';
break;

case '1':
echo 'This file, at ' . $filesize . ' bytes, exceeds
the maximum allowed file size as set in php.ini. '.
'Please contact your system admin.';
break;

case '2':
echo 'This file exceeds the maximum file size specified
in your HTML form.';
break;

case '3':
echo 'File was only partially uploaded. This could be
the result of your connection '.
'being dropped in the middle of the upload.';

case '4':
echo 'You did not upload anything... Please go back and
select a file to upload.';
   

Re: [PHP] PHP Web Mail

2004-07-05 Thread Jose Leon
Hello,
> Does anyone know a good PHP-based (free if possible) web mail other than
> UebiMiau that they would recommend?
Why not Squirrel Mail?

http://www.squirrelmail.org

Regards.
--
qadram :: software development
http://www.qadram.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread Václav Slováček
When my web is hosted, there is no other way how to solve it? I realized  
that I can't see the file in my ftp client, so I cant't change the  
permissions. Of course, I can't use chmod() to change the permissions when  
I'm not allowed to write into the file. So the only solution is to contact  
admin?

Dne Mon, 5 Jul 2004 17:40:55 +0800 napsal/-a Jason Wong  
<[EMAIL PROTECTED]> příspěvek následujícího znění::

On Monday 05 July 2004 16:58, Václav Slováček wrote:
I have a problem, but maybe it's more about Apache than about PHP. I  
need
to access a Apache .htaccess file from PHP and modify it, but I always  
get
"access denied" error. Could you help me, with solving this problem?
"access denied" most likely means you don't have permission to  
read/write it.
If you're running your own server, change the permissions accordingly,
otherwise explain to your server admin why you want to change the  
.htaccess
file(s).

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP Web Mail

2004-07-05 Thread I.A. Gray
Hi everyone,

I use UebiMiau for our web mail service, but to be honest I haven't been
particularly happy with it.  It's ok, but what I find frustrating is that if
our customers click the back button on their browser it always gives the
'this page has expired' message.  I assume it is using sessions, but still-
does this message always have to be displayed? It always seems to log you
out quite easilly. Web mail services such as hotmail or yahoo don't do this.
Does anyone know a good PHP-based (free if possible) web mail other than
UebiMiau that they would recommend?

Best wishes,

Ian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Dissappering Tables Server wide

2004-07-05 Thread Gerben
Do you want all tables to dissapear or did this happen (unwanted)?

"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All.
>
> What would cause all the tables in all the databases to be deleted all at
> once?
>
> TIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread Gerben
You will have to chmod these .htaccess files


"John" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
what are the files permissons?
of these are set wrong it could cause your problem

On Mon, 05 Jul 2004 10:58:54 +0200, Václav Slovácek <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a problem, but maybe it's more about Apache than about PHP. I need
> to access a Apache .htaccess file from PHP and modify it, but I always get
> "access denied" error. Could you help me, with solving this problem?
> Thank you.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
John
[EMAIL PROTECTED]
http://www.whp.co.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread John
what are the files permissons?
of these are set wrong it could cause your problem

On Mon, 05 Jul 2004 10:58:54 +0200, VÃclav SlovÃÄek <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I have a problem, but maybe it's more about Apache than about PHP. I need
> to access a Apache .htaccess file from PHP and modify it, but I always get
> "access denied" error. Could you help me, with solving this problem?
> Thank you.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
John 
[EMAIL PROTECTED]
http://www.whp.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] include but not browse

2004-07-05 Thread Jason Wong
On Monday 05 July 2004 17:48, Jason Wong wrote:
> On Monday 05 July 2004 16:18, Tumurbaatar S. wrote:
> > Generally, it isn't a PHP related but...
> > I'm not a Linux/Apache user and know nothing
> > about how to manage permissions there.
> > I need to disable browsing for some of subfolders
> > on my site but php scripts located in these subfolders
> > should be accessible by php's include/require.
> > It's easy to do on Windows/IIS but how to do it on Linux/Apache?
>
> Assuming you mean if someone goes to:
>
>   http://www.yoursite.com/subfolder/
>
> then they should not see the list of files in subfolder, you want to look
> at the  directive. Look on the apache site for detailed
> info.

A further note: you should probably deny access to the directory in question 
(using the appropriate directive). This will prevent the webserver from 
serving any files in that directory but php will still be able to include 
said files.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Work consists of whatever a body is obliged to do.
Play consists of whatever a body is not obliged to do.
-- Mark Twain
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread zareef ahmed
--- Václav Slováèek <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I have a problem, but maybe it's more about Apache
> than about PHP. I need  
> to access a Apache .htaccess file from PHP and
> modify it, but I always get  
> "access denied" error. Could you help me, with
> solving this problem?

Please check if you ( the user which runs apache,
usually named 'nobody') has permissions to write.

You may(should)  change the permissions of the file to
modify it.

zareef ahmed
 

> Thank you.
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] include but not browse

2004-07-05 Thread Jason Wong
On Monday 05 July 2004 16:18, Tumurbaatar S. wrote:

> Generally, it isn't a PHP related but...
> I'm not a Linux/Apache user and know nothing
> about how to manage permissions there.
> I need to disable browsing for some of subfolders
> on my site but php scripts located in these subfolders
> should be accessible by php's include/require.
> It's easy to do on Windows/IIS but how to do it on Linux/Apache?

Assuming you mean if someone goes to:

  http://www.yoursite.com/subfolder/

then they should not see the list of files in subfolder, you want to look at 
the  directive. Look on the apache site for detailed info.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Anyone who goes to a psychiatrist ought to have his head examined.
-- Samuel Goldwyn
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] .htaccess file

2004-07-05 Thread Jason Wong
On Monday 05 July 2004 16:58, Václav Slováček wrote:

> I have a problem, but maybe it's more about Apache than about PHP. I need
> to access a Apache .htaccess file from PHP and modify it, but I always get
> "access denied" error. Could you help me, with solving this problem?

"access denied" most likely means you don't have permission to read/write it. 
If you're running your own server, change the permissions accordingly, 
otherwise explain to your server admin why you want to change the .htaccess 
file(s).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Ummm, well, OK.  The network's the network, the computer's the computer.
Sorry for the confusion.
-- Sun Microsystems
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problems linking a DLL to Zend symbols like _compiler_globals_id

2004-07-05 Thread Vincent Graux
where (in which detailed list) should I ask a question about problems 
linking a DLL to Zend symbols like _compiler_globals_id ?

thks
O volupté calme et profonde
Des amours qui sont nés sans pleurs,
Volupté saine comme une onde
Qui chante sur un lit de fleurs.
-Poésies, Sully Prud'homme
René François Armand Prud'homme , 1839-1907
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] .htaccess file

2004-07-05 Thread Václav Slováček
Hi all,
I have a problem, but maybe it's more about Apache than about PHP. I need  
to access a Apache .htaccess file from PHP and modify it, but I always get  
"access denied" error. Could you help me, with solving this problem?
Thank you.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] problem with crypt

2004-07-05 Thread Nitin
unknown value means, i cannot validate the user again. Password value is
unrecognized, or maybe something randomly generated.


- Original Message - 
From: "zareef ahmed" <[EMAIL PROTECTED]>
To: "Nitin" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Monday, July 05, 2004 1:25 PM
Subject: Re: [PHP] problem with crypt


> --- Nitin <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I'm using PHP function crypt() to encrypt the
> > password while updating the password for user's
> > email accounts.
> > It was running fine on PHP 4.0.6, but since I
> > updated to PHP 4.1.2, it's giving me problems. No
> > errors, nothing, password is updated but to unknown
> > value.
>
> what do you mean by unknown value.
> is it string "unknown value"??? or something else you
> can not recognise.
> It should not be a problem as long as you are able to
> validate it.
>
> zareef ahmed
>
> >
> > Is this some kind of bug of crypt() function or what
> > else it could be? Scripts are same.
> >
> > Please help as soon as possible.
> > Thanks in advance
>
>
> =
> Zareef Ahmed :: A PHP Developer in Delhi(India).
> Homepage :: http://www.zasaifi.com
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] include but not browse

2004-07-05 Thread Tumurbaatar S.
Generally, it isn't a PHP related but...
I'm not a Linux/Apache user and know nothing
about how to manage permissions there.
I need to disable browsing for some of subfolders
on my site but php scripts located in these subfolders
should be accessible by php's include/require.
It's easy to do on Windows/IIS but how to do it on Linux/Apache?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Dissappering Tables Server wide

2004-07-05 Thread raditha dissanayake
Chris wrote:
Hi All.
What would cause all the tables in all the databases to be deleted all at
once?
 

a simple for loop.
TIA
 


--
Raditha Dissanayake.
-
http://www.raditha.com/megaupload/upload.php
Sneak past the PHP file upload limits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] problem with crypt

2004-07-05 Thread zareef ahmed
--- Nitin <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I'm using PHP function crypt() to encrypt the
> password while updating the password for user's
> email accounts.
> It was running fine on PHP 4.0.6, but since I
> updated to PHP 4.1.2, it's giving me problems. No
> errors, nothing, password is updated but to unknown
> value. 

what do you mean by unknown value.
is it string "unknown value"??? or something else you
can not recognise.
It should not be a problem as long as you are able to
validate it.

zareef ahmed

> 
> Is this some kind of bug of crypt() function or what
> else it could be? Scripts are same.
> 
> Please help as soon as possible.
> Thanks in advance


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com



__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problem with crypt

2004-07-05 Thread Nitin
Hi all,

I'm using PHP function crypt() to encrypt the password while updating the password for 
user's email accounts.
It was running fine on PHP 4.0.6, but since I updated to PHP 4.1.2, it's giving me 
problems. No errors, nothing, password is updated but to unknown value. 

Is this some kind of bug of crypt() function or what else it could be? Scripts are 
same.

Please help as soon as possible.
Thanks in advance

Re: [PHP] conditional includes in class functions

2004-07-05 Thread zareef ahmed


--- Dennis Gearon <[EMAIL PROTECTED]> wrote:
> Anyone ever done that?
> 
> Does PHP actually wait until the include is actually
> needed before it does it? It might wait to execute
> it, but does it wait to include it?
> 
A close look at diffrences  between require and
include may help you.

http://www.faqts.com/knowledge_base/view.phtml/aid/6


=
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] conditional includes in class functions

2004-07-05 Thread Dennis Gearon
Anyone ever done that?
Does PHP actually wait until the include is actually needed before it does it? It 
might wait to execute it, but does it wait to include it?
Trying to speed up the loading of pages.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php