[PHP] php_svn.dll with Apache/2.0.63
hi y'all, is there a known issue with php_svn.dll (5.2.1.1) on Apache/2.0.63 (windows xp sp 2 - 32bit)? i am pretty sure i did configure it well, but for some reason apache fails to use this extension. the svn extension is usable from the cli but not via apache. any pointers will be of great help. Thanks, Vedanta ##-- source code ?php #svn_test.php // echo pre; echo See if extensions are loaded:\n; print_r(get_loaded_extensions()); echo List a svn repo:\n; print_r(svn_ls('http://192.168.101.20/svn')); ? ## ##-- executed from cli: See if extensions are loaded: Array ( [0] = bcmath [1] = calendar [2] = com_dotnet [3] = ctype [4] = session [5] = filter [6] = ftp [7] = hash [8] = iconv [9] = json [10] = odbc [11] = pcre [12] = Reflection [13] = date [14] = libxml [15] = standard [16] = tokenizer [17] = zlib [18] = SimpleXML [19] = dom [20] = SPL [21] = wddx [22] = xml [23] = xmlreader [24] = xmlwriter [25] = bz2 [26] = curl [27] = dba [28] = dbase [29] = mbstring [30] = fdf [31] = gd [32] = gettext [33] = gmp [34] = imap [35] = interbase [36] = ldap [37] = exif [38] = mcrypt [39] = mhash [40] = mime_magic [41] = ming [42] = msql [43] = mssql [44] = mysql [45] = mysqli [46] = openssl [47] = PDO [48] = PDO_Firebird [49] = pdo_mssql [50] = pdo_mysql [51] = PDO_OCI [52] = PDO_ODBC [53] = pdo_sqlite [54] = pspell [55] = shmop [56] = snmp [57] = soap [58] = sockets [59] = SQLite [60] = tidy [61] = xmlrpc [62] = xsl [63] = zip [64] = svn ) List a svn repo: Array ( [0] = Array ( [created_rev] = 4 [last_author] = vedanta [size] = 0 [time] = May 12 11:13 [time_t] = 1210605233 [name] = test [type] = dir ) ) ### -- executed from web See if extensions are loaded: Array ( [0] = bcmath [1] = calendar [2] = com_dotnet [3] = ctype [4] = session [5] = filter [6] = ftp [7] = hash [8] = iconv [9] = json [10] = odbc [11] = pcre [12] = Reflection [13] = date [14] = libxml [15] = standard [16] = tokenizer [17] = zlib [18] = SimpleXML [19] = dom [20] = SPL [21] = wddx [22] = xml [23] = xmlreader [24] = xmlwriter [25] = apache2handler [26] = bz2 [27] = curl [28] = dba [29] = dbase [30] = gd [31] = gettext [32] = gmp [33] = imap [34] = ldap [35] = mbstring [36] = mime_magic [37] = ming [38] = mysql [39] = mysqli [40] = PDO [41] = pdo_mysql [42] = PDO_ODBC [43] = pdo_sqlite [44] = shmop [45] = snmp [46] = soap [47] = sockets [48] = SQLite [49] = tidy [50] = xmlrpc [51] = xsl [52] = zip ) List a svn repo: *Fatal error*: Call to undefined function svn_ls() in *C:\VEDANTA\WWW\svn_test.php* on line *7*
[PHP] Re: php_svn.dll with Apache/2.0.63
more on this, i just found out that php_svn.dll does not work with the mpm version of apache, i did a 'Apache -X' (single process mode) and php_svn.dll works fine. how do i run it in mpm mode? - vedanta On Mon, May 12, 2008 at 1:55 PM, Vedanta Barooah [EMAIL PROTECTED] wrote: hi y'all, is there a known issue with php_svn.dll (5.2.1.1) on Apache/2.0.63 (windows xp sp 2 - 32bit)? i am pretty sure i did configure it well, but for some reason apache fails to use this extension. the svn extension is usable from the cli but not via apache. any pointers will be of great help. Thanks, Vedanta ##-- source code ?php #svn_test.php // echo pre; echo See if extensions are loaded:\n; print_r(get_loaded_extensions()); echo List a svn repo:\n; print_r(svn_ls('http://192.168.101.20/svn')http://192.168.101.20/svn%27%29 ); ? ## ##-- executed from cli: See if extensions are loaded: Array ( [0] = bcmath [1] = calendar [2] = com_dotnet [3] = ctype [4] = session [5] = filter [6] = ftp [7] = hash [8] = iconv [9] = json [10] = odbc [11] = pcre [12] = Reflection [13] = date [14] = libxml [15] = standard [16] = tokenizer [17] = zlib [18] = SimpleXML [19] = dom [20] = SPL [21] = wddx [22] = xml [23] = xmlreader [24] = xmlwriter [25] = bz2 [26] = curl [27] = dba [28] = dbase [29] = mbstring [30] = fdf [31] = gd [32] = gettext [33] = gmp [34] = imap [35] = interbase [36] = ldap [37] = exif [38] = mcrypt [39] = mhash [40] = mime_magic [41] = ming [42] = msql [43] = mssql [44] = mysql [45] = mysqli [46] = openssl [47] = PDO [48] = PDO_Firebird [49] = pdo_mssql [50] = pdo_mysql [51] = PDO_OCI [52] = PDO_ODBC [53] = pdo_sqlite [54] = pspell [55] = shmop [56] = snmp [57] = soap [58] = sockets [59] = SQLite [60] = tidy [61] = xmlrpc [62] = xsl [63] = zip [64] = svn ) List a svn repo: Array ( [0] = Array ( [created_rev] = 4 [last_author] = vedanta [size] = 0 [time] = May 12 11:13 [time_t] = 1210605233 [name] = test [type] = dir ) ) ### -- executed from web See if extensions are loaded: Array ( [0] = bcmath [1] = calendar [2] = com_dotnet [3] = ctype [4] = session [5] = filter [6] = ftp [7] = hash [8] = iconv [9] = json [10] = odbc [11] = pcre [12] = Reflection [13] = date [14] = libxml [15] = standard [16] = tokenizer [17] = zlib [18] = SimpleXML [19] = dom [20] = SPL [21] = wddx [22] = xml [23] = xmlreader [24] = xmlwriter [25] = apache2handler [26] = bz2 [27] = curl [28] = dba [29] = dbase [30] = gd [31] = gettext [32] = gmp [33] = imap [34] = ldap [35] = mbstring [36] = mime_magic [37] = ming [38] = mysql [39] = mysqli [40] = PDO [41] = pdo_mysql [42] = PDO_ODBC [43] = pdo_sqlite [44] = shmop [45] = snmp [46] = soap [47] = sockets [48] = SQLite [49] = tidy [50] = xmlrpc [51] = xsl [52] = zip ) List a svn repo: *Fatal error*: Call to undefined function svn_ls() in *C:\VEDANTA\WWW\svn_test.php* on line *7* -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006
[PHP] Issues with PHP 5.1.4 / GD FreeType / Linux
hello all, i am trying to compile freetype support for php 5.1.4, on linux ... looks like i have set all the compile options correct ... but some how freetype support does not get included. any pointers will be of great help! thanks, vedanta ## configure options # './configure' '--with-apxs2=/soa/srv/httpd/bin/apxs' '--prefix=/soa/srv/php514' '--with-config-file-path=/soa/srv/php514/conf' '--enable-soap' '--enable-exif' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/lib' '--enable-gd-native-ttf' '--with-ttf' '--with-freetype-dir=/usr/lib' -- snip -- configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none). checking for FreeType 1.x support... yes checking for FreeType 2... /usr/lib checking for FreeType 1 support... no - FreeType 2.x is to be used instead configure: warning: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none). configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none). -- snip -- ### ? print_r(gd_info()); ? Array ( [GD Version] = bundled (2.0.28 compatible) [FreeType Support] = [T1Lib Support] = [GIF Read Support] = 1 [GIF Create Support] = 1 [JPG Support] = 1 [PNG Support] = 1 [WBMP Support] = 1 [XPM Support] = [XBM Support] = 1 [JIS-mapped Japanese Font Support] = )
[PHP] Re: Issues with PHP 5.1.4 / GD FreeType / Linux
*solved* you will need to run a make clean, and then rebuild the whole src tree On 7/31/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, i am trying to compile freetype support for php 5.1.4, on linux ... looks like i have set all the compile options correct ... but some how freetype support does not get included. any pointers will be of great help! thanks, vedanta ## configure options # './configure' '--with-apxs2=/soa/srv/httpd/bin/apxs' '--prefix=/soa/srv/php514' '--with-config-file-path=/soa/srv/php514/conf' '--enable-soap' '--enable-exif' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/lib' '--enable-gd-native-ttf' '--with-ttf' '--with-freetype-dir=/usr/lib' -- snip -- configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers. configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none). checking for FreeType 1.x support... yes checking for FreeType 2... /usr/lib checking for FreeType 1 support... no - FreeType 2.x is to be used instead configure: warning: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none). configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none). -- snip -- ### ? print_r(gd_info()); ? Array ( [GD Version] = bundled (2.0.28 compatible) [FreeType Support] = [T1Lib Support] = [GIF Read Support] = 1 [GIF Create Support] = 1 [JPG Support] = 1 [PNG Support] = 1 [WBMP Support] = 1 [XPM Support] = [XBM Support] = 1 [JIS-mapped Japanese Font Support] = ) --
Re: [PHP] Re: php java intregration
hi, i have not tried it in linux, but the stuff worked for me in windows, here are my notes: * PHP 5.1.4 * PECL 5.1.4 (use php_java.dll and php_java.jar from the zip file, this is an extra download) here is my php.ini ; configuration to enable php_java.dll [Java] extension=php_java.dll java.class.path = C:\PHP\ext\php_java.jar java.home = C:\Java\jdk1.5.0_06 java.library = C:\Java\jdk1.5.0_06\jre\bin\server\jvm.dll java.library.path = C:\PHP\ext you will need to append more paths to java.class.path directive if you use any extra jars in you application. the extension works fine except its kinda slow on my server - i am yet to find out why... let me know if its any better for you. thanks, vedanta On 6/8/06, Lalit Khairnar [EMAIL PROTECTED] wrote: Hi Vedanta We re also trying to use Bridge for the same. but we are stucked while configuring the .jar file on WINDOWS could u please send us the procedure to do in perfect way We are using Xampp installer and php 5.1.1 ,apache , and jdk 1.5 please reply soon -- Lalit P.Khairnar V2Solutions A New Vision to Solution Cell:09969131384 India:+91-22-56733201 Ext:642 / 643 US:1-408-253-2838 http://www.v2solutions.com -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php java intregration
So i tried to install the java support using the info available at php.net/java but things here are still upset: here is my configure: './configure' '--with-apxs2=/home/vedanta/srv/httpd2/bin/apxs' '--with-config-file-path=/home/vedanta/srv/php5' '--prefix=/home/vedanta/srv/php5' '--with-java=/opt/sun-jdk-1.4.2.10' '--enable-java' the build and install is a success, there is nothing created, which is related to java, not even a directory named ext/java in the source tree exists. the pecl.php.net site has no package named java... finally i search the php-src cvs tree and whoa! - the php-src/ext/java/ java tree is empty - are the extns removed?? - http://cvs.php.net/viewcvs.cgi/php-src/ext/java/ after giving up the build yesterday on windows, i am not giving up today on linux. i am still kinda lost - and its getting frustrating. thanks, vedanta PHP - 5.1.4 ABI : Gentoo 2006.0 On 6/3/06, Vedanta Barooah [EMAIL PROTECTED] wrote: if i am not wrong the bridge is better if you are trying to put in php into a java app server. i do know to create the jar in linux i will try some other combinations and keep things posted. i am not able to find the jar, anywhere yet though :( - vedanta On 6/3/06, Jon Anderson [EMAIL PROTECTED] wrote: You could try something like PHP-Java bridge: http://php-java-bridge.sourceforge.net/ I've set it up for our server farm at work, but never used it myself. The developer who requested it seems quite fond of the extension, and performance seems to be excellent. jon Vedanta Barooah wrote: really no one? On 6/2/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, i am setting up php_java.dll extension under windows/iis, my php version is 5.1.2. can any one point me to the download location of php_java.jar which is needed for the setup. i searched all the sites/mirrors but its not available. do i have to compile from source to get that jar? ... let me know,... thanks - regards, vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php java intregration
the pecl snapshots have the dll php_java.dll, but does not have the jar php_java.jar which is also required? - vedanta On 6/3/06, Rabin Vincent [EMAIL PROTECTED] wrote: On 6/2/06, Vedanta Barooah [EMAIL PROTECTED] wrote: i am setting up php_java.dll extension under windows/iis, my php version is 5.1.2. can any one point me to the download location of php_java.jar which is needed for the setup. Download Collection of PECL modules for PHP from the Windows binaries section of php.net/downloads.php. This is mentioned in php.net/java. Rabin -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php java intregration
hello all, i am setting up php_java.dll extension under windows/iis, my php version is 5.1.2. can any one point me to the download location of php_java.jar which is needed for the setup. i searched all the sites/mirrors but its not available. do i have to compile from source to get that jar? ... let me know,... thanks - regards, vedanta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php java intregration
really no one? On 6/2/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, i am setting up php_java.dll extension under windows/iis, my php version is 5.1.2. can any one point me to the download location of php_java.jar which is needed for the setup. i searched all the sites/mirrors but its not available. do i have to compile from source to get that jar? ... let me know,... thanks - regards, vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php java intregration
it was not about windows! :) it was about php getting into IIS instead of than .net or java - vedanta On 6/3/06, tedd [EMAIL PROTECTED] wrote: really no one? On 6/2/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, i am setting up php_java.dll extension under windows/iis, my php version is 5.1.2. can any one point me to the download location of php_java.jar which is needed for the setup. i searched all the sites/mirrors but its not available. do i have to compile from source to get that jar? ... let me know,... thanks - regards, vedanta sorry, no windows here. tedd -- http://sperling.com http://ancientstones.com http://earthstones.com -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php java intregration
if i am not wrong the bridge is better if you are trying to put in php into a java app server. i do know to create the jar in linux i will try some other combinations and keep things posted. i am not able to find the jar, anywhere yet though :( - vedanta On 6/3/06, Jon Anderson [EMAIL PROTECTED] wrote: You could try something like PHP-Java bridge: http://php-java-bridge.sourceforge.net/ I've set it up for our server farm at work, but never used it myself. The developer who requested it seems quite fond of the extension, and performance seems to be excellent. jon Vedanta Barooah wrote: really no one? On 6/2/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, i am setting up php_java.dll extension under windows/iis, my php version is 5.1.2. can any one point me to the download location of php_java.jar which is needed for the setup. i searched all the sites/mirrors but its not available. do i have to compile from source to get that jar? ... let me know,... thanks - regards, vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Proxy Support
Hello Good People, I am not sure if the feature exists, but would not it be a good idea if the proxy configurations for php can be globally set - say for example in the php.ini , having a global proxy configuration will allow php scripts to access external resources from within a firewall . A good use case might be - I write a CMS that syndicates RSS feeds from the internet but is itself located in a intranet behind a http:// proxy... as of now, I manually do it in my code for every script - so it makes by job easier if there is a global config set up some where? Similarly, it would be also good to have proxy support for https, ftp, ... etc Any workarounds and suggestions are welcome :) Cheers! - vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP URL query
Try this : ?php $foo=$_GET['var']; echo ($foo); ? Refer: http://www.zend.com/zend/art/art-sweat4.php - Vedanta Barooah -Original Message- From: IraqiGeek [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 10:14 PM To: php-general@lists.php.net Subject: [PHP] PHP URL query Hi all, I'm somewhat new to php, though I have played a bit with the language. I'm currently learning the language, and I'm having a problem passing variables through URL query. Here is what I have: A simple HTML file that contains: A HREF=test.php?var=test Hi, this is a test! /A and a php file that contains: ?php echo( Welcome to our Web site, $var! ); ? However, when I click on the link on the HTML file, I dont get the value of $var passed to the php script. I have also tried passing multiple variables separated by , and none of those gets passed to the php script. The files are hosted on a local Debian etch server running apache 2.0.54 and php 4.3.10. Is there something I need to check/change in the config files of apache or php? Regards, IraqiGeek www.iraqigeek.com Boat: A hole in the water surrounded by wood into which one pours money. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Regarding your class: POP/IMAP to RSS
hi Niek! i was not actually handling multipart messages, good you pointed it out... the class does something for multipart messages as off now... atleast it trashes them off (check for the new version at the site) http://www.phpclasses.org/browse/package/2977.html well i am too lazy to decode multipart messages as off now, i might do it when i have some time... thanks, vedanta On 3/22/06, Niek van Baalen [EMAIL PROTECTED] wrote: Hi Vedanta, Good work. Just something I was waiting for. But I have the following problem. The body of a message did not show untill I added addslashes. $this-xml.=description.addslashes($message)./description; or do I have to use another function. I receive all kinds of newsletters that can contain all kind of bodytext, like HTML etc. I still get XML-parserrors with content like META NAME=GENERATOR CONTENT=\Claris Home Page 3.0\ because of = character. Do you know a solution? Greetings, Niek van Baalen Amsterdam - *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah
[PHP] Re: Class: Babelfish Translator
as far my knowledge goes, there any limits on that. thanks, vedanta On 2/1/06, Muhammad Wasif [EMAIL PROTECTED] wrote: Hi, I have found your babelFish translation at http://www.phpclasses.org/browse/package/2383.html. I want to know, how many requests i can send using this class? I mean altavista impose any restriction about number of hits per day/second per IP address or something like that? i thought you may be know something about this. thanx WASIF -- Yahoo! Messengerhttp://us.rd.yahoo.com/mail_us/taglines/mailmessenger/*http://communications.yahoo.com/productplus.php?page=372- Start an email from Y! Messenger, plus be alerted when new emails arrive. -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006
[PHP] Re: Class: Babelfish Translator
On 2/2/06, Vedanta Barooah [EMAIL PROTECTED] wrote: as far my knowledge goes, there arent any limits on that. thanks, vedanta On 2/1/06, Muhammad Wasif [EMAIL PROTECTED] wrote: Hi, I have found your babelFish translation at http://www.phpclasses.org/browse/package/2383.html . I want to know, how many requests i can send using this class? I mean altavista impose any restriction about number of hits per day/second per IP address or something like that? i thought you may be know something about this. thanx WASIF -- Yahoo! Messengerhttp://us.rd.yahoo.com/mail_us/taglines/mailmessenger/*http://communications.yahoo.com/productplus.php?page=372- Start an email from Y! Messenger, plus be alerted when new emails arrive. -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006
[PHP] Re: PHP SSH2
On 1/23/06, Vedanta Barooah [EMAIL PROTECTED] wrote: hello all, this is in regard to PECL ssh2 ( http://pecl.php.net/package/ssh2 ) : how to i print the output of the command executed using ssh2_exec? thanks, vedanta -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006
[PHP] PHP SSH2
hello all, this is in regard to PECL ssh2 ( http://pecl.php.net/package/ssh2 ) : how to i print the output of the command executed using ssh2_exec? thanks, vedanta
[PHP] Re: CascadeSelectAssoc
sure go ahead, just respect the GPL, thanks, vedanta barooah On 11/9/05, Thomas Preuss [EMAIL PROTECTED] wrote: Hello Vedanta, thanks for your nice php cascade menu class. Can we use this class in our projects? Roberto agreed on his part. Thanks, Thomas -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 24. Oktober 2005 22:51 An: Thomas Preuss Betreff: Re: CascadeSelectAssoc Hi Thomas: 2005/10/22, Thomas Preuss [EMAIL PROTECTED]: Hello Vedanta, hello Roberto, I found your php cascade menu class via phpclasses.org. It works very well. What is the licence for the class? Is it allowed to use the class in own projects? Best, Thomas I have no problem if you use it in any kind of project, so wait for Vedantas' opinion. Best, -- Roberto Andrade Fonseca Inteligentes.com, S.A. de C.V. Tel. 5207-1672/1673 -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP - LDAPS query
is it a wrong question? please help... On 9/12/05, Vedanta Barooah [EMAIL PROTECTED] wrote: Hello All, I think documentation is very sparse on PHP LDAPS (LDAP over SSL). I am in a situation where I need to auth against the LDAP server over SSL. I have the server's certificate database in the form of a cert7.db file containing the appropriate CA certificates and a key3.db file. How do I make use of these from PHP? Any clues/links to documentation will be of great help... Thanks, Vedanta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP - LDAPS query
Hello All, I think documentation is very sparse on PHP LDAPS (LDAP over SSL). I am in a situation where I need to auth against the LDAP server over SSL. I have the server's certificate database in the form of a cert7.db file containing the appropriate CA certificates and a key3.db file. How do I make use of these from PHP? Any clues/links to documentation will be of great help... Thanks, Vedanta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP page counter
there is one here : http://www.phpclasses.org/browse/package/2212.html see if it suffices your need, thanks, vedanta On 9/11/05, Michelle Konzack [EMAIL PROTECTED] wrote: G'Morning *, Does anyone know, where I can get a PHP-Code for a high performance page counter ? I need one, which can handle very high traffic (15.000 Hits/h) becase my own one sucks (locking). :-/ It can be text/plain or php-gd based. Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: access resources via a proxy
yeah! i gotta rewrite them... does anyone know of a rss-reader with similar features.. thanks, On 9/9/05, Raj Shekhar [EMAIL PROTECTED] wrote: in infinite wisdom Vedanta Barooah spoke thus On 09/09/2005 10:46 AM: what about existing apps... do i need to rewrite them :( if you want to ask if you will need to rewrite the scripts that fetch the data, then yes - I think you will need to rewrite them. I am not sure how these scripts are retrieving data currently, hence I cannot give a definite answer. You will not have to rewrite the scripts which are giving the data. -- Raj Shekhar blog : http://rajshekhar.net/blog home : http://rajshekhar.net Disclaimer : http://rajshekhar.net/disclaimer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Encrypt Files
define encrypt here...? or in a SSL connection your file is anyway encrypted, thanks, vedanta On 9/9/05, Shaun [EMAIL PROTECTED] wrote: Hi, Is it possible to encrypt files that are being uploaded via the move_uploaded_file() method? Thanks for your advice -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] access resources via a proxy
Hello all! Consider this... Web Server A belongs to an intranet and hosts sites internally, Server A can only access external web resources via proxy http://proxy:8080 . How does Server A access resources from Server B which is in the internet using PHP? A typical scenario: Server A needs to display news, which resides on Server B as RSS feeds. For this the PHP script hosted on Server A need to go via the proxy http://proxy:8088 then read the feed in Server B for it to display… how this can be achieved? Any clues please help!! Thanks, Vedanta
Re: [PHP] Re: access resources via a proxy
what about existing apps... do i need to rewrite them :( On 9/9/05, Raj Shekhar [EMAIL PROTECTED] wrote: in infinite wisdom Vedanta Barooah spoke thus On 09/08/2005 07:22 PM: A typical scenario: Server A needs to display news, which resides on Server B as RSS feeds. For this the PHP script hosted on Server A need to go via the proxy http://proxy:8088 then read the feed in Server B for it to display… how this can be achieved? Any clues please help!! http://pear.php.net/manual/en/package.http.http-request.proxy-auth.php -- Raj Shekhar blog : http://rajshekhar.net/blog home : http://rajshekhar.net Disclaimer : http://rajshekhar.net/disclaimer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006
Re: [PHP] Re: Sending post data from a script
here is an example that posts data to the altavista babelfish form using curl: http://www.phpclasses.org/browse/file/9812.html thanks, -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah On 8/6/05, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, on 08/05/2005 04:33 PM Paul Nowosielski said the following: I'm trying to setup a PHP script that will send a POST data request to a web form. The script needs to be automatic and not driven by a web form.. For example. I have a cron script that runs every 15 minutes. The cron script calls my php script on the server and sends the important data to a web based form without human interaction. The data has to be passed with the method=post. Sending the data via a URL request does not suffice. So my question in general is: How can I send HTTP POST data to a remote interface without using an HTML FORM?. You may want to take a look at this HTTP client class. Besides submitting POST form values, it also handles redirection and cookies if necessary. http://www.phpclasses.org/httpclient -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Skipping function arguments!
Hello All, Cosider this : function add($a=1,$b=2,$c=3){ return $a + $b + $c; } how do i skip the second argument while calling the function, is there a process like this: echo add(1,,1); # where i expect 2 to be printed, how do i xcheive this m totally lost ! :(( Thanks, Vedanta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Skipping function arguments!
Well that was simple, but this is what i am trying to solve: if you refer to the php documentation for ldap_open() function it says: resource ldap_search ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]) if you look at the 4th and the 6th arguments to the function attributes is an array while sizelimit is an int, i want to pass the sixth element without passing the 4th and the 5th ... how do i do that?? i tried these options: # this does not work, $rs=ldap_search($con,o=vodoo.com,(objectClass*),array(),0,500); # this wont works :(( $rs=ldap_search($con,o=vodoo.com,(objectClass*),' ',0,500); # this also goofs! $rs=ldap_search($con,o=vodoo.com,(objectClass*),NULL,0,500); here that 5th arg works if i pass a zero as ... 0 means the default behaviour!! any ideas ... clues ? Thanks, Vedanta Barooah On 4/28/05, Marek Kilimajer [EMAIL PROTECTED] wrote: Bostjan Skufca @ domenca.com wrote: function add ($a=1, $b=2, $c=3) { return $a + $b + $c; } add(1, null, 1); will do just fine returns 2, OP wants 4 IMO r., Bostjan On Thursday 28 April 2005 14:16, Marek Kilimajer wrote: Vedanta Barooah wrote: Hello All, Cosider this : function add($a=1,$b=2,$c=3){ return $a + $b + $c; } how do i skip the second argument while calling the function, is there a process like this: echo add(1,,1); # where i expect 2 to be printed, php does not support this. you can workaround this using: function add($a = null,$b = null, $c = null){ if(is_null($a)) $a = 1; if(is_null($b)) $b = 2; if(is_null($c)) $c = 3; return $a + $b + $c; } add(1, null, 1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Skipping function arguments!
btw! saying: add($a=null,$b=null,$c=null) is as good as saying: add($a,$b,$c) thanks, vedanta On 4/28/05, Vedanta Barooah [EMAIL PROTECTED] wrote: Well that was simple, but this is what i am trying to solve: if you refer to the php documentation for ldap_open() function it says: resource ldap_search ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]) if you look at the 4th and the 6th arguments to the function attributes is an array while sizelimit is an int, i want to pass the sixth element without passing the 4th and the 5th ... how do i do that?? i tried these options: # this does not work, $rs=ldap_search($con,o=vodoo.com,(objectClass*),array(),0,500); # this wont works :(( $rs=ldap_search($con,o=vodoo.com,(objectClass*),' ',0,500); # this also goofs! $rs=ldap_search($con,o=vodoo.com,(objectClass*),NULL,0,500); here that 5th arg works if i pass a zero as ... 0 means the default behaviour!! any ideas ... clues ? Thanks, Vedanta Barooah On 4/28/05, Marek Kilimajer [EMAIL PROTECTED] wrote: Bostjan Skufca @ domenca.com wrote: function add ($a=1, $b=2, $c=3) { return $a + $b + $c; } add(1, null, 1); will do just fine returns 2, OP wants 4 IMO r., Bostjan On Thursday 28 April 2005 14:16, Marek Kilimajer wrote: Vedanta Barooah wrote: Hello All, Cosider this : function add($a=1,$b=2,$c=3){ return $a + $b + $c; } how do i skip the second argument while calling the function, is there a process like this: echo add(1,,1); # where i expect 2 to be printed, php does not support this. you can workaround this using: function add($a = null,$b = null, $c = null){ if(is_null($a)) $a = 1; if(is_null($b)) $b = 2; if(is_null($c)) $c = 3; return $a + $b + $c; } add(1, null, 1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Skipping function arguments!
the code below was talking of function declarations ... reffer to the thread. will code injection in case of function declarations work? I am not sure!! ;) ?php function add($a,$b,$c){ return $a+$b+$c ; } echo add(2,null,3); # even if you pass the value of $b in the url as a get or post param... it wont work. ? thanks, vedanta On 4/28/05, Jason Barnett [EMAIL PROTECTED] wrote: Vedanta Barooah wrote: btw! saying: add($a=null,$b=null,$c=null) is as good as saying: add($a,$b,$c) No, it's not. Because in this case $a, $b and $c are all uninitialized variables and (if this is a function definition) then you *have* to supply $a $b and $c parameters. Even if you were just calling add() this wouldn't be wise. Consider the possibility that your server uses register_globals. In that case I can browse to: http://yoursite.com/yourpage.php?a=25b=20c=1234567890 Not to mention the code injection possibilities. thanks, vedanta On 4/28/05, Vedanta Barooah [EMAIL PROTECTED] wrote: Well that was simple, but this is what i am trying to solve: if you refer to the php documentation for ldap_open() function it says: resource ldap_search ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]) if you look at the 4th and the 6th arguments to the function attributes is an array while sizelimit is an int, i want to pass the sixth element without passing the 4th and the 5th ... how do i do that?? i tried these options: # this does not work, $rs=ldap_search($con,o=vodoo.com,(objectClass*),array(),0,500); $rs = ldap_search($con, o=vodoo.com, (objectClass*), null, null, 500); # this wont works :(( $rs=ldap_search($con,o=vodoo.com,(objectClass*),' ',0,500); # this also goofs! $rs=ldap_search($con,o=vodoo.com,(objectClass*),NULL,0,500); here that 5th arg works if i pass a zero as ... 0 means the default behaviour!! any ideas ... clues ? Thanks, Vedanta Barooah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- *~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~* Vedanta Barooah YM! - vedanta2006 Skype - vedanta2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php