Jump to content

twofivethreetwo

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

twofivethreetwo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Alright, thanks for the info. I'll check phpinfo tomorrow when I get back to the office.
  2. Are those available in php on most hosts? I doubt this client wants to pay for the extension for this as it is just something they would like to do, nothing major for them.
  3. I have a client who wants to serve up text ads based on a persons state. Basically things like 'Free Shipping To $yourstate' type of thing. I know you can get the state from the IP address, but exactly how would I get that to a variable to use either in the ad or our ad manager? Any ideas?
  4. Here is the setup. You visit http://teamname.domain.com which redirects to www.domain.com/teamname I need to get the folder name (teamname) into a variable in php. How would I do this? not the full path or anything like that. Basically the folder name is the name that I need to get info from the sql database.
  5. Thats perfect. I can get it formatted and draw from the database... I was on the right path but just couldn't get it to work. That is perfect though, thanks for the help and quick reply.
  6. I have a sql row with this information: 11/12/07.10am.vs Lions|11/13/07.9am.vs Sharks|11/15/07.9am.Practice|11/16/07.10am.Practice|11/18/07.11am.vs Frogs| I need to explode the events and then explode the sections. So, basically I need to explode the | which separates the events. Then I need to explode . that separates each item in the event. How would this look? I have tried different things exploding and foreach and just haven't gotten it to work yet. The above basically needs to create a tables of events...
  7. Here is what I am looking for and somebody told me Mod_Rewrite could do it however I know nothing of it... I have a team management script for a client in which a coach signs in and creates his team (registering team name, etc) all handled through sql. Basically we want the urls to be http://TEAMNAME.domain.com. With TEAMNAME being whatever the coach sets in his control panel. So, basically we need a way for a subdomain to be created (or forward to the folder, whatever) automatically when the coach submits the form for his team name. At the same time this info will be insert in the database... Can mod_rewrite do this? and if it can, could anybody help?
  8. Thanks for the replies guys. Exactly what I was looking for.
  9. Doesn't that just return the max rand? I am creating a unique auth code to validate users but want to limit the chars the rand code generates.
  10. Alright, I just wasn't sure if there was another way or a better way then that or if php/sql had a function just for that creating a unique string or id... Thanks for the reply.
  11. Here is what I have; a script like a mailing list, its for club and orgs to keep their club members updated on their field status. Emails are sent to those who subscribe via the website. Here is what i'm looking for; To unsubscribe they will click a link in their email (either the welcome email or any of the emails to the list). The unsubscribe link will be www.domain.com/fieldstatus/unsubscribe.php?id=1&validate=RANDOM_STRING ... What is the best way to create a random string of characters when a user subscribes and verify it isn't used in the database already? Would I just have it create the random string and then just sql check it against the database before inserting, if its there random again, if not insert. The sql for subscribers is like this; id | email | validate | I want a random string for validate as I don't want people directly accessing unsubscribe.php?id= and putting in a random id number removing people. This way the validate string will be included but be random... Or do you have other suggestions for this?
  12. Thanks for the quick reply and the help.
  13. I am working on a new project and never really had a problem with sessions before but I'm getting some errors now. Here is what I get Warning: session_start() [function.session-start]: open(/tmp/sess_6286ac1e176cecebe680ba8a8c9dd8aa, O_RDWR) failed: Permission denied (13) in /home/twofive/public_html/development/projects/fieldstatus/fs-login.php on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/twofive/public_html/development/projects/fieldstatus/fs-login.php:2) in /home/twofive/public_html/development/projects/fieldstatus/fs-login.php on line 2 Warning: Unknown(): open(/tmp/sess_6286ac1e176cecebe680ba8a8c9dd8aa, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 Normally I'm pretty good at debugging my scripts as errors normally help but I'm not sure about these warnings for open(/tmp) or Failed to write session data (files). I have no clue what they mean. Any ideas? I don't think it has to do with my script.
  14. Nevermind guys, I found the problem. After installing the script on my dev server, I found some notices and fixed them and now it works...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.