php-windows Digest 4 Aug 2004 13:36:24 -0000 Issue 2345

Topics (messages 24341 through 24346):

how to enable soap on php
        24341 by: mohammed Quwaider

Re: virus and auto-reponders!
        24342 by: Svensson, B.A.T. (HKG)

php_gettext.dll disapeared in PHP 4.3.8 WIN
        24343 by: Romain Bourdon
        24344 by: Romain Bourdon

dbg 'debug console'
        24345 by: Danielb

Setting redirect after HTTP upload
        24346 by: Mikey

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 ---
how to enable soap on php4.3.8  windows xp  IIS4

--- End Message ---
--- Begin Message ---
> And that 8 people have auto-responders running.

I am among them - and I agree that it is stupid - but what do you
do when you have to stick with a large institutes anoying selection
of MostStupid software? Yes, I could had disabled subscription of
PHP while I were on vacation, but I didn't want to - I wanted to
still get the mails. So the compromise is to appear as an idiot
in the mailing list - all thanks to Bill Gates who makes use -
the user - to behave stupid becasue we ha no other choise.

--- End Message ---
--- Begin Message ---
Hi,

I can't find the php_gettext.dll (neither libintl-1.dll ) in PHP 4.3.8
release. Is it a mistake or are they available somewhere else?

Sorry if this question has already been asked before...

Thanks ;-)

Romain

--- End Message ---
--- Begin Message ---
sorry, I found my answer :

http://bugs.php.net/bug.php?id=29137

Romain

--- End Message ---
--- Begin Message ---
I saw mentioned in the dbg docs or site a reference to a
debug console for dbg, I can't seem to find any such
app/utility. I don't really want to have to use an IDE like
phpcoder or phpedit as I already have the editor I want to
use (CodeWright) so can anyone tell what this debug console
is and is it available on Windows? Or are their any other
debuggers available for dbg?

Cheers,

Daniel

--- End Message ---
--- Begin Message ---
Hi NG,

Was wondering if anyone knew how why my code would fail to re-direct to
another page and whether this may be related to the fact that I have done an
HTTP upload?

On several pages, I perform a dB update and then re-direct to another page
using:

header ("Location: /some_url.php\n\n");
// \n\n included cos I read it in the manual years ago

And this works as expected.  However, on one page, I upload either one or
two files via HTTP and process them, however, once the files have been
processed and the database has been updated, the page is blank and it says
it is done.

It have put in an echo just above the header() call and the re-direct fails
as expected ("Cannot modify headers, etc...") so their can't be any other
output created by my script.

I have included the complete listing of the code that I am trying to execute
below - I have already through all the online comments in the manual
regarding both header() and HTTP uploads, but have found nothing that
helps.

Ta!

frak!

 if (isset ($_REQUEST['sub_symbol']))
 {
  $sp = "/images/symbols/";

  // Are there files to process?
  if (count ($_FILES) > 0)
  {
   if (isset ($_FILES['Image']) && $_FILES['Image']['tmp_name'] != "")
   {
    $img_name = $_FILES['Image']['name'];
    while (file_exists ($_SITEPATH.$sp.$img_name))
     $img_name = uniqid ("img").".jpg";
    $img = new Photograph ();
    $img->open ($_FILES['Image']['tmp_name']);
    $img->create ($_SITEPATH.$sp, "", $img_name);
   }
   if (isset ($_FILES['Eps']) && $_FILES['Eps']['tmp_name'] != "")
   {
    $eps_name = "/eps/symbols/".$_FILES['Eps']['name'];
    while (file_exists ($_SITEPATH.$eps_name))
     $eps_name = "/eps/symbols/".uniqid ("eps").".eps";
    move_uploaded_file ($_FILES['Eps']['tmp_name'], $_SITEPATH.$eps_name)
     or die ("Couldn't move uploaded
file...({$_FILES['Eps']['tmp_name']})<br>\n");
   }
  }

  if (!isset ($img_name))
   $img_name = $_REQUEST['old_img_path'];
  else
   $img_name = $sp.$img_name;
  if (!isset ($eps_name))
   $eps_name = $_REQUEST['old_eps_path'];

  if ($_REQUEST['sub_symbol'] == "Save Changes")
  {
   $sql = "UPDATE tblSymbols SET \"swmName\"='".safeSQL
($_REQUEST['swmName'])."', \"swmImgPath\"='$img_name',
\"swmEpsPath\"='$eps_name' WHERE \"irpSymbol\"=".$_REQUEST['irpSymbol'];
  }
  else
  {
   $sql = "INSERT INTO tblSymbols VALUES (0, '".safeSQL
($_REQUEST['swmName'])."', '$img_name', '$eps_name')";
  }
  $sth = ociparse ($conn, $sql)
   or die ("Couldn't parse SQL: $sql<br>\n");
  ociexecute ($sth)
   or die ("Coudn't execute SQL: $sql<br>\n");
  header ("Location: /admin/symbols.html\n\n");
  exit ();
 }



-- 
Recruitment consultants are like morning dew - soggy and wet in the
morning and non-existent by the afternoon.

--- End Message ---

Reply via email to