[PHP] Re: [PHP-DB] Restaurant menu

2006-07-21 Thread kartikay malhotra
Hey Craig, Place all items whatever way you want in a table. Its while presenting the menu, you have the query the database like: $query = SELECT menu_id, menu_category, menu_item FROM $menu_name ORDER BY $menu_item_attribute ASC; You can choose multiple tables for menu_category, in which

Re: [PHP] login problem

2006-06-26 Thread kartikay malhotra
account in my database.I am facing one problem.Suppose i am setting a flag fot that login user.suddenly if there is any power shutdown or user forgot to logout.then the flag always be set.In MySQL is there any query is available for automatic update.I am waiting for ur reponse A.suresh *kartikay

Re: [PHP] login problem

2006-06-24 Thread kartikay malhotra
strange problem, but very similar to links in linux. you must be maintaining a database or a record file. u can maintain all links ('users' as u put it) for a given user. if a user logs in through any of his accounts, check if he/she is logged in another A/C and stop this one. else, allow log-in

[PHP] Mail in Spam Box

2006-06-18 Thread kartikay malhotra
Hi all! I've use PHP mail to send mail to my Gmail ID. But it gets delivered to my Spam box and not the Inbox :( Am I missing a header, signature, certificate? Thanks KM

Re: [PHP] Re: Mail in Spam Box - its working now

2006-06-18 Thread kartikay malhotra
genuine yahoo addresses are allowed, but not fake ones. Pls tell me how does gmail know if the address from some remote domain is genuine and not fake? After all, everything else is same. Thanks Community KM On 6/19/06, Manuel Lemos [EMAIL PROTECTED] wrote: on 06/18/2006 12:29 PM kartikay malhotra

Fwd: [PHP] Re: Mail in Spam Box - my code

2006-06-18 Thread kartikay malhotra
PROTECTED] wrote: on 06/18/2006 12:29 PM kartikay malhotra said the following: I've use PHP mail to send mail to my Gmail ID. But it gets delivered to my Spam box and not the Inbox :( Am I missing a header, signature, certificate? Maybe if you show how you are composing the message you

Fwd: [PHP] Automatic email sending

2006-06-16 Thread kartikay malhotra
u can use PHP as an offline scripting language. it gives u the power of PHP without the web interface. see tutorial on that. make a PHP and run it in the background by appending . Or add it to /etc/rc.d/rc.local/ and run it automatically from system startup onwards KM On 6/16/06, Murtaza

Re: [PHP] File downloads

2006-06-08 Thread kartikay malhotra
KM On 6/7/06, tedd [EMAIL PROTECTED] wrote: At 8:42 AM + 6/7/06, kartikay malhotra wrote: Dear All, I have a HTTP server + MySQL database. Everytime a file is requested for download, my PHP script loads the content from the database into a temporary file (on the server). I then pass

[PHP] server sending notifications to clients

2006-06-08 Thread kartikay malhotra
Hi All, Is there a way for the server to notify the client about an event, provided the client was online in the past X minutes? To elaborate: A client comes online. A script PHP executes (serves the client), and terminates. Now if a new event occurs, how can the server notify the client about

Re: [PHP] server sending notifications to clients

2006-06-08 Thread kartikay malhotra
Zey [EMAIL PROTECTED] wrote: Barry wrote: Angelo Zanetti schrieb: kartikay malhotra wrote: Hi All, Is there a way for the server to notify the client about an event, provided the client was online in the past X minutes? To elaborate: A client comes online. A script PHP executes (serves

[PHP] File downloads

2006-06-07 Thread kartikay malhotra
Dear All, I have a HTTP server + MySQL database. Everytime a file is requested for download, my PHP script loads the content from the database into a temporary file (on the server). I then pass a URL to the client, with a link to this file. The client can thus download the file at any time.

[PHP] HTTP HEADERS

2006-06-02 Thread kartikay malhotra
Hi all! I use HTTP POST to upload a file. I've a PHP script running on the server. Are HTTP headers passed with this request? How can I see the headers passed to the server? Thanks KM

Re: [PHP] $_FILES doesn't work but $_POST works

2006-05-31 Thread kartikay malhotra
? $save = $_POST['userfile']; $f=fopen($out,'a'); copy($save, $out); Nothing is copied. Opened file is empty. Pls suggest KM On 5/31/06, Rabin Vincent [EMAIL PROTECTED] wrote: On 5/31/06, kartikay malhotra [EMAIL PROTECTED] wrote: However, with Mbuni MMS Gateway (which provides HTTP POST

[PHP] $_FILES doesn't work but $_POST works

2006-05-30 Thread kartikay malhotra
Hi All, I'm using Mbuni MMS gateway, which provides me the facility to upload .mms files. Now with my little exposure to PHP, to upload files (say from the browser), I use $_POST, namely: if($_FILES['userfile']['size'] 0) { $fileName = $_FILES['userfile']['name']; $tmpName =

[PHP] MMS Gateway + PHP

2006-05-29 Thread kartikay malhotra
Hi All, I've a typical problem. I'm using Mbuni MMS gateway. This gateaway provides a method of forwarding an incoming MMS file to a HTTP Server, where it could be uploaded. I run a PHP script on the server, to dump the MMS into a database. Now I do not have a typical HTML form to upload the