Jump to content

twofivethreetwo

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by twofivethreetwo

  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...
  15. Try removing the ' for the _GET's. It would look like this for all the $_GET's you have; $_GET[id] ... Do this only for the _GET's in your sql.
  16. I have a gig lister script and would like to include a mini-calendar that inserts the gigs on what dates they are and displays the info in tooltips. Most of it works. For the first date it will display the correct information. Then for the second date it will display the first dates info and the second dates info. And so on for however many dates there are. Only the first date shows correctly. Here is the calendar in action; http://dev.2532gigs.com/calendar.php Just hover over the dates and you can see how they display... Here is the code; http://dev.2532gigs.com/calendar.txt  (I just linked it as its kinda long)... I have tried to figure out whats wrong but just can't get it to work... The original code is from another developer who has since left the project. Any suggestions or help on getting this fixed would be great. Thanks.
  17. I've developed a script and am looking for the best way to include information from the scripts website and the script (where ever it maybe installed). Its a php/mysql gig lister. Basically it has a mini sidebar that acts like an internal help file (that your able to show/hide the div). We want to be able to update this internal help file without releasing new updates to the script. However, I'm not sure how to go about it. (don't even know if this is the right forum). Some suggested to include() the file, however I've dealt with servers who block includes outside your domain. Somebody else suggested parsing an RSS feed. However, i'm not sure if you can do that with the default installation of php. Does anybody have suggestions?
  18. This site http://www.php-mysql-tutorial.com/form-validation-with-php.php  has some info on client-side and server-side validation for forms. Might be of some help.
×
×
  • 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.