|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Wed Mar 28 2001 - 13:22:38 CST
php-general Digest 28 Mar 2001 19:22:38 -0000 Issue 594
Topics (messages 45843 through 45945):
Re: How to send attachment with email with php?
45843 by: Michael Hall
45844 by: Yasuo Ohgaki
45845 by: Jack Dempsey
HOWTO: arrays with forms
45846 by: Philip Olson
ab post file
45847 by: Paul Juliano
Re: Blah I'm Stupid
45848 by: Tim Ward
45862 by: Christian Reiniger
Re: Spacing between $row["City"],$row["State"]
45849 by: Matt Williams
Re: New PHP-GTK Site
45850 by: elias
45939 by: Joe Stump
Post but not Post
45851 by: elias
45879 by: Maxim Maletsky
45886 by: elias
Re: Sessions to password protect directory?
45852 by: Kyutums
45912 by: PHPBeginner.com
how can I set up session
45853 by: Jacky
45857 by: elias
JavaScript and Submit
45854 by: elias
45869 by: Renze Munnik
45900 by: elias
file deletions ....
45855 by: Steve Brett
45858 by: Phil Driscoll
45859 by: Steve Brett
45936 by: Joe Stump
Re: GZip + NS + Print = Trouble
45856 by: Renze Munnik
45911 by: Michael Kimsal
45914 by: Renze Munnik
45922 by: Michael Kimsal
comparing dates works sometimes and fails another time!
45860 by: kaab kaoutar
45866 by: Renze Munnik
45883 by: elias
odd
45861 by: Andrius Lokotash
45875 by: Yasuo Ohgaki
45876 by: Felix Kronlage
Re: Curious
45863 by: Christian Reiniger
session handling
45864 by: \[Inf\] F!RE-WALL
45867 by: Andrius Lokotash
45868 by: Pavel Kalian
45870 by: Pavel Kalian
45871 by: \[Inf\] F!RE-WALL
Re: Passing Special Characters in Query String
45865 by: Christian Reiniger
45919 by: Thomas Edison Jr.
FTP without FTP module
45872 by: Mauro Biraghi
45884 by: elias
45930 by: Matt McClanahan
About php
45873 by: vishak tomy
45887 by: elias
45888 by: Pavel Kalian
45909 by: Tim McGuire
Re: Help with Posting Data
45874 by: Tobias Talltorp
Re: Caller's Line number?
45877 by: Yasuo Ohgaki
45882 by: elias
Cookie not getting set in IE 5 but no problem in Netscape
45878 by: Floyd Piedad
MySQL Schema
45880 by: KPortsmout.aol.com
45881 by: elias
custody
45885 by: Theo Richel
Is there way how to get line number from which function was called ???
45889 by: Milan Mlynarcik
45892 by: Neil Kimber
45902 by: elias
Active-X
45890 by: AJDIN BRANDIC
45891 by: elias
45897 by: AJDIN BRANDIC
45904 by: elias
45906 by: Simon Ould
45913 by: Adrian Murphy
45938 by: Christian Cresante
POP3 read raw message
45893 by: Miguel Carvalho
php or phtml???
45894 by: Costas
45895 by: elias
45896 by: Tyler Longren
45898 by: Jon Haworth
45899 by: Dominick Vansevenant
unix system
45901 by: Scott Novinger
45903 by: Dominick Vansevenant
45926 by: Michael Kimsal
removing $HTTP_POST_VARS
45905 by: Matt Williams
45907 by: Jon Rosenberg
45908 by: Renze Munnik
Re: "DF" output
45910 by: Steven Shepherd
pattern match help
45915 by: Costas
Re: $myfile[$count]_type?!
45916 by: Daniel B I
mailing-list-log-on
45917 by: MMATTES.de.ibm.com
install-problem
45918 by: MMATTES.de.ibm.com
Q: php.ini
45920 by: Joe Rice
45923 by: Cal Evans
45924 by: Jon Rosenberg
45933 by: Joe Rice
Problems of conversion with strftime()
45921 by: Evelio Martinez
45934 by: Yasuo Ohgaki
alternate pattern match
45925 by: Costas
45935 by: Yasuo Ohgaki
45940 by: Christian Cresante
45943 by: Philip Olson
Extracting just the filename from REQUEST_URI
45927 by: Clayton Dukes
45929 by: FvH
45931 by: Clayton Dukes
Locating where PHP is on my server.
45928 by: Brandon Orther
function knows where call came from?
45932 by: Peter Van Dijck
45937 by: Reuben D Budiardja
remote acces
45941 by: Glenda Robalino
Header problems
45942 by: Chris
--with-imap-ssl
45944 by: Nate Mueller
IP of server?
45945 by: Lance Lovette
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Use a mime_mail class. Have a look at the mail() function in the annotated
PHP manual. There are a few mime_mail classes mentioned there with links.
Mick
On Wed, 28 Mar 2001, Carfield Yim wrote:
> How to send attachment with email with php?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Nothing special. You can compose and send with mail().
Read related RFC or grab code does that from elsewhere on net.
-- Yasuo Ohgaki"Carfield Yim" <carfield
programmer.net> wrote in message news:3AC16E67.596F158D
programmer.net... > How to send attachment with email with php? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > For additional commands, e-mail: php-general-help
lists.php.net > To contact the list administrators, e-mail: php-list-admin
lists.php.net >
attached mail follows:
this has been on the list many many times...check the e-mail functions at php.net and check the archives at http://marc.theaimsgroup.com
-jack
-----Original Message-----
From: Carfield Yim [mailto:carfield
programmer.net]
Sent: Tuesday, March 27, 2001 11:54 PM
To: php-general
lists.php.net
Subject: [PHP] How to send attachment with email with php?
How to send attachment with email with php?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
-------------------------------------------------------------------------- HOWTO : Information on using arrays with forms (part 1 of n) : --------------------------------------------------------------------------
A few array/form questions have popped up recently so here begins a HOWTO on dealing with them. We'll be using $form within our examples so without further ado, let's talk a little about arrays and forms.
Arrays can be called as usual, such as :
<input type="text" name="form[]"> <input type="text" name="form[]"> <input type="text" name="form[]">
To create this with PHP use a for loop OR quickly try this :
$max = 3; echo str_repeat('<input type="text" name="form[]">',$max); When submitted by the user this will create an array with 3 elements named 0-2, it'll look something like :
$form = array( 0 => 'philip', 1 => 'a
a.com', 2 => 'me.com' );
Also, associative arrays work with forms, like this :
<input type="text" name="form[name]"> <input type="text" name="form[email]"> <input type="text" name="form[url]">
Here's a quick simple way to create this form with PHP :
$names = array('name','email','url'); foreach ($names as $name) { echo '<input type="text" name="form['. $name .']">'; }
Upon submittion this gives us an associative array similar to :
$form = array( 'name'=>'philip', 'email'=>'a
a.com', 'url'=>'me.com' );
In both cases, our form processor reads this submitted array and does its
thing. It's here we get creative and make the user well aware of what's
happening and what needs to happen. Doing so means printing existing
values within the form when resubmition is required. We want to inform
the user what went wrong (not long enough, must be alphanumeric, etc.) and
what to do about it (<b>fill this out!</b>). We'll deal with this later.
It's good to know about these (and other) PHP and Environment variables :
REQUEST_METHOD = What method the form has made, such as POST and GET HTTP_POST_VARS = Array of POSTed information HTTP_GET_VARS = Array of GETed information QUERY_STRING = String of GET information ?a=b&c=d&e=f GLOBALS = An array that contains all global variables. This is freely available within functions too.
More are seen through a call to phpinfo() and listed here :
http://www.php.net/manual/en/language.variables.predefined.php
It's also good to know about these (and other) settings : register_globals = When enabled, variables automatically enter the GLOBAL space. If enabled, $form can be called directly otherwise the variables are to be read by other means, like with HTTP_GET_VARS and QUERY_STRING. Something like this :
$form_data_array = $HTTP_POST_VARS['form'];
magic_quotes_gpc = If on, data is escaped automagically on Get,Post and Cookies (GPC). This can also be done manually with addslashes() and if data is viewed while slashes still exist use stripslashes() to strip them first. Also get_magic_quotes_gpc() tells us the current setting.
Read about php.ini settings here :
http://www.php.net/manual/en/configuration.php Current settings can be seen through phpinfo(). In our next installment (when?) we'll talk a little about processing our form arrays.
All words welcome.
Regards, Philip
attached mail follows:
Hello,
I have a php page that accepsts posted data. I'd like to benchmark it using ab (apache benchmark). In the ab man page, it has a -p POSTFILE option. Does anyone here know what format should this post file contain?
Thanks.
__________________________________ www.edsamail.com
attached mail follows:
if (isset($url) && isset($text)) { $fp = fopen("file.txt", "w"); $anothervar = fputs($fp, "<a href='$url'>$text</a><br>", "r+"); $anothervar = fclose($fp); }
echo "<form method='post' action='#'>"; echo "<input type='text' name='url' size=20" value='http://'>"; echo "<input type='text' name='text' size=20>"; echo "<input type='submit' name='submit' value='Generate New Link'>"; echo "</form>";
Tim Ward Senior Systems Engineer
Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html
> -----Original Message-----
> From: chris herring [mailto:chrisherring
subdimension.com]
> Sent: 28 March 2001 06:17
> To: php-general
lists.php.net
> Subject: Re: [PHP] Blah I'm Stupid
>
>
> ok here's the script i have, and i keep getting errors
>
> <?
> $fp = fopen("file.txt", "w");
> $fp = fputs("file.txt", "<a href=\"$url\">$text</a><br>", "r+");
> $fp = fclose("file.txt");
>
> echo "<form method=\"post\" action=\"$fp\">";
> echo "<input type=\"text\" name=\"url\" size=\"20\"
> value=\"http://\">";
> echo "<input type=\"text\" name=\"text\" size=\"20\">";
> echo "<input type=\"submit\" name=\"submit\" value=\"Generate
> New Link\">";
>
> echo "</form>";
> ?>
>
> what's wrong with it. it says it's with the fputs and fclose things.
> ----- Original Message -----
> From: "David Robley" <huntsman
www.nisu.flinders.edu.au>
> To: "chris herring" <chrisherring
subdimension.com>;
> <php-general
lists.php.net>
> Sent: Tuesday, March 27, 2001 11:06 PM
> Subject: Re: [PHP] Blah I'm Stupid
>
>
> > On Wed, 28 Mar 2001 14:31, chris herring wrote:
> > > ----- Original Message -----
> > > From: "David Robley" <huntsman
www.nisu.flinders.edu.au>
> > > To: "chris herring" <chrisherring
subdimension.com>;
> > > <php-general
lists.php.net>
> > > Sent: Tuesday, March 27, 2001 10:19 PM
> > > Subject: Re: [PHP] Blah I'm Stupid
> > >
> > > > On Wed, 28 Mar 2001 13:44, chris herring wrote:
> > > > > > I got a question here. How would you go about
> calling variables
> > > > > > from a
> > > > >
> > > > > form. I'm sure this is super-easy, but I'm a newbie.
> Any help would
> > > > > be greatly appreciated.
> > > >
> > > > Just prefix the form object names with $
> > > >
> > > > Say you have a text box set up like so:
> > > >
> > > > <FORM ACTION=check.php METHOD=GET>
> > > > <input type="text" name="avail" value="">
> > > > <INPUT TYPE=SUBMIT>
> > > > </FORM>
> > > >
> > > > and in check.php
> > > >
> > > > <?php echo $avail; ?>
> > > >
> > > > will show the value entered in the text box
> >
> > > how would you go about writing that data do a text file then?
> >
> > File system functions. fopen the file you want to put the
> data in, fwrite
> > the values from the variable(s) to the file and fclose the
> file at the
> > end of the process.
> >
> > Note the ways you can open a file with fopen; and be aware of file
> > permission problems because this is done as the user the
> web server runs
> > as (*nix, dunno about windows).
> >
> > --
> > David Robley | WEBMASTER & Mail List Admin
> > RESEARCH CENTRE FOR INJURY STUDIES |
> http://www.nisu.flinders.edu.au/
> > AusEinet |
> http://auseinet.flinders.edu.au/
> > Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
>
attached mail follows:
On Wednesday 28 March 2001 07:17, you wrote: > ok here's the script i have, and i keep getting errors > > <? > $fp = fopen("file.txt", "w"); > $fp = fputs("file.txt", "<a href=\"$url\">$text</a><br>", "r+"); > $fp = fclose("file.txt");
re-read the documentation of these functions.
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)/* you are not expected to understand this */
- from the UNIX V6 kernel source
attached mail follows:
> Is there a way to get spacing between > $row["City"],$row["State"] in the html output? > I've tried echo "$row["City"], nbsp; $row["State"]"; > and a bunch of other things and get Parse error: parse > error, expecting `STRING' or `NUM_STRING' or `'$'' .
Try
echo $row["City"]." ".$row["State"];
M
attached mail follows:
What is PHP-GTK? Can you just write me a short list of what it can do?
"Joe Stump" <joe
earth.care2.com> wrote in message
news:20010327223226.C19346
zorka.com...
> I've noticed there isn't really a jumping off point for the PHP-GTK
beginners
> and users. I spent the last few hours throwing a site together that has
the
> basics to fill this void.
>
> It has:
>
> 1.) An application archive
> 2.) News
> 3.) Discussion
> 4.) Helpful Links
>
> I've put up one of my initial apps and plan to put up a few others and
maybe
> a small HOWTO. I'd like the people who have been posting apps to take a
few
> minutes to post their apps here as well. Also, anyone who was thinking of
> posting their apps it might be better served if we posted them in a more
> central location. Finally, if anyone wants to help out (admin, howtos,
etc.)
> please feel free to contact me.
>
> As for me, I'm tired and plan on working on it more tomarrow :o)
>
> --Joe
>
>
> /*****************************\
> * Joe Stump *
> * www.Care2.com *
> * Office: 650.328.0198 *
> * Extension: 122 *
> \*****************************/
> www.miester.org
>
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
> N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
> 5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
> ------END GEEK CODE BLOCK------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
PHP-GTK, for those who don't know, is an implementation of GTK using the PHP language. It basically allows you to program GUI applications in PHP on Windows, Linux, and basically any other OS that GTK and PHP will compile on.
To find out more information check out:
http://www.gtk.org http://gtk.php.net http://gtk.php-coder.net
--Joe
On Wed, Mar 28, 2001 at 11:19:24AM -0800, elias wrote:
> What is PHP-GTK?
> Can you just write me a short list of what it can do?
>
> "Joe Stump" <joe
earth.care2.com> wrote in message
> news:20010327223226.C19346
zorka.com...
> > I've noticed there isn't really a jumping off point for the PHP-GTK
> beginners
> > and users. I spent the last few hours throwing a site together that has
> the
> > basics to fill this void.
> >
> > It has:
> >
> > 1.) An application archive
> > 2.) News
> > 3.) Discussion
> > 4.) Helpful Links
> >
> > I've put up one of my initial apps and plan to put up a few others and
> maybe
> > a small HOWTO. I'd like the people who have been posting apps to take a
> few
> > minutes to post their apps here as well. Also, anyone who was thinking of
> > posting their apps it might be better served if we posted them in a more
> > central location. Finally, if anyone wants to help out (admin, howtos,
> etc.)
> > please feel free to contact me.
> >
> > As for me, I'm tired and plan on working on it more tomarrow :o)
> >
> > --Joe
> >
> >
> > /*****************************\
> > * Joe Stump *
> > * www.Care2.com *
> > * Office: 650.328.0198 *
> > * Extension: 122 *
> > \*****************************/
> > www.miester.org
> >
> > -----BEGIN GEEK CODE BLOCK-----
> > Version: 3.12
> > GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
> > N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
> > 5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
> > ------END GEEK CODE BLOCK------
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
/*****************************\
* Joe Stump *
* www.Care2.com *
* Office: 650.328.0198 *
* Extension: 122 *
\*****************************/
www.miester.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
------END GEEK CODE BLOCK------
attached mail follows:
Hello.
we all know that we can send variables to another PHP file via <form> tag and with post method. now i wonder if i can send variables from a script to another like POST method but not using form tags. like my question is how can i transfer data from form to form like the POST of the <form> tag, but w/o session variables or cookies, or url parameters (like the GET method), and w/o forms ofcourse?
Currently, i'm doing this via hidden forms and automatic posting via JavaScript, but is there is any clean and better way?
Thanks.
attached mail follows:
no other way.
Unless you identify the user somehow VERY WELL, write the staff into the file, and then read the file on other page.
But, basically - the values are being passed with - urls, forms, cookies, sessions (still cookies or urls). No other ways are out there.
Let me know if you'll find a SECURE one :-)
Cheers, Maxim Maletsky
-----Original Message-----
From: elias [mailto:elias_bachaalany
yahoo.com]
Sent: Thursday, March 29, 2001 4:25 AM
To: php-general
lists.php.net
Subject: [PHP] Post but not Post
Hello.
we all know that we can send variables to another PHP file via <form> tag and with post method. now i wonder if i can send variables from a script to another like POST method but not using form tags. like my question is how can i transfer data from form to form like the POST of the <form> tag, but w/o session variables or cookies, or url parameters (like the GET method), and w/o forms ofcourse?
Currently, i'm doing this via hidden forms and automatic posting via JavaScript, but is there is any clean and better way?
Thanks.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Maxim,
I just want them to be passed same as if passed via a <form> with a POST method. can i simulate the POST? Like i tried to put then in the $HTTP_POST_VARS[] but ofcourse, won't be for any good, unless...hmm... i never tried it though, and i have no good knowledge about it, but here's my idea: ususaly, we use Header() to go to another page, what if by this header() i compose the whole header string including the post variables to be posted to the second page, and the do Header("Location: newloc.php") ? Theorically, this should work, but i have no idea how the header that have the posted variables is composed....
If any one can help I would appreciate that.
-elias
"Maxim Maletsky" <maxim.maletsky
japaninc.net> wrote in message
news:DC017B079D81D411998C009027B7112A015ED021
EXC-TYO-01...
> no other way.
>
> Unless you identify the user somehow VERY WELL, write the staff into the
> file, and then read the file on other page.
>
> But, basically - the values are being passed with - urls, forms, cookies,
> sessions (still cookies or urls). No other ways are out there.
>
> Let me know if you'll find a SECURE one :-)
>
> Cheers,
> Maxim Maletsky
>
>
>
> -----Original Message-----
> From: elias [mailto:elias_bachaalany
yahoo.com]
> Sent: Thursday, March 29, 2001 4:25 AM
> To: php-general
lists.php.net
> Subject: [PHP] Post but not Post
>
>
> Hello.
>
> we all know that we can send variables to another PHP file via <form> tag
> and with post method.
> now i wonder if i can send variables from a script to another like POST
> method but not using form tags.
> like my question is how can i transfer data from form to form like the
POST
> of the <form> tag, but w/o session variables or cookies, or url parameters
> (like the GET method), and w/o forms ofcourse?
>
> Currently, i'm doing this via hidden forms and automatic posting via
> JavaScript, but is there is any clean and better way?
>
> Thanks.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Will this be able to protect the images in the directory? For example, if someone tries to access an image in the directory, will the "auth.php" be executed?
Thanks for everything.
- Kyutums
"PHPBeginner.com" wrote:
> All you need is to add this into .htaccess
>
> php_value auto_prepend auth.php
>
> when any file under that directory is being accessed, auth.php will come on
> top, there - make your own script to pass-protect yourself..
>
> Sincerely,
>
> Maxim Maletsky
> Founder, Chief Developer
>
> PHPBeginner.com (Where PHP Begins)
> maxim
phpbeginner.com
> www.phpbeginner.com
>
> -----Original Message-----
> From: Kyutums [mailto:freemail
softhome.net]
> Sent: Friday, March 23, 2001 10:28 AM
> To: Php-General
> Subject: [PHP] Sessions to password protect directory?
>
> Good day to all!
>
> Before, I was able to password protect html and php files via a username
> and passowrd script which used sessions. Now, I need to password protect
> a folder (via .htaccess) that has images (for a family album thing). Can
> this be done via sessions (or even cookies)? I don't want to
> authenticate the user via forms and not via the pop-up that a browser
> presents when using an .htaccess file. Any scripts that already do this
> (password protect a directory)?
>
> Thanks for all your help.
>
> - Kyutums
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
No, it won't. This is for PHP files only.
Sincerely,
Maxim Maletsky Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim
phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Kyutums [mailto:freemail
softhome.net]
Sent: Wednesday, March 28, 2001 5:25 PM
To: PHPBeginner.com; Php-General
Subject: Re: [PHP] Sessions to password protect directory?
Will this be able to protect the images in the directory? For example, if someone tries to access an image in the directory, will the "auth.php" be executed?
Thanks for everything.
- Kyutums
"PHPBeginner.com" wrote:
> All you need is to add this into .htaccess
>
> php_value auto_prepend auth.php
>
> when any file under that directory is being accessed, auth.php will come
on
> top, there - make your own script to pass-protect yourself..
>
> Sincerely,
>
> Maxim Maletsky
> Founder, Chief Developer
>
> PHPBeginner.com (Where PHP Begins)
> maxim
phpbeginner.com
> www.phpbeginner.com
>
> -----Original Message-----
> From: Kyutums [mailto:freemail
softhome.net]
> Sent: Friday, March 23, 2001 10:28 AM
> To: Php-General
> Subject: [PHP] Sessions to password protect directory?
>
> Good day to all!
>
> Before, I was able to password protect html and php files via a username
> and passowrd script which used sessions. Now, I need to password protect
> a folder (via .htaccess) that has images (for a family album thing). Can
> this be done via sessions (or even cookies)? I don't want to
> authenticate the user via forms and not via the pop-up that a browser
> presents when using an .htaccess file. Any scripts that already do this
> (password protect a directory)?
>
> Thanks for all your help.
>
> - Kyutums
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Very stupid question, but I have one variable, say $name = "foo"; and I want that to assign on to session, reditect that to one cgi page and then go to one html page, and I want to have that session value here at this html page, see what I mean? I am using php3. How do I set session up at the first page befoer the redirect happen?
Note, query string is not preferred solution here.
cheers
Jack
jacky
activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for yourself"
attached mail follows:
I don't think PHP3 support sessions variables. but if you want a tricky but working solution to pass variables from page to page try this:
file1.php <html> .....you file is here... <form name="myform" method="post" action="file2.php"> <input type=hidden name="name" value="foo"> </form> <script> // this will automatically submit and redirect! document.myform.submit(); </script> If you don't want redirection to be automatic, you can link this previous script with any JavaScript event.
Now in file2.php, you can read as echo $name ....
hope it helps.
""Jacky"" <jacky
activelifestyle.com> wrote in message
news:008301c0b7cd$601d8560$6400a8c0
activelifestyle.com...
Very stupid question, but I have one variable, say $name = "foo"; and I want
that to assign on to session, reditect that to one cgi page and then go to
one html page, and I want to have that session value here at this html page,
see what I mean? I am using php3. How do I set session up at the first page
befoer the redirect happen?
Note, query string is not preferred solution here.
cheers
Jack
jacky
activelifestyle.com
"There is nothing more rewarding than reaching the goal you set for
yourself"
attached mail follows:
Actually, when I want to submit a form programmatically i do myform.submit() but what if i got like 3 submit buttons and each one with a name? ie: submit1 button, submit2 button, and submit3 button. if the users clicks on of them, i can check in the action file like: if (isset($submit1)) { ... } elseif (isset($submit2)) { ... }
but programmatically, how can i write a code that simulates the submit2 click, so the last check (i just wrote) can really say that submit2 was clicked and continues?
Sorry for poor english, hope i expressed my idea as I'm asking...
-elias
attached mail follows:
Ehhh... do you want to have them all go to the same page after a submit?
With real submit buttons: If you don't, you can just change the 'action' of your form at the moment that someone pushes one of the submit-buttons.
With 'fake' submit buttons: Otherwise (if they all have to go to the same page) I'd say you can just add a hidden field e.g. and set the value to either 'sbm_1', 'sbm_2' or whatever, at the moment someone pushes the button. Then at the 'result-page' you can check that field and look what the value is. Another way is (if you want to use the exact check as you've described) to create three hidden fields (submit1, submit2 and submit3) and assign a value to the one corresponding to the pushed button.
RenzE
elias wrote:
>
> Actually, when I want to submit a form programmatically i do myform.submit()
> but what if i got like 3 submit buttons and each one with a name?
> ie: submit1 button, submit2 button, and submit3 button.
> if the users clicks on of them, i can check in the action file like:
> if (isset($submit1)) { ... }
> elseif (isset($submit2)) { ... }
>
> but programmatically, how can i write a code that simulates the submit2
> click, so the last check (i just wrote) can really say that submit2 was
> clicked and continues?
>
> Sorry for poor english, hope i expressed my idea as I'm asking...
>
> -elias
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Exactly, that how i'm doing at the moment, adding a hidden form that get changed after the onclick event of any of my fake submit buttons and even my <a href="#"> objects.
"Renze Munnik" <renze
datalink.nl> wrote in message
news:3AC1BAE7.A69A6D96
datalink.nl...
> Ehhh... do you want to have them all go to the same page after a
> submit?
>
> With real submit buttons:
> If you don't, you can just change the 'action' of your form at the
> moment that someone pushes one of the submit-buttons.
>
> With 'fake' submit buttons:
> Otherwise (if they all have to go to the same page) I'd say you can
> just add a hidden field e.g. and set the value to either 'sbm_1',
> 'sbm_2' or whatever, at the moment someone pushes the button. Then
> at the 'result-page' you can check that field and look what the
> value is. Another way is (if you want to use the exact check as
> you've described) to create three hidden fields (submit1, submit2
> and submit3) and assign a value to the one corresponding to the
> pushed button.
>
> RenzE
>
>
> elias wrote:
> >
> > Actually, when I want to submit a form programmatically i do
myform.submit()
> > but what if i got like 3 submit buttons and each one with a name?
> > ie: submit1 button, submit2 button, and submit3 button.
> > if the users clicks on of them, i can check in the action file like:
> > if (isset($submit1)) { ... }
> > elseif (isset($submit2)) { ... }
> >
> > but programmatically, how can i write a code that simulates the submit2
> > click, so the last check (i just wrote) can really say that submit2 was
> > clicked and continues?
> >
> > Sorry for poor english, hope i expressed my idea as I'm asking...
> >
> > -elias
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
hi,
i need to delete files in my web folder so i can 'tidy' them up. i have a username and password that has ftp access and so far i've tried system(), unlink() and setting up an ftp connection (they use php 4.03 whihc seems to have ftp access closed).
i have no problem listing the files i want to delete but seem unable to delete them.
can anyone help ?
Steve
attached mail follows:
Steve
unlink works fine for me (on my nt boxes) providing the anonymous web user has permission to delete the files. Note that under IIS and possibly PWS, the damn server keeps files open for a few minutes after it has served them up, and consequently nobody can delete or modify the files during this period.
Cheers
-- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
attached mail follows:
""Phil Driscoll"" <phil
dialsolutions.co.uk> wrote in message
news:001201c0b768$60da60a0$0c800001
philsntserver...
> Steve
>
> unlink works fine for me (on my nt boxes) providing the anonymous web user
> has permission to delete the files. Note that under IIS and possibly PWS,
i think that may be the problem. the site is on a server on an ISP and the web user does not have permission to delete the files. i was hoping to use ftp_connect but don't think that's suported either ... maybe sudo via system() would work ....
> the damn server keeps files open for a few minutes after it has served
them
> up, and consequently nobody can delete or modify the files during this
> period.
>
> Cheers
> --
> Phil Driscoll
> Dial Solutions
> +44 (0)113 294 5112
> http://www.dialsolutions.com
> http://www.dtonline.org
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Make sure that the PHP user (usually nobody) has the access to delete those files - I usually just do `rm -fr /path/to/file.foo`; and it works fine.
--Joe
On Wed, Mar 28, 2001 at 09:42:36AM +0100, Steve Brett wrote:
> hi,
>
> i need to delete files in my web folder so i can 'tidy' them up. i have a
> username and password that has ftp access and so far i've tried system(),
> unlink() and setting up an ftp connection (they use php 4.03 whihc seems to
> have ftp access closed).
>
> i have no problem listing the files i want to delete but seem unable to
> delete them.
>
> can anyone help ?
>
> Steve
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
/*****************************\
* Joe Stump *
* www.Care2.com *
* Office: 650.328.0198 *
* Extension: 122 *
\*****************************/
www.miester.org
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$
N+
o? K? w---! O-
M+
V-! P(++) PE(+) Y+
PGP+++
t+
5? R-! tv
b+ DI++
D(++++) G++
e+
h
r+! z(+++++**)!
------END GEEK CODE BLOCK------
attached mail follows:
Thanks for bringing up this solution. However... I already thought of this option myself. Problem, though, is that _ALL_ my pages should be printable. Maybe a very small number of pages will not have to be printable, but those are so small that the compression isn't realy necesary. Besides that I don't realy like sites that use separate 'printer-friendly' pages. When I'm looking at some page I just want to be able to print it rightaway. And I want to give my clients this opportunity to. That's why I also have a separate (extra/own) print-button on my sites. The user can just use that without realy having to know how the browser works (concerning printing). Because you will just not believe how 'stupid' some users are.
But anyway... any other solutions are ofcourse _very_ much welcome and I'll keep y'all posted a.s.a. I get some more info about this subject.
RenzE
On Wed, Mar 28, 2001 at 09:49:45AM +0100, Jurian wrote: > Hehe, I've seen that before, stupid netscape :-) > We're using output compression as well, what we did, was make an option to > disable compression (http://site/file.html?skip_compress=true) in the > compression function. Then have a "printer friendly page" button on pages > you want to be printable, that links to the current page, with the > skip_compress=true option. That way the browser gets the uncompresses > version, and prints ok again. I haven't been able to get netscape to print > the uncompressed text when the output is compressed, if you somehow find a > way that doesn't require reloading the page with an option like > skip_compress, please, let me know :-) > > Hope this helps, > > Jurian >
attached mail follows:
If you're using a templating system of some sort, if should be pretty easy to check the USER_AGENT and only compress if it's IE. Or NOT compress is it's NS.
That's about the only way to do it easily that I can think of, and we're planning on implementing.
<rant mode="on">
I WANT to like netscape. REALLY. But they've pretty much made it impossible by not fixing things. Historically, NS had an edge on features over IE, imo, till the 4 series. Neck and neck, again, imo. But without any significant changes in years its just way behind the times.
Reloading a page to do 'view source'? (Sorry - POSTED data!) Reloading a page to print? Reloading a page after a browser resize?
Just ridiculous engineering, imo. Even more so when you figure that, when this was first out, every one was on 14.4 modems.
<rant mode="off">
Hopt that helps.
Renze Munnik wrote:
> Thanks for bringing up this solution. However... I already thought
> of this option myself. Problem, though, is that _ALL_ my pages
> should be printable. Maybe a very small number of pages will not
> have to be printable, but those are so small that the compression
> isn't realy necesary. Besides that I don't realy like sites that use
> separate 'printer-friendly' pages. When I'm looking at some page I
> just want to be able to print it rightaway. And I want to give my
> clients this opportunity to. That's why I also have a separate
> (extra/own) print-button on my sites. The user can just use that
> without realy having to know how the browser works (concerning
> printing). Because you will just not believe how 'stupid' some users
> are.
>
> But anyway... any other solutions are ofcourse _very_ much welcome
> and I'll keep y'all posted a.s.a. I get some more info about this
> subject.
>
> RenzE
>
> On Wed, Mar 28, 2001 at 09:49:45AM +0100, Jurian wrote:
> > Hehe, I've seen that before, stupid netscape :-)
> > We're using output compression as well, what we did, was make an option to
> > disable compression (http://site/file.html?skip_compress=true) in the
> > compression function. Then have a "printer friendly page" button on pages
> > you want to be printable, that links to the current page, with the
> > skip_compress=true option. That way the browser gets the uncompresses
> > version, and prints ok again. I haven't been able to get netscape to print
> > the uncompressed text when the output is compressed, if you somehow find a
> > way that doesn't require reloading the page with an option like
> > skip_compress, please, let me know :-)
> >
> > Hope this helps,
> >
> > Jurian
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
A well... what shall I say. I have to agree with you _A LOT_!!! Netscape ruled, but doesn't anymore. It's a damn shame. They pretty much stick to the standards (which I like very much) but the program (browser) is f*cked up.
Anyway... My pages contain some tables about three within each other. And NS can't handle tables to good. So if there is any browser I'd want to use compression for... it'd be NS. That way the data would be faster there and NS should have more time to process it. So I'm not realy looking for I solution that only works for IE. Because only compressing it for IE was something I'd thought about already, but I don't realy think it's a reasonable option.
But... Thanks for spending your time to my problem!
RenzE
On Wed, Mar 28, 2001 at 09:51:09AM -0500, Michael Kimsal wrote: > If you're using a templating system of some sort, > if should be pretty easy to check the USER_AGENT and only > compress if it's IE. Or NOT compress is it's NS. > > That's about the only way to do it easily that I can think of, > and we're planning on implementing. > > <rant mode="on"> > > I WANT to like netscape. REALLY. But they've pretty much made it > impossible by not fixing things. Historically, NS had an edge on features > over IE, imo, till the 4 series. Neck and neck, again, imo. But > without any significant changes in years its just way behind the times. > > Reloading a page to do 'view source'? (Sorry - POSTED data!) > Reloading a page to print? > Reloading a page after a browser resize? > > Just ridiculous engineering, imo. Even more so when you figure that, > when this was first out, every one was on 14.4 modems. > > <rant mode="off"> > > Hopt that helps. >
attached mail follows:
No problem. Understood about the table issue, but it's normally not the downloading of the HTML that's as much a problem as the rendering, in my experience, with netscape.
I'm the last person who would adopt this attitude, but...
Check your stats? How many IE users? How many NS users? The 'solution' is one which by definition CAN'T work with NS. It may not be an IE only thing - not sure about opera or lynx or konqueror with gzip stuff. But don't look at it like an IE only thing. Just a non-NS thing. It's their own damn fault.
If you've got a lot of traffic, the gzip can save a lot of bandwidth. Especially if 80% of your traffic is IE anyway.
Good luck.
Renze Munnik wrote:
> A well... what shall I say. I have to agree with you _A LOT_!!! > Netscape ruled, but doesn't anymore. It's a damn shame. They pretty > much stick to the standards (which I like very much) but the program > (browser) is f*cked up. > > Anyway... My pages contain some tables about three within each > other. And NS can't handle tables to good. So if there is any > browser I'd want to use compression for... it'd be NS. That way the > data would be faster there and NS should have more time to process > it. So I'm not realy looking for I solution that only works for IE. > Because only compressing it for IE was something I'd thought about > already, but I don't realy think it's a reasonable option. > > But... Thanks for spending your time to my problem!
attached mail follows:
Hi!
$date1="2001-1-7";$date2="2001-1-14"; if ($date1>=$date2) echo "date1 is greater then date2"; else echo "date2 is greater then date1"; the result is the first :( but it works for other dates!
Thanks
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
attached mail follows:
If you _do_ want to use this method for comparing dates (which isn't realy a usual way of doing it... there date-functions) you should fill up with leading 0's, like:
$date1="2001-01-07"; $date2="2001-01-14";
The reason is _very_ simple... You performing a text-compare here. And let's face it... the characters "-1" (day of date2) are "smaller" than "-7" (day in date1).
So...
RenzE
kaab kaoutar wrote:
>
> Hi!
>
> $date1="2001-1-7";$date2="2001-1-14";
> if ($date1>=$date2) echo "date1 is greater then date2";
> else echo "date2 is greater then date1";
> the result is the first :(
> but it works for other dates!
>
> 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: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
What are appropriate functions to do Date and Time comparison? like: Date difference Date Comparison? Adding 'n' days to current date string value, Removing 'n' month, etc..... Where can i find the date integer enconding used in PHP? Like i know how it's done in Delphi (as stored as a Double value) but in PHP, the date integer how is it encoded?
thanks.
"Renze Munnik" <renze
datalink.nl> wrote in message
news:3AC1B943.EC058C09
datalink.nl...
> If you _do_ want to use this method for comparing dates (which isn't
> realy a usual way of doing it... there date-functions) you should
> fill up with leading 0's, like:
>
> $date1="2001-01-07"; $date2="2001-01-14";
>
> The reason is _very_ simple... You performing a text-compare here.
> And let's face it... the characters "-1" (day of date2) are
> "smaller" than "-7" (day in date1).
>
> So...
>
> RenzE
>
>
> kaab kaoutar wrote:
> >
> > Hi!
> >
> > $date1="2001-1-7";$date2="2001-1-14";
> > if ($date1>=$date2) echo "date1 is greater then date2";
> > else echo "date2 is greater then date1";
> > the result is the first :(
> > but it works for other dates!
> >
> > 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: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi.
It seems that PHP don't clean up it's temporary session files, is this a "feature" or bug?
PHP versions used 4.0.1pl1 to 4.0.4-pl1
attached mail follows:
What is your
session.gc_probability session.gc_maxlifetime
Garbage collection is affected by these. Garbage collection will not be performed unless someone is using session and garbage collection is performed. So answer to your question is it is PHP4 session restriction that PHP does not delete session files unless garbage collection is performed. It will be deleted eventually, though.
Try higher gc_probability if you have problem with that.
-- Yasuo Ohgaki""Andrius Lokotash"" <andrius
dev.neti.ee> wrote in message news:ADE5A017B02F7B4F98F10F5336C10AE4ABBD
pdc.dev.neti.ee... Hi.
It seems that PHP don't clean up it's temporary session files, is this a "feature" or bug?
PHP versions used 4.0.1pl1 to 4.0.4-pl1
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Wed, Mar 28, 2001 at 12:03:55PM +0200, Andrius Lokotash wrote:
> It seems that PHP don't clean up it's temporary session files, is this a > "feature" or bug?
it cleans them in certain intervals.
from php.ini:
|session.gc_maxlifetime = 1440 ; after this number of seconds, stored | ; data will be seen as 'garbage' and | ; cleaned up by the gc process
-fkr
-- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkrIRCnet |
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (OpenBSD) Comment: For info see http://www.gnupg.org
iD8DBQE6wcKsDTGb09msdNARArZAAJ43Sep82oVRykplo1+KY4o0pm/4fwCfYkE3 8CJR4nSXuVfzQQniVp7bPG8= =i8+h -----END PGP SIGNATURE-----
attached mail follows:
On Wednesday 28 March 2001 08:18, you wrote:
> in general, I avoid using quotes where possible (such as in the > following) <font size=3 face=Arial> (instead of <font size=\"3\" > face=\"Arial\">)
Remember that XHTML *requires* quotes around every attribute value.
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)/* you are not expected to understand this */
- from the UNIX V6 kernel source
attached mail follows:
Every time I want to initiate a session i get this:
Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m (2) in e:\webserver\phptest\page1.php on line 2
Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
I run an Apache webserver under Windows and I have the latest version of PHP. I looked up the "session.save_path" in the php.ini file and it sais:
[Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp ; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start = 0 ; initialize session on request startup session.cookie_lifetime = 1814400 ; lifetime in seconds of cookie ; or if 0, until browser is restarted session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability = 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime = 1440 ; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = ; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length = 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length = 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes session.use_trans_sid = 1 ; use transient sid support if enabled ; by compiling with --enable-trans-sid url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
What's wrong with /tmp ? Where's that map located? Do I need to change the entry? Should I create the dir? If so, where?
attached mail follows:
if you use windows then paht myst be c:\tmp or somthing like that.
the difference between unix & windows systems are directory adressing symbols, unix uses / windows on the oder hand \, fix this in php.ini and it will work
-----Original Message-----
From: php-general-return-45864-andrius=et.ee
lists.php.net
[mailto:php-general-return-45864-andrius=et.ee
lists.php.net]On Behalf
Of [Inf] F!RE-WALL
Sent: Wednesday, March 28, 2001 12:10 PM
To: php-general
lists.php.net
Subject: [PHP] session handling
Every time I want to initiate a session i get this:
Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m (2) in e:\webserver\phptest\page1.php on line 2
Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
I run an Apache webserver under Windows and I have the latest version of PHP. I looked up the "session.save_path" in the php.ini file and it sais:
[Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp ; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start = 0 ; initialize session on request startup session.cookie_lifetime = 1814400 ; lifetime in seconds of cookie ; or if 0, until browser is restarted session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability = 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime = 1440 ; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = ; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length = 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length = 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes session.use_trans_sid = 1 ; use transient sid support if enabled ; by compiling with --enable-trans-sid url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
What's wrong with /tmp ? Where's that map located? Do I need to change the entry? Should I create the dir? If so, where?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
----- Original Message -----
From: "[Inf] F!RE-WALL" <claninfinity
icqmail.com>
To: <php-general
lists.php.net>
Sent: Wednesday, March 28, 2001 12:10 PM
Subject: [PHP] session handling
> Every time I want to initiate a session i get this:
>
> Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed:
m
> (2) in e:\webserver\phptest\page1.php on line 2
>
> Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed:
m
> (2) in Unknown on line 0
>
> Warning: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct (/tmp) in Unknown on line
0
>
> I run an Apache webserver under Windows and I have the latest version of
> PHP. I looked up the "session.save_path" in the php.ini file and it sais:
>
> [Session]
> session.save_handler = files ; handler used to store/retrieve data
> session.save_path = /tmp ; argument passed to save_handler
> ; in the case of files, this is the
> ; path where data files are stored
> session.use_cookies = 1 ; whether to use cookies
> session.name = PHPSESSID
> ; name of the session
> ; is used as cookie name
> session.auto_start = 0 ; initialize session on request
startup
> session.cookie_lifetime = 1814400 ; lifetime in seconds of cookie
> ; or if 0, until browser is restarted
> session.cookie_path = / ; the path the cookie is valid for
> session.cookie_domain = ; the domain the cookie is valid for
> session.serialize_handler = php ; handler used to serialize data
> ; php is the standard serializer of
PHP
> session.gc_probability = 1 ; percentual probability that the
> ; 'garbage collection' process is
> started
> ; on every session initialization
> session.gc_maxlifetime = 1440 ; after this number of seconds, stored
> ; data will be seen as 'garbage' and
> ; cleaned up by the gc process
> session.referer_check = ; check HTTP Referer to invalidate
> ; externally stored URLs containing
ids
> session.entropy_length = 0 ; how many bytes to read from the file
> session.entropy_file = ; specified here to create the session
> id
> ; session.entropy_length = 16
> ; session.entropy_file = /dev/urandom
> session.cache_limiter = nocache ; set to {nocache,private,public} to
> ; determine HTTP caching aspects
> session.cache_expire = 180 ; document expires after n minutes
> session.use_trans_sid = 1 ; use transient sid support if enabled
> ; by compiling with --enable-trans-sid
> url_rewriter.tags =
> "a=href,area=href,frame=src,input=src,form=fakeentry"
>
> What's wrong with /tmp ? Where's that map located? Do I need to change the
> entry? Should I create the dir? If so, where?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Sorry, hit the submit button too soon :-)
The session.save_path must exist on your system. Try session.save_path = C:\winnt\temp (if you're on NT/2000) or C:\windows\temp instead of /tmp
Pavel
----- Original Message -----
From: "Pavel Kalian" <pkalian
ssw.cz>
To: "[Inf] F!RE-WALL" <claninfinity
icqmail.com>
Cc: <php-general
lists.php.net>; <php-windows
lists.php.net>
Sent: Wednesday, March 28, 2001 12:17 PM
Subject: Re: [PHP] session handling
>
> ----- Original Message -----
> From: "[Inf] F!RE-WALL" <claninfinity
icqmail.com>
> To: <php-general
lists.php.net>
> Sent: Wednesday, March 28, 2001 12:10 PM
> Subject: [PHP] session handling
>
>
> > Every time I want to initiate a session i get this:
> >
> > Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed:
> m
> > (2) in e:\webserver\phptest\page1.php on line 2
> >
> > Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR)
failed:
> m
> > (2) in Unknown on line 0
> >
> > Warning: Failed to write session data (files). Please verify that the
> > current setting of session.save_path is correct (/tmp) in Unknown on
line
> 0
> >
> > I run an Apache webserver under Windows and I have the latest version of
> > PHP. I looked up the "session.save_path" in the php.ini file and it
sais:
> >
> > [Session]
> > session.save_handler = files ; handler used to store/retrieve
data
> > session.save_path = /tmp ; argument passed to save_handler
> > ; in the case of files, this is the
> > ; path where data files are stored
> > session.use_cookies = 1 ; whether to use cookies
> > session.name = PHPSESSID
> > ; name of the session
> > ; is used as cookie name
> > session.auto_start = 0 ; initialize session on request
> startup
> > session.cookie_lifetime = 1814400 ; lifetime in seconds of
cookie
> > ; or if 0, until browser is
restarted
> > session.cookie_path = / ; the path the cookie is valid for
> > session.cookie_domain = ; the domain the cookie is valid for
> > session.serialize_handler = php ; handler used to serialize data
> > ; php is the standard serializer of
> PHP
> > session.gc_probability = 1 ; percentual probability that the
> > ; 'garbage collection' process is
> > started
> > ; on every session initialization
> > session.gc_maxlifetime = 1440 ; after this number of seconds,
stored
> > ; data will be seen as 'garbage' and
> > ; cleaned up by the gc process
> > session.referer_check = ; check HTTP Referer to invalidate
> > ; externally stored URLs containing
> ids
> > session.entropy_length = 0 ; how many bytes to read from the
file
> > session.entropy_file = ; specified here to create the
session
> > id
> > ; session.entropy_length = 16
> > ; session.entropy_file = /dev/urandom
> > session.cache_limiter = nocache ; set to {nocache,private,public} to
> > ; determine HTTP caching aspects
> > session.cache_expire = 180 ; document expires after n minutes
> > session.use_trans_sid = 1 ; use transient sid support if
enabled
> > ; by compiling
with --enable-trans-sid
> > url_rewriter.tags =
> > "a=href,area=href,frame=src,input=src,form=fakeentry"
> >
> > What's wrong with /tmp ? Where's that map located? Do I need to change
the
> > entry? Should I create the dir? If so, where?
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
attached mail follows:
thanx m8 IT WORKS!!!!
""Andrius Lokotash"" <andrius
dev.neti.ee> wrote in message
news:ADE5A017B02F7B4F98F10F5336C10AE4ABBE
pdc.dev.neti.ee...
if you use windows then paht myst be c:\tmp or somthing like that.
the difference between unix & windows systems are directory adressing symbols, unix uses / windows on the oder hand \, fix this in php.ini and it will work
-----Original Message-----
From: php-general-return-45864-andrius=et.ee
lists.php.net
[mailto:php-general-return-45864-andrius=et.ee
lists.php.net]On Behalf
Of [Inf] F!RE-WALL
Sent: Wednesday, March 28, 2001 12:10 PM
To: php-general
lists.php.net
Subject: [PHP] session handling
Every time I want to initiate a session i get this:
Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m (2) in e:\webserver\phptest\page1.php on line 2
Warning: open(/tmp\sess_b18426d4011c38e033bd0ed54bd2d2f1, O_RDWR) failed: m (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
I run an Apache webserver under Windows and I have the latest version of PHP. I looked up the "session.save_path" in the php.ini file and it sais:
[Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp ; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start = 0 ; initialize session on request startup session.cookie_lifetime = 1814400 ; lifetime in seconds of cookie ; or if 0, until browser is restarted session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability = 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime = 1440 ; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = ; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length = 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length = 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes session.use_trans_sid = 1 ; use transient sid support if enabled ; by compiling with --enable-trans-sid url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
What's wrong with /tmp ? Where's that map located? Do I need to change the entry? Should I create the dir? If so, where?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Wednesday 28 March 2001 08:36, you wrote: > I'm facing a problem with Special Characters ($, %, &, > \, /, ;, :, ", ') etc...... > We are sending a varibale in a query string like this > > > <a href="add_pro_team.php3?title=<? echo > urlencode($title) ?>">
try rawurlencode()
-- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)/* you are not expected to understand this */
- from the UNIX V6 kernel source
attached mail follows:
I've tried everything : rawurlencode, urldecode, htmlentities, htmlspecialchars - nothing is working. and come 2 think of it - it seems like such a basic problem...
Help!
T. Edison jr.
--- Christian Reiniger <creinig
mayn.de> wrote:
> On Wednesday 28 March 2001 08:36, you wrote:
> > I'm facing a problem with Special Characters ($,
> %, &,
> > \, /, ;, :, ", ') etc......
> > We are sending a varibale in a query string like
> this
> >
> >
> > <a href="add_pro_team.php3?title=<? echo
> > urlencode($title) ?>">
>
> try rawurlencode()
>
> --
> Christian Reiniger
> LGDC Webmaster (http://sunsite.dk/lgdc/)
>
> /* you are not expected to understand this */
>
> - from the UNIX V6 kernel source
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
> php-general-unsubscribe
lists.php.net
> For additional commands, e-mail:
> php-general-help
lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech
yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
attached mail follows:
How can I do FTP without FTP module? Thanks.
attached mail follows:
Maybe you can try implementing the RFC of the FTP. Using plain socket functions, reading, receiving............writing....
good luck.
""Mauro Biraghi"" <m.biraghi
lombardiacom.it> wrote in message
news:99se7u$906$1
toye.p.sourceforge.net...
> How can I do FTP without FTP module?
> Thanks.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
On Wed, Mar 28, 2001 at 12:30:06PM +0200, Mauro Biraghi wrote:
> How can I do FTP without FTP module? > Thanks.
You can open files over FTP with the fopen wrappers, however this will only work for connecting to FTP servers that support passive mode.
http://www.php.net/manual/en/function.fopen.php
Matt
attached mail follows:
Hello, I have a doubt about multi select from drop down, if i set it as <select name="number[]"> then how could I check it for javascript validation. for this select, If any alternative for this please inform me.
Vishak
____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1
attached mail follows:
Please re-phrase, i might be able to help you. give me an example too.
"vishak tomy" <vishak_tomy
usa.net> wrote in message
news:20010328103919.14635.qmail
nwcst319.netaddress.usa.net...
Hello,
I have a doubt about multi select from drop down, if i set it as
<select name="number[]"> then how could I check it for javascript
validation. for this select, If any alternative for this please inform
me.
Vishak
____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
You can only reference such elements using it's indexes in javascript.
try formName.elements[3].value //(replace 3 with the index of your <select>)
Pavel
>
> "vishak tomy" <vishak_tomy
usa.net> wrote in message
> news:20010328103919.14635.qmail
nwcst319.netaddress.usa.net...
> Hello,
> I have a doubt about multi select from drop down, if i set it as
> <select name="number[]"> then how could I check it for javascript
> validation. for this select, If any alternative for this please inform
> me.
>
> Vishak
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Here is a post from a few months ago that has an idea about your question: Tim ______________________________________________________________ Quick answer: Nothing, if it works.
Which browser supports it?
Anthony
-----Original Message-----
From: Ignacio Vazquez-Abrams [mailto:ignacio
openservices.net]
Sent: Thursday, December 28, 2000 11:40 AM
To: Anthony Martin
Cc: 'php-general
lists.php.net'
Subject: Re: [PHP] Great javascript function
On Thu, 28 Dec 2000, Anthony Martin wrote:
> Ever use associative arrays to name a form element? > > <INPUT type="submit" name="doThis[foo]" value="Do Foo"> > > Ever try to use that name with javascript? > > alert ( document.myform.doThis['foo'].value ) ; > > It doesn't work. Or at least, I don't see how it would. The brackets are >
Quick question: What's wrong with document.myform["dothis[foo]"].value?
>>> vishak tomy <vishak_tomy
USA.Net> 03/28/01 04:39AM >>>
Hello,
I have a doubt about multi select from drop down, if i set it as
<select name="number[]"> then how could I check it for javascript
validation. for this select, If any alternative for this please inform
me.
Vishak
____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Sorry, a post MUST come from the client. The only way I know, is to use JavaScript for this...
// Tobias
""Peter Phillips"" <NOpeter.phillips
usa.netSPAM> wrote in message
news:99p6a2$vou$1
toye.p.sourceforge.net...
> Hi,
> I need a way to POST data to another script on another server, without
using
> a form and without using GET (i.e. foobar.php?name=value), I then need the
> user to be sent to that page (which now has the data).
>
> Is that possible? I found some functions (PostToHost), but they only POST
> the data and do now direct the user to the site.
>
> Any help would be appreciated.
>
> Thanks
>
> BTW: I can't use sessions or anything like that.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Not sure what you really mean.
__LINE__ contains current line number in the script wherever it is used. So if you want caller's line number
function foo($line) { echo 'Line number: '. $line; }
foo(__LINE__);
You can get the caller's line number. (Line number of foo(__LINE__);)
Regards,
-- Yasuo Ohgaki""elias"" <elias_bachaalany
yahoo.com> wrote in message news:99s17u$fd7$1
toye.p.sourceforge.net... > Hello, > > can i make a function that displays the __LINE__ of it's caller? > > ie: > > function show_caller_s_line() > { > echo "my caller's line is:" . __LINE__; > } > > 1: blahblahblah > 2: show_caller_s_line() > 3: blahblah > > output should be: > my caller's line is: 3 > > > is that possible? > > thanks. > -elias > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > For additional commands, e-mail: php-general-help
lists.php.net > To contact the list administrators, e-mail: php-list-admin
lists.php.net >
attached mail follows:
Look at this example:
1: 2: write_debug_string("i'm here"); 3: 4: 5: write_debug_string("now i'm here"); 6:
function write_debug_string($message) { echo sprintf("[DEBUG AT LINE %d] %s", get_callers_line(), $message); }
this should output: [DEBUG AT LINE 2]: i'm here [DEBUG AT LINE 5]: now i'm here
so basically, as if passing to the write_debug_string() a hidden parameter = __LINE__ but i don't want to pass it everytime. maybe in C language i could have written a macro that passes the __LINE__ for me.
btw, any macros in PHP like in C? (#define xyz...)
""Yasuo Ohgaki"" <yohgaki
hotmail.com> wrote in message
news:99sgbp$t8p$1
toye.p.sourceforge.net...
> Not sure what you really mean.
>
> __LINE__ contains current line number in the script wherever it is used.
So if
> you want caller's line number
>
> function foo($line) {
> echo 'Line number: '. $line;
> }
>
> foo(__LINE__);
>
> You can get the caller's line number. (Line number of foo(__LINE__);)
>
> Regards,
> --
> Yasuo Ohgaki
>
>
> ""elias"" <elias_bachaalany
yahoo.com> wrote in message
> news:99s17u$fd7$1
toye.p.sourceforge.net...
> > Hello,
> >
> > can i make a function that displays the __LINE__ of it's caller?
> >
> > ie:
> >
> > function show_caller_s_line()
> > {
> > echo "my caller's line is:" . __LINE__;
> > }
> >
> > 1: blahblahblah
> > 2: show_caller_s_line()
> > 3: blahblah
> >
> > output should be:
> > my caller's line is: 3
> >
> >
> > is that possible?
> >
> > thanks.
> > -elias
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
My program works really well with Netscape. But with some Internet Explorer installs, the cookie does not get remembered? I already set the Security options to Allow Cookies (both). When I set it to prompted, it even asked me if I wanted to accept the cookie, replied yes, but still the cookie cannot be read by the PHP program?
Thanks,
Floyd
attached mail follows:
Hi,
Is there any way in PHP to print out the schema of my database tables?
Cheers Ade
attached mail follows:
Hmm....how you mean schema? you can always list all databases then recurse into tables and fields and display them as however you want!
see: mysql_list_dbs(), mysql_list_fields(), mysql_list_tables()
<KPortsmout
aol.com> wrote in message news:18.ad6b32b.27f32339
aol.com...
> Hi,
>
> Is there any way in PHP to print out the schema of my database tables?
>
> Cheers
> Ade
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
For a dutch organisation of fathers with custody/visitation problems I run a 2000+ records database of newspaper clippings under Mysql/PHP. We are very much in need of a PHP-script to regulate access to the database (for data entry) with passwords and store the user-id's in the database. Are there any fathers or other people out there who sympatize with our goals (more justice for men) and feel capable of writing such a script for free? We would be immensely grateful.
Theo Richel
theo
richel.org
attached mail follows:
Is there way how to get line number from which function was called ???
Milan Mlynarcik
attached mail follows:
No. You could pass the constant __LINE__ to your function, but I assume that you want this feature to be generically available within all functions. If you really want to be able to track your call-stack then you'd be better off using a development environment like the Zend IDE and debugger. Alternatively you could request a function to the PHP developers mailing list that would return an array containing the current call-stack.
You can register your own error handler and assert handler - these guys receive the calling LINE as a parameter.
-----Original Message-----
From: mmlynarcik
vodnik.charmed.sk
[mailto:mmlynarcik
vodnik.charmed.sk]On Behalf Of Milan Mlynarcik
Sent: 28 March 2001 14:43
To: php-general
lists.php.net
Subject: [PHP] Is there way how to get line number from which function
was called ???
Is there way how to get line number from which function was called ???
Milan Mlynarcik
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Thanks. That was an answer to my post with this subject: "[PHP] Caller's Line number?" Can you answer too my last question in that post?
""Neil Kimber"" <neil.kimber
flytxt.com> wrote in message
news:OAEEKIKEIHKOPGHNDHJJEEEFCOAA.neil.kimber
flytxt.com...
> No.
> You could pass the constant __LINE__ to your function, but I assume that
you
> want this feature to be generically available within all functions. If you
> really want to be able to track your call-stack then you'd be better off
> using a development environment like the Zend IDE and debugger.
> Alternatively you could request a function to the PHP developers mailing
> list that would return an array containing the current call-stack.
>
> You can register your own error handler and assert handler - these guys
> receive the calling LINE as a parameter.
>
> -----Original Message-----
> From: mmlynarcik
vodnik.charmed.sk
> [mailto:mmlynarcik
vodnik.charmed.sk]On Behalf Of Milan Mlynarcik
> Sent: 28 March 2001 14:43
> To: php-general
lists.php.net
> Subject: [PHP] Is there way how to get line number from which function
> was called ???
>
>
> Is there way how to get line number from which function was called ???
>
> Milan Mlynarcik
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Off topic but does anyone know how to detect if user/visitor has ActiveX OFF and if so then load a designated page.
I had a few complaints that they cannot view my menu (done in flash) so I want to display a simple version of my menu for people with ActiveX OFF.
Thanks
Ajdin
attached mail follows:
I think JavaScript can, / document.plugins property.... check it out.
"AJDIN BRANDIC" <abrandic
coventry.ac.uk> wrote in message
news:Pine.OSF.3.91.1010328135544.29822A-100000
leofric...
> Off topic but does anyone know how to detect if user/visitor has ActiveX
> OFF and if so then load a designated page.
>
> I had a few complaints that they cannot view my menu (done in flash) so
> I want to display a simple version of my menu for people with ActiveX OFF.
>
> Thanks
>
> Ajdin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Thanks Elias but have you got a url that I could look at. I have tried www.javascript.com and www.javascripts.com but could not find anything.
Ajdin
On Wed, 28 Mar 2001, elias wrote:
> I think JavaScript can, / document.plugins property.... check it out.
>
> "AJDIN BRANDIC" <abrandic
coventry.ac.uk> wrote in message
> news:Pine.OSF.3.91.1010328135544.29822A-100000
leofric...
> > Off topic but does anyone know how to detect if user/visitor has ActiveX
> > OFF and if so then load a designated page.
> >
> > I had a few complaints that they cannot view my menu (done in flash) so
> > I want to display a simple version of my menu for people with ActiveX OFF.
> >
> > Thanks
> >
> > Ajdin
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
http://www.asphyxia.com/PHP_BD/PHPClientSniffer.phps try it, that's all i got...
"AJDIN BRANDIC" <abrandic
coventry.ac.uk> wrote in message
news:Pine.OSF.3.91.1010328144458.29822C-100000
leofric...
> Thanks Elias but have you got a url that I could look at.
> I have tried www.javascript.com and www.javascripts.com but could not
> find anything.
>
> Ajdin
>
> On Wed, 28 Mar 2001, elias wrote:
>
> > I think JavaScript can, / document.plugins property.... check it out.
> >
> > "AJDIN BRANDIC" <abrandic
coventry.ac.uk> wrote in message
> > news:Pine.OSF.3.91.1010328135544.29822A-100000
leofric...
> > > Off topic but does anyone know how to detect if user/visitor has
ActiveX
> > > OFF and if so then load a designated page.
> > >
> > > I had a few complaints that they cannot view my menu (done in flash)
so
> > > I want to display a simple version of my menu for people with ActiveX
OFF.
> > >
> > > Thanks
> > >
> > > Ajdin
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > > For additional commands, e-mail: php-general-help
lists.php.net
> > > To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
The following code snippet was copied from http://javascript.internet.com/miscellaneous/check-mimes.html Looking at it, I guess that it only works with Netscape. Maybe for a less UA specific solution you could have a start page that contains a small flash movie that redirects the user to the flash enhanced version of your site. If they aren't redirected then they don't have a flash enabled UA: redirect them to a standard HTML version of your site.
Regards,
Simon. <!-- ONE STEP TO INSTALL CHECK MIMES:
1. Add the specified coding into the BODY of your HTML document -->
<!-- STEP TWO: Put this code into the BODY of your HTML document -->
<BODY>
<CENTER> <SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin document.writeln("<TABLE BORDER=1><TR VALIGN=TOP>", "<TH ALIGN=left>i", "<TH ALIGN=left>type", "<TH ALIGN=left>description", "<TH ALIGN=left>suffixes</TR>") for (i=0; i < navigator.mimeTypes.length; i++) { document.writeln("<TR VALIGN=TOP><TD>",i, "<TD>",navigator.mimeTypes[i].type, "<TD>",navigator.mimeTypes[i].description, "<TD>",navigator.mimeTypes[i].suffixes, "</TR>") } document.writeln("</TABLE>") // End --> </SCRIPT> </CENTER>
<p><center> <font face="arial, helvetica" size="-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p>
<!-- Script Size: 0.87 KB -->
> -----Original Message-----
> From: AJDIN BRANDIC [mailto:abrandic
coventry.ac.uk]
> Sent: Wednesday, March 28, 2001 14:46
> To: elias
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] Active-X
>
>
> Thanks Elias but have you got a url that I could look at.
> I have tried www.javascript.com and www.javascripts.com but could not
> find anything.
>
> Ajdin
... snip ...
attached mail follows:
allegedly this works,but i haven't tried it and can't remember where i got it but i used google,of course:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0 ,0" id=ebusiness width=191 height=174> <param name=movie value="movie.swf"> <param name=quality value=high> <param name=bgcolor value=#000000> <SCRIPT LANGUAGE="JavaScript"> <!--
file://If this browser understands the mimeTypes property and recognizes the MIME Type file://"application/futuresplash"... if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
file://...write out the following <EMBED> tag into the document. document.write('<embed src="movie.swf" quality=high bgcolor=#000000 width=191 height=174 type="application/x-shockwave-flash"></embed> '); }
file://Otherwise,... else {
file://...write out the following <IMG> tag into the document. The image need file://not be the same size as the Flash movie, but it may help you lay out the
document.write('<img src="images/log1.gif" width="50" height="50" alt="" border="0">'); } -->
</SCRIPT>
</object>
----- Original Message -----
From: Simon Ould <Simon
nortechcontrol.co.uk>
To: 'AJDIN BRANDIC' <abrandic
coventry.ac.uk>
Cc: <php-general
lists.php.net>
Sent: Wednesday, March 28, 2001 3:36 PM
Subject: RE: [PHP] Active-X
> The