php-windows Digest 21 Aug 2001 23:09:21 -0000 Issue 714 Topics (messages 8973 through 8983): Re: Paths, Windows and PHP 8973 by: Craig Morrison 8977 by: Angie Tollerson 8979 by: Craig Morrison Array 8974 by: Sichta Daniel 8978 by: Mike Flynn Re: win2k install issues 8975 by: Ryan R: [PHP-WIN] Array 8976 by: Darvin Andrioli PHP MSDOS Console 8980 by: SereyVuth Hong R: [PHP-WIN] PHP MSDOS Console 8981 by: Darvin Andrioli About "no-cache" 8982 by: science How do I get information from a URL? 8983 by: Jeff Howard Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Ideally yes. But changing the PATH envinroment variable is a much cleaner solution than copying files all over the place. Phil Driscoll wrote: > > Surely the ideal solution to this problem is to have php.exe php4ts.dll and > all the other dlls in the same directory (e.g. c:\php) then there's no > messing around with paths? > > Cheers > -- > Phil Driscoll -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org
hehe...I think that was my original advice in the whole long email discussion that stemmed this. (check Image Functions thread). The most straight forward and simple solution for everyone is to just put all those files together in one place. But if others want to go the more advanced route(which keeps dll's neatly in their own folder), I think Craig was just offering how to for anyone wondering. Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> Phil Driscoll <[EMAIL PROTECTED]> 08/21/01 05:05AM >>> Surely the ideal solution to this problem is to have php.exe php4ts.dll and all the other dlls in the same directory (e.g. c:\php) then there's no messing around with paths? Cheers -- Phil Driscoll -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
The obvious solution to the problem is to have the installer take care of this in the first place. I would be _more_ than happy to help in this regard. I've spent a little time doing this sort of thing and would be more than happy to help out. What we need to remember is the point of view of the developer and the end-user. The developer wants to keep the projects seperate so he/she can have an easier time debugging. Round up the troops, figure out the best method for both sides. I'd be more than happy to write an installer that keeps us all in business. Deal? Angie Tollerson wrote: > > hehe...I think that was my original advice in the whole long email discussion that >stemmed this. (check Image Functions thread). The most straight forward and simple >solution for everyone is to just put all those files together in one place. But if >others want to go the more advanced route(which keeps dll's neatly in their own >folder), I think Craig was just offering how to for anyone wondering. > > >>> Phil Driscoll <[EMAIL PROTECTED]> 08/21/01 05:05AM >>> > Surely the ideal solution to this problem is to have php.exe php4ts.dll and > all the other dlls in the same directory (e.g. c:\php) then there's no > messing around with paths? -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org
Hi there !! cfg: php4.0.4pl1, w2k, apache 1.3.20 Situation: <? for ($i=1; $i<6; $i++) { <input type="text" name="test"> } ?> This is all in one form. How can I get all five values of test from this kind of code ? DAN
Alternately, though I think the array solution is probably the most durable, you could also do it as such: for ($i = 1; $i<6; $i++) { print "<input type=\"text\" name=\"test$i\">\n"; } and then retrieve them as $test1 thru $test6, or if you want to use a loop like this: for ($i = 1; $i < 6; $i++) { $thevariable = "test$i"; $thevalue = $$thevariable; } At 03:36 PM 8/21/2001 +0200, Darvin Andrioli wrote: >Change your code in: > > <? > for ($i=1; $i<6; $i++) { ><input type="text" name="test[$i]"> >} >?> > >You will obtain an array, named test, with 5 elements. > >Bye > >Darvin > > > -----Messaggio originale----- > > Da: Sichta Daniel [mailto:[EMAIL PROTECTED]] > > Inviato: martedi 21 agosto 2001 15.15 > > A: [EMAIL PROTECTED] > > Oggetto: [PHP-WIN] Array > > > > > > Hi there !! > > cfg: php4.0.4pl1, w2k, apache 1.3.20 > > Situation: > > <? > > for ($i=1; $i<6; $i++) { > > <input type="text" name="test"> > > } > > ?> > > This is all in one form. How can I get all five values of test from this > > kind of code ? > > > > DAN > > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -=- Mike Flynn - Burlington, VT -=- [EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood * the classic example of liberal, consensus, win-win, Clintonesque, spin doctor, sell-out, cultural appropriation, commodification of dissent type event in the world today (-BBB)
[Tue Aug 21 20:52:45 2001] [error] [client 192.168.1.2] Invalid URI in request POST /project/hello.php HTTP/1.1 my apache config like Darren's What's my problem? "Julie Meloni" <[EMAIL PROTECTED]> ????? [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > DA> This is my exact configuration, in my http.conf file on apache. My php.ini > DA> has been edited as well. when I run any scripts nothing happens. If I view > DA> source the php code is visible. > > If there are no errors in your error log, look for and delete a hidden > file extension of txt that is probably on the end of your PHP file, ie > scriptname.php.txt > > > > Julie Meloni > [EMAIL PROTECTED] > "PHP Essentials" & "PHP Fast & Easy" > --- www.thickbook.com --- >
Change your code in: <? for ($i=1; $i<6; $i++) { <input type="text" name="test[$i]"> } ?> You will obtain an array, named test, with 5 elements. Bye Darvin > -----Messaggio originale----- > Da: Sichta Daniel [mailto:[EMAIL PROTECTED]] > Inviato: martedi 21 agosto 2001 15.15 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] Array > > > Hi there !! > cfg: php4.0.4pl1, w2k, apache 1.3.20 > Situation: > <? > for ($i=1; $i<6; $i++) { > <input type="text" name="test"> > } > ?> > This is all in one form. How can I get all five values of test from this > kind of code ? > > DAN >
Dir All, I'm a new PHP, and using PWS4.0 + PHP4.0.6-dev. It is nice to request (*.php) from browser. But I want to run *.php thru MSDOS console, so I try eg. 1/ c:\php>php -q -f hello.php => Hello ---hello.php--- <? echo "Hello"; ?> I need to pass some arguments to hello.php, but I do not know how to get the arguments from command line in hello.php. eg: 2/ c:\php>php -q -f hello.php Mr. Jonh Smith => Hello Mr. Jonh Smith ---hello.php--- <? echo "Hello".??????????????????; ?> Please give me any idea how to do this. Thanks, SereyVuth Hong Phnom Penh, Cambodia
The PHP use the C_style to access to the command line. So $argv[1] is the first parameter, $argv[2] the second and so on... $argc is the number of parameters. Greatings Darvin > -----Messaggio originale----- > Da: SereyVuth Hong [mailto:[EMAIL PROTECTED]] > Inviato: marted́ 21 agosto 2001 17.55 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] PHP MSDOS Console > > > Dir All, > > I'm a new PHP, and using PWS4.0 + PHP4.0.6-dev. > It is nice to request (*.php) from browser. > > But I want to run *.php thru MSDOS console, > so I try eg. > 1/ c:\php>php -q -f hello.php => Hello > ---hello.php--- > <? > echo "Hello"; > ?> > > I need to pass some arguments to hello.php, > but I do not know how to get the arguments from command line in hello.php. > eg: > 2/ c:\php>php -q -f hello.php Mr. Jonh Smith => Hello Mr. Jonh Smith > ---hello.php--- > <? > echo "Hello".??????????????????; > ?> > > Please give me any idea how to do this. > > Thanks, > SereyVuth Hong > Phnom Penh, Cambodia > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Hi all, I am using cookie to write a counting page but when the page is refreshed, it will increase by 1 automatically. According to this problem, I used following lines but it doesn't work ---------------------------------------------------------------------------- -- header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); ---------------------------------------------------------------------------- --- even I used html script <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> Well, Is there anyone who knows how to prevent the page to be cached? Thanks a lot
I'm trying to get information from a URL in a way similar to utilizing GET in ASP. I know how to get information by submitting a form and going to a new page, but how can I use the form to stay on the same page, yet be able to retrieve the information? For example: I start on http://www.mypage.com. I have a form to submit some information, but want to remain on this page. The result of the query looks like: http://www.mypage.com?id=5 I want to be able to extract the 5