php-windows Digest 19 Apr 2001 10:11:50 -0000 Issue 552 Topics (messages 6845 through 6862): Re: newbie needs help setting up PHP4 with win98 SE and PWS 6845 by: Martijn Weisbeek Re: file .htaccess 6846 by: Martijn Weisbeek 6853 by: WK Re: Newbie seeks help with PHP database connection problems 6847 by: Martijn Weisbeek Re: Can you please help me! 6848 by: Martijn Weisbeek 6850 by: Manesh site check for web methodology 6849 by: sunker Examples i need :) 6851 by: Manesh Php3 6852 by: Manesh 6854 by: rjones Re: Best non-tackified grip enhancer for golfers, 6855 by: Michael C Re: Excel COM 6856 by: Michael C PHP & IIS system() a program in the forground 6857 by: Root88 CGI error ONLY on 2x page request? 6858 by: Tim Lofstrom Subquerries 6859 by: Olivier Botineau 6860 by: Руслан Охитин What does -> do? 6861 by: Marcus Taylor 6862 by: Yasuo Ohgaki Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
<cut> > 3. edited php.ini as follows > include_path = f:\phpstuff ; where i'll store my php scripts! > doc_root = > user_dir = f:\phpstuff > extension_dir = e:\php4\ > enable_dl = On </cut> IMHO, the include_path is where you made just a little error. I think you should also include the current directory ("." (without the quotes) in UNIX-terms). I believe PHP also has its own include-files (besides your scripts). When you include the current directory it can also find these. You can do it like this: include_path = .;f:\phpstuff Just try it out and let us know whether this worked out... Just a hint: do not fill in the include_path when you do not really need to. You can place your PHP-scripts anywhere on your server as long as you create virtual directories for them. From there you can easily include files. No direct need for setting the include_path, IMHO. But I could easily be wrong here (besides, most of the times I am PHP-newbie too, but fortunately one can learn PHP quickly and easily). Greetings, Martijn Weisbeek www.weisbeek.com
>My site in on Unix server with PHP4. >I need to insert in file .htaccess in the root this command for an include >path: > >php_include_path /directory > >Why this command don't work ? I've an internal server error .. Internal Server Error ? One of those damned 500's... To me it sounds like you need to chmod the file from the shell or using your FTP-program. Unfortunately I do not know the proper rights it needs, so htaccess on the Internet. It should be documented somewhere... (or I guess someone on the list knows it)... BTW, .htaccess is not a PHP-related file. I think it is a file from Apache. I have never heard of chmod'ing a PHP-file. But with files from Perl and Apache it's different. Hope that this helps you get it up&running... Greetings, Martijn Weisbeek www.weisbeek.com
try php_value include_path /directory ""Martijn Weisbeek"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >My site in on Unix server with PHP4. > >I need to insert in file .htaccess in the root this command for an include > >path: > > > >php_include_path /directory > > > >Why this command don't work ? I've an internal server error .. > > Internal Server Error ? One of those damned 500's... > To me it sounds like you need to chmod the file from the shell or using your > FTP-program. > Unfortunately I do not know the proper rights it needs, so htaccess on the > Internet. > It should be documented somewhere... (or I guess someone on the list knows > it)... > > BTW, .htaccess is not a PHP-related file. I think it is a file from Apache. > I have never heard of chmod'ing a PHP-file. But with files from Perl and > Apache it's different. > > Hope that this helps you get it up&running... > > Greetings, > > Martijn Weisbeek > www.weisbeek.com > > > > -- > 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] >
>How do you create user access priviliges in MySQL and where would you put a >username and password in the mysql_select_db() statement? I suggest you try the fail-safe method of getting mySQL and PHP working together: Before applying any difficult stuff from your books: install phpMyAdmin from www.phpWizard.net. This PHP-application is easy to setup (just edit the config*.php) on your server and shows you which tables do exist. BTW, a default mySQL-installation has a root-user with an empty password. I believe it runs on port 3306, but you hardly need to provide those kind of parameters. Of course, you should be sure that mySQL is running on your server. Go into your mySQL-directory, type mysql <ENTER> and see whether you get a prompt or an error-message. After all that works you can try creating your own scripts and wonder why they are (not) working... Good luck... Greetings, Martijn
> OK.. i have win2k and i have some tutorials can you tell me exactly what > to do? i have frontpages 2k PLEASE PLEASE PLEASE The biggest help is "not starting Frontpage (whatever version)". IMHO, Frontpage can only confuse you when you try to get this started. Of course FP can help if you do not know HTML. But the only thing to do to check whether PHP is working is this: 1) in the root of your webserver (I guess it's c:\inetpub\wwwroot) create a file phpinfo.php 2) open this in Notepad and just type this: <?php phpinfo(); ?> 3) save the file (you can now close it) 4) start Internet Explorer and type http://localhost/phpinfo.php This should give you a huge blue (!) page with all kinds of variables. If you see this PHP is up & running. I do not know what you'd like to use PHP for. But just keep us informed of any problems that might arise... Greetings, Martijn www.weisbeek.com
thank you it worked w00000t ThE_DeaD -----Original Message----- From: Martijn Weisbeek [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 7:31 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Can you please help me! > OK.. i have win2k and i have some tutorials can you tell me exactly what > to do? i have frontpages 2k PLEASE PLEASE PLEASE The biggest help is "not starting Frontpage (whatever version)". IMHO, Frontpage can only confuse you when you try to get this started. Of course FP can help if you do not know HTML. But the only thing to do to check whether PHP is working is this: 1) in the root of your webserver (I guess it's c:\inetpub\wwwroot) create a file phpinfo.php 2) open this in Notepad and just type this: <?php phpinfo(); ?> 3) save the file (you can now close it) 4) start Internet Explorer and type http://localhost/phpinfo.php This should give you a huge blue (!) page with all kinds of variables. If you see this PHP is up & running. I do not know what you'd like to use PHP for. But just keep us informed of any problems that might arise... Greetings, Martijn www.weisbeek.com -- 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]
dear all, http://www.planetsourcecode.com/xq/ASP/txtCodeId.6599/lngWId.4/qx/vb/scripts/ShowCode.htm
I need some sites that gimme examples of PHP, PLEASE
i have php4 and when i use .php its works, but php3 don't work plz help!
Manesh, Are you trying to run php version 3 or scripts with a php3 extension? If the latter you need to add php3 to your AddType application/x-httpd-php .phtml .php rwj ----- Original Message ----- From: "Manesh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 9:33 PM Subject: [PHP-WIN] Php3 > i have php4 and when i use .php its works, but php3 don't work > > plz help! > > -- > 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] >
What does this have to do with PHP for Windows? -- Later Days:) Michael Clesceri ""Perfection (in design) is achieved not when there is nothing more to add, but rather when there is nothing more to take away." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > NO SALES PITCH, NO PRESSURE, NO NOTHING. > > Just the best non-tackified grip enhancer you'll ever use for your golf game, GUARANTEED, or your money back. > > From football's #1 specialty product company, SUPAGRIP25 is now available to golf enthusiasts everywhere. > > Click here > http://www.creativefootball.com > to see the product that is taking all sports (where a good grip is essential) by storm! > > While you're there be sure to check out our "who uses our products" page, what you see just might surprise you. > You really didn't think they make those great catches on talent alone, did you? > > > Transmissions to you by the sender of 'this' email will be stopped promptly by sending an e-mail with "unsubscribe" in the subject line. Simply hit reply and send and we will remove you from our database. Please Note-This is a one time mailing.Thank you. > > -- > 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] >
Ryan: Hey I am going to just say that I am curious myself now So that is why I am posting to this group Thanks Mike ""Conover, Ryan"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to use the excel Com on a win2k/IIS5/php4.0.4pl1 with Office 2K > SR-1. I keep getting the following error. > > Warning: Unable to obtain IDispatch interface for CLSID > {00020820-0000-0000-C000-000000000046}: Not enough storage is available to > complete this operation. in c:\Inetpub\wwwroot/ComTest2.php on line 3 > > Anyone know how to rectify this. > > Ryan Conover > > > -- > 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] >
I am running PHP under Windows 2000. I want to play a .wav file on my machine when a certain page gets loaded. I am using the system() function. I can get my machine to run the program, but it runs in the background. I can't hear the .wav when it does that. Is there a way to run the program in the foreground?
I have browsed the archives, and have a few hints that confirm what I thought may be happening, and seem to have it narrowed down to something in the file system of W2k or file locking in IE 5.5a Running the latest self installing 4.04? php cgi on IIS 5 on Win2K All worked well for a few weeks, then I started getting empty headers. But not when I first browse to a page, and not when I repeatedly browse to only directories (which brings up the default page) But the errors happen when ever I browse to a the second page after starting up IE 5.5a. E.g. if I browse to localhost/1web/Outdoorbc/ I can refresh, open a new window, or browse to any directory and have the default page display. Then click on a page, e.g. localhost/1web/Outdoorbc/phpinfo.php and it displays everything beautiful (this page is simple <?php phpinfo() ?> BUT when I try to refresh the page, it has no headers (it cannot find the file, the file is locked) OR if I try to open a new window of the same page (CTR+N) it is empty OR if I open a regular page localhost/1web/Outdoorbc/index.php?pg=mail then browsing anywhere to another page e.g. localhost/1web/Outdoorbc/index.php?pg=weather will produce empty headers. Some setting in IE 5.5a? W2K? PHP? Anyone seen this, or have some hints, it would be appreciated. Tim L
Hi everybody I use * mysql-3.23.36-win * apache_1.3.19-win32 * php-4.0.4pl1-Win32 On NT4 SP5 I try this : <CENTER><TABLE COLS=1 WIDTH="81%"> <? $operateur = " OR "; $sub_query = ""; $query_num_effet = "SELECT * FROM tr_scene_effet WHERE num_scene = $selScene ORDER BY num_effet ASC "; $result_num_effet = mysql_db_query( $db, $query_num_effet ); while( $ligne_num_effet = mysql_fetch_array( $result_num_effet ) ) { $sub_query = $sub_query . " num_effet = " . $ligne_num_effet[ "num_effet" ] . $operateur; } $sub_query = substr( $sub_query, 1, strlen( $sub_query ) - ( strlen( $operateur ) + 1 ) ); $query_effet = "SELECT lib_effet FROM t_effet WHERE " . $sub_query; $result_effet = mysql_db_query( $db, $query_effet ); while( $ligne_effet = mysql_fetch_array( $result_effet ) ) { ?> <TR> <td background="/images/transp.gif"> <LI> <FONT><?echo $ligne_effet[ "lib_effet" ];?></FONT></LI> </TD> </TR> <? } ?> </TABLE></CENTER> that works. Whereas : <CENTER><TABLE COLS=1 WIDTH="81%"> <? $query_effet = "SELECT lib_effet FROM t_effet WHERE num_effet IN (SELECT num_effet FROM TR_scene_effet WHERE num_scene = $selScene) " $result_effet = mysql_db_query( $db, $query_effet ); while( $ligne_effet = mysql_fetch_array( $result_effet ) ) { ?> <TR> <td background="/images/transp.gif"> <LI> <FONT><?echo $ligne_effet[ "lib_effet" ];?></FONT></LI> </TD> </TR> <? } ?> </TABLE></CENTER> doesn't work. Does it mean I can't use sub querries ? Anybody have an idea ? Thanks, Olivier.
MySQL don't support sub querries. See MySQL manual - 5.4.1 Sub-selects OB> Hi everybody OB> I use OB> * mysql-3.23.36-win OB> * apache_1.3.19-win32 OB> * php-4.0.4pl1-Win32 OB> On NT4 SP5 OB> I try this : OB> <CENTER><TABLE COLS=1 WIDTH="81%"> OB> <? OB> $operateur = " OR "; OB> $sub_query = ""; OB> $query_num_effet = "SELECT * FROM tr_scene_effet WHERE num_scene = $selScene ORDER BY num_effet ASC "; OB> $result_num_effet = mysql_db_query( $db, $query_num_effet ); OB> while( $ligne_num_effet = mysql_fetch_array( $result_num_effet ) ) OB> { OB> $sub_query = $sub_query . " num_effet = " . $ligne_num_effet[ "num_effet" ] . $operateur; OB> } OB> $sub_query = substr( $sub_query, 1, strlen( $sub_query ) - ( strlen( $operateur ) + 1 ) ); OB> $query_effet = "SELECT lib_effet FROM t_effet WHERE " . $sub_query; OB> $result_effet = mysql_db_query( $db, $query_effet ); OB> while( $ligne_effet = mysql_fetch_array( $result_effet ) ) OB> { ?>> OB> <TR> OB> <td background="/images/transp.gif"> OB> <LI> OB> <FONT><?echo $ligne_effet[ "lib_effet" ];?></FONT></LI> OB> </TD> OB> </TR> OB> <? OB> } ?>> OB> </TABLE></CENTER> OB> that works. OB> Whereas : OB> <CENTER><TABLE COLS=1 WIDTH="81%"> OB> <? OB> $query_effet = "SELECT lib_effet FROM t_effet WHERE num_effet IN (SELECT num_effet FROM TR_scene_effet WHERE num_scene = $selScene) " OB> $result_effet = mysql_db_query( $db, $query_effet ); OB> while( $ligne_effet = mysql_fetch_array( $result_effet ) ) OB> { ?>> OB> <TR> OB> <td background="/images/transp.gif"> OB> <LI> OB> <FONT><?echo $ligne_effet[ "lib_effet" ];?></FONT></LI> OB> </TD> OB> </TR> OB> <? OB> } ?>> OB> </TABLE></CENTER> OB> doesn't work. OB> Does it mean I can't use sub querries ? OB> Anybody have an idea ? OB> Thanks, OB> Olivier. -- Best regards, Ruslan [EMAIL PROTECTED]
I am using PHP Auth and trying to look at customizing the code, i'm a hands on man, look abd learn is my motto but I am having trouble finding out what is happening when you use -> in PHP. The project that I have downloaded uses this quite a lot and I have a snippet below any ideas would be great: case "current": // current users, just check for logged in $this->islogged_in(); case "confirm": // current users, just check for logged in $this->confirm($this->id_hash,$this->email); Thanx in advance /mdt
This section would be what you are looking for http://www.php.net/manual/en/language.oop.php Other sections would be useful as well. Regards, -- Yasuo Ohgaki ""Marcus Taylor"" <[EMAIL PROTECTED]> wrote in message 9bmaej$hmq$[EMAIL PROTECTED]">news:9bmaej$hmq$[EMAIL PROTECTED]... > I am using PHP Auth and trying to look at customizing the code, i'm a hands > on man, look abd learn is my motto but I am having trouble finding out what > is happening when you use -> in PHP. The project that I have downloaded uses > this quite a lot and I have a snippet below any ideas would be great: > > case "current": > // current users, just check for logged in > $this->islogged_in(); > case "confirm": > // current users, just check for logged in > $this->confirm($this->id_hash,$this->email); > > Thanx in advance > /mdt > > > > > -- > 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] >