[PHP] Crontabs
I want to set up a crontab using my hosts control panel, and when i go to set one up there are boxes for how frequently you want the task to run, and one labelled Command. Basically, I want to get a PHP script to run every set amount of time, so what do I have to type in the Command box to get a PHP script to run? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Perl inside PHP
See here: http://www.php.net/manual/en/function.virtual.php Chris Knipe [EMAIL PROTECTED] wrote in message news:064401c21654$310e4d40$[EMAIL PROTECTED]... Yeah, urgh, not exactly what I was hoping on, but I'll give executing perl a try... I want to stay as far away as possible from mod_perl (It's a long story)... I was maybe hoping there would have been some kind of perl extension... Maybe in a year or two - who knows what people may come up with. - Original Message - From: Al Baker [EMAIL PROTECTED] To: Chris Knipe [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 12:35 AM Subject: Re: [PHP] Perl inside PHP You can do system calls to perl scripts, and if apache is setup I believe you can do mod_perl and php in the same page. On Mon, 2002-06-17 at 18:43, Chris Knipe wrote: Can perl be executed inside PHP as part of the code? For example, can I load perl Modules via a PHP script, and execute functions and procedures that's written in Perl from PHP scripts? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This email was sent with Ximian Evolution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Crontabs
What do you mean by appropriate #! at the top? Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Matthew: On Tue, Jun 18, 2002 at 08:48:19PM +0100, Matthew Ward wrote: Basically, I want to get a PHP script to run every set amount of time, so what do I have to type in the Command box to get a PHP script to run? If your script has the appropriate #! at the top, you can type in the path and name of the script. Say, /usr/home/username/dir/script.php for example. Make sure the script has it's owner executable permission set (chmod 700, for example). --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How YaBB logs in
I'm currently integrating my site with YaBB so that when you log into my YaBB forums it also logs you into the whole site. I'm also developing a script that I'm integrating into my main page that checks the password in the cookie with the one in the database as a security check. The problem is, the crypted password stored in the database is seeded with the password itself, however the crypted password that the YaBB login script stores in the cookie is seeded with ys, producing two completely different passwords. So how am I (and how does YaBB) compare these two passwords to make sure their the same, if their completely different? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and mySQL
I presume that quantity is the number of books that the person has ordered, and therefore it needs to be a variable (ie with a $ infront of it) and its also best to do the calculation outside of the SQL statement just to be sure it works, eg: if ($submit){ if(isset($booktitle) isset($quantity)){ $retrievestock = mysql_query(SELECT stock FROM Book2 WHERE booktitle = '$booktitle'); while($getstock = mysql_fetch_array($retrievestock)) { $stockamount = $getstock[stock]; } $newamount = $stockamount - $quantity; $sql = mysql_query(UPDATE Book2 SET stock = '$newamount' WHERE booktitle= '$booktitle'); if(! $sql) { print(Could not update stock amount.); } elseif(! $submit) { print(Your order has not been placed.p); } City Colleges Of Chicago - Mannheim [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am a student working on a practicum problem. I have a mySQL database that contains the books, their title, and how many are in stock. When a person orders one of the books, I want the stock to be adjusted by how many, quantity, that they chose when the submit button is clicked. The scripts are written in PHP. Here is part of my code: PThe book you are ordering: ? echo $booktitle ; ? PAdditional Message:br textarea name=message cols=30 rows=3/textarea /p INPUT type=submit value=Send your order. input type=hidden name=booktitle value=? print $booktitle; ? /FORM ?php $user = adminer; $pass = hoosiers; $db = Book Store1; $local = jolinux; $link = mysql_connect( $local, $user, $pass ); if (! $link ) die ( Couldn't open the database ); mysql_select_db( $db, $link ) or die ( Couldn't open the $db: .mysql_error() ); if ($submit){ if( $booktitle, 'quantity' ){ $sql = UPDATE Book2 SET stock ='$stock-quantity' WHERE booktitle=$booktitle AND quantity=quantity; } // $result = mysql_query($mysql); }else if(!$submit){ echo Your order has not been placed.p; } ? /BODY /HTML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP file Opening Problem
It sounds like your just trying to open the file straight from your hard drive using IE. Unfortunately, PHP doesn't work like HTML files or JavaScript in that its not IE or any other web browser that makes PHP work. It is actually a server that works out all the PHP bits, puts it all in the right places in the HTML file and then sends it to your web browser which then works out how to display the HTML code and displays it. Therefore, to get your PHP files to work, you have to either upload them to a host server or install a server such as Apache with the PHP Module on to your computer. Vivek Kumar Agrawal [EMAIL PROTECTED] wrote in message 000a01c1fa63$9dedd3c0$0301a8c0@Anurag">news:000a01c1fa63$9dedd3c0$0301a8c0@Anurag... Hi Folks, Whenever I try to open any PHP page on my browser i.e. IE then it displays Windows message box for saving the file on the disk or opening the code in any editor. I mean PHP file is not executed successfully and I am unable to figure out the problem. Please help me. Thanx in advance. Regards, Vivek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Hosting ...
Instead of switching hosting companies, why don't you just install phpMyAdmin on your webspace, that way you can control your mySQL databases in a far more user-friendly way than SSH will let you do Tim Thorburn [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I've about had it with my current hosting company as they've turned off SSH for the past month due to security reasons which means I can no longer add/remove tables from my MySQL database. Looking at two other hosting companies - SBC Webhosting - www.webhosting.com and Verio - www.verio.com Does anyone here use either of these companies? If so, could you please let me know your opinions of each? Thanks -Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Search Engine With Boolean Support --Please help
This is a bit of a tricky one, as a search engine isn't just some 10 line code you can quickly type and expect to work. It'd be quite complex, because you have to run several queries for each of the boolean types, and you also have to account somehow for case-sensitivity. I'm currently working on a search engine to incorporate into my Content Management System (more info at http://www.inspirationstudios.co.uk/dot/cms) that incorporates all your requirements so I'll get back to you with some more coding info once I've worked on it there. Spamsucks86 [EMAIL PROTECTED] wrote in message 01c1f924$1b35bcd0$ea553944@cc1966780a">news:01c1f924$1b35bcd0$ea553944@cc1966780a... I don't want to use a module though. I just want to take what a person types and parse it so I can put it into a mysql query and search my database of data. I share the server and I can't get mnoGoSearch compiled in with PHP, so unless there's PHP code I can borrow from it, I don't think it will help me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail function
You can add further variables to the end of your current mail() function to specify the name of who its from, and the email address that they will send the message to when they use the reply function on their email program, like this: mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3, From:Your Name\nReply-To: [EMAIL PROTECTED]); Diana Castillo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, if I use the mail function, as in : mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); The mail comes from Webserver How can I change the from ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php