|
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 Oct 24 2001 - 04:39:19 CDT
php-general Digest 24 Oct 2001 09:39:19 -0000 Issue 953
Topics (messages 71994 through 72074):
Re: How to protect MySQL password
71994 by: Kurt Lieber
71995 by: Ashley M. Kirchner
72066 by: Justin French
Detect mySql Install
71996 by: Chris
Re: PHP on PWS
71997 by: Vincent Stoessel
mail() question
71998 by: Jeff Kryvicky . Collider
72028 by: David Robley
72048 by: Niklas Lampén
Re: [PHP-DB] Using A Query Results Multiple Times
71999 by: Peter Lovatt
PHP usage(s)
72000 by: Dennis Gearon
72003 by: Wandrer
72004 by: Jason Wood
72037 by: Brian White
Kerberos, usoft.NET, and online storage
72001 by: Dennis Gearon
Unix MailboFormat Archives
72002 by: Kevin Diffily
include() problem.
72005 by: brendan
72027 by: David Robley
72030 by: brendan
72032 by: David Robley
anyone have...
72006 by: Jay Paulson
72007 by: Rasmus Lerdorf
72018 by: Jack Dempsey
72021 by: Jason Murray
In Toronto Next week
72008 by: Rasmus Lerdorf
72017 by: Mark Saunders
72031 by: Christian Dechery
phpODBCadmin?
72009 by: andrew.salamander.net
Portland, Oregon
72010 by: Richard Baskett
72011 by: Rasmus Lerdorf
72012 by: Jack Dempsey
72013 by: Rasmus Lerdorf
72015 by: Richard Baskett
Re: Forms and Netscape -- spacing problem -- Help!
72014 by: James Cave
72023 by: Mark
72033 by: James Cave
72043 by: Mark
Sao Paulo, Brazil
72016 by: Alex Piaz
Newbie in Need of Help!
72019 by: JMack
72022 by: Mike Eheler
Re: POST and & trouble.
72020 by: Alex Marín Fica \(Desarrollo\)
4.0.7
72024 by: Martín Marqués
72029 by: Rasmus Lerdorf
PHP and Image Magick for FreeBSD
72025 by: Max
Re: Apache "Request" Ids?
72026 by: Brian White
Re: need better solution...
72034 by: Christian Dechery
how many data can a session hold?
72035 by: Christian Dechery
Re: PHP Openlink/Progress Problems
72036 by: David Robley
a
72038 by: Franco Breciano
aaaaaaaaaaaaaaa
72039 by: Franco Breciano
72040 by: Richard S. Crawford
MSSQL 7.0 and PHP
72041 by: Franco Breciano
72046 by: Nick Richardson
Php and Emacs21
72042 by: Mark
PHP/Apache/Windows 2000 - Does not send mail
72044 by: Yuval Zukerman
72045 by: Nick Richardson
Re: Help converting ASP->PHP
72047 by: Garth Dahlstrom
Package mechanism
72049 by: Douw Steyn
72072 by: DL Neil
OnUNload Scripts
72050 by: Impex Holidays Maldives / Hasan
72051 by: Martin Towell
72058 by: Jason G.
72059 by: Mak
72068 by: Kodrik
72071 by: Mak
Enabling php in only certain hosts and directories
72052 by: Joseph Blythe
72073 by: Kodrik
redirecting the browser
72053 by: Ozgur Demirtas
72054 by: Mak
72055 by: Valentin V. Petruchek
72062 by: Kodrik
72070 by: Kodrik
Re: INPUT tag with default value
72056 by: Silvia Mahiques
Check mail user
72057 by: Rosen
72060 by: Valentin V. Petruchek
72069 by: Kodrik
Looking for a high usage PHP host
72061 by: Ben Quinn
72063 by: Rasmus Lerdorf
Re: problem pattern matching a url with question mark
72064 by: Neil Freeman
Re: Using A Query Results Multiple Times
72065 by: Niklas Lampén
72067 by: Kodrik
libxml
72074 by: php
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:
On Tuesday 23 October 2001 12:29, Chris Lee wrote:
> I use proftpd, I can setup a chroot for the user that logs in, chroot them
> to their vhosts dir, move the mysql passwd file out of that dir. now anyone
> that ftp's in can not read the passwd. as for telnet (shell) access, its
> rare a user needs that anyhow, if you feel your customers do need that,
> well its your choice to offer them the security risk or not. I just tell
> our customers, "sorry, nope, to big of a security risk.", I have yet to
> have one complain so badly they switch hosting services.
Sorry -- but you're wrong. If you've got php loaded as an apache module in a
shared hosting environment, then any file that apache can read, I can gain
access to through a simple FTP account and a well-constructed php file using
fopen(). Doesn't matter if that file resides within my vhosts dir or not. I
may have to guess at the path a bit, but that's fairly trivial. The only way
to protect a file in a shared hosting environment is to use something similar
to php-cgiwrap which allows you to chmod the file to remove group/world read
access. (If someone knows of another way to do this using the apache php
module, please let me (and my ISP) know)
Regarding shell access being a "security risk", ssh is far, far more secure
than FTP can ever hope to be.
This is straying off-topic, so we should probably take further discussions
offline. Feel free to email me directly if you have questions/disagreements.
--kurt
attached mail follows:
Kurt Lieber wrote:
> Regarding shell access being a "security risk", ssh is far, far more secure
> than FTP can ever hope to be.
This is why there's FTP over SSH, or sftp.
-- W | I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:ashleypcraft.com> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
attached mail follows:
All these solutions are depending (mainly) on having a dedicated server, which I believe would not be the case for 90% of the users on here (don't shoot me if i'm wrong).
So far, I can't see how the problem can be solved. My host does not allow telnet/ssh at all which sounds like a good thing!
I can put the password file outside the public html, but from i've read in this thread, it looks like other users on a virtual server might be able to gain access to that file using PHP or annother program to read through the hard disk hierarchy.
Then there was a suggestion that everything could be wrapped in a PHP-CGI thing, but I don't have PHP as a CGI on my server. What we really need is an expert here to give us the low-down on the best way to accomplish the best security given regular tools.
What about encryption?
Justin French
attached mail follows:
Is there a way to detect, using PHP, if mySql is installed on a server? Can a version # be determined also? I know this can be done using phpinfo, but I don't want to use that approach.
Thanks, Chris
attached mail follows:
the first url uses the http protocal and will be proccessed by your web server (PWS) the second url is a path to a local file and will be returned to you by the native file system , thus php/PWS is never invoked. This is how it is supposed to work.
juliet wrote:
> I use PWS on a Win 95; to be able to run php files here, I have to specify > that the virtual directory in my machine can, not only read and run scripts, > but also *execute* (Advanced | Edit properties | checkbox "execute"). Also, > I have to type the http address, not the filename: > http://myserver/dir/file.php. C://dir/file.php won't work... > > Since both of my OS and Web Manager are different from yours, I don't know > if any of this can actually help ... > > > sweetju > >
-- Vincent Stoessel vincentxaymaca.com Java Linux Apache Mysql Php (JLAMP) Engineer (301) 362-1750 Mobile (410) 419-8588 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaican
attached mail follows:
Hi all, I've got a question that I'm sure can be answered, but I'm a little stuck right now...
I've set up yelvington's excellent annotate script, and it works beautifully. My next step was to try to add an auto email function to notify me when someone has posted a comment, and send me the entire question list. (I'll be using this for client feedback) Everything works extremely peachy, EXCEPT the mail gets posted on every page update, not just on the button press.
So the question is... is there a way to create this feature that only occurs when the submit button is pressed?
Below is the code in it's entirety, with this code: <?require($DOCUMENT_ROOT . "/annotate.php3"); ?> being placed in the html document.
Thanks a million in advance. (btw, if you do choose to answer this, cc me as well, as I'm on digest.)
Jeff
/***************************************/
<?PHP
if ($message)
{
$message = ereg_replace("\r\n\r\n", "\n<P>", $message);
$date = date("l, F j Y, h:i a");
$message = "<B>$name </B> -- $date<P> $message <BR><HR>";
$fp = fopen (basename($PHP_SELF) . ".comment", "a");
fwrite ($fp, $message);
fclose ($fp);
}
readfile(basename(($PHP_SELF . ".comment")));
// function to open a file and place the file into //a buffer for further processing function open_template($template_file) { $i; $output; $temp = file($template_file); for ($i=0; $i<count($temp); $i++) { $output .= $temp[$i]; } return $output; }
//open the file $buffer = open_template(basename($PHP_SELF) . ".comment");
//do some text processing so the email gets plain text, rather //than html formatted text
//replace html rules with returns $buffer = str_replace("<HR>", chr(10), $buffer); //replace html breaks with returns $buffer = str_replace("<BR>", chr(10), $buffer); //strip all other html tags $buffer = strip_tags($buffer);
//email away...
mail("youremail
yourAddress.com", "Auto Form Reply", $buffer);
?>
<FORM method="post"> <b>Your name:</b><BR><INPUT name="name" type="text" size="55"><BR> <b>Your comment:</b><BR><TEXTAREA name="message" rows=10 cols=55 wrap=virtual> </TEXTAREA><BR> <INPUT name="submit" type="submit" value="Post your comments"> </FORM>
-- ___________________________________Jeff Kryvicky
Collider, Inc. [motion graphics for the masses]
133 W 19th St 5th Floor NYC 10011 Tel 646 336 9398 Fax 646 349 4159 Email jeff
collidernyc.com Site http://www.collidernyc.com
___________________________________
attached mail follows:
On Wed, 24 Oct 2001 07:03, jeff
collidernyc.com wrote:
> Hi all, I've got a question that I'm sure can be answered, but I'm a
> little stuck right now...
>
> I've set up yelvington's excellent annotate script, and it works
> beautifully. My next step was to try to add an auto email function to
> notify me when someone has posted a comment, and send me the entire
> question list. (I'll be using this for client feedback)
> Everything works extremely peachy, EXCEPT the mail gets posted on
> every page update, not just on the button press.
>
> So the question is... is there a way to create this feature that only
> occurs when the submit button is pressed?
>
> Below is the code in it's entirety, with this code:
> <?require($DOCUMENT_ROOT . "/annotate.php3"); ?>
> being placed in the html document.
>
> Thanks a million in advance. (btw, if you do choose to answer this,
> cc me as well, as I'm on digest.)
>
> Jeff
>
> /***************************************/
> <?PHP
> if ($message)
> {
> $message = ereg_replace("\r\n\r\n", "\n<P>", $message);
> $date = date("l, F j Y, h:i a");
> $message = "<B>$name </B> -- $date<P> $message <BR><HR>";
> $fp = fopen (basename($PHP_SELF) . ".comment", "a");
> fwrite ($fp, $message);
> fclose ($fp);
> }
>
readfile(basename(($PHP_SELF . ".comment")));
>
> // function to open a file and place the file into
> //a buffer for further processing
> function open_template($template_file)
> {
> $i;
> $output;
>
> $temp = file($template_file);
>
> for ($i=0; $i<count($temp); $i++)
> {
> $output .= $temp[$i];
> }
>
> return $output;
> }
>
> //open the file
> $buffer = open_template(basename($PHP_SELF) . ".comment");
>
> //do some text processing so the email gets plain text, rather
> //than html formatted text
>
> //replace html rules with returns
> $buffer = str_replace("<HR>", chr(10), $buffer);
> //replace html breaks with returns
> $buffer = str_replace("<BR>", chr(10), $buffer);
> //strip all other html tags
> $buffer = strip_tags($buffer);
>
> //email away...
> mail("youremail
yourAddress.com", "Auto Form Reply", $buffer);
> ?>
>
>
> <FORM method="post">
> <b>Your name:</b><BR><INPUT name="name" type="text" size="55"><BR>
> <b>Your comment:</b><BR><TEXTAREA name="message" rows=10 cols=55
> wrap=virtual> </TEXTAREA><BR>
> <INPUT name="submit" type="submit" value="Post your comments">
> </FORM>
You might also do a check on whether $submit is empty; if so, don't do any processng that isn't relevant.
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAI can't use Windows. The cat ate my mouse.
attached mail follows:
Well, not sure if this is a solution for you but I've done it with something like this:
If ($Page == "Form") { // Form itself with hidden field Page=Mailer } else if($Page == "Mailer") { // Send the mail header("Location: youraddress?Page=Form"); };
Hope this helps.
Niklas
-----Original Message-----
From: Jeff Kryvicky
Collider [mailto:jeff
collidernyc.com]
Sent: 24. lokakuuta 2001 0:33
To: php-general
lists.php.net
Subject: [PHP] mail() question
Hi all, I've got a question that I'm sure can be answered, but I'm a little stuck right now...
I've set up yelvington's excellent annotate script, and it works beautifully. My next step was to try to add an auto email function to notify me when someone has posted a comment, and send me the entire question list. (I'll be using this for client feedback) Everything works extremely peachy, EXCEPT the mail gets posted on every page update, not just on the button press.
So the question is... is there a way to create this feature that only occurs when the submit button is pressed?
Below is the code in it's entirety, with this code: <?require($DOCUMENT_ROOT . "/annotate.php3"); ?> being placed in the html document.
Thanks a million in advance. (btw, if you do choose to answer this, cc me as well, as I'm on digest.)
Jeff
/***************************************/
<?PHP
if ($message)
{
$message = ereg_replace("\r\n\r\n", "\n<P>", $message);
$date = date("l, F j Y, h:i a");
$message = "<B>$name </B> -- $date<P> $message <BR><HR>";
$fp = fopen (basename($PHP_SELF) . ".comment", "a");
fwrite ($fp, $message);
fclose ($fp);
}
readfile(basename(($PHP_SELF . ".comment")));
// function to open a file and place the file into //a buffer for further processing function open_template($template_file) { $i; $output; $temp = file($template_file); for ($i=0; $i<count($temp); $i++) { $output .= $temp[$i]; } return $output; }
//open the file $buffer = open_template(basename($PHP_SELF) . ".comment");
//do some text processing so the email gets plain text, rather //than html formatted text
//replace html rules with returns $buffer = str_replace("<HR>", chr(10), $buffer); //replace html breaks with returns $buffer = str_replace("<BR>", chr(10), $buffer); //strip all other html tags $buffer = strip_tags($buffer);
//email away...
mail("youremail
yourAddress.com", "Auto Form Reply", $buffer); ?>
<FORM method="post"> <b>Your name:</b><BR><INPUT name="name" type="text" size="55"><BR> <b>Your comment:</b><BR><TEXTAREA name="message" rows=10 cols=55 wrap=virtual> </TEXTAREA><BR> <INPUT name="submit" type="submit" value="Post your comments"> </FORM>
-- ___________________________________Jeff Kryvicky
Collider, Inc. [motion graphics for the masses]
133 W 19th St 5th Floor NYC 10011 Tel 646 336 9398 Fax 646 349 4159 Email jeff
collidernyc.com Site http://www.collidernyc.com
___________________________________
attached mail follows:
Hi
while(...) { do whatever }
mysql_data_seek ($mysqlresultid, 0)
while(...) { do whatever }
mysql_data_seek ($mysqlresultid, 0) etc
will set the pointer back to the beginning of the result set, so you can scan through it as many times as you need to, without needing to repeat the query.
HTH
Peter
> -----Original Message-----
> From: Adam Douglas [mailto:adouglas
venmarvent.com]
> Sent: 23 October 2001 19:48
> To: PHP-DB (mailing list) (E-mail); PHP-General (mailing list) (E-mail)
> Subject: [PHP-DB] Using A Query Results Multiple Times
>
>
> I have an instance where I have to query my MySQL database and then
> use the multiple row results to create multiple pull down menus on a web
> page. My problem is how can I take the results of the query and use them
> more the once to create pull down menus? I've always used a while look to
> fetch each row of the results and have it create the pull down menu as it
> goes through each row. But doing it this way only stores one row
> of results
> in a variable. Is there a way I can grab all the results from a query that
> would go into an array so I could use it multiple times? I've looking
> briefly for a function to MySQL that would allow me to do this but haven't
> found anything unless I misunderstand mysql_fetch_array function.
> At first I
> thought I could loop through my while loop and have it put the
> results from
> the query of each row in to a multidimensional array. But then how would I
> add to the array after the initial row?
>
> BTW, I'm using PHP 3.0.16.... so I can't use the added array
> functions that
> PHP 4 has. I do plan on upgrading soon.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe
lists.php.net
> For additional commands, e-mail: php-db-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I love PHP/Apache/Linux/(and all its all the new apps, YEAH)/etc.
But my provider now advertised, "ASP NOW available!" I really don't plan on
helping BG
1-usoft.way
However, I had a question for all of you here, or should I say several?
Anyone noticed more or less PHP usage in customers/providers?
How many of you, who write in PHP; A/ Use templates at all. B/ Use Fast templates or an equivilent. C/ Use a development environment made from PHP like Zope, Midgard, et. al. D/ Can share with us a new direction in PHP that will keep it competitive? E/ Know where there is a place that has pointers to, "The best 100 PHP generated pages/applications!" F/ Want to contribute suggestions to 'E' above? If php.net doesn't want to host it, I will.
attached mail follows:
At 03:00 PM 10/23/01 -0700, you wrote: >Anyone noticed more or less PHP usage in customers/providers?
More. Vastly more.
>How many of you, who write in PHP; > A/ Use templates at all.
Definately use templates.
> B/ Use Fast templates or an equivilent.
Code just about everything w/FastTemplates.
> C/ Use a development environment made from PHP like Zope, > Midgard, et. al.
Use Textpad as my development environment.
> D/ Can share with us a new direction in PHP that will keep it > competitive?
'Keep it Competitive' ? <flame> Is there a programming language better than PHP ? </flame>
> E/ Know where there is a place that has pointers to, "The best 100 > PHP generated pages/applications!"
http://www.hotscripts.com/PHP/
attached mail follows:
PHP is getting HUGE!! look at the stats on http://www.php.net/usage.php
Speaks for itself...
A) I dont use any templates... i reuse my own code sometimes, but i mostly do it all by hand. B) I dont even know what FastTemplates is, hehe =P C) ?? D) haha, keep it competitive? It's pretty much replaced PERL, and it's sooooo much faster that microsoft's crappy ASP. E) not sure....
-- Jason Wood Chief Technology Officer Expressive Tek, Inc. 407 Kehrs Mill Road Ballwin, MO 63011 Phone 636.256.1362 www.expressivetek.com"Dennis Gearon" <gearond
cvc.net> wrote in message news:3BD5E87B.79978ABB
cvc.net... > I love PHP/Apache/Linux/(and all its all the new apps, YEAH)/etc. > > But my provider now advertised, "ASP NOW available!" I really don't plan on > helping BG
1-usoft.way > > However, I had a question for all of you here, or should I say several? > > Anyone noticed more or less PHP usage in customers/providers? > > How many of you, who write in PHP; > A/ Use templates at all. > B/ Use Fast templates or an equivilent. > C/ Use a development environment made from PHP like Zope, Midgard, et. al. > D/ Can share with us a new direction in PHP that will keep it > competitive? > E/ Know where there is a place that has pointers to, "The best 100 > PHP generated pages/applications!" > F/ Want to contribute suggestions to 'E' above? If php.net doesn't want to > host it, I will.
attached mail follows:
At 17:16 23/10/2001 -0500, Wandrer wrote:
>> C/ Use a development environment made from PHP like Zope, >> Midgard, et. al. > >Use Textpad as my development environment.
Ditto. Very nice.
>> D/ Can share with us a new direction in PHP that will keep it >> competitive? > >'Keep it Competitive' ? <flame> Is there a programming language better >than PHP ? </flame>
Well, I am of the opinion that Python is a better *language* - if I wasn't spending all my time writing Web Server apps, I would use that. PHP is a much more *appropriate* for Web Apps.
-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web: http://www.steptwo.com.au/
Email: bwhite
steptwo.com.au
attached mail follows:
Anyone remember when Windows 2000, or the latest IIS from redmond killed a lot of the Kerboros exchanges between TLD servers? They were testing their 'Passport' infrastructure, and bastardizing a standard the 'same old way'.
I'd like to store my bookmarks on my personal web site and be able to upload or download them EASILY from several computers, i.e. overwrite the ones I have locally on disk, or upload and overwrite the ones online.
Sure, I can FTP all this, and do. But is there an easier way, php wise? I'ld like something like: http://www.mysite.com/private/upload_bookmarks.php -and- http://www.mysite.com/private/download_bookmarks.php
With all the directories prefilled in on the prompt windows. Any help much appreciated.
attached mail follows:
Hello All,
I just joined the list and would love to get hold of the archives in Unix Mailbox Format. Does anyone know of a source? Would anyone be willing to upload theirs onto my server via ftp?
Thanks,
-- Kevin Diffily InterNetWorkingSolutions Enterprise Class Solutions for All Enterprises 318 Last Road, Cabot, VT 05647 USA VOICE: 1.866.inetws.net (Toll Free) FAX: 1.888.726.9030 (Toll Free) Sales: salesinetws.net General Information: info
inetws.net Website Hosting: hosting
inetws.net Systems Administration Services: systemsadmin
inetws.net Technical Support & Training Services: training
inetws.net
Instant Messaging Username: AIM, IRC, Jabber, MSN, Yahoo: inetwsnet ICQ: 120778694
attached mail follows:
Hi, I have an issue with including a file accross my web server from a separate site on that server served on another port.
- explanation
my php website runs off IIS port :80 (unfortunately IIS is employers decision not mine ) - I have a web spider running off port :9999 both which operate independent of eachother and serve content separately ..
I am within a secure firewall (a university)
the network administration is understandably cautious about microsoft security and has now blocked all ports but :80 on IIS machines ...
- outcome
i cannot serve web content from port :9999 however the spider cannot run simultaneously to IIS on the same port..
- proposed solution ..
to use include("http://localhost:9999/spider/index.html?query=ihateIIS")
outcome - blank screen, headache from staring at screen too long ..
HELP!!!
attached mail follows:
On Wed, 24 Oct 2001 08:03, brendan wrote: > Hi, > I have an issue with including a file accross my web server from a > separate site on that server served on another port. > > - explanation > > my php website runs off IIS port :80 (unfortunately IIS is employers > decision not mine ) > - I have a web spider running off port :9999 > both which operate independent of eachother and serve content > separately .. > > I am within a secure firewall (a university) > > the network administration is understandably cautious about microsoft > security and has now blocked all ports but :80 on IIS machines ... > > - outcome > > i cannot serve web content from port :9999 > however the spider cannot run simultaneously to IIS on the same port.. > > - proposed solution .. > > to use > include("http://localhost:9999/spider/index.html?query=ihateIIS") > > outcome - blank screen, headache from staring at screen too long .. > > HELP!!!
I guess first question is - does View Source show you anything?
Isn't it wonderful how unis, of all places, insist on running stuff like IIS?
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIASmile... people will wonder what you've been up to.
attached mail follows:
Uni runs solaris/unix faculty runs iis world of political pain and anguish..
view source brings up a blank screen .. ta brendan
David Robley wrote:
> On Wed, 24 Oct 2001 08:03, brendan wrote: > >>Hi, >> I have an issue with including a file accross my web server from a >>separate site on that server served on another port. >> >>- explanation >> >>my php website runs off IIS port :80 (unfortunately IIS is employers >>decision not mine ) >>- I have a web spider running off port :9999 >>both which operate independent of eachother and serve content >>separately .. >> >>I am within a secure firewall (a university) >> >>the network administration is understandably cautious about microsoft >>security and has now blocked all ports but :80 on IIS machines ... >> >>- outcome >> >>i cannot serve web content from port :9999 >>however the spider cannot run simultaneously to IIS on the same port.. >> >>- proposed solution .. >> >>to use >>include("http://localhost:9999/spider/index.html?query=ihateIIS") >> >>outcome - blank screen, headache from staring at screen too long .. >> >>HELP!!! >> > > I guess first question is - does View Source show you anything? > > Isn't it wonderful how unis, of all places, insist on running stuff like > IIS? > >
attached mail follows:
On Wed, 24 Oct 2001 10:02, brendan wrote: > Uni runs solaris/unix > faculty runs iis > world of political pain and anguish.. > > view source brings up a blank screen .. > ta > brendan >
OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try assigning the result of the include to a variable and examine the variable; try including just the base file without parameters; are the logs on the target system showing naything as a result of your connect?
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAThe first step to making a dream come true is to wake up
attached mail follows:
anyone have a function that strips out all the characters in a string that are no a-z or A-Z?
thanks...
attached mail follows:
$new = preg_replace('/[^a-zA-Z]/','',$old);
On Tue, 23 Oct 2001, Jay Paulson wrote:
> anyone have a function that strips out all the characters in a string that > are no a-z or A-Z? > > thanks... > > >
attached mail follows:
would need to check, but:
preg_replace("/[^a-zA-z]/",'',$data)
should about do it...
jack
-----Original Message-----
From: Jay Paulson [mailto:jpaulson
lbjs.com]
Sent: Tuesday, October 23, 2001 6:50 PM
To: php-general
lists.php.net
Subject: [PHP] anyone have...
anyone have a function that strips out all the characters in a string that are no a-z or A-Z?
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:
Try:
ereg_replace("[^a-zA-Z]", "", $string)
Jason
-- Jason Murray jasonmmelbourneit.com.au Web Developer, Melbourne IT "Work now, freak later!"
> -----Original Message----- > From: Jack Dempsey [mailto:dempsejn
georgetown.edu] > Sent: Wednesday, October 24, 2001 9:02 AM > To: Jay Paulson; php-general
lists.php.net > Subject: RE: [PHP] anyone have... > > > would need to check, but: > > preg_replace("/[^a-zA-z]/",'',$data) > > should about do it... > > jack > > -----Original Message----- > From: Jay Paulson [mailto:jpaulson
lbjs.com] > Sent: Tuesday, October 23, 2001 6:50 PM > To: php-general
lists.php.net > Subject: [PHP] anyone have... > > > anyone have a function that strips out all the characters in > a string that > are no a-z or A-Z? > > 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:
I have a couple of free days in Toronto Monday and Tuesday next week. Anybody able to gather enough of a crowd of interested bodies for a PHP tutorial? I'd say at least 10 for it to be worth my effort.
-Rasmus
attached mail follows:
Sounds tempting. Are ultra newbies welcome
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus
php.net]
Sent: Tuesday, October 23, 2001 6:48 PM
To: php-general
lists.php.net
Subject: [PHP] In Toronto Next week
I have a couple of free days in Toronto Monday and Tuesday next week. Anybody able to gather enough of a crowd of interested bodies for a PHP tutorial? I'd say at least 10 for it to be worth my effort.
-Rasmus
-- 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:
At 15:47 23/10/01 -0700, Rasmus Lerdorf wrote: >I have a couple of free days in Toronto Monday and Tuesday next week. >Anybody able to gather enough of a crowd of interested bodies for a PHP >tutorial? I'd say at least 10 for it to be worth my effort. > >-Rasmus
how about Rio, Brazil??
:))
_____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br
attached mail follows:
Hi,
Does anyone know of any active projects to port phpMyadmin to odbc, or anything similar?
cheers, andrew
attached mail follows:
So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP class, tutorial, anything in this area.. and I would love to attend one :)
Rick
attached mail follows:
> So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP > class, tutorial, anything in this area.. and I would love to attend one :)
I was there 2 months ago.
-Rasmus
attached mail follows:
ok, how about DC ? :-)
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus
php.net]
Sent: Tuesday, October 23, 2001 6:54 PM
To: Richard Baskett
Cc: PHP General
Subject: Re: [PHP] Portland, Oregon
> So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP > class, tutorial, anything in this area.. and I would love to attend one :)
I was there 2 months ago.
-Rasmus
-- 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:
Was there 3 months ago... ;)
On Tue, 23 Oct 2001, Jack Dempsey wrote:
> ok, how about DC ? :-)
>
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:rasmus
php.net]
> Sent: Tuesday, October 23, 2001 6:54 PM
> To: Richard Baskett
> Cc: PHP General
> Subject: Re: [PHP] Portland, Oregon
>
>
> > So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP
> > class, tutorial, anything in this area.. and I would love to attend one :)
>
> I was there 2 months ago.
>
> -Rasmus
>
>
> --
> 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:
Argh! Well farfinugen! My f word for the day... Well i expect to see more announcements the next time someone is in my area :) Although it will change to San Diego soon so keep me informed!
Rick
> >> So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP >> class, tutorial, anything in this area.. and I would love to attend one :) > > I was there 2 months ago. > > -Rasmus >
attached mail follows:
> if your form is inside a table .. hide the <FORM> tags
In my experience, this just "moves" the closing whitespace to the end of the table (just like if you insert text incorrectly between a <tr> and a <td>).
The previous post I've made using the "display: inline;" style is in fact W3C compliant.
attached mail follows:
On Wed, 24 Oct 2001 09:14:07 +1000, James Cave wrote: > >> if your form is inside a table .. hide the <FORM> tags > >In my experience, this just "moves" the closing whitespace to the >end of >the table (just like if you insert text incorrectly between a <tr> >and a ><td>). > >The previous post I've made using the "display: inline;" style is in >fact W3C compliant. >
I thought you might be onto something and I've always had problems with this so I gave it a try. NN4.7 and 6.1 both ignored the 'display: inline' css in my test and showed the whitespace. It may be compliant but it doesn't really work as well as hiding the form tags between table rows or cells.
here's the test I used: <table bgcolor=red><tr><form><td>form tag outside of cell</td></form></tr></table> <table bgcolor=red><tr><form><td>form tag outside of cell</td></form></tr></table> <table bgcolor=red><tr><form><td>form tag outside of cell</td></form></tr></table> <table bgcolor=blue><form><tr><td>form tag outside of row</td></tr></form></table> <table bgcolor=blue><form><tr><td>form tag outside of row</td></tr></form></table> <table bgcolor=blue><form><tr><td>form tag outside of row</td></tr></form></table> <form style="display: inline"><table bgcolor=green><tr><td>inline css</td></tr></table></form> <form style="display: inline"><table bgcolor=green><tr><td>inline css</td></tr></table></form> <form style="display: inline"><table bgcolor=green><tr><td>inline css</td></tr></table></form>
-- Mark, maggeletmminternet.com on 10/23/2001
attached mail follows:
> I gave it a try > NN4.7 and 6.1 both ignored the 'display: inline' css in my test
There was actually an error in the HTML I posted, try this:
<table bgcolor=red><tr><form><td>1. form tag outside of cell</td></form></tr></table> <table bgcolor=red><tr><form><td>2. form tag outside of cell</td></form></tr></table> <table bgcolor=red><tr><form><td>3. form tag outside of cell</td></form></tr></table> <table bgcolor=blue><form><tr><td>4. form tag outside of row</td></tr></form></table> <table bgcolor=blue><form><tr><td>5. form tag outside of row</td></tr></form></table> <table bgcolor=blue><form><tr><td>6. form tag outside of row</td></tr></form></table> <form style="display: inline;"><table bgcolor=green><tr><td>7. inline css</td></tr></table></form> <span style="display: inline;"><form style="display: inline;"><table bgcolor=green><tr><td>8. inline css on span and form</td></tr></table></form></span> <span style="display: inline;"><form style="display: inline;"><table bgcolor=green><tr><td>9. inline css on span and form</td></tr></table></form></span> <form style="display: inline;"><table bgcolor=green><tr><td>10. inline css</td></tr></table></form>
The HTML above works in IE based on the CSS applied to the form tag, in Netscape based on the CSS applied to the bounding span.
> It may be compliant but it doesn't really work as well as hiding the form tags between table rows or cells.
I actually found that the code you posted doesn't work at all, I'm using Navigator 4.74, and each table with form elements embedded simply pushes the block element to the end of the table, as described in my previous post. The HTML I've posted here actually shows whitespace between 1&2, 2&3, 3&4, 4&5, 5&6 and 7&8. No whitespace appears between 6&7, 8&9, 9&10.
Is this what you see?
IE shows no whitespace anywhere.
No whitespace between 6&7 throws me a little, considering there is whitespace between all other blocks above, but the absence of whitespace between 8&9 and 9&10 is what I was originally trying to describe.
attached mail follows:
On Wed, 24 Oct 2001 11:18:04 +1000, James Cave wrote: > >> I gave it a try >> NN4.7 and 6.1 both ignored the 'display: inline' css in my test > >There was actually an error in the HTML I posted, try this: > ><table bgcolor=red><tr><form><td>1. form tag outside of >cell</td></form></tr></table> ><table bgcolor=red><tr><form><td>2. form tag outside of >cell</td></form></tr></table> ><table bgcolor=red><tr><form><td>3. form tag outside of >cell</td></form></tr></table> ><table bgcolor=blue><form><tr><td>4. form tag outside of >row</td></tr></form></table> ><table bgcolor=blue><form><tr><td>5. form tag outside of >row</td></tr></form></table> ><table bgcolor=blue><form><tr><td>6. form tag outside of >row</td></tr></form></table> ><form style="display: inline;"><table bgcolor=green><tr><td>7. inline >css</td></tr></table></form> ><span style="display: inline;"><form style="display: inline;"><table >bgcolor=green><tr><td>8. inline css on span and >form</td></tr></table></form></span> ><span style="display: inline;"><form style="display: inline;"><table >bgcolor=green><tr><td>9. inline css on span and >form</td></tr></table></form></span> ><form style="display: inline;"><table bgcolor=green><tr><td>10. >inline >css</td></tr></table></form> > >The HTML above works in IE based on the CSS applied to the form tag, >in >Netscape based on the CSS applied to the bounding span. > >> It may be compliant but it doesn't really work as well as hiding >>the form tags between table rows or cells. > >I actually found that the code you posted doesn't work at all, I'm >using >Navigator 4.74, and each table with form elements embedded simply >pushes >the block element to the end of the table, as described in my >previous >post.
that just means you have to move the end form tag past the end of the page content.
The HTML I've posted here actually shows whitespace between >1&2, >2&3, 3&4, 4&5, 5&6 and 7&8. No whitespace appears between 6&7, 8&9, >9&10. > >Is this what you see?
yes for NN4.78, 6.1 shows only 1-6 correctly. earlier versions of netscape won't show any of these correctly but 1-6 will come the closest.
>IE shows no whitespace anywhere.
yes for 6.0 but earlier versions only show 1-6 correctly.
>No whitespace between 6&7 throws me a little, considering there is >whitespace between all other blocks above, but the absence of >whitespace >between 8&9 and 9&10 is what I was originally trying to describe. >
-- Mark, maggeletmminternet.com on 10/23/2001
attached mail follows:
Hi Rasmus,
I could not resist...How about to be here in São Paulo. I read that you lived in Brazil , is this true???
Regards
Alex Piaz Webmaster Global Map Internet Marketing http://www.globalmap.com "Be cool or be cast out" **************************************************************** RC1.0 x g/g 0/0/-/RD CP/+ 2 xk < 42% [29sep2001]
attached mail follows:
Greetings. I have been playing around with PHP this week, programming a football pool. I have hit a small snag that I would like some assistance with, if anyone knows the answer -- it's probably very simple, but my Intro to PHP book does not tell me how to do it.
I have an HTML form in a PHP page, with several controls on it. I am dynamically generating the names for these controls. Here is the example -- for each game, the user selects the winner in a <SELECT> control. It's set up to not care how many games there are for each week, just dynamically build the form/controls and name them "pick1", "pick2", etc.
In my function that handles the form and uploads the user's picks to the database (MySQL), I need to also dynamically generate the variable names that refer to these controls. I have them all declared as global variables, since I know there will never be more than 15 games in a given week. But, I want to iterate through a loop for each game and update the database. As I loop through for each game, and try to dynamically generate the vaiable names for $pick1, $pick2, etc. I end up trying to update the DB by sending in the string "$pick1" instead of the value from the form control for pick1.
I have attached the PHP file in question. The code is not very clean,
especially the part where I am having problems, but hopefully, someone will
have some time to help me with this problem. Please respond to this
newsgroup or directly to me at jmack
macksysinc.com. Thank you.
Joe Mack
begin 666 picks.php
M/#]P:' -"B\O:6YD97
N<&AP#0II;F-L=61E(BXO8V]M;6]N7V1B+FEN8R([
M#0H-"F9U;F-T:6]N('-T87)T=7 H*0T*>PT*(&=L;V)A;" D=7-E<FYA;64[
M#0H
9VQO8F%L("102%!?4T5,1CL-"B D;&EN:U]I9" ](&1B7V-O;FYE8W0H
M*3L-"B!M>7-Q;%]S96QE8W1?9&(H(F=E96MS(BD[#0H
)'%U97)Y(#T
(E-%
M3$5#5" J($923TT
=V5E:W,
5TA%4D4
86-T:79E(#T
,2!/4D1%4B!"62!W
M965K:60
05-#(CL-"B D<F5S=6QT(#T
;7ES<6Q?<75E<GDH)'%U97)Y*3L-
M"
T*/SX-"CQH=&UL/
T*/&)O9'D
0D=#3TQ/4CTB8FQU92(^#0H\0T5.5$52
M/
T*/$)2/CQ"4CX\0E(^#0H\2#,^4V5L96-T(&$
5V5E:R!T;R!"96=I;CPO
M2#,^#0H\8G(^/$)2/
T*/&9O<FT
;65T:&]D/2)P;W-T(B!A8W1I;VX
/2 B
M/#\
96-H;R D4$A07U-%3$8
/SXB/
T*("
("
/$E.4%54(%194$4](DA)
M1$1%3B(
3D%-13TB86-T:6]N(B!604Q513TB<VAO=U]W965K(CX-"B
("
M(#Q)3E!55"!465!%/2)(241$14XB($Y!344](G5S97)N86UE(B!604Q513TB
M/#\
96-H;R D=7-E<FYA;64
/SXB/
T*"3Q$258
86QI9VX](F-E;G1E<B(^
M/&-E;G1E<CX-"
D)/'1A8FQE(&)O<F1E<CTB,2(
=VED=&
](C(P,"(
8V5L
M;'!A9&1I;F<](C(B/
T*"0D)/'1R/
T*"0D)"3QT9"!W:61T:#TB.#4E(B!!
M3$E'3B ](")#14Y415(B(&YO=W)A<#X-"
D)"0D)/%-%3$5#5"!N86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*("1G86UE<U]R97-U;'0
/2!M>7-Q;%]Q=65R>2
D9V%M97-?
M<75E<GDI.PT*("1N=6U?9V%M97,
/2!M>7-Q;%]N=6U?<F]W<R
D9V%M97-?
M<F5S=6QT*3L-"B!E8VAO(")&;W5N9" D;G5M7V=A;65S(&=A;65S+CQ"4CXB
M.PT*(&9O<B H)&D],#LD:3PD;G5M7V=A;65S.R1I*RLI#0H
>PT*("
(" D
M9V%M95]D871A(#T
;7ES<6Q?9F5T8VA?<F]W*"1G86UE<U]R97-U;'0I.PT*
M("
("!I9B H)&=A;65?9&%T85LQ72 A/2 B,2(I#0H
("
('L-"B
("
M("
(&EF("
D<V5L96-T960
/3T
=')U92D-"B
("
("
('L-"B
("
M("
("
(" D<75E<GE?<W1R(#T
(B1P:6-K)&DB.PT*("
("
("
("
M("1S96QE8W1?<75E<GD
/2 B55!$051%('-E;&5C=&EO;G,
4T54('!I8VL
M/2 B.PT*("
("
("
("
("1S96QE8W1?<75E<GD
+CT
(B1Q=65R>5]S
M='(
(CL-"B
("
("
("
(" D<V5L96-T7W%U97)Y("X](")72$5212!W
M965K(#T
)'=E96L
04Y$(&=A;64
/2 D9V%M92!!3D0
=7-E<B ]("1U<V5R
M:60B.PT*("
("
("
("
("1S96QE8W1?<F5S=6QT(#T
;7ES<6Q?<75E
M<GDH)'-E;&5C=%]Q=65R>2D[#0H
("
("
("!]#0H
("
("
("!E;'-E
M#0H
("
("
("Y(#T
(DE.4T525"!)
M3E1/('-E;&5C=&EO;G,
5D%,5453("AN=6QL+" D=7-E<FED+" D=V5E:RP-
M"B
("
("
("
("
("
("
("
("
("1G86UE7V1A=&%;,%TL("([
M#0H
("
("
("
("
)'-E;&5C=%]Q=65R>2 N/2 B)'%U97)Y7W-T<BP
M;G5L;"DB.PT*("
("
("
("
("1S96QE8W1?<F5S=6QT(#T
;7ES<6Q?
M<75E<GDH)'-E;&5C=%]Q=65R>2D[#0H
("
("
("!]#0H
("
('T-"B
M("
96QS90T*("
("![#0H
("
("
("!E8VAO("));B!-;VYD87D
;&]O
M<"!A="!R97-U;'0
<F]W(&YU;6)E<B D:2X\0E(^(CL-"B
("
("
:68
M*"1S96QE8W1E9" ]/2!T<G5E*0T*("
("
("
>PT*("
("
("
("
M("1Q=65R>5]S='(
/2 B<&EC:R1I(CL-"B
("
("
("
(" D<V5L96-T
M7W%U97)Y(#T
(E501$%412!S96QE8W1I;VYS(%-%5"!P:6-K(#T
(CL-"B
M("
("
("
(" D<V5L96-T7W%U97)Y("X]("(D)'%U97)Y7W-T<BP
<&]I
M;G1S(#T
)'!O:6YT<R!72$5212!W965K(#T
)'=E96L-"B
("
("
("
M("
("
("
("
("
($%.1"!G86UE(#T
)&=A;64
04Y$('5S97(
/2 D
M=7-E<FED(CL-"B
("
("
("
(" D<V5L96-T7W)E<W5L=" ](&UY<W%L
M7W%U97)Y*"1S96QE8W1?<75E<GDI.PT*("
("
("
?0T*("
("
("
M96QS90T*("
("
("
>PT*("
("
("
("
("1Q=65R>5]S='(
/2 B
M<&EC:R(
+B B)&DB.PT*("
("
("
("
("1Q=65R>5]V86QU92 ]("(D
M(B N("1Q=65R>5]S='([#0H
("
("
("
("
96-H;R B475E<GD
4W1R
M:6YG("TM("1Q=65R>5]S='(N/$)2/B([#0H
("
("
("
("
)'-E;&5C
M=%]Q=65R>2 ]("))3E-%4E0
24Y43R!S96QE8W1I;VYS(%9!3%5%4R H;G5L
M;"P
)'5S97)I9"P
)'=E96LL#0H
("
("
("
("
("
("
("
("
M(" D9V%M95]D871A6S!=+" B.PT*("
("
("
("
("1S96QE8W1?<75E
M<GD
+CT
(B1Q=65R>5]V86QU92P
)'!O:6YT<RDB.PT*("
("
("
("
M("1Q=65R>5]T=V\
/2 D<V5L96-T7W%U97)Y.PT*("
("
("
("
(&5C
M:&\
(DUY4U%,(%%U97)Y("TM("1Q=65R>5]T=V\N/$)2/B([#0H
("
("
M("
("
)'-E;&5C=%]R97-U;'0
/2!M>7-Q;%]Q=65R>2
D<V5L96-T7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
0" B
M.PT*("
("1T96%M7W%U97)Y(#T
(E-%3$5#5"!C:71Y+"!M87-C;W0
1E)/
M32!T96%M<R!72$5212!T96%M:60
/2 D9V%M95]D871A6S-=(CL-"B
(" D
M=&5A;5]R97-U;'0
/2!M>7-Q;%]Q=65R>2
D=&5A;5]Q=65R>2D[#0H
("
M)&AO;65?9&%T82 ](&UY<W%L7V9E=&-H7W)O=R
D=&5A;5]R97-U;'0I.PT*
M("
(&5C:&\
(B1H;VUE7V1A=&%;,%T
)&AO;65?9&%T85LQ73PO5$0^(CL-
M"B
(" D<V5L96-T7VYA;64
/2 B<&EC:R1K(CL-"B
("!E8VAO("(\5$0
M04Q)1TX]7"),14947"(^/%-%3$5#5"!.04U%/5PB)'-E;&5C=%]N86UE7"(^
M(CL-"B
("!E8VAO("(\3U!424].(%9!3%5%/5PB)&=A;65?9&%T85LT75PB
M("([#0H
("
:68
*"1G86UE7V1A=&%;-%T
/3T
)'!I8VMS7V%R<F%Y6R1G
M86UE7V1A=&%;-%U=*0T*("
("
(&5C:&\
(E-%3$5#5$5$(CL-"B
("!E
M8VAO("(^)&%W87E?9&%T85LP72([#0H
("
96-H;R B/$]05$E/3B!604Q5
M13U<(B1G86UE7V1A=&%;,UU<(B B.PT*("
(&EF("
D9V%M95]D871A6S-=
M(#T]("1P:6-K<U]A<G)A>5LD9V%M95]D871A6S-=72D-"B
("
("!E8VAO
M(")314Q%0U1%1"([#0H
("
96-H;R B/B1H;VUE7V1A=&%;,%TB.PT*("
M(&5C:&\
(CPO4T5,14-4/B([#0H
("
:68
*"1G86UE7V1A=&%;-5T
/3T
M,2D-"B
("
("!E8VAO("(\5$0
04Q)1TX]7")#14Y415)<(CX\24Y0550
M5%E013U<(G1E>'1<(B!.04U%/5PB<&]I;G1S7"(
4TE:13U<(C5<(CX\+U1$
M/B([#0H
("
96QS90T*("
("
("!E8VAO("(\5$0
04Q)1TX]7")#14Y4
M15)<(CX\+U1$/B([#0H
("
96-H;R B/"]44CXB.PT*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
M:6-E/"]T:#X-"
D\=&
=VED=&
](C$P)2(
86QI9VX](F-E;G1E<B(
;F]W
M<F%P/E!O:6YT<SPO=&
^#0H
("
(#PO='(^#0H\9F]R;2!M971H;V0](G!O
M<W0B(&%C=&EO;CTB/#\
96-H;R D4$A07U-%3$8
/SXB/
T*("
("
/$E.
M4%54(%194$4](DA)1$1%3B(
3D%-13TB86-T:6]N(B!604Q513TB;6%K95]S
M96QE8W1I;VYS(CX-"B
("
(#Q)3E!55"!465!%/2)(241$14XB($Y!344]
M(G5S97)N86UE(B!604Q513TB/#\
96-H;R D=7-E<FYA;64
/SXB/
T*("
M("
/$E.4%54(%194$4](DA)1$1%3B(
3D%-13TB=7-E<FED(B!604Q513TB
M/#\
96-H;R D=7-E<FED(#\^(CX-"B
("
(#Q)3E!55"!465!%/2)(241$
M14XB($Y!344](G=E96LB(%9!3%5%/2(\/R!E8VAO("1W965K(#\^(CX-"CP_
M#0IF;W(H)&L],#LD:SQM>7-Q;%]N=6U?<F]W<R
D<F5S=6QT*3LD:RLK*0T*
M>PT*("
("1G86UE7V1A=&$
/2!M>7-Q;%]F971C:%]R;W<H)')E<W5L="D[
M#0H
("
96-H;R B/%12/B([#0H
("
96-H;R B/%1$($%,24=./5PB0T5.
M5$527"(^)&=A;65?9&%T85LP73PO5$0^(CL-"B
("!E8VAO("(\5$0
04Q)
M1TX]7")#14Y415)<(CXD9V%M95]D871A6S%=/"]41#XB.PT*("
(&5C:&\
M(CQ41"!!3$E'3CU<(D-%3E1%4EPB/B1G86UE7V1A=&%;,ET\+U1$/B([#0H
M("
96-H;R B/%1$($%,24=./5PB0T5.5$527"(^)&=A;65?9&%T85LW73PO
M5$0^(CL-"B
(" D=&5A;5]Q=65R>2 ](")314Q%0U0
8VET>2P
;6%S8V]T
M($923TT
=&5A;7,
5TA%4D4
=&5A;6ED(#T
)&=A;65?9&%T85LT72([#0H
M("
)'1E86U?<F5S=6QT(#T
;7ES<6Q?<75E<GDH)'1E86U?<75E<GDI.PT*
M("
("1A=V%Y7V1A=&$
/2!M>7-Q;%]F971C:%]R;W<H)'1E86U?<F5S=6QT
M*3L-"B
("!E8VAO("(\5$0
04Q)1TX]7"),14947"(^)&%W87E?9&%T85LP
M72 D87=A>5]D871A6S%=($
(CL-"B
(" D=&5A;5]Q=65R>2 ](")314Q%
M0U0
8VET>2P
;6%S8V]T($923TT
=&5A;7,
5TA%4D4
=&5A;6ED(#T
)&=A
M;65?9&%T85LS72([#0H
("
)'1E86U?<F5S=6QT(#T
;7ES<6Q?<75E<GDH
M)'1E86U?<75E<GDI.PT*("
("1H;VUE7V1A=&$
/2!M>7-Q;%]F971C:%]R
M;W<H)'1E86U?<F5S=6QT*3L-"B
("!E8VAO("(D:&]M95]D871A6S!=("1H
M;VUE7V1A=&%;,5T\+U1$/B([#0H
("
)'-E;&5C=%]N86UE(#T
(G!I8VLD
M:R([#0H
("
96-H;R B/%1$($%,24=./5PB3$5&5%PB/CQ314Q%0U0
3D%-
M13U<(B1S96QE8W1?;F%M95PB/B([#0H
("
96-H;R B/$]05$E/3B!604Q5
M13U<(B1G86UE7V1A=&%;-%U<(CXD87=A>5]D871A6S!=(CL-"B
("!E8VAO
M("(\3U!424].(%9!3%5%/5PB)&=A;65?9&%T85LS75PB/B1H;VUE7V1A=&%;
M,%TB.PT*("
(&5C:&\
(CPO4T5,14-4/B([#0H
("
:68
*"1G86UE7V1A
M=&%;-5T
/3T
,2D-"B
("
("!E8VAO("(\5$0
04Q)1TX]7")#14Y415)<
M(CX\24Y0550
5%E013U<(G1E>'1<(B!.04U%/5PB<&]I;G1S7"(
4TE:13U<
M(C5<(CX\+U1$/B([#0H
("
96QS90T*("
("
("!E8VAO("(\5$0
04Q)
M1TX]7")#14Y415)<(CX\+U1$/B([#0H
("
96-H;R B/"]44CXB.PT*#0I]
M#0H_/
T*("
("
(" \5%(^#0H
("
("
("
(" \5$0
8V]L<W!A;CTB
M,3 B($%,24=./2)C96YT97(B/
T*("
("
("
("
("
(#Q)3E!55"!T
M>7!E/2)354)-250B(%9!3%5%/2)%;G1E<B!0:6-K<R(^#0H
("
("
("
M(" \+U1$/
T*("
("
(" \+U12/
T*/#\-"
T*("!]#0I]#0H-"G-W:71C
M:"
D86-T:6]N*0T*>PT*("
(&1E9F%U;'0Z#0H
("
("
("!S=&%R='5P
M*"D[#0H
("
8G)E86L[#0H
("
8V%S92 B<VAO=U]W965K(CH-"B
("
M("
('-H;W=?=V5E:R
I.PT*("
(&)R96%K.PT*("
(&-A<V4
(FUA:V5?
M<V5L96-T:6]N<R(Z#0H
("
("
("!M86ME7W-E;&5C=&EO;G,H*3L-"B
5("!B<F5A:SL-"GT-"
T*/SX-"
T*
`
end
attached mail follows:
The best way to do this is not to call them pick1, pick2, etc.. but call them all pick[].
Here's an example:
<select name="pick[]"> <option value="STL">St. Louis</option> <option value="WAS">Washington</option> </select> <select name="pick[]"> <option value="STL">St. Louis</option> <option value="WAS">Washington</option> </select>
Then in your PHP code you can do it like this:
<?php foreach ($HTTP_POST_VARS['pick'] as $key => $value) { echo $value.'<br />'; } ?>
or, if you prefer more traditional syntax:
<?php for ($i=0; $i<count($pick); $i++) { echo $pick[$i].'<br />'; } ?>
Mike Eheler
JMack wrote:
>Greetings. I have been playing around with PHP this week, programming a
>football pool. I have hit a small snag that I would like some assistance
>with, if anyone knows the answer -- it's probably very simple, but my Intro
>to PHP book does not tell me how to do it.
>
>I have an HTML form in a PHP page, with several controls on it. I am
>dynamically generating the names for these controls. Here is the example --
>for each game, the user selects the winner in a <SELECT> control. It's set
>up to not care how many games there are for each week, just dynamically
>build the form/controls and name them "pick1", "pick2", etc.
>
>In my function that handles the form and uploads the user's picks to the
>database (MySQL), I need to also dynamically generate the variable names
>that refer to these controls. I have them all declared as global variables,
>since I know there will never be more than 15 games in a given week. But, I
>want to iterate through a loop for each game and update the database. As I
>loop through for each game, and try to dynamically generate the vaiable
>names for $pick1, $pick2, etc. I end up trying to update the DB by sending
>in the string "$pick1" instead of the value from the form control for pick1.
>
>I have attached the PHP file in question. The code is not very clean,
>especially the part where I am having problems, but hopefully, someone will
>have some time to help me with this problem. Please respond to this
>newsgroup or directly to me at jmack
macksysinc.com. Thank you.
>
>Joe Mack
>
>
>
>
>
>
attached mail follows:
Try using urlencode function to make it "usable" on url, so char symbols like & or / or . (dot) will be returned by this funtion like a % with the hex ascii code near by... I hope this helps...
----- en español... transandino compañero phpero
Intenta codificando para url, empleando la función urlencode, tal que símbolos "no apropiados para la URL" serán presentados como % y el código hexadecimal.
Espero que esto ayude...
----- Original Message -----
From: "German Pablo Gentile" <german.gentile
horizonteit.com.ar>
To: <php-general
lists.php.net>
Sent: Tuesday, October 23, 2001 5:41 PM
Subject: [PHP] POST and & trouble.
> I´m using post to send a variable between pages.
> I have a variable value like that 'Jeff&Company', so i have in the
> header :
> loginok.php?client_id=14&client_name=Jeff&Company
>
> Loginok page take the value at client_name as Jeff. Truncate the real
> value.
>
> How in can fix that?
>
> Thanks in advance.
>
> Germán Pablo Gentile
> IT Manager
> Horizonte Soluciones de IT
> www.horizonteit.com.ar
> german.gentile
horizonteit.com.ar
>
>
> --
> 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:
When will 4.0.7 be out? I heard that the CVS branch is on 4.0.8-dev at the moment, but what happend to 4.0.7?
Saludos... ;-)
-- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarquesunl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------
attached mail follows:
> When will 4.0.7 be out? I heard that the CVS branch is on 4.0.8-dev at the > moment, but what happend to 4.0.7?
Next release will most likely be 4.1. Probably another 2-3 weeks away unless everyone really focuses on fixing the remaining regression test issues and a few more outstanding critical bugs quickly.
-Rasmus
attached mail follows:
Hello,
Looking for statically linked pre compiled ImageMagic binaries (convert, mogrify, ect.) to run from the cgi, with PHP exec on FreeBSD.
thanks,
attached mail follows:
Neat! Unfortunately it looks like it designed simply to be able to generate unique ids - this isnt much use to me unless I have a way to query whether the request that generated the id is still active.
Doesn't matter.....
At 09:11 23/10/2001 -0700, Christopher William Wesley wrote: >On Tue, 23 Oct 2001, Brian White wrote: > > > process ID belongs to Apache. What I was wondering was there any kind > > of ID that was attached to a particular CGI request that I could > > access and use? > >Yes. Use the Apache module, mod_unique_id, and then in your environment, >$UNIQUE_ID will be available. Every request to httpd gets its own >UNIQUE_ID. > >Details here: >http://httpd.apache.org/docs/mod/mod_unique_id.html
-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web: http://www.steptwo.com.au/
Email: bwhite
steptwo.com.au
attached mail follows:
I have a page that calls a image creating script lots of times... this script takes two parameters... the type of graph to be created and an array with data to fill the graph to be created...
now I'm doing it like this:
<img src="<?=WEB_ROOT."/adm/relatorio_graph.php?tipo=catviews&emp_graphArray=".urlencode($categs)?>">
and it generates an output something like this:
<img src="/vitrine/adm/relatorio_graph.php?tipo=catviews&emp_graphArray=a%3A3%3A%7Bi%3A2%3Ba%3A2%3A%7Bs%3A4%3A%22view%22%3Bi%3A22%3Bs%3A5%3A%22click%22%3Bi%3A1%3B%7Di%3A3%3Ba%3A1%3A%7Bs%3A4%3A%22view%22%3Bi%3A12%3B%7Di%3A4%3Ba%3A2%3A%7Bs%3A4%3A%22view%22%3Bi%3A10%3Bs%3A5%3A%22click%22%3Bi%3A1%3B%7D%7D">
it works just fine.. all the graphs show up perfectly...
but I was wondering if there is a better way of doing this... I tried with sessions, but I couldn't get the varible to be reseted correctly between two graphs of the same type... and they would repeat...
any ideas?
_____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br
attached mail follows:
I want to know how many data can a session hold?
The number of bytes... and if possible the max size of an - let's say - array of ints. I need this to know how many IDs I can hold in the session...
_____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br
attached mail follows:
On Tue, 23 Oct 2001 16:35, Grant Walters wrote: > I'm going nuts trying to work out how to handle errors from data > statement with single quotes. PHP 4.0.6 appears to be mangling > something somewhere. > All statements work with the Openlink odbctest program > Any help appreciated > > <? > $conn = odbc_connect("$dsn","","","$cursor"); > $sql="SELECT ID,Category,description FROM card_type WHERE > description='IMPEYS'"; echo "<BR><b>SQL:</b> $sql<BR>"; > $results = odbc_do($conn,$sql); > if ($results) { > while (odbc_fetch_into($results,$row)) { > echo $row[0]." ".$row[1]." ".$row[2]."\n"; > } > } > $sql="SELECT ID,Category,description FROM card_type WHERE description > LIKE '%PEP%'"; echo "<BR><b>SQL:</b> $sql<BR>"; > $results = odbc_do($conn,$sql); > if ($results) { > while (odbc_fetch_into($results,$row)) { > echo $row[0]." ".$row[1]." ".$row[2]."\n"; > } > } > $sql='SELECT ID,Category,description FROM card_type WHERE description > LIKE "%PEP%"'; echo "<BR><b>SQL:</b> $sql<BR>"; > $results = odbc_do($conn,$sql); > if ($results) { > while (odbc_fetch_into($results,$row)) { > echo $row[0]." ".$row[1]." ".$row[2]."\n"; > } > } > $sql='SELECT ID,Category,description FROM card_type WHERE > description="PEPPERELL\'S"'; echo "<BR><b>SQL:</b> $sql<BR>"; > $results = odbc_do($conn,$sql); > if ($results) { > while (odbc_fetch_into($results,$row)) { > echo $row[0]." ".$row[1]." ".$row[2]."\n"; > } > } > $sql="SELECT ID,Category,description FROM card_type WHERE > description=\"PEPPERELL'S\""; echo "<BR><b>SQL:</b> $sql<BR>"; > $results = odbc_do($conn,$sql); > if ($results) { > while (odbc_fetch_into($results,$row)) { > echo $row[0]." ".$row[1]." ".$row[2]."\n"; > } > } > ?>
If I were doing that with mysql, I would use $sql="SELECT ID,Category,description FROM card_type WHERE description='PEPPERELL\'S'; echo "<BR><b>SQL:</b> $sql<BR>";
Given that you are probably getting the description value passed in, you might want to check your magic_quotes settings, and also perhaps echo the incoming value for description to see whether it is as you expect.
You might have to play around with addslashes to get the right result.
> OUTPUT
> > SQL: SELECT ID,Category,description FROM card_type WHERE > description="PEPPERELL'S" Warning: SQL error: > [OpenLink][ODBC][Driver]Syntax error or access, SQL state 37000 in > SQLExecDirect in /usr/local/.WWW/WEBS/_odbc/test.php3 on line 58 > > > Regards > > Grant Walters > Brainbench 'Most Valuable Professional' for Unix Admin > Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW > ZEALAND Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989
Ah, how's the wind today? :-)
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA"I was removed from office," said Tom disappointedly.
attached mail follows:
a
attached mail follows:
adddddddddddd
attached mail follows:
This is probably the most challenging question I've ever seen come across this list.
Can we get back to you on this one, Franco?
At 07:52 PM 10/23/2001, Franco Breciano wrote:
>adddddddddddd
>
>
>
>--
>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
Sliante, Richard S. Crawford
http://www.mossroot.com
mailto:rscrawford
mossroot.com
AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupéry
"Push the button, Max!"
attached mail follows:
I'm using php to retrieve a Query from a SQLServer 7.0 database.
My code is this one:
$base = mssql_select_db($db,$conexion);
$sql="SELECT MarcasSolicitante FROM Marcas";
$result = mssql_query($sql,$conexion);
while ($myrow = mssql_fetch_array($result)) { $mensaje= $myrow["MarcasSolicitante"];
?> <p><strong><font size="4"><u>Mensaje:</u></strong>    </u> <font size="3"><?echo $mensaje;?> </font></a></P> <hr>
<....> <....>
The problem is that the field MarcasSolicitante in the database is VarChar(7000), and php receives a Char(255), what I'm I doing wrong? Isi there any parameter I can modify in order to retrieve correctly the fields??
Thanks in advance
attached mail follows:
my understanding (and i could be totally wrong) is varchar only accepts values up to 255 (so does char). To get larger than that you have to use 'text' (i.e. create table <name> (<column> text not null......);
-----Original Message-----
From: Franco Breciano [mailto:fbrecia
fi.uba.ar]
Sent: Tuesday, October 23, 2001 7:59 PM
To: php-general
lists.php.net
Subject: [PHP] MSSQL 7.0 and PHP
I'm using php to retrieve a Query from a SQLServer 7.0 database.
My code is this one:
$base = mssql_select_db($db,$conexion);
$sql="SELECT MarcasSolicitante FROM Marcas";
$result = mssql_query($sql,$conexion);
while ($myrow = mssql_fetch_array($result)) { $mensaje= $myrow["MarcasSolicitante"];
?> <p><strong><font size="4"><u>Mensaje:</u></strong>    </u> <font size="3"><?echo $mensaje;?> </font></a></P> <hr>
<....> <....>
The problem is that the field MarcasSolicitante in the database is VarChar(7000), and php receives a Char(255), what I'm I doing wrong? Isi there any parameter I can modify in order to retrieve correctly the fields??
Thanks in advance
-- 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:
Hi, Now that emacs has tty color support, I'm trying to get it to do php syntax highlighting through a windows telnet/ssh client like securecrt or teraterm but I haven't gotten it yet. Has anyone got this working?
attached mail follows:
Hi there,
I installed PHP 4.0.6 on a Windows 2000 machine running Apache 1.3.22. I followed all the instructions for installation - added the php.ini file to the C:\winnt directory, added php to httpd.conf. I tried both the module and the CGI versions and the following problem still persisted: Whenever I try to use the mail() function to send a an e-mail with a single file attachment, I receive a server error.
If I set the SMTP variable in php.ini to localhost (where I am running an SMTP server) , I receive a PHP error and Apache logs a 'Premature end of script headers: C:/php/php.exe' error. If my SMTP variable is set to either a remote host, php reports in the next browser window of a server error at the line containing the mail() function call.
Do I have a permissions issue with any of my files or directories? I did not know how to set the IUSR_MachineName permissions as described in the instructions. Do I need to create such a user? where do I find it if it exists?
Thanks for any response,
Yuval
attached mail follows:
You need to make sure you have a few things configured on you SMTP Virtual server.
Start IISAdmin and right click on 'Default SMTP Virtual Server' then choose properties.
Ok, from here, things might not match perfectly because i'm running Windows XP (no i didn't pirate it, i work for microsoft).
Under the access tab in access control, click authentication make sure that anonymous access is checked. you can leave basic auth and integrated windows auth checked also click ok click on relay under relay restrictions add your local machine to the list allowed to relay, and enable relaying go to the delivery tab under outbound security, verify it's set to anonymous access.
If all this stuff is setup, you should be able to use mail() -
//Nick
-----Original Message-----
From: Yuval Zukerman [mailto:yuval
zukermans.com]
Sent: Tuesday, October 23, 2001 8:31 PM
To: php-general