[PHP] PHP/AJAX File DragDrop

2007-11-30 Thread Andrei Verovski (aka MacGuru)
Hi !

Anyone knows PHP/AJAX library which allows to get full path of file dropped 
into web browser's window area?

It is required for document archiving system in order to avoid multiple (or to 
be more precise, almost endless) usage of open file dialogs from the 
browser.

Library should be compatible with Firefox (Lin, Win, Mac), IE and Safary.


Thanks in advance for any suggestion(s).

Andrei

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Storing compiled code on the server

2007-02-21 Thread Andrei Verovski (aka MacGuru)
On Wednesday 21 February 2007 16:52:40 Brian Dunning wrote:
 I have a few scripts that I want to protect from the prying eyes of
 even people with root access to my server. The best suggestion I've
 heard is to store only the compiled version on the server itself. I
 have no idea how to do this or how those scripts would be called. Can
 anyone point me to a good starting place?

Just use PHP Accelerator (formely Turck MM Cache). Search for it on 
sourceforge.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] CMS Engine(s) with Savant (or other non-compiling template engine)

2007-01-28 Thread Andrei Verovski (aka MacGuru)
Hi !


Anyone knows if there any CMS engine(s) which PHP Savant template engine or 
any similar non-compiling template system ?

Unlike other template systems, Savant by default does not compile your 
templates into PHP; instead, it uses PHP itself as its template language so 
you don't need to learn a new markup system.

Thanks in advance for any suggestion(s)

Andrei

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-03 Thread Andrei Verovski (aka MacGuru)
Hi,

Many thanks for everyone who have replied. Its seems Manuel's suggestion 
regarding iFrame sounds really good. BTW, I am using Savant as template 
engine, and integrate it with Manuel Forms Generation and Validation would be 
a good idea (there is a Smarty plugin for this class, but I am using Savant). 

Basically, I have a problem porting my own FileMaker database with many 
multi-page forms (plus large tables and big drop-down lists, displaying 
thousands of items). Things made quickly with native GUI tools often very 
difficult to port to Web-based GUI.


On Monday 03 April 2006 16:13, you wrote:
 Hello,

 on 04/01/2006 12:00 PM Andrei Verovski (aka MacGuru) said the following:
  Anyone can suggest me which PHP AJAX framework you are using, for what
  reason(s), what are pros and cons of your particular choice.
 
  I found many, and now facing difficult choice.
 
  BTW, how do you pass session id between calls to PHP from JavaScript
  (cookies or explicit foo.php?PHPSESSSIONID=blahblahblah)?
 
  Thanks in advance for any suggestion(s).

 Regardless of the framework you choose, note that AJAX solutions based
 on XMLHttpRequest objects are problematic for reasons listed in this
 blog post below. Despite it is an older technology, for most purposes
 people want to use AJAX, IFrame based solutions are more capable and
 reliable.

 * Browser compatibility

 * Browser security constraints

 * Single JavaScript base code

 * Response speed

 * File form upload


 http://www.phpclasses.org/blog/post/51-PHPClasses-20-Beta-AJAX-XMLHttpReque
st-x-IFrame.html


 As for AJAX solutions, I use this forms generation class also mentioned
 in the post, which has a plug-in form submiting and processing forms in
 the background using IFrame based AJAX requests.

 http://www.phpclasses.org/formsgeneration

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP AJAX Framework - Suggestions Please

2006-04-01 Thread Andrei Verovski (aka MacGuru)
Hi,

Anyone can suggest me which PHP AJAX framework you are using, for what 
reason(s), what are pros and cons of your particular choice.

I found many, and now facing difficult choice.

BTW, how do you pass session id between calls to PHP from JavaScript (cookies 
or explicit foo.php?PHPSESSSIONID=blahblahblah)?

Thanks in advance for any suggestion(s).

Andrei

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Benchmarking SPL Iterators vs for / foreach ???

2005-11-26 Thread Andrei Verovski (aka MacGuru)
Hi,

Someone have benchmarked SPL iterators vs for / foreach loops? What is the 
performance penalty?

SPL is ¨interpreted wrapper¨ on the top of C++ STL (correct me if I am wrong), 
and I am sure it uses STL callbacks. But unlike C++, PHP scripts are 
interpreted, so pointer arithmetic will work only through Zend engine which for 
sure  adds extra performance penalty.

Thanks in advance for any suggestion(s)



***   with best regards 
***   Andrei Verovski (aka MacGuru)
***   Mac, Linux, DTP, Programming Web Site
***
***   http://snow.prohosting.com/guru4mac/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP5 and SuSE 10 Problem - Help Please

2005-10-15 Thread Andrei Verovski (aka MacGuru)
Hi,

After having numerous problems after upgrade from 9.3 to 10.0 (i.e. dead USB), 
I simply reformatted my HD and installed SuSE 10 from scratch. Everything is 
almost fine except PHP5.04 - none of PHP program is working.

I have configured Apache2 with YaST2 http module, enabled PHP5 and disabled 
php4 module. I simply cannot figure out what have happened. Looks like PHP 
interpreter cannot find any include even if it is located in the same dir as 
running script.

Anyone have an idea what went wrong? On SuSE 9.3 the same setup worked without 
any problem.

[client 127.0.0.1] PHP Warning:  main(./libraries/lib.inc.php) [a 
href='function.main'function.main/a]: failed to open stream: No such file or 
directory in /srv/www/htdocs/phpPgAdmin/index.php on line 10
[client 127.0.0.1] PHP Warning:  main() [a 
href='function.include'function.include/a]: Failed opening 
'./libraries/lib.inc.php' for inclusion (include_path='/usr/share/php5') in 
/srv/www/htdocs/phpPgAdmin/index.php on line 10
[client 127.0.0.1] PHP Notice:  Undefined variable: misc in 
/srv/www/htdocs/phpPgAdmin/index.php on line 11
[client 127.0.0.1] PHP Fatal error:  Call to a member function printHeader() on 
a non-object in /srv/www/htdocs/phpPgAdmin/index.php on line 11
[client 127.0.0.1] PHP Warning:  main(./libraries/lib.inc.php) [a 
href='function.main'function.main/a]: failed to open stream: No such file or 
directory in /srv/www/htdocs/phpPgAdmin/index.php on line 10
[client 127.0.0.1] PHP Warning:  main() [a 
href='function.include'function.include/a]: Failed opening 
'./libraries/lib.inc.php' for inclusion (include_path='/usr/share/php5') in 
/srv/www/htdocs/phpPgAdmin/index.php on line 10

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Moving PEAR installation (for self-contained class library)

2005-05-27 Thread Andrei Verovski (aka MacGuru)
Hi,

I have a PEAR-related question. My class library using some PEAR 
packages, and I would like to make it self-contained, i.e. to be able 
to move it to a server (for example MacOS X) which do not have (and 
will not require) installation of any PEAR package(s).

What I would like to do is just to copy whole PEAR directory from 
the /usr/share/php5 in the corresponding subdir of my class library. 
The question is - how to make this work transparently. What global 
php_ini variables need to be changed? Just ¨include_path¨ or anything 
else?

Thanks in advance for any suggestion(s).



***   with best regards 
***   Andrei Verovski (aka MacGuru)
***   Mac, Linux, DTP, Programming Web Site
***
***   http://snow.prohosting.com/guru4mac/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Strange PHP5 message

2005-03-17 Thread aka MacGuru
Hi, Jason,
Thanks a lot for suggestion. Does it mean that I have tried to  
serialize some object (like adodb db object)? How I can eliminate this?  
I really cannot find where this object or whatever else is going to be  
serailized. The problematic line of code just serialized an array.

On Mar 16, 2005, at 18:30, Jason Barnett wrote:
Andrei Verovski wrote:
...
Notice: serialize() [function.serialize]: __sleep should return an  
array
only containing the names of instance-variables to serialize. in
ANVphpApp.php on line 840

Anyone knows what is the problem?
Exactly what the notice says ;) basically __sleep is used so that you
can prevent certain properties (file pointers, db connections, objects,
etc.) from being serialized.
?php
session_start();
error_reporting(E_ALL);
class Dummy {
  public$s1  = 'I am a test string';
  protected $s2  = 'I am the protected string';
  private   $_s3 = 'I am the private string';
  var   $a1  = array('testing', 1, 2, 3);
  static$i1  = 0;
  function __sleep() {
$i = self::$i1++;
echo Oops, I forgot everything!  $i\n;
return array();
  }
}
class hasMemory extends Dummy {
  private $_fp = NULL;
  function __construct() {
$this-_fp = fopen('/path/to/some/file', 'r');
  }
  function __sleep() {
$props_to_save = array('s1', 's2', 'a1');
echo I know about the following properties:\n;
print_r($props_to_save);
return $props_to_save;
  }
}
$_SESSION['obj1']= new Dummy();
$_SESSION['obj2']= new hasMemory();
$_SESSION['string']  = '123abcdefg!';
$_SESSION['integer'] = 1;
$_SESSION['float']   = .1234;
$_SESSION['double']  = .1234567890123456;
$_SESSION['bool']= TRUE;
foreach ($_SESSION as $key = $value) {
  echo $key: ;
  var_dump(serialize($value));
}
?
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html? 
name=PHPsubmitform=Find+search+plugins

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac/
*   Mac, Linux, DTP, Development, IT WEB Site
*


[PHP] Strange PHP5 message

2005-03-16 Thread aka MacGuru
Hi,
I have PHP 5.03 running on SuSE 9.2. Some code working fine in PHP 4.3x 
now throws a message:

Notice: serialize() [function.serialize]: __sleep should return an 
array only containing the names of instance-variables to serialize. in 
ANVphpApp.php on line 840

Anyone knows what is the problem?
Thanks in advance for any suggestion(s).
*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac/
*   Mac, Linux, DTP, Development, IT WEB Site
*


Re: [PHP] PHP IDE for OS X

2004-09-04 Thread Andrei Verovski (aka MacGuru)
Hi, Jastin,

Just try Eclipse (www.eclipse.org) and PHP plugin called phpeclipse (available 
at sourceforge.net). Works great on ALL platforms, including Linux, OSX and 
Win.

