php-general Digest 28 Feb 2001 05:47:44 -0000 Issue 538

Topics (messages 41848 through 41952):

regex help
        41848 by: Jerry Lake

Re: $PATH_INFO
        41849 by: Sam Masiello
        41850 by: Data Driven Design

GD installed but imageFUNCTIONS dont work
        41851 by: Helmut Ott
        41857 by: Dale Frohman

dir() only works with file/dir names >= 6 chars? (irix)
        41852 by: Dean Waldow

session problem
        41853 by: kaab kaoutar
        41929 by: Chris Lee

PHP/NT4/IIS5 problem
        41854 by: Todd Cary

Re: good ide?
        41855 by: James Moore
        41858 by: Ernest E Vogelsinger
        41859 by: Clayton Dukes
        41886 by: Jay Brown
        41889 by: Jay Brown

Re: Exception Handling in php
        41856 by: php3.developersdesk.com

File sending?
        41860 by: Chris
        41912 by: Richard Lynch

while loop and modulus?
        41861 by: James, Yz
        41873 by: Ron Wills
        41874 by: DanO

search + sitemap scripts
        41862 by: Ali
        41864 by: Clayton Dukes

Re: Return Image for PHP Link
        41863 by: Ron Wills

quoting issues in PHP
        41865 by: kevin1
        41875 by: Ron Wills

Solaris and libtool
        41866 by: Montgomery-Recht, Evan

Fopen image and print as binary/Image
        41867 by: Karl J. Stubsjoen
        41913 by: Richard Lynch

imap prob.
        41868 by: n e t b r a i n

finding Friday's date
        41869 by: Adam Plocher
        41879 by: Adam Plocher

convert GIF to JPEG with PHP
        41870 by: Student Center
        41872 by: Ron Wills

Re: [PHP-DB] Resolution detect and redirect
        41871 by: Michael Geier

Re: Stream Content
        41876 by: Ron Wills

Re: PostgreSQL vs InterBase
        41877 by: Ron Wills
        41878 by: Martin A. Marques
        41951 by: mwaples.waples.net

mySQL table joins are slow, need rebuild?
        41880 by: Jason
        41881 by: Joe Stump
        41916 by: Mark Maggelet

Direction Help!
        41882 by: Web master
        41891 by: Joe Stump

File downloading?
        41883 by: Chris
        41884 by: Jason Murray
        41917 by: Chris
        41922 by: Jason Murray
        41935 by: Chris Lee

Re: Help, Perl can, Php can't !
        41885 by: Chris

mail() question
        41887 by: W.D.
        41914 by: W.D.
        41918 by: Peter Houchin

Re: logout
        41888 by: Reuben D Budiardja

parse error on line after last one???
        41890 by: Jaxon
        41893 by: Chris Aitken
        41894 by: Simon Garner

Help with a very small array problem
        41892 by: YoBro
        41928 by: Chris Lee

Re: PHP not proccessing input?
        41895 by: Richard Lynch

Re: Upload --Permission denied simple error...
        41896 by: Richard Lynch

Re: function mail
        41897 by: Richard Lynch

Re: persistant user tracking
        41898 by: Richard Lynch

Re: Detecting if JavaScript is enabled
        41899 by: Richard Lynch

Re: Implode?
        41900 by: Richard Lynch

Re: session_start
        41901 by: Richard Lynch

Re: How do I submit a POST form?
        41902 by: Richard Lynch

Re: Maximum queries from a database?
        41903 by: Richard Lynch

Re: register stop working with a site
        41904 by: Richard Lynch

Re: How to enable GD with PHP
        41905 by: Richard Lynch

Re: forms & functions
        41906 by: Richard Lynch

Re: Sessions question
        41907 by: Richard Lynch

Re: mod_php4
        41908 by: Richard Lynch

Re: Another question about using shmop!
        41909 by: Richard Lynch

Re: image file prob
        41910 by: Richard Lynch

Re: logout and clean up session and cookies
        41911 by: Richard Lynch

Full mailbox
        41915 by: Simon Garner

Help, looking for.
        41919 by: Chris

hrm...only hit submit once
        41920 by: Kurth Bemis
        41926 by: Chris Lee

help with branching eregi
        41921 by: W.D.

NN Problem
        41923 by: Peter Houchin
        41927 by: Chris Lee

LDAP Listing
        41924 by: Mike Tuller

nested include, eval, and function declaration problems
        41925 by: Jaxon

whats happening with form
        41930 by: W.D.
        41934 by: W.D.

Re: File Upload Strangeness
        41931 by: Chris Lee
        41932 by: Jason Murray

Re: ftp connection
        41933 by: Chris Lee

Members area
        41936 by: Brandon Feldhahn
        41940 by: Miles Thompson

Please help with multi eregi
        41937 by: W.D.

very off the topic questions here but hope someone can help out
        41938 by: Jacky.lilst
        41941 by: Simon Garner
        41944 by: richard merit

How to PHP process a .phtml file, or capture the output from within PHP?
        41939 by: Andy Jones
        41942 by: Simon Garner

Ideal cookie lift time???
        41943 by: Peter Houchin
        41945 by: Jochen Kaechelin

Converting code to a function
        41946 by: Clayton Dukes
        41947 by: Simon Garner
        41948 by: Clayton Dukes

PHP single user??
        41949 by: Todd Cary

re:mod_dav and dreamweaver 4.0
        41950 by: Joseph H Blythe

Move a file from dir to another or delete file..?
        41952 by: Dhaval Desai

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


how do I select the first space after some alpha-numeric characters?
I can ^\D\s to get the characters and the space, but how can I select
the space only?

Jerry Lake            - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online     - http://www.pacifier.com






I would have to be inclined to say that you couldn't do that.  None of the
examples that I have ever seen do it that way, and from a perspective of
how a URL is built, how would the browser ever know that you are trying to
access index.php/somevar/somevalue as opposed to thinking that "somevalue"
is supposed to be the name of a page?

I am sure someone will chime in if this is wrong, but I would doubt that it
is....of course, I guess the best way to find out is to try it :)

-- 
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]

On 2001.02.27 11:10:57 -0500 Data Driven Design wrote:
> I've got a page that I'm currently working on that grabs a couple of
> variable from $PATH_INFO and uses them for db queries. The page is
> currently
> called content.php. My question is this, when I replace my index file
> with
> this will
> 
> http://www.mydomain.com/somevar/someothervar
> 
> be the same as
> 
> http://www.mydomain.com/index.php/somevar/someothervar
> 
> It could make things easier for me if it is.
> 
> Data Driven Design
> PO Box 1084
> Holly Hill, Florida 32117
> 
> http://www.datadrivendesign.com
> http://www.rossidesigns.net
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 




I already know that the second example works, I just wanted to know if the
first would before I try it on a live site.

Data Driven Design
PO Box 1084
Holly Hill, Florida 32117

http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message -----
From: "Sam Masiello" <[EMAIL PROTECTED]>
To: "Data Driven Design" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 12:33 PM
Subject: Re: [PHP] $PATH_INFO


>
> I would have to be inclined to say that you couldn't do that.  None of the
> examples that I have ever seen do it that way, and from a perspective of
> how a URL is built, how would the browser ever know that you are trying to
> access index.php/somevar/somevalue as opposed to thinking that "somevalue"
> is supposed to be the name of a page?
>
> I am sure someone will chime in if this is wrong, but I would doubt that
it
> is....of course, I guess the best way to find out is to try it :)
>
> --
> Sam Masiello
> Systems Analyst
> Chek.Com
> (716) 853-1362 x289
> [EMAIL PROTECTED]
>
> On 2001.02.27 11:10:57 -0500 Data Driven Design wrote:
> > I've got a page that I'm currently working on that grabs a couple of
> > variable from $PATH_INFO and uses them for db queries. The page is
> > currently
> > called content.php. My question is this, when I replace my index file
> > with
> > this will
> >
> > http://www.mydomain.com/somevar/someothervar
> >
> > be the same as
> >
> > http://www.mydomain.com/index.php/somevar/someothervar
> >
> > It could make things easier for me if it is.
> >
> > Data Driven Design
> > PO Box 1084
> > Holly Hill, Florida 32117
> >
> > http://www.datadrivendesign.com
> > http://www.rossidesigns.net
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>





Hi, 
hopefully somebody can help to solve this miracle.

My phpinfo

My provider (and phpinfo) says GD <=1.62 is installed.
But when I run scripts using the php-imagefunctions 
that require gd like 
<?php
Header ("Content-type: image/jpeg");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", 
              "Testing... Omega: &#937;");
ImageJPEG ($im);
ImageDestroy ($im);
?>
The lines containing the functions like createImage(), or ImagecolorAllocate() return 
error messages.
How can I find out without doubt whether the functions work properly or not?
Every advice is appreciated.

Helmut
      






i am getting similar errors when trying to run a script that requires GD.
It is installed, supposedly but i get:

Call to unsupported or undefined function imagettfbbox()

any and all advice is helpful

thanks

dale

On Tue, 27 Feb 2001, Helmut Ott wrote:

> Hi, 
> hopefully somebody can help to solve this miracle.
> 
> My phpinfo
> 
> My provider (and phpinfo) says GD <=1.62 is installed.
> But when I run scripts using the php-imagefunctions 
> that require gd like 
> <?php
> Header ("Content-type: image/jpeg");
> $im = imagecreate (400, 30);
> $black = ImageColorAllocate ($im, 0, 0, 0);
> $white = ImageColorAllocate ($im, 255, 255, 255);
> ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", 
>               "Testing... Omega: &#937;");
> ImageJPEG ($im);
> ImageDestroy ($im);
> ?>
> The lines containing the functions like createImage(), or ImagecolorAllocate() 
>return error messages.
> How can I find out without doubt whether the functions work properly or not?
> Every advice is appreciated.
> 
> Helmut
>       
> 
> 
> 





Hi Folks,

I have run into a problem using the dir() function.

The following code behaves properly on linux and does not using irix:

Contents of the dir (only folders) are:

CH104/
CH105/
CH120/
ABCDEFGHIJKL/
abcdefghijkl/

When I execute the following code:

chdir("$dir_path");
echo ("Dir Path = $dir_path<br>");
$dir = dir(".");
$dir -> rewind();
$file=$dir->read();
echo ("file is $file<br>\n");
$file=$dir->read();
echo ("file is $file<br>\n");
$file=$dir->read();
echo ("file is $file<br>\n");
$file=$dir->read();
echo ("file is $file<br>\n");

I get the following incorrect results (php 4.0.2, irix 6.5.7)

Dir Path = /Public/Web/db/msds
file is .
file is ..
file is CH104
file is CH105
file is CH120
file is ABCDEFþõ~KL
file is abcdefþõ~kl

So, it appears that if the dir (or file) is less than or equal to 6 char the
dir() function work correctly.  However, if it is longer, the name get
garbled.

On a redhat linux box (php 4.0.2), it works fine and I get proper dir names. 
This behavior is the same for filenames not just dir names.

I have checked the bugs.php.net and email lists without finding information
related to this problem.  Hope I have not missed it some where...

Has anyone seen this or am I missing something?  Or, maybe likely, this is
just a bug.  If so, I will submit it to the bug database.

Thanks for any suggestions!

Dean
-- 
-----------------------------------------------------------------------------
Dean Waldow, Associate Professor             (253) 535-7533
Department of Chemistry                      (253) 536-5055 (FAX)
Pacific Lutheran University                   [EMAIL PROTECTED]
Tacoma, WA  98447   USA                       http://www.chem.plu.edu/waldow/
-----------------------------------------------------------------------------
--->    CIRRUS, the UG research resource: http://cirrus.chem.plu.edu/    <---
-----------------------------------------------------------------------------




Hi!

I have a page in wich i register and fill the value of some session 
varibles:
session_start();
session_register("vehiculesess");
session_register("hotelsess");
session_register("riadsess");
session_register("transfertsess");
session_register("excursionsess");
include "sessions.inc";

bit when i go to other pages and come back to it , it creates a new session 
?! however i want to fill more that variables !

NB: i also discovered that when i reload that page it creates another 
session however when i add and click on a submit button with action =echo 
PHP_Self it works, i mean it no more creates another session
any idea ?

Thanks


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





cookies disabled and using --trans-sid ? the only way PHPSESSID can be set
is if PHPSESSID is set in the url (get) or in a form (post) if neither is
set then your hooped. a new session will be created each time.

<?php
    session_start()

    if (!isset($HTTP_SESSION_VARS['count']))
    {
        $count = 1;
        session_register('count');
    } else
        $count++;

    echo $count

    echo "<a href='$PHP_SELF'>same page </a> ";
?>

load this page without cookies and it will allways display 1 untill you
start clicking on the link. this is because PHPSESSID is now set.

in a long way Im trying to say that what your experisnceing is normal

--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]


""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
>
> I have a page in wich i register and fill the value of some session
> varibles:
> session_start();
> session_register("vehiculesess");
> session_register("hotelsess");
> session_register("riadsess");
> session_register("transfertsess");
> session_register("excursionsess");
> include "sessions.inc";
>
> bit when i go to other pages and come back to it , it creates a new
session
> ?! however i want to fill more that variables !
>
> NB: i also discovered that when i reload that page it creates another
> session however when i add and click on a submit button with action =echo
> PHP_Self it works, i mean it no more creates another session
> any idea ?
>
> Thanks
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






I have PHP 4.0.4 running on my Win 2K with IIS5 - no problem!  When I
try to install the same PHP on a NT4 with SP6 and IIS5 I cannot get the
Isapi filter to work - the status comes up as failed.

Am I overlooking some simple?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]






May I suggest the Zend IDE, at the moment it is the only one to really be a
full IDE with Debugger support etc. you can get a demo of it from
http://www.zend.com/store/.

James

> -----Original Message-----
> From: Luke Loeffler [mailto:[EMAIL PROTECTED]]
> Sent: 27 February 2001 08:32
> To: [EMAIL PROTECTED]
> Subject: [PHP] good ide?
>
>
> Does anyone know of a good PHP ide?  I've tried PHP-Coder, but it has bugs
> stem to stern, not the least of which mysteriously deleted an
> entire page of
> code... PHP Script editor I've also tried, but it is barren and
> in German...
>
> If only there were a Sun Forte for php.... :(
>
> Luke
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





At 20:14 27.02.2001, James Moore said:
--------------------[snip]--------------------
>May I suggest the Zend IDE, at the moment it is the only one to really be a
>full IDE with Debugger support etc. you can get a demo of it from
>http://www.zend.com/store/.
--------------------[snip]-------------------- 

Visit PHPEd home page at http://www.soysal.com/PHPEd




     ...ebird

   >O     Ernest E. Vogelsinger
   (\)    http://www.1-at-web.at/
    ^     ICQ#   13394035





Ouch!
At $250.00, I'll stick to using Vim for free :-)


----- Original Message -----
From: "James Moore" <[EMAIL PROTECTED]>
To: "Luke Loeffler" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 2:14 PM
Subject: RE: [PHP] good ide?


> May I suggest the Zend IDE, at the moment it is the only one to really be
a
> full IDE with Debugger support etc. you can get a demo of it from
> http://www.zend.com/store/.
>
> James
>
> > -----Original Message-----
> > From: Luke Loeffler [mailto:[EMAIL PROTECTED]]
> > Sent: 27 February 2001 08:32
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] good ide?
> >
> >
> > Does anyone know of a good PHP ide?  I've tried PHP-Coder, but it has
bugs
> > stem to stern, not the least of which mysteriously deleted an
> > entire page of
> > code... PHP Script editor I've also tried, but it is barren and
> > in German...
> >
> > If only there were a Sun Forte for php.... :(
> >
> > Luke
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





I really like NEdit for XWindows. Grabbed a file for PHP highlighting off the 
site.

http://nedit.org




I really like NEdit for XWindows. Picked up a PHP syntax file from the site.

http://nedit.org




Addressed to: kevin1 <[EMAIL PROTECTED]>
              [EMAIL PROTECTED]

** Reply to note from kevin1 <[EMAIL PROTECTED]> Tue, 27 Feb 2001 08:10:05 -0500
>
> Is there any equivalent to Java's try-catch or Perl's eval{BLOCK}if($@)
> structure in PHP?

No.

There has been some discussion about adding it on the developers list,
but I don't expect to see it any time soon.




Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com




Hi,
Is it possible to send a file to a browser?
I would like to allow people to download a file, but I don't want to give away the 
path to the file, so a normal link wouldn't work.
I am hoping there is a way to use php to send the file using code, rather than trying 
to first copy the file to a temp dir then give them the link, then worry about 
deleting the temp dir again.

Thanks,
Chris




>Is it possible to send a file to a browser?
>I would like to allow people to download a file, but I don't want to give
away the path to >the file, so a normal link wouldn't work.
>I am hoping there is a way to use php to send the file using code, rather
than trying to >first copy the file to a temp dir then give them the link,
then worry about deleting the temp >dir again.

<A
HREF=yoursite.com/download.php/whatever.doc?filename=whatever.doc>whatever.d
oc</A>

(Yes, that extra whatever.doc in the URL is on purpose.  Microsoft sucks.)

<?php
    #download.php:

    #This header forces a download:
    header("Content-type: application/octet-stream");

    #This header convinces some browsers to prompt with whatever.doc instead
of download.php:
    header("Content-disposition: $filename");

    #There are about 6 more headers to convince other browser versions of
the same...
    #Look in the code archives for them.

    passthru("/secret/path/not/in/your/website/$filename);
?>

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm







OK, using this code:

<?

echo "<table border=\"0\">\n";
echo "<tr>\n";

$photocount = 0;

while($row = mysql_fetch_array($result)) {
     $smallpic = $row['smallpic'];

 echo "<td>$smallpic</td>\n";

 if (($photocount % 3) == 2) {
     echo "</tr>\n<tr>\n";
 }
 $photocount++;

     }

echo "</tr>\n";
echo "</table>";

?>

And 8 photos in the table, I'm getting this output:

<table border="0">
<tr>
<td>sm982438092.gif</td>
<td>sm982437452.gif</td>
<td>sm982439016.gif</td>
</tr>
<tr>
<td>sm982529915.gif</td>
<td>sm983222652.gif</td>
<td>sm983222686.gif</td>
</tr>
<tr>
<td>sm983222868.gif</td>
<td>sm983222919.gif</td>
</tr>
</table>

Great, except it's missing an end cell, and after a few hours fiddling about
with code last night, I still didn't get any further in working out how I
was going to echo a table cell even if data's missing.  So, any help would
be appreciated.

Apologies for what're probably "easy" questions.  I slog away at work all
day, come back hoping to get something productive done on this, and the
ol'brain won't take it.  Frustrating, to say the least.

James.






"James, Yz" wrote:
OK, using this code:

<?

echo "<table border=\"0\">\n";
echo "<tr>\n";

$photocount = 0;

while($row = mysql_fetch_array($result)) {
     $smallpic = $row['smallpic'];

 echo "<td>$smallpic</td>\n";

 if (($photocount % 3) == 2) {
     echo "</tr>\n<tr>\n";
 }
 $photocount++;

     }
 

This should fill in the remaining cells you need. You might have to tinker with it a bit to fit your code though. Good luck :-)

for ($cnt = 0; $cnt < $phonecount % 3; $cnt++)
    echo "<td>&nbsp;</td>
 

 
echo "</tr>\n";
echo "</table>";

?>

And 8 photos in the table, I'm getting this output:

<table border="0">
<tr>
<td>sm982438092.gif</td>
<td>sm982437452.gif</td>
<td>sm982439016.gif</td>
</tr>
<tr>
<td>sm982529915.gif</td>
<td>sm983222652.gif</td>
<td>sm983222686.gif</td>
</tr>
<tr>
<td>sm983222868.gif</td>
<td>sm983222919.gif</td>
</tr>
</table>

Great, except it's missing an end cell, and after a few hours fiddling about
with code last night, I still didn't get any further in working out how I
was going to echo a table cell even if data's missing.  So, any help would
be appreciated.

Apologies for what're probably "easy" questions.  I slog away at work all
day, come back hoping to get something productive done on this, and the
ol'brain won't take it.  Frustrating, to say the least.

James.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
209 Media <http://www.209media.com>
Ron Wills <[EMAIL PROTECTED]>
Programmer
 






by default, HTML browsers, according to spec, will handle the rendering of
any and all empty cells at the end of a row.

even netscape  ;)

so, this is technically not a bug.

my question is how it works when you have 7 photos in a row, or 4?

DanO



-----Original Message-----
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] while loop and modulus?


OK, using this code:

<?

echo "<table border=\"0\">\n";
echo "<tr>\n";

$photocount = 0;

while($row = mysql_fetch_array($result)) {
     $smallpic = $row['smallpic'];

 echo "<td>$smallpic</td>\n";

 if (($photocount % 3) == 2) {
     echo "</tr>\n<tr>\n";
 }
 $photocount++;

     }

echo "</tr>\n";
echo "</table>";

?>

And 8 photos in the table, I'm getting this output:

<table border="0">
<tr>
<td>sm982438092.gif</td>
<td>sm982437452.gif</td>
<td>sm982439016.gif</td>
</tr>
<tr>
<td>sm982529915.gif</td>
<td>sm983222652.gif</td>
<td>sm983222686.gif</td>
</tr>
<tr>
<td>sm983222868.gif</td>
<td>sm983222919.gif</td>
</tr>
</table>

Great, except it's missing an end cell, and after a few hours fiddling about
with code last night, I still didn't get any further in working out how I
was going to echo a table cell even if data's missing.  So, any help would
be appreciated.

Apologies for what're probably "easy" questions.  I slog away at work all
day, come back hoping to get something productive done on this, and the
ol'brain won't take it.  Frustrating, to say the least.

James.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





could anybody help with links to a good search and sitemap script written in
php. Thanks

Ali





Try DGS Search, very easy and works great!

http://www.digitalgenesis.com/software/dgssearch.html



----- Original Message -----
From: "Ali" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 2:22 PM
Subject: [PHP] search + sitemap scripts


> could anybody help with links to a good search and sitemap script written
in
> php. Thanks
>
> Ali
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





I'm not 100% sure this works, but maybe try something like this:
<img src="<? include 'myphpcode.php';  ?>">
If that doesn't work, you can always have the php generate the entire tag
<?
    $image = "myimagefile.gif"; // What ever you need
    print "<img src=\"$image\">";
?>

Hope this helps :-)

"Karl J. Stubsjoen" wrote:

Hello,

I'd like the source of an image tag to point to PHP code.  I'd like that PHP
code to generate an image (accordingly) and print/output the results back to
the calling image.  So:

<img src="myphpcode.php">

Where, myphpcode.php returns a valid image.
I've done this before, but it is not fresh in my brain.

Any help would be appreciated!

Karl

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
209 Media <http://www.209media.com>
Ron Wills <[EMAIL PROTECTED]>
Programmer
 





Is there a qq operator like Perl's in PHP?






I don't believe php uses any type of Perl quoting conventions such as qq. If you do need to use quotes within quotes you can use the '\' to remove the quotes value, such as:

$text = "The following text is \"quoted\"";

Or if that doesn't work (like adding the return value of a function to a string) you can use the '.' operator to concat your results:

$test = "The current directory is :". getcwd();

I hope this helps you out. Good Luck :-)

kevin1 wrote:

Is there a qq operator like Perl's in PHP?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
209 Media <http://www.209media.com>
Ron Wills <[EMAIL PROTECTED]>
Programmer
 





Is anyone here framiliar with Solaris/libtool issue's?

thanks,

evan




Hello,

this:
<?
header( "Content-type: image/gif" );

$img = fopen($DOCUMENT_ROOT . "/store/include/TestingImage.gif","rb");
print($img);
?>
prints this:
Resource id #1
I'm trying to print the image as binary or as an image.  Have I missed a
step?  Hope i'm not being too confusing.

Thanks!






> <?
> header( "Content-type: image/gif" );
>
> $img = fopen($DOCUMENT_ROOT . "/store/include/TestingImage.gif","rb");
> print($img);
> ?>
> prints this:
> Resource id #1
> I'm trying to print the image as binary or as an image.  Have I missed a
> step?  Hope i'm not being too confusing.

$img is a "file pointer" -- It is simply a "reference" you can use to get
stuff out of a file:

while (!feof($img)){
    $image_data = fread($img, 1000000);
    print($image_data);
}

However, you should be using passthru() instead, since that's pretty much
what it was designed for.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






Hi all,

I've a prob. using the imap functions ... with a simple code that retrieve a
multipart mail,

$struttura=imap_fetchstructure($link,2);//2 is the msg nr
$pezzi=0;

foreach($struttura as $key=>$val){
        //some code
        if($key=="parts"){
                foreach($val as $w){
                        $pezzi++;
        }
}
//now $pezzi is an int var that tell me how many parts has the msg

for($x=0;$x<(1+$pezzi);$x++){
        print "<textarea cols=50 rows=10>";
        if(eregi("Content-Type: text/html;",imap_fetchbody($link,2,$x))){
                print quoted_printable_decode(imap_fetchbody($link,2,$x));
        } else {
                print imap_fetchbody($link,2,$x);
        }
        print "</textarea><br><br>";
}
//this loop show me the single part of the msg

the problem is: only if the part is concerning an embedded image, I can't
see the "header" of the part

(I mean this:
------=_NextPart_000_000D_01C0A127.2D37C500
Content-Type: image/gif;
        name="chat.gif"
Content-Transfer-Encoding: base64
Content-ID: <000c01c0a11e$cb6bbbe0$0100a8c0@maxa>
)

but I see only the base64_encode source of the image file ....

My question are: is this due to a my mistake? How can I take the "header"
and the "source" if the part is concerning to an image file?

Many thanks in advance.
max






Could somebody show me an example of a script that will find out the date of
each upcoming Friday, thanks.

Adam Plocher





Yeah I think that would work, but (as an example..) if the upcoming Friday
was on the 1st of next month, and today was Wednesday the 30th, would it
think that Friday was on the 32nd?

-----Original Message-----
From: Andrew Rush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 12:59 PM
To: Adam Plocher
Subject: Re: [PHP] finding Friday's date


on 2/27/01 03:39 PM, Adam Plocher at [EMAIL PROTECTED] wrote:

> Could somebody show me an example of a script that will find out the date
of
> each upcoming Friday, thanks.

something like:

$days=array("Saturday", "Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday");

$today=date(l);
$todayNum=date(j);

if($today == "Friday") {

    fDate=date("m-d-Y");

} else {

    $todayKey=array_keys($days, $today);

    for($i=$todayKey; $i < count($days); $i++)) {

        $daysTilFri=$i;

    }

    $friday=$todayNum+$daysTilFri;

    $friday=date("m-$friday-Y");

}

maybe? untested.






if i have a GIF file, how can i convert this to a JPG file through php?

p.s.: ill do anything as long as i dont have to recompile php/apache

- noah






I've been doing some similar with images. I've been executing ImageMagick utils from php. You could do it as follows:

if (exec("convert image.gif image.jpeg")) { some error code }

ImageMagick I believe comes with most Linux distributions, but can also be found at www.imagemagick.org

I hope this helps you out :-)

Student Center wrote:

if i have a GIF file, how can i convert this to a JPG file through php?

p.s.: ill do anything as long as i dont have to recompile php/apache

- noah

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
209 Media <http://www.209media.com>
Ron Wills <[EMAIL PROTECTED]>
Programmer
 





This is the wrong mailing list for this information.

try:
        news://comp.lang.javascript             (newsgroup)
        http://www.javascript.com/              (website)
        http://www.obscure.org/javascript/      (javascript mailing list homepage)


-----Original Message-----
From: Matthew Cothier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Resolution detect and redirect


>Why not just create a table that will resize to any resolution?

Because I am using different sized images for the different resolutions as 
well as other page thingys.....

And I need the script for other things too.

So can anyone help?
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





If php is reading or generating the numbers, I'd almost say your out of luck. But you might be able to work around this with some JavaScript. If you can have JavaScript read the values and do the math, it can update
you totals within a form quite simply:

<form name=totals>
    <input type=text name=total1>
    <input type=text name=total2>
</form>

<script language="JavaScript">
<!--

    // Read and Calculate your totals

    document.forms['totals'].total1.value = new_total1;
    document.forms['totals'].total2.value = new_total2;
//-->
</script>

Your table might also have to use form field to contain dynamic values also. Not much for php to do but output something like above. I don't know if this is what your looking for, but I hope it helps :-)

"Karl J. Stubsjoen" wrote:

Does anyone know how to stream information to a browser (without the client
having to hit refresh)?  What do I need to get started?  We want to have 2
numbers we want to display on the browser, we want these numbers to change
as the data changes in the table, but done "streaming".

* I am coding this in PHP of course : ) *

Karl

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
209 Media <http://www.209media.com>
Ron Wills <[EMAIL PROTECTED]>
Programmer
 





I know this isn't one of the databases that you;re inquiring about, but we've been using MySQL (www.mysql.com) and it has been working beautifully. We have an email server with a MySQL db that's about 4 Gigs now a it's still running strong. MySQL is free and might be worth looking into :-)

Arnold Gamboa wrote:

I hve heard a great deal about InterBase.  Please comment on which is
better:

1.  Speed
2.  Data Reliability
3.  Compatibility with PHP

Thanks for your comments.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
209 Media <http://www.209media.com>
Ron Wills <[EMAIL PROTECTED]>
Programmer
 





Mensaje citado por: Ron Wills <[EMAIL PROTECTED]>:

> I know this isn't one of the databases that you;re inquiring about, but
> we've been using MySQL (www.mysql.com) and it has been working
> beautifully.
> We have an email server with a MySQL db that's about 4 Gigs now a it's
> still running strong. MySQL is free and might be worth looking into :-)

He was talking about reliability. I think MySQL can't give you much on that. A
database server that has transactions only a few months ago, and doesn't have
data integrety checks isn't very reliable in my point of view.

> Arnold Gamboa wrote:
> 
> > I hve heard a great deal about InterBase.  Please comment on which is
> > better:
> >
> > 1.  Speed
> > 2.  Data Reliability
> > 3.  Compatibility with PHP
> >
> > Thanks for your comments.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 
> --
> 209 Media <http://www.209media.com>
> Ron Wills <[EMAIL PROTECTED]>
> Programmer
> 
> 



System Administration: It's a dirty job,
but someone told I had to do it.
-----------------------------------------------------------------
Martín Marqués                  email:  [EMAIL PROTECTED]
Santa Fe - Argentina            http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------




Arnold Gamboa wrote:
> 
> I hve heard a great deal about InterBase.  Please comment on which is
> better:
> 
> 1.  Speed
> 2.  Data Reliability
> 3.  Compatibility with PHP
> 
> Thanks for your comments.
> 
> --
1. I think Postgresql
2 and 3 I can't say which is better. Both seem to work ok - you might
want to search for postgresql and persistent connections in the archives
- seems they aren't perfect yet.




hi,

i have a query that is comparing a table with 1235 rows with another that
has 635 rows. The query looks like this:

$res = mysql_query("select cust_info.ID, cust_info.first_name,
cust_info.last_name, cust_info.address, cust_info.datestamp from cust_info,
cust_order_info where cust_info.ID=cust_order_info.cust_id order by
$mainsort" . $order . ";");

The parse time with the join is 19 seconds. I have to do a join because
there a different methods that the user must be able to sort by. The parse
time on the cust_info table alone, with a order by is .95 seconds.

Now, we have a RPM binary of mySQL, and when performing the query, not only
is it slow, but sometimes will dump its core.

Does anyone see anything wrong with the query, or should we consider
building the source on our box.. or?

Thanks.





You need to remember a few things when it comes to joins:

the joined fields must be the EXACT same definition
        - example: a join on id int(9) and id int(3) will NOT be optimized
        - more: a join on id char(9) and id int(9) is REALLY NOT optimized :O)

We have an accounts table with userID as the key char(15) (don't ask, it's an
old design made by a former employee) which has roughly 1.6 million rows in it.
We regularily do joins on it with other tables that have thousands of records
in less than .05 seconds.

This sounds like a table structure problem to me.

--Joe

On Tue, Feb 27, 2001 at 02:21:53PM -0800, Jason wrote:
> hi,
> 
> i have a query that is comparing a table with 1235 rows with another that
> has 635 rows. The query looks like this:
> 
> $res = mysql_query("select cust_info.ID, cust_info.first_name,
> cust_info.last_name, cust_info.address, cust_info.datestamp from cust_info,
> cust_order_info where cust_info.ID=cust_order_info.cust_id order by
> $mainsort" . $order . ";");
> 
> The parse time with the join is 19 seconds. I have to do a join because
> there a different methods that the user must be able to sort by. The parse
> time on the cust_info table alone, with a order by is .95 seconds.
> 
> Now, we have a RPM binary of mySQL, and when performing the query, not only
> is it slow, but sometimes will dump its core.
> 
> Does anyone see anything wrong with the query, or should we consider
> building the source on our box.. or?
> 
> Thanks.
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
http://www.miester.org http://www.care2.com                                 /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
-------------------------------------------------------------------------------





On Tue, 27 Feb 2001 15:04:09 -0800, Joe Stump
([EMAIL PROTECTED]) wrote:
>You need to remember a few things when it comes to joins:
>
>the joined fields must be the EXACT same definition
>       - example: a join on id int(9) and id int(3) will NOT be optimized
>       - more: a join on id char(9) and id int(9) is REALLY NOT optimized
>:O)

true, but even more important than this is to make sure there's an
index on both fields. without that it will crawl.

also if the 'order by' is causing problems you might want to up the
tmp_table_size in my.cnf, and very important is to not let the
partition that tmp is on get too full.

- Mark





Hello Php Gurus,

Need help on direction. I am using PHP for a while now, I was able to 
develop very nice sites using PHP/MySql. Now I very comfortable in using 
PHP and I want to learn more advanced features of PHP. Can anyone tell 
me go from here??
I have used PHP for tradtional query based application so far.

Thanks in advance.
-Unni





I've, I guess, graduated to more complex PHP programs mainly through projects
at work. I'd challenge myself to do EVERYTHING in PHP. I've created everything
from large scale, targeted, mailing lists to search engines based on DMOZ with
PHP - with great results. 

I suppose the best way to move on to "advanced features" is to challenge 
yourself and have a good understanding of programming concepts, UNIX, and the
various protocols you work with.

Just my $0.02

--Joe

On Tue, Feb 27, 2001 at 04:01:22PM -0700, Web master wrote:
> Hello Php Gurus,
> 
> Need help on direction. I am using PHP for a while now, I was able to 
> develop very nice sites using PHP/MySql. Now I very comfortable in using 
> PHP and I want to learn more advanced features of PHP. Can anyone tell 
> me go from here??
> I have used PHP for tradtional query based application so far.
> 
> Thanks in advance.
> -Unni
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 

-------------------------------------------------------------------------------
Joe Stump, PHP Hacker, [EMAIL PROTECTED]                                 -o)
http://www.miester.org http://www.care2.com                                 /\\
"It's not enough to succeed. Everyone else must fail" -- Larry Ellison     _\_V
-------------------------------------------------------------------------------





Hi,
Is it possible to send a file to a browser?
I would like to allow people to download a file, but I don't want to give away the 
path to the file, so a normal link wouldn't work.
I am hoping there is a way to use php to send the file using code, rather than trying 
to first copy the file to a temp dir then give them the link, then worry about 
deleting the temp dir again.

( I am not sure if my first email went through, I got an error back about the mailbox 
being full)

Thanks,
Chris






> Is it possible to send a file to a browser?

Sure. 

file();

> I would like to allow people to download a file, but I don't 
> want to give away the path to the file, so a normal link 
> wouldn't work.

In that case:

Header("Content-type: application/octet-stream");
file("whatyouwanttosend");

> ( I am not sure if my first email went through, I got an 
> error back about the mailbox being full)

I didn't see it ...

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Design Team, Melbourne IT
Fetch the comfy chair!





Great, thanks.
I looked at the file(), but it sounded like is was just for local file use.


> > Is it possible to send a file to a browser?
> 
> Sure. 
> 
> file();
> 
> > I would like to allow people to download a file, but I don't 
> > want to give away the path to the file, so a normal link 
> > wouldn't work.
> 
> In that case:
> 
> Header("Content-type: application/octet-stream");
> file("whatyouwanttosend");
> 
> > ( I am not sure if my first email went through, I got an 
> > error back about the mailbox being full)
> 
> I didn't see it ...
> 
> Jason
> 
> -- 
> Jason Murray
> [EMAIL PROTECTED]
> Web Design Team, Melbourne IT
> Fetch the comfy chair!





> Great, thanks.
> I looked at the file(), but it sounded like is was just for 
> local file use.

oops, should've been include(). Sorry :)

Jason






<?php

  header("Content-Type: application/download ");
  header("Content-Disposition: filename=filename.txt ");
 readfile('/path/to/file.zip');

?>

try this, works for me.

everywhere I read they say Im supposed to use application/octlet-stream but
it doesnt allways seem to work in some browsers.

--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]

""Chris"" <[EMAIL PROTECTED]> wrote in message
044201c0a112$a06e2470$01c8c8c8@ibcserver">news:044201c0a112$a06e2470$01c8c8c8@ibcserver...
Hi,
Is it possible to send a file to a browser?
I would like to allow people to download a file, but I don't want to give
away the path to the file, so a normal link wouldn't work.
I am hoping there is a way to use php to send the file using code, rather
than trying to first copy the file to a temp dir then give them the link,
then worry about deleting the temp dir again.

( I am not sure if my first email went through, I got an error back about
the mailbox being full)

Thanks,
Chris









Strange,
phpinfo is showing this:
POST /members/plurp.asp HTTP/1.1
and a content length of 16, which is exactly right for    lah=sd&dta=test
but I can't seem to get to the actual data.
Is there a way to see the acutal content data, like you can with perl:

read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});


> Put phpinfo() in the script to see what is going on..
>
>
> On Monday, 26 February 2001, at 09:12:11 (-0800),
> Chris wrote:
>
> >
> > I am trying to post some info to my php script using the microsoft
internet control:
> >
> >     strurl = http://www.myserver.com/test.asp
> >     strdata = "lah=sd&dta=test
> >     Inet1.Execute strurl, "POST", strdata
> >
> > PHP returns HTTP_POST_VARS as being empty.
> > Yet, if I use PERL, I can read the posted info just fine.
> >
> > PHP does work fine with normal php forms.
> >
> > Why can PERL recognize my data, but PHP not, how are they handling the
posted info differently?
> >
> > Is there a way I can get PHP to display the raw data that the script
receives so I can see what is happening?
> >
> > Thanks for any help,
> > Chris
> >
>
> --
> David Raufeisen <[EMAIL PROTECTED]>
> Cell: (604) 818-3596
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




I want to send a .txt file back to the sender when a form is filled out,
sort of like an autoresponder. I have one mail() to send info from form to
me, is the only way to send out a file back to the sender by using a second
mail()?


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





