[PHP] php not working anymore in IIS
After changing my php folder from e:\php to f:\php php does not work anymore in my webserver. I found out regsvr32 phpisapi.dll gives an error. I remember having a similar problem but am not sure what and how. Anyone know how to fix? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working after Mac 10.3.9 install
Greetings, I am a very novice user of PHP. I have run PHP 4 on my Powerbook for about three years. When I installed Mac OS 10.3.9, PHP does not work. I forgot how to get it running again. Can anyone help me with this? Thanks, -- Steve Marquez
Re: [PHP] PHP not working with apache2
Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? In Gentoo, emerge php just installs the client build, emerge mod_php installs the Apache module. Therefore, what you need to do is emerge -av mod_php Also, emerge apache installs Apache2, eventhough you may see apache and apache2 in /etc/ Then edit /etc/conf.d/apache2 and add -D PHP4 to the APACHE2_OPTS variable. Finally, issue /etc/init.d/apache2 restart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working with apache2
I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? - Grant __ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with apache2
Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? http://us2.php.net/manual/en/install.unix.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with apache2
--- John Holmes [EMAIL PROTECTED] wrote: Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? http://us2.php.net/manual/en/install.unix.php Thank you for the link. This section seems to apply to me: Common Problems If you see the PHP source instead of the result the script should produce, you have probably forgot to edit /etc/conf.d/apache. Apache needs to be started with the -D PHP4 flag. To see if the flag is present, you should be able to see it when using ps ax | grep apache while Apache is running. but I have already added -D PHP4 to my /etc/conf.d/apache2 file and the ps ax | grep apache2 command verifies that. Any ideas? - Grant __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with apache2
On Sunday 15 August 2004 07:45, Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? Shouldn't you be asking this on the Gentoo list? At the very least so that the package packagers would know that there is something wrong with their packages. And the fact that you have both apache and apache2 installed complicates matter slightly. How does Gentoo handle it? Does it install PHP for both? Which apache are you hitting when you see the raw PHP code? Unless you know what you're doing why have you got two apaches installed? Etc. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* NOTICE: Anyone seen smoking will be assumed to be on fire and will be summarily put out. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with apache2
--- Jason Wong [EMAIL PROTECTED] wrote: On Sunday 15 August 2004 07:45, Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2 installed on my system, and I suspect some key PHP things may have been set up for apache instead of apache2. Does anyone have any pointers? I have asked about this on the Gentoo list and was told to add -D PHP4 to an apache2 directive. I did that, but it still doesn't work. Having apache and apache2 installed is some kind of a mistake. I'm a newbie and not sure how it happened. I plan on completely starting over and setting up my server again from nothing to make it very clean, but everything except PHP is working great. This is the absolute last thing standing in the way of going live. When I see the raw code I am hitting apache2 as apache is not running. The only reason I need PHP is squirrelmail. Is mod_php necessary in this situation? - Grant __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with apache2
On Sunday 15 August 2004 10:09, Grant wrote: I have asked about this on the Gentoo list and was told to add -D PHP4 to an apache2 directive. I did that, but it still doesn't work. Then escalate the issue! Or go through the chapter: manual Installation Servers-Apache 2.0 to make sure that all the steps outlined have been performed correctly by the emerge. Having apache and apache2 installed is some kind of a mistake. I'm a newbie and not sure how it happened. I plan on completely starting over and setting up my server again from nothing to make it very clean, but everything except PHP is working great. This is the absolute last thing standing in the way of going live. That's a good idea. Like I said unless you know what you're doing having both apaches installed is not a very good idea. When I see the raw code I am hitting apache2 as apache is not running. The only reason I need PHP is squirrelmail. Is mod_php necessary in this situation? I would guess yes, but it all depends on how your system is setup. Furthermore you have to establish 1) whether mod_php is installing against apache, apache2, or both 2) whether squirrelmail is installing against apache, apache2, or both Again, the Gentoo list is what you want. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Whom the mad would destroy, first they make Gods. -- Bernard Levin */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working with Apache
The php installer doesn't do everything for a windows installation. You'll need to edit php.ini httpd.config for apache, as described in the installation guide. Raditha Dissanayake wrote: Yes sounds like you have not read the installation guide. Mark Mark wrote: I am running Apache 1.3.29 and PHP 4.3.3. I installed apache first and got it to work. Then, I install the php installer and and copied the windows binary files. I followed the instruction to run as a module and I even uninstalled the php files and tried to run PHP as just a CGI binary, both methods failured. I created a test php script called hello.php and the web page was blank when I tried to access it. I could view the code... Any ideas? I am running WIN 2K server sp4. Thanks in adavnce - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working with Apache
I am running Apache 1.3.29 and PHP 4.3.3. I installed apache first and got it to work. Then, I install the php installer and and copied the windows binary files. I followed the instruction to run as a module and I even uninstalled the php files and tried to run PHP as just a CGI binary, both methods failured. I created a test php script called hello.php and the web page was blank when I tried to access it. I could view the code... Any ideas? I am running WIN 2K server sp4. Thanks in adavnce - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
Re: [PHP] PHP not working with Apache
Yes sounds like you have not read the installation guide. Mark Mark wrote: I am running Apache 1.3.29 and PHP 4.3.3. I installed apache first and got it to work. Then, I install the php installer and and copied the windows binary files. I followed the instruction to run as a module and I even uninstalled the php files and tried to run PHP as just a CGI binary, both methods failured. I created a test php script called hello.php and the web page was blank when I tried to access it. I could view the code... Any ideas? I am running WIN 2K server sp4. Thanks in adavnce - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working in html
You can also change the apache config to use php for .html pages. example in apache 2.0.x: VirtualHost a.b.c.d:80 ... normal stuff like documentroot, servername, .. Files *.html SetOutputFilter PHP SetInputFilter PHP /Files /VirtualHost Or globally in the /etc/httpd/conf.d/php.conf, add a: Files *.html SetOutputFilter PHP SetInputFilter PHP /Files Example in apache 1.3.x: Between the IfModule mod_mime.c and /IfModule tags, add the following: AddType application/x-httpd-php .html Kind regards, Dries Verachtert On Thu, 2002-11-07 at 22:27, 1LT John W. Holmes wrote: PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Give your file a .php extension, maybe? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: Re: [PHP] PHP not working in html]
You can also change the apache config to use php for .html pages. example in apache 2.0.x: VirtualHost a.b.c.d:80 ... normal stuff like documentroot, servername, .. Files *.html SetOutputFilter PHP SetInputFilter PHP /Files /VirtualHost Or globally in the /etc/httpd/conf.d/php.conf, add a: Files *.html SetOutputFilter PHP SetInputFilter PHP /Files Example in apache 1.3.x: Between the IfModule mod_mime.c and /IfModule tags, add the following: AddType application/x-httpd-php .html Kind regards, Dries Verachtert On Thu, 2002-11-07 at 22:27, 1LT John W. Holmes wrote: PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Give your file a .php extension, maybe? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working in html
PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Give your file a .php extension, maybe? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working in html
PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working in html
What extension are your files? Your web server is probably not set up to handle your files as PHP files. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmer Come visit us at http://www.phparch.com! ---BeginMessage--- PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working in html
In your .htaccess file remove anything that looks like this: AddHandler server-parsed .html And add this line: AddType application/x-httpd-php .php .htm .html Do a search for parse html php for more help. -Kevin - Original Message - From: Mike At Spy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 07, 2002 2:16 PM Subject: [PHP] PHP not working in html PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP not working in html
There isn't any .htaccess file in the directory - I added one with the line you specified, and my directory comes up with a 'server misconfiguration error'. Any other ideas? :) Thanks! -Mike In your .htaccess file remove anything that looks like this: AddHandler server-parsed .html And add this line: AddType application/x-httpd-php .php .htm .html Do a search for parse html php for more help. -Kevin - Original Message - From: Mike At Spy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 07, 2002 2:16 PM Subject: [PHP] PHP not working in html PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP not working in html
On Friday 08 November 2002 05:35, Mike At Spy wrote: There isn't any .htaccess file in the directory - I added one with the line you specified, and my directory comes up with a 'server misconfiguration error'. Any other ideas? :) You may have to put it inside a directory container: Directory /home/www/ AddType application/x-httpd-php .htm .html /Directory Or you can edit your httpd.conf file instead: IfModule mod_php4.c AddType application/x-httpd-php .php4 .php3 .php .html AddType application/x-httpd-php-source .phps /IfModule This will parse all html on all the websites served by apache. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* poor power conditioning */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP not working on Apache at XP Pro.
I've got Windows XP Pro OS. I installed and am running mySQL on that. However, PHP is not getting configured with Apache on it. I got the latest Apache, 1.3.24 or something, not the Version 2. Anyway, Apache runs perfectly on it. However, when i put in the required PHP lines in httpd.conf and install PHP otherwise on the system. What happens is that i get an error stating that : mod_c.php already exists, skipping Now when i remove that line, PHP does not work with Apache. If i insert that line, APACHE itself doesn't work at all. What is wrong with it? I've just recently done pretty much exactly that on my XP Pro Laptop. I must admit that I found the install.txt text file in the php zip archive that I downloaded from php.net to be just fine for getting it all working. In the end it took me something less than 20 mins to install and test the whole thing once I had all the archives downloaded. If you are getting errors I'd suggest going back and reading the install.txt again and checking that you followed the steps in it exactly - I did and it works. As the install file suggests, start more simply by excluding the extra modules until you're sure the base install is working - I did this and I suspect it helped. CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP not working on Apache at XP Pro.
If you use win xp pro try use phptriad is working in my winbox , phptriads include = apache+mysql+php. You can download in sourceforge. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP not working on Apache at XP Pro.
Glory! I've got Windows XP Pro OS. I installed and am running mySQL on that. However, PHP is not getting configured with Apache on it. I got the latest Apache, 1.3.24 or something, not the Version 2. Anyway, Apache runs perfectly on it. However, when i put in the required PHP lines in httpd.conf and install PHP otherwise on the system. What happens is that i get an error stating that : mod_c.php already exists, skipping Now when i remove that line, PHP does not work with Apache. If i insert that line, APACHE itself doesn't work at all. What is wrong with it? Well thanks, T. Edison Jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Not Working
Very strange situation, PHP Version 4.0.3 on one of my production web servers has started to loose different functionality?? The OS is Apache/1.3.12 (Unix) (Red Hat/Linux 6.2) PHP/4.0.3 mod_perl/1.21, PHP was compiled as a module with apxs. The strange thing is, some virtual host directories have some of the things other Virtual host directories don't have or quite working. It started with the include() function not working and has now moved to the mail() function not working. Has anyone excperienced similiar problems or know of a fix?? Thanks, Blake -- 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]
[PHP] PHP finally working...
Just wanted to post a quick note to thank those of you who offered suggestions regarding my posts re: php not working and php STILL not working. I've been deedle-dinking around with it off and on since Sunday, and after a multitude of ./configures makes make installs and whatever else (including but not limited to torching chicken feathers as a burnt offering) it's working. My problem is I DON'T KNOW WHY... and that's probably worse than it not working, because I can't repeat the process. But anyway, maybe next time things will go mo' better and I'll get it right in under a day... Anyway, thanks to all for your suggestions...just don't ask me how I did it. Brent -- 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]
Re: [PHP] php not working
I even tried the LoadModule trick, but since I didn't compile as a module, that just gave me an error when I restarted the server. And therein lies the rub. If you compiled as a stand-alone binary (aka CGI) you don't want AddHandler, you want Action. Something not unlike: Action application/x-httpd-php4 /full/path/to/wherever/you/hid/php PS You probably do want to try to do the Module thingie ASAP. Way mo' betta. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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]
RE: [PHP] php not working
here's my apache config i use at home (where i have the binary version, *not* server module) ScriptAlias /pbin/ /usr/local/php-bin/ AddType application/x-httpd-php .php Action application/x-httpd-php /pbin/php -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of brent Sent: Sunday, June 24, 2001 7:49 PM To: Php-General@Lists. Php. Net Subject: [PHP] php not working Hi. Need help badly. I've been trying in vain to get PHP 4.0.5 working with Apache 1.3.20. Red Hat 7.0 I've added the lines: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to my httpd.conf file and : application/x-httpd-php php phtml pht to mime.types I even tried the LoadModule trick, but since I didn't compile as a module, that just gave me an error when I restarted the server. I'm new to Apache and PHP set up so I'm probably missing something obvious. And I've RTFM and archives and books and everything I can find, but still no luck. TIA for any suggestions. Brent -- 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] -- 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]
[PHP] php not working
Hi. Need help badly. I've been trying in vain to get PHP 4.0.5 working with Apache 1.3.20. Red Hat 7.0 I've added the lines: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to my httpd.conf file and : application/x-httpd-php php phtml pht to mime.types I even tried the LoadModule trick, but since I didn't compile as a module, that just gave me an error when I restarted the server. I'm new to Apache and PHP set up so I'm probably missing something obvious. And I've RTFM and archives and books and everything I can find, but still no luck. TIA for any suggestions. Brent -- 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]
RE: [PHP] php not working
I've added the lines: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to my httpd.conf file Maybe try adding: AddType application/x-httpd-php4 .php instead of: AddType application/x-httpd-php .php It depends on how you did the Action stuff. If you did: Action application/x-httpd-php4 /php4/php.exe then you should use: AddType application/x-httpd-php4 .php but if you did: Action application/x-httpd-php /php4/php.exe then you should use: AddType application/x-httpd-php .php That might work, it might not. --Jason -- 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]
Re: [PHP] php not working
php.exe he's using redhat ... so there might be a _very_good_ possibility that he doesn't have php.exe laying around. lenar. Jason Lustig [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've added the lines: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to my httpd.conf file Maybe try adding: AddType application/x-httpd-php4 .php instead of: AddType application/x-httpd-php .php It depends on how you did the Action stuff. If you did: Action application/x-httpd-php4 /php4/php.exe then you should use: AddType application/x-httpd-php4 .php but if you did: Action application/x-httpd-php /php4/php.exe then you should use: AddType application/x-httpd-php .php That might work, it might not. --Jason -- 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] -- 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]
Re: [PHP] php not working
Jason et. al., Thanks for the suggestion, but I'm still up the creek. I've seen some posts about AddHandler, so I tried adding the following to the .conf file: AddHandler php-script .php but again, with no success. Any other ideas? TIA again. Brent Jason Lustig wrote: I've added the lines: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps to my httpd.conf file Maybe try adding: AddType application/x-httpd-php4 .php instead of: AddType application/x-httpd-php .php It depends on how you did the Action stuff. If you did: Action application/x-httpd-php4 /php4/php.exe then you should use: AddType application/x-httpd-php4 .php but if you did: Action application/x-httpd-php /php4/php.exe then you should use: AddType application/x-httpd-php .php That might work, it might not. --Jason -- 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] -- 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]
[PHP] php quit working
I just installed php as an apache DSO module on the first try of a phpinfo(); it worked just as it should, then I loaded phpmyadmin and now when I make a request for a php file it tries to download, my httpd.conf file seems to be in order...any ideas? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -- 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]
Re: [PHP] php quit working
Addressed to: "Jerry Lake" [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from "Jerry Lake" [EMAIL PROTECTED] Mon, 26 Feb 2001 12:58:35 -0800 I just installed php as an apache DSO module on the first try of a phpinfo(); it worked just as it should, then I loaded phpmyadmin and now when I make a request for a php file it tries to download, my httpd.conf file seems to be in order...any ideas? What file extension did you use on your phpinfo() attempt? What file extension does phpMyAdmin use? Are they different You may need to add php3 to the AddType application/x-httpd-php declaration somewhere in your Apache configuration. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com -- 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]
[PHP] PHP Socket working (sorta)
After hours of pulling my hair out and staring a C code I don't understand, I almost have a generic PHP multiplexing TCP server running. Basically right now multiple clients can connect and be recognized by the server and the server is aware of incoming input from the clients. This is mostly using undocumented functions from the Socket extension and I could really use some help from anyone that knows sockets better than I. From where I am, I still need to figure out when a client disconnects, plus how to disconnect a client (at the server's whim) directly. I also need the multiplex to be aware of writes as well as reads, although I think I should be able to sort that part out, it's the disconnects that I haven't a clue on yet. Here's my sloppy code (sorely lacking in error checking, but oh well): // PHP normally times out, we don't want to do that here. set_time_limit (0); // Server's address and port we want to listen to. $address = '209.53.13.112'; $port = 8080; // Start the socket. $sock = socket (AF_INET, SOCK_STREAM, 0); $foo = bind ($sock, $address, $port); $foo = listen ($sock, 10); // Allocate File Descriptor, not sure if this is needed, I'm just guessing. $fdgroup = fd_alloc(); $maxfd = $sock + 1; do { // FD needs to be rebuilt each time because select() may alter it. if ($maxfd $sock + 1) { // If any clients have connected, rebuild the FD from the list. $foo = fd_zero($fdgroup); $foo = fd_set($sock,$fdgroup); for ($i=0;$i = count($fdlist);$i++) { $foo = fd_set($fdlist[$i],$fdgroup); } } else { // or else the socket itself is the only FD. $foo = fd_zero($fdgroup); $foo = fd_set($sock,$fdgroup); } // Now the very important and magical select(), set to timeout after a million microseconds (1 second). $selectnow = select($maxfd, $fdgroup, NULL, NULL, 0, 100); if ($selectnow == 0) { // We've timed out, put any appropriate activities here. } elseif ($selectnow 0) { for ($fd=$sock;$fd =$maxfd;$fd++) { if (fd_isset($fd,$fdgroup)) { if ($fd == $sock) { // The socket is knocking, someone is at the door. $newfd = accept_connect($sock); if ($newfd 0) { $fdlist[] = $newfd; if ($maxfd $newfd + 1) $maxfd = $newfd + 1; } } else { // One of our clients has something to say. } } } } } while (true); // Do we need to deallocate File Descriptors? I'm not sure. $foo = fd_dealloc($fdgroup); close ($sock); -- Visit the Gates Motel webgame: http://www.gameslate.com/gatesmotel/ -- 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]
[PHP] PHP not working on Win95/Apache
I am trying to run PHP in Windows '95 with Apache server. I followed all the instructions in the installation doc, including editting the Apache and PHP configuration files, and putting the PHP.INI file in my Windows directory, and when I try to run a PHP file, I just see everything from the file as plain text in the browser. What might I be doing wrong? -Phil -- 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]
Re: [PHP] PHP not working on Win95/Apache
Hello Phil, (PS == "Phil Scopes") [EMAIL PROTECTED] writes: PS I am trying to run PHP in Windows '95 with Apache server. I followed all PS the instructions in the installation doc, including editting the Apache and PS PHP configuration files, and putting the PHP.INI file in my Windows PS directory, and when I try to run a PHP file, I just see everything from the PS file as plain text in the browser. What might I be doing wrong? Did you restart Apache after you setup PHP? (common mistake) Do you have lines similar to this in your httpd.conf?: AddType application/x-httpd-php .php .php3 .phtml -Brian -- Disclaimer: Any errors in spelling, tact, or fact are transmission errors. -- 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]