[PHP-DB] how can I execute bash file by using exec or system
hello, I try to execute bash script file by using following script exec('/path/test.sh'); this test.sh file includes the Global Mapping Tools script and create map.ps file taht is the epicenter distribution file of the earthquakes. I have obtain epicenters.csv file by using PHP-MYSQL relation $query = "SELECT Date , Time , Mag , Lat , Lon , Depth INTO OUTFILE '$filename' FIELDS TERMINATED BY ',' FROM list WHERE Mag >0"; than after I try to draw epicenter distribution map by using test.sh file.All this can easily run on the console but by using php I could not execute test.sh file. I also use system('/path/test.sh'); But also this could not run bash file. Are there any people to solve my problem. Thanks all. Murat __ XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to: [EMAIL PROTECTED] __ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Xmas countdown code help! (includes displaying images)
try if (daysRound=<0) { bastien From: JeRRy <[EMAIL PROTECTED]> To: php-db@lists.php.net Subject: [PHP-DB] Xmas countdown code help! (includes displaying images) Date: Thu, 22 Dec 2005 19:26:47 +1100 (EST) Hi, I have created a little Christmas countdown on the site using PHP and mySQL. The database controls the images displayed. But to make it simplier as I know the problem does not reflect my db setup or talking to the db I've re-wrote the code into a JavaScript code. So it's easier to read. The problem is the days to Christmas and images displayed display absolutely fine. But when there is 0 days to Christmas the NEW YEAR image does not display. :( But the countdown ones do. Here is the code: *I have commented areas with //* You can see the code working at http://www.getpaid2reademails.com/ Ignore the PHPSESSID. Also it currently only records time left from your personal clock on your PC. How would I go about getting the server time instead? But of course this would not be ideal for everyone in different countries but I wondered an easy way to do it. Thanks for your time. Jerry Send instant messages to your online friends http://au.messenger.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PHP website authentication / shadow file?
I want my PHP script authentication to be based on my system username/password sets. My box is an email server also therefore I wanted my users to use the same username/password that they use checking their emails. Maybe I can have my PHP script check against my shadow file? Or maybe a totally separate C program that i can do popen and pass on parameters? Any suggestions? Is there an easy way to do this in PHP that I am not aware of?
Re: [PHP-DB] Scrolling News
Hi, just to tell you scrolling text boxes are javascript, PHP is server side not client side, PHP can only get the data from the table and javascript will display it On 12/22/05, Alex Major <[EMAIL PROTECTED]> wrote: > > Hi there. > I'm trying to make a scrolling news box for my website. Basically I would > like this news box to get information from a column in my database called > 'news_title' and display it in a scrolling news box. > The reason I'd like it to do this is because there is already a news page > on > my website, which stores 'news_date' , 'news_poster' , 'news_title' , > 'news_description' , 'news_content' in a table on my database. I'd just > like > to increase the functionality of this by having this news box on my front > page, which scrolls the 'news_title'. > > Any suggestions for how to go about doing this? I'm still very new to php. > > Regards, > Alex. > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!
Re: [PHP-DB] Scrolling News
Sounds great, I'll start looking for a scroller on google. Anyone have any recommendations while I'm searching? Regards, Alex On 22/12/05 21:22, "John Meyer" <[EMAIL PROTECTED]> wrote: > On Thursday 22 December 2005 1:38 pm, Alex Major wrote: >> Hi there. >> I'm trying to make a scrolling news box for my website. Basically I would >> like this news box to get information from a column in my database called >> 'news_title' and display it in a scrolling news box. >> The reason I'd like it to do this is because there is already a news page >> on my website, which stores 'news_date' , 'news_poster' , 'news_title' , >> 'news_description' , 'news_content' in a table on my database. I'd just >> like to increase the functionality of this by having this news box on my >> front page, which scrolls the 'news_title'. >> >> Any suggestions for how to go about doing this? I'm still very new to php. >> >> Regards, >> Alex. > > > If you're thinking about a scroller (which is what I think you're hinting at), > you'll need to combine javascript and PHP. Essentially this is how I'd go > about it: > > 1. Find a scrolling news box written in Javascript. > 2. Where the static content is, rewrite it so that PHP writes out the > Javascript. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Scrolling News
On Thursday 22 December 2005 1:38 pm, Alex Major wrote: > Hi there. > I'm trying to make a scrolling news box for my website. Basically I would > like this news box to get information from a column in my database called > 'news_title' and display it in a scrolling news box. > The reason I'd like it to do this is because there is already a news page > on my website, which stores 'news_date' , 'news_poster' , 'news_title' , > 'news_description' , 'news_content' in a table on my database. I'd just > like to increase the functionality of this by having this news box on my > front page, which scrolls the 'news_title'. > > Any suggestions for how to go about doing this? I'm still very new to php. > > Regards, > Alex. If you're thinking about a scroller (which is what I think you're hinting at), you'll need to combine javascript and PHP. Essentially this is how I'd go about it: 1. Find a scrolling news box written in Javascript. 2. Where the static content is, rewrite it so that PHP writes out the Javascript. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Scrolling News
Hi there. I'm trying to make a scrolling news box for my website. Basically I would like this news box to get information from a column in my database called 'news_title' and display it in a scrolling news box. The reason I'd like it to do this is because there is already a news page on my website, which stores 'news_date' , 'news_poster' , 'news_title' , 'news_description' , 'news_content' in a table on my database. I'd just like to increase the functionality of this by having this news box on my front page, which scrolls the 'news_title'. Any suggestions for how to go about doing this? I'm still very new to php. Regards, Alex. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Dynamic Navigation Bar
javascript Bastien From: [EMAIL PROTECTED] To: php-db@lists.php.net Subject: RE: [PHP-DB] Dynamic Navigation Bar Date: Thu, 22 Dec 2005 09:38:01 -0600 Thanks for the quick response, Bastien. I was thinking that using hidden fields may be another way to go. But how would I assign a value to a form variable via clicking on a link? >No, you could try keeping that data in sessions or in hidded form fields in >the page...note that the latter requires that you do a page submit with the >onclick of the link / button > >Bastien >>From: [EMAIL PROTECTED] >>To: php-db@lists.php.net >>Subject: [PHP-DB] Dynamic Navigation Bar >>Date: Thu, 22 Dec 2005 09:27:33 -0600 >> >>Results from full-text searches on a documents database are returning >>sometimes 300-400 hits, so I'm gonna need to implement a dynamic navigation >>bar. Perhaps this a stupid question, but it seems from a brief googling >>that navigation bars - dynamic or not - operate by appending variables and >>values to the URL within the link, which are then grabbed >>from the $_GET array. Can someone shed some light on whether this the only >>method used? >> >> And, yes, I know that there is a Pear package that does this, but I'm >>more >>inclined to implement my own at present. >> >>Thanks very much. >> >>David -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Dynamic Navigation Bar
Thanks for the quick response, Bastien. I was thinking that using hidden fields may be another way to go. But how would I assign a value to a form variable via clicking on a link? >No, you could try keeping that data in sessions or in hidded form fields in >the page...note that the latter requires that you do a page submit with the >onclick of the link / button > >Bastien >>From: [EMAIL PROTECTED] >>To: php-db@lists.php.net >>Subject: [PHP-DB] Dynamic Navigation Bar >>Date: Thu, 22 Dec 2005 09:27:33 -0600 >> >>Results from full-text searches on a documents database are returning >>sometimes 300-400 hits, so I'm gonna need to implement a dynamic navigation >>bar. Perhaps this a stupid question, but it seems from a brief googling >>that navigation bars - dynamic or not - operate by appending variables and >>values to the URL within the link, which are then grabbed >>from the $_GET array. Can someone shed some light on whether this the only >>method used? >> >> And, yes, I know that there is a Pear package that does this, but I'm >>more >>inclined to implement my own at present. >> >>Thanks very much. >> >>David -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Dynamic Navigation Bar
No, you could try keeping that data in sessions or in hidded form fields in the page...note that the latter requires that you do a page submit with the onclick of the link / button Bastien From: [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Dynamic Navigation Bar Date: Thu, 22 Dec 2005 09:27:33 -0600 Results from full-text searches on a documents database are returning sometimes 300-400 hits, so I'm gonna need to implement a dynamic navigation bar. Perhaps this a stupid question, but it seems from a brief googling that navigation bars - dynamic or not - operate by appending variables and values to the URL within the link, which are then grabbed from the $_GET array. Can someone shed some light on whether this the only method used? And, yes, I know that there is a Pear package that does this, but I'm more inclined to implement my own at present. Thanks very much. David -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Dynamic Navigation Bar
Results from full-text searches on a documents database are returning sometimes 300-400 hits, so I'm gonna need to implement a dynamic navigation bar. Perhaps this a stupid question, but it seems from a brief googling that navigation bars - dynamic or not - operate by appending variables and values to the URL within the link, which are then grabbed from the $_GET array. Can someone shed some light on whether this the only method used? And, yes, I know that there is a Pear package that does this, but I'm more inclined to implement my own at present. Thanks very much. David -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: CLOSE button or link
At 07:18 22/12/2005, you wrote: From: "Ron Piggott (PHP)" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: PHP DB Content-Type: text/plain Date: Thu, 22 Dec 2005 02:22:00 -0500 Message-Id: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: CLOSE button or link What I really want to have happen is for the CLOSE WINDOW button to appear when this is loaded as a pop up window from our online_offering_basket.html file and if the web page is loaded directly then the link to our Online Offering Basket appear for the user to get back into our web site. Do you know how to do this? Yes, and this is a client side javascript problem unless you create the popup page using a PHP script. AFAIK from your file paths, it's HTML so PHP (and indeed, DB "databases", the subject of this discussion group) don't apply here. You need to run a short snippet of javascript to determine if there's a "window.opener" object : That will point back (and have a .location.href property) of the opening page. I'd check for if (window.opener != null) { // (Probably) sent here from the online_offering_basket.html page // Check that though to prevent spoofing :if (window.opener.location.href.indexOf('online_offering_basket.html' != -1) { document.write('onclick="self.close()">Close Window');} else {document.write('href="http://www.actsministrieschristianevangelism.org";>Back To Site');} } else { // Linked directly from the how_we_operate_our_benevolent_fund.html pagedocument.write('href="http://www.actsministrieschristianevangelism.org";>Back To Site');}-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: CLOSE button or link
Ron Piggott (PHP) wrote: I am building a Christian ministry web site. One of the things we are establishing is an online offering basket to receive donations. One of our disbursements is a benevolent fund to help others. I have a 'how we operate our benevolent fund' web page online at http://www.actsministrieschristianevangelism.org/financial/how_we_operate_our_benevolent_fund.html I also have this file set to load from our online offering basket web page at http://www.actsministrieschristianevangelism.org/financial/online_offering_basket.html as a pop up window by clicking a submit button. What I really want to have happen is for the CLOSE WINDOW button to appear when this is loaded as a pop up window from our online_offering_basket.html file and if the web page is loaded directly then the link to our Online Offering Basket appear for the user to get back into our web site. Do you know how to do this? Ron Close -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Xmas countdown code help! (includes displaying images)
Hi, I have created a little Christmas countdown on the site using PHP and mySQL. The database controls the images displayed. But to make it simplier as I know the problem does not reflect my db setup or talking to the db I've re-wrote the code into a JavaScript code. So it's easier to read. The problem is the days to Christmas and images displayed display absolutely fine. But when there is 0 days to Christmas the NEW YEAR image does not display. :( But the countdown ones do. Here is the code: *I have commented areas with //* You can see the code working at http://www.getpaid2reademails.com/ Ignore the PHPSESSID. Also it currently only records time left from your personal clock on your PC. How would I go about getting the server time instead? But of course this would not be ideal for everyone in different countries but I wondered an easy way to do it. Thanks for your time. Jerry Send instant messages to your online friends http://au.messenger.yahoo.com