Re: [PHP] Little php code - error

2010-04-08 Thread Devendra Jadhav
Can you paste your code somewhere?

On Thu, Apr 8, 2010 at 7:51 PM, Juan j...@rodriguezmonti.com.ar wrote:

 Hi guys,
 I'm having trouble with the following little php code [0]. The output
 from the server is : 
 * Parse error: syntax error, unexpected '{' in file.php on line 27 *

 Let's assume that file.php is the file that is giving me some troubles.

 The structure is pretty easy to understand, however I'm not able to
 solve this. Could you tell me why I'm not able to run this code.

 I'm running PHP5, Apache2, and Ubuntu 9.10 with sqlite, as you could see.

 Thanks a lot,
 Juan

 [0] http://pastebin.com/xC4pFbfH

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




-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] How to know which PHP is used by Apache

2010-04-02 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 11:30 PM, Nilesh Govindarajan li...@itech7.comwrote:

 On 04/01/10 23:03, Kevin Kinsey wrote:

 Nilesh Govindarajan wrote:

 libphp5.so doesn't need the php binary.


 You're right, and of course not. libphp5.so
 *is* a PHP binary :-)

  I've confirmed this using a test.

 My local apache is configured to use libphp5.so

 I moved /usr/bin/php to /root, then started apache and ran drupal. It
 worked.

 This confirms that libphp5.so is independent of the php binary in
 /usr/bin as I suggested earlier.


 No one was questioning that .. or at least, I wasn't.
 One is an executable binary file ... a program.

 The other is also a binary file, but it's a _library_.

 What I said was you need one or the other. A binary
 file, either the Apache SO or the binary interpreter...

 It's possible to configure Apache to use a PHP executable
 (CGI), and the CGI and CLI executables are similar, if
 not identical.

 I dunno if anyone actually does that anymore, though. :-)

 Ashley said The libphp5.so is the Apache module that
 links PHP into Apache. You need this and PHP installed
 if you want to use PHP in Apache. Devendra apparently
 misinterpreted this to mean that you need both the SO and
 the binary interpreter, but you don't. You DO need the
 rest of the PHP extensions, libraries, config files, etc.
 ... a PHP installation, whether or not your have the
 CLI binary is not that important, although I always do
 since I like to run system scripts in PHP via cron, etc.

 Kevin Kinsey


 LOL. Super misunderstanding. Anyway, I did that test to help Devendra.


 --
 Nilesh Govindarajan
 Site  Server Administrator
 www.itech7.com
 मेरा भारत महान !
 मम भारत: महत्तम भवतु !

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


I think I am clear with everything now.. Good.. Thank you very much Nilesh,
kevin, Ashley  all.


-- 
Devendra Jadhav
देवेंद्र जाधव


[PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
Hi All,

In the situation if there are two PHP's installed on the Linux box.
How to know which PHP is used by Apache?

Another question is do Apache need PHP's binary to execute PHP Scripts? If
yes what is the role of libphp5.so in Apache?

Note: PHP is configured as module under Apache.

Appreciate your thoughts.

-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 6:59 PM, Ashley Sheridan 
a...@ashleysheridan.co.ukwrote:

  On Thu, 2010-04-01 at 19:00 +0530, Devendra Jadhav wrote:

 Hi All,

 In the situation if there are two PHP's installed on the Linux box.
 How to know which PHP is used by Apache?

 Another question is do Apache need PHP's binary to execute PHP Scripts? If
 yes what is the role of libphp5.so in Apache?

 Note: PHP is configured as module under Apache.

 Appreciate your thoughts.



 The libphp5.so is the Apache module that links PHP into Apache. You need
 this and PHP installed if you want to use PHP in Apache.

 The module itself indicates what version of PHP Apache will be using.

   Thanks,
 Ash
 http://www.ashleysheridan.co.uk



With my case both installation of PHP has version 5.x, so how to know which
PHP is being used?

-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschop teusjanne...@gmail.comwrote:

 On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote:
  With my case both installation of PHP has version 5.x, so how to know
 which
  PHP is being used?
 
 Running this page through Apache could do it:

 ?php
 phpinfo ();
 ?

 Teus.


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


I am still confused. As per Nilesh php's binary is not required and as per
Ashley it is required.
Which one is correct?
And I am not able to find which php's binary is used by using phpinfo().



-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 7:22 PM, Devendra Jadhav devendra...@gmail.comwrote:

 On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschop teusjanne...@gmail.comwrote:

 On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote:
  With my case both installation of PHP has version 5.x, so how to know
 which
  PHP is being used?
 
 Running this page through Apache could do it:

 ?php
 phpinfo ();
 ?

 Teus.


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


 I am still confused. As per Nilesh php's binary is not required and as per
 Ashley it is required.
 Which one is correct?
 And I am not able to find which php's binary is used by using phpinfo().




 --
 Devendra Jadhav
 देवेंद्र जाधव


Anyone confident about either of the two answers?


-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Devendra Jadhav
Hey..

Try creating soft link to the destination folder from doc root.
I haven't tried it but give it a try...


On Mon, Mar 29, 2010 at 1:00 AM, ebhakt i...@ebhakt.com wrote:

 Hi
 i am writing a web application in php
 this webapp primarily focuses on file uploads and downloads
 the uploaded files will be saved in a folder which is not in document root
 and my query is how will i be able to provide download to such files not
 located in document root via php


 --
 Bhaskar Tiwari
 GTSE Generalist
 Directory Services
 Microsoft

 
 All we have to decide is what to do with the time that has been given to us


 http://www.ebhakt.com/
 http://fytclub.net/
 http://ebhakt.info/




-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Devendra Jadhav
Then you can do file_get_contents within PHP. or any file handling
mechanism.


On Mon, Mar 29, 2010 at 11:49 AM, ebhakt i...@ebhakt.com wrote:

 No i don't want to create any soft links
 that primarily rejects all the benefits of putting a file outside of
 document root

 i want some solution similar to private file downloads provided by drupal'

 so that the php webserver provides the download and not apache
 in realtime



 On Mon, Mar 29, 2010 at 11:43 AM, Devendra Jadhav 
 devendra...@gmail.comwrote:

 Hey..

 Try creating soft link to the destination folder from doc root.
 I haven't tried it but give it a try...


 On Mon, Mar 29, 2010 at 1:00 AM, ebhakt i...@ebhakt.com wrote:

 Hi
 i am writing a web application in php
 this webapp primarily focuses on file uploads and downloads
 the uploaded files will be saved in a folder which is not in document
 root
 and my query is how will i be able to provide download to such files not
 located in document root via php


 --
 Bhaskar Tiwari
 GTSE Generalist
 Directory Services
 Microsoft

 
 All we have to decide is what to do with the time that has been given to
 us


 http://www.ebhakt.com/
 http://fytclub.net/
 http://ebhakt.info/




 --
 Devendra Jadhav
 देवेंद्र जाधव




 --
 Bhaskar Tiwari
 GTSE Generalist
 Directory Services
 Microsoft

 
 All we have to decide is what to do with the time that has been given to us


 http://www.ebhakt.com/
 http://fytclub.net/
 http://ebhakt.info/





-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] how to upload large file ( bigger than 1G) with PHP

2010-03-12 Thread Devendra Jadhav
Always prefer FTP for large file uploads.

On Fri, Mar 12, 2010 at 3:38 PM, Rene Veerman rene7...@gmail.com wrote:

 try http://jumploader.com/

 it's java+php, and free.


 On Fri, Mar 12, 2010 at 9:09 AM, 杜越 o...@gmail.com wrote:
  hello, guys,
 
  I have tried many ways and was told to use C or Perl. Perl is a stranger
 to
  me and I never use C in a project.
  Is there anybody would tell me how to make php interact with C/Perl and
 how
  to maintain sessions during the interacting time ?
 
  thanks in advance!
 

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




-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] Mail Function In PHP

2010-03-06 Thread Devendra Jadhav
You need SMTP Server for this..
Read bellow link to know more how to configure SMTP Server in PHP

http://email.about.com/od/emailprogrammingtips/qt/Configure_PHP_to_Use_a_Remote_SMTP_Server_for_Sending_Mail.htm
http://email.about.com/od/emailprogrammingtips/qt/Configure_PHP_to_Use_a_Remote_SMTP_Server_for_Sending_Mail.htm

On Sun, Mar 7, 2010 at 10:24 AM, Kannan kanna...@gmail.com wrote:

 Hello
   I am creating a application for our college using the
 php.In that i want to send mail to all who are all the list.

 For that i am just simply use the mail function in php without
 configuring any mail system in the system.But the mail didn't send.
 For sending the mails wat are requirements and if u have any tutorials
 send it to me?

 Thanks..










 --
 With regards,

 Kannan. R. P,
 Blog @: http://kannan4k.wordpress.com/

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




