RE: [PHP-WIN] SWFBitmap jpg to swf?

2002-02-08 Thread Martin Lindhe
> Why does this: > $img="image.jpg"; > 10 $fp = fopen($img,"rb"); > 11 $i = fread($fp,filesize($img)); > 12 $s = new SWFBitmap($i); > > Produce this: > > Fatal error: Sorry, can't tell what type of file ÿØÿà is in > C:\Inetpub\wwwroot\dawndusk\serlient\test.php on line 12 > > When I print $i;

RE: [PHP-WIN] Embeded MySQL

2002-02-06 Thread Martin Lindhe
> Yes! MySQL is install with the distribution, but I want to > run mysql not on the server but along with my application. > Embeded MySQL runs from a library libmysql.dll. Mysql.com > just mentions that this makes it possible to distribute mysql > with cd-rom applications. Check out http://w

RE: [PHP-WIN] undefined variable

2002-02-06 Thread Martin Lindhe
> Hello everyone, > I have a small question: > How can I get rid of "Warning: Undefined variable: user1(& > password1) in C:\WebShare\wwwroot\netk\5\login.php on line 4" > in that program? > >include ("config.php"); > session_register("userpassword"); > if($user1==$USER && $password1==

RE: [PHP-WIN] mail to too many users

2002-01-29 Thread Martin Lindhe
> > >>> "Jim Lucas [php]" <[EMAIL PROTECTED]> 01/28/02 03:47PM >>> > > with php's mail() funciton you can send to multiple > recipents via the > > headers. just build the headers so it will BCC to > everybody at once. > > one word of caution, you can only have a header that is 5kb or > > sm

RE: [PHP-WIN] php 4.1 / xitami on a Win2k computer

2002-01-29 Thread Martin Lindhe
> Hello all, > > I am running Xitami together with PHP 4.1 and mySQL on a > Win2k computer for locally testing websites ... everything > seems to work fine, except for a bit of a strange thing I > encountered now . > > When running the phpinfo() to get all the values for the > system variabl

RE: [PHP-WIN] mail to too many users

2002-01-29 Thread Martin Lindhe
> How big would a string of 19000 email addresses be? Can > anyone estimate? you wouldnt want to send all mails in one call to mail(), loop and do a couple of hundred bcc's in each time or something /Martin -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

RE: [PHP-WIN] Problems using mail() it always states Failed to Receive in

2002-01-28 Thread Martin Lindhe
> I'm trying to use mail() and have read about all kinds of > troubles, but i've got another one :-) > > The machine is running IIS5 configurated for smtp-mail. > I've set $email, $subject, $body and $header and try to use >$mailsend = mail("$email", "$subject", "$body", > "$header"); I alw

RE: [PHP-WIN] how to download files by http

2002-01-28 Thread Martin Lindhe
> I need help > I want to to get file list o n remote http server for > example: http://heban.unx.eragsm.pl:/baobab/static/tmp/ > If I open this adress in browser i got list of files in this > folder i want to get the list and download this files by > application wrote in PHP is it possibl

RE: [PHP-WIN] calling PHP code on a different website

2002-01-28 Thread Martin Lindhe
> Hi > > Plot: how can I share data/info from a PHP based site on a > ASP based site ? > > Site A, running PHP > Site B , running ASP > > Now on site B I would like to publish some information from > site A's database, is that possible ? > > Thanks i advance > > Steen Scenario 1. S

RE: [PHP-WIN] HELP! with PHP extension <

2002-01-28 Thread Martin Lindhe
> Hi all, > > Here is the situation. > > I have Windows 2000 SP2, IIS5 running PHP 4.1.1 using CGI. > > My PHP folder is C:\php > Extension Folder is: C:\php\extension > PHP.INI file: extention_dir = "C:\php\extension\" Are you sure the foldername is "extension"? Just asking you to doublecheck

RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed

2002-01-28 Thread Martin Lindhe
> Hi Martin- > > Separating the parameters from the function call didn't work. > I think the problem is with the WindowsNT SMTP server. How > should the WindowsNT SMTP server be set up to make mail() work? > > Charlie Just set the SMTP directive in php.ini to the mail server you wish to use

RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed

2002-01-25 Thread Martin Lindhe
> Court- > No luck yet. Here is the call to mail(): > > $mr = mail("[EMAIL PROTECTED]", "subject", "Line 1"); > > Simple and straight forward. But I'm still getting the error: > Warning: Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22 Could you try this out: $address = "[EMAIL PRO

RE: [PHP-WIN] Re: Mysql connection

