Re: [PHP] Problem with the passthru function

2006-06-14 Thread Venkatesh Babu
Hi, Thanks for your response safe_mode is Off but still I'm getting this problem. Thank you, Venkatesh --- Rabin Vincent <[EMAIL PROTECTED]> wrote: > On 6/14/06, Venkatesh Babu <[EMAIL PROTECTED]> > wrote: > > I have a small php file (test.php) wh

[PHP] Problem with the passthru function

2006-06-14 Thread Venkatesh Babu
Hello All, I have a small php file (test.php) whose code is shown below: This test.php works fine when I execute from command prompt as "php test.php", but when I access it through web browser, it seems not to be working fine, I get an exit status of 127 (which means command not found). I check

[PHP] mysql table row updation based on user input.

2005-09-18 Thread babu
0; $i < $ncols; $i++ ) { print "$row[$i]"; } print ""; } print "\n"; $tdate=date("d.m.y"); echo "Date*:";echo "(DD.MM.YY)"; echo ""; $ttime=$ttime = date("H:i:s"); echo "Tim

Re: [PHP] whats wrong in this program.

2005-09-14 Thread babu
end using array functions instead (also, it is exceedingly easy to sort the elements of an array... see the end). I believe this will do what you are trying to do: //Tokenizer for Babu $str = '10,12,14-18'; $commas = explode(',', $str); // $commas will be an array of three items

[PHP] whats wrong in this program.

2005-09-13 Thread babu
$str=10,12,14-18; $tok = strtok($str, ','); while ($tok !== false) { $toks[] = $tok; $tok = strtok(','); } foreach ($toks as $token){ if (strpos($token,'-')){ stringtokenize($token); }else{ $finaltokens[]= $token; } } function stringtokenize($nstr){ $ntok1= strtok($nstr,'-');

[PHP] string tokenization

2005-09-13 Thread babu
the main string is seperated by comma and some of the substrings(tokes) are seperated by hypen. can some one give me an idea how to implement in php. Thanks babu. - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

[PHP] date and time conversion

2005-09-11 Thread babu
Hi, how to convert DD.MM.YYand HH:MM:SS into mysql date( '-MM-DD' ) and time format. I think the time is same as HH:MM:SS. Are there any php built in functions , or need to convert them using regular expressions. thanks babu ---

[PHP] regular expression for integer range

2005-09-06 Thread babu
. thanks babu. - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos

[PHP] regular expression for time

2005-08-29 Thread babu
HI, how can i write regular expression for time in 24-hour format i:e, HH:MM:SS. using preg_match. thanks babu - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos

[PHP] sorry for asking here,a small apache query

2005-08-06 Thread babu
/dir1/xyz.html , if the user try to access http://localhost, or http://localhost/dir1 he shud get a message forbidden. Thanks babu. - To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

[PHP] which is the correct method for "select" statement for oci8 functions

2005-07-27 Thread babu
how to get the email address into a simple string variable from above select statement using oci8 functions and mssql functions. Thanks babu - How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos. Get Yahoo! Photos

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
; >i think i can use require_once(file2.php) in file3.php and get the values.But >i want to get the values selected by user from html form. > >Thanks for the help. >babu > > >- >Yahoo! Messenger NEW - crystal clear PC to PCcalling worldw

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
It will become a big mess up for me if i combine all the files as they are large files. Matt Darby <[EMAIL PROTECTED]> wrote: babu wrote: >I am using header method for redirecting to another php file.I also want to >pass some variables to the redirected file. > >for exam

[PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
help. babu - Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail

Re: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread babu
Thanks for the help mike and parker, I have used ob_start and ob_end_flush methods, and its working fine. i got good idea of redirecting now. Mikey <[EMAIL PROTECTED]> wrote: babu wrote: >Hi parker, >can you please tell me how to use java script or html redirect, i mea

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread babu
Hi parker, can you please tell me how to use java script or html redirect, i mean a sample. thanks "Chris W. Parker" <[EMAIL PROTECTED]> wrote: babu on Wednesday, July 20, 2005 10:15 AM said: > 1."Is there any other alternative to this method." Javascript o

[PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread babu
hp documentation for header method. where there is one user comment about this. i have followed his steps like removing blank lines, using exit method. But the 3rd point that is "HTML goes before any PHP code ", i could not follow it , can some one pl

Re: [PHP] sytax errors

2005-07-19 Thread babu
Hi, Its giving the line number. But actually i want to know the correct syntax for concatenation. I think all there is some mistake in all the three concatination statements. so could some one check and give some idea. thanks John Nichel <[EMAIL PROTECTED]> wrote: babu wrote

[PHP] sytax errors

2005-07-18 Thread babu
".$adduser; $sql=mssql_query($sqlstmt); $sql1=mssql_query($sqlstmt1); $sql2=mssql_query($sqlstmt2); thanks babu - Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail

[PHP] How to run .sql files using php

2005-07-13 Thread babu
Hi , i have a set of queries which i have placed them in one .sql file.i want to run this file using php's mssql and oracle(oci) functions. any idea pls. thanks. babu - How much free photo storage do you get? Store your holiday snaps for

[PHP] parsing a text file into columns and rows

2005-07-12 Thread babu
Hi all, i have a text file as shown below, which contains records like varaiable, value pairs seperated by '=' .there are many such records, each record is starts with first variable 'SUBSTRATNAME'. SUBSTRATNAME=S112 <-- PIXEL=5 OPERATOR=Zi KOMMENTAR=dunkel DATUM=03.01.2005 UHRZEIT=11:22 MESSUNG

[PHP] Re: how to delete lines in a txt file using php.

2005-07-12 Thread babu
hi sokolewicz, i get this error, wehn i try to run the file Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in C:\apachefriends\xampp\htdocs\fmf\IV-test-files\200501t\dirread2.php on line 21 "M. Sokolewicz" <[EMAIL PROTECTED]> wrote: babu

RE: [PHP] how to delete lines in a txt file using php.

2005-07-12 Thread babu
f ($handle)) { $buffer = fgets($handle, 8192); if (substr($buffer,0,1)!=='[' && substr($buffer,0,3)!=='TYP'){ $hf = fopen($target, 'a'); fwrite($hf, $buffer); fclose($hf); } } fclose ($handle); That should do the trick. George > -Original Message---

[PHP] how to delete lines in a txt file using php.

2005-07-11 Thread babu
Hi i have a txt file like [SUBSTRAT] TYP=25x25_10 SUBSTRATNAME=S112 PIXEL=5 OPERATOR=Zi KOMMENTAR=dunkel INTENSITAET=1000.00 [MESSUNG] DATUM=03.01.2005 UHRZEIT=11:22 MESSUNG=SWEEP_UI i want to delete lines which start with '[' and 'TYP'. i have multiple such files.i have used strstr method.

Re: [PHP] searching for files in a directory with a specific structure.

2005-07-11 Thread babu
wrote: babu wrote: > I have a directory which has thousands of files based on date. > for example > mmdd-number(auto increment).txt > 20050101-0001.txt,20050101-0002.txt20050101-0210.txt > 20050102-0001.txt,20050102-0002.txt..

[PHP] searching for files in a directory with a specific structure.

2005-07-11 Thread babu
files, but i want to extract data from the files with the above format. I have seen in the php documentation for reading a directory,but not files with a specific structure.i could not able to write the correct regular expression for the filename match. can some one give an idea. thanks babu

[PHP] searching for files in a directory.

2005-07-11 Thread babu
files, but i want to extract data from the files with the above format. I have seen in the php documentation for reading a directory,but not files with a specific structure. can some one give an idea. thanks babu. - Yahoo! Messenger NEW

[PHP] database querying form in php

2005-04-13 Thread babu
to know how it implemented. can some one please point to some examples or so. Thanks babu Send instant messages to your online friends http://uk.messenger.yahoo.com

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread babu
Hi chris, i am using mssql and php, so i trying to get the query result when the user enters the query and submits the execute button. i want to differentiate the syntactically correct query and the incorrect query with differ colors. here i am posting my code if (-1 == $connection)

Re: [PHP] change the font color of a string variable in PHP

2005-03-18 Thread babu
Chris Ramsay <[EMAIL PROTECTED]> wrote:On Fri, 18 Mar 2005 09:42:13 + (GMT), babu wrote: > Hi all i am newbie, > > I have a php code like this > > > foreach($_SESSION['history'] as $item) { > $item = str_replace(";","",$item); &

[PHP] change the font color of a string variable in PHP

2005-03-18 Thread babu
Hi all i am newbie, I have a php code like this $item"; //echo "$item"; }//foreach ?> I want to set the color of the srting in $item. Are there any PHP functions available. Thanks babu. Send instant messages to your online friends http://uk.messenger.yahoo.com

[PHP] PHP any Mysql connection- new b

2005-01-08 Thread babu
the previous thread.that is adding libmysql.dll to system32 and so on. I cannot find php_mysql.dll in php.ini. can some one help Thanks babu - ALL-NEW Yahoo! Messenger - all new features - even more fun!