On Saturday 04 September 2004 05:26 pm, Justin French wrote:
 Can anyone suggest a PHP editor/IDE for OS X other than:

 - BBEdit (already using it)
 - Zend Studio (it's Java, not OS X native)

 What I'm hoping for is:
 - some form of auto-complete text for functions/constants/etc,
 - integrated testing/debugging
 - integration with local install of PHP
 - anything else that will make my life easier without 'getting in the
 way'.

 My guess is it doesn't exist, but it's worth a shot.

 PLEASE, no On Windows I use... or I just use 'Text Editor X' -- I'm
 looking for something more than a basic text editor, and it has to be
 OS X native (not some ugly, sluggish Java thing).


***   with best regards 
***   Andrei Verovski (aka MacGuru)
***   Mac, Linux, DTP, Programming Web Site
***
***   http://snow.prohosting.com/guru4mac/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] xored TruStudio PHP Editor

2004-08-02 Thread aka MacGuru
Hi,
Quite surprised to see any news about xored trustudio. I used it some 
time ago, but switched to phpeclipse. xored was developed by a Russian 
company located in Siberia, city of Novosibirsk. Are they still alive? 
I have tried their latest M1, it did not work for me.

Does anyone know how to get the hover functionality working in 
xored's
webstudio/trustudio for PHP.

TIA,
Daryl
*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac/
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHPEclipse?

2004-07-12 Thread Andrei Verovski (aka MacGuru)
Hi,

I am currently using Eclipse 3.0 with latest build of PHPEclipse on Linux. 
Just great. Did not tried debugger, however. 


On Monday 12 July 2004 09:39 pm, Dan Joseph wrote:
 Hi,

   I was wondering, is anyone running Eclipse 3.0 w/PHPEclipse 1.1.0?
 I'm having trouble getting it working.  I downloaded the July .ZIP file and
 unzipped it into the plugins directory.  Its not recognizing it.  Anyone
 have this working?

 -Dan Joseph

-- 


***   with best regards 
***   Andrei Verovski (aka MacGuru)
***   Mac, Linux, DTP, Programming Web Site
***
***   http://snow.prohosting.com/guru4mac/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHPEclipse?

2004-07-12 Thread Andrei Verovski (aka MacGuru)
On Monday 12 July 2004 11:27 pm, Dan Joseph wrote:
 How did you get it installed?  Did you just extract the zip into the
 plugins directory?

Yes.

-- 


***   with best regards 
***   Andrei Verovski (aka MacGuru)
***   Mac, Linux, DTP, Programming Web Site
***
***   http://snow.prohosting.com/guru4mac/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to obtain MAC address of server where PHP is running

2004-05-29 Thread Andrei Verovski (aka MacGuru)
Hi,

Anyone knows ho to obtain MAC address of server where PHP is running (with PHP 
function, of course)?

Thanks in advance for any suggestion(s)

Andrei

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to obtain MAC address of server where PHP is running

2004-05-29 Thread Andrei Verovski (aka MacGuru)
Hi, Gerard,

Can you please be so kind to post your code snippet you have described below?

Thanks.

On Saturday 29 May 2004 05:36 pm, Gerard Samuel wrote:
 On Saturday 29 May 2004 10:21 am, Andrei Verovski (aka MacGuru) wrote:
  Hi,
 
  Anyone knows ho to obtain MAC address of server where PHP is running
  (with PHP function, of course)?
 
  Thanks in advance for any suggestion(s)

 I use passthru() to execute shell commands, and use preg_match() to get the
 MAC address.
 Unfortunately, this would only work if passthru() isn't disabled, and
 safe_mode is off...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to obtain MAC address of server where PHP is running

2004-05-29 Thread Andrei Verovski (aka MacGuru)
Hi, Gerard,

Thanks a lot !

On Saturday 29 May 2004 08:09 pm, Gerard Samuel wrote:
 On Saturday 29 May 2004 12:35 pm, Andrei Verovski (aka MacGuru) wrote:
  Hi, Gerard,
 
  Can you please be so kind to post your code snippet you have described
  below?

 ?php

 ob_start();

 passthru('/sbin/ifconfig | grep ether');
 $dump = ob_get_contents();
 preg_match('/[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:
 [A-F0-9]{2}/i', $dump, $mac);
 $mac_address = $mac[0];

 ob_end_clean();

 ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem - Turckmmcache, Apache2 and SuSE 9.1

2004-05-19 Thread Andrei Verovski (aka MacGuru)
Hi,

I have compiled and installed (precisely following instruction) turck-mmcache 
2.4.6 for Apache2-2.0.49-23/php4-4.3.4-43.3 on SuSE 9.1.

Unfortunately, I cannot start Apapche2 anymore, I am getting this error 
message:

/usr/sbin/httpd2-prefork: error while loading shared 
libraries: /usr/lib/php/extensions/mmcache.so: undefined symbol: 
php_session_register_module
[Tue May 18 22:11:01 2004] [notice] suEXEC mechanism enabled 
(wrapper: /usr/sbin/suexec2)
[Tue May 18 22:11:01 2004] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
[Tue May 18 22:11:01 2004] [notice] Digest: generating secret for digest 
authentication ...
[Tue May 18 22:11:01 2004] [notice] Digest: done
/usr/sbin/httpd2-prefork: error while loading shared 
libraries: /usr/lib/php/extensions/mmcache.so: undefined symbol: 
php_session_register_module

Anyone have an idea how to fix this?

Thanks in advance

Andrei

-

Here is what I have added to php.ini at the bottom:

  extension=mmcache.so
  mmcache.shm_size=16
  mmcache.cache_dir=/tmp/mmcache
  mmcache.enable=1
  mmcache.optimizer=1
  mmcache.check_mtime=1
  mmcache.debug=0
  mmcache.filter=
  mmcache.shm_max=0
  mmcache.shm_ttl=0
  mmcache.shm_prune_period=0
  mmcache.shm_only=0
  mmcache.compress=1

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem - Turckmmcache, Apache2 and SuSE 9.1

2004-05-18 Thread Andrei Verovski (aka MacGuru)
Hi,

I have compiled and installed (precisely following instruction) turck-mmcache 
2.4.6 for Apache2-2.0.49-23/php4-4.3.4-43.3 on SuSE 9.1.

Unfortunately, I cannot start Apapche2 anymore, I am getting this error 
message:

/usr/sbin/httpd2-prefork: error while loading shared 
libraries: /usr/lib/php/extensions/mmcache.so: undefined symbol: 
php_session_register_module
[Tue May 18 22:11:01 2004] [notice] suEXEC mechanism enabled 
(wrapper: /usr/sbin/suexec2)
[Tue May 18 22:11:01 2004] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
[Tue May 18 22:11:01 2004] [notice] Digest: generating secret for digest 
authentication ...
[Tue May 18 22:11:01 2004] [notice] Digest: done
/usr/sbin/httpd2-prefork: error while loading shared 
libraries: /usr/lib/php/extensions/mmcache.so: undefined symbol: 
php_session_register_module

Anyone have an idea how to fix this?

Thanks in advance

Andrei

-

Here is what I have added to php.ini at the bottom:

  extension=mmcache.so
  mmcache.shm_size=16
  mmcache.cache_dir=/tmp/mmcache
  mmcache.enable=1
  mmcache.optimizer=1
  mmcache.check_mtime=1
  mmcache.debug=0
  mmcache.filter=
  mmcache.shm_max=0
  mmcache.shm_ttl=0
  mmcache.shm_prune_period=0
  mmcache.shm_only=0
  mmcache.compress=1

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP5 RC1 rpms for Mandrake 10

2004-04-23 Thread Andrei Verovski (aka MacGuru)
Hi,

Anyone can suggest me where I can get PHP5 RC1 rpms (with possible max# of 
extensions) for Mandrake 10? I have tried to make them myself, but run into 
numerous problems.

Thanks in advance for any suggestion(s)

Andrei Verovski (aka MacGuru)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP5 RC1 rpms for Mandrake 10

2004-04-11 Thread Andrei Verovski (aka MacGuru)
Hi,

Anyone can suggest me where I can get PHP5 RC1 rpms (with possible max# of 
extensions) for Mandrake 10? I have tried to make them myself, but run into 
numerous problems.

Thanks in advance for any suggestion(s)

Andrei Verovski (aka MacGuru)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP 5rc1 RPM for Mandrake 10

2004-03-29 Thread aka MacGuru
Hi,

Anyone knows where it is possible to get PHP 5rc1 RPM for Mandrake 10? 
Or even for older, I can rebuild it, no problem.

Thanks in advance for any suggestion(s).

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac/
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Exception handlind in PHP 4 a'la PHP5

2004-02-09 Thread aka MacGuru
Hi,

PHP 5 stable is not on the horizon yet. Someone have any idea how to 
emulate (or to be more precise, simulate), this feature in PHP 4 (I 
could do it if PHP4 would support macros and goto, but there are no 
such).

Thanks in advance for any suggestion(s).

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac/
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Is it worth $49? - codeSECURE 1.0 released - - Protecting PHP code

2003-10-23 Thread aka MacGuru
Hi,

I have read announcement about CodeSecure. I am sorry to say, but I am 
not sure this product is worth $49. The problem is not $49, which is 
very small amount indeed, but the features available with other Open 
Source software.

1) If someone need just PHP obfuscator - here is proven GPL product 
called POBS (http://pobs.mywalhalla.net/).

2) PHP encoding/decoding on the fly without extra PHP extensions is 
possible with GPL-ed software called Phrozen 
(http://sourceforge.net/projects/phrozen/).

3) PHP Scripts may be stored (and distributed to the clients) in 
compiled form with opcode cash TurckMMcache, which is also Open Source.

4) Another (very similar) product called CodeLock 
(http://www.websitecreations.co.nz/codelock/) costs $55, but requires 
option Globals On to be set, and some people reported weird problems 
with it. I do not know if CodeSecure might have (or have not) similar 
issues because of similar architecture.

PS. Anyway, I am welcome to the creative ideas.


Greetings everyone,
We have just launched a new product called codeSECURE and would like 
you to
check it out.

codeSECURE is a PHP obfuscator.

Basically codeSecure is a small collection of scripts to obfuscate or
garble up php code so that PHP developers can protect their 
intellectual
property, distribute locked php scripts, time expiring scripts etc.

While making it nearly impossible for a human to understand or read 
your
code/scripts, they will cause no problem for the computer to decipher 
and
run.

E.g.

$a=Hello world;

will become something like

$23sfaAST3s=v4Mwuz24fz{(2{w;

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Turck MMCache Feedback, Please

2003-08-15 Thread aka MacGuru
Hi,

I am going to use Turck MMCache with Encoder. Anyone on the list have 
used it on Linux, MacOS X, Windows?

Any caveats and/or side effect?

Your feedback will be greatly appreciated. Thanks in advance.

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] How to Determine Number of connected users to PostgreSQL

2003-07-23 Thread aka MacGuru
Hi,

Is it possible to determine number of connected users to certain 
PostgreSQL database from within PHP script?

Thanks in advance for any suggestion.

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Passing Serialized Array via Hidden field

2003-07-21 Thread aka MacGuru
Hi,

I am need to pass serialized assotiative array via form hidden field 
(not GET or POST). In order to do it, I did the following: 
urlencode(serialize($my_array)). However, after retrieving data from 
hidden field and unserialize I've got junk.

Someone can explain me what I did wrong?

Also, do I need to do addslashes/stripslashes with serialized (or 
encoded ?) data?

Thanks in advance for any suggestion.

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Passing Serialized Array via Hidden field

2003-07-21 Thread aka MacGuru
On Monday, Jul 21, 2003, at 10:38 Europe/Helsinki, Sam Baum wrote:

am Monday 21 July 2003 09:24 schrieb Andrei Verovski:

I am need to pass serialized assotiative array via form hidden field
(not GET or POST).
What does this mean? If you dont use GET or POST your form cant be
submitted.
I am need to pass serialized assotiative arrays (qty of 3) TO form 
without GET, using hidden fields, but of course, I will use POST to 
acquire form data.

In order to do it, I did the following:
urlencode(serialize($my_array)). However, after retrieving data from
hidden field and unserialize I've got junk.
Just guessing: tried it w/o urlencode?
Yes, I did. I've got junk on my web page, because of special chars and 
sequences in serialized data.

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP POS program

2003-07-16 Thread aka MacGuru
On Wednesday, Jul 16, 2003, at 15:58 Europe/Helsinki, Mike Morton wrote:

Why is it too serious a problem?  E-Commerce sites are written in PHP -
there is not a big difference except that the POS system does not even
necessarily have to be online!  I think that is a bit of a short 
sighted
view don't you?

Just because you have not seen it done does not mean that it 
cannot/has not
been done...

I don't mean to be a prick about it -it is just that there really is no
reason that it could not be done in php.  It is not a difficult system 
to
do.

Hi,

It is NOT possible since web browser cannot print row ASCII to serial 
POS printer (PHP scripts run on server and output Web pages to client 
machines).

*
*   Best Regards   ---   Andrei Verovski
*
*   Personal Home Page
*   http://snow.prohosting.com/guru4mac
*   Mac, Linux, DTP, Development, IT WEB Site
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php