just the info in the .txt file


> did you want to actually send the .txt file or just the info in the .txt
> file??
>
> -----Original Message-----
> From: W.D. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] mail() question
>
>
> I want to send a .txt file back to the sender when a form is filled out,
> sort of like an autoresponder. I have one mail() to send info from form to
> me, is the only way to send out a file back to the sender by using a
second
> mail()?
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com






Set your mail script up something like

//open the file
$myfile= file("data.txt");

//put file contents into one string
$myfile = implode($myfile, "");

$mailTo = "[EMAIL PROTECTED]"; // if its going to more than one use a
comma after "
$mailSubject = "some subject"; // subject of email
$mailBody = $myfile // call in $myfile
$mailHeaders "From: [EMAIL PROTECTED]\n"; add mail headers here

mail($mailTo, $mailSubject, $mailBody, $mailHeaders);

& your done
I can't see why this wouldn't work for you

Peter

-----Original Message-----
From: W.D. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 10:34 AM
To: Peter Houchin; [EMAIL PROTECTED]
Subject: Re: [PHP] mail() question


just the info in the .txt file


> did you want to actually send the .txt file or just the info in the .txt
> file??
>
> -----Original Message-----
> From: W.D. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] mail() question
>
>
> I want to send a .txt file back to the sender when a form is filled out,
> sort of like an autoresponder. I have one mail() to send info from form to
> me, is the only way to send out a file back to the sender by using a
second
> mail()?
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com






Bassically what you wanna do is to delete all the variables you set up when 
the user log in. So, if you gave the session ID when a user log in, delete 
if from the database when user log out.

Reuben D. B

At 03:52 PM 2/27/01 -0600, Jacky@lilst wrote:

>Jack
>[EMAIL PROTECTED]
>"There is nothing more rewarding than reaching the goal you set for
>yourself"
>----- Original Message -----
>From: Jacky@lilst <[EMAIL PROTECTED]>
>To: Yamin Prabudy <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Tuesday, February 27, 2001 3:49 PM
>Subject: Re: [PHP] logout
>
>
> > Sorry, it was my mistake. There is session used to store userID and
>password
> > after the successful login. I don't under stand what you mean about to
>clean
> > up variables, how?
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > ----- Original Message -----
> > From: Yamin Prabudy <[EMAIL PROTECTED]>
> > To: Jacky@lilst <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 27, 2001 2:40 AM
> > Subject: Re: [PHP] logout
> >
> >
> > > but still you had the variable hanging on the cookies while you are
> > running
> > > the login function...
> > > just clean out all the variables and then you had a log out function
> > (clean
> > > all the cookies) if you don't used cookies how do you transfer all the
> > login
> > > variable ?
> > > ----- Original Message -----
> > > From: Jacky@lilst <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, February 28, 2001 4:14 AM
> > > Subject: [PHP] logout
> > >
> > >
> > > I have php site that user is required to login, but I don't have logout
> > > function yet. Is there anyone know the most practical way of logout
>method
> > > that people use nowadays?, in php I mean. There is no session or cookies
> > > used in this site.
> > > Jack
> > > [EMAIL PROTECTED]
> > > "There is nothing more rewarding than reaching the goal you set for
> > > yourself"
> > >
> > >
> > >
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Hi all,

Can anyone tell me why I¹m getting an unhelpful error when trying to pull up
a file?

The index.php I¹m calling is including a functions file ­ functions.inc.php

I¹m getting a parse error on line 144 ­ but functions.inc.php only has 143
lines...!

does this actually mean anything, or is it just poor error reporting??

Cheers!
jaxon





At 06:31 PM 27/02/2001, Jaxon wrote:
>Hi all,
>
>Can anyone tell me why I¹m getting an unhelpful error when trying to pull up
>a file?
>
>The index.php I¹m calling is including a functions file ­ functions.inc.php
>
>I¹m getting a parse error on line 144 ­ but functions.inc.php only has 143
>lines...!
>
>does this actually mean anything, or is it just poor error reporting??


Chances are, you are missing a } closing off something in that file, and 
its assuming that .... "well, if you havent closed it off yet, you need to 
do it at least by the last line" so its assuming that you need to add in a 
line 144 with a closing }

in reality, it means you have to go back into your functions.inc.php and 
see where you are missing the } and the error should go away.



Chris





From: "Jaxon" <[EMAIL PROTECTED]>

> Hi all,
>
> Can anyone tell me why I¹m getting an unhelpful error when
> trying to pull up a file?
>
> The index.php I¹m calling is including a functions file ­
functions.inc.php
>
> I¹m getting a parse error on line 144 ­ but functions.inc.php only
> has 143 lines...!
>
> does this actually mean anything, or is it just poor error reporting??



I think this usually means you have opened a block (e.g. an if statement),
and forgotten to close it.


Cheers

Simon Garner






Hello,

I have a problem getting this to work right.
I have two variables that store the name of a Link and the actual link.
I am trying to display them on the page but it doesn't do it like i would
have hoped.

I want it to appear like this
 [Link1] [Link2] [Link3]

<?
      foreach ( $blink as $valink ){ //The link path
          echo " [<a  href=$valink>";

          foreach ($but as $val ){  //The link Text
              echo "$val";
      }
    echo "</a>]";
}

 ?>


Please help
--
Regards,


YoBro
-------------------------------------------------------------
DO NOT REPLY TO THIS VIA EMAIL
PLEASE USE THE NEWSGROUP
All emails sent to this address are automatically deleted.
This is to avoid SPAM!
-------------------------------------------------------------






<?php

 foreach($blink as $pos => $val)
  echo "<a href='{$blink[$pos]}'>{$but[$pos]} </a> ";

?>

or better.

<?php

 $link['slashdot.org'] = 'http://slashdot.org';
 $link['adcritic'] = 'http://www.adcritic.com';
 $link['php.net'] = 'http://www.php.net';

 foreach($link as $pos => $val)
  echo "<a href='$val'>$pos </a> ";

?>


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



""YoBro"" <[EMAIL PROTECTED]> wrote in message
97hcsp$59n$[EMAIL PROTECTED]">news:97hcsp$59n$[EMAIL PROTECTED]...
>
> Hello,
>
> I have a problem getting this to work right.
> I have two variables that store the name of a Link and the actual link.
> I am trying to display them on the page but it doesn't do it like i would
> have hoped.
>
> I want it to appear like this
>  [Link1] [Link2] [Link3]
>
> <?
>       foreach ( $blink as $valink ){ //The link path
>           echo " [<a  href=$valink>";
>
>           foreach ($but as $val ){  //The link Text
>               echo "$val";
>       }
>     echo "</a>]";
> }
>
>  ?>
>
>
> Please help
> --
> Regards,
>
>
> YoBro
> -------------------------------------------------------------
> DO NOT REPLY TO THIS VIA EMAIL
> PLEASE USE THE NEWSGROUP
> All emails sent to this address are automatically deleted.
> This is to avoid SPAM!
> -------------------------------------------------------------
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






>I am trying to post some info to my php script using the microsoft internet
control:
>
>    strurl = http://www.myserver.com/test.asp
>    strdata = "lah=sd&dta=test

You're not really missing the quote here, are you?...

>    Inet1.Execute strurl, "POST", strdata
>
>PHP returns HTTP_POST_VARS as being empty.
>Yet, if I use PERL, I can read the posted info just fine.
>
>PHP does work fine with normal php forms.
>
>Why can PERL recognize my data, but PHP not, how are they handling the
posted info >differently?
>
>Is there a way I can get PHP to display the raw data that the script
receives so I can see >what is happening?

<?php phpinfo();?> will show you pretty much everything PHP has to work
with.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm







You need to be copying files to a directory that the user PHP runs as has
write-access to.

Windows NT file permissions are accessed by using right-click.

Other Windows versions, only Bill Gates knows.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Dhaval Desai <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Saturday, February 24, 2001 1:31 AM
Subject: [PHP] Upload --Permission denied simple error...


> hi!
>
>
> I have fws simple lines:
>
> <?php
> if ($userfile) {
>     copy($userfile, "C:\\");
> } else {
>     echo "Possible file upload attack: filename
> '$userfile'.";
> }
>
> ?>
>
>
> Warning: Unable to create 'C:\': Permission denied in
> c:\phpdev2\www\upload\action.php on line 3
>
>
>
> and I get this error..I tried coyping to D:\ too but
> the same error..
>
>
>
> Can u tell me what could be the problem possibly..
>
> Thank you
> Dhaval Desai
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





> $sent=mail("[EMAIL PROTECTED]", $subject, $msg, $from);
>
> if $sent==1 --> the e-mail was sent
>
> if $sent==0 --> problem when sending e-mail??
>
> how this works? When the function mail will have a problem?
>
> if the "to" mail are wrong?

If you are sending "local" mail, with no "@" in it, you'd probably get 0
back if it is an invalid user.

If sendmail (or your SMTP server in Windows) is dead, you'd get a "0" back.

The "to" mail could be completely bogus, and you'll still get a 1 back,
though.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> What are some methods for persistant user tracking?
>
> I need to limit the number of times a person can  search for certain
material without forcing them to create a login.
>
> Currently I am using cookies to limit the number of searches a person can
do  but, quiting and removing the cookie
> file easily defeats that.  Storing their IP address locally would work but
then not everyone has a static ip. Would
> grabbing the MAC from their ethernet card be doable? Again alot of people
use modems.
>
> Any thoughts or resources you know of?

Othere than logging in, which you seem to want to avoid for the first N
searches, there doesn't seem to be much more you can do.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> Who can give me a PHP-Script to
> detect if JavaScript is enabled?
> 
> It should work with both, IE and NN!

--- yoursite.com/nojavascript.htm ----
<HTML>
    <HEAD>
        <SCRIPT LANGUAGE=JavaScript>
            document.location="yoursite.com/javascript.htm";
        </SCRIPT>
    </HEAD>
    <BODY>
        Non-javascript content here.
    </BODY>
</HTML>






> What is the best way to pull data from one table and insert into another?

insert into newmembers(name, email, whatever) select name, email, whatever
from oldmembers

> How can I delete entries from a table with a php document?

The same way you select entries.

mysql_query() can send *ANY* query to your database.

> The gist of what I'm trying to accomplish is this.  This is somewhat of a
> detailed outline, so please bear with me.
>
> 1. I have one table (members) that has all the old data.
> 2. I'm am going to send an e-mail to every entry in that table that has an
> e-mail address and have a link for them to follow to a PHP page.  Any
entry
> that does not have an e-mail address, will be moved over with a different
> (but similar) PHP script that will do a mass search and move of that data
to
> the new table (memberdetail)

Wouldn't it be easier to present different info to members based on their
email or lack thereof, and similarly based on their password or lack
thereof, than to mess around with shuffling all the data from table to
table?...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> do we have to use in each page using the data of a session the
> session-start()?
> cause in the manual it says that session_start -- Initialize session data
> and session_start() creates a session ?!
> thanks

You want session_start() at the top of every page that uses session data.

It initializes session data to the existing values, and creates a (logical)
session for you to work with.  It doesn't wipe out your session and make a
new one, which is how I think you read it.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






Search for "Rasmus Lerdorf" and "posttohost" in your fave PHP code archive
or search engine.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Alexis Michel Golzman" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Sunday, February 25, 2001 2:47 AM
Subject: [PHP] How do I submit a POST form?


> Hi,
>
> I've submitted many times a GET form like this:
>
> header("Location:
> http://examplesite.com/myscript.php3?key=value&key2=value2&keyn=valuen");
>
> but now I need to submit a POST form.
>
> How is this done?
>
> I found this Perl code on the web:
> --------------------------------------------------------------
> use strict;
> use LWP::UserAgent; # libwww-perl
>
> my $ua = new LWP::UserAgent or die "new UA: $!";
> $ua->agent("testclient/1.0");
>
> my $url = 'http://localhost/cgi-bin/test.pl';
> my $request = new HTTP::Request('POST', $url) or
>   die "new HTTP::Request POST '$url': $!";
> $request->content_type('application/x-www-form-urlencoded');
>
> $request->content('field1=value1&field2=value2&field3=value3');
>
> #$request->content('field1=value1'); # optional method
> #$request->add_content('&field2=value2');
> #$request->add_content('&field3=value3');
>
> my $response = $ua->request($request);
> print $response->content;
> --------------------------------------------------------------
>
> But I want to know if there is a way of doing it in PHP...
>
> Thanks in advance for your help! :-)
>
> Kind regards,
> Alexis Golzman
> mailto:[EMAIL PROTECTED]
> http://trafficbar.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





> I'm a little concerned as to how many times some of the scripts I've been
> working on are querying a database:  Some are making up to 4 or 5 queries
> each.  Should this give me any cause for concern?

No problem.

> I've only ever been unable to connect to the database once (other than
> through script error), and that's when I was using a persistent
connection.
> So, I guess my question is, is there a recommended maximum number of
queries
> I should be working around? (MySQL).

If you find yourself writing a loop to execute the same query over and over,
you should worry a little bit.  If that loop might execute 20 times, you
should worry.  If it might go 100, worry a lot.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






Log every time they take an action in your database, and if they are
inactive after a certain time limit, force re-login.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "Plamen Slavov" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, February 26, 2001 2:44 AM
Subject: [PHP] register stop working with a site


> Hi all,
> i was wondering if someone has any idea about how to register that a
client has stopped working with my site and log him/her out?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Linux -- recompile PHP --with-gd=/path/to/gd
Windows, errr, edit php.ini and uncomment the line about the PHP GD DLL?

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "SED" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, February 26, 2001 10:42 AM
Subject: [PHP] How to enable GD with PHP


> Hi,
>
> I downloaded the GD libary and want to enable it with PHP but I cant
figure
> out how to do that - can anyone tell me how to do it? Do I have to put the
> path to GD-libary inside the PHP.ini  and if so, where?
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> ------------------------------------------
> Phone:       (+354) 4615501
> Mobile:      (+354) 8960376
> Fax:         (+354) 4615503
> E-mail:      [EMAIL PROTECTED]
> Homepage:    www.sed.is <- New Homepage!
> ------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





> Can i call a function from the action line of a form?

No.

PHP lives on the web-server.  What you describe, I think, is executing a PHP
function inside the browser.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






You probably need to "unset" the cookie PHP is using to store the session ID
when you destroy the session.

Change your cookie handling in your browser to the "warn me before every
cookie" and play around a bit maybe.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Evelio Martinez <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, February 26, 2001 11:58 AM
Subject: [PHP] Sessions question


>
> How can I have an new session id without closing the browser?
>
> session.inc contains  basically the postgresql session functions (user
> handler) in  http://www.php.net/manual/en/ref.session.php
> I have change  pg_pconnect for pg_connect and I have added
> pg_destroy_session.
>
> 1. There is a login/password page
> 2. Afterwards all pages that access the DB have the following include
> file:
>
> <?
> include('sesion.inc');
>
> if (!isset($g_login)) {    // flag that indicates that validation was
> succesful
>
>   echo "<script language='javascript'>
>          <!--
>           var lugar = window.location.href;
>           if ( lugar != \"http://www.my_web.com/login.php\" ) {
>              window.location.assign('http://www.my_web.com/login.php');
>           }
>           file://-->
>          </script>";
> }
>
> if (isset($g_hora)) {
>
>   $timeout = 3600 ;
>   $lapso = time() - $g_hora;
>   if ( $lapso >= $timeout )  {
>
>     session_destroy();                // delete session  from  database
>     session_unset();                  // suppose to delete session
> variable from memory
>     $sesion = md5(uniqid("prueba"));
>     session_id($sesion);              // new session
>
>     echo "<script language='javascript'>
>            <!--
>             var lugar = window.location.href;
>             var lugars;
>
>             window.alert('La sesión ha expirado');
>             var lugar = window.location.href;
>             if ( lugar != \"http://www.my_web.com/login.php\" ) {
>
> window.location.assign('http://www.my_web.com/login.php');
>               }
>             file://-->
>            </script>";
>   }
> }
> ?>
>
>
> 3. How am I supposed to create a new session identificator ?
>     session_unset is suppose to "free" (delete?)  all session variables
> currently registered, isn't it?
>     After timeout, it goes to login page but I have still the old
> session id instead of the new one.
>
>     What am I missing?
>
> TIA
>
> --
> Evelio Martínez
>
>
>





> Does anyone know the difference between the cgi version of php4 (php.exe)
as
> opposed to setting up php4 as a server's module?
>
> I have both versions installed its just that I do not know what is the
> difference when it comes to functionality. Does the cgi version execute
> faster then the other...things like this!

CGI much slower, somewhat more stable since it's been around longer.

There will be some features not available in CGI, but if you're using NT
they probably wouldn't have worked anyway.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






> I read about the php manual, I find that, shmop function can let me use
> to store information directly on a shared segment memory.
>
> However, I have some question about these!
>
> Does it provide a faster performance, if I use these rather than store
> things in mysql DB, I know this might be stupid, but I have to make sure
> this.

I belive shared memory is *much* faster than MySQL.

But there's nothing to "save" your data if the machine crashes, and all
sorts of tricky stuff you'll need to figure out on your own about shared
memory.

Shared memory is not for the faint of heart.

> And, can I shared the segment ( the data stored inside ) with different
> user session.
> Would you show me how.

Not only *can* you share it with different user sessions, you have no choice
about it.

The whole point of shared memory is that *EVERY* process on the machine is
using the same memory.

So, if you stuff "Hello World" into shared memory location 42, *every*
script, every program, every everything on that computer has "Hello World"
in shared memory location 42.  Period.

> Lastly, is there any further information about using this? the manual
> only take a little bit!!

There's bound to be a HowTo somewhere, but you will really need to be
careful.  Things you need to think about:

What if *two* people run this script at exactly the same time?
How do I know my script isn't tromping on other program's usage of shared
memory?

I can't think of any more, but that's mostly because I consider shared
memory "too tricky for me" and have never played with it...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






For starters, PHP throws away any uploaded files when the script finishes to
avoid a denial of service attack where somebody can overflow your /tmp by
uploading over and over.

You have to copy the files in the first script, and pass *those* locations
on to your next page.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: John LYC <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Monday, February 26, 2001 11:04 PM
Subject: [PHP] image file prob


