[PHP-WIN] Image Creation Error
I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 directory and it's in the extensions directory (I've also tried it in almost every other directory too) and I get this error message: Fatal error: Call to undefined function: imagecreate() in C:\Inetpub\wwwroot\template\index.php on line 4 Here's the code: Any help would be appreciated. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: What kind of Editor you used to build PHP script ?
I uses zend studio. It has a preview pane, code completion, and it's own server. It also has the PHP documentation in the help files. Personal use is a free download. "Skyweb" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I like SSEditor, because I made it. and I use it to build my web site:) > > What features should be in a PHP Editor ? can you tell me ? > > http://www.skyweb2k.com/sseditor > > [EMAIL PROTECTED] > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Re: Image Creation Error
Yes, I've tried both and get the same error. Ed "Mikey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Oops - that should be php_gd2.dll > > > -Original Message- > > From: Mikey [mailto:[EMAIL PROTECTED]] > > Sent: 17 January 2003 00:11 > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] Re: Image Creation Error > > > > > > Have either of you tried using GD v2 (php_gdf2.dll)? > > > > regards, > > > > Mikey > > > > > -Original Message- > > > From: Pat Johnston [mailto:[EMAIL PROTECTED]] > > > Sent: 17 January 2003 00:06 > > > To: [EMAIL PROTECTED] > > > Subject: [PHP-WIN] Re: Image Creation Error > > > > > > > > > Hi Ed > > > I have a similar probelm with resizing and cannot work it out. > > My phpinfo > > > (ver 4.3) says jpeg support enabled and put php_gd.dll in the same > > > directories as you. > > > > > > My code is: > > > > > > $imagesrc = ImageCreateFromJpeg($image); > > > $imagedst = ImageCreate($im_width,$im_height); > > > ImageCopyResized($imagedst, $imagesrc, 0, 0, 0, 0, > > > $im_width,$im_height,$width,$height); > > > header("Content-type: image/jpeg"); > > > ImageJpeg($imagedst, '', -1); > > > ImageDestroy($imagesrc); > > > ImageDestroy($imagedst); > > > > > > Any help on appreciated.. > > > Pat > > > > > > > > > "Ed" <[EMAIL PROTECTED]> wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled > > php_gd and it > > > does > > > > show up when I do a phpinfo. The php_gd.dll is in the winnt/system32 > > > > directory and it's in the extensions directory (I've also tried it in > > > almost > > > > every other directory too) and I get > > > > this error message: > > > > > > > > Fatal error: Call to undefined function: imagecreate() in > > > > C:\Inetpub\wwwroot\template\index.php on line 4 > > > > > > > > Here's the code: > > > > > > > > > > > header("Content-type: image/png"); > > > > $im = imagecreate(100, 20); > > > > > > > > $red = imagecolorallocate($im, 255, 0, 0); > > > > $white = imagecolorallocate($im, 255, 255, 255); > > > > > > > > $ImageString($im, 3, 3, 3, "Home", $white); > > > > imagepng($im); > > > > > > > > ImagegDestroy($im); > > > > > > > > ?> > > > > Any help would be appreciated. > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > PHP Windows Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] cookies problem
I seem to be having a problem with cookies not being saved and I'm using W2k, IIS 5.0, with php 4.3. I just upgraded from a previous version of php that worked fine. Anyone had this problem or know of a solution? Thanks, Ed -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: cookies problem (FIXED)
I'm not sure why this worked and I noticed there were hundreds of others in various mailing lists with the same problem, but all I did was change this in the php.ini file: error_reporting = E_ALL To This: error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR Now cookis and sessions work just like they're supposed to. Ed "Ed" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I seem to be having a problem with cookies not being saved and I'm using > W2k, IIS 5.0, with php 4.3. I just upgraded from a previous version of php > that worked fine. Anyone had this problem or know of a solution? > > Thanks, > > Ed > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Subject: cookies problem (FIXED)
It's not a browser problem, as I said in my post php wasn't saving the cookies. This seems to be a widespred problem after searching many mailing lists and seeing this problem on every one of them, with no fixes. I had already changed my path to c:\php\sessions, so that wasn't the problem either. What finally fixed it was changing this in the php.ini file: error_reporting = E_ALL To This: error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR Now cookis and sessions work just like they're supposed to. Ed "Neil Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Oddly enough I just had the same problem after messing with my php.ini - > Check you have a valid drive and path for your cookie (session) save path : > > session.save_path = C:/temp > > Ought to do it. > > Or, do you mean *your browser* cookies aren't working? > Can't help you with that, this is a PHP list, you need to know your browser > better in that case :-) > > Cheers, > Neil Smith > > At 15:13 18/01/2003 +, you wrote: > >Message-ID: <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >From: "Ed" <[EMAIL PROTECTED]> > >Date: Sat, 18 Jan 2003 09:12:09 -0600 > >Subject: cookies problem > > > >I seem to be having a problem with cookies not being saved and I'm using > >W2k, IIS 5.0, with php 4.3. I just upgraded from a previous version of php > >that worked fine. Anyone had this problem or know of a solution? > > > >Thanks, > > > >Ed > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: PWS or IIS?
If your on windows IIS5 is the best choice. Since PWS is much slower. Don't go for Apache under windows ,its the ultimate under Unix/Linux but certainly not under windows.I tried it under Win2K ansd didn't like it. "M1nt Ch3w" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Howdy all, > > Just got Win XP Pro, and was wondering which server to go for. IIS or PWS? > Which one is more stable and stuff like that. > Thanks in advance, > /m1nt > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: mail() CC: header
Hi Matt, All the remaing headers are int the last argument of the mail function.And are sperareted by delimiter "\r\n" like so.. mail("[EMAIL PROTECTED]", "the subject", $message, "From: [EMAIL PROTECTED]\r\nCC:[EMAIL PROTECTED]\r\nBCC:getonetoo@shotsnail .com"); regrads, Ed "Matt Hillebrand" <[EMAIL PROTECTED]> wrote in message 003e01c2d6c2$d75e5bc0$0100a8c0@beast">news:003e01c2d6c2$d75e5bc0$0100a8c0@beast... > Has anyone here successfully sent CC headers with mail()? It simply > won't work for me. I get different errors depending on which mail server > I use. > > Matt > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Array within a Class?
Mike, Yes, you can create and access an array within a class. I've written seveal classes using arrays and it works just fine: class Produce { var $Fruit = array(); function Produce() { // Access class variable $this->Fruit[] = "Oranges"; $this->Fruit[] = "Grapes"; } function More() { // Create and access local array $Vegies = array(); $Vegies[] = "Broccoli"; $Vegies[] = "Onions"; } } Michael Sims wrote: > > At 03:04 PM 1/5/2002 -0800, Chris Hall wrote: > >Just a quicky -- > > > >I have yet to see anyone define an array within a class, yet if it is > >possible, would i be able to access that array with > >$this->array["variable"];? > > I've designed a class that has a method that RETURNS an array, but it > sounds like you want to define one of the properties of your class as an > array, i.e.: > > class testObject { > > var $testarray = array("firstindex" => "firstvalue", > "secondindex" => "secondvalue"); > > ... > > } > > I haven't personally done this, but I can't see why it wouldn't be > possible. Then if you wanted to access it inside a method you should be > able to the way you have described, like: > > function testMethod () { > > return $this->testarray["firstindex"]; > } > > Should workwhy don't you give it a shot and see what happens? :) > > -- > 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] -- Do you need a Web-based Content Publishing System ? Call me for more details. Ed Swartz ColdFusion and PHP Development 978.772.0888 http://www.sandypondconsulting.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]
[PHP-WIN] Includes not working on W2K
I've just installed PHP on Windows 2000 and I'm not able to use includes. I'm able to get the PHP info screen as a test, so I know it is working. I edited the PHP.ini file to the directory where my include files are located and still no luck. Is there anything that I am overlooking, or anything else that I need to do to get includes working? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Includes not working on W2K
Still no luck with this. My include path in the php.ini is set to: include_path = ".;\c:\php\includes" and I have the includes directory in the above listed location. Any ideas? "Frank M. Kromann" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Windows 200 and XP you can use / as your seperator. This will not work > on WIndows 98 though. > > Using the / makes your code work on both W2k and *nix boxes. It can be > used both in php.ini and in your scripts. > > - Frank > > > In php.ini file that is present in the windows directory check the > > include_path directive. It should have something like: > > > > include_path = ".;c:\apps\php\pear" > > > > Also, when making includes, check for the escaped "\". If they are > > present but not escaped, the directory that php will try to find will be > > > completelly diferent... > > > > Cheers... > > Luis Ferro > > TelaDigital.Net > > > > Ed Turbin wrote: > > > > >I've just installed PHP on Windows 2000 and I'm not able to use > includes. > > >I'm able to get the PHP info screen as a test, so I know it is working. > I > > >edited the PHP.ini file to the directory where my include files are > located > > >and still no luck. Is there anything that I am overlooking, or anything > else > > >that I need to do to get includes working? > > > > > > > > > > > > > > > > > > > > > --- > > [This E-mail scanned for viruses by Declude Virus] > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] Includes not working on W2K
Dl, I tried that and it's still not happening. What else could you reccommend checking? Is there any way that I can take the guess work out of this? "Dl Neil" <[EMAIL PROTECTED]> wrote in message 0e4001c29d66$56672320$c900a8c0@jrbrown">news:0e4001c29d66$56672320$c900a8c0@jrbrown... > Ed, > > > Still no luck with this. My include path in the php.ini is set to: > > include_path = ".;\c:\php\includes" and I have the includes directory in > the > > above listed location. Any ideas? > > you don't want the first \ - before the c:\etc path > > Regards, > =dn > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Checking Client's Cipher Strength with IIS
Hello, I have a question who's answer has been bugging me for a while. What I need to do is write a script that detects if a browser is using 128-bit encryption when connecting to our website. While this is easy for most (I have the script working for them), a real problem for me has come up with clients that run IE on Windows 2K without 128-bit support (ie 40-bit or 56 instead). Do any of you fine ladies and gentlemen know how to detect a browser's cipher strength using PHP (or any other web language)? I am running PHP 4.3.1 on IIS 5.0 on a Windows 2000 server. I have tried using some server vars (namely HTTPS_KEYSIZE) but that reports incorrect data with the win2k/IE/56-bit configuration I mentioned above. Any help is appreciated and thanks in advance, Ed -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Getting Started
The Wrox series of books are usually pretty good for beginners: http://www.amazon.com/exec/obidos/ASIN/1861006918/qid=1054735752/sr=2-1/ref= sr_2_1/103-7575618-4662261 They lie more to the programming side of things, if you need help with the install on IIS just look at the docs that come with the PHP binary. Hope this helps, ed -Original Message- From: Kevin Bachelder [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Getting Started Hello all, We will be deploying a custom software package from a vendor and part of what they require on our IIS server is PHP v4 or higher. I have never worked with PHP so I am looking for recommendations on good books or other resources to learn a little bit about PHP. Thanks in advance, Kevin -- Kevin Bachelder Microsoft Certified Systems Engineer - Windows NT 4.0 (MCSE) Microsoft Certified Professional - Windows 2000 (MCP) Citrix Certified Administrator (CCA) CompTIA A+ Certified Computer Repair Technician (A+) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Page names as variables?
Is there an easy way to grab the page name or the referring page from another page? I have a logon script which checks if they are logged in and dumps them to a logon page if they aren't and I'd like to have a way for them to get back to where they came from (ie. they walked away from their desk and the session times out). I've been working on a way where each page knows its name and sets that as a variable but that seems rather clunky. Thanks! Ed Meyer Smarts Broadcast Systems -- 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]
Re: [PHP-WIN] Page names as variables?
RE: [PHP-WIN] Page names as variables?That's perfect... Now I can get everyone off my back :-) Thanks! Ed Meyer Smarts Broadcast Systems Actually, for something like this, you are going to want to use: $REQUEST_URI as the former does not include any GET variables whereas the latter will. I do something very similar to what you are looking to do above and I found that $HTTP_REFERER just wasn't doing it for me... Chris
[PHP-WIN] Interbase/PHP Blob types
I've seen some conversation on this list about blob types but never really an answer. I'm having the problem where I'm trying to insert text into a blob but I'm getting the error message: Warning: Interbase: conversion error from string "BLOB" in filename on line 13 Here's more info about the table and sql I'm using <---> create table memo ( id char(2) not null primary key, memo blob sub_type 1); insert into memo (id, memo) values ('2', 'Sample Text'); <---> I've been told to use: insert into memo (id, memo) values (:id, :memo) and convert the variable to :memo but that doesn't work either - instead I get a parse error on line whatever. If more info is needed, please let me know. Thanks! Ed Meyer Smarts Broadcast Systems
[PHP-WIN] exif
Apache crashes when I uncomment this line in php.ini and try to restart the server: ;extension=php_exif.dll I upgraded from 4.3.8 this week and thought there might be a dll conflict. phpinfo reports Apache/1.3.29 (Win32) PHP/5.0.1. All copies of php_exif.dll on the system report as version 5.0.1.1. Any ideas on how to get this working? Thanks, Ed This message was sent using IMP, the Internet Messaging Program. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-WIN] exif [more info]
I just installed Apache 2 on the system and confirmed that the problem occurs with it as well. Checking the windows crash reports for both versions of Apache shows that the problem is with "szModName php_mbstring.dll", offset 1966. Checking all copies of php_mbstring.dll on the system shows that they are all version 5.0.1.1. Thanks for any ideas / help you have. -Ed Quoting [EMAIL PROTECTED]: > Apache crashes when I uncomment this line in php.ini and try to restart the > server: > > ;extension=php_exif.dll > > I upgraded from 4.3.8 this week and thought there might be a dll conflict. > phpinfo reports Apache/1.3.29 (Win32) PHP/5.0.1. All copies of php_exif.dll > on > the system report as version 5.0.1.1. > > Any ideas on how to get this working? > > Thanks, > > Ed > > > > > > > > This message was sent using IMP, the Internet Messaging Program. > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > This message was sent using IMP, the Internet Messaging Program. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] exif
Yup - that did it. Thanks for the help =) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 09, 2004 12:12 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] exif > > don't know anything about exif, but i got this from a > web page and may (or may not) be relevant... > > The php_mbstring.dll DLL must be loaded before the > php_exif.dll DLL so adjust your php.ini accordingly > > http://www.ausweb.com.au/php-hosting/ref.exif.html > > good luck. > > --- [EMAIL PROTECTED] wrote: > > > Apache crashes when I uncomment this line in php.ini > > and try to restart the > > server: > > > > ;extension=php_exif.dll > > > > I upgraded from 4.3.8 this week and thought there > > might be a dll conflict. > > phpinfo reports Apache/1.3.29 (Win32) PHP/5.0.1. > > All copies of php_exif.dll on > > the system report as version 5.0.1.1. > > > > Any ideas on how to get this working? > > > > Thanks, > > > > Ed > > > > > > > > > > > > > > > > > This message was sent using IMP, the Internet > > Messaging Program. > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Can't figure out how to surpress this error
Line 0 makes me wonder if you have a space or something before the opening php tag, especially the part about headers already sent. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, September 13, 2004 6:09 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Can't figure out how to surpress this error > > > I have a page that has a form allowing users to upload a file. The > following page processes the information they entered checking all form > fields with "isset" before attempting to process any of the information. > The script works fine EXCEPT when the user does NOT upload a file...then > the page displays this error: > > "PHP Notice: No file uploaded in Unknown on line 0 PHP Warning: Cannot > send session cache limiter - headers already sent in > E:\tatumpartners\tcms_admission\public_site_email_contact_process.php on > line 2 " > > The problem is that everything still processes correctly in all > cases...but the error is still displayed and this looks bad from the > user's perspective. > > > This is the code that handles the file upload: > > if(isset($_FILES['userfile']) && $_FILES['userfile']['name'] !="") > { > $file_url1 = $_FILES['userfile']['tmp_name']; > $file_name1 = $_FILES['userfile']['name']; > $file_type1 = $_FILES['userfile']['type']; > > $fp1 = fopen($file_url1,"r"); > $str1 = fread($fp1, filesize($file_url1)); > $str1 = chunk_split(base64_encode($str1)); > $message .= "--MIME_BOUNDARY\n"; > $message .= "Content-Type: $file_type1 ; name=\"$file_name1\"\n"; > $message .= "Content-disposition: attachment\n"; > $message .= "Content-Transfer-Encoding: base64\n"; > $message .= "\n"; > $message .= "$str1\n"; > $message .= "\n"; > } > > > > Is there anyway other than what I have done here to surpress the error > message from displaying? > > > Thanks, > Ron > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] SetEnv problem
I'm not sure. I'll see if I can find something. Meanwhile, have you checked the manual for the ini_set command? -Ed > -Original Message- > Is seems to me that ir works in apache2 only, > what about 1.3.x? > > > Use the PHPIniDir directive in httpd.conf to specify different locations > > for > > the php.ini file. > > > > PHPIniDir "C:/windows" -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] SetEnv problem
Use the PHPIniDir directive in httpd.conf to specify different locations for the php.ini file. PHPIniDir "C:/windows" > -Original Message- > There is a documentation bug http://bugs.php.net/bug.php?id=29694 about > SetEnv setting in httpd.conf > > Rasmus says that "PHP checks the real environment, not the Apache > environment for PHPRC." > > In this sutuation i've problem. The problem is how to run 2+ versions of > apache server (2+ different httpd.conf) with each own php.ini file? > > Before this bug, there was a theoretical solution of running 2+ versions > of apache setting different SetEnv variable for each copy of php.ini file. > But now i can only provide 1 path to file. so? no way to run 2 different > php versions at one time? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-WIN] Contract: protecting code or not?
> So my qustions are: > (1) How do you all define this > (2) Where can I find wording to say what I need that will protect my work. > (3) I want to include a confidentiality agreement stating that all data > from > her DB will remain private. - need wording for that too! Someone else will have to answer those questions for you, but I did have some thoughts that might help. You could probably use a PHP compiler. Release your compiled application with an agreement that your customer signs. You're basically licensing it for their use under specific conditions which you both define and agree upon. Next, give them copies of code that you'd like to share with them after they sign a second agreement that defines acceptable uses of the code. Finally, come up with a third agreement that defines the scope of work that you'll be doing for them and include things that define intellectual rights, what work will shall be done, prices, etc.. You can probably do a search for legal contracts and agreements on the Internet that include stuff on intellectual rights. You could also probably find copies of job proposals and agreements that has a lot of information for you. Good luck =) -Ed -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php