php-windows Digest 17 Jun 2004 03:47:03 -0000 Issue 2287

Topics (messages 23990 through 23996):

Re: Blank Screen-Newbie
        23990 by: Gryffyn, Trevor
        23994 by: Kevin & Cindy

Re: PDF Acrobat Issue *Strange*
        23991 by: Gryffyn, Trevor

Re: PDF Acrobat Issue *Strange* [resolved]
        23992 by: trippin

Re: Where is mysqli in PHP5rc3?
        23993 by: Felix Rabinovich

Multiple file Delete
        23995 by: Lenny Davila

ASP to PHP converter?
        23996 by: memoimyself.yahoo.com.br

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]


----------------------------------------------------------------------
--- Begin Message ---
Sounds like it's not interpretting the PHP scripts properly.  Check the
following page and trace through the instructions making sure you
followed all the steps:

http://www.php.net/manual/en/install.apache2.php

I think there's an error log you can check too, but it's been a while
since I've run Apache and I don't remember off the top of my head.

Sounds like you did everything you needed to, but it's still not running
it through the PHP interpreter.

Let us know what you figure out.

-TG

> -----Original Message-----
> From: Kevin & Cindy [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 16, 2004 1:23 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Blank Screen-Newbie
> 
> 
> I have installed Apache 2.o.44 on Windows XP home edition and 
> have installed PHP 4.3.0 . When I try and view a php script in
> my browser (I.E 6) all I get is a blank screen, if I view source
> I can see the code, I have tried
> <? phpinfo(); ?>
> but still come up with a blank screen.I have re-named the 
> php.ini-dist file to php.ini and moved it to C:\Windows\
> I have also moved php4ts.ll to C:\Windows\System32.
> I have also added the following to my Apache configuration file:
> 
> LoadModule php4_module c:/php-4.3.0-Win32/sapi/php4apache2.dll
> AddType application/x-httpd-php .php
> 
> Any ideas?

--- End Message ---
--- Begin Message ---
I http://localhost !

"Kgx" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi. Sorry if this may sound silly but do you double click to open the php
> file or do you http://localhost?
>
> :)
>
>
> "Kevin & Cindy" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have installed Apache 2.o.44 on Windows XP home edition and have
> installed
> > PHP
> > 4.3.0 . When I try and view a php script in my browser (I.E 6) all I get
> is
> > a blank screen, if I view source I can see the code, I have tried <?
> > phpinfo(); ?>
> > but still come up with a blank screen.I have re-named the php.ini-dist
> file
> > to php.ini and moved it to C:\Windows\
> > I have also moved php4ts.ll to C:\Windows\System32.
> > I have also added the following to my Apache configuration file:
> >
> > LoadModule php4_module c:/php-4.3.0-Win32/sapi/php4apache2.dll
> > AddType application/x-httpd-php .php
> >
> > Any ideas?

--- End Message ---
--- Begin Message ---
Have you tried downloading the file you generated and trying to load the
file on a Windows machine then on the FreeBSD box?  That would at least
verify the integrity of the file.  Maybe something in the Windows
version of PHP or the PDF extensions is causing it to generate a bad
PDF.

If the PDF works fine on Windows and on FreeBSD, then it's something
with your web server or browser configuration.

I'd check the following:

PDF generated on FreeBSD - Works in FreeBSD?  Works in Windows?

PDF generated on Windows - Works in FreeBSD? Works in Windows?

Also check both of these directly through the web browser and by
generating the PDF and saving it to a file and testing both renditions
on both boxes.


Let us know what you find..  I might start working with generating PDFs
at some point in the near future and I'd like to hear how this turns out
for you.

-TG


