Jump to content

cgishack

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cgishack's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is there any way to send a variable or fire some sort of event to an open VB6 application on a Windows Appache server ?. I have VB6 app that is logging data all day and I want to control some features from the web.. any ideas ?
  2. Hello, I am updating a VB6 application to work with a database, and will have PHP read the Database for the web. I am looking for a nice easy database where I can move it form computer to computer without much administration (i.e Users etc..) Is MS Access my best bet for this? I know MS Access has restrictions on how many people can have the DB open, but is there a restriction on how many people can connect to it via the Web? Drew
  3. it will just find 1 try it <html> <head> <title>Sample</title> </head> <body> <? $char1 = "A"; $char2 = "B"; $char3 = "C"; $char4 = "D"; if ($char1 == "B") { print "char 1"; } else if ($char2 == "B") { print "char 2"; } else if ($char3 = "C") { print "char 3"; } else { print "none"; } ?> </body> </html> Drew
  4. cgishack

    JSon

    I can send a Json string from php and get Javascript to convert it to a Java Script Object . But How can I go the other way.... If i am sending the following string to php using POST, how can i get use this in PHP ? {"minx":-101.341258,"maxx":-68.1977363,"miny":39.9732256,"maxy":64.830867} I tried $json = json_encode($_POST['json']); echo $json->maxx; and $json = json_decode($_POST['json']); echo $json->maxx; But I get nothing . Drew
  5. Is there a way to convert a Php object to a JavaScript Object onn client side ? I tried using JSON $output = json_encode($Obj); echo $output."\n"; But I got a slight error, Warning: [json] (json_encode_r) type is unsupported, encoded as null. in whats the best way I should do this ? Drew
  6. You know what my problem was..... I had white space in my php file at the top.. So <php should have been on line 0 but I had it on line 10 I never thought that would matter, but it did. Maybe passes extra bytes to the file. Thanks for all your help. Drew
  7. Well I get it from a web service Like so.. $fixedSizeReturn = $client->WarehouseExtractRadiusFixedSize_v1($radiusSize); $imageBytes = $fixedSizeReturn->WarehouseExtractRadiusFixedSize_v1Result->Result->Image->ImageBytes; The documentation says "Returns an image as a JPEG as an array of bytes" I have done it in ASP.NET like so Response.ContentType = "image/JPEG"; Response.AppendHeader("Content-Length", imageBytes.Length.ToString()); Response.Cache.SetLastModified(DateTime.Now); Response.Cache.SetCacheability(HttpCacheability.Public); Response.BinaryWrite(imageBytes); But, now I need to do the same thing in PHP Drew
  8. Hello, I have a web service returning me an Array of Bytes in the form of a Jpg. I am trying to us the GD lib to create the image. Here is my code ($imageBytes is the array of Bytes) //Create the image from Bytes to JPEG. $img = imagecreatefromstring($imageBytes); header('Content-Type: image/JPEG'); header("Content-Length: " .strlen($imageBytes)); imagejpeg($img); But the image is not displaying. Should I use GD, or should I use something else. Any ideas what I am doing wrong.
  9. Ahh. I think I solved my problem There is an object within an Object Here is what I did $sessionID = $objectName->Connect_v1Result->SessionId; ;-) Drew
  10. Hello, I am trying to get a propery of an object thats being returned from a WebService Function I called. But I am having issues. When i do a print_r($objectName) I get stdClass Object ( [Connect_v1Result] => stdClass Object ( [sessionId] => 1318883829 [status] => stdClass Object ( [statusID] => 0 ) ) ) WHat I want to get is SessionId I tried $sessionID = $objectName->SessionId; But I get this error Connected!PHP Notice: Undefined property: stdClass::$SessionId Any ideas ? Drew
  11. Below is the error I am getting PHP Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. --> Object reference not set to an instance of an object. in C:\ArcIMS\Website\PhpPicto\test.php:27 Stack trace: #0 [internal function]: SoapClient->__call('Connect_v1', Array) #1 C:\ArcIMS\Website\PhpPicto\test.php(27): SoapClient->Connect_v1(Array) #2 {main} thrown in C:\ArcIMS\Website\PhpPicto\test.php on line 27
  12. The Connect_v1() is a method in the web service I am connecting too. I have to connect to an image warehouse , it requires this to be done. any ideas ? Drew
  13. I am trying to connect to a Web Service using SOAP. Right now I connect using the code below.... $client = new SoapClient( $wsdlUrl ); But the first thing I must do is call a method called Connect_v1. But it takes a TOKEN ? So it should look like so.... $client->Connect_v1( $token ); But what is a token ? How can I create a Token ? I did the same program in ASP.NET C# and the token was like so. (but it was something I found online) byte[] token = new byte[1]; Can someone help me make a token in php ? Thanks Drew
  14. Hello Everyone, I am looking at using some php extensions but i am in need of help. I am a Windows user and know very little about Linux and i think the extensions i found are for a Linux version of php. I have found these 2 extensions (and they are NOT in .dll format) 1) [a href=\"http://cvs.php.net/viewvc.cgi/pecl/shp/\" target=\"_blank\"]http://cvs.php.net/viewvc.cgi/pecl/shp/[/a] 2) [a href=\"http://nona.net/software/ext_shapelib/\" target=\"_blank\"]http://nona.net/software/ext_shapelib/[/a] They are linked (or based) off of this C library. [a href=\"http://shapelib.maptools.org/\" target=\"_blank\"]http://shapelib.maptools.org/[/a] I need ONLY ONE of these extensions to work on a Windows box (i assume a .dll) This extension is for reading and writing vector data to a GIS image format called "shapefile" (.shp) Can anyone help me compile these to it will work in windows ? Is this possible. Or can i use the C library .dll's in the php.ini file I hope someone can find the time to help. I would really like to have these extensions installed in order to complete a project i am working on. Hope you can help, Thanks, Andrew
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.