> hi..
> i have a form that allow users to upload several image files.
> every time they submit, i do fread them and assign them to an array...
> this array will be passed on until user confirmation.. then i insert
> into database as blob type....
>
> file://freed image file and assign to array.
> $diagram[$ind] =
>
addslashes(fread(fopen($HTTP_POST_FILES["QuestDia"]["tmp_name"][$ind],"r"),
>
> file://to facilitate posting of any existing array of the above to the
next
> form...
> for($ind=0;$ind < count($diagram);$ind++)
>   print "<input type=\"hidden\" name=\"diagram[$ind]\"
> value=\"".$diagram[$ind]."\">";
>
> the script will bring user back to the form and allow them to upload
> more...
>
> the 2nd time round, i have got error..
> i see parts of $diagram being displayed out... meaning funny characters
> are displayed..
> once $diagram is insert into database,,, the pic is corrupted..
> it works fine if the form does not repeat.. meaning user post images and
> database is updated straight away.
> can someone tell me wat's wrong?
>
> john
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





>Can anyone guide me how to do the logout function that can get rid off
session and cookies? >Both are used to store userID and password through the
site.

session_destroy();
SetCookie("SID", "");

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm








Can some moderator please do something about this guy - every post to the
list gets an autoresponse:


---------

Your message with subject [Re: [PHP] parse error on line after last one???]
was not delivered to the
following recipient: [kia01].  This recipient's mailbox is full.

Sua mensagem com assunto [Re: [PHP] parse error on line after last one???]
nao foi entregue ao seguinte
destinatario: [kia01].  A caixa-postal deste destinatario esta' cheia.
by srv8-sao.sao.terra.com.br (8.9.3/8.9.3) with ESMTP id UAA27560
for <[EMAIL PROTECTED]>; Tue, 27 Feb 2001 20:28:56 -0300
Received: (from mail@localhost)
by srv3-tl1.tl1.terra.com.br (8.9.3/8.9.3) id UAA12938
for [EMAIL PROTECTED]; Tue, 27 Feb 2001 20:28:55 -0300
Received: from toye.php.net (va.php.net [198.186.203.51])
by srv3-tl1.tl1.terra.com.br (8.9.3/8.9.3) with SMTP id UAA12926
for <[EMAIL PROTECTED]>; Tue, 27 Feb 2001 20:28:54 -0300
Received: (qmail 8791 invoked by uid 1013); 27 Feb 2001 23:25:22 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 8648 invoked from network); 27 Feb 2001 23:25:20 -0000
Message-ID: <004901c0a114$f09af980$[EMAIL PROTECTED]>
From: "Simon Garner" <[EMAIL PROTECTED]>
To: "Jaxon" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Date: Wed, 28 Feb 2001 12:27:08 +1300
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Subject: Re: [PHP] parse error on line after last one???







Hi again,
Has anyone here come accross a Rich Text Format to HTML converted based on PHP?

Thanks,
Chris





i have a form set that my users can fill out thier information.  at the end 
of the process the results are mailed to an email address. then only 
problem is that reloads the page the mail is send again.  this can be a 
problem...any ideas on how to prevent it??

~kurth





<?php

 include_once('session.egn');

 if (isset($HTTP_POST_VARS['submit']))
  if ( isset($HTTP_SESSION_VARS['done']) AND $HTTP_SESSION_VARS['done'] ==
$PHP_SELF)
  {
   echo "a <br>\n";
   echo "You can only press submit once <br>\n";
   exit();
  } else
  {
   echo "b <br>\n";
   $done = $PHP_SELF;
   session_register('done');
  }

 // do some code

 echo "
 <form method='post' action='$PHP_SELF'>
 <input type='hidden' name='submit' value ='1'>

 <input type='submit'>
 </form>
 ";

?>

try this, this allows you to load the page, press submit once, and not
again.

--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]


"Kurth Bemis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i have a form set that my users can fill out thier information.  at the
end
> of the process the results are mailed to an email address. then only
> problem is that reloads the page the mail is send again.  this can be a
> problem...any ideas on how to prevent it??
>
> ~kurth
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






this script isnt working like I want it....mainly I need multiple eregi() to
check fields

<?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$",
$Email))&&(eregi("^[a-z]$", $FirstName))&&(eregi("[a-z]$", $LastName))?
header("Location: http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");
} session_start();?>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Has any one had/heard this problem... My page doesn't load properly with netscape 4.5  
Under Solaris but on WINNT 4 under both ie & NN it loads perfectly can any one offer 
any suggestions?

Peter Houchin
Sun Rentals
[EMAIL PROTECTED]





you have a url or code sample to look at ? have you run it through html tidy
?

http://www.w3.org/People/Raggett/tidy/

also included in ultraedit 8.0a

http://www.ultraedit.com/


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



""Peter Houchin"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Has any one had/heard this problem... My page doesn't load properly with
netscape 4.5  Under Solaris but on WINNT 4 under both ie & NN it loads
perfectly can any one offer any suggestions?
>
> Peter Houchin
> Sun Rentals
> [EMAIL PROTECTED]
>
>






I want to create a list of everyone on the LDAP server, and none of the
examples I have in my books seems to work. What functions should I use to
connect to the server, and list users in the LDAP to create a phone book
type list to print out? Could someone also give me some sort of example that
I can look at?

Mike Tuller





Thought I had this licked but it's giving me a headache ... can anyone help?

here is the index.php:

<? 
   include_once("functions.inc");
   echo functOne();
?>

now functions.inc declares functOne() and functTwo()...

functOne() performs an eval on $string,
and $string contains an "echo functTwo();"

This gets as far as the functTwo call and pukes:

Fatal error: 
Call to undefined function:
funOne() in functions.inc: eval()'d code on line 30

If I declare functTwo() within $string, I'm fine, but I want to keep all my
functions in one file :)  I cannot include functions.inc again in $string,
because then I'm trying to redeclare functOne() after is has been used...
plus, it's ugly.

ANY pointers appreciated...

cheers!
jaxon






I use session variables to retrieve values from form fields and send by
mail(). Problem is upon testing after I fill out form once and send, then go
back and test again with different info it sends the info from the first
time. Whats wrong?


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Do I have to call each variable like.... session_unset(var1, var2, var3);
and session_destroy(var1, var2, var3)?
>
>
> I use session variables to retrieve values from form fields and send by
> mail(). Problem is upon testing after I fill out form once and send, then
go
> back and test again with different info it sends the info from the first
> time. Whats wrong?
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





you will find some browsers dont work like they should, opera doesnt seem to
like my uploads.

<?php

 include_once('database.egn');
 include_once('time.egn');

 if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND
filesize($db_file))
 {
  $db_file = addslashes(fread(fopen($db_file, 'r'), filesize($db_file)));
   $db_file_id = mtime();
  insert_db_value('images', " '$db_file_id', '$db_file', '$db_file_name',
'$db_file_type' ");
 }

 echo "
 <html>
 <body>

  <form method=post enctype='multipart/form-data' action='$PHP_SELF'>
 <input type=file name=db_file>
 <input type=submit>
 </form>

 </body>
 </html>
 ";

?>


works or me, email me your comments if this is or isnt working for you


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]

"Jason Murray" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> We are currently using 3.0.16 (I know :().
>
> I have a form action pointing to $PHP_SELF. After submitting the form
> information, $userfile contains what I expect in $userfile_name. I have
> had all sorts of troubles with file uploads lately, but eventually they
> start working. Not this time.
>
> Can someone give me a clue, please?
>
> Thanks,
> Jason
>
> --
> Jason Murray
> Developer
> http://www.jwebmedia.com/
> 1 877 525 jWEB
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






>   <form method=post enctype='multipart/form-data' action='$PHP_SELF'>
>  <input type=file name=db_file>
>  <input type=submit>
>  </form>

Don't you need a MAX_FILE_SIZE for this to work properly?

Jason




this is probably NOT the problem, but I'll post anyway. Ive found if copying
code from web browser, ie from phpbuilder.com in IE, that 0x0D and 0x0A get
thrown in alot. this causes php to tell me that certain functions are
undefined, even though I know they are. I remove all 0x0D and 0x0A.


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]


"Jon A" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need some help...
>
> I try to do a ftp connection with php, but when i run the script it claims
> that ftp_connect is "call to undefined function.
>
> I have done a call to phpinfo, and it shows that ftp IS enabled! - Whats
wrong?
>
> Here is what i use:
>
> $conn_id = ftp_connect("MyFtpSite");
> $login_result = ftp_login($conn_id, "MyUserName", "MyPassword");
>
> etc...
>
> thanks for any help you can give me.
>
> Jon A
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hi, eveyone, my name is brandon, and i made a members area for my site,
a database driven http authentication and a database for all my members
i got everything working but how do i make a database connection that
recieve the infomation for that user that has loggin into the members
area.
If i wasen clear enough just tell me.





Brandon,

It's a little confusing.

Are you saying:
    1. You have the members area - a directory, what?
    2. You have created a database containing your members information.
and now you:
    3. Want to know how to connect to the database?
    4. Add information to the database about the members?
    5. Have the members add information to the database?

Which database are you using?
What kind of information do you want to capture?

We need more information - Miles Thompson

PS Have you looked at the PHP  & database tutorials at various php sites, 
like www.thickbook.com, devshed, php essentials, php builder etc.? /mt

At 05:34 PM 2/27/01 -0800, Brandon Feldhahn wrote:
>Hi, eveyone, my name is brandon, and i made a members area for my site,
>a database driven http authentication and a database for all my members
>i got everything working but how do i make a database connection that
>recieve the infomation for that user that has loggin into the members
>area.
>If i wasen clear enough just tell me.
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





I have this following if statement.....<?php
if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")

then I need to check the following three strings with eregi....

(eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))?
header("Location: http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");

