Barter Zone
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralBarter Zone

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 22nd, 2006, 05:24 AM
why2k why2k is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Johannesburg, Gauteng, South Africa
Posts: 3 why2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A free project - I need help with

Here is my progect!

I have a page that gets queried by a remote server and then prints a response that is determined by a message.
Here is what the server sends to my page:
www.my-spot.co.za/sms.php?message=GIGS AKM&from=27834190862

The "message" has a pre defined set of responses. and "from" is a number that needs to be stored in a .txt file

Here is the script: (BTW it works fine!)

<?php
$usermsg = strtoupper( $_GET["message"] );
$phonenumber = $_GET["from"];

$response = "";
switch( $usermsg ) {
case "GIGS AKM" : $response = "The next AKM gig is Thunder Road Rock Diner cnr Tenth Ave and Florida Road Dbn on Friday 17 November Unplugged free entrance. Supplied by www.get-mine.co.za";
break;
case "GIGS WC" : $response = "BATTLE OF THE BANDS NATIONAL FINALS, 19 november at EMPERORS PALACE Jhb. Supplied by www.get-mine.co.za";
break;
case "GIGS Mea" : $response = "This is the Mea gig guide. Mea's next gig is at Burn, Durban - Fri 17th Nov";
break;
case "GIGS Cubic" : $response = "This is the Cubic Inch gig guide. This will be updated in the next few days please try again soon";
break;
case "GIGS C22" : $response = "Sunday 26th Nov Barts Tavern, Strand 3 – 7pm, December: 1st Geko Bar Hermanus 10pm onwards, 3rd Dec Barts Tavern, Strand 3 – 7pm, 6th Dec Barts Tavern, 8:30pm";
break;
case "GIGS 33" : $response = "This is the response for the band 33";
break;
default : $response = "ERROR INVALID KEYWORD PLEASE CHECK YOUR SPELLING OR TRY AGAIN! Please report errors to 0834190862";
break;
}

/* Now we just want to write a log of what was requested by whom, and record the date and time */
$timestamp = date("Y-m-d H:i:s");
$myFile = "sms_request_log.txt";
$fh = fopen($myFile, 'a');
$stringData = "$timestamp, $usermsg, $phonenumbern";
fwrite($fh, $stringData);
fclose($fh);

echo $response;
?>

Now what I want to do is make a data base that I can keep all the responses in.

Also I want to make a page that will input data into the database.

Now this whole script is governed by keywords EG: "GIGS AKM"

I want people to be able to add a keyword with the prefix of GIGS and be able to update thier responses.

This is an information service that I offer to bands in South Africa for free. It is a text service, a person sends a message eg "GIGS AKM" to the number 34110 and then the sms server queries my page and then sends the sms server takes the response and sends it to the phone.

Can you guys help make the code for this project?? I'm too new to PHP to tackle it by my self.

Why2k


Reply With Quote
  #2  
Old November 24th, 2006, 10:49 PM
lig's Avatar
lig lig is offline
"Forum Nazi"
Click here for more information.
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,775 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 13 h 44 m 21 sec
Reputation Power: 7
RE: A php challenge

Are you looking for someone to code it for you?

Reply With Quote
  #3  
Old November 27th, 2006, 05:04 AM
why2k why2k is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Johannesburg, Gauteng, South Africa
Posts: 3 why2k User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: A free project - I need help with

Yeah I am looking for somebody to code it for me.

I am not clever enough to do it myself.

Also I will need a login and password system for it too.

I am busy learning php but I have just started so this project is way to tough for me to handle!


Thanks for the reply and I hope that somebody will take time to help me!

Why2k

Reply With Quote
  #4  
Old November 27th, 2006, 06:13 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Message Moved

Thread moved from 'PHP Coding' to 'Barter Zone' by lig.

Reason:

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralBarter Zone > A php challenge


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek