Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by dalecosp

  1. Are you certain? If the url's being rewritten, *someone* changed the server's behavior. Does the framework ship with an ".htaccess" file, for example?
  2. What's the console saying? Perhaps you could add some more console.log() statements if these aren't firing and giving you any clues.
  3. As far as .htaccess goes, it should be fairly simple, as long as you're talking about a few specific files. <Files /foo> deny from </Files>If you have multiple pages you probably need "FilesMatch" and a regexp.
  4. Welcome to PHPFreaks!
  5. dalecosp

    hello guys

    Welcome, Kessie!
  6. It should be a bit simpler; they are allowing GET requests. Here's a sample you can adapt to your site's architecture: <?php $uid = "My_Userid"; // put your user id here $pass = "My_Password"; // put your password here $apikey = "My_API_Key"; // etc. $from = "My_From_Phone_number"; $to = "Receiving_Number"; $msg = "Test text Message."; $url = "https://www.experttexting.com/exptapi/exptsms.asmx/SendSMS?Userid=" . $uid . "&pwd=" . $pass . "&APIKEY=" . "&FROM=" . $from ."&To=" . $to . "&MSG=" . $msg; $send = file_get_contents($url); //simple HTTP GET request
  7. You're welcome! Good luck with your project :-)
  8. The fact it's not working on iPad suggests a browser problem, and, therefore by extension, a JavaScript problem? Can you get a console from the iPad browser and see if JS is throwing some errors? Alternatively, there are "user-agent switchers" for most major browsers that might allow you to imitate an iPad with a browser (Like Chrome or FFox) that has a good console/debugger already built in.
  9. You're echoing "$out" inside the foreach loop ... and you're also concatenating to it with ".=" ... I think you probably want to put the echo statement AFTER the foreach loop? (That is, after the first bracket and before the bracket that closes your function.)
  10. I'd try preg_match(): function insertTweets($name,$screen_name,$text,$created_at,$id_str,$followers_count){ $get_hashtags = preg_match("%#[\w_]*\s%",$text,$tags); //now $tags is an array of hashtags //etc...
  11. You've Googled? http://www.killerphp.com/articles/php-interfaces/ http://kristopherwilson.com/2015/03/26/using-interfaces-effectively-in-php/ http://www.davegardner.me.uk/blog/2010/11/21/why-you-should-always-use-php-interfaces/ (Older, fanatic OOPer) http://jaskokoyn.com/2013/06/11/interfaces/ https://www.phpclasses.org/blog/post/300-Using-PHP-Object-Interfaces.html If there's a class that you want to *ensure* has specific capabilities (that is, you don't want to forget to implement the $foo method for it), have it implement an interface.
  12. Barand's a great guy ... first "met" him at another site many years ago. Always a class act --- a decent fellow with a good handle on many subjects. Congrats, man.
  13. <?php //all your curl stuff here print_r(curl_getinfo($ch)); Might give some kind of clue.
  14. If 3 of us think it is, it must be so!
  15. Hmm. Since "not telling" is a valid gender option here, it's kind of hard to know. Here are a few users with > 250 posts who ID as female: http://forums.phpfreaks.com/user/27180-jessica/ http://forums.phpfreaks.com/user/131799-white-lily/ http://forums.phpfreaks.com/user/56876-priti/ http://forums.phpfreaks.com/user/87108-lingo5/ And another with few posts: http://forums.phpfreaks.com/user/32377-daena76/
  16. If it's anything besides "target='_blank'" ... I agree.
  17. Sounds pretty nefarious, doesn't it? Given he's also shot-gunned this by asking at PHPBuilder, I do have to wonder about intentions. What if he's asking "How can I show someone else's site in a IFRAME so that they think they're using another site by they're really still using my site ..." Yikes....
  18. The best framework to learn is the one your new job requires. They seem to come and go even faster than Donald Trump's wives...
  19. There are some problems with your script, as near as I can tell at first glance. 1. The array $list_pre was initialized with URL that included an empty variable. Either just initialize an empty array, or make sure that $keyword3 has a value when the array is initialized. 2. The first "foreach" loop isn't followed by a bracket. I'm not sure what the parser will do with that; it might not matter, but for consistency and legibility I would recommend that every foreach use brackets. 3. You have an errant semicolon here: It's possible that's the source of the issue.
  20. Nope. I use Joseph Lencioni's SLIR, and think it's the bee's knees
  21. The only caveat I'd add to this discussion is don't discount a smaller and leaner approach without thinking it through. Some people, once they start to wrap their head around OOP, think that EVERY D**N THING needs to be an object, and that EVERY D**N OBJECT has to be GodLike. That's ain't always so (and in the case of the latter, probably hardly *ever* is that so...). And, you can have "lean" procedural and also have "lean" OO code.... I've seen "cool OOP designs" that are such resource hogs that a few lines of Procedural runs circles around them. It's all in the ability of the programmer to understand the problem and write the BEST code to meet the goal. That being said, some of my messes are procedural, and some of them are OO ... but I'm cleanin' em' up whenever I get the chance ...
  22. dalecosp

    New here!

    Well, I hope you do too, and I'll wish you luck. I'm not sure this site's as popular as it once was due to some issues that may have been beyond their control ;-) But there *are* some good minds here, some of which I've known for a long time on other forums ...
  • 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.