2002-01-24 Thread Martin Lindhe
> Hey there! > > you must delete the my.ini or something like that and then it works! eh? my.ini holds your special mysql configuration and you shouldnt just go and delete it, and for certain it wont magically start mysql if you delete the file /Martin > > > "Brad Thomas" <[EMAIL PROTECTED]>

RE: [PHP-WIN] php mail()

2002-01-24 Thread Martin Lindhe
> My Problem: > > When I receive the mail, in the from(sender) line is > something like www-data, but I wont the real sender adress > for example [EMAIL PROTECTED] in the from line not in the > subject line or in the message, just in the from line! > > Is this possible or impossible $address

RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed

2002-01-24 Thread Martin Lindhe
> A client is having trouble setting up SMTP services on their > Windows NT machine so PHP can access it through the mail() function. > > SMTP is set to mail.theserver.com in the php.ini. > Mail() works when set to a different mail server. > PHP and the mail services are on the same machine. > T

RE: [PHP-WIN] FW: [PHP-INST] Adding GD extensions

2002-01-24 Thread Martin Lindhe
> I am migrating from the Mac world and so my knowledge of the > Windows environment is minimal. I have two systems. A desktop > running Windows 2000 v5 SP2 with IIS 4 and a laptop running > Windows XP and Apache 1.3 > > I have php running on both as a CGI. When I try to add any > extension t

[PHP-WIN] the socket extension in php 4.1.0 :)

2001-12-18 Thread Martin Lindhe
hello all! i've been playing around with the socket extension that come with php 4.1.0 for windows finally :-) i found the official docs to be way outdated but managed to stumble over this nice document http://introverted.com/php-sockets.html, its also a little incorrect (some parameters are wron

RE: [PHP-WIN] What variables does a tag submit?

2001-12-14 Thread Martin Lindhe
> --- Cliff <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I would like to ask, what variables are submitted > > from a form with say... > > options 2 and 4 selected? > > > > > > 1 > > 2 > > 3 > > 4 > > 5 > > > > > I am not 100% certain, but I believe that it would set > $what as an array, with $

RE: [PHP-WIN] php warning messages

2001-12-13 Thread Martin Lindhe
> On Thursday 13 December 2001 3:17 pm, Martin Lindhe wrote: > > But im questioning the need for this.. why add extra checks > on perhaps > > 200 locations in my code to satisfy a warning message, which points > > out a nonexisting bug? i want warnings turned off

RE: [PHP-WIN] php warning messages

2001-12-13 Thread Martin Lindhe
> This should work > > if (isset($_POST["user"])) > $username = $_POST["user"]; Cool, it works! But im questioning the need for this.. why add extra checks on perhaps 200 locations in my code to satisfy a warning message, which points out a nonexisting bug? i want warnings turned off but

[PHP-WIN] php warning messages

2001-12-13 Thread Martin Lindhe
hi all :) i configured php 4.1.0 to display all errors and errors (E_ALL) and get warnings (Undefined index: blah) on lines like this: $username = $_POST["user"]; how come? (this is not a 4.1.0 specific behaviour, just wondering how i should write proper code that doesnt display these warnings)

RE: [PHP-WIN] Variables

2001-11-09 Thread Martin Lindhe
> Could anyone tell me, why my variables are not valid anymore > in an included file. They should, or? I tryed anything. > > Thanks, Harry What do you mean by anymore? Have you upgraded PHP? What version are you running, have you changed php.ini configuration? Can you provide an example? /Mart

RE: [PHP-WIN] php 4.0.8dev and apache 1.3.22

2001-11-09 Thread Martin Lindhe
hm, a AddModule mod_php4.c fixed the problem > -Original Message- > From: Martin Lindhe > Sent: Friday, November 09, 2001 11:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] php 4.0.8dev and apache 1.3.22 > > > I'm trying to set up php 4.0.8dev from ww

[PHP-WIN] php 4.0.8dev and apache 1.3.22

2001-11-09 Thread Martin Lindhe
I'm trying to set up php 4.0.8dev from www.php4win.com under apache 1.3.22, I have successfully run the php 4.0.8dev under apache 1.3.20 but now when I switched to apache 1.3.22, errors are showing up. When I start apache (NET START APACHE) no error ouput, but in logs\error.log I get this: [Fri N

RE: [PHP-WIN] building with msvc

2001-11-09 Thread Martin Lindhe
excuse me for my last post, I should of course have looked in the manual at the first place, I found what I needed at http://www.php.net/manual/en/install.windows.php#install.windows.build > -Original Message- > From: Martin Lindhe > Sent: Friday, November 09, 2001 9:43 AM >

[PHP-WIN] building with msvc

2001-11-09 Thread Martin Lindhe
hello! i've poked around trying to build the latest php4 snapshot from snaps.php.net with msvc 6, and i've run in some troubles. first i realized i needed bison, so i installed cygwin. later on in the build it complained about arpa\inet.h which i realized was in c:\cygwin\usr\include\arpa\inet.h,

RE: [PHP-WIN] Large File Uploads

2001-10-05 Thread Martin Lindhe
> Is there any chance large file uploads now work? They may > in the 4.0.6 > patch, but I can't find a way to patch the windows version. I > really need > this to work...I don't want to switch my code over to ASP *shudder*. > Just download the full zip from www.zend.com and unzip it in your

RE: [PHP-WIN] mssql stored procedures

2001-10-02 Thread Martin Lindhe
you do that directly in a query mssql_query("exec storeprocedure_name 'parmeter1','parameter2'",$database_connection); > -Original Message- > From: Leonard Harris [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 02, 2001 1:38 PM > To: php > Subject: [PHP-WIN] mssql stored procedures

RE: [PHP-WIN] php vs asp

2001-10-01 Thread Martin Lindhe
> hi there > > I've been told that php outperforms asp. is this true if yes why ? > > kind regards > Read here for more information :-) http://www.zend.com/why-php.php http://www.zend.com/aboutphp.php PHP vs ASP etc: http://www.zdnet.com/eweek/stories/general/0,11011,2646051,00.html (outdate

RE: [PHP-WIN] Questions about versions of PHP and Apache

2001-09-28 Thread Martin Lindhe
> Does anyone know the minimum version of Apache that PHP-4.0.5 > can work with? > I have a 1.3.7, but it crashes quite often, and it seems it's > the PHP module causes it so. > Any idea? > > Kenneth > Are you having problems with running 1.3.20? This is what i use under windows and it's work

RE: [PHP-WIN] problem with uploading

2001-09-28 Thread Martin Lindhe
> Hello! > > I have a problem when trying to use ftp_put(). In the > function I specified, > of course, the ftp stream, the destination file, the source > file and the > mode. I get an error saying "Warning: error opening > C:\...\file_name.jpg in > ...". Does anyone know where the problem c

RE: [PHP-WIN] php4 and interbase

2001-09-27 Thread Martin Lindhe
> When I edit php.ini file and try to use the Interbase > extension, everytime I > try to open a php on my Browser it display the following warning > > "Unable to load dynamic library > 'c:\php\extensions/php_interbase.dll' - in > Unknown on line 0" > > > Help me please > Look in your

RE: [PHP-WIN] Cannot using session variables with fopen()

2001-09-27 Thread Martin Lindhe
> Hi, > if i use fopen or similars commands to open a file i've see > that the session > variables included in it are not valorized. > Using fopen i've defined the absolute http path to the file, > and the file is > correctly parsed by the PHP interpreter, the only > problem is that the session

RE: [PHP-WIN] gif not working in php

2001-09-27 Thread Martin Lindhe
> Dear List Members, > > Please consider my problem: > > There is one animation (m1.gif) which when called in any html > page works > fine. > But when the same image is called in any php file the same is > not displayed > instead a cross mark (indicating as image not found) is displayed in > b

RE: [PHP-WIN] Warning Undefined Variable on Win - PHP 4.0.6 via Apache

2001-09-12 Thread Martin Lindhe
> I keep getting a Undefined variable on unused form elements > after they have > been posted. > > For instance i have a form > > Form Element Chem_id ( drop down) > Form Element freetxt ( text box) > how do you access the variables? something like $Chem_id = $HTTP_POST_VARS["Chem_id"]; o

RE: [PHP-WIN] HELP! Image manipulate over the WEB

2001-09-11 Thread Martin Lindhe
> Does anyone know how to rotate and zoom the image over the > WEB? Or any plugin can do this? > Check out the GD functions: http://www.php.net/manual/en/ref.image.php resizing: http://www.php.net/manual/en/function.imagecopyresized.php Rotating i didnt find any info on, never used this mysel

[PHP-WIN] PHP+Apache question

2001-03-15 Thread Martin Lindhe
, with close enough up-to-date information. however php (of course) executes scripts as they are accessed, and i havent found any hints of how to accomplish this in either php or apache documentation. is there a easy solution? /Martin Lindhe -- PHP Windows Mailing List (http://www.php.net/) To