Jump to content

hassank1

Members
  • Posts

    239
  • Joined

  • Last visited

Everything posted by hassank1

  1. I've used your code to implement these functions .. and everything worked just fine function isToday($date) //check if it's today { $date = date("l, F d",strtotime($date)); if($date == date("l, F d")) return true; else return false; } function isYesterday($date) //check if it's yesterday { $date = date("l, F d",strtotime($date)); if($date == date("l, F d")-1) return true; else return false; }
  2. Thx , I'll check it .. btw this is an example of a $postdate output : 2008-04-18 04:38:08
  3. I've a variable $PostDate .. which I get from a datetime mysql field I want to check if this date is today so I echo "today" or if it's yesterday I echo "yesterday"
  4. problem solved .. the problem was that another attached style sheet override some rules .. (margin) .. so I fixed it ..
  5. hassank1

    word wrap !

    nop I am trying to word-wrap a text .. so if it's too long it will be splitted into 2 lines ex: loooooooooooooooooooong result : loooooooooo oooooooong
  6. hmm .. ok I'll check the code again .. I think I've modified something .. about the size I am going to use pictures of the same width but with different heights.
  7. I am having a problem in firefox .. check the picture below
  8. hassank1

    word wrap !

    I am using : word-wrap:break-word; it worked in IE , however it's not working on FireFox
  9. check this out : http://www.html.it/articoli/niftycube/index.html
  10. it worked !! however I want to ask is it necessary to user the wrapper div ? or can I omit it ?
  11. Hey I am working on a social network website .. so one of the essential components in such a site . is to use a box that contains a header + title .. and content (mostly a thumnails but not in all cases) here's exactly what I am trying to do : however , I didn't succed to build it (am beginner , however I know the basics of css) so could someone helped me please.. thx
  12. looooool ! yeah .. I use these keys 2 .. however I need a more advanced method !
  13. is there a software or something to generate some php codes .. like connecting to a db .. validating input .. etc.. so instead of writing them each time .. I use it .. !! thx .
  14. yeah . I know what u mean however , I am doing that as a protection for my cd .. I am trying to keep some files on the cd and the user will be unable to copy them .. and must read them from cd.. I think u r right about the c# forum !! however , I really like phpfreaks site .. that's y I post .. btw thx for reminding me about the floppy games !! tc.
  15. I am working on a cd .. the cd contains a setup .. the user open it and install the application to his pc however, I want when user try to run the application .. to check whether the correct cd is inserted , and if no .. to show a msg box "please insert the application CD". I prefere a C# code .. however , if you think you can help in anything , no matter how small is it .. post a reply .. thx
  16. I've checked some website that contain layouts !! however why they are kind of complicated ? (am beginner btw) for example for 3 column layout they use div inside a div inside a div ... check : http://matthewjamestaylor.com/blog/perfect-3-column.htm so why ? and can't I simply for 3 cols layout . use 3 divs ( left then center then right ) then float and center them instead of using many divs inside each other ?!
  17. I didn't know there's SP in mysql till now , I've developed my whole web app. using direct sql statements .. so do you advice using SP in my future work ? .. and does someone had problems using them or they work just fine ?
  18. hassank1

    kerberos

    I want to install a kerberized ftp server .. so do I need any other packages than the mentioned above ?
  19. hassank1

    kerberos

    hi I want to install kerberos packages on my fedora core 8 .. however I can't find it online ... anyone can help ? thx
  20. I am using shared hosting .. however how can I know the speed of my upload server .. and how many users can visit my site in the same time before getting slow .. is there any method ? one more thing .. what do u think abt hostgator.com ? thx
  21. aha Okay .. now I've understood better .. well ! when I want to use .inc .. I used it as follow .. file.inc.php !! abt protecting dir .. u are talk about set permissions like rwxr--r-- for example !
  22. I was wondering can ppl include a file from other domain ex: include(mydomain.com/connectdb.php) ; well if so then ppl can access my db ... and if it's possible .. what can I do abt it ?
  23. Ok.. but I am not sure I've totally get your point ! what's the relation between include dir . and ppl know my passwords !! and which password(s) ??
  24. what could be the disadvantages if you found the include dir !! and how to fix that ! ? thx
×
×
  • 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.