[PHP] include_path problem in executing program from root folder

2004-06-21 Thread Sharat Hegde
Hello, One of my PHP programs called dailybatch.php3 includes a file in its parent directory. The link is include "../db_mysql.inc" dailybatch.php3 is invoked from the crontab command or run from the command line in the root /www folder, gives an error indicating that "../db_mysql.inc

[PHP] Communication between PHP Server code and HTML/JavaScript client without refreshing the page

2003-07-04 Thread Sharat Hegde
Hello, How do I communicate betwen an HTML page having JavaScript and a PHP server code without having to refresh the HTML page. I was originally thinking of having an invisible applet communicating to the server, but I am not sure how this is done. I am also considering XML and SOAP, but I am no

RE: [PHP] Java Applet to PHP Communication

2003-07-02 Thread Sharat Hegde
Thanks Justin, Do you have any leads on where I can get info on accessing XML data using SOAP from a Java Applet. I know how to parse XML data. Regards, Sharat Hegde Phone: 6575800 Ext 4610 Direct: 6566615 -Original Message- From: justin gruenberg [mailto:[EMAIL PROTECTED] Sent

[PHP] Java Applet to PHP Communication

2003-07-02 Thread Sharat Hegde
Hello, I need to be able to communicate from a Java Applet to a PHP program on the server to enable "Live Connect" for data. This is what I intend to do: In my web application, a Java Script program will call a Java Applet which then calls the PHP program on the server. The PHP program works like

Re: [PHP] PHP in crontab job

2002-10-11 Thread Sharat Hegde
path. Thanks again, Sharat >From: "John S. Huggins" <[EMAIL PROTECTED]> >To: Sharat Hegde <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [PHP] PHP in crontab job >Date: Fri, 11 Oct 2002 15:35:41 + (UTC) > >On Fri, 11 Oct 2002, Sharat Hegde

[PHP] PHP in crontab job

2002-10-11 Thread Sharat Hegde
Hello, I am having a problem at my ISP relating to execution of PHP commands from the crontab command. My ISP told me to have a look at the following URL, but despite following these instructions, the crontab job is not being executed. http://www.htmlcenter.com/tutorials/tutorials.cfm/155/PHP/

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Regards, Sharat >From: Rasmus Lerdorf <[EMAIL PROTECTED]> >To: Sharat Hegde <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], <[EMAIL PROTECTED]> >Subject: Re: [PHP] Regular Expression Problem continues >Date: Thu, 28 Mar 2002 11:40:41 -0800 (PST) > >In your config

[PHP] Getting just the filename

2002-03-28 Thread Sharat Hegde
Hello, Is there a simple way of getting just the filename from strings which give the filename along with the path. For example, I need "test.txt" from "c:\myfiles\test.txt" It should also work with the / character, in other words, give "test.txt" from "/htdocs/myfiles/test.txt" With Regards,

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
.byronholidays.com/inikatest/testereg.php To check the PHP version on the server, you can run http://www.byronholidays.com/inikatest/checkenv.php3 Regards, Sharat >From: Miguel Cruz <[EMAIL PROTECTED]> >To: Sharat Hegde <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re:

Re: [PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Rasmus, The code worked fine in PHP Version 3.x It does not work with PHP Version 4.1.1. That is where I have a problem. With Regards, Sharat >From: Rasmus Lerdorf <[EMAIL PROTECTED]> >To: Sharat Hegde <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [PHP] Re

[PHP] Regular Expression Problem continues

2002-03-28 Thread Sharat Hegde
Hello, I am still having problems with the regular expressions. Looks like there has been a change in the way they are handled between PHP3 and PHP4, since the code worked with PHP3 !! I need to search for all words having alphanumberic characters as well as _ (underscore) which are prefixed

[PHP] Regular Expression Problem

2002-03-22 Thread Sharat Hegde
Hello, In PHP3, I am using code which using the regular expression capability of PHP. The code matches all occurences of string prefixed by __ (2 underscores) and having alphanumeric characters as well as _ (1 underscore) within it. The code is as follows: while (eregi("__([a-z0-9_]+)__", $E

RE: [PHP] File Upload Form

2001-11-14 Thread Sharat Hegde
Hello, I found the solution to my problem here it is. Adding the following line in the HTML seems to make the PHP code work well with the Upload Form. Don't know why but, I guess this makes the document HTML compliant. Regards, Sharat -Original Message- From: Sharat

[PHP] File Upload Form

2001-11-13 Thread Sharat Hegde
Hello, The PHP manual provides a method for File Upload. The sample code is as follows: Send this file: While this works when this is part of an HTML page, it strangely does not work when it is part of a PHP3 file. I found this to be problem with my PHP page after some struggle. Any reaso

RE: [PHP] Save to Desktop

2001-11-12 Thread Sharat Hegde
Hi Matt, Thanks. That was very useful and it worked like a gem! Three cheers to HTTP headers. Where do you get a simplified version of the HTTP Header documentation - The W3C specs do not look like interesting reading. Regards, Sharat Hegde Phone: 6560360 Ext 4680 -Original Message

[PHP] Save to Desktop

2001-11-11 Thread Sharat Hegde
Hello, I need to capture the contents of a Form into a text file format and automatically allow the user to Save the file to his desktop. Here is what I am intending to do: * Capture the form contents and save to a temporary file. This works fine. * Provide some method of the user automatically

[PHP] Parsing a CSV file

2001-10-03 Thread Sharat Hegde
Hello, I am trying to parse a CSV (comma separated file) file to get the separate elements. The format of each line of the file is as follows: R001,23,"2,5" Note that the 3rd field "2,5" is enclosed within quotes as it has commas within the field itself. This is a standard file created when an

[PHP] Adding elements to an array

2001-07-17 Thread Sharat Hegde
ing PHP 3 and array_merge and other functions for arrays are not supported in PHP3. I am trying the following: $MyArray[] = array("BUYVAL" => "1.23"); but if I try and get the value of $MyArray[BUYVAL], I get nothing. I am sure this must be simple, but I do not seem to be

[PHP] Problem with Excel

2001-06-28 Thread Sharat Hegde
Hello, I have a web site on a Unix environment running PHP 3.0 and MySQL. I need to convert data in an Excel format to a MySQL database format periodically based on the input feed received in Excel format. the conversion to MySQL is not a problem at all. What I need help is to read data from an

[PHP] Interfacing with Excel

2001-06-28 Thread Sharat Hegde
an Excel 2000 format. How do I retrieve data from Excel 2000? The data is basically a 2 columnar data with currency names and conversion values. Thanks in advance. Regards, Sharat Hegde Phone: 6560360 Ext 4680 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Using Templates and replace tags to create dynamic content

2001-04-06 Thread Sharat Hegde
Hello, I am trying to create the subject text of an email message which needs to be sent to a user. The text will have some tags which need to be replaced with the appropriate values. Does anyone have some code / PHP class which they can share which would do the following: Template will be of th

[PHP] Validation Email in PHP programs

2001-04-03 Thread Sharat Hegde
suggest a method using ereg or otherwise to validate the email address in a PHP program? Regards, Sharat Hegde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail