php-windows Digest 20 Aug 2001 21:12:16 -0000 Issue 712 Topics (messages 8946 through 8966): Re: win2000 8946 by: PHP Multi-Task on PHP by submitting a form! 8947 by: Jack 8948 by: Angie Tollerson 8949 by: Asendorf, John 8952 by: «davidc» Paths, Windows and PHP 8950 by: Craig Morrison 8951 by: Angie Tollerson 8959 by: Shane Caraveo simple odbc/insert problem 8953 by: LondonVibe 8954 by: LondonVibe 8955 by: Erik H. Mathy 8956 by: LondonVibe 8957 by: Erik H. Mathy 8958 by: LondonVibe Re: Anybody have an example of connecting MSSQL? 8960 by: Juan Carmona PHP in Opera browser and TTF issues. 8961 by: Gustavo Vázquez 8966 by: Alain Samoun Re: Problem with loading module for Oracle 8962 by: Ridai Govinda Pombo Re: Image Functions 8963 by: Al mail on win2000 server 8964 by: P.Agenbag FYI on GD dll 8965 by: Angie Tollerson 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] ----------------------------------------------------------------------
"Angie Tollerson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... LOL, Glad to see you got it working Darren, What was the problem? Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "PHP" <[EMAIL PROTECTED]> 08/16/01 09:32AM >>> "Angie Tollerson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The most common errors I see for set up are: 1. You need to right click on your website in IIS, choose properties, and on the home directory tab choose configure. Then add the extension .php to be run using C:\php\php.exe (or whereever you installed it) MAP IT! 2. On that same tab, you need to make sure your web is set to run Scripts, not executables, just scripts. 3. you need to go to the php scripts through explorer, not IIS, and make sure they have the security option for internet guest (or whatever account accessibility you prefer) to read/execute them. 4. Always test php execution with a document that has ONLY this in it: <?php phpinfo(); ?> to get the php stats out. I can't tell you how many times a person has sworn up and down their code is good, when it really isn't. With the code above, you cannot possibly mess it up but you get immediate results. Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> Flint Doungchak <[EMAIL PROTECTED]> 08/14/01 05:15PM >>> Darren, At the risk of sounding a lot of Phill :p, you probably have a permission problem somewhere. Take a look at the install.txt file available in the PHP4.0.x directory. It's pretty helpful. I've included it just in case. -Flint -----Original Message----- From: Darren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 3:01 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] win2000 Hello all. At home i have a windows 95 machine with apache, pws mysql and mysql. I followed the installation instructions and it worked fine. I got a new job and at work everything was win2k. Before i got to my own machine at work i installed php on my bosses machine wich was running IIS and of corse personal web manager. I installed php there.. Again no problem. I got my own machine at work. I installed win2k and all the same stuff on my machine including IIS. then i installed php exactly the same as i had on other machines and all i get the expected headers error message. I followed the instructons to the letter as i had done every tme before. I even got fed up with iis and disabled it in favour of apache. I tried setting that up according to the instructions and guess what. Server errors. Any ideas? Yours going mad Darren ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThan kyou ThankyouThankyouThankyouThankyouThankyou ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThan kyou ThankyouThankyouThankyouThankyouThankyou ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThan kyou ThankyouThankyouThankyouThankyouThankyou ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThan kyou ThankyouThankyouThankyouThankyouThankyou ThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThankyouThan kyou ThankyouThankyouThankyouThankyouThankyou it works now -- 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 re-installed IIS
Dear all I was trying to get a user input form to insert to a mysql_database and e-mail to me! Is it possible to make php perform two task in one single submit button? The form will post the input --> mail.php. In the mail.php, i was thinking to add another process just after the mail process had finish, which will insert the data from the from to mysql_database. Thx Jack [EMAIL PROTECTED]
Jack, Yes, you can do as many things as you want in a php document before you have die() at the end :) Angie >>> "Jack" <[EMAIL PROTECTED]> 08/20/01 08:12AM >>> Dear all I was trying to get a user input form to insert to a mysql_database and e-mail to me! Is it possible to make php perform two task in one single submit button? The form will post the input --> mail.php. In the mail.php, i was thinking to add another process just after the mail process had finish, which will insert the data from the from to mysql_database. Thx Jack [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]
No problem... I do this with a file upload. Just include a mail function before or after the other work you do with the information: if ( isset ( $files ) ) { //send an email to the webmaster if someone hits this area MAIL( "[EMAIL PROTECTED]", "CC Resolution Uploads Attempted", "From: $email\nX-Mailer: PHP/" . phpversion()); for ( $i=0 ; file_exists ( $files[$i] ) ; $i++ ) { echo "Trying to upload " . $files_name[$i] . "...<br />\n"; // if the file is too big, don't accept it (200K) if ( $files_size[$i] > 200000 ) { echo "The file, $result_name ($file_size bytes), is too big. Files that large are too big for this particular use. Possible attack dropped. Please contact $webmaster if you receive this message.<br />\n"; } // if $result_name isn't empty, try to copy the file elseif ( eregi ( "([0-9]{1,3})\-([0-9]{1,3})([A-Za-z]?)([a-z0-9 ,.]*).(doc|rtf)" , $files_name[$i] , $newres_name ) ) { etc. etc. etc. } --------------------- 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 > -----Original Message----- > From: Jack [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 20, 2001 9:13 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Subject: [PHP-WIN] Multi-Task on PHP by submitting a form! > > > Dear all > I was trying to get a user input form to insert to a > mysql_database and > e-mail to me! > Is it possible to make php perform two task in one single > submit button? > > The form will post the input --> mail.php. > > In the mail.php, i was thinking to add another process just > after the mail > process had finish, which will insert the data from the from to > mysql_database. > > Thx > Jack > [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] >
: In the mail.php, i was thinking to add another process just after the mail : process had finish, which will insert the data from the from to : mysql_database. You could include(); the file that adds it to the database. I know what you're getting at, I do it myself. «dc»
To solve the questions about where to copy your PHP dll directory files I have put together a simple set of instructions that will help get things so that Windows can find them *without* you having to copy them anywhere. Please note, you still have to tell PHP in php.ini where the extension directory is. This document only covers those files located in the "dll" directory. The following instructions assume the path: C:\PHP\dll As the path to PHP's dll directory, please substitute your path below. Okie, let's get on with it: NT/2000 PATH Environment Start->Settings->Control Panel->System->Advanced ->Environment Variables There will be a list that contains all the environment variables for the current user. Scroll the list until you find the "path" entry. Click on it to highlite it. At this point do the following: 1) Click "Edit..." 2) Click on the Variable Value edit control. 3) Make sure you move the flashing cursor to the end of the current setting. 4) Enter the path to your PHP "DLL" directory. E.G: "C:\PHP\dll" with a semi-colon ";" at the end. 5) Click "Ok" 6) Click "Ok" again 7) Click "Ok" one more time. The changes take affect immediately. You will have to close and reopen any command prompts though. Windows 9x/ME PATH Environment You are going to have to edit your AUTOEXEC.BAT, it will be located in the root directory of your boot drive. In a default installation it will be: C:\AUTOEXEC.BAT Hang on, here we go: Start->Run... 1) Type: notepad c:\autoexec.bat 2) Click "Ok" If notepad asks to create the file, click "Yes". 3) Add the following line to the *end* of the file: PATH=%PATH%;C:\PHP\dll; 4) Click File->Save 5) Click File->Exit 6) Restart your system. -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.org
Thanks Craig! Now go home for a day and get some rest! :) *wink, wink* Angie >>> Craig Morrison <[EMAIL PROTECTED]> 08/20/01 09:39AM >>> To solve the questions about where to copy your PHP dll directory files I have put together a simple set of instructions that will help get things so that Windows can find them *without* you having to copy them anywhere. Please note, you still have to tell PHP in php.ini where the extension directory is. This document only covers those files located in the "dll" directory. The following instructions assume the path: C:\PHP\dll As the path to PHP's dll directory, please substitute your path below. Okie, let's get on with it: NT/2000 PATH Environment Start->Settings->Control Panel->System->Advanced ->Environment Variables There will be a list that contains all the environment variables for the current user. Scroll the list until you find the "path" entry. Click on it to highlite it. At this point do the following: 1) Click "Edit..." 2) Click on the Variable Value edit control. 3) Make sure you move the flashing cursor to the end of the current setting. 4) Enter the path to your PHP "DLL" directory. E.G: "C:\PHP\dll" with a semi-colon ";" at the end. 5) Click "Ok" 6) Click "Ok" again 7) Click "Ok" one more time. The changes take affect immediately. You will have to close and reopen any command prompts though. Windows 9x/ME PATH Environment You are going to have to edit your AUTOEXEC.BAT, it will be located in the root directory of your boot drive. In a default installation it will be: C:\AUTOEXEC.BAT Hang on, here we go: Start->Run... 1) Type: notepad c:\autoexec.bat 2) Click "Ok" If notepad asks to create the file, click "Yes". 3) Add the following line to the *end* of the file: PATH=%PATH%;C:\PHP\dll; 4) Click File->Save 5) Click File->Exit 6) Restart your system. -- Craig Morrison MTS Professional @ http://www.2cah.com/ A Win32 Email server that works for _you_. EzMTS - A _free_ Win32 EMail Server http://www.ezmts.org/ Anonymous FTP at ftp://ftp.ezmts.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]
Craig Morrison wrote: > > To solve the questions about where to copy your PHP dll directory > files I have put together a simple set of instructions that will > help get things so that Windows can find them *without* you having > to copy them anywhere. > > NT/2000 PATH Environment > > 7) Click "Ok" one more time. > The changes take affect immediately. Hmm, not necessarily so. Services and system level components do not seem to always pick up the changes in the environment (this is noted from experience). So IIS may not pick it up, and you may have to reboot (argh, 2K was supposed to do away with that!). > You will have to > close and reopen any command prompts though. Likewise for ANY application already running when the change is made. Shane
new to php so be nice :) win2k.... iis5.....ms access.. what is the order for adding var's to a access DB ?? i can read data form the DB ok.. even print it out in a nice table :)... but not sure how i write to the DB... it's driving me mad... any help or faq's would be cool... code i tried... with data from form don't work... // connect to system dsn odbc name login and password or die $connect = odbc_connect("DB","name","pword") or die (" not connected"); $sql="INSERT INTO basket (Item,Amount,Price) Values ('$id','$amount','$price')"; // prepare SQL statement //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); // prepare SQL statement $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); // execute SQL statement and get results odbc_execute($sql_result) or die("Couldn't execute statement1."); odbc_free_result($sql_result); odbc_close($connect);
just found the php.db group... wrong place... sorry "Londonvibe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > new to php so be nice :) > > win2k.... iis5.....ms access.. > > what is the order for adding var's to a access DB ?? > i can read data form the DB ok.. even print it out in a nice table :)... but > not sure how i write to the DB... it's driving me mad... any help or faq's > would be cool... > > code i tried... with data from form don't work... > > // connect to system dsn odbc name login and password or die > $connect = odbc_connect("DB","name","pword") or die (" not connected"); > > $sql="INSERT INTO basket (Item,Amount,Price) Values > ('$id','$amount','$price')"; > // prepare SQL statement > //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare > query."); > // prepare SQL statement > $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); > > // execute SQL statement and get results > odbc_execute($sql_result) or die("Couldn't execute statement1."); > > odbc_free_result($sql_result); > odbc_close($connect); > > >
> new to php so be nice :) Always! ;) > win2k.... iis5.....ms access.. Check... > // connect to system dsn odbc name login and password or die > $connect = odbc_connect("DB","name","pword") or die (" not connected"); > > $sql="INSERT INTO basket (Item,Amount,Price) Values > ('$id','$amount','$price')"; > // prepare SQL statement > //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare > query."); > // prepare SQL statement > $sql_result = odbc_prepare($connect,$sql) or die("Couldn't > prepare query."); > > // execute SQL statement and get results > odbc_execute($sql_result) or die("Couldn't execute statement1."); > > odbc_free_result($sql_result); > odbc_close($connect); Off the top of my head, you might want to uncomment your sql_prepare statement. As it is: // prepare SQL statement //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); // prepare SQL statement $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); As it should be: // prepare SQL statement $sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); // prepare SQL statement $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); Also, if that's not it...what errors are you getting, if any? Speaking for myself, I end up using odbc_exec() rather than the combination of odbc_prepare()/odbc_execute(). Just a personal preference. You might want to toss in some data validation prior to the $sql definition. It'll help insure you're not trying to insert bad/null values into your database. Hope this helps ya, - Erik
"Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message 001d01c1298a$c45958e0$1300020a@erik_laptop">news:001d01c1298a$c45958e0$1300020a@erik_laptop... > > new to php so be nice :) > > Always! ;) > > > win2k.... iis5.....ms access.. > > Check... > > > // connect to system dsn odbc name login and password or die > > $connect = odbc_connect("DB","name","pword") or die (" not connected"); > > > > $sql="INSERT INTO basket (Item,Amount,Price) Values > > ('$id','$amount','$price')"; > > // prepare SQL statement > > //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare > > query."); > > // prepare SQL statement > > $sql_result = odbc_prepare($connect,$sql) or die("Couldn't > > prepare query."); > > > > // execute SQL statement and get results > > odbc_execute($sql_result) or die("Couldn't execute statement1."); > > > > odbc_free_result($sql_result); > > odbc_close($connect); > > Off the top of my head, you might want to uncomment your sql_prepare > statement. > > As it is: > > // prepare SQL statement > //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare > query."); > // prepare SQL statement > $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare > query."); > > As it should be: > > // prepare SQL statement > $sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare > query."); > // prepare SQL statement > $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare > query."); > > > > Also, if that's not it...what errors are you getting, if any? > > Speaking for myself, I end up using odbc_exec() rather than the combination > of odbc_prepare()/odbc_execute(). Just a personal preference. > > You might want to toss in some data validation prior to the $sql definition. > It'll help insure you're not trying to insert bad/null values into your > database. > > Hope this helps ya, > - Erik > thx erik... i missed the first one (comment)... still get error... Couldn't execute statement1 .... third not sure on the odbc_exec..
> thx erik... i missed the first one (comment)... still get > error... Couldn't > execute statement1 .... third not sure on the odbc_exec.. OK, I must be brain dead this morning. ;) ----- original code ----- // connect to system dsn odbc name login and password or die $connect = odbc_connect("DB","name","pword") or die (" not connected"); $sql="INSERT INTO basket (Item,Amount,Price) Values('$id','$amount','$price')"; // prepare SQL statement //$sql_prepare = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); // prepare SQL statement $sql_result = odbc_prepare($connect,$sql) or die("Couldn't prepare query."); // execute SQL statement and get results odbc_execute($sql_result) or die("Couldn't execute statement1."); odbc_free_result($sql_result); odbc_close($connect); ----- end original code ----- 1.) Kill the first or the second sql_prepare. They're the same thing and are therefore redundant. 2.) I'm not all that sure if your die() statements mean a whole lot in this instance. The way I read it, the odbc driver errors will supercede the die(). Someone correct me if I'm wrong. :) 3.) What's the EXACT syntax of the error(s) you're receieving? Copy and paste it into the e-mail, along with the variable values being submitted by the form. To make that easier, toss in: print("values: '$id','$amount','$price'\r\n<br>\r\n"); at the top of your code. That way it'll be easier for the list members to tell what's a happenin' over there. - Erik
i think my post should have gone..... " I know Nothing".... :) the original code was from a select script which works... i thought is was as simple as changing the select for insert doh ;)... the var's from the form are all strings and they do reach the script... i'm just not sure of the code to send the info to the database... is it the same as select ?? or do i need to do something else before i can send the info ?? sorry for the confusion(it's my natural state )... Jello
Here is an example more complete... (i think ;) $cn = mssql_connect("<server_name>", "<user_id>", "<password>"); mssql_select_db("<database_name>"); $rs = mssql_query("select * from products", $cn); Best regards Juan Carmona Jeff Howard <[EMAIL PROTECTED]> escribió en el mensaje de noticias [EMAIL PROTECTED] > I have been extremely successful using ASP and MS-SQL for a long time, but > am making a transition to PHP. I've tried connecting to the SQL Server > database, but have been unsuccessful. The way a data source is called in > ASP is: > > database.open "Provider=SQLOLEDB;User Id=user;Password=password;Initial > Catalog=mydatabase;Data Source=DATABASESERVER\SQLSERVER" > > How can I translate this into PHP? > >
Hi guys. I need a little help. I had made a small PHP script to generate a .jpeg dinamically. In IE it works great, but when I try to get the same Web page from an Opera browser, I get the Image box but not image at all. By the other side, when I get the .jpeg in the IE and I try to print it or save it, some text written in arial.ttf (the one that comes with Windows) is not printed, not saved. Any idea of this two little problems? Thank in advance. gustavo.-
I think that Opera has to be configured to show images... Alain On Mon, Jul 23, 2001 at 05:15:50PM -0300, Gustavo Vázquez wrote: > Hi guys. I need a little help. > I had made a small PHP script to generate a .jpeg dinamically. In IE it > works great, but when I try to get the same Web page from an Opera browser, > I get the Image box but not image at all. > By the other side, when I get the .jpeg in the IE and I try to print it or > save it, some text written in arial.ttf (the one that comes with Windows) is > not printed, not saved. > Any idea of this two little problems? Thank in advance. > > > gustavo.- > > > > > > -- > 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'm having a diferent problem with this module. Take a look a the message: Unable to load dynamic library 'C:\Inetpub\PHP\extensions\php_oci8.dll' - The specified procedure could not be found. I thought it was some problem with my ORACLE instalation, then a checked it and realized tha a didn't have the OCI installed... Well, I've "fixed" it by installing it. But it still doesn't work... It keeps giving me this message.... Any orientation? Thanx Ridai Govinda "Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message 001601c124bc$fdec2dd0$1300020a@erik_laptop">news:001601c124bc$fdec2dd0$1300020a@erik_laptop... > Do you have the Oracle libraries installed? All the module really does is > act as an intermediary for PHP and the native Oracle client libraries. > > - Erik > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, August 14, 2001 6:42 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP-WIN] Problem with loading module for Oracle > > Importance: High > > > > > > Hi! > > > > Help! > > > > PHP Warning: Unable to load dynamic library > > 'c:\php\extensions\php_oci8.dll' - This module not found. > > in Unknown on line 0. > > > > --- part of php.ini file --------- > > ;;;;;;;;;;;;;;;;;;;;;;;;; > > ; Paths and Directories ; > > ;;;;;;;;;;;;;;;;;;;;;;;;; > > > > ; UNIX: "/path1:/path2" Windows: "\path1;\path2" > > include_path = c:\php\pear\ > > > > ; The root of the PHP pages, used only if nonempty. > > doc_root = > > > > > > ; The directory under which PHP opens the script using /~usernamem used > > only > > ; if nonempty. > > user_dir = > > > > ; Directory in which the loadable extensions (modules) reside. > > extension_dir = c:\php\extensions\ > > > > > > > > extension=php_oci8.dll > > > > ----- end of part ----------------- > > > > File php_oci8.dll is exist in folowing path c:\php\extensions > > > > Other modules loaded succesfule!!!!!! > > > > What did me? > > > > > > > > > > >
DOhhhhhhh!!! Sorry about the misunderstanding :) -Al On Fri, 17 Aug 2001 11:07:51 -0500, [EMAIL PROTECTED] (Angie Tollerson) wrote: >No Al, that's a different set of dll's you're talking about. The = >extension dll's do need to stay in the extension folder with the right = >ini line as you stated. I'm talking about the system needed dll's that = >come in the DLL folder. Those are the ones you are told to move around, = >but you should just move them up when directory to be with the php.exe, = >not in system folder like the install tells you to. > >Angie Tollerson >Alliance Technologies >Web Programmer >(515)245-7628 >[EMAIL PROTECTED] > >>>> Al <[EMAIL PROTECTED]> 08/17/01 10:51AM >>> >I'd recommend you leave them in the "extension" directory, which is >where the installer places them, and just indicate in your INI file >where that directory is: > >extension_dir =3D "d:\php\extension\" > >That'll keep the \php directory uncluttered, and you'll know exactly >where all your extension files are. > >Regardless, I agree with you that placing them in the "system" >directory is something that should NOT be done! There's enough junk >there already :) > >-Al > >On Fri, 17 Aug 2001 07:37:34 -0500, [EMAIL PROTECTED]=20 >(Angie Tollerson) wrote: > >>Augusto, >>You simply need to download the windows 32binary package of php from =3D >>www.php.net 's download page. Unpack it in a php folder and follow the = >=3D >>install.txt directions for implementing on your windows computer. When = >=3D >>you are all setup, make sure you remove the ; (uncomment) from the line = >in =3D >>php.ini ";extension php_gd.dll" since that is what will run gd. But = >most =3D >>of the functions you used for unix gd are the same for windows...sometimes= > =3D >>there are one or two functions that don't work for windows but the php = >=3D >>manual specifies that. Let us know if you need more help as you install. >> >>Additionally, the install.txt may tell you to copy all the dll's sitting = >=3D >>in the dll folder into windows/system32 system. DO NOT put them there, = >=3D >>put them in the same folder that your php.exe is sitting in. >> >> >> >> >>Angie Tollerson >>Alliance Technologies >>Web Programmer >>(515)245-7628 >>[EMAIL PROTECTED]=20 >> >>>>> "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> 08/17/01 05:57AM = >=3D >>>>> >>Hi. >> >>i'm using the last version of GD (supports JPEG and PNG) on Solaris 8 =3D >>unix, >>but I need to use this functions on Windows. >> >>How can I do that? >> >>regards, >> >>Augusto >> >> >>_________________________________________________________ >> >>Do You Yahoo!? >> >>Get your free @yahoo.com address at http://mail.yahoo.com=3D20=20 >> >> >> >>--=3D20 >>PHP Windows Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: [EMAIL PROTECTED]=3D20=20 >>For additional commands, e-mail: [EMAIL PROTECTED]=3D20=20 >>To contact the list administrators, e-mail: [EMAIL PROTECTED]= >=3D20=3D=20 >> >> >> > > >--=20 >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED]=20 >For additional commands, e-mail: [EMAIL PROTECTED]=20 >To contact the list administrators, e-mail: [EMAIL PROTECTED]=20= > > >
Hi, I'm having lots of problems with getting PHP to send mail on a win2000 server box. The php.ini file is correctly setup and it is pointing towards the box on the local network that accepts SMTP connections. ( There is no SMTP running on the webserver itself). I keep getting "faild to connect" when ever I run a script that uses mail(); Is this a bug, incorrect setup on the box, firewall problem or what? If I can't resolve this, is it possible to send php code to another box to be parsed by it instead of the server from which the page is served? I'm thinking that if that is possible, I can route all pages to my Linux box which is running perfectly... Thanks.
Some of you may already know this but I just found out so this is for the new users who haven't caught on yet like me: I thought I had discovered a php bug in the new version 4.0.6 with the gd functions but it is actually GD that is the problem as explained by Rasmus. They released a beta version for the dll (doh!) and if any of you like me were not using the proper function ImageCreateTrueColor() --but were using ImageCreate()-- all of your pictures suddenly started turning blue and grey and black. So...you may want to check past gd scripts you wrote for this problem and alter if necessary. Here is the official site of the bug report and Rasmus's response/fix: http://www.php.net/bugs.php?id=11976 Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED]