php-general Digest 15 Mar 2002 15:56:32 -0000 Issue 1228
Topics (messages 88619 through 88664):
Re: Fetching 1 array from either one of 2 possible columns?
88619 by: Martin Towell
mt_rand()
88620 by: Phillip S. Baker
88630 by: David Robley
Re: GET values from Checkboxes
88621 by: Analysis & Solutions
Re: Help Out A Newbie In Configuring PHP.INI
88622 by: David Robley
Re: gmp_mod support
88623 by: David Robley
Re: apache md5 vs. php md5
88624 by: Rasmus Lerdorf
`XtOffsetOf' redefined messing up 4.1.2 build
88625 by: Phil Glatz
Re: PHP Is Inserting (the same) Database Record Multiple Times In My HTML Output
88626 by: hugh danaher
88657 by: Erik Price
Re: Targetted redirection?
88627 by: Analysis & Solutions
88628 by: Michael P. Carel
88659 by: Analysis & Solutions
88661 by: Erik Price
New Day, New Problem
88629 by: jtjohnston
has anyone used cookies with snoopy?
88631 by: Underbrush
88658 by: Underbrush
writing data to a file, pointers
88632 by: Philip J. Newman
88634 by: mnc.stoic.net
Deleteing folders containing files...
88633 by: Philip Jeffs
88635 by: Henrik Hansen
88636 by: Andrey Hristov
88645 by: Michael Sims
Reporting the size of a file/directory on the web server. 820420
88637 by: Nick Patsaros
88638 by: Jason Wong
88641 by: Luke Welling
Re: Sorting in php
88639 by: Luke Welling
Re: What permissions for uploading?
88640 by: Luke Welling
unable to view .php files in browser
88642 by: ngupta.hss.hns.com
88652 by: heinisch.creaction.de
Re: require() vs include()
88643 by: Ford, Mike [LSS]
mail() function
88644 by: Piotr Wozniak
array within an array
88646 by: Caspar Kennerdale
88647 by: Jan Rademaker
88648 by: Niklas Lampén
88649 by: Caspar Kennerdale
Re: array within an array (one more query)
88650 by: Caspar Kennerdale
88651 by: Niklas Lampén
multiple variables
88653 by: Ralph Jarvis
88654 by: Christoph Starkmann
88655 by: Andrey Hristov
88656 by: Edward van Bilderbeek - Bean IT
Re: XML char data parsing
88660 by: Thalis A. Kalfigopoulos
SERVER INFO
88662 by: Dani
88664 by: Hunter, Ray
SESSIONS not timing out
88663 by: Anson Smith
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]
----------------------------------------------------------------------
--- Begin Message ---
instead of:
$esc_subject = $row["SUBJECT1"];
use:
$esc_subject1 = $row["SUBJECT1"];
$esc_subject2 = $row["SUBJECT2"];
and have some logic, in php, later to determine which one(s) to display
-----Original Message-----
From: phplist [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 2:55 PM
To: 'Martin Towell'; [EMAIL PROTECTED]
Subject: RE: [PHP] Fetching 1 array from either one of 2 possible
columns?
I apologize if I wasn't clear in my email. The query part is fine I
think, as I tested it through the myPHPAdmin and had no problem with the
results (but brackets are good though).
It's this part I'm not too sure about. AS you can see, it's just using
["SUBJECT1"] as shown. Correct me if I'm wrong, but even though I have 2
results, the final output would only show 1 because it's only showing
the match in SUBJECT1?
> while ($row = mysql_fetch_array($sql_result)) {
>
> $esc_organization = $row["ORGANIZATION"];
> $esc_desc = $row["DESCRIPTION"];
> $esc_url = $row["URL"];
> $esc_subject = $row["SUBJECT1"];
> $esc_geographic = $row["GEOGRAPHIC"];
> -----Original Message-----
> From: Martin Towell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 7:42 PM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Fetching 1 array from either one of 2
> possible columns?
>
>
> use brackets
>
> where (sub1 or sub2) and geo
>
> -----Original Message-----
> From: phplist [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 2:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Fetching 1 array from either one of 2 possible columns?
>
>
> I'm working on a query by selection type of form, where if a
> user selects a subject to get information. Each database
> entry will have 2 subject fields, Subject 1 being the main
> subject and Subject 2 being the cross-subject. A table is set
> up like this:
>
> +------+--------------+------+----------+----------+-------------+
> | ID | Organization | URL | SUBJECT1 | SUBJECT2 | Geographic |
> +------+--------------+------+----------+----------+-------------+
> | 1 | Acme | www | Math | English | Canada |
> | 2 | Loony Toons | www | Comedy | Math | Brazil |
>
> ...
>
>
> The idea is that the query will check the database to see if
> $Subject has a match in either Subject1 or Subject2. the
> geographic is an optional selection. If I select Math as a
> subject, and left the Geographic option unselected, I want it
> to go into either Subject1 and Subject2 to find Math. In this
> case both records would be a hit.
>
> Below is my query setup and formatting:
> *******
> $sql = "SELECT * FROM links WHERE SUBJECT1='$subject' OR
> SUBJECT2='$subject' AND GEOGRAPHIC='$geographic'
> ORDER BY ORGANIZATION ASC";
>
> $sql_result = mysql_query($sql);
> if (!$sql_result) {
> echo "Can't execute $sql " . mysql_error();
> exit;
> }
>
> // organizes data in an orderly manner (ie bulleted area)
> while ($row = mysql_fetch_array($sql_result)) {
>
> $esc_organization = $row["ORGANIZATION"];
> $esc_desc = $row["DESCRIPTION"];
> $esc_url = $row["URL"];
> $esc_subject = $row["SUBJECT1"];
> $esc_geographic = $row["GEOGRAPHIC"];
>
> $organization = stripslashes($esc_organization);
> $description = stripslashes($esc_desc);
> $url = stripslashes($esc_url);
> $subject = stripslashes($esc_subject);
> $geographic = stripslashes($esc_geographic);
>
> $option_block .= "
> <li>
> <a href=\"http://$url\">$organization</a></li><br>
> $description<br>
> URL: <a href=\"http://$url\">$url</a></li>\n";
> }
> ********
> Now, of course, if I were to use this, it will only use the
> Subject1 data. How do I tell it to use the results from
> either Subject 1 or Subject 2?
>
> Thanks in advance,
>
> Laurie M. Landry
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Is there a way to seed the mt_rand function with numbers and letters to
generate a good password of say 6-10 characters?
Thanks
Phillip
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Is there a way to seed the mt_rand function with numbers and letters to
> generate a good password of say 6-10 characters?
>
> Thanks
>
> Phillip
As I understand it, mt_rand is a random _number_ generator. But I imagine
that you could play around a bit with generating random numbers which
could be used with chr to return a character.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--- End Message ---
--- Begin Message ---
Hey Daniel:
> When I have Textboxes I can retrieve their values whne the method POST is
> used by the $HTTP_POST_VARS['name_of_the_textbox']
Here's a sample form:
<form>
<input name="Doms[]" type="checkbox" value="foo.biz" />
<input name="Doms[]" type="checkbox" value="foo.com" />
<input name="Doms[]" type="checkbox" value="foo.info" />
<input name="Doms[]" type="checkbox" value="foo.net" />
<input name="Doms[]" type="checkbox" value="foo.org" />
</form>
When you submit it, the boxes that are checked off go into the $Doms[]
array. Those which aren't checked don't. The array's key will be
numerical, starting at 0. The array's values will the the values of the
checkbox, ie "foo.com"
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Note that I'm using the Windows version of PHP.
>
> Whenever I use a mail() function in my PHP code I get an error of "Failed to
> Connect on line <number>". So, I'm guessing my error lies in the PHP
> configuration file. I searched around the PHP.INI file for anything
> resembililing "mail". I found these two lines:
>
>
> [mail function]
> ; For Win32 only.
> SMTP = alienmelon.com
>
> ; For Win32 only.
> sendmail_from = [EMAIL PROTECTED]
>
>
> I filled them out also, as you see above. Did I fill them out correctly?
> Even though I filled them out as you see above I still get the same error.
> Is the root of the error in the .ini at all?
I have feeling of deja vu here. Is alienmelon.com a valid mail server? If
not, you need to change it to something that is.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hi,
>
> Was anyone ever successful using gmp extension with PhP 4.1.1?
>
> Thank you,
> Leon
>
> -----Original Message-----
> From: ZILBER,LEONID (HP-NewJersey,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 5:30 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [PHP] gmp_mod support
>
>
> When I add --with-gmp support, I get an error cannot find gmp.h file, while
> I do have ext/gmp/php_gmp.h
>
> Thank you,
> Leon
>
> -----Original Message-----
> From: ZILBER,LEONID (HP-NewJersey,ex1) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 5:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] gmp_mod support
>
>
> Hi guys,
>
> I have compiled PhP 4.1.1 as DSO module specifying --with-gmp support.
> Unfortunatelly, I don't have any of gmp API's available. Does anyone know
> why it doesn't work for me?
>
> Thank you very much,
> Leon
You may have to give a directory path in the configure string if you have
gmp (what's gmp) installed in a non-standard place. Do
configure --help |frep gmp to see what configure might need.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--- End Message ---
--- Begin Message ---
Ah, PHP doesn't understand $apr1$ to be an md5 salt. Not quite sure why
Apache's htpasswd uses that salt instead of the standard $1$
On Thu, 14 Mar 2002, David Ford wrote:
> On the same box, php is generating $1$ md5 hashes properly, two char and
> $apr1$ hashes as DES. The htpassword is generating $apr1$ hashes.
>
> Where is the gadget that needs fixed?
>
> David
>
> Rasmus Lerdorf wrote:
>
> >The PHP one supports that if your OS does.
> >
> >On Thu, 14 Mar 2002, David Ford wrote:
> >
> >>Does anyone have a crypt() function that can use the $apr1$ prefixed
> >>salt that apache's htpasswd uses?
> >>
> >>David
> >>
> >>
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
>
>
--- End Message ---
--- Begin Message ---
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23
installation, and am having some resolution problems I haven't seen before.
This is on a dusty old Free BSD 2.2.2 system, but I was able to build 4.1.1
with no problems with the same configuration. It uses gcc version 2.7.2.1
--- yes, I know I should upgrade the OS, but since it was able to make
4.1.1 ok a few weeks ago, I'm guessing that isn't the problem. I'm
compiling in postgres and gd support, but have the same problem with them out.
I followed the steps (minimal apache, php, fuill apache), running configure
each time and doing a make clean.
During the PHP make I see:
gcc -I. -I/usr/local/src/php-4.1.2/sapi/apache -I/usr/local/src/php-4.1.2/main
-I/usr/local/src/php-4.1.2 -I/usr/local/src/apache_1.3.23/src/include
-I/usr/local/src/apache_1.3.23/src/os/unix -I/usr/local/src/php-4.1.2/Zend
-I/usr/local/src/php-4.1.2/ext/xml/expat
-I/usr/local/src/apache_1.3.23/src/include
-I/usr/local/src/apache_1.3.23/src/os/unix -I/usr/local/src/php-4.1.2/TSRM
-g -O2 -c mod_php4.c && touch mod_php4.lo
In file included from /usr/local/src/apache_1.3.23/src/include/httpd.h:72,
from mod_php4.c:32:
/usr/local/src/apache_1.3.23/src/include/ap_config.h:1386: warning:
`XtOffsetOf' redefined
/usr/local/src/php-4.1.2/main/php.h:342: warning: this is the location of
the previous definition
I tried an Apache build, but it gave me:
===> src/modules/php4
gcc -c -I../../os/unix -I../../include -funsigned-char
-I/usr/local/src/php-4.1.2 -I/usr/local/src/php-4.1.2/main
-I/usr/local/src/php-4.1.2/main
-I/usr/local/src/php-4.1.2/Zend -I/usr/local/src/php-4.1.2/Zend
-I/usr/local/src/php-4.1.2/TSRM -I/usr/local/src/php-4.1.2/TSRM
-I/usr/local/src/php-4.1.2
-DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic -DSHARED_MODULE
mod_php4.c && mv mod_php4.o mod_php4.so-o
In file included from ../../include/httpd.h:72,
from mod_php4.c:32:
../../include/ap_config.h:1386: warning: `XtOffsetOf' redefined
/usr/local/src/php-4.1.2/main/php.h:342: warning: this is the location of
the previous definition
rm -f libphp4.so
gcc -shared -o libphp4.so mod_php4.so-o
libmodphp4.a -L/usr/local/src/gd-1.8.4/
-L/usr/local/postgres/lib -L/usr/local/src/gd-1.8.4/
-L/usr/local/postgres/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lpq -lgd -lcrypt -lbind
-lm -lcrypt -lcrypt
ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1cd9 for
"_zend_unblock_interruptions"
ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1ccd for
"_alloc_globals"
ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1cc0 for
"_alloc_globals"
followed by hundreds of similar errors...
thanks
--- End Message ---
--- Begin Message ---
Morgan,
You're the second one I've seen using "do". What "do"? Is it in the php
manual and I missed it?
I changed your code slightly (to major if it's your baby). It might puke if
the $row is empty for the While loop. If it does, try an @ sign before the
while. I didn't test it but it looks like should go. Or, generate some
interesting error messages.
Hope this helps,
Hugh
$db = mysql_connect("localhost", "user", "pass");
mysql_select_db("photo",$db);
$tablei = 0; //this is the little counter....
$result = mysql_query("select photos.filetype,
photos.bin_data,
photos.id_files,
information.id,
information.desc,
photos.fulldesc
from photos,
information
order by information.id DESC",$db);
if (!$result)
{
print "So sorry, no results.";
}
else
{
print ("<table width=100%><tr>"); //added <tr>
while ($row = mysql_fetch_array($result))
{
// Produce the column for each record....
print "<td width=25% align=center valign=top>
<table width=100% border=0 cellspacing=2 cellpadding=2>
<tr>
<td>
image will go here
</td>
</tr>
<tr>
<td >
(this is id number):".$row[id]."
</td>
</tr>
<tr>
<td>
(this is description): ".$row[fulldesc]."
</td>
</tr>
</table>
</td>";
$tablei = $tablei + 1;
if ($tablei == "4")
{
print ("</tr> <tr>");
$tablei = '0';
}
}
print "</tr></table>":
}
----- Original Message -----
From: "Morgan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 7:49 PM
Subject: [PHP] PHP Is Inserting (the same) Database Record Multiple Times In
My HTML Output
> (sorry if this shows up twice!)
>
> hi, i'm new to php and am having a problem with a script i'm working on.
> i posted this to alt.php a few days ago and got part of my problem
> fixed, but i still have one problem which i can't figure out and haven't
> gotten an answer to there.
>
> here is the code:
>
> <?PHP
> $db = mysql_connect("localhost", "user", "pass");
> mysql_select_db("photo",$db);
> print ("<table width=100%>");
> //this is the little counter....
> $tablei = 0;
> //CONNECT TO DATABASE
> $result = mysql_query("select photos.filetype, photos.bin_data,
> photos.id_files, information.id, information.desc, photos.fulldesc from
> photos, information order by information.id DESC",$db);
> if ($row = mysql_fetch_array($result)) {
> do {
>
> // Produce the column for each record....
> print ("<td width=25% align=center valign=top><table width=100%
> border=0 cellspacing=2 cellpadding=2><tr><td>image will go
> here</td></tr><tr><td >(this is id number):
> ".$row[id]."</td></tr><tr><td>(this is description):
> ".$row[fulldesc]."</td></tr></table></td>");
>
> $tablei = $tablei + 1;
>
> if ($tablei == "4") {
> print ("</tr> <tr>");
> $tablei = '0';
> }
> } while($row = mysql_fetch_array($result));
> } else {print ("No Records");}
>
> ?>
>
> an example of the output can be found here:
> http://www.thosenetworkguys.com/test.php
>
> the problem i am having is that the php code is printing each record in
> the database multiple times. the number of times the record is printed
> is equal to the number of records i have in the database. if you look
> at the url above, you'll see what i'm getting at. for instance, i now
> have 5 records in the database and for some reason each individual
> record is being inserted into the page 5 times now.
>
> the code above was suggested as i was trying to create a page that would
> print an html table and start a new row at four columns. i assume the
> problem i am having now has something to do with the math going on in
> the script to format the html table, but i have tried numerous changes
> to the value and keep getting the same thing.
>
> could someone be kind enough to help out a php newbie and help me figure
> out how to fix this? i just can't figure it out.
>
> thanks.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
On Friday, March 15, 2002, at 12:19 AM, hugh danaher wrote:
> You're the second one I've seen using "do". What "do"? Is it in the php
> manual and I missed it?
do { ... } while ( ... );
Runs the while loop at least once, regardless of whether or not the
while conditional evaluates to TRUE. Somewhat unrelated, but I used to
use this technique for looping through a result array from a
mysql_fetch_*() function if the internal array pointer has already been
bumped to the second position by a containing while loop. Now I just
use two result container variables instead of the same one, since it's
conceptually a little cleaner (than worrying about the array pointer's
position for two separate loops that overlap each other).
> I changed your code slightly (to major if it's your baby). It might
> puke if
> the $row is empty for the While loop. If it does, try an @ sign before
> the
> while. I didn't test it but it looks like should go. Or, generate some
> interesting error messages.
My experience with programming is limited, but I was under the
understanding that the @ sign should be used only suppress possible
unexpected error messages from users; that using it to suppress known
errors is really not as good a solution as finding out what is causing
the error and fixing it... of course, sometimes in a pinch you have to
MacGuyver the thing I guess. Just some advice :)
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On Thu, Mar 14, 2002 at 08:53:23AM +0800, Michael P. Carel wrote:
> oh yes i've got your point, but i've tried what you've told us before but
> still it does not redirect to cover over the frame page.
Ah, yes, that'd be a problem... :)
I knew what I said worked because I use it to get my pages to break out
of About.com's frames. <aside>Man, the audacity of those folks...
framing up my content in their ads.</aside>
In the headers of all of my pages, I send out
header('Window-target: _top');
Now, doing some testing of why it didn't work for you I found that it
only works when pages with that header are one of the pages requested by
the initial frameset. If header is sent out from a page which is
requested once the main frameset is constructed, the header doesn't
work.
Hope that makes sense... If not, let me know and I can clarify.
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
--- End Message ---
--- Begin Message ---
> >
> > > oh yes i've got your point, but i've tried what you've told us before
> but
> > > still it does not redirect to cover over the frame page.
> >
> > Ah, yes, that'd be a problem... :)
> >
> > I knew what I said worked because I use it to get my pages to break out
> > of About.com's frames. <aside>Man, the audacity of those folks...
> > framing up my content in their ads.</aside>
> >
> > In the headers of all of my pages, I send out
> > header('Window-target: _top');
> >
> > Now, doing some testing of why it didn't work for you I found that it
> > only works when pages with that header are one of the pages requested by
> > the initial frameset. If header is sent out from a page which is
> > requested once the main frameset is constructed, the header doesn't
> > work.
> >
>
What do you mean? could give us some simple script sample to visualize
more?please..
--Mike
--- End Message ---
--- Begin Message ---
Hi Folks:
Okay, here's what I'm talking about... A sample system. Four files.
index.php main page holding the frameset. frameset has two
frames. one on left. one on right.
left.php navigation menu that goes in the left hand frame
right.php content in right hand frame. this page is the default
one that comes up in the initial frameset.
right2.php another page for the right hand frame
***************** index.php ******************
<?php
# This has no effect.
# header('Window-target: _top');
?>
<html>
<head><title>index page</title></head>
<frameset COLS="120,*">
<FRAME SRC="left.php" name="menu" scrolling="no">
<frame src="right.php" name="content">
</frameset>
</html>
***************** left.php ******************
<?php
# Turning this on will jump this page out of the frames.
# header('Window-target: _top');
?>
<html><head><title>the menu</title></head><body>
<a href="right.php" target="content">right</a>
<br /><a href="right2.php" target="content">right 2</a>
</body></html>
***************** right.php ******************
<?php
# Turning this on will jump this page out of the frames.
# header('Window-target: _top');
?>
<HTML><HEAD><TITLE>Right</TITLE></HEAD><BODY>
Hi there. This is the main content page in the right frame.
</BODY></HTML>
***************** right2.php ******************
<?php
# This has no effect.
# header('Window-target: _top');
?>
<HTML><HEAD><TITLE>Right 2</TITLE></HEAD><BODY>
Hi there. This is the secondary content page in the right frame.
</BODY></HTML>
Now, put all those files on your machine. Hit index.php and you'll see
everything normally. Then, uncomment the header function in left.php or
right.php and you'll see that page jump out of the frames. But, turn
the header on in index.php or index2.php and you'll still be in the
frames.
Enjoy,
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
--- End Message ---
--- Begin Message ---
On Friday, March 15, 2002, at 10:27 AM, Analysis & Solutions wrote:
> Now, put all those files on your machine. Hit index.php and you'll see
> everything normally. Then, uncomment the header function in left.php or
> right.php and you'll see that page jump out of the frames. But, turn
> the header on in index.php or index2.php and you'll still be in the
> frames.
Is this because the frame of the _top page needs to be a child of the
"parent" _top page? That is to say, if the frameset is not created by a
particular page "A" then the pages with the header() function do not
consider page "A" to be their _top ?
Good example.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
If I change:
$to_path = "c:\\".$date."www\\";
to
$to_path = "c:\\".$date."\\www\\";
It doesn't work? Otherwise, it works.
Can anyone help? Undoubtably something f-ed in the code, or is it a
Windows thing?
#######################################
$date = date ("Ymd");
#######################################
### Don't forget trailing slash #####
#######################################
$from_path = "c:\\program files\\easyphp\\ccl_www\\";
$to_path = "c:\\".$date."ww\\";
#######################################
if(!is_dir($from_path))
{
echo "failed";
exit;
}else{
rec_copy($from_path, $to_path);
echo "files copies from $from_path and backed up to $to_path";
}
#########################################################################
function rec_copy ($from_path, $to_path) {
if(!is_dir($to_path))
mkdir($to_path, 0777);
$this_path = getcwd();
if (is_dir($from_path))
{
chdir($from_path);
$handle=opendir('.');
while (($file = readdir($handle))!==false)
{
if (($file != ".") && ($file != "..")) {
if (is_dir($file))
{
rec_copy ($from_path.$file."/", $to_path.$file."/");
chdir($from_path);
}else{
# echo "error if (is_dir($file))<br>";
}
if (is_file($file))
{
copy($from_path.$file, $to_path.$file);
}else{
# echo "error copy($from_path.$file, $to_path.$file)<br>";
}
}#end (($file != ".")
}#end while (($file
closedir($handle);
}# end if (is_dir
else{
# echo "if (is_dir($from_path))<br>";
}
}# end function
--- End Message ---
--- Begin Message ---
Hello everyone,
Does anyone know how to retrieve a cookie with snoopy, such that I could store it and
use it to reinitialize the cookie variable the next time I use snoopy. Or, could I
take the cookie off my system and use it to initialize the cookie variable?
I desperately need to figure this out. All suggestions are greatly appreciated.
-underbrush
--- End Message ---
--- Begin Message ---
I figured it out. Don't know how to retrieve cookies, but I learned how to set them
with curl. No need to use Snoopy. Sorry.
----- Original Message -----
From: Underbrush
To: [EMAIL PROTECTED]
Sent: Friday, March 15, 2002 4:24 PM
Subject: [PHP] has anyone used cookies with snoopy?
Hello everyone,
Does anyone know how to retrieve a cookie with snoopy, such that I could store it
and use it to reinitialize the cookie variable the next time I use snoopy. Or, could
I take the cookie off my system and use it to initialize the cookie variable?
I desperately need to figure this out. All suggestions are greatly appreciated.
-underbrush
--- End Message ---
--- Begin Message ---
can someone point me in the right direction for writing data to a file.
d:/site/file.txt
infomation:
[DATE] Information
Please point me right.
Philip J. Newman
PhilipNZ :: Design Solutions
http://www.philipnz.com/
[EMAIL PROTECTED]
ICQ# 20482482
+64 25 6144012
--- End Message ---
--- Begin Message ---
On Fri, 15 Mar 2002, Philip J. Newman wrote:
> can someone point me in the right direction for writing data to a file.
>
> d:/site/file.txt
>
> infomation:
>
> [DATE] Information
$information = 'Some information';
$filename = 'd:/site/file.txt';
if ((is_writable($filename) || !file_exists($filename))
&& $fp = @fopen($filename, 'a'))
{
fputs($fp, date('[d-M-Y] ') . $information . "\n");
fclose($fp);
}
else
{
print "Unable to open {$filename} for output";
}
Look up fopen, fputs, fclose in the manual for more details on what's
going on here.
miguel
--- End Message ---
--- Begin Message ---
Hi,
Does anyone know of an 'easy' way to delete folders that contain files and sub-folders?
Thanks,
Phil
-----------------------------
Philip Jeffs
The Tickle Group
The Gate House
Summerseat
Bury
Lancashire
BL9 5PE
United Kingdom
W: http://www.tickle.co.uk
T: 01706 823456
F: 01706 829500
E: [EMAIL PROTECTED] (daytime)
[EMAIL PROTECTED] (evening)
-----------------------------
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Philip Jeffs) wrote:
> Hi,
>
> Does anyone know of an 'easy' way to delete folders that contain files and
>sub-folders?
system("rm -rf folder");
else you need to delete all the folders contents and then the foler
itself reccursivly.
--
Henrik Hansen
--- End Message ---
--- Begin Message ---
Linux /Unix -
$some=`rm -rf your_dir`;
Regards,
Andrey
----- Original Message -----
From: "Philip Jeffs" <[EMAIL PROTECTED]>
To: "PHP LIST" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 11:36 AM
Subject: [PHP] Deleteing folders containing files...
Hi,
Does anyone know of an 'easy' way to delete folders that contain files and sub-folders?
Thanks,
Phil
-----------------------------
Philip Jeffs
The Tickle Group
The Gate House
Summerseat
Bury
Lancashire
BL9 5PE
United Kingdom
W: http://www.tickle.co.uk
T: 01706 823456
F: 01706 829500
E: [EMAIL PROTECTED] (daytime)
[EMAIL PROTECTED] (evening)
-----------------------------
--- End Message ---
--- Begin Message ---
At 09:36 AM 3/15/2002 +0000, Philip Jeffs wrote:
>Hi,
>
>Does anyone know of an 'easy' way to delete folders that contain files and
>sub-folders?
Here's what I use (use rmdirRf($folderthatcontainsotherstuff)):
<?
function rmdirRf($file) {
if(file_exists($file)) {
chmod($file,0777);
if (is_dir($file)) {
$directory = dir($file);
while(false !== ($filename = $directory->read())) {
if ($filename != "." && $filename != "..") {
rmdirRf($file."/".$filename);
}
}
$directory->close();
rmdir($file);
} else {
unlink($file);
}
}
}
?>
--- End Message ---
--- Begin Message ---
I've scoured the PHP manual and I still can't seem to
find it. What I'm trying to do is have PHP grab the
size of a file or directory (say of a php file) then
when that file is displayed, I want it to display the
size of the file in the footer of the page. I would
also like to have the viewer of my web site be able to
check the total size in KB or MB of the entire site.
I also forsee applications of this in the direction of
reporting the filesize of a file on my FTP which could
be used to calculate the approximate download time for
different connection types.
Is there a way do this? If so I thank you in advance
for the help.
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--- End Message ---
--- Begin Message ---
On Friday 15 March 2002 18:32, Nick Patsaros wrote:
> I've scoured the PHP manual and I still can't seem to
> find it. What I'm trying to do is have PHP grab the
> size of a file or directory (say of a php file) then
> when that file is displayed, I want it to display the
> size of the file in the footer of the page. I would
> also like to have the viewer of my web site be able to
> check the total size in KB or MB of the entire site.
> I also forsee applications of this in the direction of
> reporting the filesize of a file on my FTP which could
> be used to calculate the approximate download time for
> different connection types.
>
> Is there a way do this? If so I thank you in advance
> for the help.
Manual > Filesystem functions
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
God help those who do not help themselves.
-- Wilson Mizner
*/
--- End Message ---
--- Begin Message ---
"Nick Patsaros" wrote:
> I've scoured the PHP manual and I still can't seem to
> find it. What I'm trying to do is have PHP grab the
> size of a file or directory (say of a php file) then
> when that file is displayed, I want it to display the
> size of the file in the footer of the page. I would
> also like to have the viewer of my web site be able to
> check the total size in KB or MB of the entire site.
> I also forsee applications of this in the direction of
> reporting the filesize of a file on my FTP which could
> be used to calculate the approximate download time for
> different connection types.
>
> Is there a way do this? If so I thank you in advance
> for the help.
http://www.php.net/filesize
Luke Welling
--
PHP and MySQL Web Development
Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842
--- End Message ---
--- Begin Message ---
"Uma Shankari T." wrote:
> Can anyone please tell me is there any function in php for sorting in
> which the contents are stored in array....
Have you seen sort(), arsort(), asort(), ksort(), natsort(), natcasesort(),
rsort(), usort(), array_multisort(), or uksort()?
Luke Welling
--
PHP and MySQL Web Development
Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842
--- End Message ---
--- Begin Message ---
"Leif K-Brooks" wrote:
> I have a script that allows the user to upload a file. Right now,
though,
> it says permission denied when I try to upload. The permissions for the
> folder I want to upload to is 755 right now. What should I change it to?
Are you checking the permissions on both the folder you want to copy the
uploaded file to and the temp directory that it needs to go to first?
Luke Welling
--
PHP and MySQL Web Development
Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842
--- End Message ---
--- Begin Message ---
I am using php,mysql,apache combination on a linux machine.
I used the INSTALL file available in php-4.0.6.tar to install PHP in
static mode.
Compilations and Installation go on fine with no errors.
But when a test.php script containing:
<HTML>
<HEAD>
<TITLE>Testing PHP</TITLE>
</HEAD>
<BODY>
<?
phpinfo();
?>
</BODY>
</HTML>
is executed, only the HTML tags are interpreted. There is no output for
phpinfo().
The php.ini file is located in /usr/local/lib
The httpd.conf is present in /www/conf
The apache version used is apache_1.3.23
"DISCLAIMER: This message is proprietary to Hughes Software Systems Limited
(HSS) and is intended solely for the use of the individual to whom it is
addressed. It may contain privileged or confidential information and should
not be circulated or used for any purpose other than for what it is intended. If
you have received this message in error, please notify the originator
immediately. If you are not the intended recipient, you are notified that you
are strictly prohibited from using, copying, altering, or disclosing the
contents of this message. HSS accepts no responsibility for loss or damage
arising from the use of the information transmitted by this email including
damage from virus."
--- End Message ---
--- Begin Message ---
At 15.03.2002 17:28, you wrote:
>
>
>
>I am using php,mysql,apache combination on a linux machine.
>
>I used the INSTALL file available in php-4.0.6.tar to install PHP in
>static mode.
>
>Compilations and Installation go on fine with no errors.
>
>But when a test.php script containing:
><? phpinfo(); ?>
>is executed, only the HTML tags are interpreted. There is no output for
>phpinfo().
>The php.ini file is located in /usr/local/lib
>The httpd.conf is present in /www/conf
>The apache version used is apache_1.3.23
Check out, what filename you have, here´s an exerpt from my
httpd.conf.
maybe yours has not the correct endings defined
(As I work for several servers, nearly every ending will be parsed)
<IfDefine PHP>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3 .htmls
AddType application/x-httpd-php3 .html
AddType application/x-httpd-php3 .php
</IfDefine>
#
# And for PHP 4.x, use:
#
<IfDefine PHP4>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfDefine>
HTH Oliver
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]]
> Sent: 15 March 2002 00:55
>
> Plus, depending on how you are calling the file. Meaning if
> the file name
> that you are calling is a static file name or dynamic file name
>
> require() and require_once() will include a file before the
> php parser
> starts its job, but this will only happen if the name isn't dynamic.
In fact, I believe that what you are describing is an OLD behaviour (prior to PHP
4.0.2, in fact). However, the manual has only recently changed to document the new
behaviour (and actually doesn't do it very well, yet). Now, BOTH require and include
(and their _once versions) work dynamically, and the only difference is in how they
report a failure.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--- End Message ---
--- Begin Message ---
Hi,
I can't send e-mail by mail() function (PHP 3.0.18, local MTA Postfix).
Function succeeds (return code is 1) but no e-mail is delivered
and there is no records in mail logs.
Variable sendmail_path in php3.ini is rather good: /usr/sbin/sendmail
- this is proper link to real executable sendmail.
What can I do?
Piotr Wozniak
--- End Message ---
--- Begin Message ---
I have an sql query which calls * rows from a table.
Each row is an array of table field values.
This is how I understand the heirachy
$table_row_array[0] = $field_row_array[]
$table_row_array[1] = $field_row_array[]
$table_row_array[2] = $field_row_array[]
Now $table_row_array is being drawn from the database via a while loop and
an $a++, thus I do not have a name for $field_row_array-
I just know that the value of each in $table_row_array is an array.
How can I access the values within $filed_row_array[]?
I want to do something like
$table_row_array[0 [1]]; (the second value from the array that is the first
of $table_row_array)
I know this isnt the syntax
Thanks in advance
--- End Message ---
--- Begin Message ---
On Fri, 15 Mar 2002, Caspar Kennerdale wrote:
> I have an sql query which calls * rows from a table.
>
> Each row is an array of table field values.
>
> This is how I understand the heirachy
>
> $table_row_array[0] = $field_row_array[]
> $table_row_array[1] = $field_row_array[]
> $table_row_array[2] = $field_row_array[]
>
> Now $table_row_array is being drawn from the database via a while loop and
> an $a++, thus I do not have a name for $field_row_array-
>
> I just know that the value of each in $table_row_array is an array.
>
> How can I access the values within $filed_row_array[]?
>
> I want to do something like
>
> $table_row_array[0 [1]]; (the second value from the array that is the first
> of $table_row_array)
$table_row_array[0][1];
>
> I know this isnt the syntax
>
> Thanks in advance
>
>
>
>
>
>
--
Jan Rademaker <[EMAIL PROTECTED]>
http://www.ottobak.com
--- End Message ---
--- Begin Message ---
$array[0][1] is how you access multi-dimensional arrays.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:18
To: [EMAIL PROTECTED]
Subject: [PHP] array within an array
I have an sql query which calls * rows from a table.
Each row is an array of table field values.
This is how I understand the heirachy
$table_row_array[0] = $field_row_array[]
$table_row_array[1] = $field_row_array[]
$table_row_array[2] = $field_row_array[]
Now $table_row_array is being drawn from the database via a while loop
and an $a++, thus I do not have a name for $field_row_array-
I just know that the value of each in $table_row_array is an array.
How can I access the values within $filed_row_array[]?
I want to do something like
$table_row_array[0 [1]]; (the second value from the array that is the
first of $table_row_array)
I know this isnt the syntax
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thanks all
I knew it was something simple, but my brain was in twists. (no change there
ha ! ha !)
-----Original Message-----
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 13:24
To: Php-General
Subject: RE: [PHP] array within an array
$array[0][1] is how you access multi-dimensional arrays.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:18
To: [EMAIL PROTECTED]
Subject: [PHP] array within an array
I have an sql query which calls * rows from a table.
Each row is an array of table field values.
This is how I understand the heirachy
$table_row_array[0] = $field_row_array[]
$table_row_array[1] = $field_row_array[]
$table_row_array[2] = $field_row_array[]
Now $table_row_array is being drawn from the database via a while loop
and an $a++, thus I do not have a name for $field_row_array-
I just know that the value of each in $table_row_array is an array.
How can I access the values within $filed_row_array[]?
I want to do something like
$table_row_array[0 [1]]; (the second value from the array that is the
first of $table_row_array)
I know this isnt the syntax
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
can you therefore have $array[0][9][2][3]
if you had an array within an array within an array within an array.
(not sure i'd want to, but you never know)
$array[0][1] is how you access multi-dimensional arrays.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:18
To: [EMAIL PROTECTED]
Subject: [PHP] array within an array
I have an sql query which calls * rows from a table.
Each row is an array of table field values.
This is how I understand the heirachy
$table_row_array[0] = $field_row_array[]
$table_row_array[1] = $field_row_array[]
$table_row_array[2] = $field_row_array[]
Now $table_row_array is being drawn from the database via a while loop
and an $a++, thus I do not have a name for $field_row_array-
I just know that the value of each in $table_row_array is an array.
How can I access the values within $filed_row_array[]?
I want to do something like
$table_row_array[0 [1]]; (the second value from the array that is the
first of $table_row_array)
I know this isnt the syntax
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Yes.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:35
To: Php-General
Subject: RE: [PHP] array within an array (one more query)
can you therefore have $array[0][9][2][3]
if you had an array within an array within an array within an array.
(not sure i'd want to, but you never know)
$array[0][1] is how you access multi-dimensional arrays.
Niklas
-----Original Message-----
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:18
To: [EMAIL PROTECTED]
Subject: [PHP] array within an array
I have an sql query which calls * rows from a table.
Each row is an array of table field values.
This is how I understand the heirachy
$table_row_array[0] = $field_row_array[]
$table_row_array[1] = $field_row_array[]
$table_row_array[2] = $field_row_array[]
Now $table_row_array is being drawn from the database via a while loop
and an $a++, thus I do not have a name for $field_row_array-
I just know that the value of each in $table_row_array is an array.
How can I access the values within $filed_row_array[]?
I want to do something like
$table_row_array[0 [1]]; (the second value from the array that is the
first of $table_row_array)
I know this isnt the syntax
Thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi;
An obvious question for some, but I am stumped:
I want to use multiple optins in an "if" statement...
if(user($arbitraryVariable)==(1 or 2 or 3 or 4))
What would be the proper syntax for this?
Thanks
--- End Message ---
--- Begin Message ---
Hi!
> if(user($arbitraryVariable)==(1 or 2 or 3 or 4))
> What would be the proper syntax for this?
Here:
if((user($arbitraryVariable) >= 1) and ($arbitraryVariable <= 4) and
($arbitraryVariable == round($arbitraryVariable)))
In other cases, you'd have to write
if((user($arbitraryVariable)==1) or (user($arbitraryVariable)==2) or (...))
Cheers,
Kiko
-----
It's not a bug, it's a feature.
christoph starkmann
mailto:[EMAIL PROTECTED]
http://www.fh-augsburg.de/~kiko
ICQ: 100601600
-----
--- End Message ---
--- Begin Message ---
if (in_array($arbitraryValue,array(1,2,3,4))){
}
----- Original Message -----
From: "Ralph Jarvis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:50 PM
Subject: [PHP] multiple variables
> Hi;
>
> An obvious question for some, but I am stumped:
>
> I want to use multiple optins in an "if" statement...
>
> if(user($arbitraryVariable)==(1 or 2 or 3 or 4))
>
> What would be the proper syntax for this?
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
or use something like this:
$array_values = array(1,2,3,4);
if (in_array(user($arbitraryVariable), $array_values)) {
// do your stuff
}
Greets,
Edward
----- Original Message -----
From: "Christoph Starkmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:11 PM
Subject: RE: [PHP] multiple variables
> Hi!
>
> > if(user($arbitraryVariable)==(1 or 2 or 3 or 4))
> > What would be the proper syntax for this?
>
> Here:
>
> if((user($arbitraryVariable) >= 1) and ($arbitraryVariable <= 4) and
> ($arbitraryVariable == round($arbitraryVariable)))
>
> In other cases, you'd have to write
>
> if((user($arbitraryVariable)==1) or (user($arbitraryVariable)==2) or
(...))
>
> Cheers,
>
> Kiko
>
> -----
> It's not a bug, it's a feature.
> christoph starkmann
> mailto:[EMAIL PROTECTED]
> http://www.fh-augsburg.de/~kiko
> ICQ: 100601600
> -----
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
> > If I send just a line of simple text (like "The quick brown fox
> > drowned") for XML parsing, why doesn't it call the function which I
> > declare for character data handling? It doesn't even give me an error
> > :-( Is it wrong to have plain text as input for XML parsing?
>
> Why, as a matter of fact, yes!
>
> The data going into the parser needs to be valid, well-formed, XML. I
> assume you didn't get an error message because you didn't ask to see the
> error message. The most basic thing you can do is (assuming you've
> already declared your XML Parser functions...
>
> $Contents = '<BLAH>The quick brown fox drowned</BLAH>';
>
> if ( xml_parse($Parser, $Contents) ) {
> echo "Yipee!\n";
> } else {
> echo "Rejected by parser:\n";
> echo xml_error_string(xml_get_error_code($Parser));
> }
Well, as a matter of fact I do. My code is pretty straightforward. I declare the
handlers:
if(!($xml_parser=xml_parser_create())){
printError("failed to create xml parser");
}
if(!xml_set_element_handler($xml_parser, "startElementHandler", "endElementHandler")){
printError("failed to set element handlers");
}
if(!xml_set_character_data_handler($xml_parser,"charDataHandler")){
printError("failed to set character data handler");
}
And then I parse looking out for any errors:
if (!xml_parse($xml_parser, $xmlstring)){
printError(sprintf("XML:
%s",xml_error_string(xml_get_error_code($xml_parser))));
return false;
}
I don't get any error. I get the $xmlstring from a database and I have verified that
I'm getting the 1-line pure text ("the quick brown fox chocked") just fine. But when
parsed, a call to charDataHandler() is never made :-(
Is it a bug or am I missing something obvious? Dan, did you actually run this and got
an error?
TIA,
thalis
--- End Message ---
--- Begin Message ---
Hi all,
I appologise if this is off topic but I don't know who to ask. I hope
you guys don't mind.
Does any body know where I can find information about the steps of
setting up a server(LINUX) so that people can find a certain URL
address?
I want to sent up a small server for myself from home with my machine
but I don't know how to make it so that the web pages that I put in
my
server accessable by other people around the world.
do I have to connect my modem into my phone line (online) all the
time
or...???
Does my question make any sense?
any help is welcome.
regards,
Dani
--- End Message ---
--- Begin Message ---
Check out the Linux howto's at http://www.linuxdoc.org/docs.html#howto
This will help you set up a server and get online...
Thank you,
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
-----Original Message-----
From: Dani [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SERVER INFO
Importance: High
Hi all,
I appologise if this is off topic but I don't know who to ask. I hope you
guys don't mind.
Does any body know where I can find information about the steps of setting
up a server(LINUX) so that people can find a certain URL address?
I want to sent up a small server for myself from home with my machine but I
don't know how to make it so that the web pages that I put in my server
accessable by other people around the world.
do I have to connect my modem into my phone line (online) all the time
or...???
Does my question make any sense?
any help is welcome.
regards,
Dani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
My I am working on a PHP page that uses sessions. I use $_SESSION['whatever'] to set
all my session vars. I can use the session_destroy() and it works fine but if I just
close the browser (All Browsers), when I come back to the page the Session is still
active. the session.cookie_lifetime is set to 0 in php.ini. any help will be
appreciated.
--- End Message ---