[PHP] RM file - play time
Can I get the information about paly time of the RM file by PHP? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: create and read array
Yeah, thanks. Good idea! It is good to code that: $authors = array(); while ($authors[] = mysql_fetch_assoc($news)); Chris Martin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Alexander Kleshchevnikov wrote: Maybe you want this: while ($data = mysql_fetch_assoc($news)) { $sql += INSERT INTO newtable VALUES ($data['AUS'], $data['id']);\r\n; } If you nevertheless want save the data in array you can use a two-dimensional array $authors: $authors = array(); while ($data = mysql_fetch_assoc($news)) { $authors[] = array('AUS' = $data['AUS'], 'id' = $data[id]); } .. foreach ($author in $authors) { $sql += INSERT INTO newtable VALUES ($author['AUS'], $author['id']);\r\n; } -- Seigo www.geocities.com/seigo_ua/ Just a note to help the learning process. Either mysql_fetch_assoc() and mysql_fetch_array() will return your result in an array, so you don't need to actually create one. -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Evaluating form posts
You should chech for configuration of magic quotes gpc. Use get_magic_quotes_gpc() function: $foo = get_magic_quotes_gpc() ? stripslashes($_POST[foo]) : $_POST[foo]) ; Do it with all GET and POST variables. -- Alexander. Php Mailing List Account [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everyone, I had an apache server running with php 5. Now I installed unix on that pc and apache and php 5. I am using some forms on web pages and get their values by writing $foo = $_POST[foo]; Since I 'upgraded' to unix i am getting a double backslash for each backslash entered on the form and '\' for every ''. Could someone please tell me what's going on? Did I miss a part of the FAQ? (The form looks like form method=post input type=text / input type=submit name=action value=submit / /form ) Thank you in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I don't understand why !!!!
http://www.php.net/manual/ru/faq.databases.php#faq.databases.mysql.php5 --- Alexander Kleshchevnikov, DirectEDI Developer email:[EMAIL PROTECTED] icq: 153617972 --- Nicolae Serban [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just install the PHP 5 ! This is the code ?php $link=mysql_connect(localhost,root,1234); mysql_close($link); ? and this is the error messege WHY !!! Fatal error: Call to undefined function mysql_connect() in C:\Apache\Apache2\htdocs\ttt.php on line 3 Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: how to redirect ?
Hey! I think you used header() after put out some data or php installed on server as CGI. Because send header possible only if php installed as apache module. You can use custom function which use javascript for redirection. But it works if browser of client support javascript: function redirect(path) { echo 'script type=text/javascriptwindow.location='.path.'/script'; exit(); } -- Cbharadwaj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I have used Header (Location:PATH) function for redirection. it is giving some errors. is there any other method other than HEADER() funtion for redirecting ? Bharadwaj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: how to redirect ?
Hey! I think you used header() after put out some data or php installed on server as CGI. Because send header possible only if php installed as apache module. You can use custom function which use javascript for redirection. But it works if browser of client support javascript: function redirect(path) { echo 'script type=text/javascriptwindow.location='.path.'/script'; exit(); } -- Cbharadwaj [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I have used Header (Location:PATH) function for redirection. it is giving some errors. is there any other method other than HEADER() funtion for redirecting ? Bharadwaj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: create and read array
Maybe you want this: while ($data = mysql_fetch_assoc($news)) { $sql += INSERT INTO newtable VALUES ($data['AUS'], $data['id']);\r\n; } If you nevertheless want save the data in array you can use a two-dimensional array $authors: $authors = array(); while ($data = mysql_fetch_assoc($news)) { $authors[] = array('AUS' = $data['AUS'], 'id' = $data[id]); } .. foreach ($author in $authors) { $sql += INSERT INTO newtable VALUES ($author['AUS'], $author['id']);\r\n; } -- Seigo www.geocities.com/seigo_ua/ John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone help me, show me how to do this please? 1. How do I write $mydata-AUS and $mydata-id into an array? $authors = array(); while ($mydata = mysql_fetch_object($news)) { # echo $mydata-AUS, $mydata-id\n; ??? write to array } mysql_close($myconnection); 2. Then I need to create $SQL foreach ($authors as something) { $sql += INSERT INTO newtable VALUES ($AUS, $id);\r\n; } I am reading http://ca3.php.net/manual/en/language.types.array.php but don't really get it. Can I do $sql += blah; or do I have to write $sql = $sql + blah;? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Java?
On 04 ??? 2000, you wrote in php.general: I note that the documentation for PHP 4.0 says that Java is supported; I haven't been able to find any documentation on how it is supported. Can someone point me to something? Hugh -- Hugh Caley, Lumeria, Inc. Lead Systems Engineer [EMAIL PROTECTED] Testing ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php