Re: [PHP-WIN] Problem with $GLOBALS
can you explain why register globals is a big security risk?? if you have register globals on and a user goes to http://www.site.com/index.php?visitor=10 $visitor is set to 10 so yes they can change the integer for visitor but even with register globals off they can change it there too. cause you script just does $_POST['visitor'] it still retrieves the same value from the querystring, that is unless you use GET instead of POST also which is better and more secure to use GET or POST??? Joe Crawford Jr. On Sun, 18 May 2003 11:58:01 +0100, [EMAIL PROTECTED] (Stephen) wrote: >Of more use is probably a description of how things now work. Register >Globals represents quite a large security risk to PHP scripts as it allows a >visitor to your site to define the value of ANY variable. Instead, there are >now a fixed number of "super global arrays". Rather than defining lots of >individual variables, all pre-script defined variables are put into one big >array. Its easier to understand with an example > >A user goes to http://mysite.com/index.php?visitorid=10 > >with register globals, this defines $visitorid as '10' > >without register globals, the only way to access this data is by using >$_GET['visitorid'] > >The later example is the preferd use, I strongly suggest learning to use it. >BTW, you are using the same book I used! I thought it was quite a good one, >although since then i've picked a lot up from the php manual and this >helplist. > >$_POST[''] for all post variables - eg >$_GET[''] for all get variables, that is variables from the url (as above) >$_SESSION[''] for all session variables. Sessions have changed a lot since >the book was written. > >Those are the three main ones. I would give you a link to the correct page >in the php manual but it appears to be down at the moment! > >Stephen > >- Original Message - >From: "Jim George" <[EMAIL PROTECTED]> >To: "Jennifer S." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Sunday, May 18, 2003 8:26 AM >Subject: RE: [PHP-WIN] Problem with $GLOBALS > > >> Jenifer, >> >> thanks for that, worked beautifully. >> >> Jim >> -Original Message- >> From: Jennifer S. [mailto:[EMAIL PROTECTED] >> Sent: 18 May 2003 05:43 >> To: Jim George; [EMAIL PROTECTED] >> Subject: Re: [PHP-WIN] Problem with $GLOBALS >> >> >> The book assumes that you have "register globals" set to "on" in your >> php.ini file. By default it's off now. Change it to "on" and you should be >> OK. >> >> Cheers, >> Jennifer >> >> >> Jim George <[EMAIL PROTECTED]> wrote: >> Folks, >> >> I'm a total newbie with PHP and I've been working through "SAMS Teach >> yourself PHP in 24 hours". >> I got to Hour 9 where they introduced the concept of predefined >> variables >> and the $GLOBALS variable. Neither of these appear to work generating >> all >> sorts of errors. >> Please find below a listing. Can someone help me please? >> Thanks. >> >> Jim >> >> >> print " >> Let's try that loop again >> "; >> $user1="Harry"; >> $user2="Mary"; >> $user3="Bob"; >> >> foreach($GLOBALS as $key=>$value){ >> print "\$GLOBALS[\"$key\"] == $value"; >> } >> ?> >> >> >> >> >> -- >> PHP Windows Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> >> >> >> >> -- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: can not get variable value from HTML form
instead of using $username use $_POST['username'] sounds to me like you have register globals off on your devel machine and turned on on your production machine... From what i am told it is best to develop with register globals OFF i always config my php to have that off. Joe On Wed, 31 Dec 1969 16:00:00 (), [EMAIL PROTECTED] wrote: > >look at this >href="http://www.php.net/manual/en/security.registerglobals.php";>http://www.php.net/manual/en/security.registerglobals.php > >"Emmy Chen" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> I DON'T have this problem with my development machine until I deploy the >> code to the production. >> >> I am using window XP home edition. I tried both apache-2.0.45 and >> apache -1.3.27 with both php-4.3.1 and php-4.3.2. and none of them >works. >> >> the phpinfo(); works fine without any problem. >> >> but I could not get the variable value from the html FORM. >> >> the test program is, the link is href="http://www.kuaitech.com/test.php";>http://www.kuaitech.com/test.php >> >> >> > $user="GUEST"; >> echo ($user); >> ?> >> >> Please type your name: >> >> >> >> You typed: >> > echo ($username); >> ?> >> >> >> As you can see, I can get the value for $user which is defined within >the >> php code, but I can not get the value for $username from html form. >> >> Many thanks. >> >> Emmy >> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Question from a total newb
I am using a machine running Windows XP pro... I managed to install IIS just fine. However, it seems that I am having major traumas getting PHP, Apache, and mysql to function. I have tried downloading some pre-configured kits from various sites with no luck. Can any of you suggest a place where I can download the software... and give me some advice on configuring it. Thanks in advance, Joe -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Question from a total newb
Thank you for your help... by some miracle and with your advice things seem to be working ok. However, I am having a heck of a time figuring out how mysql works into the whole thing. I was trying to follow a tutorial that came with dreamweaver, and it just gets me all confused. I setup a user and password but at the command prompt I can't manage to log in. How do you do the sql stuff? Also, once all this is going how would I go about actually installing a php script into my webpage... or better yet... what kinds of tools are out there to help me write php? "Dash McElroy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Alright, I'll take the bait. > > 1. If you've got IIS installed, why are you trying to install Apache? > Choose one or the other. > > 2. Configuration for either server should be drop dead easy. The PHP > installer exe file should configure IIS (I don't use IIS, fortunately), > and the zip file contains what you should use for Apache. Put it in c:\php > (or wherever...). Apache config is easy for a localhost install. You'll > have to change a few lines and add a few. > > a. For an Apache server without a DNS entry, change the following line to > reference your IP: > > ServerName xxx.xxx.xxx.xxx > > b. Add these lines for PHP > > LoadModule c:/php/sapi/php4apache.dll > AddType application/x-httpd-php .php > > c. Change this line if you want index.php to be a valid initial page: > > DirectoryIndex index.html > > to > > DirectoryIndex index.php index.html > > d. Restart Apache. > > 3. Get MySQL from MySQL.com and install it where you want. MySQL should be > the easiest thing to install of the three. Set up a user and a password > for PHP. I initially learned MySQL (scratch that - still learning) using > the root user (very dangerous) until got a grasp of it's permissions. > Definitely don't do that for code that others will use. > > Good luck! > > -Dash > > Immortality -- a fate worse than death. > -- Edgar A. Shoaff > > On Wed, 20 Nov 2002, Joe Finlinson wrote: > > > I am using a machine running Windows XP pro... I managed to install IIS just > > fine. However, it seems that I am having major traumas getting PHP, Apache, > > and mysql to function. I have tried downloading some pre-configured kits > > from various sites with no luck. Can any of you suggest a place where I can > > download the software... and give me some advice on configuring it. > > > > Thanks in advance, > > Joe > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Question from a total newb
> Here's a grand question: What do you want to do with PHP? Interactive > forms? Interactive content? Website counter? etc... I am a college student who is in way over his head. I am having a lot of fun, and learning a lot, but for what was supposed to be a writing 3400 class, I feel this is a little over the top. The long and short of the question is, I have been assigned to redo the website for a non-profit here in town, (and they are more than happy, because it is free.) They have asked for an event calendar, and an easy way to update a news section on their site. As I got into research I realized that plain old HTML wasn't going to work, and the host company really doesn't like cgi scripts... they suggested that I get into PHP. I have no idea how to code it, I am barely walking in HTML at the moment, dreamweaver helps a lot, but this PHP stuff is flying over my head... I am about 10 hours into it now, and I realize that sooner or later (hopefully sooner) this will be a great tool for me. I have been looking at the following PHP calendar scripts, although I have no idea how they are actually to be implemented into my site. I really appreciate your comments and help... you are saving me hours of frustrations. http://www.luciddesigns.com/calendar/ http://myphpcalendar.sourceforge.net/ http://calendar.codewalkers.com/ I LIKE THIS ONE "Dash McElroy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Glad I could be of assistance. > > I had a hard time getting the hang of MySQL, so I downloaded phpMyAdmin > (www.phpmyadmin.net), set it up, and watched the SQL commands fly. > > Try this: > > mysql -u -p (it should ask you for a password) > > Here's a grand question: What do you want to do with PHP? Interactive > forms? Interactive content? Website counter? etc... > > As far as tools that make PHP, I know of one that will do some PHP for > you. Dreamweaver MX. I haven't used it myself, but it looks pretty slick. > I prefer to do my PHP manually (text editor all the way). I tried > ActiveState's Komodo for a while ($30 personal license, $300 commercial or > so) but it's not as slick and clean as a plain jane text editor. I'm sure > there are other tools that will assist you with PHP. > > The great thing about PHP is that it integrates flawlessly with existing > HTML. Just put the PHP tags in an html file (rename it .php if that's the > only server mapping for PHP) and it will be parsed right among the HTML. > > There are also lots of resources on the web like phpbuilder.com and a few > others. Check the links page on php.net. And if you've got the funds, get > a good book. Just be careful that PHP 4.2.x and beyond have a new way of > accessing variables (see > http://www.php.net/manual/en/security.registerglobals.php for more info) > with register_globals turned off. > > And above all, have fun! > > -Dash > > Hard work may not kill you, but why take chances? > > On Wed, 20 Nov 2002, Joe Finlinson wrote: > > > Thank you for your help... by some miracle and with your advice things seem > > to be working ok. However, I am having a heck of a time figuring out how > > mysql works into the whole thing. I was trying to follow a tutorial that > > came with dreamweaver, and it just gets me all confused. I setup a user and > > password but at the command prompt I can't manage to log in. How do you do > > the sql stuff? Also, once all this is going how would I go about actually > > installing a php script into my webpage... or better yet... what kinds of > > tools are out there to help me write php? > > > > > > > > > > > > "Dash McElroy" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Alright, I'll take the bait. > > > > > > 1. If you've got IIS installed, why are you trying to install Apache? > > > Choose one or the other. > > > > > > 2. Configuration for either server should be drop dead easy. The PHP > > > installer exe file should configure IIS (I don't use IIS, fortunately), > > > and the zip file contains what you should use for Apache. Put it in c:\php > > > (or wherever...). Apache config is easy for a localhost install. You'll > > > have to change a few lines and add a few. > > > > > > a. For an Apache server without a DNS entry, change the following line to > > > reference your IP: > > > > > > ServerName xxx.xxx.xxx.xxx > > > > > > b. Add these lines for PHP > > > > > > LoadModule c:/php/sapi/php4apache.dll
Re: [PHP-WIN] Question from a total newb
You are all helping me SOOO much! I did manage to download myphpadmin... and by some miracle got through the installation process. It is a pretty slick program although I have no idea what I am looking at. I have learned more in the last 10 hours than I ever thought possible, although I haven't written a line of code besides a simple test to make sure that the PHP server was configured correctly. This stuff looks like it could really turn out to be a ton of fun. Anyway, So what is the story about mysql... supposing I download a script that requires a mysql database, would I want to configure that on my own machine or configure it on the host computer... this is where things begin to get confusing. I am guessing that I can configure a mysql database from the myphpadmin... and then I just add the fields that I want etc..??? I think I will be hitting Barnes and Noble today so that I can buy that book that Dash recommended... then maybe I will stop pestering all of you. However in the meantime, I am ever so grateful for your kindness in helping me step into this new world. "Cam Dunstan" <[EMAIL PROTECTED]> wrote in message 003801c29179$29737ce0$7866a8c0@camhome">news:003801c29179$29737ce0$7866a8c0@camhome... > hey Joe, > > You ought to try some of those tools for MySQL Dash recommends, there`s some > beauties amongst them, especially phpmyadmin. In the meantime, here is a > little script, quick and dirty that will let you look at a database and > generate some basic queries and forms for you. > Just copy and paste this into a script file, change the $dbase value near > the top of the script to your database name and "run" it, it does nothing to > your database except read it and knock up some php code for you. > > Use it for two things > > 1. an object lesson in how NOT to program, avoid the sloppy lazy style, > total lack of comments and abysmal presentation of results. > > 2. Takes a little of the tedium out of keying up a long query or form when > you can`t remember fieldnames etc > > > But remember! you`re a newbie! you mustn`t produce sloppy code with no > comments, no error checking, no indentation and no proper presentation of > results until you`re an expert! > > good luck! > > > > > > $dbase = "beadace"; > > $db = mysql_connect("localhost", "root"); > > > function friendly_date($mydate){ > // unix or mysql string type datetime to friendly dd/mm/ type date > string > return date("d/m/Y", strtotime($mydate)); > } > > > > > mysql_select_db($dbase,$db); > > $underline = "-"; > for ($m = 0; $m < 60; $m++){ > $underline = $underline."-"; > } > $underline = $underline."\n"; > > $result = mysql_list_tables($dbase); > $rowcount = mysql_num_rows($result); > > > for ($j = 0; $j < $rowcount; $j++){ > $tablenam = mysql_tablename($result, $j); > echo $underline; > echo $tablenam.";"; > > $fieldresult = mysql_list_fields($dbase, $tablenam); > $fieldcount = mysql_num_fields($fieldresult); > echo $fieldcount."\n"; > //echo ""; > > $updatestatement = "\"UPDATE ".$tablenam." SET "; > $insertprefix = "\"INSERT INTO ".$tablenam." ("; > $insertsuffix = " VALUES ("; > $formstatement = ""; > > > for ($k = 0; $k < $fieldcount; $k++){ > > $fieldnam = mysql_field_name($fieldresult, $k); > > if ((strpos($fieldnam, "hoto") > 0) || (strpos($fieldnam, "humbnail") > 0)){ > $fieldnaminsert = $fieldnam."_name"; > } else { > $fieldnaminsert = $fieldnam; > } > > echo " ".$fieldnam.";"; > $fieldtyp = mysql_field_type($fieldresult, $k); > echo $fieldtyp.";"; > $fieldsiz = mysql_field_len($fieldresult, $k); > echo $fieldsiz.";\n"; > > $sep = "\\\""; > if (((strcmp($fieldtyp, "int") ==0)) || ((strcmp($fieldtyp, "real") > ==0))){$sep = ""; } > > $fieldlabel = ucwords(str_replace("_", " ", $fieldnam)); > > if (strcmp($fieldtyp, "datetime") == 0){ > $scriptstatement = "<"."?"."php if ("."$"."addrec == 0){echo > friendly_date($"."myrow[\"".$fieldnam."\"])"."; }"." ?".">"; > } else { > $scriptstatement = "<"."?"."php if ("."$"."addrec == 0){echo > $"."myrow[\"".$fieldnam."\"]"."; }"." ?".">"; > } > > if ($fieldsiz > 64){
Re: [PHP-WIN] Question from a total newb
ok... for example because I have no idea how to do this on my own... I found a php calendar, and these were the install instructions: ltwCalendar v1.5 written by Matt Wade - http://codewalkers.com demo of ltwCalendar at http://codewalkers.com/cal/calendar.php I don't care for all that license crap. Just use it as you will, but give credit where it is due. Install : 1. Stick all the files in a dir. 2. Modify the ltw_config.php file for your options. 3. Run install.php 4. Delete the install.php. If you want to create more users in the future, upload install.php again. But always delete it when you are done How do you "run" install.php it looks like every other php doc? There must be something that I am clearly missing BIG TIME. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Another Newb PHP question
ok... so last weeks struggle was getting my computer set up as a php mysql server for testing. I guess it was also a struggle learning how to install my first "precoded" program. With that being said, I am very grateful for all for the help that you here in this forum gave me. I have now given myself a new problem. The site I am trying to build has frames, all is fine and dandy until I hit my PHP calendar, if all I do is look at the calendar there is no problem however, if I do anything that runs a script within the calendar when I go to my navbar and then try to go to somewhere else in the site, rather than opening the page in my main frame (where the calendar currently is) it ends up opening the page in a new window. This a rather troublesome side effect. Any suggestions? I will include the link to the calendar maybe one of you smart people can tell me what is going on in the code... I would post the site up but I don't want to hand out my IP address, and the organization for which I am doing the site hasn't upgraded their account to support php and myself. I am trying to give a presentation to my school class about the site tomorrow... so I would like to fix this... any suggestions? The zip file with the calendar code/instructions is attached here is their website: http://calendar.codewalkers.com/ any quick solutions would be very appreciated! ~Joe begin 666 ltw_calendar.zip M4$L#!!0(`&!7K2R1!DJ/RP$``&($```.;'1W7VAE861EYZU)T][>K?-AL0O92YQ)7B"+8?I_2IA5"E4G2(KG/9-L]%L9$A3 ME"TRHDF&7B*XEH)U@0LOL0FQU)$)'@NSG.H"@0YL=RG5V")C%U*8PQ*FW;RK M2-N4"$SF4?4G)ID`TIM&\W 01+-HC 8A-$'\&!$&?*4RIY?IS7X MC#Z,%K/[",+AW>3]BGV'TQU"'QQ1($?IW%0('!B).Z%M MV5;M&B[$)";V:>SEW^B:H:LTU:5R36^"L365RMWGJ<[Z5NW+ZJ@$W^3;CTXA MBK)85?VL*L3Y9!6[&>;;3%_F:^;P`\/-7W!+'& MBLNL`6HT-@=]:NC'!:OK M?/L'IPK9YF@T)K72F/R/TRMEFC;^0:6EKQ9IX>LT6O(ZB;X/GG=^>?UZ!.KP M.0UG=V]A$83F\BO]Q%!EB'8@HN5]V@^1-02P,$% @`8'.M+ TOYP.#`0``L 8```T```!L='=?G3!&)*U#1!B4O;57OW&0)K@6WM M&,=8]N??OQVQ*!U4!H[(M3);=LZLMHXS!W+-H=.'M' JCZ-&3B;*6F0GJ/=1VMHPVXI^2EN#!0C9KS@4M*OU=P-)X;;M/,-_1Z3: M*D$S&\XR.D1P70OYLT5=K^MB#3E2B-:,B@J[,-JR`^;68E]S-^3O2[@6_3P2 M7?=M.^QUA]\)MZ%K86%K6GD,.TM*2R==GP13QBL)5/D)4$L#!!0(`$JE MU2P^`/B@D0(``$T%```&4D5!1$U%E51-B]LP$+T;_!_FT$,+J?>#]E+" M0ANZE,+29;.P]%3&UL16(TM&&L>;?]\9.:'9S:4U`2-9\^;->T]Q/*W0D3<8 MRZ+>PQTRPQ,:*HN.>?AT<=$$0Q.Z+<54-:&_*(NR>"!'F AVU]5U6;P_>O2;YV1@R M4&.SG3":)&C]@&QKZRSO81,B#)$^5%?5)=Q_NP>!3C/-]6 ;J1P'X(Z$1V)T MCB(@U);+XJDCH>9LL[6^A>!!&L'7G0Z&G$OJP"P3A4U>-0?M%V Y#VUH@Z/C M!!SD9W"?P"#3V427+R>2D>Y$`*-EJ_4Z3R#$]-V+HT*F>NE,ASL21_; ],RP MER\3"DFM4UX'%["GE'T3(O-*8%8=^E9:J>#:[\VO^Q_K1]AAM%@[.0*/G4W0 M2TF#FH#30;7 !VDT^D:=5XV",X*D.A_TQ)R)ZFB34"8C^H2<%8$/\UKW5=H% MM"$WR2L-ARZ&,(A+$C$22W2&;$NN%.1>(@XI]"*",$M9NM ML&W'I, B91+[!6)CGS5#8PM31U'&M((V21)UOIHT`(E#/,_C5?7QS+W;#,8J M( CEK !0C$%N';Q](!7?S(2;X,;>IW='>0XW88=NI-G C#+;!:>FZ];\-0EG MB94Z>/3^5.Z##S!?T'/^E]?G\;->6JL:JHN:]P6350'W\'M,#+-<>8)>5('1 M2]:ME[V_R3EO].KF_F^G?VOR^M_AUD:!B?,).?]=41-E2SO1,<=KK"5/X.Q6 MQ+2S1G\`4$L#!!0(`*QDMRR.DX?Z*@0```$1```,8V%L96YD87(N M<&APY5?_;^(V%/^9D^Y_\$65(%* XZ#XP2#T%9I/QR@D/A]^_CSGI_CTX]OW[3PU^_+.9 9CV.^8LD3 MB5D"@M ,"(TBB%"2D4<:+E8TBP0)^3*EDCVRF,EU(4M1\X?>H'=,QE=C\@R9 M8#P1O1ZZ9K/..R8$R,[1P_B7R=3WR=\XW-)/Y ,YNII.Q\7#PV_GMY,A"E\: M=K>C7[^,;--RP%A?CNK&_3XDD4%4N>R+FW9T)W;. MOW&G?V+%9#AWH]/N0BJ M",<.5&/K:.0QD@.S=!C`BN"4_]4CMAN-J"&=:/N M6>G_@JYK48N(6ODQ`[HH;JOX\ R)/ "!GN/.J"/EQH[+HO;7H(9#@@.(A81& M2Y:42+;9DU0L#'4;DY@_&1-$17,Y+Z&K6T3$0@P[+.5L1NH5?]?.$[I4L,BW M;Z0A2E<\BZKDFP!FRI]5\(Z_\?Y"($9,E3*">\(5BBM!FQ5@FY KB-.U65 MI0L+00O".2?>Z>33[4_C*?E\?G/YY?QR].'>^YD^TTF8L53>>T2N4\ Q"7_) M_A\H$*7@[#[QADU?[[I=QS!/(8&L%W-D$%M&+X.8TPBGZ] 5$,]Z8B(U69/(4O>&2U)2RFQM_;=)0OEO%5A5*CR7!]=*E3.TJI+\>O0[ MR3^<^OW$[Z!]-^G;?$40`ZY8P]=ASF6:3>@?Y\%.PT86.? ._9V]N@&9+.T_@,&%P1_-S\0,?G*!:A<[B\_9YHB MGH"=JG .X4*Q9=HY7*M7"JN?PX7:>*O'WX%FC60J!VI[J*N0'O&Z'EZ;KK<% M10B3GT;;U)7X(XW(!<:I&J8[J%ZB.JD%-PK7+,E5W3B% MY]?CZPIC\:F%?(\QAGW#?@ MX(@I#+4?%QJGI(3NN\A6?L5!;#^H&!BOJ"/OZH2="%R-I>OA]M2=^J3 9(-L MO,; +81YL_+T(/HZWE4]E)QH+[;T8-!L!VP M=%I<]ZYL$VCG&;"S.9R[F)UQ+NO,FO2^V E5HK=O/I[]`U!+`P04" ! MI70L&6:'AR4!``#O`0``!P```$E.4U1!3$QU4+MNPS ,W WX'V[KDBI('TO& MMDL+9&F'C@5CT;$013(D*H;_OK3<(4L
Re: [PHP-WIN] Another Newb PHP question
No... no one has to write code for me. I am just not understanding why it doesn't work. The navbar is configured correctly... and until I run the calendar all of the navbar links work just fine... everything opens in the "main" frame (yes I did target them correctly). Are you saying that the PHP program obliterates the code for the frames once it is up? or were you saying that my navbar was incorrectly coded? "Dl Neil" <[EMAIL PROTECTED]> wrote in message 0fc601c29479$c039ead0$c900a8c0@jrbrown">news:0fc601c29479$c039ead0$c900a8c0@jrbrown... > Ok Joe, > So you want someone to write your homework for you? > This is an HTML issue. We normally think of a single web page occupying a > while window. With frames this changes. Each frame is basically a single > HTML page, and the framework allows multiple HTML pages to appear within a > single window. Each frame is given a name, or 'target'. Accordingly when an > HTML page is to be displayed ( particular frame. The author of the software gets to choose those names. The > outside frame - or the window also has a name. If you direct a new page to > be opened there, then it will obliterate any sub-frame/sub-pages. If you > open a new page without giving it a target, then most (quite probably 'all') > browsers will open that page in a new window. > Regards, > =dn > > > > ok... so last weeks struggle was getting my computer set up as a php mysql > > server for testing. I guess it was also a struggle learning how to > install > > my first "precoded" program. With that being said, I am very grateful for > > all for the help that you here in this forum gave me. > > > > I have now given myself a new problem. The site I am trying to build has > > frames, all is fine and dandy until I hit my PHP calendar, if all I do is > > look at the calendar there is no problem however, if I do anything that > runs > > a script within the calendar when I go to my navbar and then try to go to > > somewhere else in the site, rather than opening the page in my main frame > > (where the calendar currently is) it ends up opening the page in a new > > window. This a rather troublesome side effect. Any suggestions? I will > > include the link to the calendar maybe one of you smart people can tell me > > what is going on in the code... I would post the site up but I don't want > to > > hand out my IP address, and the organization for which I am doing the site > > hasn't upgraded their account to support php and myself. I am trying to > > give a presentation to my school class about the site tomorrow... so I > would > > like to fix this... any suggestions? > > > > The zip file with the calendar code/instructions is attached here is > their > > website: http://calendar.codewalkers.com/ > > > > any quick solutions would be very appreciated! > > ~Joe > > > > > > > > > -- -- > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Sessions
I haven't worked with trans_sid much, so I'm not very familiar with the specifics. The problem is that the get variable PHPSESSID or whatever is passed as a get while the action of a form is POST. One workaround is to create a hidden input named PHPSESSID or SID and set it's value to . Good luck, and let me know how you fixed it!!! ;-) -Joe ""Roman Lichszteld"" <[EMAIL PROTECTED]> wrote in message 9c6261$7pq$[EMAIL PROTECTED]">news:9c6261$7pq$[EMAIL PROTECTED]... > I use Apache server with PHP 4 installed on WinNT 4.0, session.use_trans_sid > is set to 1, I don't use cookies. > > I have three pages, each looks like this: > > // test1.php > >require("../php/checkuser.php"); > > print("Logged user: " . @$LoggedUserName . "\n"); > > print("\n"); // second > page has action="/php/test3.php" and so on... > print(">\">\n"); > print("\n"); > ?> > > Script "checkuser.php" simply calls "session_start()" and then check if > variable 'LoggedUserName' isn't empty - in such case user is redirected to > login page. > > Firts of these pages (test1.php) is called from main menu after successfull > login. > Everything works fine: on first and second page SID is properly propagated > but on third page script 'checkuser.php' ALWAYS redirects me to login again. > Is it possible that session ID becomes invalid after third page (menu -> > test1 -> test2 -> ... )?! > > Had anyone similar problem? > > Regards > > Roman Lichszteld > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > > > -- > 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] > -- 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]
Re: [PHP-WIN] RE: Several " Constant already defined " errors.
Actually, this is probably has something to do with the way Nuke is allocating memory on a threaded server. Threaded support is fairly new to PHP. If the module does not carefully observe memory allocations, Constants seem to be the first thing to get hosed. "Florian Clever" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is probably a problem with IIS. > Are you using persistant connections? > > I used to get the same error messages in my PHP/Oracle 8/IIS combination > after PHP scripts terminated using exit() and not having freed all the > Oracle handles and resources. These messages then also appeared on > scripts without coding errors. > > I ended up using Apache on W2K and turning of persistant connections. > > cheers, > Florian > > > > >Von: > >"Chipmaster" <[EMAIL PROTECTED]> > > 07:42 > > > > Betreff: > >Several " Constant already defined " errors. > > An: > > [EMAIL PROTECTED] > > > > > > > >I am trying to run PHP Nuke 5.0 beta 3 on a Windows 2000 Pro Machine with > >IIS 5.0, PHP4 and MySQL Server. Each of the Systems works fine including PHP > >but... When I run http://localhost/ the page loads including the MySQL > >content and I get dozens and dozens of nice little error messages, which > >state that many may constants are already defined on different line numbers > >in the language/lang-english.php file. Well I admit I am not the brightest > >in PHP, but I am trying my best and I sure would apreciate your help. > > > >Thx Guyz. > > -- > > Florian Clever > > [EMAIL PROTECTED] > http://www.Clever-Software-Solutions.de/ > > PGP Key @ ldap://certserver.pgp.net/ > > The Heineken Uncertainty Principle: You can never be sure how many beers > you had last night. > > -- > 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] > -- 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]
Re: [PHP-WIN] Compiled PHP 4.06 & ISAPI
LOL... 4.0.5 hasn't been released as yet, it's due to be released Monday (in a few hours). Yes, 4.0.6 has more bug fixes in it as well, but it's not been alpha tested yet. I built an Apache module today and OCI8. Looks pretty good so far. If you're really nice to me, and tell me what you require, I may be able to generate something from the latest cvs. "Paul Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I don't supposed anyone has this, or knows where I could obtain a > precompiled version of 4.06 or better? From what I've read in the PHP bug > database this version may fix at least some of the problems with UNC > filenames on windows platforms. > > Regards, > > Paul > > -- 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]
Re: [PHP-WIN] Get the string between custom delimiters
That's pretty much what an xml parser does, isn't it? ""Matthew Ralston"" <[EMAIL PROTECTED]> wrote in message 9cjob9$cur$[EMAIL PROTECTED]">news:9cjob9$cur$[EMAIL PROTECTED]... > Is there a nice easy function that could be used to get a sub string that > lies in between two other sub strings in one big string. > > For example... get the text that lies in between "" and "" > (without the quotes) in the code of a web page. > > I'm after a function like: > > string getstring_between_customdelimiters(string source, string > open_delimiter, sting close_delimiter) > > Or something that could be easily be used in that manner. Case insensitive > if possible! > > Thanks, > > Matt > [EMAIL PROTECTED] > < www.mralston.co.uk /> > > > > -- > 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] > -- 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]
Re: [PHP-WIN] PHP 4.0.4 With Multiple Oracle Homes
I find the whole concept of "oracle home" a nightmare. Reguardless of my opinion, the main difference between oracle homes is the location of executable files and the location of the TnsNames.ora file. The PHP_OCI8 module is mostly just a client network interface. As long as the PATH environment variable points to the appropriate set of executables, all seems to work well, reguardless. The rest is more or less fluff. However, setting the path can be a bit of a confusing issue with windows nt running the webserver as a service. The most viable solution may be to setup another 586 with linux running PHP/webservices. Is there any reason the same box must be both db server and webserver? "Woods Ron Contr SA-ALC/FMIS" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know the php_oci8.dll works with Oracle 8.1.6 drivers, but has anyone ever > tried this on a server with multilple ORACLE HOMES? > > One of our server apps cannot use the Oracle 8 drivers so we must continue > using the 7.3 Oracle client. I know Oracle 8i supports multiple homes so I > believe I can install 8i and keep it seperated from 7.3; but I suspect the > Oracle PHP driver may have some heartburn with two Oracle Homes. > > Anyone have any ideas or suggestions? > > Ron Woods > GAI > > -- > 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] > -- 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]
Re: [PHP-WIN] Oracle fetch array
while (ora_fetch_into($curs, &$row1)){ explode($row1); echo "$NAME now = ".$rowl[1]; (I think the function is explode, if not I'm sure it begins with an e, if that helps... ;-) "Tom Mathews" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In MySQL, you can run something like this: - > > while ($row1=mysql_fetch_array($result_set)){ > $name=$row1[Column1]; > $desc=$row1[Column3]; > echo"$name$desc"; > > Does anyone know a way of doing the same with oracle - by which I mean > refering to the columns in the array by name rather than by index (ie > not > > while (ora_fetch_into($curs, &$row1)){ > $name=$row1[0]; > $desc=$row1[2]; > echo"$name$desc"; > ) > > Thanks > > Tom > > > -- > 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] -- 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]
Re: [PHP-WIN] PHP 4.05, IIS5 and session...
Do you really have a \tmp directory? is it c:\tmp or c:\temp? Which does your php.ini specify? ""Svensson, B.A.T. "" <[EMAIL PROTECTED]> wrote in message 27E647E5629ED211BF78009027289C6302E73927@mail1">news:27E647E5629ED211BF78009027289C6302E73927@mail1... > > > >-Original Message- > >From: Shawn Anderson > >Sent: Friday, May 04, 2001 6:49 PM > > >but I keep getting the following error: > > > >Warning: open(/tmp\sess_2cd53ab5183707a5629c02a5ad9da129, > . ^ ??? > > >Can anyone suggest anything? > > -- > 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] > -- 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]
Re: [PHP-WIN] PHP 4.05, IIS5 and session...
Where is the php.ini file your editing? c:\windows\php.ini? ""Shawn Anderson"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have tried c:\temp, c:\php\temp, c:\inetpub\wwwroot\cgi-temp all with the > same result and same error code. It would appear that no matter what I set > the session save dir to, it does not take effect. > > BTW, all of those directories have read/write/create permissions set. > > Shawn > > -Original Message- > From: Flint Doungchak [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 1:09 PM > To: 'Shawn Anderson' > Subject: RE: [PHP-WIN] PHP 4.05, IIS5 and session... > > > Shawn, > > Have your tried define something like: > > C:\stupiddir > > to see if the ini file is being read correctly? > > -Flint > > -Original Message- > From: Shawn Anderson [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 10:05 AM > To: Flint Doungchak; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] PHP 4.05, IIS5 and session... > > > Hmm, I have actually tried both and neither seems to have any effect at all. > No matter what I set session.save_path to, it always creates the files in > c:\tmp -- very strange :) > > -Shawn > > -Original Message- > From: Flint Doungchak [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 1:04 PM > To: 'Shawn Anderson'; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] PHP 4.05, IIS5 and session... > > > Shawn, > > You php.ini file should have something like: > > ; Argument passed to save_handler. In the case of files, this is the path > ; where data files are stored. > session.save_path = C:\temp > > where C:\temp exists and I_USER_machinename has read/write permissions. It > looks like you may have defined the directory as: > > C:/temp > > which I don't think works. > > -Flint > > > -Original Message- > From: Shawn Anderson [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 04, 2001 9:49 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP 4.05, IIS5 and session... > > > Hi there, I am a little new to the whole PHP world and have started playing > with it recently. I am trying to get the session thing working but I keep > getting the following error: > > Warning: open(/tmp\sess_2cd53ab5183707a5629c02a5ad9da129, O_RDWR) failed: m > (2) in > > and I don't know why. I have set read/write permissions on the directory > that the sessions are stored in, and I have even tried changing this > directory (which does not seem to work). Can anyone suggest anything? > > Shawn > > > > -- > 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] > > > -- > 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] > -- 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]
Re: [PHP-WIN] Path error session.save_path at php.ini.
It works if you have a c:\tmp directory and you run php from the c: drive. However, instead of creating a tmp directory, you may want to alter your php.ini to point it to a directory of your choice. -Joe ""Chris Boothe"" <[EMAIL PROTECTED]> wrote in message 001501c0d4cc$8c78d580$4c347218@fw1">news:001501c0d4cc$8c78d580$4c347218@fw1... Has anyone seen this before or know how to fix it? I am trying to run setup.php from phpProjeckt. Session error! please set the correct temp path in the variable session.save_path at php.ini. The ini file has a value of /tmp does this work on IIS5? Thanks, Chris Boothe [EMAIL PROTECTED] -- 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]
Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.
LOL... I think his article is fine. PC-MAG caters to mostly windows users. And honestly, there are issues in php that haven't matured to 5 * rating. I think the developers are making leaps and bounds toward a solid windows product. There are many compilicatons that will cause the average PC-MAG many headaches. PHP is the best language on the market, IMO, but I'm a developer, not a PC-MAG subscriber. PC-MAG lost my patronage a long time ago because of technically weak articles, such as this, perhaps they will loose you partrons as well. -Joe ""Dickerson, Monty"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Today boss comes in and says, "Seen pcmag's story about php? says it is > bad." Argh: > http://www.zdnet.com/products/stories/reviews/0,4161,2711724,00.html > > What's the scoop on Larry Seltzer anyway. You here, Larry? His review is > rather 1-sided, negative. Not good for free software's encroachment into > the corporate zone. Of course the points he raises are all true and widely > known. He mentions only one strength. > > I don't think Larry has actually been in the trenches doing real work on the > web. Either that or he is/was paid to do it with Micro$oft ASP or Allaire's > Cold Fusion. Maybe he is on the payroll of one of these? It's a > possibility that should be investigated. > > Thanks for nothing, Larry Seltzer. > > Cheers, > MD > > > > -- > 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] > -- 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]
Re: [PHP-WIN] PHP and HTML
Well, you can tell apache to filter html through php by adding the .html extension to the directive suchas: AddType application/x-httpd-php .php .html If you serve a lot of .html, this will probably slow your server down because all .html files will be filtered through php You can set index.php as your directory index, so directory urls point to a index.php page instead of index.html DirectoryIndex index.php Now http://yourserver.com/ automatically points to http://yourserver.com/index.php I believe both options may be set through .htaccess files, but I have not studied that method of configuration. ""[EMAIL PROTECTED]"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On a standard Apache you cannot just put php scripts in html files, since > the apache won't pass them on to the php-interpreter. However it is probably > not true, that the files come without the php-code. You just cannot see it > in the Browser since it is hidden inside tags. But if you look at > the sourcecode of the page your borwser is displaying you're likely to see > your complete php-source in there as well. > So just rename your files to an extension that is interpreted as php and > everything should wqork fine. (ususally .php or .php4) > I know that there is a problem if you want to have a php page as your > default page, since most webhosters will accept only index.htm(l) for that. > Don't know a clean way how to get round this problem though (without having > to use redirects or similar things in the index.html) > > > -Original Message- > > From: Jordy [mailto:[EMAIL PROTECTED]] > > Sent: Dienstag, 8. Mai 2001 14:57 > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] PHP and HTML > > > > > > Hi there, > > I have Php 4.0.5 and Apache Web Server, > > It all works fine when I open php files, but > > when I open html file with php scripts in it, it > > doesn't work I just simply see the normal html but without any > > scripts.. as > > it doesn't use PHP in HTML .. could > > someone please help!!! > > > > Thx > > mail it to [EMAIL PROTECTED] > > > > Jordy > > > > > > > > -- > > 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] > > > > > -- > 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] > -- 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]
Re: [PHP-WIN] PHP4.05-Apache1.13.19-Win2k
Don't forget to place php4ts.dll in the proper place also. php4apache.dll is the apache interface to php4ts.dll which is the meat of PHP. -Joe ""Nick"" <[EMAIL PROTECTED]> wrote in message 9dbdci$cun$[EMAIL PROTECTED]">news:9dbdci$cun$[EMAIL PROTECTED]... > Hi, > > still can't get php 4.05 working w/ apache 1.3.19 on win2k. Apache works > fine without php, but gives an "module not found" error message when > configured to use php4apache.dll . The thing is, the dll is in the correct > directory as listed in httpd.conf. I have tried changing apache versions and > changing the location of the php4apache.dll, but to no avail - > any ideas ? > > Nick > > > > -- > 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] > -- 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]
Re: [PHP-WIN] Confused...on database modules
Yes, I believe it is possible. You may need to use the sybase client, or venture down the odbc. ""macky"" <[EMAIL PROTECTED]> wrote in message 9daucu$enf$[EMAIL PROTECTED]">news:9daucu$enf$[EMAIL PROTECTED]... > MSQL is it a driver for Microsoft SQL Server..? > > if no is it possible to connect to Micrisift SQL Server 7 using > Linux+APACHE+PHP? > where can i find a driver? > > thanks in advance > > > -- > -- > The information contained in this message (including any attachments) > is confidential and intended solely for the attention and use of the > named addressee(s). It must not be copied, distributed nor disclosed > to any person. If you are not the intended recipient, please delete > it from your system and notify sender immediately. Any disclosure, > copying or distribution thereof or any action taken or omitted to be > taken in reliance thereon is prohibited and may be unlawful. > -- > > > > > -- > 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] > -- 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]
Re: [PHP-WIN] Persistent DB Connections with CGI - Via Java...
""Dickerson, Monty"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > The Problem: php only runs reliably as a cgi on Windows, so it lacks static > DB connections. This is a false statement. I have an implementation of apache/php SAPI running in a production enviroinment against Oracle 8 database on an NT 4 server, w/out incident. Took a week of studying the source to figure out why Oracle 8 was crashing, but the thread-safe aspect is stable now, and I have an implementation in production now. I can't speak for other db resources, but the others being being cleaned up. PHP 4.0.6 will likely be very stable for all. > Idea: Make all DB queries through a JavaBean, which uses a pool of shared > JDBC connections. Abstract this behind a php API (class with methods) to > hide its complexity. > > Surely somebody has thought of this before : > If so is this solution available, free or commercially? > > Monty. > > > > -Original Message- > > From: Tim Uckun [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 09, 2001 2:31 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] ISAPI > > > > > > At 12:13 PM 5/9/2001 -0700, Flint Doungchak wrote: > > >Tim, > > > > > >Unfortunately, the ISAPI module just isn't stable on this > > platform. Sorry. > > > > What is the prefered way to run PHP in windows? As a CGI? As > > an apache > > module? Aolserver? > > > > I would rather not run it as a CGI because I need persistent database > > connections. > > > > :wq > > Tim Uckun > > Due Diligence Inc. http://www.diligence.com/Americas Background > > Investigation Expert. > > > -- > 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] > -- 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]
Re: [PHP-WIN] ISAPI
My preference is to run Apache/PHP on Linux. Since I don't always get my way Apache/PHP on Windows is good. I spent a little time attempting IIS. When it wouldn't respond to the Management Console and I had to reboot the server to restart IIS, I decided it was the worst solution for any problem. Or a good problem for every solution. I've yet to run into an instance where Apache can only be restarted via reboot. Apache is a little more compilcated to configure, however, the power beneath the hood far outweights this difficulty. -Joe "Tim Uckun" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 12:13 PM 5/9/2001 -0700, Flint Doungchak wrote: > >Tim, > > > >Unfortunately, the ISAPI module just isn't stable on this platform. Sorry. > > What is the prefered way to run PHP in windows? As a CGI? As an apache > module? Aolserver? > > I would rather not run it as a CGI because I need persistent database > connections. > > :wq > Tim Uckun > Due Diligence Inc. http://www.diligence.com/Americas Background > Investigation Expert. > If your company isn't doing background checks, maybe you haven't considered > the risks of a bad hire. > > > -- > 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] > -- 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]
Re: [PHP-WIN] symlinks
AFAIK, Shortcut.lnk is the closest you're going to come to symlinks on NT. I also believe hardlinks are possible, but you need NTFS for that. The best way to implement symbolic links on NT is to overwrite it w/Linux. "Jourden Parks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have to port alot of php code from linux to windows. This code is > all about using symlinks. Does anyone have any ideas what to do > in windows when symlinks were required? Or how you go about > creating a temp link to a file in windows? > > Thanks. > > -- > 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] > -- 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]
Re: [PHP-WIN] Need someone with some experience
Dump the records into a temp table. Make sure you don't design a system that ends up loosing Data Entry somehow. You could store info into an array, but what happens when a connection is broken,etc... ??? ""Asendorf, John"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm about to create a piece of a project which which will be used to check > for errors in data entry. Every 500 records entered will prompt the user to > check their work. I have all of the triggers set up already. The database > is all Oracle, PHP 4.0.4 (1381 build). What I would like to do is display > all of the 500 records (no problem) and (here's where I could use some > advice) highlight any records with a duplicate value in one particular > field. > > Should I load all of the data into an array? Should I skim through all the > records, take notes, reset, and then run through them again? Should I run a > separate statement which searches for dupes and then match them against the > whole body of records? > > I don't want code, just a voice of experience which could start me off > right. > > Thanks, > > John > > - > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aliquando et insanire iucundum est > > > -- > 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] > -- 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]
Re: [PHP-WIN] Surprises with PHP4/IIS?
The stability of a modules (actually used) on a specific website have impact on the stability of PHP. The CGI version has a short life span, it services one request then vanishes. The SAPI version lives much longer. On IIS it may live the entire lifespan of the IIS process. Apache can be set to a specific number of requests before a child is terminated. The re-use among other things is why the SAPI versions are much faster then CGI and also contributes to why they are less stable. When a bug is encounter in SAPI, if it does not generate a Segmentation Fault (or Illegeal Operation) memory corruption may occur causing subsequent page requests to have unexpected results and more likely to then incurr a Segmentation Fault. Even though CGI may not perform as many Illegeal Operations, SAPI modules and CGI share the same code base, they share the same bugs. CGI runs through program initialization for each page request, so it is less likely to suffer from a bug encounter last page request, that does not save it from a bug encountered during it's page request. SAPI modules don't initialize from scratch every page request, so a bug encounterd last time around may affect this or the next page request. Although CGI implementations may not be affected as frequently by a bugs, as page sources grow, so does the chance of encountering bugs. The hardest part is to determining what is causes a bug to appear. Once that has been accomplished, the bug will likely be exterminated by bringing it to a developers attention or fixing it yourself (gotta love open-source for this ability). -Joe ""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message 00a001c0d930$880bb4a0$0c01a8c0@philsntserver">news:00a001c0d930$880bb4a0$0c01a8c0@philsntserver... > Your experiences with the CGI version under IIS are not typical - I've been > running PHP on several production NT boxes since version 4.0 without a > single problem. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > 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] > -- 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]
[PHP-WIN] FDF support
I have a PDF form with a submit button to send it to a url where my php script is supposed to take the fdf data and parse it , but my script is erroring i get this : Warning: Could not open fdf document: test.fdf in c:\inetpub\wwwroot\fdf\index.php on line 12 Can anyone help? __ Joseph D. Mainolfi Jr. IT Specialist American Bridge Company 1000 American Bridge Way Coraopolis, PA 15108 (412) 631-1018 phone (412) 631-2000 fax [EMAIL PROTECTED] http://www.americanbridge.net -- 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]
[PHP-WIN] FDF setup
I am using FDF and it isn't recognizing any of the functions for it the errors I get are as follows: Warning: Could not open fdf document: test.fdf in c:\inetpub\wwwroot\fdf\index.php on line 12 Warning: Supplied argument is not a valid fdf resource in c:\inetpub\wwwroot\fdf\index.php on line 13 The name field has the value '' Warning: Could not open fdf document: test.fdf in c:\inetpub\wwwroot\fdf\index.php on line 16 Warning: Supplied argument is not a valid fdf resource in c:\inetpub\wwwroot\fdf\index.php on line 17 The date field has the value '' Warning: Supplied argument is not a valid fdf resource in c:\inetpub\wwwroot\fdf\index.php on line 20 is this a config problem or am i doing something wrong in my code..can provide code iif needed help, please __ Joseph D. Mainolfi Jr. IT Specialist American Bridge Company 1000 American Bridge Way Coraopolis, PA 15108 (412) 631-1018 phone (412) 631-2000 fax [EMAIL PROTECTED] http://www.americanbridge.net -- 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]
[PHP-WIN] FDF functions
I have a PDF form that submits to a url and is supposed to grab the input data and put it into variables so that I can use it on that page, but when I call any of the FDF functions this is what I get: Warning: Could not open fdf document: test.fdf in c:\inetpub\wwwroot\fdf\index.php on line 12 Warning: Supplied argument is not a valid fdf resource in c:\inetpub\wwwroot\fdf\index.php on line 13 The name field has the value '' Warning: Could not open fdf document: test.fdf in c:\inetpub\wwwroot\fdf\index.php on line 16 Warning: Supplied argument is not a valid fdf resource in c:\inetpub\wwwroot\fdf\index.php on line 17 The date field has the value '' Warning: Supplied argument is not a valid fdf resource in c:\inetpub\wwwroot\fdf\index.php on line 20 Is this a coding issue or a config problem with my .ini file, are my dlls loaded correctly, will provide .ini and code if needed. Any help appreciated Thank __ Joseph D. Mainolfi Jr. -- 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]
[PHP-WIN] Re: [PHP] relative paths
An easy way to fix this common problem is this: define('BASE_INCLUDE_PATH','/var/www/includes/'); include(BASE_INCLUDE_PATH.'my_include.inc'); Just make sure to include the file with the BASE_INCLUDE_PATH define using a relative path ... ie. --Joe On Sat, Nov 17, 2001 at 05:15:02PM +0100, Mitja Pagon wrote: > Hi! > > I want to know if there is a way to include(require) a file using a path > relative to web server root. > > I'm aware of the fact that you can specify include path, but I believe that > this is not the best solution, since applications written that way aren't > easily portable. > > What I'm looking for is something similar to what "/" does in HTML paths and > SSI include directives. > > Thanks, > > Mitja Pagon > > > > -- > PHP General 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] Joe Stump <[EMAIL PROTECTED]> "How would this sentence be different if pi equaled 3?" msg05741/pgp0.pgp Description: PGP signature
[PHP-WIN] Com
is anyone out there familiar with COM built into Php? This is my code: $sheet = Range("B6:B9")->Select; $sheet->Selection->Borders(xlEdgeBottom); $sheet->Selection->LineStyle = 9; //xlContinuous $sheet->Selection->Weight = 2; //xlThin I get an error everytime I use the Range method and some other methods, the major things work, but the formatting seems to be a little funny with its syntax Any help would be greatly appreciated, Thanks in advance __ Joseph D. Mainolfi Jr. IT Specialist American Bridge Company 1000 American Bridge Way Coraopolis, PA 15108 (412) 631-1018 phone (412) 631-2000 fax [EMAIL PROTECTED] http://www.americanbridge.net -- 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]
[PHP-WIN] compilation error using VC++ 5.0
Hello, I am using VC++ 5.0 to compile PHP 4.3.0 on a NT box, I got the following error during compilation: Configuration: Zend - Win32 Release Compiling... zend.c zend_alloc.c zend_API.c zend_builtin_functions.c zend_compile.c zend_constants.c zend_execute.c G:\work\php-4.3.0\Zend\zend_execute.c(127) : warning C4013: '__assume' undefined; assuming extern returning int zend_execute_API.c G:\work\php-4.3.0\Zend\zend_execute_API.c(362) : warning C4018: '==' : signed/unsigned mismatch zend_extensions.c zend_hash.c zend_highlight.c zend_indent.c zend_ini.c zend_ini_parser.c zend_ini_scanner.c zend_language_parser.c zend_language_scanner.c G:\work\php-4.3.0\Zend\zend_language_scanner.c(5558) : warning C4273: 'isatty' : inconsistent dll linkage. dllexport assumed. zend_list.c G:\work\php-4.3.0\Zend\zend_list.c(180) : warning C4013: '__assume' undefined; assuming extern returning int zend_llist.c zend_multibyte.c zend_opcode.c zend_operators.c zend_ptr_stack.c zend_qsort.c zend_sprintf.c zend_stack.c zend_variables.c Generating Code... Creating library... Configuration: libmysql - Win32 Release Compiling... array.c bchange.c bmove.c bmove_upp.c charset.c ctype.c dbug.c default.c dll.c errmsg.c errors.c get_password.c int2str.c is_prefix.c libmysql.c G:\work\php-4.3.0\ext\mysql\libmysql\libmysql.c(923) : warning C4018: '>' : signed/unsigned mismatch G:\work\php-4.3.0\ext\mysql\libmysql\libmysql.c(982) : warning C4018: '>' : signed/unsigned mismatch list.c longlong2str.c mf_casecnv.c mf_dirname.c mf_fn_ext.c mf_format.c mf_loadpath.c mf_pack.c mf_path.c mf_unixpath.c mf_wcomp.c mulalloc.c my_alloc.c my_compress.c my_create.c my_delete.c my_div.c my_error.c my_fopen.c my_getwd.c my_init.c my_lib.c my_malloc.c my_messnc.c my_net.c my_once.c my_open.c my_pthread.c my_read.c my_realloc.c my_static.c my_tempnam.c my_thr_init.c my_wincond.c my_winthread.c my_write.c net.c password.c safemalloc.c str2int.c strcend.c strcont.c strend.c strfill.c string.c strinstr.c strmake.c strmov.c strnmov.c strtoll.c strtoull.c strxmov.c thr_mutex.c typelib.c violite.c Creating library... Configuration: php4dll - Win32 Release Compiling... aggregation.c css.c cyr_convert.c fopen_wrappers.c main.c mergesort.c network.c output.c php_content_types.c php_ini.c php_logos.c php_open_temporary_file.c php_ticks.c php_variables.c quot_print.c reentrancy.c rfc1867.c safe_mode.c SAPI.c snprintf.c spprintf.c streams.c strlcat.c strlcpy.c user_streams.c G:\work\php-4.3.0\main\user_streams.c(640) : warning C4244: '=' : conversion from 'long ' to 'unsigned short ', possible loss of data G:\work\php-4.3.0\main\user_streams.c(641) : warning C4244: '=' : conversion from 'long ' to 'unsigned short ', possible loss of data G:\work\php-4.3.0\main\user_streams.c(642) : warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of data G:\work\php-4.3.0\main\user_streams.c(643) : warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of data G:\work\php-4.3.0\main\user_streams.c(644) : warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of data array.c assert.c base64.c basic_functions.c bcmath.c browscap.c crc32.c credits.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c flock_compat.c formatted_print.c fsock.c ftp_fopen_wrapper.c head.c html.c http_fopen_wrapper.c image.c incomplete_class.c info.c iptc.c lcg.c levenshtein.c link.c mail.c math.c md5.c metaphone.c microtime.c mod_files.c mod_user.c pack.c pageinfo.c parsedate.c php_fopen_wrapper.c php_mysql.c G:\work\php-4.3.0\ext\mysql\php_mysql.c(359) : error C2065: 'CLIENT_INTERACTIVE' : undeclared identifier G:\work\php-4.3.0\ext\mysql\php_mysql.c(1077) : warning C4013: 'mysql_character_set_name' undefined; assuming extern returning int G:\work\php-4.3.0\ext\mysql\php_mysql.c(1671) : warning C4013: 'mysql_real_escape_string' undefined; assuming extern returning int php_odbc.c G:\work\php-4.3.0\ext\odbc\php_odbc.c(2134) : warning C4761: integral size mismatch in argument; conversion supplied php_pcre.c rand.c reg.c G:\work\php-4.3.0\ext\standard\reg.c(350) : warning C4018: '<=' : signed/unsigned mismatch scanf.c session.c soundex.c string.c strnatcmp.c syslog.c type.c uniqid.c url.c url_scanner.c var.c versioning.c regcomp.c regerror.c regexec.c regfree.c chartables.c get.c G:\work\php-4.3.0\ext\pcre\pcrelib\internal.h(145) : fatal error C1189: #error : LINK_SIZE must be either 2, 3, or 4 maketables.c G:\work\php-4.3.0\ext\pcre\pcrelib\internal.h(145) : fatal error C1189: #error : LINK_SIZE must be either 2, 3, or 4 pcre.c G:\work\php-4.3.0\ext\pcre\pcrelib\internal.h(145) : fatal error C1189: #error : LINK_SIZE must be either 2, 3, or 4 study.c G:\work\php-4.3.0\ext\pcre\pcrelib\internal.h(145) : fatal error C1189: #error : LINK_SIZE must be either 2, 3, or 4 ctype.c overload.c tokenizer.c ftp.c php_ftp.c cal_unix.c calendar.c d
Re: [PHP-WIN] ODBC Query max()
should be something like : select max(is) as id, ... - Original Message - From: "GeneralX" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 11:46 PM Subject: [PHP-WIN] ODBC Query max() > I'm trying to extract one record that has largest sequence ID number for an > employee, so I've tried below but doesn't work. Help. > > $mQuery = "EmployeeID = '$user'"; > $mCur = odbc_exec( $mCnx, "select ID=max(ID),Date,TimeIn,TimeOut,StationIP > from Clocks where $mQuery" ); > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Problem on passing value.
The source of show.php: However, no matter what I type in URL of browser, like http://localhost/show.php?a=1 or http://localhost/show.php, the result is the same - "False.". Can anyone help me? Is it the problem of my setting in Apache? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] ADO Connection problems
I am having problems making things happen in a Microsoft Access Database that I am connecting to through an ADO Connection using PHP. I know a little bit about PHP and how to code, but this is the first time I have played around with the ADO Connection and Command objects. I am getting no error messages or anything, but when I browse the database, my changes are not being posted. Here is an example of what I am trying to do. Hopefully, I am just missing a step along the way. $dbFile = 'SERVER\\FOLDER\\BackEnd.mdb'; $conn = new COM('ADODB.Connection'); $conn->Open("DRIVER=Microsoft Access Driver (*.mdb);DBQ=$dbFile"); $cmd = new COM('ADODB.Command'); $cmd->ActiveConnection = $conn; $cmd->CommandText = "UPDATE TABLE1 SET FIELD1 = '$parm1' WHERE FIELD2 = '$parm2';"; $cmd->Prepared = TRUE; $RSet = $cmd->Execute(); Any assistance anyone can offer would be greatly appreciated. Thank you. Joe -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] apache + php + system() = error :(
Forking is a unix thing... What happens when a process comes to a fork in the road, it splits and continues in two directions. You can't execute a batch file, you need the command intrepreter to handle that one, so the previous suggestion should be accurate. If you're on NT or 2000, maybe cmd.exe would be more apropriate. If you don't like this comment, go to the kitchen, open the silverware drawer, grab a fork and and see how far along you get with it on your keyboard. wrote in message 98qdfq$2t9$[EMAIL PROTECTED]">news:98qdfq$2t9$[EMAIL PROTECTED]... > Hi! > > No the error is not generated while exec'ing external program but while it > attemts to call the system() command ... it's like the system() and exec() > are malfuncioning ... using backticks (`) made the script to hang there > is something very fundamental that i do wrong but ... where? what? > > whoknows? :) > > Jürgen. > > "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message > 3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR... > You could try replacing "batch.bat" with "c:\windows\command.com /c > batch.bat" for windows 9x or "C:\winnt\cmd.exe /c batch.bat" or something > like that. > > > > > -- > 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] > -- 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]
Re: [PHP-WIN] Download Prompt Problem
Cute... I think you've got a couple of things to do now. Your computer now has the file type .php associated with php.exe. If that was what you really wanted great! But I think it's not what you were looking for. Under IIS on my box, I have properties for the computer a section called Computer MIME Map. I suspect you do to. Remove .php from there. That is for your computer, not specifically for the web server. After it's removed from there OK out of File Types if you haven't already. Ok out of the the computer properties also. Now select "Default Web Site" listed under your computer's name and edit the properties of it. Go to the Home Directory tab, select configuration and add the .php extension there. (this is how to do it for IIS4 on NT) Read the instructions more carefully, perhaps you'll see where you veered to the left, instead of the right. good luck, -joe ""Daniel"" <[EMAIL PROTECTED]> wrote in message 98p78q$8r7$[EMAIL PROTECTED]">news:98p78q$8r7$[EMAIL PROTECTED]... > I am very new to php, but i tried to install it and i followed the > directions i think... But everytime i try to view a .php document in IE it > prompts me to download the file instead of viewing it in the browser. And > when I do download the file and run it, it opens it up in a "Command Prompt" > and runs a bunch of html syntax really fast, I am thinking that is my php > configuration that i am supposed to see in my browser. Is there an extension > problem or something? .php extensions are set to run the /php/php.exe file > but I cant figure anything out. I am running apache on windows 2000. > > > > -- > 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] > -- 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]
[PHP-WIN] class and dynamic includes (IIS)
This appears to be an IIS specific issue. Using IIS and Manuel Lemos' Metabase, I'm getting errors in metabase_interface.php. Fatal error: Cannot instantiate non-existent class: metabase_oci_class in metabase/metabase_interface.php on line 99 It's quite inconsistent. After recieving this error, the next refresh, the error does not appear. I'm suspecting the root of the problem is class instantiation, within a class where the subordinate class is instantiated immediately after an include($class_file) within the parent class. Heh, if you can follow that, please advise... -- 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]
[PHP-WIN] different bug - define constants/includes (was Re: [PHP-WIN] class and dynamic includes (IIS))
I did some tracing on this bug I was experiencing. With this code at the top of an include file, the results are unpretictable. if(!defined("METABASE_MYSQL_INCLUDED")) { define("METABASE_MYSQL_INCLUDED",1); ...rest of include file... } require_once(); seems to work though. ""Joe Brown"" <[EMAIL PROTECTED]> wrote in message 99661p$9oc$[EMAIL PROTECTED]">news:99661p$9oc$[EMAIL PROTECTED]... > This appears to be an IIS specific issue. > > Using IIS and Manuel Lemos' Metabase, I'm getting errors in > metabase_interface.php. > > Fatal error: Cannot instantiate non-existent class: metabase_oci_class in > metabase/metabase_interface.php on line 99 > > It's quite inconsistent. After recieving this error, the next refresh, the > error does not appear. > > I'm suspecting the root of the problem is class instantiation, within a > class where the subordinate class is instantiated immediately after an > include($class_file) within the parent class. Heh, if you can follow that, > please advise... > > > > -- > 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] > -- 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]
Re: [PHP-WIN] apache + php + system() = error :(
It looks like you may have to venture down another road. I haven't been able to execute a batch file either. I enjoyed the error returned by popen: Warning: popen("cmd /c d:\wwwroot\blah.bat","r") - No error in d:\wwwroot\test.php on line 2 wrote in message 997d6d$p0p$[EMAIL PROTECTED]">news:997d6d$p0p$[EMAIL PROTECTED]... > > well... i understood your comment and it is clear that windows systems don't > use forking, but under w32 processes can have child's (children ? :) but i > can't understand why are functions that need forking (???) enabled? ... > > but after all this -forking- is not the issue here ... the real problem is > that I MUST USE external executable's and i can't see a way to do that ... > > must i really take a shot, using PERL ? > > camooon ... > > Jürgen. > > > ""Joe Brown"" <[EMAIL PROTECTED]> wrote in message > 995n6l$kp2$[EMAIL PROTECTED]">news:995n6l$kp2$[EMAIL PROTECTED]... > > Forking is a unix thing... What happens when a process comes to a fork in > > the road, it splits and continues in two directions. > > > > You can't execute a batch file, you need the command intrepreter to handle > > that one, so the previous suggestion should be accurate. If you're on NT > or > > 2000, maybe cmd.exe would be more apropriate. > > > > If you don't like this comment, go to the kitchen, open the silverware > > drawer, grab a fork and and see how far along you get with it on your > > keyboard. > > > > wrote in message > > 98qdfq$2t9$[EMAIL PROTECTED]">news:98qdfq$2t9$[EMAIL PROTECTED]... > > > Hi! > > > > > > No the error is not generated while exec'ing external program but while > it > > > attemts to call the system() command ... it's like the system() and > exec() > > > are malfuncioning ... using backticks (`) made the script to hang > > there > > > is something very fundamental that i do wrong but ... where? what? > > > > > > whoknows? :) > > > > > > Jürgen. > > > > > > "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message > > > 3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR... > > > You could try replacing "batch.bat" with "c:\windows\command.com /c > > > batch.bat" for windows 9x or "C:\winnt\cmd.exe /c batch.bat" or > something > > > like that. > > > > > > > > > > > > > > > -- > > > 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] > > > > > > > > > > > -- > > 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] > > > > > -- > 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] > -- 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]
Re: [PHP-WIN] Building PHP4 Problem
What do you have %CYGWIN% set to? Looks like it needs to be drive:\base\path\to\cygwin ""Alan Flockhart"" <[EMAIL PROTECTED]> wrote in message 99cje9$t28$[EMAIL PROTECTED]">news:99cje9$t28$[EMAIL PROTECTED]... > Hi I was wondering if anybody had replied directly about this as I have the > same problem. > > ALan > > > ""news.compuserve.com"" <[EMAIL PROTECTED]> wrote in message > 9893us$pkn$[EMAIL PROTECTED]">news:9893us$pkn$[EMAIL PROTECTED]... > > Its my first time out building PHP, so bare with me. Downloaded everything > > and set it up. No problem setting the paths and environment variables. > When > > I start the build process either in the GUI or from the command line, it > > gets to zend_language_parser.y and tries to execute the external command > to > > build it. However, bison complains about the -S option that is in the > custom > > command: > > > > The Command is: > > if not "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S > > "%CYGWIN%\share\bison.simple" -p zend zend_language_parser.y > > if "X%CYGWIN%"=="X" bison --output=zend_language_parser.c -v -d -S > > "C:\Program Files\Cygnus\share\bison.simple" -p zend > zend_language_parser.y > > > > I've got CYGWIN set, so the first "if" should be hitting. Any idea why > this > > is there, or why it is being misinterpreted? > > > > Greg Sohl > > Cedar Rapids, IA > > > > > > > > -- > > 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] > > > > > > -- > 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] > -- 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]
[PHP-WIN] Compiling, How to resolve com?
I've been trying to compile php4 on Windows. Almost there, but I haven't figured out how to resolve this, except to yank COM stuff out of the source. Haven't figured out how to compile oci8 either, but that's secondary to the initial obstical. With RC1 and the latest snaps, there are unresolved symboles in the compile: Linking... Creating library ..\Debug/php4nts_debug.lib and object ..\Debug/php4nts_debug.exp internal_functions_win32.obj : error LNK2001: unresolved external symbol _VARIANT_module_entry COM.obj : error LNK2001: unresolved external symbol _php_char_to_OLECHAR COM.obj : error LNK2001: unresolved external symbol _php_OLECHAR_to_char COM.obj : error LNK2001: unresolved external symbol _php_pval_to_variant COM.obj : error LNK2001: unresolved external symbol _php_variant_to_pval ..\Debug\php4nts_debug.dll : fatal error LNK1120: 5 unresolved externals Error executing link.exe. Please enlighten me. Thanks, -Joe -- 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]
[PHP-WIN] Re: [PHP-GTK] Re: [PHP-WIN] Time - WINCRON is for windows
You might want to look at cygwin - it might come with regular crond. --Joe On Sat, Mar 31, 2001 at 10:12:41AM +0200, Delbono wrote: > > WinCron is what you are looking for. > > http://www.erols.com/graysteel/wincron.html > > > I'm using it and it works correctly. > > > > > > > - Original Message - > From: "Josh Seward" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "php-gtk" <[EMAIL PROTECTED]> > Sent: Saturday, March 31, 2001 5:21 AM > Subject: [PHP-WIN] Time > > > Hello, > > Is there a way to have php run a script at a certain time? What I really > need is something like cron on unix systems. I would use windows scheduler > but it only goes by days. I ned to run this once every hour. > > > P.S. To let everyone how helped me before. I can now send commands to an > outside program I am running w/ the fsockopen command. This is after I open > the prog. with popen. Thank you all for your help., especially Steph and > Micheal. Your efffort and advice is much appriciated. If your ever in Athens > Ohio the first round is on me :-) > > > > -- > PHP GTK 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] /**\ *Joe Stump - PHP/SQL/HTML Developer * * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net * * "Better to double your money on mediocrity than lose it all on a dream." * \**/ -- 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]
[PHP-WIN] Re: [PHP-GTK] RE: [PHP-WIN] Time
0 * * * * php -q /path/to/file.php Oh shit - damn windows for not being POSIX! --Joe On Sun, Apr 01, 2001 at 01:27:35PM -0400, Asendorf, John wrote: > I know this sounds silly, but you could use Windows Scheduler and set 24 > instances, one for each hour, set for every day. May sound like a drag, but > it would work. > > - > John Asendorf - [EMAIL PROTECTED] > Web Applications Developer > http://www.lcounty.com - NEW FEATURES ADDED DAILY! > Licking County, Ohio, USA > 740-349-3631 > Aut insanit homo, aut versus facit > > > > -Original Message- > > From: Josh Seward [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 30, 2001 10:22 PM > > To: [EMAIL PROTECTED]; php-gtk > > Subject: [PHP-WIN] Time > > > > > > Hello, > > > > Is there a way to have php run a script at a certain time? > > What I really need is something like cron on unix systems. I > > would use windows scheduler but it only goes by days. I ned > > to run this once every hour. > > > > > > P.S. To let everyone how helped me before. I can now send > > commands to an outside program I am running w/ the fsockopen > > command. This is after I open the prog. with popen. Thank you > > all for your help., especially Steph and Micheal. Your > > efffort and advice is much appriciated. If your ever in > > Athens Ohio the first round is on me :-) > > > > -- > PHP GTK 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] /**\ *Joe Stump - PHP/SQL/HTML Developer * * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net * * "Better to double your money on mediocrity than lose it all on a dream." * \**/ -- 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]
Re: [PHP-WIN] HELP!!! (PHP-WINDOWS98-APACHE)
You need php4apache.dll only if you are running php as a module of Apache, not as a CGI or executable. php.exe does not require php4apache.dll, php4apache.dll does not require php.exe. They are mutually exclusive. ""Bhala"" <[EMAIL PROTECTED]> wrote in message 99vol8$3di$[EMAIL PROTECTED]">news:99vol8$3di$[EMAIL PROTECTED]... > I think my problem is that I am trying to run PHP not in CGI mode or what > everI think I need the php4apache.dll thing tho & for some resion I dont > have it. =\ > <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello again, > > Ok, I began thinking about your problem, and I think I remeber something > > about this, I was not able to do just "php" on the actions and aliases, I > had > > to do php4 for some reason. but I loaded uup apache today and tried the > cgi > > version, and it worked, heres the following thats located in my httpd.conf > > file: > > > > (change D:/server/apps/php/ to your php location) > > > > ScriptAlias /php4/ "D:/server/apps/php/" > > Action application/x-httpd-php4 "/php4/php.exe" > > AddType application/x-httpd-php4 .php > > > > > > Hope this helps. > > > > ~Jeff > > > > > > -- > 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] > -- 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]
Re: [PHP-WIN] MySql pconnect
But my point is that the communication overhead is still gained by process based systems. True they don't have the same pooling ability, as does a threaded process management. Overhead saved using pconnect is that which is being debated here. On a side note The OCI8 module in it's latest rendition does not take advantage of threaded environments (well, it never really did, but it was crashing, when it thought it could). Anybody want to help me fix that? I don't have a whole lot of time to devote to this task. I have a good understanding of what needs to be done. With out help, it may be a while before I get around to it. -Joe "Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sunday, April 15, 2001, 6:45:14 PM, you wrote: > > Your comment reguarding threaded sapi's although accurate, leaves > > out > > process based systems. They also benefit from pconnects, because > > the PHP > > process lives on past the life of a single web page. > > such things can't be shared amongst processes. > it works differently on multi process based systems (like apache), > there are persistent connections as well, but they can only be used by > one worker process. > that's one working process has a pool of persistent connections which > is reused only by that working process. > i've left that out because multi process based systems are rare > (generally bad design as well) and a follow there own rules. > > daniel > > /*-- > daniel beulshausen - [EMAIL PROTECTED] > using php on windows? http://www.php4win.de > > > > -- > 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] > -- 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]
Re: [PHP-WIN] IIS5 PHP Fails
Or better yet, download and install Apache! I got bit w/iis4 and shutdown startup not working ... Am now using php4apache.dll instead of the cgi on a production server now. >8^O ""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message 009001c0c76a$3a4d2910$0c01a8c0@philsntserver">news:009001c0c76a$3a4d2910$0c01a8c0@philsntserver... > >When I access the page hello.php, I get a 500 error. Any hints? > Change your installation from isapi to cgi (change scriptmap from > php4isapi.dll to php.exe and remove php from your list of isapi filters. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > 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] > -- 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]
[PHP-WIN] win2000 notepad
i have that win2000's notepad cannot recognize '\n' character i use editplus or textpad can read "return" as my will, is there any other character that both notepad and other text editor can recognize thx for your kind attention -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: background image
check your spelling first of all lol the last letter in background isn't a G also when you say "path" are you actually using a php variable or what? just saying "path" will get you no where at all. Please post an example of your code for me to see :) Joe On Tue, 21 Oct 2003 12:52:53 +0530, [EMAIL PROTECTED] (Rinku Shivnani) wrote: > >I am using the tag to set backgroung image. But its not working. > >Any suggesstion pls. > >Thank you. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: background image
please post an example of your code the last letter in background is not a G also when you say "path" are you using a php variable there or just as it is here because "path" will get you nowhere. Joe On Tue, 21 Oct 2003 12:52:53 +0530, [EMAIL PROTECTED] (Rinku Shivnani) wrote: > >I am using the tag to set backgroung image. But its not working. > >Any suggesstion pls. > >Thank you. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP and Server 2003
Hello, i have tried to get my server 2003 working bu5t i am not sure what i am doing wrong, i have installed the application server and iis was installed for some reason right from the get go the http://localhost/ doesn't work says this You are not authorized to view this page You might not have permission to view this directory or page using the credentials you supplied. -- If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page. You can click Search to look for information on the Internet. HTTP Error 403 - Forbidden Internet Explorer i have tried to install php and see if to worked afterwards but it didn't i know how to setup a web server in 2k and xp but for some reason the same steps are not working for 2003 server if anyone here has used 2003 server i owuld appreciate any help you can offer :) -- JOSEPH CRAWFORD JR.
[PHP-WIN] Re: PHP and Server 2003
i must let you know that IIS is working properly though because i can remotely login to the web based administration that uses IIS just something with the local web site -- JOSEPH CRAWFORD JR. "Joe Crawford Jr." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, i have tried to get my server 2003 working bu5t i am not sure what i am doing wrong, i have installed the application server and iis was installed for some reason right from the get go the http://localhost/ doesn't work says this You are not authorized to view this page You might not have permission to view this directory or page using the credentials you supplied. -- If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page. You can click Search to look for information on the Internet. HTTP Error 403 - Forbidden Internet Explorer i have tried to install php and see if to worked afterwards but it didn't i know how to setup a web server in 2k and xp but for some reason the same steps are not working for 2003 server if anyone here has used 2003 server i owuld appreciate any help you can offer :) -- JOSEPH CRAWFORD JR.
[PHP-WIN] Re: PHP and Server 2003
i have figured this out and i am going to post how to do it incase other people would like to get this to work Start -> Administrative Tools -> Internet Information Services Manager Click the + by your computer name Go to Web Service Extensions And Add one for PHP and enable it. Once you do that you should have no problems, install PHP and restart your IIS. -- JOSEPH CRAWFORD JR. "Joe Crawford Jr." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, i have tried to get my server 2003 working bu5t i am not sure what i am doing wrong, i have installed the application server and iis was installed for some reason right from the get go the http://localhost/ doesn't work says this You are not authorized to view this page You might not have permission to view this directory or page using the credentials you supplied. -- If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page. You can click Search to look for information on the Internet. HTTP Error 403 - Forbidden Internet Explorer i have tried to install php and see if to worked afterwards but it didn't i know how to setup a web server in 2k and xp but for some reason the same steps are not working for 2003 server if anyone here has used 2003 server i owuld appreciate any help you can offer :) -- JOSEPH CRAWFORD JR.