(eregi("^[a-z]$", $FirstName))?header("Location:
http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");


(eregi("^[a-z]$", $LastName))?header("Location:
http://www.site.com/thanks.php"):
header("Location: http://www.site.com/error.php");
?>

Ive tried several ways but cant get it too work right.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





This is very off the topic question, people. But I just wanna see if anyone has this 
experience and can tell me the procedure. I need to change the registrant company of 
several domains we own to the new company name. I only know that I need to do that at 
networksolution but don't have any idea about how and the process, any guide?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"




From: "Jacky@lilst" <[EMAIL PROTECTED]>

> This is very off the topic question, people. But I just wanna see if
> anyone has this experience and can tell me the procedure. I need
> to change the registrant company of several domains we own to
> the new company name. I only know that I need to do that at
> networksolution but don't have any idea about how and the process,
> any guide?
>
> Jack
> [EMAIL PROTECTED]


RTFM: http://www.networksolutions.com








FWIW, some time back I had to change the owner of a
domain name from my name to a corp name.  Basically,
you have to get the forms from Network Solutions, fill
out the page, get it notorized and fax it back to
network solutions, you can mail it if you want. 
Change over takes a couple of days if you fax it....

I assume this is what your taking about.

rm



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Hi

I'd normally start this mail with some background of what I'm doing,
but to save everyone time, I'll start with the questions, and then
in case anyone has alternative suggestions or workarounds, I'll
fill in the what I'm doing and why...

Within PHP script, is it possible to

 1.  capture the results of the PHP engine's processing of
     the current .phtml/.php file?
     ie. what the server will sent back to the browser.

 2.  manually feed a (possibly different) .phtml/.php file into
     the PHP parser and obtain the results of the processing?


The background to this is that I'm looking at how to update a fairly
large web site.  The files are flat .html files without any scripting
or HTML includes.  They've originally been based on a number of
template files, so they have a common look and feel.

Now we want to change that look, but since the files have been
edited by hand and Netscape/FrontPage/DreamWeaver etc, they've
been mangled a fair bit and mass substitute-and-replace isn't
going to work.  But that's a separate issue.

What I'm looking at doing is making new template files, using PHP
script to output various official headers, tables of contents
and footers at the bottom etc, and then making php versions of
all the existing files.

Since there's so many files and the headers/footers etc won't
change very often, I'd like to save the web server a lot of work
by pre-generating the HTML versions of the PHP files, and serving
these up rather than the .phtml files.

Hence the question about how to run the .phtml files through
the PHP engine and capture the output.

Assuming that there's direct way to do it, the workarounds I thought of are:

 1.  use socket()/connect()/write()/read() from within a .phtml file
     to connect to the web server, GET the .php file and save it.

 2.  compile PHP as an stand-alone executable and then run it over
     the files.  I think this would work, but running a CGI script
     which runs the PHP interpreter seems unneccessarily messy.

Any thoughts/ideas/suggestions?

/\ndy




From: "Andy Jones" <[EMAIL PROTECTED]>

> Hi
>
> I'd normally start this mail with some background of what I'm doing,
> but to save everyone time, I'll start with the questions, and then
> in case anyone has alternative suggestions or workarounds, I'll
> fill in the what I'm doing and why...
>
> Within PHP script, is it possible to
>
>  1.  capture the results of the PHP engine's processing of
>      the current .phtml/.php file?
>      ie. what the server will sent back to the browser.
>
>  2.  manually feed a (possibly different) .phtml/.php file into
>      the PHP parser and obtain the results of the processing?
>
>


Yes this is possible, in a way. I have done it before, for a simple caching
mechanism.

Try this:


<?php
    ob_start(); // turn on output buffering
    echo "<html>";
?>

Some <b>page text</b>!

<?php
    echo "</html>";

    // now save the buffer to a file
    $fp = fopen("/usr/local/apache/htdocs/file.html", "w")
        or die("eek");
    fwrite($fp, ob_get_contents());
    fclose($fp);

    // and output the buffer to the browser
    ob_end_flush();
?>


And have a flick through:
http://www.php.net/manual/en/ref.outcontrol.php


Cheers

Simon Garner





Hiya as this is my first time using cookies could some one please give me an typical 
life time for a cookie before is destroys its self?

thanks

Peter Houchin
Sun Rentals
[EMAIL PROTECTED]





> Hiya as this is my first time using cookies could some one please
> give me an typical life time for a cookie before is destroys its self?

I always delete the cookie when the browsers is closed. set lifetime to ""
to do this.
But in some cases you need cookies to detect users after longer time. you
can use
6 days, 2 month ....





Hi everyone :-)
 
I need help, how can I convert the following code into a function so that I can just place it in a global include file and call it using viewdoc($docid); whenever necessary?
 
-------START-------
if ($docid == "") {
          echo "Fatal Error - DocID not supplied";
          exit;
  }
 
  $dbh = mysql_connect("$HOSTNAME","$DB_USER","$DB_PASS");
  mysql_select_db("$DATABASE");
 
  $sth = mysql_query("SELECT docdata FROM documents WHERE docid like
                  '$docid'");
 
  $row = mysql_fetch_array($sth);
 
  if ($row[0] != "") {
          echo "DocID: $docid\n\n";
        echo (wraptext($row[0],72));
 
  } else {
          echo "Fatal Error - Can't fetch docid";
  }
-------END-------
 
I tried to do this:
function viewdoc($docid) {
...PASTE FROM ABOVE...
}
 
But then I get:
 
Warning: Supplied argument is not a valid MySQL result resource in /home/www/websites/gdd/inc/funcs.inc on line 76
Fatal Error - Can't fetch docid  
 
when I call it from a web page using:
 
viewdoc($docid);
 
 
What have I done wrong?
 
 
 
TIA!
Clayton Dukes




Clayton,

The problem is that some of your variables, e.g. $HOSTNAME, $DB_USER, etc.,
are not global variables, and so are not accessible from inside the
function.

I recommend making those settings define()s instead of variables, but if you
keep them as variables then you just need to add:


<?php
    function viewdoc ($docid)
    {
        global $HOSTNAME, $DB_USER, ...;
        ...
    }
?>


But to do them as constants instead, do:

<?php
    define("HOSTNAME", "myhost.net");
    define("DB_USER", "myuser");
    define("DB_PASS", "jksajfeioe");

    function viewdoc ($docid)
    {
        ...
        $dbh = mysql_connect(HOSTNAME, DB_USER, DB_PASS);
        ...
    }
?>


Hope this helps.


Cheers

Simon Garner


----- Original Message -----
From: "Clayton Dukes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 3:51 PM
Subject: [PHP] Converting code to a function


Hi everyone :-)

I need help, how can I convert the following code into a function so that I
can just place it in a global include file and call it using
viewdoc($docid); whenever necessary?

-------START-------
if ($docid == "") {
          echo "Fatal Error - DocID not supplied";
          exit;
  }

  $dbh = mysql_connect("$HOSTNAME","$DB_USER","$DB_PASS");
  mysql_select_db("$DATABASE");

  $sth = mysql_query("SELECT docdata FROM documents WHERE docid like
                  '$docid'");

  $row = mysql_fetch_array($sth);

  if ($row[0] != "") {
          echo "DocID: $docid\n\n";
        echo (wraptext($row[0],72));

  } else {
          echo "Fatal Error - Can't fetch docid";
  }
-------END-------

I tried to do this:
function viewdoc($docid) {
...PASTE FROM ABOVE...
}

But then I get:

Warning: Supplied argument is not a valid MySQL result resource in
/home/www/websites/gdd/inc/funcs.inc on line 76
Fatal Error - Can't fetch docid

when I call it from a web page using:

viewdoc($docid);


What have I done wrong?



TIA!
Clayton Dukes




----------------------------------------------------------------------------
----


> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





Thanks :-)



----- Original Message -----
From: "Simon Garner" <[EMAIL PROTECTED]>
To: "Clayton Dukes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 9:59 PM
Subject: Re: [PHP] Converting code to a function


> Clayton,
>
> The problem is that some of your variables, e.g. $HOSTNAME, $DB_USER,
etc.,
> are not global variables, and so are not accessible from inside the
> function.
>
> I recommend making those settings define()s instead of variables, but if
you
> keep them as variables then you just need to add:
>
>
> <?php
>     function viewdoc ($docid)
>     {
>         global $HOSTNAME, $DB_USER, ...;
>         ...
>     }
> ?>
>
>
> But to do them as constants instead, do:
>
> <?php
>     define("HOSTNAME", "myhost.net");
>     define("DB_USER", "myuser");
>     define("DB_PASS", "jksajfeioe");
>
>     function viewdoc ($docid)
>     {
>         ...
>         $dbh = mysql_connect(HOSTNAME, DB_USER, DB_PASS);
>         ...
>     }
> ?>
>
>
> Hope this helps.
>
>
> Cheers
>
> Simon Garner
>
>
> ----- Original Message -----
> From: "Clayton Dukes" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 28, 2001 3:51 PM
> Subject: [PHP] Converting code to a function
>
>
> Hi everyone :-)
>
> I need help, how can I convert the following code into a function so that
I
> can just place it in a global include file and call it using
> viewdoc($docid); whenever necessary?
>
> -------START-------
> if ($docid == "") {
>           echo "Fatal Error - DocID not supplied";
>           exit;
>   }
>
>   $dbh = mysql_connect("$HOSTNAME","$DB_USER","$DB_PASS");
>   mysql_select_db("$DATABASE");
>
>   $sth = mysql_query("SELECT docdata FROM documents WHERE docid like
>                   '$docid'");
>
>   $row = mysql_fetch_array($sth);
>
>   if ($row[0] != "") {
>           echo "DocID: $docid\n\n";
>         echo (wraptext($row[0],72));
>
>   } else {
>           echo "Fatal Error - Can't fetch docid";
>   }
> -------END-------
>
> I tried to do this:
> function viewdoc($docid) {
> ...PASTE FROM ABOVE...
> }
>
> But then I get:
>
> Warning: Supplied argument is not a valid MySQL result resource in
> /home/www/websites/gdd/inc/funcs.inc on line 76
> Fatal Error - Can't fetch docid
>
> when I call it from a web page using:
>
> viewdoc($docid);
>
>
> What have I done wrong?
>
>
>
> TIA!
> Clayton Dukes
>
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





I am having a very strange problem: PHP 4.0.4 on a NT 4 platform with
IIS 5 is only allowing one surfer to do a DB Select.  If the DB is busy
with the first user, the page is not available to other users.  And I
have no problems with Win 2K.

Am I missing something very obvious?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]






Hello,

Sorry if this is a little off topic but has anyone successfully used mod_dav with 
dreamweaver 4.0, I have mod_dav setup but am having trouble connecting to it via 
dreamweaver.

If anyone has successfully used this could they email me privately, as I don't want to 
waste any more bandwidth on this list.

Cheers,

Joseph




Hi!


Well I would like to move a file from one directoy to
another using php and a web browser.
I could just find a function to move an uploaded file
but not a normal file which is allready there in some
directory.


Is there any way I can move a file from one directory
to another and also is tehre any way I can delete a
particluar file in a directory..




Thank You!
Cheers!~
Dhaval Desai




__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/


Reply via email to