|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 10 May 2000 15:55:02 -0000 Issue 1662
From: php3-digest-help
lists.php.netDate: Wed May 10 2000 - 10:55:02 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 11 May 2000 03:55:00 -0000 Issue 1663"
- Previous message: Sascha Schumann: "[ANNOUNCE] PHP 4.0RC2 released"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 10 May 2000 15:55:02 -0000 Issue 1662
Topics (messages 89672 through 89775):
Self submitting form
89672 by: php3
developersdesk.com
89681 by: "Andy" <andy
angelsolutions.co.uk>
89736 by: "Mark Roedel" <roedelm
letu.edu>
How do I get the current url?
89673 by: php3
developersdesk.com
I can't make work php with apache 1.3.12
89674 by: Ganbold <ganbold
gate.pmis.gov.mn>
Passing variables
89675 by: "Toshihide Tony Nakamura" <tony
uickarate.com>
89679 by: Michael Dearman <mdearman
inficad.com>
Load random record from MySQL database
89676 by: Michael Dearman <mdearman
inficad.com>
User downloads
89677 by: "Josh McDonald" <josh
isa.net.au>
89730 by: "Martin Edelius" <martin.edelius
spirex.se>
substitution trick needed
89678 by: "Arcady A. Novosyolov" <anov
ksc.krasn.ru>
89731 by: "Martin Edelius" <martin.edelius
spirex.se>
89740 by: "Mark Roedel" <roedelm
letu.edu>
89746 by: "Rossi Designs" <webmaster
rossidesigns.net>
Posting as an Attachment?!
89680 by: Michael Dearman <mdearman
inficad.com>
Records display !
89682 by: "TV Karthick Kumar" <tvkarthick
mailops.com>
89693 by: "TV Karthick Kumar" <tvkarthick
mailops.com>
Please help me !!
89683 by: Maxwell Hung <maxwell_hung
yahoo.com>
Zope with PHP
89684 by: "Heiko Weber" <heiko
vegan-welt.de>
89757 by: Dave Goodrich <daveg
rblc.com>
Passing game scores from Flash
89685 by: "SANIsoft" <tarique
nagpur.dot.net.in>
incrementing in arrays
89686 by: Andres Montiel <amontiel
vasia.com>
89689 by: Alfred Perlstein <bright
wintelcom.net>
89692 by: Andres Montiel <amontiel
vasia.com>
89695 by: Andres Montiel <amontiel
vasia.com>
89761 by: Chris Moyer <cmoyer
chekinc.com>
stored procedures
89687 by: William Jackson <wj
isolaandisola.com>
89698 by: "Andrew Smith" <lists
cadre.com.au>
Connect to MSSQL server from Linux
89688 by: Maarten Stolte <M.Stolte
Samhoud.nl>
89694 by: Markus Harma <Markus.Harma
abc.se>
get_browser function
89690 by: Stefan Ubbink <stefan
evident.nl>
Showing local date to user
89691 by: "PHPList" <art.harkin+php3list
netuser.com>
another oracle and php question
89696 by: josei
fade.es (CENTRO TECNOLOGICO DE CORVERA)
http authentication logout
89697 by: Auke van Slooten <auke
muze.nl>
NT Workstation Vs Server
89699 by: Matt Williams <mattwilliams
yewlands.sheffield.sch.uk>
89706 by: "NickM" <nick
regiocom.net>
89717 by: David Elliott <DavidE
cavendish.com>
89743 by: Vidyut Luther <vluther
gotslack.com>
ODBC discussion, was [PHP3] Connect to MSSQL server from Linux
89700 by: Maarten Stolte <M.Stolte
Samhoud.nl>
whats wrong with my script?
89701 by: Saurabh Gupta <error
zxmail.com>
reading & writing to a file
89702 by: david.tansley
acelondon.co.uk
89714 by: "Martin Edelius" <martin.edelius
spirex.se>
PHP Based Search Engine
89703 by: Saurabh Gupta <error
zxmail.com>
mail confirmation
89704 by: Stefano Brozzi <sbrozzi
bci.it>
XML/mySQL - speed and load
89705 by: Saurabh Gupta <error
zxmail.com>
89709 by: "Shriram Chaubal" <shriram
chaubal.org>
Polling etc
89707 by: "Andy" <andy
angelsolutions.co.uk>
Big Challenge
89708 by: "SANIsoft" <tarique
nagpur.dot.net.in>
Checkbox
89710 by: "Andy" <andy
angelsolutions.co.uk>
89712 by: "Sander Pilon" <sander
3dnews.net>
89715 by: "Dyas, Alex" <alex.dyas
wcom.co.uk>
89720 by: "Reed, Dana" <Dana.Reed
clinicaldatacare.com>
89722 by: "Fredrik Hellström" <fredrik
websidorna.com>
89728 by: "Reed, Dana" <Dana.Reed
clinicaldatacare.com>
Newbie question
89711 by: "Eugene V. Goldberg" <egold
mts-nn.ru>
89737 by: Colin McKinnon <colin
wew.co.uk>
89756 by: Randy Robinson <randyr
minutemanups.com>
89770 by: "Paul Fotheringham" <p.fotheringham
cmcsm.ac.uk>
Cookies not aligned ?
89713 by: Gianmarco Giovannelli <gmarco
scotty.masternet.it>
89719 by: "Martin Edelius" <martin.edelius
spirex.se>
89725 by: "Pizdyk Haval Poganki , i podavilsia" <php
artcenter.ac>
automatic create .php3 scripts
89716 by: Vadim Grepan <kezal
mail.ru>
89751 by: max batty <bubephp
yahoo.es>
looping problem
89718 by: Reiner Peterke <aardvark
mpipks-dresden.mpg.de>
89721 by: Reiner n Peterke <zedaardv
halcyon.com>
89724 by: "Martin Edelius" <martin.edelius
spirex.se>
89741 by: Reiner Peterke <aardvark
mpipks-dresden.mpg.de>
PHP site down?
89723 by: Bob Lutz <php3
lutz-engr.com>
89734 by: The Hermit Hacker <scrappy
hub.org>
89739 by: Mark Musone <musone
choiceoneonline.com>
89750 by: Nick Davies <nickd
sportinglife.com>
flush() and IE
89726 by: "Pizdyk Haval Poganki , i podavilsia" <php
artcenter.ac>
89727 by: "Pizdyk Haval Poganki , i podavilsia" <php
artcenter.ac>
php and ssh ?
89729 by: "Mike Alexander Sauvain" <msauvain
EDV-Support.ch>
89769 by: "Jason Cox" <jasonc
webpipe.net>
89773 by: Matt McClanahan <cardinal
dodds.net>
-[ TWICE ]-
89732 by: "Kaspars" <house
mt.lv>
Can I download the whole annotated docs from php.net...
89733 by: "Lukasz Felsztukier" <L.Felsztukier
digitalone.pl>
Email notification on db update!!
89735 by: "Thomas Edison Jr." <thomasedisonjr
yahoo.com>
89755 by: "Andrew Pearce" <Andrew
lanware.co.uk>
89768 by: "burk" <burk
pobox.com>
Commercial Oracle/PHP host?
89738 by: kev <kevin.porter
fast.no>
Is there a win32 binary for PostgreSQL?
89742 by: "Brendan Ellis" <brendan
deepspacenine.freeserve.co.uk>
89762 by: Cynic <cynic
mail.cz>
FW: [PHP3] Checkbox
89744 by: Jeroen Wesbeek <duh
Samhoud.NL>
How to forbid php excecution in a directory?
89745 by: "Fredrik Hellström" <fredrik
websidorna.com>
89766 by: "George Papadakis" <georgep
phaistosnetworks.gr>
89767 by: "Jason Cox" <jasonc
webpipe.net>
Uploading images in a database
89747 by: Hilbert Mostert <hilbert.mostert
siteways.nl>
Socket Trauma
89748 by: "Matt Overall" <matt
isitgone.com>
Which web server for PHP
89749 by: Joseph Kehoe <jkehoe
raven-inter.net>
mysql + php4 install
89752 by: Mika Tuupola <tuupola
appelsiini.net>
ISAPI and IIS 5.0
89753 by: Anders Gaarsdal Holst <anders
colorweb.dk>
Javascript list
89754 by: "Fredrik Hellström" <fredrik
websidorna.com>
Perl vs PHP (PostgreSQL vs MySQL, KDE versus GNOME)
89758 by: <moebius
ip-solutions.net>
php and oracle
89759 by: Oliver Artelt <oli
kunswork.de>
Shopping Cart?
89760 by: Chad Day <chad
beachassociates.com>
Problem adding PHP4 as CGI with existing PHP3 module install on Redhat 5.2 Apache 1.3.12
89763 by: "Steven Werby" <steven-lists
befriend.com>
MySQL and PHP walkthrough
89764 by: "James McLaughlin" <katana
montrose.net>
PHP with Oracle8
89765 by: jfleost
k2.fr
Identifying PDF files
89771 by: bill <bill
billtron.com>
R: [PHP3] printing mysql blob field in html
89772 by: <artwells
inetarena.com>
Compilation Error w/RC2, Apache 1.3.12, and GD 1.8.1
89774 by: "Jason" <jasonc
webpipe.net>
To answer my own query re libfdftk.so ...
89775 by: Scott Holmes <sholmes
pacificnet.net>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Addressed to: "Bjorn Sodergren" <sweede
gallatinriver.net>
"PHP3 Mailing List" <php3
lists.php.net>
** Reply to note from "Bjorn Sodergren" <sweede
gallatinriver.net> Tue, 9 May 2000 20:31:42 -0500
>
> duh.. heh, i cant beleive i missed that. like Rossi designs had.
>
> <tr> <td width="20%" valign = "top" ><strong>Description</strong></td>
> <td width="80%" colspan="2"><textarea rows="6" name="Description"
> cols="60"><?php echo $Description; ?></textarea></td> </tr>
>
>
> But you still need a ; in <?php echo $Description ?>
>
What version of php are you using?
I am using 3.0.12 and 4.0RC1, in both the semicolon before ?> is
optional.
From the php manual:
php4-manual/language.basic-syntax.instruction-separation.html
================================================
Instruction separation
Instructions are separated the same as in C or perl - terminate each
statement with a semicolon.
The closing tag (?>) also implies the end of the statement, so the
following are equivalent:
<?php
echo "This is a test";
?>
<?php echo "This is a test" ?>
================================================
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com
attached mail follows:
This still doesn't work!!
The point is - all the other fields DON'T have a ; in this line and they all
work fine!!
The only one that doesn't store the values is when it is a text AREA and not
a text box!
Any other ideas??
THANKS
Andy
-----Original Message-----
From: Bjorn Sodergren [mailto:sweede
gallatinriver.net]
Sent: 10 May 2000 02:32
To: Bjorn Sodergren; Andy; PHP3 Mailing List
Subject: RE: [PHP3] Self submitting form
duh.. heh, i cant beleive i missed that. like Rossi designs had.
<tr>
<td width="20%" valign = "top" ><strong>Description</strong></td>
<td width="80%" colspan="2"><textarea rows="6" name="Description"
cols="60"><?php echo $Description; ?></textarea></td>
</tr>
But you still need a ; in <?php echo $Description ?>
attached mail follows:
> -----Original Message-----
> From: Andy [mailto:andy
angelsolutions.co.uk]
> Sent: Tuesday, May 09, 2000 3:25 AM
> To: PHP3 Mailing List
> Subject: [PHP3] Self submitting form
>
>
> Does anyone know why the following code in a self submitting form does NOT
> remember the value when the user clicks Submit - all other text
> boxes on my
> form work fine - is it something to do with being a text area???
>
> <tr>
> <td width="20%" valign = "top" ><strong>Description</strong></td>
> <td width="80%" colspan="2"><textarea rows="6" name="Description" value =
> "<?php echo $Description ?>" cols="60"></textarea></td>
> </tr>
Try
<textarea rows="6" cols="60" name="Description">
<?php echo $Description; ?>
</textarea>
--- Mark Roedel (roedelmletu.edu) || "If life gives you llamas, Systems Programmer / WebMaster || make llamanade!" LeTourneau University || -- Dave Appleby
attached mail follows:
Addressed to: "Murray Shields" <murray
mu.com.au>
php3
lists.php.net
** Reply to note from "Murray Shields" <murray
mu.com.au> Wed, 10 May 2000 13:06:00 +1000
>
> I have a web page with a url as follows:
> http://192.168.112.5/dev/diary/calendar.php3?CalDate=10-05-2000&View=Da
> y (don't bother trying to connect to it - it is inaccessible).
>
> I need to get the entire HREF in a variable.
>
> If I use $PHP_SELF I get: /dev/diary/calendar.php3 This is not enough
> because I need the variables and values that are on the end.
>
> $HTTP_REFERER gives the full value though:
> http://192.168.112.5/dev/diary/calendar.php3?CalDate=17-05-2000&View=Da
> y But this, of course, is for the previous URL, which is not what I am
> after.
>
> So how do I get the entire current url?
>
Try adding a call to phpinfo() in your program. This will include a list of every variable that is currently available to you from the web server. You should be able to find something in there that will work.
Rick Widmer Internet Marketing Specialists www.developersdesk.com
attached mail follows:
I tried to make work php with apache.
I have php-3.0.16.tar.gz and Apache-1.3.12-2.i386.rpm( devel and manual packages also I have). I'm using RedHat Linux 6.2. I compiled php in following way: ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-xml --with-ldap make make install
I enabled httpd.conf all necessary loadmodules and addmodules.
But when I tried to start httpd, it seems starts but when I see status it says "httpd is dead but subsys locked"
What should I do in this case? Also HTTPD complains in where mod_php and mod_perl are loading and adding.
thanks in advance,
Ganbold system engineer
attached mail follows:
Hello People,
Is there any other way to pass a variable from one file to another without using form or attachment to url? For example, I have a variable $array in file1.php3, which is an array, and I want to pass it to the next file called file2.php3.
How would I do this?
Thanks in advance,
Tony
attached mail follows:
Toshihide Tony Nakamura wrote: > > Hello People, > > Is there any other way to pass a variable from one file to another > without using form or attachment to url? For example, I have a > variable $array in file1.php3, which is an array, and I want to pass it to > the > next file called file2.php3. > > How would I do this? >
One way, sit to make an include file, like common.inc, the extension can be anything, and put most anything that your other files can use in it. Check out your php3.ini file for and include path, adjust to your liking. Then use 'include' or 'require'
<? include ("common.inc"); .....
in your other files to share the content of your 'common.inc' file.
M. Dearman / Fellow Novice.
attached mail follows:
Fates wrote: > > Part 1.1 Type: Plain Text (text/plain) > Encoding: quoted-printable
I get the willies having to open an attachment just to read mail. I image others just don't.
But, take a look at the v3.23. It has a RAND().
From cyclops ORDER BY RAND() LIMIT 1
not in previous versions.
M. Dearman
attached mail follows:
Hi, I'm trying to get user downloads happening through a file..save as dialog using a url similar to getfile.php?file_id=foo, but I can't find the header commands to use. I've searched the mailing list only to find people with the same problem, but not answers. Can anybody lend a hand with this?
Cheers, -Josh
Internet Solutions Australia Pty Ltd ACN 086 692 211
attached mail follows:
Well, the easiest way is to do whatever you need to do with databases and stuff and then just send a header pointing to the original file.
If the user was trying to DL http://thisis.myserver.com/files/myfile.zip and you redirected it with dl.php3?file=http://thisis.myserver.com/files/myfile.zip you just send off a header like:
header("Location: http://thisis.myserver.com/files/myfile.zip");
and the net result should be as if the user clicked on an actual link to the file. You can't use 'Save link as...' tricks from the browser this way though as the PHP script will end up being saved (I think).
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: "Josh McDonald" <josh
isa.net.au>
To: <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 8:21 AM
Subject: [PHP3] User downloads
Hi, I'm trying to get user downloads happening through a file..save as dialog using a url similar to getfile.php?file_id=foo, but I can't find the header commands to use. I've searched the mailing list only to find people with the same problem, but not answers. Can anybody lend a hand with this?
Cheers, -Josh
Internet Solutions Australia Pty Ltd ACN 086 692 211
attached mail follows:
Hi, all:
I need to solve the following problem. The code receives from a form (or other source) values to compare and comparing relation as strings, say
$a = "0"; $b = "1"; $rel = "<=";
Following execution should be branched according to comparison (0 <= 1 with this input). The naive way to implement this is:
if ($rel == "<=") { if ((int)$a <= (int)$b) { // true branch } else { // false branch } }else if ($rel == "==") { if ((int)$a == (int)$b) { //........ } //............. } // ...........
and so on. Older interpreting languages like FoxBASE permitted the following trick with variable variables: construct
$co = $a.$rel.$b;
and calculate
if ($$co) { //............
Interpreter would substitute the value of $co BEFORE execution, so the approrpiate line
if (0<=1) { //....
would be executed. However this does not work in PHP3, probably because substitution leads to
if ("0<=1") { //...
which is obviously false. I wonder if there exists a similar substitution trick in PHP3 that would properly work.
Thanks in advance.
Arcady.
attached mail follows:
Try eval() http://www.zend.com/manual/function.eval.php
You could probably eval() the result of your concatenation in the if() statement and get the results your looking for. I think, I haven't tried it myself.
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: "Arcady A. Novosyolov" <anov
ksc.krasn.ru>
To: "PHP3 List" <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 9:33 AM
Subject: [PHP3] substitution trick needed
> Hi, all:
>
> I need to solve the following problem. The code receives
> from a form (or other source) values to compare and comparing
> relation as strings, say
>
> $a = "0";
> $b = "1";
> $rel = "<=";
>
> Following execution should be branched according to
> comparison (0 <= 1 with this input). The naive way to
> implement this is:
>
> if ($rel == "<=")
> {
> if ((int)$a <= (int)$b) {
> // true branch
> } else {
> // false branch
> }
> }else if ($rel == "==") {
> if ((int)$a == (int)$b) { //........
> } //.............
> } // ...........
>
> and so on. Older interpreting languages like FoxBASE permitted
> the following trick with variable variables: construct
>
> $co = $a.$rel.$b;
>
> and calculate
>
> if ($$co) { //............
>
> Interpreter would substitute the value of $co BEFORE execution,
> so the approrpiate line
>
> if (0<=1) { //....
>
> would be executed. However this does not work in PHP3, probably
> because substitution leads to
>
> if ("0<=1") { //...
>
> which is obviously false. I wonder if there exists a similar substitution
> trick in PHP3 that would properly work.
>
> Thanks in advance.
>
> Arcady.
>
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
> -----Original Message-----
> From: Arcady A. Novosyolov [mailto:anov
ksc.krasn.ru]
> Sent: Wednesday, May 10, 2000 2:33 AM
> To: PHP3 List
> Subject: [PHP3] substitution trick needed
>
>
> I need to solve the following problem. The code receives
> from a form (or other source) values to compare and comparing
> relation as strings, say
>
> $a = "0";
> $b = "1";
> $rel = "<=";
>
> Following execution should be branched according to
> comparison (0 <= 1 with this input).
One approach might be to build your comparison string into a statement that could be passed into eval() - http://www.php.net/manual/function.eval.php3
Perhaps something like (untested)
<?php $string = "if $a $rel $b then \$resultistrue = 1 else \$resultistrue = 0"; eval($string); if ($resultistrue) { // true branch } else { // false branch } ?>
--- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell
attached mail follows:
This might work
$co = intval($a) . $rel . intval($b);
but I haven't tested it.
But eval() is probably the way to go
Rossi Designs
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://rossidesigns.net
----- Original Message -----
From: Arcady A. Novosyolov <anov
ksc.krasn.ru>
To: PHP3 List <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 3:33 AM
Subject: [PHP3] substitution trick needed
| Hi, all:
|
| I need to solve the following problem. The code receives
| from a form (or other source) values to compare and comparing
| relation as strings, say
|
| $a = "0";
| $b = "1";
| $rel = "<=";
|
| Following execution should be branched according to
| comparison (0 <= 1 with this input). The naive way to
| implement this is:
|
| if ($rel == "<=")
| {
| if ((int)$a <= (int)$b) {
| // true branch
| } else {
| // false branch
| }
| }else if ($rel == "==") {
| if ((int)$a == (int)$b) { //........
| } //.............
| } // ...........
|
| and so on. Older interpreting languages like FoxBASE permitted
| the following trick with variable variables: construct
|
| $co = $a.$rel.$b;
|
| and calculate
|
| if ($$co) { //............
|
| Interpreter would substitute the value of $co BEFORE execution,
| so the approrpiate line
|
| if (0<=1) { //....
|
| would be executed. However this does not work in PHP3, probably
| because substitution leads to
|
| if ("0<=1") { //...
|
| which is obviously false. I wonder if there exists a similar substitution
| trick in PHP3 that would properly work.
|
| Thanks in advance.
|
| Arcady.
|
|
|
|
| --
| PHP 3 Mailing List <http://www.php.net/>
| To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
| To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
| To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
| To contact the list administrators, e-mail: php-list-admin
lists.php.net
|
|
attached mail follows:
Posting with your main body as an attachment, is this considered acceptable or bad form.
Sorry for the semi-OT. .
*bow*
M. Dearman
attached mail follows:
Hi List
This is a small code through which I am displaying all the records with appriopriate links to it's id so that the user can also browse the previous records (this program is for Polling). The following is the code which I have written for displaying all the records.
<? $ar=mysql_fetch_array($result);
while ($ar) { $RecordCount++;} $ar=mysql_fetch_array($result);
if ($RecordCount==0) { echo "There are no Records"; } else { echo "<tr><td>"; $qs=mysql_result($result,0,'question'); ?> <a href='uvote.php3?se=<? echo mysql_result($result,'id') ?>'><? echo $qs ?></a> <? echo "</td><td>"; echo mysql_result($result,'post_dt'); echo "</td></tr>"; } echo "</table>"; } ?>
-- But when executing this, I am going into a infinite loop once again. What's the problem here ?. Please help.
Thanks in advance.
Regards,
TV Karthick Kumar
Reply to: tvkarthick
mailops.com
attached mail follows:
> Shouldn't it be > > while ($ar = mysql_fetch_array($blah) { > > } > > I'm assuming you've got a valid query result in blah.
K: Yeah. I have valid query result in blah (from what you have written here). But what difference it makes anyway. Before the while loop itself, I have assigned $ar like this: $ar=mysql_fetch_array($blah) and then how do your while loop makes difference. I don't understand your way of writing / concept at all.
> I also do not know why you're fetching individual cells using mysql_fetch. > Strange code :)
K: Yeah. I also wonder about it. But again I can't fetch the row with mysql_fetch_row and it doesn't works well with mysql as it's working with odbc (ms access). Then what do I do here ?. There's no way for me except fetching the individual cells using mysql_fetch.
Have anything else to say here ???.
-- K
>
>
> Hi List
>
> This is a small code through which I am displaying all the records
with
> appriopriate links to it's id so that the user can also browse the
previous
> records (this program is for Polling). The following is the code which I
> have written for displaying all the records.
>
> <?
> $ar=mysql_fetch_array($result);
>
> while ($ar) {
> $RecordCount++;}
> $ar=mysql_fetch_array($result);
>
> if ($RecordCount==0)
> {
> echo "There are no Records";
> }
> else
> {
> echo "<tr><td>";
> $qs=mysql_result($result,0,'question');
> ?>
> <a href='uvote.php3?se=<? echo mysql_result($result,'id') ?>'><? echo $qs
> ?></a>
> <?
> echo "</td><td>";
> echo mysql_result($result,'post_dt');
> echo "</td></tr>";
> }
> echo "</table>";
> }
> ?>
>
> -- But when executing this, I am going into a infinite loop once
again.
> What's the problem here ?. Please help.
>
> Thanks in advance.
>
> Regards,
> TV Karthick Kumar
> Reply to: tvkarthick
mailops.com
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
$var1 hasn't been assigned anything so there will be nothing for it to pass similarly $var will not be passed to file2, so that won't print either.
--- sufi malak <sufi_m
hotmail.com> wrote: >
file1.php3 :
> <?php
> $var = 23;
> do somthing with $var1
> <? printf((' <a
> href="http://.../file2.php3?var1=$var1"></a>') ?>
> .....
> <?
>
> In file2.php3 :
> <?php
> echo "$var"; BUT FROM OVER HERE $var1 DOES NOT HAVE
> A VALUE ????
> .....
> <?
> Please how can I keep the value of var1 when calling
> another file like
> the above example.
> Thanks.
>
>
________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
__________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
attached mail follows:
Hello,
does anyone have experience with using PHP together with the Zope (http://www.zope.org) Web-Application-Server? Is there anything special to be considered when configuring Zope for PHP?
thanks Heiko
attached mail follows:
on 5/10/00 12:47 AM, Heiko Weber at heiko
vegan-welt.de wrote:
> > Hello, > > does anyone have experience with using PHP together with > the Zope ( http://www.zope.org <http://www.zope.org> ) > Web-Application-Server? Is > there anything special to be considered when configuring > Zope for PHP? > > thanks > Heiko >
I'm not sure why you would, but you would need to run Zope behind apache to pull it off. Zope's internal server is Medusa based which doesn't run php, except maybe as a cgi and the Zope/Medusa code is modified from the original Medusa code.
DAve.
attached mail follows:
Hello
All you who have requested the code for passing scores from Flash to PHP
I have sent the files to Richard Lynch who will soon put it up
zend.com
Tarique
===================================== B2B Application Service Providers http://www.sanisoft.com
The Vortal for Nagpur http://nagpurcity.net =====================================
attached mail follows:
I have an array like the following:
$j = 1; while ($j++ < 10) { if ( $Ret$j[$ct] == "") { $Ret$j[$ct] = "N"; } else { $Ret$j[$ct] = $Ret$j[$ct]; } }
There are a total of 9 Rets (Ret1 to Ret9). I tried the above code and received a parse error on the line with if ( $Ret$j[$ct] == ""). $ct is an external incrementing variable too.
Could someone help me regarding this incrimenting problem
attached mail follows:
* Andres Montiel <amontiel
vasia.com> [000510 01:33] wrote:
> I have an array like the following:
>
> $j = 1;
> while ($j++ < 10) {
> if ( $Ret$j[$ct] == "") {
> $Ret$j[$ct] = "N";
> }
> else {
> $Ret$j[$ct] = $Ret$j[$ct];
> }
> }
try: ${"Ret$j"}[$ct]
-Alfred
-- -Alfred Perlstein - [brightwintelcom.net|alfred
freebsd.org] "I have the heart of a child; I keep it in a jar on my desk."
attached mail follows:
An error still occured.
At 01:44 AM 5/10/00 -0700, you wrote:
>* Andres Montiel <amontiel
vasia.com> [000510 01:33] wrote:
> > I have an array like the following:
> >
> > $j = 1;
> > while ($j++ < 10) {
> > if ( $Ret$j[$ct] == "") {
> > $Ret$j[$ct] = "N";
> > }
> > else {
> > $Ret$j[$ct] = $Ret$j[$ct];
> > }
> > }
>
>try:
> ${"Ret$j"}[$ct]
>
>-Alfred
>
>--
>-Alfred Perlstein - [bright
wintelcom.net|alfred
freebsd.org]
>"I have the heart of a child; I keep it in a jar on my desk."
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Ooops, my mistake, it does work (I think)
Thanks!
At 01:44 AM 5/10/00 -0700, you wrote:
>* Andres Montiel <amontiel
vasia.com> [000510 01:33] wrote:
> > I have an array like the following:
> >
> > $j = 1;
> > while ($j++ < 10) {
> > if ( $Ret$j[$ct] == "") {
> > $Ret$j[$ct] = "N";
> > }
> > else {
> > $Ret$j[$ct] = $Ret$j[$ct];
> > }
> > }
>
>try:
> ${"Ret$j"}[$ct]
>
>-Alfred
>
>--
>-Alfred Perlstein - [bright
wintelcom.net|alfred
freebsd.org]
>"I have the heart of a child; I keep it in a jar on my desk."
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
On Wed, 10 May 2000, Andres Montiel wrote:
> I have an array like the following: > > $j = 1; > while ($j++ < 10) { > if ( $Ret$j[$ct] == "") { > $Ret$j[$ct] = "N"; > } > else { > $Ret$j[$ct] = $Ret$j[$ct]; > } > } > > There are a total of 9 Rets (Ret1 to Ret9). I tried the above code and > received a parse error on the line with if ( $Ret$j[$ct] == ""). $ct is an > external incrementing variable too. >
You need to use {}'s arround the name of your variable variables... ex. $Ret{$j}[$ct]
To prevent it from confusing it with $Ret{$j[$ct]}
Also, it seems to me, that on the version of PHP I Normally work with, you need to have the variable part of the variable name at the beginning of the variable, like ${$j}Ret, or do a $varname= "Ret".$j; ${$varname}[$ct]
Chris Moyer -- cmoyer
chekinc.com
attached mail follows:
can someone please tell me how to call a stored procedure from odbc under php
?
what about return values ?
I know its something like:
$SQL = "{ Call StoredProcedure(?,?) }";
$res = odbc_prepare($conn,$SQL);
//create an array of data //missing
odbc_execute($res,&$array);
but not exactly sure of the syntax for the Call bit
cheers
William Jackson CCNA,MCSE Network Administrator Isola & Isola
Email: wj
isolaandisola.com
CONFIDENTIALITY NOTICE This E-mail and/or the documents accompanying are privileged and contain confidential information. If the recipient is not the addressee or the employee or agent of the addressee any unauthorised use, disclosure, copying, distribution or dissemination is strictly prohibited and in any such event please immediately notify us by telephone on 76651 and return this E-mail and destroy any copies.
attached mail follows:
Hi William, The call can be done like this.
odbc_do($connID, "{call my_sp($a, $b, 'foo')}")
You can't get return values and it only seems to cope if one result set is returned.
Andrew
> -----Original Message-----
> From: William Jackson [mailto:wj
isolaandisola.com]
> Sent: Wednesday, May 10, 2000 5:55 PM
> To: 'php3
lists.php.net'
> Subject: [PHP3] stored procedures
>
>
> can someone please tell me how to call a stored procedure from odbc under
> php
>
> ?
>
> what about return values ?
>
> I know its something like:
>
> $SQL = "{ Call StoredProcedure(?,?) }";
>
> $res = odbc_prepare($conn,$SQL);
>
> //create an array of data
> //missing
>
> odbc_execute($res,&$array);
>
> but not exactly sure of the syntax for the Call bit
>
> cheers
>
> William Jackson CCNA,MCSE
> Network Administrator
> Isola & Isola
>
> Email: wj
isolaandisola.com
>
> CONFIDENTIALITY NOTICE
> This E-mail and/or the documents accompanying are privileged and contain
> confidential information. If the recipient is not the addressee or the
> employee or agent of the addressee any unauthorised use, disclosure,
> copying, distribution or dissemination is strictly prohibited and in any
> such event please immediately notify us by telephone on 76651 and return
> this
> E-mail and destroy any copies.
>
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi,
I use ODBC ODBC bridge from Easysoft (www.easysoft.com), which works great. Another solution is www.openlink.com. Haven't used it with PHP4, but afaik it shouldn't be a problem
Maarten
-----Original Message-----
From: Andrian Pervazov [mailto:andrian
truefire.com]
Sent: Tuesday, May 09, 2000 8:46 PM
To: php3
lists.php.net
Subject: [PHP3] Connect to MSSQL server from Linux
What is the best way to connect to a MSSQL server (6.5 and 7) from a Linux machine running PHP4RC1? Through the Sybase drivers, FreeTDS or using ODBC (or perhaps some other solution)?
Andrian
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> What is the best way to connect to a MSSQL server (6.5 and 7) from a > Linux machine running PHP4RC1? Through the Sybase drivers, FreeTDS or > using ODBC (or perhaps some other solution)?
I believe the Sybase drivers are usable only if you use MSSQL Server 6.5.
I have not been able to get FreeTDS running correctly either. A SELECT query will work just fine. Any other query, like DELETE, UPDATE or even INSERT will cause the PHP script to die and return nothing to the client (the database is updated though).
Tried with both PHP3.XX and PHP4-XX...
(please mail me if you decide to use FreeTDS and are more successfull ;))
btw, never tried ODBC as I grew sick and tired of MSSQL ;)
/markus
attached mail follows:
On Tue, 9 May 2000, Bug Hunter wrote: > I have noticed the get_browser function under php 3, version 3.0.15 does >not work for me under RedHat Linux 6.1, using Apache 1.3.9 (updated to >fix the modules problem). I've downloaded a browscap.ini file and pointed >php3.ini to it. phpinfo() shows it to be searching for browscap.ini in >the correct path. I have compiled in MySQL, and that works properly.
MySQL has nothing to do with the browscap.ini .
With which browser do you look if it works and which OS? because I don't get anything to see if I look with Netscape 4.61 under Linux, but if I look with IE or NS under Win98, then I get a lot of information.
> > Has anyone out there gotten it to work? No error messages show up in >/var/log/messages, /var/log/httpd/error_log, or /var/log/httpd/access_log. > >thanks! >bug >
Stefan
-- 10:05am up 13 days, 20 hrs, 7 users, load average: 0.42, 0.37, 0.24 on IRIX64 antarctica 6.5 01221553 IP27
attached mail follows:
If I know the timezone for a user (i.e. its in their account profile), is there a somewhat elegant way with PHP of showing dates stored in mySQL database that are store in a different timezone (e.g. EST).
It would be real nice to have a gmdate equivalent where you can specifiy a timezone other than GMT. Currently I use a combination of mktime and date, where I subtract/add in the delta of the user's timezone and the timezone of where the system/database is kept.
Are there PHP scripts out there that could take a timezone name such as 'PST' and adjust a timestamp to that timezone, and even handle daylight savings time?
thanks in advance,
-Art
attached mail follows:
First you need TNS_ADMIM var in your .profile .bash_profile to your tnsnames.ora,listener.ora path.
Second. you must stop apache server and start again
*******************************************
* CENTRO TECNOLÓGICO DE CORVERA *
* C/Estebanina 20, Bajo *
* 33406 - Las Vegas (Corvera de Asturias) *
* Telfno: (98) 551 40 53 *
* emails: *
* ctc
fade.es *
* josei
fade.es *
* aliciai
fade.es *
* http://www.fade.es/ctc *
*******************************************
¡A mi no me ocurrió nada con ILOVEYOU! ¿Porqué?.............................. Podría ser por que utilizo LINUX??????
On Tue, 9 May 2000, Michael McConnell wrote:
> I've seen quite a few messages redarding Oracle and PHP but none have
> really helped me. I'm still getting errors when trying to connect. My
> little test programs is as follows:
>
> <? $conn1 = ocilogon("system", "manager"); ?>
>
> When I execute this (using apache 1.3.12, PHP 4.0RC1 or PHP 3.0.15 and
> Oracle 8i 8.0.15) ORA-12546 or
> "Warning: _oci_open_server: Error while trying to retrieve text for
> error ORA -12546 in /www/htdocs/phptest.php on line 9
> when the program is like
> <? $conn1 = orcilogon("system", "manager", "v81815") ?>
> I get error ORA-12154
>
> Can anyone help me out, the databases name is vsdb1, the listener is
> running with v81815 as the db the database is started. I've tried
> differenet users
> Ora-12546 seems to be a permisson error, so I added a user called
> gateway, and still didn't get any better results
>
> any help, input thoughts would be much appreciate
>
> System Info
> RedHat 6.1 Updated
> Oracle 8.0.15 with the 2 patches
> Php 4.0RC1 (currently)
>
> Thanks so much,
>
> Michael McConnell
>
> --
> Michael McConnell
>
> Senior Network Engineer
> Vocal Scape Communications
> www.vocalscape.com
>
> Office (604)-437-8647 x 1
> Fax (604)-437-8646
> Cell (604)-290-8126
> michael
vocalscape.com
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
On Wed, 10 May 2000, Richard Lynch wrote:
> In article <3916B104.771E639A
ec.gc.ca>, bernie.huang
ec.gc.ca (Bernie
> Huang) wrote:
>
> > I am a newbie to PHP, and I'm just wondering if there's a way to logout
> > from http authentication. I tried unset($PHP_AUTH_USER), but it didn't
> > work.
>
> $PHP_AUTH_USER is set by the browser as part of the HTTP request.
> Unsetting it in PHP is pointless, since the browser is going to resend it
> on the next request.
>
> HTTP has no concept of "logout".
>
> You could try changing the realm out from under a user and/or sending a
> 401, but making that happen at just the right time and maintaining the
> state (a whole stack of old "used" realms) is apparently so tricky that
> nobody has ever posted sample code that I can recall...
>
> The only real solution is to tell users to quit their browser to logout.
>
> > Also, what's the difference b/t $REMOTE_USER/$REMOTE_PASSWORD and
> > $PHP_AUTH_USER/$PHP_AUTH_PW??
>
> Quite possbily none...
>
> Use <?php phpinfo();?> on a protected page and see what values are in them...
>
Well, actually, it is doable, and I've posted some code to do just that. You see, you don't have to keep track of all used domains, you don't even have to 'know' when to change the realm. All you need to know is when the users is 'logging off'. If the user does a logoff request, set a status bit in that users field that says 'logging off' or something. At the next hit from that user to a 'protected' page, the browser will send that users id and password, the authentication subroutine checks the user data and finds the status bit set to 'logging off'. It then sets the status bit back to normal, and sends a access denied header (404 if I recall correctly) with a realm including a _timestamp_. As this header is only send when the user either hasn't logged on before, or when he/she has explicitly logged off, it doesn't matter that the realm is different each time. But because the realm is different, no browser I know of 'remembers' the users password and id. There is a problem with this approach though. If you logoff from the system and then close the browser, your next login will be denied once. This is because the algorithm expects one automatic/invisible login from the browser, but once that browser is started fresh, it has no data to do that. So the first 'access denied' will be because the user hasn't entered his/her id and password, the second will be because the logoff status bit was still set, only the third will succeed. This means that the user will have to fill in the id and password twice. Oh well, nothing is perfect. I've put some code that does this on http://px.sklar.com/code.html?code_id=297
regards, Auke van Slooten http://www.muze.nl/
attached mail follows:
I have just convinced my employer that PHP is the way forward. I am now in the proccess of spec'ing a development machine. There will be a few of us working on the project and it looks like this will be on NT.
Does anyone know if IIS 4 will install and run on NT workstation? I have a dev machine at home with NT server but I can't see my employer splashing out on NT server just to "mess around on" :-)
I've played with PWS but it just isn't up to it (file uploads etc...)
Or does anyone have any suggestions about how I could go about this. I am playing with Linux at the moment but having no success and I don't really know much about setting it up to run on our network.
Thanks in advance for any advice
M
attached mail follows:
> I have just convinced my employer that PHP is the way forward. > I am now in the proccess of spec'ing a development machine. > There will be a few of us working on the project and it looks like this will > be on NT.
It would be much nicer on Linux, at least for the server. It runs much faster and is more customisable.
> Does anyone know if IIS 4 will install and run on NT workstation? I have a dev > machine at home with NT server but I can't see my employer splashing out on NT > server just to "mess around on" :-)
Yes but it is a cut down version, a lot less you can do with it. Don't know if PHP can be set up on both or not though. Why IIS though, not much reason to using this if you are no longer using ASP pages, why not use Apache.
> I've played with PWS but it just isn't up to it (file uploads etc...)
Well on Workstation IIS is about the same as this.
> Or does anyone have any suggestions about how I could go about this. I am > playing with Linux at the moment but having no success and I don't really know > much about setting it up to run on our network.
If you can this would be the best thing you could all do. It would be massively faster and you would learn it soon enough. Start with something like redhat. Also XEmacs is a good programming editor but will take some learning.
Nick
attached mail follows:
Hi NickM,
On 10 May 2000 at 11:56:33 GMT +0200 (which was about 10:56 where I
live) NickM <nick
regiocom.net> wrote about "[PHP3] NT Workstation Vs
Server" and made these points:
For production I use a Linux.
For development I use a I have a lap top Windows NT Server running both IIS and Apache with PHP on both and Interbase or M$SQL.
Due to some of my customers I have to run IIS for ASP.
N> Yes but it is a cut down version, a lot less you can do with it. N> Don't know if PHP can be set up on both or not though. Why IIS N> though, not much reason to using this if you are no longer using ASP N> pages, why not use Apache.
N> Well on Workstation IIS is about the same as this.
If you feel that the workstation version of IIS is not enough I believe that there some registry setting that will convert it to a Winddoze NT workstation into a server.
>> Or does anyone have any suggestions about how I could go about this. I am >> playing with Linux at the moment but having no success and I don't really know >> much about setting it up to run on our network.
-- Regards, Daviddavide
cavendish.com
-------------------------------------- please give me all the tag lines I don't have. Tag Line No 95268 CAUTION: The mass of this product is 85 megatons energy equivalent. --------------------------------------
attached mail follows:
best way to find out if IIS will work on NT Workstation is to try and install Option pack 4 or whatevr it's upto now.. as for linux.. have you tried Mandrake ? personally i prefer slackware.. but I saw the new install for mandrake.. and it's really nice.. you should be able to play with that.. I'm not going to get into if NT is better than Linux or vice versa.. .. but if You can't afford server, and IIS doesn't work on workstation remove workstation and try mandrake :).
On Wed, 10 May 2000, Matt Williams wrote:
> I have just convinced my employer that PHP is the way forward.
> I am now in the proccess of spec'ing a development machine.
> There will be a few of us working on the project and it looks like this will
> be on NT.
>
> Does anyone know if IIS 4 will install and run on NT workstation? I have a dev
> machine at home with NT server but I can't see my employer splashing out on NT
> server just to "mess around on" :-)
>
> I've played with PWS but it just isn't up to it (file uploads etc...)
>
> Or does anyone have any suggestions about how I could go about this. I am
> playing with Linux at the moment but having no success and I don't really know
> much about setting it up to run on our network.
>
> Thanks in advance for any advice
>
> M
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Hi,
since I absolutely love ODBC at the moment, i'd like to know what other PHP developers think of it as a way of abstracting database interaction. I use it intensively in our Intranet, and it's nice to be able to build a quick and dirty system in Access and PHP, and then when everything is ok'd by the bosses, to upscale it to for example MS SQL or another ODBC compliant database like Oracle, Postgresql etc. We develop the httpd stuff on the Linux platform , and use mostly MS SQL on WINNT for the database stuff, but it gives me a secure feeling to know i'd be able to switch to other databases in a few hours work, mostly spend on translating queries which are too much MS SQL like. Any opinions on this?
Maarten
attached mail follows:
Run phpinfo(); and check for mySQL support.
and mysql_connect() is called with three arguments as follows - $connection_pointer=mysql_connect("host","username","password");
Tauntz wrote:
> My scrip :
> ...
> <?
> mysql_connect() or die ("Problem connecting to DataBase");
> $query = "select * from tbl";
> $result = mysql_db_query("example", $query);
> .....
>
> And when I run that scrip I get this error:
> Fatal error: Call to unsupported or undefined function mysql_connect() in
> c:/xitami/webpages/index.php3 on line 8
> whats wrong ?
> tauntz
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hello, Newbie question, I'm afraid, Could someone please advise on how to write and read to a file. ( can this be done in php??. I wish to populate my mems from static text files.
Thanks DT
________________________________________________________________________
CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the intended recipient(s) please note that any distribution, copying or use of this communication or the information in it is strictly prohibited.If you are not the named recipient(s), please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium.
> ************
attached mail follows:
Check the manual.
http://www.zend.com/manual/ref.filesystem.php
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: <david.tansley
acelondon.co.uk>
To: <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 11:23 AM
Subject: [PHP3] reading & writing to a file
>
>
> Hello,
> Newbie question, I'm afraid,
> Could someone please advise on how to write and read to a file. ( can
> this be done in php??. I wish to populate my mems from static text files.
>
> Thanks
> DT
>
> ________________________________________________________________________
>
> CONFIDENTIALITY This e-mail and any attachments are confidential and may
> also be privileged. If you are not the intended recipient(s) please note
> that any distribution, copying or use of this communication or the
> information in it is strictly prohibited.If you are not the named
> recipient(s), please notify the sender immediately and do not disclose
> the contents to another person, use it for any purpose, or store or
> copy the information in any medium.
>
>
> > ************
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hi!
Check out http://www.htdig.org
Saurabh
Kevin Obbayi wrote:
> I am looking to install a search engine on my webserver, and I am looking
> towards a PHP3 solution. Has anyone done anything like this? If so, any
> pointers?
>
> thanks
>
> Kevin
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Richard Lynch wrote: > > > > > I've got no idea how to do it but a "Return-receipt:" line > > in the outgoing mail and a crontab script to check for the > > return-receipt, it's quite an hack, but it should work. > > > > I guess something exists about local sendmail control. > > in my php manual page about mail() function, mail is described > > as a function returning a bool, no description about what > > really it is. > > > > Has anyone an idea ? > > The return value is only that the mail got onto the sendmail spool for delivery. > > There really is no way to completely be sure the mail got much farther > than that. > > And for god's sake don't do that stupid return receipt thing: Annoying as hell.
AFAIK, there are 2 different return receipts: the first is read by the destination mail server and is triggered by the header Return-receipt: (or similar) this is transparent to the user and hence not annoying at all
the second is really annoying, the user is notified, I hate it and I will never use it and is triggered by Disposition-Notification-To:
> Manuel Lemos has a script that checks all sorts of things about an email > to tell you if it's invalid -- but nothing can be 100% certain about email > delivery.
I know, and I've still to understand completely that before starting to coding something I should check his http://phpclasses.upperdesign.com (free ad here!)
anyhow, thanks
attached mail follows:
Hi all,
I have to decide whether to put certain data in a XML file or a mySQL database. This is for medium sized site with about 2000 hits an hour.
Though there are many factors to consider, I was wondering
1. how speed is affected. 2. if there is a difference in the server load factor (Linux RetHat 6.1)
and also please add any other comments you may have.
Thanx,
Saurabh
attached mail follows:
You should treat XML as a mechanism for representing data and not for storing data.
I would be inclined to say, store your data in mySQL and use PHP to represent it as HTML/XML/WML....
With regards to scaleability, how many SQL queries does 2000 hits (or is it pageviews) translate to? My site easily handles 100K SQL queries (50% SELECT 50% INSERT or UPDATE) a day without breaking a sweat. I'm running on a PIII500 with 128MB RAM, PHP4RC1, MSQL, Zend and Apache.
(FYI uptime 5:13am up 5:49, 1 user, load average: 0.03, 0.07, 0.09)
Cheers, Shri
----- Original Message -----
From: "Saurabh Gupta" <error
zxmail.com>
To: "PHP Mailing List" <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 5:59 PM
Subject: [PHP3] XML/mySQL - speed and load
Hi all,
I have to decide whether to put certain data in a XML file or a mySQL database. This is for medium sized site with about 2000 hits an hour.
Though there are many factors to consider, I was wondering
1. how speed is affected. 2. if there is a difference in the server load factor (Linux RetHat 6.1)
and also please add any other comments you may have.
Thanx,
Saurabh
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I have a PHP/MySQL Database setup with information in which the user can search on
Can anyone point me in the right direction or provide sample code etc on how to do the following
The database holds job details
I want to set up a facility where the server will email the user if any jobs match certain criteria.
I could probably do this by running a script manually - but if I want to automate this so the server runs maybe once ot twice a week - how do I do this??
Thanks in advance!
Andy Kent
Managing Director
Angel Solutions (UK) Ltd
t: 0151 737 1048
f: 0870 126 9837
e: andy
angelsolutions.co.uk
w: http://www.angelsolutions.co.uk
attached mail follows:
The regexs are greek to me as well BUT try experimenting just remember you will have to add http:// to any www. before linking
Tarique
===================================== B2B Application Service Providers http://www.sanisoft.com
The Vortal for Nagpur http://nagpurcity.net =====================================
-----Original Message-----
From: Thomas Deliduka <thomas
neweve.com>
To: PHP List <php3
lists.php.net>
Date: Wednesday, May 10, 2000 3:54 AM
Subject: Re: [PHP3] Big Challenge
>On 5/6/00 10:34 AM SANIsoft said:
>
>> This had come up on the list - may help
>
>Thanks. I wonder, do you think it's possible to modify it to link not only
>those starting with http:// but also just www.?
>
>What I'm looking at here is completely greek to me.
>--
>
>Thomas Deliduka
>IT Manager
>--------------------
>New Eve Media
>5629 Westlake Drive
>Galloway, OH 43119-8498
>Phone: 614-870-3098
>Fax: 614-870-7486
>Mobile: 614-537-6445
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
On a web based form that submits to itself I have a selection box with title in it (eg Mr, Mrs, Miss, Dr etc)
Once the user has selected one of these I would like to be able to update a gender check box to Male or Female (where applicable)
I don't think this can happen until the user actually submits the form ??
Unless anyone know otherwise??
Ta
Andy Kent
Managing Director
Angel Solutions (UK) Ltd
t: 0151 737 1048
f: 0870 126 9837
e: andy
angelsolutions.co.uk
w: http://www.angelsolutions.co.uk
attached mail follows:
In javascript this is pretty easy....
-----Original Message-----
From: Andy [mailto:andy
angelsolutions.co.uk]
Sent: Wednesday, May 10, 2000 12:08
To: PHP3 Mailing List
Subject: [PHP3] Checkbox
On a web based form that submits to itself I have a selection box with title in it (eg Mr, Mrs, Miss, Dr etc)
Once the user has selected one of these I would like to be able to update a gender check box to Male or Female (where applicable)
I don't think this can happen until the user actually submits the form ??
Unless anyone know otherwise??
Ta
Andy Kent
Managing Director
Angel Solutions (UK) Ltd
t: 0151 737 1048
f: 0870 126 9837
e: andy
angelsolutions.co.uk
w: http://www.angelsolutions.co.uk
attached mail follows:
I know this can be done with Javascript, just don't ask me how... alex..
-----Original Message-----
From: Andy [mailto:andy
angelsolutions.co.uk]
Sent: 10 May 2000 11:08
To: PHP3 Mailing List
Subject: [PHP3] Checkbox
On a web based form that submits to itself I have a selection box with title
in it (eg Mr, Mrs, Miss, Dr etc)
Once the user has selected one of these I would like to be able to update a
gender check box to Male or Female (where applicable)
I don't think this can happen until the user actually submits the form ??
Unless anyone know otherwise??
Ta
Andy Kent
Managing Director
Angel Solutions (UK) Ltd
t: 0151 737 1048
f: 0870 126 9837
e: andy
angelsolutions.co.uk <mailto:andy
angelsolutions.co.uk>
w: http://www.angelsolutions.co.uk <http://www.angelsolutions.co.uk/>
-- This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error, please notify the sender immediately and then destroy any copies of it.
attached mail follows:
Andy
Javascript. Probably the best way is to create a simple function with an if statement. The syntax is something like:
if ( var == whatever ) { document.formname.elementname.checked = true; }
In the select box tag you would then have something like
onChange="function(var)"
The 'forms' section of javascript.internet.com is a good place to start for example scripts and syntax.
Med vänlig hälsning /Dana
> -----Original Message-----
> From: Andy [SMTP:andy
angelsolutions.co.uk]
> Sent: Wednesday, May 10, 2000 12:08 PM
> To: PHP3 Mailing List
> Subject: [PHP3] Checkbox
>
> On a web based form that submits to itself I have a selection box with
> title in it (eg Mr, Mrs, Miss, Dr etc)
>
> Once the user has selected one of these I would like to be able to update
> a gender check box to Male or Female (where applicable)
>
> I don't think this can happen until the user actually submits the form ??
>
> Unless anyone know otherwise??
>
> Ta
>
> Andy Kent
> Managing Director
> Angel Solutions (UK) Ltd
> t: 0151 737 1048
> f: 0870 126 9837
> e: andy
angelsolutions.co.uk <mailto:andy
angelsolutions.co.uk>
> w: <http://www.angelsolutions.co.uk/>
>
attached mail follows:
Yes it can be done with Javascript!
Use onChange in the selection box and write a function where you set the checkbox.checked boolean property to true.
Fredrik
> I know this can be done with Javascript, just don't ask me how...
>
> alex..
>
> -----Original Message-----
> From: Andy [mailto:andy
angelsolutions.co.uk]
> Sent: 10 May 2000 11:08
> To: PHP3 Mailing List
> Subject: [PHP3] Checkbox
>
>
> On a web based form that submits to itself I have a selection box with
title
> in it (eg Mr, Mrs, Miss, Dr etc)
>
> Once the user has selected one of these I would like to be able to update
a
> gender check box to Male or Female (where applicable)
>
> I don't think this can happen until the user actually submits the form ??
>
> Unless anyone know otherwise??
>
> Ta
>
> Andy Kent
> Managing Director
> Angel Solutions (UK) Ltd
> t: 0151 737 1048
> f: 0870 126 9837
> e: andy
angelsolutions.co.uk <mailto:andy
angelsolutions.co.uk>
> w: http://www.angelsolutions.co.uk <http://www.angelsolutions.co.uk/>
>
>
> --
> This communication contains information which is confidential and
> may also be privileged. It is for the exclusive use of the
> intended recipient(s). If you are not the intended recipient(s),
> please note that any distribution, copying or use of this
> communication or the information in it is strictly prohibited.
> If you have received this communication in error, please notify
> the sender immediately and then destroy any copies of it.
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Andy
Javascript. Probably the best way is to create a simple function with an if statement. The syntax is something like:
if ( var == whatever ) { document.formname.elementname.checked = true; }
In the select box tag you would then have something like
onChange="function(var)"
The 'forms' section of javascript.internet.com is a good place to start for example scripts and syntax.
Med vänlig hälsning /Dana
-----Original Message-----
From: Andy [SMTP:andy
angelsolutions.co.uk]
Sent: Wednesday, May 10, 2000 12:08 PM
To: PHP3 Mailing List
Subject: [PHP3] Checkbox
On a web based form that submits to itself I have a selection box with title
in it (eg Mr, Mrs, Miss, Dr etc)
Once the user has selected one of these I would like to be able to update a
gender check box to Male or Female (where applicable)
I don't think this can happen until the user actually submits the form ??
Unless anyone know otherwise??
Ta
Andy Kent
Managing Director
Angel Solutions (UK) Ltd
t: 0151 737 1048
f: 0870 126 9837
e: andy
angelsolutions.co.uk <mailto:andy
angelsolutions.co.uk>
w: <http://www.angelsolutions.co.uk/>
attached mail follows:
Hi,
I need to set a cookie and then goto another page. How I can do this? The following code does not set a cookie:
setcookie("user_id", user_id); Header("Location:page2.htm");
I am using PWS4 on Win95 PC, IE5.
TIA, Eugene.
attached mail follows:
At 14:43 10/05/00 -0700, Eugene V. Goldberg wrote: >I need to set a cookie and then goto another page. How I can do this? The >following code does not set a cookie: > >setcookie("user_id", user_id); >Header("Location:page2.htm");
I could be wrong (I often am) but it may not be possible to set a cookie and redirect on the same page.
You could use the 'refresh' tag to send users on to another page after they collect their cookie (e.g. http://apps.freshmeat.net/homepage/954251081/).
HTH
Colin
attached mail follows:
Hello Eugene,
I've used this technique successfully (setcookie and redirect). But the value of the cookie in your example, "user_id" is not a variable (no $) and is not a string because no quotes, so what is it?
Best regards,
Randy mailto:randyr
minutemanups.com
Wednesday, May 10, 2000, 4:43:49 PM, you wrote:
EVG> Hi,
EVG> I need to set a cookie and then goto another page. How I can do this? The EVG> following code does not set a cookie:
EVG> setcookie("user_id", user_id); EVG> Header("Location:page2.htm");
EVG> I am using PWS4 on Win95 PC, IE5.
attached mail follows:
Hi,
I just wrote a piece of code doing the same thing this morning which works fine.
The value of the cookie needs to be a string so it should read:
setcookie("user_id","user_id");
or if uesr_id is actually a PHP variable then use
setcookie("user_id","$user_id");
Paul Fotheringham. CMCSM University of Glasgow.
>At 14:43 10/05/00 -0700, Eugene V. Goldberg wrote: >>I need to set a cookie and then goto another page. How I can do this? The >>following code does not set a cookie: >> >>setcookie("user_id", user_id); >>Header("Location:page2.htm"); > >I could be wrong (I often am) but it may not be possible to set a cookie >and redirect on the same page. > >You could use the 'refresh' tag to send users on to another page after they >collect their cookie (e.g. http://apps.freshmeat.net/homepage/954251081/). > >HTH > >Colin
attached mail follows:
Hi everybody, I am experiencing with cookies some way of realizing a small cart shop...
my code is this:
<?php if ($action=="add"){ $total_items ++; setcookie("items[$total_items]",$art); setcookie("total_items",$total_items); }
[...]
echo "<FORM action=$PHP_SELF>"; echo "<BR>Add to cart : "; echo "<INPUT type=hidden value=".$myrow["codice"]." name=art>"; echo "<INPUT type=hidden value=add name=action>"; echo "<input type=Image name=Submit src='pics-layout/si.gif' border=0>"; echo "</FORM>";
[...]
echo "<P>You got the following articles:<P>"; echo "<UL>";
for ($i=0;$i<=sizeof($items);$i++){ echo "<LI>".$items[$i]; } echo "</UL>";
[...]
?>
The problem is that the first time I choose an object I , the page reloads itself and SHOULD add it to the array $items[]. But it seems to not happen. If I choose another article the "for" loop prints the article I selected for first, but not the second... Adding a third I receive an array with the first TWO articles (but not the last, the 3rd) and so on...
Why it is happening ?
Thanks !
-- Regards...Gianmarco "Unix expert since yesterday"
attached mail follows:
I can't figure out how your system is working based on the code snippets but cookies aren't visible until the next time they're read. If you set CookieA in PageA.php and then try to read that cookie later on in PageA it won't work. The next time you load PageA the cookie will be there.
From the manual ( http://www.zend.com/manual/function.setcookie.php ): "Common Pitfalls: Cookies will not become visible until the next loading of a page that the cookie should be visible for."
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
----- Original Message -----
From: "Gianmarco Giovannelli" <gmarco
scotty.masternet.it>
To: <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 12:41 PM
Subject: [PHP3] Cookies not aligned ?
> Hi everybody,
> I am experiencing with cookies some way of realizing a small cart
> shop...
>
>
> my code is this:
>
> <?php
> if ($action=="add"){
> $total_items ++;
> setcookie("items[$total_items]",$art);
> setcookie("total_items",$total_items);
> }
>
> [...]
>
>
> echo "<FORM action=$PHP_SELF>";
> echo "<BR>Add to cart : ";
> echo "<INPUT type=hidden value=".$myrow["codice"]." name=art>";
> echo "<INPUT type=hidden value=add name=action>";
> echo "<input type=Image name=Submit src='pics-layout/si.gif' border=0>";
> echo "</FORM>";
>
> [...]
>
> echo "<P>You got the following articles:<P>";
> echo "<UL>";
>
> for ($i=0;$i<=sizeof($items);$i++){
> echo "<LI>".$items[$i];
> }
> echo "</UL>";
>
> [...]
>
> ?>
>
> The problem is that the first time I choose an object I , the page
> reloads itself and SHOULD add it to the array $items[].
> But it seems to not happen. If I choose another article the "for" loop
> prints the article I selected for first, but not the second...
> Adding a third I receive an array with the first TWO articles (but not
> the last, the 3rd) and so on...
>
> Why it is happening ?
>
> Thanks !
>
>
>
> --
> Regards...
>
> Gianmarco
> "Unix expert since yesterday"
>
> http://www.giovannelli.it
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
best is to set a cookie with time and all its parameters setcookie("stuff","name","time() + number of seconds","site directory",".yoursite.com",0); basically first u assign value then name then time() + number of seconds site directory as if ur runing ur scripts out of www.mysite.com/mysite/pass/ the u have to use /mysite/pass then its site url so if u runing out of www.mysite.com just take out "www" which leaves u with .mysite.com and then its ither cookie transformed via secure or non secure server 0 is non and 1 is secure.. thats it...
attached mail follows:
Hello All!
Are there any tools to create .php3 scripts to deal with SQL-tables (Oracle in particulary)? E.g. sending table description to input (starndart SQL-format or so), on output You'll get scripts are able to insert, update, delete from this table
Rgds, Vadim Grepan
attached mail follows:
Hi Vadim
I'm working on that, but i have a problem with this for
$result = mysql_query("SHOW COLUMNS FROM $select", $link); $columnas = mysql_list_fields(db_name,table_name,$link); $sql = "UPDATE $tabla SET "; for($i=1; $i<mysql_num_fields($columnas); $i++ ) if ($i == 1) $sql .= mysql_field_name($columnas,$i )."=$".mysql_field_name($columnas,$i ).""; else $sql .= ", ".mysql_field_name($columnas,$i )."=$".mysql_field_name($columnas,$i ).""; $sql .= " WHERE id=$id";
please you can halp me?
thanks
--- Vadim Grepan <kezal
mail.ru> escribió: > Hello
All!
>
> Are there any tools to create .php3 scripts to
> deal with SQL-tables
> (Oracle in particulary)?
> E.g. sending table description to input (starndart
> SQL-format or so),
> on output You'll get scripts are able to insert,
> update, delete from
> this table
>
> Rgds, Vadim Grepan
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
_______________________________________________________________
Do You Yahoo!?
Consiga gratis su dirección
yahoo.es en http://correo.yahoo.es
attached mail follows:
this might be easy.
i have a loop from a query that return multiple rows. for example. if i retrieve data from my customer database for the last name 'smith', i get 5 results. i want to beable to loop through each result and display a fresh page for each result. with a next button to go on to the next page.
i have
$gsql= "select * from info where name = '$dust'"; $result=mysql_query($gsql);
while($row = mysql_fetch_row($result)) { display data; wait till next button is pressed. }
how would i implement the next button to load the next data set from the query?
r
attached mail follows:
this might be easy.
i have a loop from a query that return multiple rows. for example. if i retrieve data from my customer database for the last name 'smith', i get 5 results. i want to beable to loop through each result and display a fresh page for each result. with a next button to go on to the next page.
i have
$gsql= "select * from info where name = '$dust'"; $result=mysql_query($gsql);
while($row = mysql_fetch_row($result)) { display data; wait till next button is pressed. }
how would i implement the next button to load the next data set from the query?
r
attached mail follows:
> how would i implement the next button to load the next data set from the query?
You can't do it in a loop like that as PHP is server side only.
You need to send a parameter to the script to load the next result, in a form or directly in an URL.
Best regards, Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
attached mail follows:
my question is actually what mechanism do i use to accomplish that. i have the query, i have the data. how do i build a page on the results and only load the next page at the users request.
On Wed, 10 May 2000, you wrote: > > how
would i implement the next button to load the next data set from the > query? >
> You can't do it in a loop like that as PHP is server side only.
>
> You need to send a parameter to the script to load the next result, in a
> form or directly in an URL.
>
>
> Best regards,
> Martin Edelius
>
> Spirex Digital Design
> --------------------------------
> www: http://www.spirex.se
> Mail: martin.edelius
spirex.se
> Phone: +46-31-514651, 0708-113711
> Fax: +46-31-514331
> Arvds Industrivdg 3c
> S-422 43 Hisings Backa
> --------------------------------
> If I haven't got back to you or done what I'm supposed to, let me know again
> as I have too much to do for my own good...
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I haven't been able to access the php.net site since yesterday afternoon. Is the site down?
Bob Lutz
attached mail follows:
I just got a connection to it no probs ...
On Wed, 10 May 2000, Bob Lutz wrote:
> I haven't been able to access the php.net site since yesterday
> afternoon. Is the site down?
>
> Bob Lutz
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator
hub.org
primary: scrappy
hub.org secondary: scrappy
{freebsd|postgresql}.org
attached mail follows:
it seems to be up but very sluggish..
I'm getting in a new server for PHP (hopefully) Today! (Yea!) so things should be getting better soon...
Mark
>
> I haven't been able to access the php.net site since yesterday
> afternoon. Is the site down?
>
> Bob Lutz
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
I found it quite slow. I've just gone to using the uk mirror.
On Wed, 10 May 2000, The Hermit Hacker wrote:
>
> I just got a connection to it no probs ...
>
>
> On Wed, 10 May 2000, Bob Lutz wrote:
>
> > I haven't been able to access the php.net site since yesterday
> > afternoon. Is the site down?
> >
> > Bob Lutz
> >
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
> Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
> Systems Administrator
hub.org
> primary: scrappy
hub.org secondary: scrappy
{freebsd|postgresql}.org
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
actually it works for me in IE better than netscape
----- Original Message -----
From: Chris Moyer <cmoyer
chekinc.com>
To: <php3
lists.php.net>
Sent: Tuesday, May 09, 2000 10:35 PM
Subject: [PHP3] flush() and IE
> I searched the archives and found some references to this, but it appears
> to have never been resolved.
>
> If I have the script:
>
> for($i=0 ; $i < 21 ; $i++){
> echo $i."<br>\n";
> flush();
> sleep(1);
> }
>
> I get a really nice output in Netscape, numbers count down the screen at 1
> second intervals. In IE, it just takes 20 seconds for the page to load.
>
> I read that putting an echo ""; at the top of the page would help... It
> didn't.
>
> Someone said that using print instead of echo would work.
> Also, someone mentioned a Keep-alive header... but that was now good.
> Any ideas? Anyone tried this?
>
> Related, this came up when I was looking at phpIRC and chat from phpCHAT
> on phpwizard.net. Has anyone tried thes scripts out with IE? In netscape
> it is a very slick piece of work where the IRC scrolls up the frame. I
> got the idea for using flush out of that code.
>
> Any ideas?
>
> Chris Moyer -- cmoyer
chekinc.com
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
heh it works great for me in IE because i put a couple of flush()
for($i=0 ; $i < 21 ; $i++){
echo $i."<br>\n";
flush();
flush();
flush();
flush();
flush();flush();
flush();
sleep(1);
}
----- Original Message -----
From: Chris Moyer <cmoyer
chekinc.com>
To: <php3
lists.php.net>
Sent: Tuesday, May 09, 2000 10:35 PM
Subject: [PHP3] flush() and IE
> I searched the archives and found some references to this, but it appears
> to have never been resolved.
>
> If I have the script:
>
> for($i=0 ; $i < 21 ; $i++){
> echo $i."<br>\n";
> flush();
> sleep(1);
> }
>
> I get a really nice output in Netscape, numbers count down the screen at 1
> second intervals. In IE, it just takes 20 seconds for the page to load.
>
> I read that putting an echo ""; at the top of the page would help... It
> didn't.
>
> Someone said that using print instead of echo would work.
> Also, someone mentioned a Keep-alive header... but that was now good.
> Any ideas? Anyone tried this?
>
> Related, this came up when I was looking at phpIRC and chat from phpCHAT
> on phpwizard.net. Has anyone tried thes scripts out with IE? In netscape
> it is a very slick piece of work where the IRC scrolls up the frame. I
> got the idea for using flush out of that code.
>
> Any ideas?
>
> Chris Moyer -- cmoyer
chekinc.com
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
so this script could be interesting me principal, fact its combinable with a ssh command? hmm, please let me look in, it could be a part of my problem resolution.
thanks again... mike a. sauvain....
----- Original Message -----
From: Jason Cox <jasonc
webpipe.net>
To: <php3
lists.php.net>
Sent: Wednesday, May 10, 2000 4:07 AM
Subject: RE: [PHP3] php and ssh ?
> I have a script called super 'su' that allows you to login, execute a
> command, and exit all in one command. This could be used via the
system()
> function. It uses PAM and if used with a database, could allow users
to
> authenticate against it and run certain commands such as 'chmod'
without
> making the system vulnerable. The syntax of the thing goes like this
> "ssu -u [username] -p [passwork] -f '[commands]'". Let me know if you
want
> more info.
>
> Jason
>
> -----Original Message-----
> From: Mike Alexander Sauvain [mailto:msauvain
EDV-Support.ch]
> Sent: Tuesday, May 09, 2000 6:59 PM
> To: Nathan Benson
> Cc: php3
lists.php.net
> Subject: Re: [PHP3] php and ssh ?
>
>
> re: 2001, so fact:
> 1. make some directorys on diferent locations (servers), that works,
> like
> mkdir ("/data/$si", 0700); // or // exec("md /data/$si");
> 2. chown, should run on dif. loc., example DONT work because the
apache
> runs
> under nobody so it has no super user rights to do that
> passthru("chown 500 -R /data/mail/$si && chgrp 500 -R
> /data/mail/$si"); // or
> exec()
> system()
> 3. maybe other commands directly fetched from php / webinterface /
mysql
> place
>
> fact of problem / quests
> its possible to use a php script, that logs in the other server an
> executes some commands.
> the problem one these line, is that it doesent execute / enter the
> password, so it is posible to emulate
> the enter button ?, that i think could be the first possible nice
> solution for me.
> exec("ssh -l root localhost ?? mypass or $VAR ?? \n ?? && chown
$uid -R
> /data/$si");
>
> so if that isnt possible other ask: if i work now with ssh-agent,RSA,
> other users can hack
> the connection (with a php script), because i have already an
configured
> autologin daemon
> and he use the same line ? like:
> exec("ssh -l root localhost --comand grep /etc/passwd >
> sendmailXxXxx.........");
>
> or are the last only realy reasonable resolution that i output the -
php
> / webinterface / mysql - data
> to a file, that after i let to execute with a cronjob ? );-(/)
>
> thanks again mike....
> ----- Original Message -----
> From: Nathan Benson <phuzz
phactor.org>
> To: Mike Alexander Sauvain <msauvain
edv-support.ch>
> Cc: <php3
lists.php.net>
> Sent: Wednesday, May 10, 2000 12:23 AM
> Subject: Re: [PHP3] php and ssh ?
>
>
> > php doesn't have native ssh functions (that I know of), but maybe
> > you could use exec() etc, with the ssh binaries along with RSA keys
> > and ssh-agent to do what you were wanting? seeing as how your
message
> > wasn't very descriptive of what you were trying to accomplish i can
> > only speculate. hope this is of some help.
> >
> > > can this work, to php let use ssh connections ?
> > >
> > > and where i find some related stuff about ?
> >
> > --
> > Nathan Benson
> > -------------
> > http://www.phactor.org/
> >
> > Me spell chuker work grate. Need grandma chicken.
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
> >
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
php-list-admin
lists.php.net
>
>
>
> _______________________________________________________
> Site Design, Hosting, and E-Commerce at www.webpipe.net
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
php-list-admin
lists.php.net
>
attached mail follows:
Well, I actually use the exec() command. The login via the web, their username/password is checked against the one stored in a db, then a session is started. The user/pass isn't stored in the session but is retrieved everytime a command is issued. I realize this could be potentially dangerous so I'm careful about how they login. I lock the web login after 3 failed attempts, the session expires if not active for 5 minutes, and root login is absolutely not allowed. Any suggestions?
Jason
-----Original Message-----
From: Matt McClanahan [mailto:cardinal
dodds.net]
Sent: Tuesday, May 09, 2000 9:38 PM
To: Jason Cox
Cc: php3
lists.php.net
Subject: RE: [PHP3] php and ssh ?
On Tue, 9 May 2000, Jason Cox wrote:
> I have a script called super 'su' that allows you to login, execute a > command, and exit all in one command. This could be used via the system() > function. It uses PAM and if used with a database, could allow users to > authenticate against it and run certain commands such as 'chmod' without > making the system vulnerable. The syntax of the thing goes like this > "ssu -u [username] -p [passwork] -f '[commands]'". Let me know if you want > more info. > > Jason
Jason, out of curiousity, what sort of interface between PHP and PAM are you using?
Matt
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To sub