> -----Original Message-----
> From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 15, 2004 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] PDF Acrobat Issue *Strange*
> 
> 
> If the headers and data are correct then the server is handling it
> correctly.  What I have notice in the past is that simply hitting
> refresh in IE doesn't always work.  Try copying to url to the 
> clipboard and going to some other site.  Like google.com.  Then paste 
> the url back from the clipboard.  This has worked for me in the past
when 
> IE displays the binary data of the pdf.
> 
> Charles Killmer
> 
> -----Original Message-----
> From: trippin  
> Sent: Tuesday, June 15, 2004 1:29 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PDF Acrobat Issue *Strange*
> 
> I am trying to create a PDF document on the fly from database
> information (mysql). I have this identical script setup on my FreeBSD
> server (1.3.x apache, 4.3.4 php), but i am on a Windows 2003 
> server and
> I have tried serveral combinations of apache including 1.3.31  and
> 2.0.49. I have also tried 4.3.4 and 4.3.7. My problem sounds simple
> enough. When I click on a link I want the pdf document to open up in
> Adobe Acrobat, and it does just fine when on my FreeBSD 
> server. I copied
> my scripts over and when I run them now the proper mime type 
> is detected
> (I have fully looked at the headers and they are propper and identical
> to the FreeBSD servers headers), but I get a window that opens up and
> shows the raw text of the pdf document. If I right click on 
> the document
> and go to properties it says it is an "Adobe Acrobat 
> Document" just like
> it should. I have tried serveral different header() combinations as
> suggesed by the user comments @ http://www.php.net/header but I can't
> get adobe !
>  acrobat to open the files. Its not the client or the script because
> everything works fine with i direct my webbrowser back on 
> over to my old
> server.
> I would love to run any of the free *nixs but my job does not 
> permit me
> to do that. My only clue to this would be some php.ini file settings
> that i am unaware of. I have tried both dist and recommeneded 
> php inis.
> Thanks
> 
> --
> 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
> 
> 

--- End Message ---
--- Begin Message ---
I was using the ezpdf library which appears that it is in someway incompatible with 
windows. The fpdf library appears to not only be better, but more importantly work. 
Thanks Trevor and Charles for help on this issue.
Checking my error log and writting a simple test document helped me discover this.

--- End Message ---
--- Begin Message ---
I heard the license explanation some time ago; and then I hear that it was
resolved. And mysqli was in RC2. So, I don't think that Zend guys would just
remove it without saying anything about it. So, my guess is that the just
forgot to put the dll in the package. However, it has been almost two weeks
now, and I didn't see the fix. So, does anybody have the update?

Felix

"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
> > The mysqli DLL file is not present in the PHP5rc3 for Win32 package, nor
is it bundled.
> > Can't find it in the PECL package either. Did they just forget to put
the DLL in the package
> > or is there a more esoteric explanation to this?
> >
> > Erik
>
> The new releases of MySQL are licensed under the GPL.  I read over on
> Zend's site that MySQL is trying to make an exception for PHP and a few
> other open source projects, but a lot of the people at Zend don't want
> to restrict their PHP users.  And, a few others thought that they
> shouldn't show preferences to any database.
>
> I was also unpleasantly surprised by this, but since I don't have a
> pressing time concern this was no deal for me.  Instead, I've learned
> how to migrate my databases to another system :)

--- End Message ---
--- Begin Message ---
I need to be able to delete multiple files from my web server by choosing
one file.  I have a directory of thumbs named "images" and a directory
called "big" with text files and Full images.  If I was to delete the file
"image1.jpg" I want it to delete "image1.jpg" in the images, the big folder
and "image1.jpg.txt" in the big folder.  I have now in my code.
($file = file to be deleted)

   if($action=="dele" && $confirm==1) {
   $match=array(); 
// Create an array of files
  $match[]=$file; 
// Put filename in the array
   
  $dirHandle = dir('../'); 
// get recursive directory listing from the directory above
  while($fileHandle = $dirHandle->read()) { 
// while reading the directory
    $delFile = strrchr($fileHandle, "/"); 
// get the filename after the last "/"
    if (in_array(substr($delFile,0,5), $match)) { 
// this line compares the 5 first chars in the filename 
// with the names in the $match array 
// Next line is line 36
    unlink($delFile); $action="";} 
// delete all files that match the filename
      if (unlink($delFile)) { 
          echo "Removed the file $fileHandle<br> \n"; 
      } 
    } 
  }

The first error I get:
Warning: unlink(): No such file or directory in
/home/www/mathiu1i/php/gallerie/edit2.php on line 36


TIA
------------------------------------
Eleno Davila
[EMAIL PROTECTED]
(877)933-6750 Ext�163 (direct line)
http://plasticsurgery.com�

--- End Message ---
--- Begin Message ---
Does anyone know of reasonably good and reliable (and preferably free) ASP to PHP 
converter?

Erik

--- End Message ---

Reply via email to