-- 
Devendra Jadhav
देवेंद्र जाधव


[PHP] JQuery issue

2010-02-12 Thread Devendra Jadhav
Hi All,

Sorry for asking question at wrong place.. (Please tell me where to as
questions about JQuery)
I am using JQuery Validate plugin.
I am validating form which contains two items Name  phone number
Phone number contains three text boxes.
Now the default behavior of JQuery Validate put error message in front of
text boxes. It is ok for Name but,
for phone number i have placed three text boxes in a row. So i want single
message for this after the third text box.
So i did following thing

var form = $(#frm_something)
form.validate({
submitHandler: function() {
alert(Valid date range!)
 },
groups: {
dateRange: phone1 phone2 phone3
},
errorPlacement: function(error, element) {
form.find(.error_container).append(error);
}
});

with above it is showing all errors in error_container span.
I want only date error should come in error_container everything else should
be as it is before (in-front of text boxes)

Please help..

-- 
Devendra Jadhav


Re: [PHP] JQuery issue

2010-02-12 Thread Devendra Jadhav
thank you all

On Fri, Feb 12, 2010 at 5:54 PM, Jay Blanchard jblanch...@pocket.comwrote:

 [snip]
 Sorry for asking question at wrong place.. (Please tell me where to as
 questions about JQuery)
 [/snip]

 Google is your friend

 http://docs.jquery.com/Discussion#Official_Forums




-- 
Devendra Jadhav
देवेंद्र जाधव


[PHP] weird xml tag

2010-01-14 Thread Devendra Jadhav
Hi All,

I am writing module to display recent Wordpress blog posts in drupal.
I am taking RSS feeds of blog. I am using simple xml library of PHP to parse
xml.
Now the problem is I get weird tag in XML.
dc:creatorJason Bourne/dc:creator
when i convert this xml into object by using simplexml_load_string I am not
getting dc:creator in the object as dc:creator is not valid variable name.
can someone tell me how to access it?
appreciate your help



-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] weird xml tag

2010-01-14 Thread Devendra Jadhav
Hi Ashley,
Thank you very much for your help.
simplexml handles namespace.
here is the link for reference
http://www.sitepoint.com/blogs/2005/10/20/simplexml-and-namespaces/
I am very happy.
Thank you very much again. :D

On Thu, Jan 14, 2010 at 6:06 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:

  On Thu, 2010-01-14 at 18:00 +0530, Devendra Jadhav wrote:

 Hi All,

 I am writing module to display recent Wordpress blog posts in drupal.
 I am taking RSS feeds of blog. I am using simple xml library of PHP to parse
 xml.
 Now the problem is I get weird tag in XML.
 dc:creatorJason Bourne/dc:creator
 when i convert this xml into object by using simplexml_load_string I am not
 getting dc:creator in the object as dc:creator is not valid variable name.
 can someone tell me how to access it?
 appreciate your help





 It's not a weird XML tag, it's a namespace. The tag is creator and it's
 within the dc namespace. I've not used simplexml before, but I believe it
 handles namespaces.

   Thanks,
 Ash
 http://www.ashleysheridan.co.uk





-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] Open source project management tool - PHP

2009-12-17 Thread Devendra Jadhav
Mantis for bug tracking...

On Thu, Dec 17, 2009 at 3:54 PM, Angelo Zanetti ang...@elemental.co.zawrote:

 Hi guys

 I would like to know what open source project management tools you use for
 your projects.

 We are looking at installing one that is PHP based and is easy to use.

 We have found:

 http://www.projectpier.org/

 and

 http://trac.edgewall.org/


 Has anyone used the above and how did you find them? Also are there any
 others you would recommend or not recommend and why?

 Thanks in advance.

 Regards
 Angelo

 http://www.wapit.co.za
 http://www.elemental.co.za




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




-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] PHP httpd debug question

2009-11-17 Thread Devendra Jadhav
Hi,
I am not getting what are you asking but if you want to run two httpd then
you have to run those on different ports.
For this you can change Listen 80 to Listen 2020 from httpd.conf file.
So that one server will run on 80 and other will run on 2020.
you can change 2020 to whatever port you want .. but check if that port is
not already assigned to some other application.


On Tue, Nov 17, 2009 at 5:35 AM, John Beaulaurier -X (jbeaulau - Advanced
Network Info at Cisco) jbeau...@cisco.com wrote:

 Hello,



 phpMyAdmin crashes when access is attempted each time, and I need to run
 an httpd backtrace. I have a question though.



 There is another httpd instance running on the same host. If I run httpd
 -X will it interfere with the other httpd process running, or will

 it be a separate process?



 Thanks

 -John




-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] Connect to LDAP

2009-11-08 Thread Devendra Jadhav
Yes. Correct

On Mon, Nov 9, 2009 at 7:30 AM, Ashley M. Kirchner ash...@pcraft.comwrote:


   Hi folks,

   I've never done any PHP-LDAP code writing (nor have I ever dealt with an
 LDAP server to begin with.)  However I'm writing an app which requires
 verifying a user's credentials against an LDAP server.  The admin of the
 server sent me the following snippet, however also made it clear that he is
 not 100% whether it's accurate (he's not a PHP coder).  And I don't have
 remote access to the server (the app is going to sit on the internal network
 and the LDAP server doesn't accept outside connections.)

   So, asking the wise folks on here, does the following piece look
 semantically correct?

/* Check against LDAP server */
$adServer = server.address.hidden;
$ldapconn = ldap_connect($adServer) or die(Connection to the AD
 server failed.);
$ldapuser = $_POST[uname];
$ldappass = $_POST[pword];
$ldapbind = ldap_bind($ldapconn, $ldapuser, $ldappass);

if ($ldapbind) {
  $msg = User Authenticated Successfully!;
  $_SESSION['username'] = $ldapuser;
  $_SESSION['password'] = $ldappass;
  return true;
} else {
  $msg = Invalid username / password;
  return false;
}

   Thanks.

   -- A

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




-- 
Devendra Jadhav
देवेंद्र जाधव


Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
You are including file from external server and you are accessing it via
HTTP protocol. So it will include the output of
http://200.200.1.1/Folder/Config.php and the output of that script is
nothing.

If you want to see the output just put
http://200.200.1.1/Folder/Config.phpin browser and check.

btw what exactly you want to achieve by including external config file?

On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com wrote:

 Question is wrt to including a config file on an external server in a
 local include

 Lets say that on 127.0.0.1 I have test.php with

 include http://200.200.1.1/Folder/Config.php

 $obj = new RemoteClass()

 do stuff


 and on server 200.200.1.1 I have my Config.php file which is contains
 the class RemoteClass() { echo test }



 If I try to test it locally it says it cannot find RemoteClass ...


 How can I include/require a config (or any other php classes file) on
 my local running php script ?

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




-- 
Devendra Jadhav


Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
Check if 
allow_url_fopenhttp://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopenis
set in php.ini otherwise you have to set it true by ini_set()

On Tue, Nov 3, 2009 at 2:44 PM, Cemal Eker cemale...@gmail.com wrote:

 Including security warning from php.net/

 Remote file may be processed at the remote server (depending on the
 file extension and the fact if the remote server runs PHP or not) but
 it still has to produce a valid PHP script because it will be
 processed at the local server. If the file from the remote server
 should be processed there and outputted only, readfile() is much
 better function to use. Otherwise, special care should be taken to
 secure the remote script to produce a valid and desired code.

 Deos the file produce a valid PHP script? Please make a HTTP request
 and post output here. You should get valid PHP file.

 If not you should fix the problem with two possible solutions.

 By disabling PHP script execution on remote server. This could be
 impossible if remote server runs an active PHP server.

 Or by editing file to produce a valid PHP script. For example:
 echo class RemoteClass() { echo test }
 would produce a valid PHP script.


 Cemal Eker




 On Tue, Nov 3, 2009 at 10:35 AM, Anton Heuschen anto...@gmail.com wrote:
  Question is wrt to including a config file on an external server in a
  local include
 
  Lets say that on 127.0.0.1 I have test.php with
 
  include http://200.200.1.1/Folder/Config.php
 
  $obj = new RemoteClass()
 
  do stuff
 
 
  and on server 200.200.1.1 I have my Config.php file which is contains
  the class RemoteClass() { echo test }
 
 
 
  If I try to test it locally it says it cannot find RemoteClass ...
 
 
  How can I include/require a config (or any other php classes file) on
  my local running php script ?
 
  --
  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




-- 
Devendra Jadhav


Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
You can you NFS to mount remote file system on your local system.

On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen anto...@gmail.com wrote:

 Yes your right ... realizing it ... the config file is a class I use
 to connect to my Database  I want to store this config on myt
 hosting and then I can link to it and use it at my office, or at my PC
 at home

 But I now realize including the php ...will just return a blank page
  so its not like doing a include(/config.php) when its local 

 Anyway to do this ?



 2009/11/3 Devendra Jadhav devendra...@gmail.com:
  You are including file from external server and you are accessing it via
  HTTP protocol. So it will include the output of
  http://200.200.1.1/Folder/Config.php and the output of that script is
  nothing.
 
  If you want to see the output just put
 http://200.200.1.1/Folder/Config.php
  in browser and check.
 
  btw what exactly you want to achieve by including external config file?
 
  On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com
 wrote:
 
  Question is wrt to including a config file on an external server in a
  local include
 
  Lets say that on 127.0.0.1 I have test.php with
 
  include http://200.200.1.1/Folder/Config.php
 
  $obj = new RemoteClass()
 
  do stuff
 
 
  and on server 200.200.1.1 I have my Config.php file which is contains
  the class RemoteClass() { echo test }
 
 
 
  If I try to test it locally it says it cannot find RemoteClass ...
 
 
  How can I include/require a config (or any other php classes file) on
  my local running php script ?
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 
 
  --
  Devendra Jadhav
 




-- 
Devendra Jadhav


Re: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Devendra Jadhav
No idea about NFS on windows. But you can mount samba share in XP

On Tue, Nov 3, 2009 at 3:09 PM, Anton Heuschen anto...@gmail.com wrote:

 Hmmm yes thats another way of doing it ... Im running a Ubuntu box
 ..so its quite possible (how will you mount if your on XP?)



 2009/11/3 Devendra Jadhav devendra...@gmail.com:
  You can you NFS to mount remote file system on your local system.
 
  On Tue, Nov 3, 2009 at 2:50 PM, Anton Heuschen anto...@gmail.com
 wrote:
 
  Yes your right ... realizing it ... the config file is a class I use
  to connect to my Database  I want to store this config on myt
  hosting and then I can link to it and use it at my office, or at my PC
  at home
 
  But I now realize including the php ...will just return a blank page
   so its not like doing a include(/config.php) when its local 
 
  Anyway to do this ?
 
 
 
  2009/11/3 Devendra Jadhav devendra...@gmail.com:
   You are including file from external server and you are accessing it
 via
   HTTP protocol. So it will include the output of
   http://200.200.1.1/Folder/Config.php and the output of that script is
   nothing.
  
   If you want to see the output just put
   http://200.200.1.1/Folder/Config.php
   in browser and check.
  
   btw what exactly you want to achieve by including external config
 file?
  
   On Tue, Nov 3, 2009 at 2:05 PM, Anton Heuschen anto...@gmail.com
   wrote:
  
   Question is wrt to including a config file on an external server in a
   local include
  
   Lets say that on 127.0.0.1 I have test.php with
  
   include http://200.200.1.1/Folder/Config.php
  
   $obj = new RemoteClass()
  
   do stuff
  
  
   and on server 200.200.1.1 I have my Config.php file which is contains
   the class RemoteClass() { echo test }
  
  
  
   If I try to test it locally it says it cannot find RemoteClass ...
  
  
   How can I include/require a config (or any other php classes file) on
   my local running php script ?
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
  
  
   --
   Devendra Jadhav
  
 
 
 
  --
  Devendra Jadhav
 




-- 
Devendra Jadhav


[PHP] Active Directory LDAP Help

2009-10-06 Thread Devendra Jadhav
Hi All,

I am new to LDAP.
I want to create user on AD(Active Directory)
I have written script to do same, but I am getting Operations error
even I am successfully connected to AD and bounded with correct username,
password.
Also where will I get all attributes with its meanign... which attributes
are compulsory... different types of objects like users, groups,
organizational units and their attributes ...
where will i get all this information?

Help appreciated.
Thank you.

-- 
Devendra Jadhav


Re: [PHP] Active Directory LDAP Help

2009-10-06 Thread Devendra Jadhav
The existing Infrastructure is ready. and now at this point of time this is
difficult to switch to the Linux based. I love linux but helpless now ...
There is not so much information available on php.net

On Tue, Oct 6, 2009 at 6:15 PM, Yves Premel-Cabic xavier.pre...@eds.muwrote:

 Why don't you use linux solutions like RedHat Directory Server or Mandriva
 Directory Server instead? (LDAP based too)
 These solutions are scalable, free  fully documented on the web, not like
 this shitty MS AD (but is there a non-shitty MS product :p)

 This is also much more easier to debugg... (linux...)


 Devendra Jadhav wrote:

 Hi All,

 I am new to LDAP.
 I want to create user on AD(Active Directory)
 I have written script to do same, but I am getting Operations error
 even I am successfully connected to AD and bounded with correct username,
 password.
 Also where will I get all attributes with its meanign... which attributes
 are compulsory... different types of objects like users, groups,
 organizational units and their attributes ...
 where will i get all this information?

 Help appreciated.
 Thank you.







-- 
Devendra Jadhav


Re: [PHP] mysql user session handler

2009-09-08 Thread Devendra Jadhav
http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/


On Tue, Sep 8, 2009 at 10:53 PM, Tom Worster f...@thefsb.org wrote:

 questions for those of you with a user session handler using mysql:

 did you write your own handler, write one based off some other you found
 (if
 so, which?), or are you using some available library (if so, which?)?

 and how do you feel about your implementation? satisfied? or are there
 improvements you'd like to have?

 and what serializer do you use?

 i have my own set of handler functions (less than 70 loc) which seem to
 work
 in simple testing. but, while i'd really like to have the sessions in the
 db
 for redundancy, i haven't had the courage to deploy it yet. i derived the
 code from something i found on the web. i trust everything i read on the
 internet ;-)

 -tom




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




-- 
Devendra Jadhav


[PHP] Re: [PHP-WIN] Re: [PHP] Problem outputting MySQL Date field

2009-08-31 Thread Devendra Jadhav
At the beginning of the code add following lines
error_reporting(E_ALL);
ini_set('display_error',1);


On Sat, Aug 29, 2009 at 8:28 AM, Keith Davis keithda...@pridedallas.comwrote:

 But how are you getting the data from the db?

 Does $rowqry represent a call using the mysql_fetch_array() function?


 Sent from my magic iPhone,
 Keith Davis 214-906-5183


 On Aug 28, 2009, at 7:39 PM, John Meyer johnme...@pueblocomputing.com
 wrote:

  Devendra Jadhav wrote:

 No need to do anything special. It should display date as string. Can you
 provide little more information or code snippet?

 $tweettable .=
 preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', 'a
 href=$1$1/a',$row[TWEET_TEXT]) . br . Sent at:  .
 $rowqry[TWEET_CREATEDAT];
  $tweettable .= brSent Using:  . $row[TWEET_CREATEDBY] .
 /td/tr;

 And I checked the database.  The date is there.

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


 This message (including any attachments) may contain confidential or
 otherwise privileged information and is intended only for the individual(s)
 to which it is addressed. If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail. Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and delete
 this e-mail from your system. E-mail transmission cannot be guaranteed to be
 secured or error-free as information could be intercepted, corrupted, lost,
 destroyed, arrive late or incomplete, or contain viruses. The sender
 therefore does not accept liability for any errors or omissions in the
 contents of this message or that arise as a result of e-mail transmission.
 If verification is required please request a hard-copy version from the
 sender.

 www.pridedallas.com




-- 
Devendra Jadhav


Re: [PHP] link to a css file requires .css ???

2009-08-17 Thread Devendra Jadhav
Just use following .htaccess rewrite rule
RewriteRule ^some.css$ some.php
and this is the perfect solution.


On Mon, Aug 17, 2009 at 3:14 AM, Adam Shannon a...@ashannon.us wrote:

 On Sun, Aug 16, 2009 at 4:37 PM, Daniel Kolbo kolb0...@umn.edu wrote:

  Hello,
 
  I realize this is more of an html question than a php, but I was hoping
  someone here would know what's going on.
 
  I am linking to a stylesheet and it is requiring me to use *.css
  extension. I want to use a .php extension (and have the php engine
  generate css). However, whenever i use a .php extension the link tag
  does not seem to work.
 
  This works!
  link rel=stylesheet type=text/css
  href=http://localhost:8080/some.css; /
 
  This doesn't work but I don't understand why not???
  link rel=stylesheet type=text/css
  href=http://localhost:8080/some.php; /
 
  The page http://localhost:8080/some.php displays the css exactly the
  same as http://localhost:8080/some.css
 
  Why can't I link to a css file by using a different extension?
 
  Thanks in advance,
  dK
  `
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 Oh, I think it's part of the spec. You could always use .htaccess rules to
 parse .css files as .php, this will keep search engines happy and browsers
 happy as well.

 --
 - Adam Shannon ( http://ashannon.us )




-- 
Devendra Jadhav


[PHP] Issue with the huge import script

2009-08-15 Thread Devendra Jadhav
Hi,

I have to import data from one database to another, I have to import around
10(1Lac) records.
First I need to check if the record is already imported or not and import
only those records which are not imported.

Here is my logic

$already_imported = get_already_imported_records();
format of the $already_imported is $already_imported[someid] = 'imported';

Now i take all records from another db and iterating through it.

if (!key_exists($already_imported[$new_id])){
import_function($new_id)
}else{
echo 'allready imported'.$already_imported[$new_id];
}

Now my script is importing same records for more than one time. I am not
able to get through this issue

Is it because of the size of the records or something else...?

Please suggest me some solution which is faster, safe and easy to code :D

Thanks in advance

-- 
Devendra Jadhav


Re: [PHP] Sending email w/ attachments

2009-08-11 Thread Devendra Jadhav
Check out this link http://www.learnphp-tutorial.com/Email.cfm

On Tue, Aug 11, 2009 at 8:52 AM, Skip Evans s...@bigskypenguin.com wrote:

 Bastien Koert wrote:


 Use PHPMailer or one of the other classes available...makes life
 so much easier


 eric cartman
Kick Ass!!!
 /eric cartman

 Yes! Wow! Was that a breeze! That class rocks!

 Thanks tons, Bastien!

 I have to admit when I first saw your reply I thought, Oh, man, another
 class to learn? But I know this is so close to working.

 I look at the sample and thought, This looks easy, and had it working in
 no time.

 Big thanks again!

 Attachments were a big deal here and this makes it a breeze, AND it looks
 like multiple attachments would be no problem?

 Very cool!


 Skip

 --
 
 Skip Evans
 Big Sky Penguin, LLC
 503 S Baldwin St, #1
 Madison WI 53703
 608.250.2720
 http://bigskypenguin.com
 
 Those of you who believe in
 telekinesis, raise my hand.
  -- Kurt Vonnegut

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




-- 
Devendra Jadhav


Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-21 Thread Devendra Jadhav
Yes. You are right. Session variables are associated with the session id so
only that appropriate website's session variables will get destroyed.
You can try it in your local system.

On Wed, Jul 22, 2009 at 12:42 AM, Guruprasad lgp171...@gmail.com wrote:

 Hi all,
 I have a doubt with creating and destroying sessions in PHP using
 session_destroy(). Supposing there is a PHP-based website hosted on a web
 server. Now I add another site that I developed using PHP on that web server
 using virtualhost. I destroy a session in my website using session_destroy()
 which will destroy all the session variables associated with my website.

 What will happen if I have the other website in another tab with similar
 session variable names? Will the session variables of that website be
 destroyed too? Or will the session variables be associated with the session
 id so that only the appropriate website's session variables will get
 destroyed?

 Thanks in advance.

 Regards,
 Guruprasad

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




-- 
Devendra Jadhav


Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-21 Thread Devendra Jadhav
By default sub-domains do not share sessions but you can make them to share
the session

On Wed, Jul 22, 2009 at 1:54 AM, L.Guruprasad lgp171...@gmail.com wrote:

 Hi,
 Floyd Resler wrote:

 Keep in mind that sessions are based on the domain.  I've run into
 situations where someone will be working in several different sites that we
 host.  Each site is accessed via http://domain/site.  Each site has it's
 own database, users, etc.  However, because they all hang off the same
 domain, they get one session.  That can really mess things up for the users
 as they go from site to site.  I got around this by using MySQL-based
 sessions.  It keeps things nice and separated.

 Take care,
 Floyd


 Will this be causing issues when http://1.a.b and http://2.a.b are the two
 PHP sites running on the same web server using virtualhosts?

 Regards,
 Guruprasad




-- 
Devendra Jadhav