RE: [PHP-INST] Image functions
Do you have a function by the name of imagecreatefromjpeg() in your "resize.php" script located in "C:\Program Files\Apache Group\Apache2\htdocs\" folder? -Original Message- From: Michael F. [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:58 AM To: [EMAIL PROTECTED] Subject: [PHP-INST] Image functions Hello, I have the following code: $return_val = ( ($img = ImageCreateFromJPEG ( $image_file_path )) && $return_val == 1 ) ? "1" : "0"; but I become the following error message: Fatal error: Call to undefined function: imagecreatefromjpeg() in C:\Program Files\Apache Group\Apache2\htdocs\resize.php on line 31 I use WindowsXp, Apache 2.0.40 and php 4.2.2. How I have to install/configure my system to correct this problem? Thanks! -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Mysql, PHP and a wrapper
I'm running apache-1.3.23-14 on a redhat 7.3 system. I have installed the php-rpm and the php_mysql.rpm from Redhat. installed php-4.1.2-7.3.4 and php-mysql-4.1.2-7.3.4. Cannot connect to my mysql-3.23.49-3 database. If I use "mysql_connect()" only, I get "Fatal error: Call to undefined function: mysql_connect() in /var/www/html/admin.php on line 9" elseif I put on my script "include_once(DB/mysql.php)" I get "Fatal error: Class db_common: Cannot inherit from undefined class pear in /usr/share/pear/DB/common.php on line 30" endif. :) can someone tell me how to preinclude /DB/* functions in my Zend engine so I do not have to "include_once" in every script. and if the php rpm needs to be installed how do I do that without breaking the install of mysql and apache. -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 3:13 AM To: Pascal S.; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-INST] Re: [PHP-WIN] Install PHP with IIS 5/W2K On Tuesday 24 September 2002 5:24 am, Pascal S. wrote: > I installed PHP 4.2.3 using the installer from PHP.net > > I can send the test.php file to the php.exe, and I get the right html code. > > However, trying to open the same test.php in IE 6 won't produce anything. > The window gets the right title, all html is displayed right, but nothing > between is executed. > > I have tried to change most of the settings in Internet Information > Services, the extension .php under configuration is also set to > C:\PHP\php.exe, etc... > > What should I look at next? Are you opening the file as c:\php\test.php or as http://localhost/test.php? If you view source, do you see the php source code? -- Phil Driscoll -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Mysql, PHP and a wrapper
I'm running apache-1.3.23-14 on a redhat 7.3 system. I have installed the php-rpm and the php_mysql.rpm from Redhat. installed php-4.1.2-7.3.4 and php-mysql-4.1.2-7.3.4. Cannot connect to my mysql-3.23.49-3 database. If I use "mysql_connect()" only, I get "Fatal error: Call to undefined function: mysql_connect() in /var/www/html/admin.php on line 9" elseif I put on my script "include_once(DB/mysql.php)" I get "Fatal error: Class db_common: Cannot inherit from undefined class pear in /usr/share/pear/DB/common.php on line 30" endif. :) can someone tell me how to preinclude /DB/* functions in my Zend engine so I do not have to "include_once" in every script. and if the php rpm needs to be installed how do I do that without breaking the install of mysql and apache. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-INST] Re: Apache 2.0 and libphp4.so
Our system found and removed this from our email...However I thought that perhaps others might have got this and did not have as strong a virus detection as we do. -Original Message- From: Gilberto J. Palau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 6:55 AM To: undisclosed-recipients Subject: [PHP-INST] Re: Apache 2.0 and libphp4.so -- Virus / Macro Warning Message (on f1ee40-20.idc1.level3.com) Found virus WORM_BUGBEAR.A in file zaloha.reg.scr The uncleanable file zaloha.reg.scr is moved to /etc/iscan/virus/virJLBwZaG2c. Appropriate action has been taken to clean, strip off , quarantine, or delete the virus or macro. No further action is required at this time. - -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-INST] Security question
I have built a nice admin login for my site. Works great. Uses the mySql database to store the uname and pass. But if I insert into my table a PASSWORD('password') so that the password is encrypted I'm not sure how my PHP script could check to ensure the password is the same. How can I encrypt the users passwd (via php)so that it matches the same password I put into the database? -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-INST] "VERY NEWBIE" php_* mod_* --with- question
Well, I'm not the best qualified to answer this question but here goes my best shot (Guru's watch me here make sure I don't screw this up). Starting with Apache. Apache does not actually process your *.php files. There is another engine that takes care of that called Zend. There are a couple lines you need to add to httpd.conf in order to tell apache what to do with these files but if you installed apache via RPM it should be pre-built with tags that has something like AddType application/x-httpd-php .php and LoadModule php4_modulelibexec/libphp4.so in there. now the AddType line may also have .php4 and .php3 as well as .php Make sure that the modules for your oracle-php are of the same release as your php. I.E. php-oracle-4.2.2-1j1.i686.rpm should have php-4.2.2-1j1.i686.rpm installed prior to the oracle-php. Not sure about the actual syntax of the LoadModule (modulename) libexec/oracle.so but I would include that in your load modules section in the httpd.conf. Check the Apache.org site and click on PHP. The www.php.net has an introductory tutorial link on the left of the page. Next click on "Installation" and that will give you a list of different types of servers you can configure for including Apache. I had a lot of trouble getting mine to work until I did a rpm -e php and saw about 10-15 versions of php in the system. php-oracle, php-postgres, php-mysql, php-devel ...etc. some of them (including the main php*.rpm) were of different revisions. I yanked all of them out and only installed what I needed and all of the same revision. Now my system is running much faster and cleaner and php is finally working too. -Original Message- From: Aleksandar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 2:06 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-INST] "VERY NEWBIE" php_* mod_* --with- question Hello List for the first time, I am very new to php but impressed from what i've seen so far. I managed to configure php w/ mysql and db2 do some selects, inserts ... What I am inerested in is what are all those mod_php* and php_* on the distribution's CDs e.g. if they are installed how do i get support for which i thought i have installed the module( like rpm -i php-oracle-4.2.2-1j1.i686.rpm means that i can somehow get oracle support without recompiling php ??? or no). Another thing that bothers me is should I (can I) use for example Oracle's apache or install "regular" apache and work with it. Is Apache-PHP-Linux on one machine and OracleDB-Win/Lin on another machine big trouble or peace of cake (It asks me for oci8 lib which I don't know where to get if I don't want to install any oracle products on the web server (can i get them from php-oci8...rpm for example) DSO e.g. oracle.so is a shared object but where to include it for the support and is it enough) Thank you all and looking forward to hearing from you -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php