> 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;
> 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
> 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==
> > >>> "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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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]>
> 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
> 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
> 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
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
> --- 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 $
> 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
> 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
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)
> 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
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
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
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
>
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,
> 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
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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
> 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
, 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
37 matches
Mail list logo