[PHP] Problem installing on BSD
1, Ok, I checked my existing apache install (httpd -l and it has mod_so.c) 2. Installed php using the following line: configure --with-apxs=/usr/local/apache/bin 3. Changed my httpd.conf file to allow .php: - AddType application/x-httpd-php .php - AddType application/x-httpd-php-source .phps I created a test file named: 1.php with the following code in it: When I type this url in: http://64.133.38.28/1.php it asks me to save it. (in netscape or IE) Any help on what I'm doing wrong here? Thanks in advance. -- 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] Programming Jobs
You might want to add to some of your skills. Grab some quick Oracle training. (Don't pay for it, just go to free sites like: www.dbasupport.com and technet.oracle.com.) Your resume would look alot more attractive if you knew SQL and Oracle a bit more. This is just my opinion though. -- 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] Problem installing on BSD
Sorry. :( Yes, I have done this many times. My version below is just the 1st steps I took. I have spend 3 hours trying to reconfigure and try anything that I could think of. Nothing. Thanks though. David Robley wrote: -- 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] Problem installing on BSD
>From my httpd.conf: LoadModule php4_modulelibexec/apache/libphp4.so (this file does exist) AddModule mod_php4.c # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps Felix Kronlage wrote: > On Mon, Apr 02, 2001 at 12:01:08AM -0600, natter wrote: > > > 3. Changed my httpd.conf file to allow .php: > > - AddType application/x-httpd-php .php > > - AddType application/x-httpd-php-source .phps > > Do you have the directive to load the php-module in your httpd.conf? > > | LoadModule php4_module/path/to/the/module/libphp4.so > > -fkr, and don't forget the 'apachectl restart' > -- > gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 > |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | > |all your base are belong to us | shame on me | fkr@IRCnet | > > -- > 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] Incompatibility with file-input items
hi, in a php-script someone else wrote I found '': echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; echo "\n"; and this is the code which is run by the form's action-attribute (same script as above): for( $i = 0; $i < count( $photo ); $i++ ) { if( $photo[ $i ] != "" && $photo[ $i ] != "none" ) { if( $photo_size[ $i ] > 50 ) error( "Ungültige Fotogröße" ); if($photo_type[ $i ] == "image/pjpeg" || $photo_type[ $i ] == "image/jpeg") $newphoto[] = $photo[ $i ]; else error( "Ungültiger Dateityp, bitte wählen Sie JPEG " ); } } (you can find the complete file here: http://home.t-online.de/~fam.natter/list.php) Now the problem is that the above code only works with php 4.0.6 and not with php 4.0.0: php 4.0.0 puts the type and name and temporary-file information in the $image array while 4.0.6 puts it in $image_type and $image (both use $image_size). See the example output below for more information. Here is a small test-case: test_files.html === Test test_files.php Missing Parameter in test_file.php!"; exit; } if (isset ($image_type)) echo "image_type is set !"; if (isset ($image_size)) echo "image_size is set !"; for ($i = 0; $i < count ($image); $i++) { echo "image[$i]='" . $image[$i] . "'\n"; } ?> Here is the output with two different versions of php when I select two jpeg images (northbeach.jpg and Water01.jpg): This is the output with php 4.0.6: image_type is set ! image_size is set ! image[0]='/tmp/phpvRpXFA' image[1]='/tmp/phpfvgzMk' This is the output with php 4.0.0: image_size is set ! image[0]='northbeach.jpg' image[1]='image/jpeg' image[2]='/tmp/phpZApBAO' image[3]='Water01.jpg' image[4]='image/jpeg' image[5]='/tmp/phpC3YeVs' So how can I use this input-file array (image[] in the example) portably ? BTW: how can I get access to /tmp/phpZApBAO (I need to create thumbnails from the images) ? On some servers this seems to create permission-problems (but I cannot change the configuration of the server). -- Felix Natter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php